Documentation

CslibFrontier.Computability.PCP.TwoProverGame.PauliBraidingConsistency

Consistency rounds of the Pauli braiding verifier #

The same-basis round of the combined verifier samples an odd pair and a uniform independent dummy. With the roles and basis fixed, its rejection bounds the squared distance between the observables read from the answers at the sampled questions. Both observables refer to the same checked string. A second bound compares the basis marginal and the special-question observable, conditional on the matched question. These are steps toward the averaged consistency bound of Natarajan and Vidick, Lemma 17 (arXiv:1610.03574v1, p. 21).

Main definitions #

Main results #

noncomputable def Cslib.PCP.pauliBraidingSameBasisGame {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) (swapRoles basis : Bool) :

The same-basis consistency subtest conditioned on a role assignment and basis. Its seed retains the odd pair and independent dummy as separate choices.

noncomputable def Cslib.PCP.pauliBraidingMatchedGame {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) (swapRoles basis : Bool) :

Condition the special-question round on the matching question of the chosen basis, with the basis and role assignment fixed. The odd pair remains uniform.

def Cslib.PCP.pauliBraidingMatchedDecoders {n : ℕ} {A : Type u_2} (decode : Bool → A → Bool) (swapRoles basis : Bool) (p : ↥(BitString.oddPairs (Fin n))) :
(Bool × Bool ⊕ A → Bool) × (Bool × Bool ⊕ A → Bool)

Decoders for the matched round in physical player order. Malformed answers have a default decoded bit of false.

theorem Cslib.PCP.rejection_pauliBraidingSameBasisGame_le {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (swapRoles basis : Bool) (answer : PauliBraidingQuestion n Q → PauliBraidingQuestion n Q → PMF ((Bool × Bool ⊕ A) × (Bool × Bool ⊕ A))) :
1 - (pauliBraidingSameBasisGame n G special decode swapRoles basis).answersWinProb answer ≤ 8 * (1 - (pauliBraidingBranchGame n G special decode 2).answersWinProb answer)

The same-basis conditional rejection probability for either role assignment and either basis costs at most eight times the consistency-branch rejection probability.

theorem Cslib.PCP.weighted_rejection_pauliBraidingMatchedGame_le {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} [Finite Q] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (swapRoles basis : Bool) (answer : PauliBraidingQuestion n Q → PauliBraidingQuestion n Q → PMF ((Bool × Bool ⊕ A) × (Bool × Bool ⊕ A))) :
((PMF.map Prod.snd G.questions) (special basis)).toReal * (1 - (pauliBraidingMatchedGame n G special decode swapRoles basis).answersWinProb answer) ≤ 8 * (1 - (pauliBraidingBranchGame n G special decode 2).answersWinProb answer)

The matched-question rejection probability, weighted by its probability in the second-question marginal, costs at most eight times the consistency-branch rejection.

theorem Cslib.PCP.sum_norm_sub_sq_le_of_pauliBraidingSameBasisGame {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (swapRoles basis : Bool) (S : CommutingStrategy (PauliBraidingQuestion n Q) (PauliBraidingQuestion n Q) (Bool × Bool ⊕ A) (Bool × Bool ⊕ A) 𝒜) :
have test := pauliBraidingSameBasisGame n G special decode swapRoles basis; (∑ r : ↥(BitString.oddPairs (Fin n)) × (Fin n → Bool), (test.seed r).toReal * match pauliBraidingSameBasisQuestions swapRoles basis r.1 r.2 with | (x, y) => S.state.norm ((Quantum.Measurement.map (Sum.elim x.braidingCheckedBit fun (x : A) => false) (S.alice x.toBraidingQuestion)).observable - (Quantum.Measurement.map (Sum.elim y.braidingCheckedBit fun (x : A) => false) (S.bob y.toBraidingQuestion)).observable) ^ 2) ≤ 32 * (1 - (pauliBraidingBranchGame n G special decode 2).commutingWinProb S)

Rejection in the consistency branch bounds the mean squared distance of the two same-basis observables that decode the shared string. In the decoded measurements a malformed answer is read as false. The verifier itself rejects such an answer.

theorem Cslib.PCP.weighted_sum_norm_sub_sq_le_of_pauliBraidingMatchedGame {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] [Finite Q] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (swapRoles basis : Bool) (S : CommutingStrategy (PauliBraidingQuestion n Q) (PauliBraidingQuestion n Q) (Bool × Bool ⊕ A) (Bool × Bool ⊕ A) 𝒜) :
have test := pauliBraidingMatchedGame n G special decode swapRoles basis; (((PMF.map Prod.snd G.questions) (special basis)).toReal * ∑ p : ↥(BitString.oddPairs (Fin n)), (test.seed p).toReal * have q := test.query p; have read := pauliBraidingMatchedDecoders decode swapRoles basis p; S.state.norm ((Quantum.Measurement.map read.1 (S.alice q.1)).observable - (Quantum.Measurement.map read.2 (S.bob q.2)).observable) ^ 2) ≤ 32 * (1 - (pauliBraidingBranchGame n G special decode 2).commutingWinProb S)

Rejection in the consistency branch bounds the mean squared distance between the decoded basis marginal and special observable, weighted by the probability of the matching question.

@[reducible, inline]
abbrev Cslib.PCP.pauliBraidingBasisBitMeasurement {n : ℕ} {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] (measure : PauliBraidingQuestion n Q → Quantum.Measurement (Bool × Bool ⊕ A) 𝒜) (basis : Bool) (checked dummy : Fin n → Bool) :

The binary measurement of a checked string and dummy in the consistency verifier. Malformed answers are decoded as false.

noncomputable def Cslib.PCP.pauliBraidingBasisObservable {n : ℕ} {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] (measure : PauliBraidingQuestion n Q → Quantum.Measurement (Bool × Bool ⊕ A) 𝒜) (basis : Bool) (checked dummy : Fin n → Bool) :
𝒜

The consistency observable decoded from one checked string and one dummy.

Averaging the binary consistency observable over the dummy gives a contraction.

theorem Cslib.PCP.expect_norm_averaged_sub_sq_nonzero_le {n : ℕ} {𝒜 : Type u_3} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [Module ℚ≥0 𝒜] (φ : Quantum.AlgState 𝒜) (a b : (Fin n → Bool) → (Fin n → Bool) → 𝒜) :
(Finset.univ.expect fun (x : Fin n → Bool) => if x = 0 then 0 else φ.norm ((Finset.univ.expect fun (y : Fin n → Bool) => a x y) - Finset.univ.expect fun (y : Fin n → Bool) => b x y) ^ 2) ≤ (24 * BitString.oddExpect fun (x y : Fin n → Bool) => Finset.univ.expect fun (z : Fin n → Bool) => φ.norm (a x y - b x z) ^ 2) + 4 * BitString.oddExpect fun (x y : Fin n → Bool) => Finset.univ.expect fun (z : Fin n → Bool) => φ.norm (a x z - b x y) ^ 2

On nonzero checked strings, both role assignments of the same-basis round control the distance between the two observables averaged over unrestricted dummies. The right side uses masked odd-pair averages. The left side is a uniform average with zero masked.

theorem Cslib.PCP.expect_norm_pauliBraidingBasisObservable_sub_sq_nonzero_le {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] [Module ℚ≥0 𝒜] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (basis : Bool) (S : CommutingStrategy (PauliBraidingQuestion n Q) (PauliBraidingQuestion n Q) (Bool × Bool ⊕ A) (Bool × Bool ⊕ A) 𝒜) :
have a := pauliBraidingBasisObservable S.alice basis; have b := pauliBraidingBasisObservable S.bob basis; (Finset.univ.expect fun (x : Fin n → Bool) => if x = 0 then 0 else S.state.norm ((Finset.univ.expect fun (y : Fin n → Bool) => a x y) - Finset.univ.expect fun (y : Fin n → Bool) => b x y) ^ 2) ≤ 896 * ↑(BitString.oddPairs (Fin n)).dens * (1 - (pauliBraidingBranchGame n G special decode 2).commutingWinProb S)

The combined verifier's consistency rejection controls the uniform average of the squared distance of the two averaged basis observables over the nonzero strings. The omitted zero term has weight 1 / 2^n in the full uniform average.

theorem Cslib.PCP.oddExpect_norm_pauliBraidingBasisObservable_sub_average_sq_le {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] [Module ℚ≥0 𝒜] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (roles basis : Bool) (S : CommutingStrategy (PauliBraidingQuestion n Q) (PauliBraidingQuestion n Q) (Bool × Bool ⊕ A) (Bool × Bool ⊕ A) 𝒜) :
have measure := bif roles then S.bob else S.alice; have a := pauliBraidingBasisObservable measure basis; (BitString.oddExpect fun (x y : Fin n → Bool) => S.state.norm (a x y - Finset.univ.expect fun (z : Fin n → Bool) => a x z) ^ 2) ≤ 960 * ↑(BitString.oddPairs (Fin n)).dens * (1 - (pauliBraidingBranchGame n G special decode 2).commutingWinProb S)

In the checked-string coordinate order, the same-basis estimates bound how much the first logical player's decoded observable changes as its dummy varies, on odd pairs.

noncomputable def Cslib.PCP.pauliBraidingSpecialObservable {n : ℕ} {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] (measure : PauliBraidingQuestion n Q → Quantum.Measurement (Bool × Bool ⊕ A) 𝒜) (question : Q) (decode : A → Bool) (p : ↥(BitString.oddPairs (Fin n))) :
𝒜

The opposite player's decoded observable on the matched special question.

theorem Cslib.PCP.weighted_expect_norm_pauliBraidingAverage_sub_special_sq_le {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] [Module ℚ≥0 𝒜] [Finite Q] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (roles basis : Bool) (S : CommutingStrategy (PauliBraidingQuestion n Q) (PauliBraidingQuestion n Q) (Bool × Bool ⊕ A) (Bool × Bool ⊕ A) 𝒜) :
have a := pauliBraidingBasisObservable (bif roles then S.bob else S.alice) basis; have b := pauliBraidingSpecialObservable (bif roles then S.alice else S.bob) (special basis) (decode basis); have mass := ((PMF.map Prod.snd G.questions) (special basis)).toReal; have density := ↑(BitString.oddPairs (Fin n)).dens; have δ := 1 - (pauliBraidingBranchGame n G special decode 2).commutingWinProb S; (mass * density * Finset.univ.expect fun (p : ↥(BitString.oddPairs (Fin n))) => have checked := if basis = true then (↑p).2 else (↑p).1; S.state.norm ((Finset.univ.expect fun (z : Fin n → Bool) => a checked z) - b p) ^ 2) ≤ (1920 * mass + 64) * density * δ

The averaged basis observable of the first logical player is close to the other player's matched special observable on odd pairs. The estimate carries the marginal question mass, so it applies even when that mass is zero.

theorem Cslib.PCP.expect_norm_pauliBraidingBasisObservable_sub_sq_le_add_zero {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] [Module ℚ≥0 𝒜] (G : TwoProverGame Q Q A A) (special : Bool → Q) (decode : Bool → A → Bool) (basis : Bool) (S : CommutingStrategy (PauliBraidingQuestion n Q) (PauliBraidingQuestion n Q) (Bool × Bool ⊕ A) (Bool × Bool ⊕ A) 𝒜) :
have a := pauliBraidingBasisObservable S.alice basis; have b := pauliBraidingBasisObservable S.bob basis; have d := fun (x : Fin n → Bool) => S.state.norm ((Finset.univ.expect fun (y : Fin n → Bool) => a x y) - Finset.univ.expect fun (y : Fin n → Bool) => b x y) ^ 2; (Finset.univ.expect fun (x : Fin n → Bool) => d x) ≤ 896 * ↑(BitString.oddPairs (Fin n)).dens * (1 - (pauliBraidingBranchGame n G special decode 2).commutingWinProb S) + d 0 / ↑(Fintype.card (Fin n → Bool))

In the full uniform average, the distance at zero is the only additional term. The odd-pair consistency branch controls the remaining contribution.