Documentation

CslibFrontier.Computability.PCP.TwoProverGame.PauliBraidingGame

The Pauli braiding verifier #

This is a seeded verifier based on Natarajan and Vidick, Figure 2 (arXiv:1610.03574v1, p. 17), for any anticommutation game with a common question and answer alphabet for its two roles. A uniform branch choice selects linearity, anticommutation, or consistency, and a uniform role bit assigns the two physical players to the logical roles. In the last two branches the pair of strings is uniform among pairs with odd inner product. The consistency branch chooses the basis and an independent fair coin. One outcome asks the second player a question from the anticommutation game's second-question marginal. Agreement is checked when that question is the special question of the chosen basis. The other outcome compares two basis answers on the shared checked string.

The same-basis check shares the first string in basis X and the second in basis Z, using the X–Z coordinate convention of equation (11). The same-basis bullet in Figure 2 writes the shared first string and uses the symbol N for the second basis label. Here both players receive the sampled basis. This check still draws the first player's pair from the odd-pair law. The checked string is therefore nonzero. Controlling the uniform averages in Lemma 17 requires additional work at zero. The uniform fixed-role game in AveragedConsistency uses a different seed law. Basis questions send strings in lexicographic order and are shared by the linearity and consistency branches. Anticommutation questions carry the pair in X–Z coordinate order so that each player can identify which string belongs to which observable. This preserves the labels of the oriented pair even when the Z string comes first lexicographically. Anticommutation labels distinguish the two logical roles even when their question tokens coincide. The special consistency round uses the second logical role's label.

Main definitions #

Main results #

inductive Cslib.PCP.PauliBraidingQuestion (n : ℕ) (Q : Type u_1) :
Type u_1

A Pauli braiding question. The basis label is false for X and true for Z.

inductive Cslib.PCP.PauliBraidingSeed (n : ℕ) (Q : Type u_1) :
Type u_1

The private choices for one round of the braiding verifier. In the last three constructors swapRoles is true when the second physical player plays the first logical role.

The strings of a consistency question in the order sent by the braiding verifier.

Send a basis question without exposing the unsorted X–Z coordinate order.

Read the bit associated with the checked string from an answer to the sorted basis question.

Reading the checked bit after answering both sorted strings agrees with evaluating the bit function on the checked string, also when the two strings are equal.

theorem Cslib.PCP.PauliConsistencyQuestion.ofChecked_braiding {n : ℕ} {Q : Type u_1} (basis : Bool) (c dummy : Fin n → Bool) (h : dummy ≠ c ∨ basis = false) :
have q := ofChecked basis c dummy; q.toBraidingQuestion = PauliBraidingQuestion.basis basis ((bif BitString.lexSwap c dummy then Prod.swap else id) (c, dummy)) ∧ q.braidingCheckedBit = fun (r : Bool × Bool) => ((bif BitString.lexSwap c dummy then Prod.swap else id) r).1

Away from a Z-basis tie, the consistency and linearity conventions give the same sorted question and read the same coordinate.

The two basis questions before lexicographic sorting, in physical player order.

noncomputable def Cslib.PCP.pauliBraidingConsistencyLaw {Q : Type u_1} (n : ℕ) [Nonempty (Fin n)] (questions : PMF (Q × Q)) (swapRoles basis specialRound : Bool) :

The conditional seed law of the consistency branch. The basis and role are already fixed, and specialRound selects between the special-question and same-basis checks.

noncomputable def Cslib.PCP.pauliBraidingBranchGame {Q : Type u_1} {A : Type u_2} (n : ℕ) [Nonempty (Fin n)] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (branch : Fin 3) :

A verifier conditioned on the linearity (0), anticommutation (1), or consistency (2) branch. It uses the same questions and checks as the full game. It takes a game, two distinguished second-player questions and a bit decoder for each basis. Basis answers are the left summand and anticommutation game answers are the right summand. Giving an answer from the wrong summand loses, including in the special branch when the sampled question would otherwise be accepted automatically.

noncomputable def Cslib.PCP.pauliBraidingGame {Q : Type u_1} {A : Type u_2} (n : ℕ) [Nonempty (Fin n)] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) :

The Pauli braiding verifier with a private uniform choice among the three branches.

theorem Cslib.PCP.answersWinProb_pauliBraidingGame {n : ℕ} {Q : Type u_1} {A : Type u_2} [Nonempty (Fin n)] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (answer : PauliBraidingQuestion n Q → PauliBraidingQuestion n Q → PMF ((Bool × Bool ⊕ A) × (Bool × Bool ⊕ A))) :
(pauliBraidingGame n G special decode).answersWinProb answer = (∑ branch : Fin 3, (pauliBraidingBranchGame n G special decode branch).answersWinProb answer) / 3

The full verifier accepts with the mean of the three conditional winning probabilities. The same answer kernel is used in all branches.

theorem Cslib.PCP.pauliBraidingBranch_deficit_le {n : ℕ} {Q : Type u_1} {A : Type u_2} [Nonempty (Fin n)] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (answer : PauliBraidingQuestion n Q → PauliBraidingQuestion n Q → PMF ((Bool × Bool ⊕ A) × (Bool × Bool ⊕ A))) (upper : Fin 3 → ℝ) (hupper : ∀ (branch : Fin 3), (pauliBraidingBranchGame n G special decode branch).answersWinProb answer ≤ upper branch) {ε : ℝ} (hwin : (∑ branch : Fin 3, upper branch) / 3 - ε ≤ (pauliBraidingGame n G special decode).answersWinProb answer) (branch : Fin 3) :
upper branch - (pauliBraidingBranchGame n G special decode branch).answersWinProb answer ≤ 3 * ε

A strategy within ε of the mean of the three branch upper bounds is within 3 * ε of each bound. The branch scores must be for the same answer kernel.