Documentation

CslibFrontier.Computability.Complexity.Classes.ArthurMerlin.Amplification

Error reduction for MA and AM, MA ⊆ AM, MA ⊆ SBP and existential quantification in AM #

The error 1 / 3 in the definitions of MA and AM (Cslib.Complexity.MA, Cslib.Complexity.AM) can be made exponentially small by majority votes over independent runs, as for BPP (Cslib.Complexity.mem_BPP_iff_forall_decidesWithErrorExponent) Babai, Arora and Barak, Section 8.2. Write n for the length of the encoded instance.

In both cases a majority of 12 e(n) runs errs on at most a 2 ^ (-e(n)) fraction of the random strings (Cslib.BitString.two_pow_mul_card_filter_card_filter_block_le, from the exponential moment bound Cslib.card_filter_card_filter_le_le).

With error below 2 ^ (-q(n) - 2) on q(n)-bit proofs, summing over Merlin's 2 ^ q(n) proofs shows that the number of accepted pairs of a proof and a random string is at least 3 / 4 of the random strings on members and at most 1 / 4 on non-members, so MA ⊆ SBP Böhler, Glaßer and Meister.

The containment MA ⊆ AM (Cslib.Complexity.MA_subset_AM) and closure of AM under polynomially bounded existential quantification (Cslib.Complexity.mem_AM_of_exists) Babai follow from the round collapse in CslibFrontier.Computability.Complexity.Classes.ArthurMerlin.RoundCollapse: MA is the game M A (Cslib.Complexity.AMGameClass_merlin_arthur, Cslib.Complexity.AMGameClass_subset_AM), and existential quantification prepends a Merlin move (Cslib.Complexity.mem_AMGameClass_cons_merlin) to give MAM = AM (Cslib.Complexity.AMGameClass_merlin_arthur_merlin).

Main definitions #

Main results #

References #

Error reduction for MA #

V is a Merlin–Arthur verifier for A with error at most 2 ^ (-e(n)), with proofs of length q and random strings of length p, all evaluated at the length n of the encoded instance: on a member some proof is rejected on at most a 2 ^ (-e(n)) fraction of the random strings; on a non-member every proof is accepted on at most such a fraction.

def Cslib.Complexity.merlinArthurRepeat {α : Type} (enc : α ↪ List Bool) (q r p : Polynomial ℕ) (V : α × List Bool → Bool) (x : α × List Bool) :

The strict majority of 2 r(n) runs of a Merlin–Arthur verifier V on one proof, where n is the length of the encoded instance: the string is a proof of q(n) bits followed by 2 r(n) random rows of p(n) bits (Cslib.Complexity.repeatMajority), and V runs on the proof followed by each row.

theorem Cslib.Complexity.IsMerlinArthurVerifier.repeatMajority {α : Type} {enc : α ↪ List Bool} {A : Set α} {q p : Polynomial ℕ} {V : α × List Bool → Bool} (h : IsMerlinArthurVerifier enc q p V A) (e : Polynomial ℕ) :
IsMerlinArthurVerifierWithErrorExponent enc e q (12 * e * p) (merlinArthurRepeat enc q (6 * e) p V) A

Error reduction for MA Babai. The strict majority of 12 e(n) runs of a Merlin–Arthur verifier with one proof, on independent blocks of random bits, errs on at most a 2 ^ (-e(n)) fraction of the random strings. The proofs keep their length.

Error at most 2 ^ (-e(n)) ≤ 1 / 4 is error at most 1 / 3.

Error reduction for MA Babai: a problem is in MA exactly when, for some polynomial proof length q and every polynomial e, it has a polynomial-time Merlin–Arthur verifier with proofs of length q and error at most 2 ^ (-e(n)). The proof length is chosen before the error, so the error can be made smaller than 2 ^ (-q(n)).

Error reduction for AM #

V is an Arthur–Merlin verifier for A with error at most 2 ^ (-e(n)), with random strings of length p and replies of length q, all evaluated at the length n of the encoded instance: on a member at most a 2 ^ (-e(n)) fraction of the random strings have no accepted reply; on a non-member at most such a fraction have one.

An Arthur–Merlin verifier has error exponent e iff its reply-existence slice decides with error exponent e.

def Cslib.Complexity.arthurMerlinRepeat {α : Type} (enc : α ↪ List Bool) (r p q : Polynomial ℕ) (V : α × List Bool → Bool) (x : α × List Bool) :

The strict majority of 2 r(n) parallel runs of an Arthur–Merlin verifier V, where n is the length of the encoded instance: the string consists of 2 r(n) random rows of p(n) bits followed by 2 r(n) replies of q(n) bits (Cslib.BitString.listRow), and V runs on each row followed by its reply. Bits missing from a short string read as false.

theorem Cslib.Complexity.exists_arthurMerlinRepeat_ofFn_append_ofFn_iff {α : Type} {enc : α ↪ List Bool} {r p q : Polynomial ℕ} {V : α × List Bool → Bool} (a : α) (x : BitString (2 * Polynomial.eval (enc a).length r * Polynomial.eval (enc a).length p)) :
(∃ (y : BitString (2 * Polynomial.eval (enc a).length r * Polynomial.eval (enc a).length q)), arthurMerlinRepeat enc r p q V (a, List.ofFn x ++ List.ofFn y) = true) ↔ Polynomial.eval (enc a).length r < {i : Fin (2 * Polynomial.eval (enc a).length r) | ∃ (z : Fin (Polynomial.eval (enc a).length q) → Bool), V (a, List.ofFn (BitString.block x i) ++ List.ofFn z) = true}.card

Parallel answers. Some replies make a strict majority of the parallel runs accept iff a strict majority of the random rows have an accepted reply each.

theorem Cslib.Complexity.IsArthurMerlinVerifier.repeatMajority {α : Type} {enc : α ↪ List Bool} {A : Set α} {p q : Polynomial ℕ} {V : α × List Bool → Bool} (h : IsArthurMerlinVerifier enc p q V A) (e : Polynomial ℕ) :
IsArthurMerlinVerifierWithErrorExponent enc e (12 * e * p) (12 * e * q) (arthurMerlinRepeat enc (6 * e) p q V) A

Error reduction for AM Babai. The strict majority of 12 e(n) parallel runs of an Arthur–Merlin verifier, on independent blocks of random bits answered independently, errs on at most a 2 ^ (-e(n)) fraction of the random strings.

Error at most 2 ^ (-e(n)) ≤ 1 / 4 is error at most 1 / 3.

Error reduction for AM Babai: a problem is in AM exactly when, for every polynomial e, it has a polynomial-time Arthur–Merlin verifier with error at most 2 ^ (-e(n)).

MA ⊆ AM #

theorem Cslib.Complexity.NP_subset_AM {α : Type} {enc : α ↪ List Bool} :
NP enc ⊆ AM enc

NP ⊆ AM.

theorem Cslib.Complexity.BPP_subset_AM {α : Type} {enc : α ↪ List Bool} :
BPP enc ⊆ AM enc

BPP ⊆ AM.

MA ⊆ SBP #

theorem Cslib.Complexity.MA_subset_SBP {α : Type} {enc : α ↪ List Bool} :
MA enc ⊆ SBP enc

MA ⊆ SBP Böhler, Glaßer and Meister. Reduce the error of a Merlin–Arthur verifier with proofs of q(n) bits below 2 ^ (-q(n) - 2) and count the accepted pairs of a proof and a random string of P(n) bits: on a member the good proof alone gives at least 3 / 4 ⬝ 2 ^ P(n) of them, and on a non-member all 2 ^ q(n) proofs together give at most 1 / 4 ⬝ 2 ^ P(n). Four times the count is a #P function with threshold 3 ⬝ 2 ^ P(n).

Existential quantification #

AM is closed under existential quantification Babai: if the pairs (a, w) form a problem in AM, with respect to the encoding of pairs, then so do the instances a for which some word w of length p(n), n the length of the encoded instance, makes (a, w) a member. Prepending Merlin's choice of w gives a game of pattern M A M, which collapses to AM (Cslib.Complexity.mem_AMGameClass_cons_merlin, Cslib.Complexity.AMGameClass_merlin_arthur_merlin).