Documentation

CslibFrontier.Computability.Complexity.Classes.ArthurMerlin.PH

MA and AM in the second level of the polynomial hierarchy #

MA ⊆ Σ₂ ∩ Π₂ and AM ⊆ Π₂ Babai, Babai and Moran, Arora and Barak, Section 8.2, by Lautemann's covering argument (Lautemann, CslibFrontier.Foundations.Combinatorics.Lautemann), as in the Sipser–Gács–Lautemann theorem BPP ⊆ Σ₂ ∩ Π₂ (Cslib.Complexity.BPP_subset_SigmaP_two). Write n for the length of the encoded instance.

First reduce the error to 2 ^ (-e(n)), with random strings of m(n) = 12 e(n) p(n) bits, where p(n) is the original random-string length; then k(n) = e(n) = 12 p(n) + 1 shifts satisfy m(n) < e(n) k(n) and k(n) < 2 ^ e(n). For a set S of random strings, with xor as addition:

For MA ⊆ Σ₂, S is the set of random strings accepted with a proof y, and a ∈ A ↔ ∃ y u, ∀ r, ∃ i, V (a, y ++ (r + u i)); Merlin's proof and the shifts form one existential block (Cslib.Complexity.ArthurMerlin.sigmaTwoVerifier). For AM ⊆ Π₂, S is the set of random strings with an accepted reply, and a ∈ A ↔ ∀ u, ∃ r Y, ∀ i, V (a, (r + u i) ++ Y i); the random string and the k(n) replies form one existential block (Cslib.Complexity.ArthurMerlin.piTwoVerifier). MA ⊆ Π₂ follows from MA ⊆ AM.

Main definitions #

Main results #

References #

The Σ₂ verifier of a Merlin–Arthur verifier #

def Cslib.Complexity.ArthurMerlin.sigmaTwoVerifier {α : Type} (enc : α ↪ List Bool) (q k p : Polynomial ℕ) (W : α × List Bool → Bool) (x : α × List Bool) :

The Σ₂ verifier of a Merlin–Arthur verifier W with proofs of length q and random strings of length p, with k shifts, all evaluated at the length of the encoded instance. The existential block is a proof y followed by k shifts of the random string, the universal block is a random string r, and the verifier accepts when W accepts the proof with r xor some shift. Bits missing from a short string read as false (Cslib.BitString.listRow).

On a proof followed by the shifts and then a random string r, the Σ₂ verifier accepts iff W accepts the proof with r xor some shift.

theorem Cslib.Complexity.ArthurMerlin.isAlternatingVerifier_sigmaTwoVerifier {α : Type} {enc : α ↪ List Bool} {A : Set α} {e q k p : Polynomial ℕ} {W : α × List Bool → Bool} (h : IsMerlinArthurVerifierWithErrorExponent enc e q p W A) (hcover : ∀ (n : ℕ), Polynomial.eval n p < Polynomial.eval n e * Polynomial.eval n k) (hshifts : ∀ (n : ℕ), Polynomial.eval n k < 2 ^ Polynomial.eval n e) :
IsAlternatingVerifier enc true [q + k * p, p] (sigmaTwoVerifier enc q k p W) A

Merlin–Arthur verifiers in Σ₂. If W is a Merlin–Arthur verifier for A with error at most 2 ^ (-e(n)) and random strings of p(n) bits, and k(n) shifts satisfy p(n) < e(n) k(n) and k(n) < 2 ^ e(n), then sigmaTwoVerifier enc q k p W verifies A with an existential block of q + k p bits, a proof and the shifts, followed by a universal block of p bits.

The Π₂ verifier of an Arthur–Merlin verifier #

def Cslib.Complexity.ArthurMerlin.piTwoVerifier {α : Type} (enc : α ↪ List Bool) (k p q : Polynomial ℕ) (W : α × List Bool → Bool) (x : α × List Bool) :

The Π₂ verifier of an Arthur–Merlin verifier W with random strings of length p and replies of length q, with k shifts, all evaluated at the length of the encoded instance. The universal block is k shifts of the random string, the existential block a random string r followed by k replies, and the verifier accepts when W accepts r xor each shift with its reply. Bits missing from a short string read as false (Cslib.BitString.listRow).

On the shifts followed by any word v, the Π₂ verifier accepts iff W accepts, for each shift, the first p(n) bits of v xor the shift with the corresponding reply read from the rest of v.

theorem Cslib.Complexity.ArthurMerlin.isAlternatingVerifier_piTwoVerifier {α : Type} {enc : α ↪ List Bool} {A : Set α} {e k p q : Polynomial ℕ} {W : α × List Bool → Bool} (h : IsArthurMerlinVerifierWithErrorExponent enc e p q W A) (hcover : ∀ (n : ℕ), Polynomial.eval n p < Polynomial.eval n e * Polynomial.eval n k) (hshifts : ∀ (n : ℕ), Polynomial.eval n k < 2 ^ Polynomial.eval n e) :
IsAlternatingVerifier enc false [k * p, p + k * q] (piTwoVerifier enc k p q W) A

Arthur–Merlin verifiers in Π₂. If W is an Arthur–Merlin verifier for A with error at most 2 ^ (-e(n)), random strings of p(n) bits and replies of q(n) bits, and k(n) shifts satisfy p(n) < e(n) k(n) and k(n) < 2 ^ e(n), then piTwoVerifier enc k p q W verifies A with a universal block of k p bits, the shifts, followed by an existential block of p + k q bits, a random string and the replies.

theorem Cslib.Complexity.ArthurMerlin.eval_lt_mul (p : Polynomial ℕ) (n : ℕ) :
Polynomial.eval n (12 * (12 * p + 1) * p) < Polynomial.eval n (12 * p + 1) * Polynomial.eval n (12 * p + 1)

The number of shifts and the error exponent 12 p + 1 cover random strings of 12 (12 p + 1) p bits.

theorem Cslib.Complexity.MA_subset_SigmaP_two {α : Type} {enc : α ↪ List Bool} :
MA enc ⊆ SigmaP 2 enc

MA ⊆ Σ₂ Babai, Arora and Barak, Section 8.2: Merlin sends his proof together with Lautemann's shifts.

theorem Cslib.Complexity.AM_subset_PiP_two {α : Type} {enc : α ↪ List Bool} :
AM enc ⊆ PiP 2 enc

AM ⊆ Π₂ Babai, Babai and Moran, Arora and Barak, Section 8.2: against any of Lautemann's shifts, Merlin exhibits a random string and replies to all of its shifts.

theorem Cslib.Complexity.MA_subset_PiP_two {α : Type} {enc : α ↪ List Bool} :
MA enc ⊆ PiP 2 enc

MA ⊆ Π₂, from MA ⊆ AM ⊆ Π₂.

theorem Cslib.Complexity.MA_subset_SigmaP_two_inter_PiP_two {α : Type} {enc : α ↪ List Bool} :
MA enc ⊆ SigmaP 2 enc ∩ PiP 2 enc

MA ⊆ Σ₂ ∩ Π₂ Babai, Arora and Barak, Section 8.2.

theorem Cslib.Complexity.AM_subset_PH {α : Type} {enc : α ↪ List Bool} :
AM enc ⊆ PH enc

Every problem in AM lies in the polynomial hierarchy.