Documentation

CslibFrontier.Computability.Complexity.Classes.ArthurMerlin.RoundCollapse

The round collapse AM[k] = AM #

The collapse of Babai and Moran Babai, Babai and Moran, Arora and Barak, Section 8.2. Every public-coin Arthur–Merlin game with a fixed pattern of moves is in AM, and a pattern that has an Arthur move somewhere before a Merlin move gives exactly AM.

The core step is the swap Cslib.Complexity.AMGameClass_swap: a Merlin message followed by Arthur's coins can be replaced by the coins followed by the message. Write the game as σ, M (q bits), A (p bits), τ.

  1. Amplify the game by a majority of 48 parallel copies (Cslib.Complexity.AMGame.amplifiedVerifier). Its value is then at least 15 / 16 on members and at most 1 / 32 on non-members, and Merlin's message has Q = 48 q bits.
  2. Arthur sends the coins of the A move for 2 k independent copies of the rest of the game, with k = 6 (Q + 4). Merlin then sends one message of Q bits, common to all copies, and the copies of τ run in parallel. The verifier takes the majority vote (Cslib.Complexity.AMGame.swapVerifier).
  3. On a member, Merlin sends the best message of the amplified game, and the majority vote keeps its value up to (8 / 9) ^ k. On a non-member, each fixed message fails the majority except with probability (8 / 9) ^ k / 2. A union bound over the 2 ^ Q messages gives 2 ^ Q (8 / 9) ^ k / 2 ≤ 1 / 32 (Cslib.Complexity.AMGame.value_swap_le, Cslib.Complexity.AMGame.value_swap_ge).

With merging of consecutive moves of the same player (Cslib.Complexity.AMGameClass_merge) and padding (Cslib.Complexity.AMGameClass_insert), any pattern after a leading A M reduces to A M one move at a time. A leading A M can always be inserted.

Main results #

The speedup AM[2 t(n)] = AM[t(n)] for polynomially many rounds of Babai and Moran needs patterns that depend on the input length and is not proved here. Nor is the simulation of private coins by public coins.

References #

def Cslib.Complexity.AMGame.swapVerifier (L P q : ℕ) (g' : List (AMMove × ℕ)) (k : ℕ) (V : List Bool → Bool) (w : List Bool) :

The verifier of the swapped game. The transcript is s (L bits), then Arthur's coins R for 2 k copies of the rest of the game (P bits), then Merlin's message y (q bits), then the 2 k copies of the rest of the game. It accepts when more than k copies accept on s ++ y ++ (copy i).

theorem Cslib.Complexity.AMGame.value_swap_le (σ τ : List (AMMove × ℕ)) (q p k : ℕ) (V : List Bool → Bool) :
(value true (σ ++ (AMMove.arthur, 2 * k * p) :: (AMMove.merlin, q) :: repeatShape (2 * k) τ) fun (w : List Bool) => ↑(swapVerifier (transcriptLength σ) (2 * k * p) q ((AMMove.arthur, p) :: τ) k V w).toNat) ≤ (3 * value true (σ ++ (AMMove.merlin, q) :: (AMMove.arthur, p) :: τ) fun (w : List Bool) => ↑(V w).toNat) + 2 ^ q * ((8 / 9) ^ k / 2)

The swap, upper bound.

theorem Cslib.Complexity.AMGame.value_swap_ge (σ τ : List (AMMove × ℕ)) (q p k : ℕ) (V : List Bool → Bool) :
(3 * value true (σ ++ (AMMove.merlin, q) :: (AMMove.arthur, p) :: τ) fun (w : List Bool) => ↑(V w).toNat) + (-2 - (8 / 9) ^ k) ≤ value true (σ ++ (AMMove.arthur, 2 * k * p) :: (AMMove.merlin, q) :: repeatShape (2 * k) τ) fun (w : List Bool) => ↑(swapVerifier (transcriptLength σ) (2 * k * p) q ((AMMove.arthur, p) :: τ) k V w).toNat

The swap, lower bound.

Swapping Merlin's message past Arthur's coins (the Babai–Moran swap).

theorem Cslib.Complexity.AMGameClass_subset_AM {α : Type} {enc : α ↪ List Bool} (π : List AMMove) :
AMGameClass enc π ⊆ AM enc

Every fixed-pattern public-coin game is in AM Babai, Babai and Moran.

Round collapse: a pattern containing an Arthur move followed later by a Merlin move gives exactly AM.

theorem Cslib.Complexity.AMk_eq_AM {α : Type} {enc : α ↪ List Bool} {k : ℕ} (hk : 2 ≤ k) :
AMk enc k = AM enc

AM[k] = AM for every constant k ≥ 2 Babai, Babai and Moran.

theorem Cslib.Complexity.MAk_eq_AM {α : Type} {enc : α ↪ List Bool} {k : ℕ} (hk : 3 ≤ k) :
MAk enc k = AM enc

MA[k] = AM for every constant k ≥ 3 Babai, Babai and Moran.