Documentation

CslibFrontier.Computability.Complexity.Classes.ArthurMerlin

The Arthur–Merlin classes MA and AM #

The two-message public-coin proof systems of Babai and Babai and Moran are defined, like BPP (Cslib.Complexity.BPP), through deterministic polynomial-time verifiers that read their messages as one string Arora and Barak, Section 8.2. Write n for the length of the encoded instance enc a.

As in NP, the lengths are polynomials of n, the messages have exactly these lengths, and the probabilities are counts of random strings, which are functions Fin (p n) → Bool. Merlin's messages also range over functions Fin (q n) → Bool, so that the counted condition of AM is decidable. Games with any fixed pattern of moves, and the round collapse AM[k] = AM, are in CslibFrontier.Computability.Complexity.Classes.ArthurMerlin.Games and CslibFrontier.Computability.Complexity.Classes.ArthurMerlin.RoundCollapse. The characterisations by interactive machines are not proved.

Both classes contain NP (no coins) and BPP (no proof), and are closed under polynomial-time many-one reductions. A reduction changes the lengths the verifier expects, so the new verifier reads only prefixes of the proof and of the random string of the lengths it needs; the ignored random bits multiply every count by the same power of two (Cslib.BitString.mul_two_pow_le_mul_card_filter_take). Error reduction, MA ⊆ AM and MA ⊆ SBP are in CslibFrontier.Computability.Complexity.Classes.ArthurMerlin.Amplification, and the placements in the second level of the polynomial hierarchy in CslibFrontier.Computability.Complexity.Classes.ArthurMerlin.PH.

Main definitions #

Main results #

References #

Merlin–Arthur #

def Cslib.Complexity.IsMerlinArthurVerifier {α : Type} (enc : α ↪ List Bool) (q p : Polynomial ℕ) (V : α × List Bool → Bool) (A : Set α) :

V is a Merlin–Arthur verifier for A, with proofs of length q and random strings of length p, both evaluated at the length of the encoded instance: on a member a some proof y makes at least two thirds of the random strings r accepted, V (a, y ++ r) = true; on a non-member every proof leaves at least two thirds of the random strings rejected.

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

The problems with polynomial-time Merlin–Arthur verifiers, with polynomially long proofs and random strings, with respect to the encoding enc of instances Babai.

Arthur–Merlin #

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

Whether some reply y of length q(|x.1|) is accepted by V on (x.1, x.2 ++ y). This is a counting device rather than a polynomial-time verifier: it quantifies over all 2 ^ q(|x.1|) replies, and DecidesWithBoundedError carries no computability requirement.

def Cslib.Complexity.IsArthurMerlinVerifier {α : Type} (enc : α ↪ List Bool) (p q : Polynomial ℕ) (V : α × List Bool → Bool) (A : Set α) :

V is an Arthur–Merlin verifier for A, with random strings of length p and replies of length q, both evaluated at the length of the encoded instance: on a member a at least two thirds of the random strings r have a reply y with V (a, r ++ y) = true; on a non-member at least two thirds of them have none.

An Arthur–Merlin verifier is a bounded-error decider when composed with existential quantification over Merlin's reply.

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

The problems with polynomial-time Arthur–Merlin verifiers, with polynomially long random strings and replies, with respect to the encoding enc of instances Babai, Babai and Moran.

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

Languages whose complements admit an Arthur–Merlin protocol.

NP and BPP #

theorem Cslib.Complexity.NP_subset_MA {α : Type} {enc : α ↪ List Bool} :
NP enc ⊆ MA enc

NP ⊆ MA: an NP verifier is a Merlin–Arthur verifier that flips no coins.

theorem Cslib.Complexity.BPP_subset_MA {α : Type} {enc : α ↪ List Bool} :
BPP enc ⊆ MA enc

BPP ⊆ MA: a bounded-error verifier is a Merlin–Arthur verifier that reads no proof.

Closure under reductions #

theorem Cslib.Complexity.PolyTimeReducible.mem_MA {α β : Type} {enc : α ↪ List Bool} {A : Set α} {encB : β ↪ List Bool} {B : Set β} (h : PolyTimeReducible enc encB A B) (hB : B ∈ MA encB) :
A ∈ MA enc

MA is closed under polynomial-time reductions. The verifier runs the verifier of the target problem on the reduced instance, on the prefix of the proof and the prefix of the random string of the lengths that it expects.

theorem Cslib.Complexity.PolyTimeReducible.mem_AM {α β : Type} {enc : α ↪ List Bool} {A : Set α} {encB : β ↪ List Bool} {B : Set β} (h : PolyTimeReducible enc encB A B) (hB : B ∈ AM encB) :
A ∈ AM enc

AM is closed under polynomial-time reductions. The verifier runs the verifier of the target problem on the reduced instance, on the prefix of the random string and the prefix of the reply of the lengths that it expects.