Documentation

CslibFrontier.Computability.Complexity.Classes.TFSigma2P

Total search problems in the second level of the polynomial hierarchy (TFΣ₂^P) #

The class TFΣ₂^P (Cslib.Complexity.TFSigma2P) consists of total search relations R : α → List Bool → Prop whose validity is witnessed by a universally quantified polynomial-time verifier Kleinberg, Korten, Mitropolsky and Papadimitriou, Korten, Section 2, Definition 1.

Concretely, with respect to an instance encoding enc : α ↪ List Bool, a search relation R belongs to TFSigma2P enc if there exist a polynomial p : Polynomial ℕ and a polynomial-time verifier V : (α × List Bool) × List Bool → Bool (encoded via encPair (encPair enc encBits) encBits) such that:

  1. Short-solution guarantee: for every instance a, there exists a solution w with w.length ≤ p.eval (enc a).length and R a w (in particular, IsTotalSearch R).
  2. Fixed-width universal verification: for every instance a and candidate w, R a w ↔ ∀ z : List Bool, z.length = p.eval (enc a).length → V ((a, w), z) = true.

Modeling conventions #

Following Korten, Section 2, Definition 1 literally, condition (1) requires some polynomially bounded solution for every instance, while condition (2) fixes the universally quantified string z to length p.eval (enc a).length. Unlike Cslib.Complexity.FNP and Cslib.Complexity.TFNP (which require every accepted solution to satisfy a polynomial length bound), TFSigma2P does not normalize away long witnesses globally; individual relations that bound all accepted solutions (such as RangeAvoidance) include that length constraint directly in their own definition and verifier.

For relations whose natural universal quantifier ranges over strings of a unary polynomial-time width q a (not necessarily equal to the solution-length polynomial p_w), Cslib.Complexity.mem_TFSigma2P_of_exists_univWidth pads to the single polynomial p_w + p_q by reading the prefix z.take (q a).

Main definitions #

Main results #

References #

def Cslib.Complexity.TFSigma2P {α : Type} (enc : α ↪ List Bool) :
Set (α → List Bool → Prop)

The class TFΣ₂^P of total search problems with a fixed-width universally quantified polynomial-time verifier, with respect to an instance encoding enc : α ↪ List Bool Korten, Section 2, Definition 1.

Condition 1 is the short-solution guarantee (∃ w, w.length ≤ p(|enc a|) ∧ R a w), and condition 2 is the fixed-width universal verification condition (R a w ↔ ∀ z, z.length = p(|enc a|) → V ((a, w), z) = true). Unlike FNP, this definition does not force every accepted witness w to have length at most p(|enc a|).

theorem Cslib.Complexity.TFSigma2P.isTotalSearch {α : Type} {enc : α ↪ List Bool} {R : α → List Bool → Prop} (hR : R ∈ TFSigma2P enc) :

Every search problem in TFΣ₂^P is total.

theorem Cslib.Complexity.TFNP_subset_TFSigma2P {α : Type} {enc : α ↪ List Bool} :
TFNP enc ⊆ TFSigma2P enc

Every TFNP search problem lies in TFΣ₂^P (by ignoring the universally quantified string).

Construct R ∈ TFSigma2P enc from a polynomial short-solution bound p_w and a polynomial-time universal verifier whose quantified bit string has unary polynomial-time width q a. Padding q a up to p_w + p_q and slicing z.take (q a) yields the single-polynomial form of Korten, Section 2, Definition 1.