Documentation

CslibFrontier.Computability.Complexity.Classes.ArthurMerlin.SetLowerBound

The set lower bound protocol and SBP ⊆ AM #

The set lower bound protocol of Goldwasser and Sipser [GS86] Arora and Barak, Section 8.2 lets Merlin convince Arthur that a set S with membership certificates is large. Write n for the length of the encoded instance a, and let S a be the strings x of N(n) bits with a certificate z of c(n) bits accepted by a polynomial-time test, R (a, x ++ z) = true (Cslib.Complexity.certifiedSet). If a polynomial-time threshold K a > 0, computed in binary, satisfies K a ≤ #(S a) on members and 2 #(S a) ≤ K a on non-members, then the problem is in AM (Cslib.Complexity.mem_AM_of_card_certifiedSet).

The protocol:

With no certificates, S a is the set counted by a #P function, so SBP ⊆ AM (Cslib.Complexity.SBP_subset_AM) Böhler, Glaßer and Meister.

Main definitions #

Main results #

References #

def Cslib.Complexity.certifiedSet {α : Type} (enc : α ↪ List Bool) (N c : Polynomial ℕ) (R : α × List Bool → Bool) (a : α) :

The strings of N(n) bits that have a certificate of c(n) bits accepted by R, where n is the length of the encoded instance.

Amplification and normalisation #

Five elements of S, followed by T bits whose first ℓ bits are false.

theorem Cslib.Complexity.SetLowerBound.card_amplifiedSet {N : ℕ} (S : Finset (BitString N)) {T ℓ : ℕ} (h : ℓ ≤ T) :
(amplifiedSet S T ℓ).card = S.card ^ 5 * 2 ^ (T - ℓ)

The size of the amplified set: #S ^ 5 ⬝ 2 ^ (T - ℓ).

The verifier #

def Cslib.Complexity.SetLowerBound.verifier {α : Type} (enc : α ↪ List Bool) (N c m T : Polynomial ℕ) (ℓ : α → ℕ) (R : α × List Bool → Bool) (x : α × List Bool) :

The Arthur–Merlin verifier of the set lower bound protocol, with element length N, certificate length c, hash length m, padding length T and padding threshold ℓ, where n is the length of the encoded instance. The string is Arthur's hash seed of m(n) M(n) + m(n) bits, with M(n) = 5 N(n) + T(n), followed by Merlin's element of M(n) bits and five certificates of c(n) bits. The verifier accepts when the five blocks of the element have accepted certificates, the first ℓ padding bits are false and the element hashes to zero (Cslib.BitString.LinearHash.hashZero). Bits missing from a short string read as false.

theorem Cslib.Complexity.SetLowerBound.exists_verifier_iff {α : Type} {enc : α ↪ List Bool} {N c m T : Polynomial ℕ} {ℓ : α → ℕ} {R : α × List Bool → Bool} (a : α) (r : BitString (Polynomial.eval (enc a).length m * (5 * Polynomial.eval (enc a).length N + Polynomial.eval (enc a).length T) + Polynomial.eval (enc a).length m)) :

Merlin's answers: some answer is accepted exactly when the amplified set meets the kernel of the affine hash given by Arthur's seed.

The set lower bound protocol of Goldwasser and Sipser [GS86] Arora and Barak, Section 8.2, for every input separately. Let R be a polynomial-time test, N and c polynomials, and K a polynomial-time threshold in binary with K a > 0. One polynomial-time Arthur–Merlin verifier has, on every input a, an accepted reply for at least two thirds of the random strings when the set of strings of N(n) bits with a certificate of c(n) bits accepted by R has at least K a elements, and for at most a third when it has at most K a / 2. Inputs between the two bounds carry no obligation.

theorem Cslib.Complexity.mem_AM_of_card_certifiedSet {α : Type} {enc : α ↪ List Bool} {A : Set α} {N c : Polynomial ℕ} {R : α × List Bool → Bool} {K : α → ℕ} (hR : Turing.MultiTapeTM.ComputableInPolyTime R (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBool) (hK : Turing.MultiTapeTM.ComputableInPolyTime K enc Turing.MultiTapeTM.encNat) (hKpos : ∀ (a : α), 0 < K a) (hmem : ∀ a ∈ A, K a ≤ (certifiedSet enc N c R a).card) (hnot : ∀ a ∉ A, 2 * (certifiedSet enc N c R a).card ≤ K a) :
A ∈ AM enc

The set lower bound protocol of Goldwasser and Sipser [GS86] Arora and Barak, Section 8.2. Let R be a polynomial-time test, N and c polynomials, and K a polynomial-time threshold in binary with K a > 0. If the set of strings of N(n) bits with a certificate of c(n) bits accepted by R has at least K a elements for every member a of A, and at most K a / 2 for every non-member, then A ∈ AM.

The set lower bound protocol also allows the element and certificate lengths to be computed from the instance in unary. Padding every counted element with zeros preserves its multiplicity.

theorem Cslib.Complexity.SBP_subset_AM {α : Type} {enc : α ↪ List Bool} :
SBP enc ⊆ AM enc

SBP ⊆ AM Böhler, Glaßer and Meister: the set counted by the #P function of an SBP problem needs no certificates, and the set lower bound protocol applies to it with the SBP threshold.

A perfectly complete set lower bound protocol (Arora and Barak, Exercise 8 §3, draft of January 2007, p. 8.20). Let R be a polynomial-time test, N and c polynomials, and K a polynomial-time threshold in binary with K a > 0, and write S a for the strings of N(n) bits with a certificate of c(n) bits accepted by R. One polynomial-time Arthur–Merlin verifier, with Arthur's random string of p(n) bits followed by Merlin's reply of q(n) bits, has on every input a:

  • an accepted reply to every random string when K a ≤ #(S a);
  • no accepted reply for at least two thirds of the random strings when 2 #(S a) ≤ K a.

Inputs with K a / 2 < #(S a) < K a carry no obligation.

The proof does not follow the exercise's hint (Merlin chooses several hash functions, and the gap is amplified by Cartesian powers of the set). It makes the bounded-error protocol (exists_verifier_of_card_certifiedSet) perfectly complete with soundness error 1 / 2 by amplification and Lautemann's shifts, as in AM_subset_AMOne (after Fürer, Goldreich, Mansour, Sipser and Zachos), and runs two copies in parallel, accepting when both accept, which brings the soundness error to 1 / 4 (IsArthurMerlinOneVerifier.arthurMerlinRepeat_one_perfect). Those steps are stated for a language; they are applied to the inputs outside the middle band, a subtype on which the two cases partition the inputs, and the constructed verifier on an input of the subtype is the verifier on the underlying input.