Paired relation predicates #
This file adds the complexity-class predicates built on the neutral binary
pairing codec from Complexitylib.Encoding.Pairing.
A binary relation is polynomially balanced if witness length is bounded by a polynomial in the input length. This is the standard short-witness condition used in the definitions of NP, FNP, FNL, and related classes.
Equations
- Complexity.PolyBalanced R = ∃ (p : Polynomial ℕ), ∀ (x y : List Bool), R x y → y.length ≤ Polynomial.eval x.length p