Documentation

CslibFrontier.Computability.Complexity.Classes.PH.Projection

Σₖ₊₁ as projections of Πₖ #

A problem A in Σₖ₊₁ is the projection of a problem B in Πₖ on pairs of an instance and a first certificate (Cslib.Complexity.exists_mem_PiP_of_mem_SigmaP_succ), the first step of the collapse of the hierarchy Arora and Barak, Theorem 5.4. B contains the pairs (a, w₁) from which the remaining k alternating quantifiers accept, with respect to the encoding encPair enc encBits of pairs. Its blocks of certificates have lengths given by polynomials in the length of enc a, while Πₖ asks for polynomials in the length of the encoded pair. The verifier of B therefore reads longer blocks and cuts each to its first bits (Cslib.Complexity.truncateBlocks, an instance of Cslib.Complexity.takeBlocks), which does not change the quantifiers (Cslib.Complexity.alternation_takeBlocks).

Main definitions #

Main results #

References #

Cutting blocks of certificates #

The first l.1 bits of each consecutive block of length l.2 of w, for the pairs l of ls in order.

theorem Cslib.Complexity.alternation_takeBlocks {ls : List (ℕ × ℕ)} (h : ∀ l ∈ ls, l.1 ≤ l.2) {q : Bool} {P : List Bool → Prop} :

Cutting longer blocks does not change alternating quantifiers: quantifying over blocks of lengths l.2 and cutting each to l.1 ≤ l.2 bits quantifies over all blocks of lengths l.1.

Cutting blocks is polynomial-time, for a fixed list of pairs of block lengths computed in unary.

The blocks of w of lengths p.eval m, for the polynomials p of ps in order, each cut to its first p.eval n bits.

theorem Cslib.Complexity.alternation_truncateBlocks {ps : List (Polynomial ℕ)} {n m : ℕ} (h : n ≤ m) {q : Bool} {P : List Bool → Prop} :
(Alternation q (List.map (fun (p : Polynomial ℕ) => Polynomial.eval m p) ps) fun (w : List Bool) => P (truncateBlocks ps n m w)) ↔ Alternation q (List.map (fun (p : Polynomial ℕ) => Polynomial.eval n p) ps) P

Cutting longer blocks does not change alternating quantifiers: quantifying over blocks of lengths p.eval m and cutting each to p.eval n ≤ p.eval m bits quantifies over all blocks of lengths p.eval n.

Cutting blocks is polynomial-time, for a fixed list of polynomials and lengths n, m computed in unary.

Cut consecutive blocks of uniform length M to lengths p.eval n for p ∈ ps.

theorem Cslib.Complexity.alternation_trimUniformBlocks {ps : List (Polynomial ℕ)} {n M : ℕ} (hle : ∀ p ∈ ps, Polynomial.eval n p ≤ M) {q : Bool} {P : List Bool → Prop} :
(Alternation q (List.replicate ps.length M) fun (w : List Bool) => P (trimUniformBlocks ps n M w)) ↔ Alternation q (List.map (fun (p : Polynomial ℕ) => Polynomial.eval n p) ps) P

Quantifying over ps.length blocks of uniform length M and cutting each to p.eval n ≤ M bits quantifies over blocks of lengths p.eval n.

Cutting uniform-length blocks is polynomial-time, for a fixed list of polynomials and lengths N, M computed in unary.

Uniform block lengths and peeling off the first quantifier #

Uniform block-length normal form for Σₖ: every A ∈ SigmaP k enc can be verified using a single polynomial p for all k certificate blocks (List.replicate k p), matching Arora and Barak, Definition 5.3.

Peel the first quantifier by passing its certificate as part of the instance. The preprocessing pads the remaining block lengths to polynomials in the length of the encoded pair. This works for both ordinary and oracle verifiers since it only transforms the input of the final verifier.

theorem Cslib.Complexity.exists_mem_PiP_of_mem_SigmaP_succ {α : Type} {enc : α ↪ List Bool} {k : ℕ} {A : Set α} (hA : A ∈ SigmaP (k + 1) enc) :
∃ (p : Polynomial ℕ), ∃ B ∈ PiP k (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits), ∀ (a : α), a ∈ A ↔ ∃ (w : List Bool), w.length = Polynomial.eval (enc a).length p ∧ (a, w) ∈ B

A problem in Σₖ₊₁ is the projection of a problem in Πₖ, as in the proof of Arora and Barak, Theorem 5.4: there are a polynomial p and a problem B in Πₖ on pairs of an instance and a word, encoded by encPair enc encBits, such that a ∈ A iff some word w of length p (enc a).length has (a, w) ∈ B.