Documentation

CslibFrontier.Computability.PCP.TwoProverGame.PauliBraidingDiagonal

Duplicated pairs in the Pauli braiding linearity branch #

Fixing the basis and roles and using equal strings in the original pair selects a fraction 1 / (4 * 2^n) of linearity seeds. These rounds bound the probability that a pair answer calls for opposite point answers in two checks with the same visible questions.

Main definitions #

Main results #

Fix the roles and keep exactly the seeds at which the original two strings coincide.

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

The symmetric linearity round with a fixed basis and role assignment and equal original strings. The check, common string and dummy remain independent and uniform.

theorem Cslib.PCP.rejection_pauliBraidingDiagonalGame_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) (roles basis : Bool) (answer : PauliBraidingQuestion n Q → PauliBraidingQuestion n Q → PMF ((Bool × Bool ⊕ A) × (Bool × Bool ⊕ A))) :
(1 - (pauliBraidingDiagonalGame n G special decode roles basis).answersWinProb answer) / (4 * ↑(Fintype.card (Fin n → Bool))) ≤ 1 - (pauliBraidingBranchGame n G special decode 0).answersWinProb answer

For a fixed role and basis, the diagonal round's rejection contributes its actual sampling mass to the rejection probability of the linearity branch.

theorem Cslib.PCP.expect_le_of_pauliBraidingDiagonal_checks {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] (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) 𝒜) (bad : (Fin n → Bool) → (Fin n → Bool) → ℝ) (hlocal : ∀ (a dummy : Fin n → Bool), have game := pauliBraidingDiagonalGame n G special decode roles basis; have loss := fun (k : Fin 3) => 1 - { seed := PMF.pure (k, a, dummy), query := game.query, accepts := game.accepts }.commutingWinProb S; bad a dummy ≤ loss 0 + loss 1 + loss 2) :
(Finset.univ.expect fun (a : Fin n → Bool) => Finset.univ.expect fun (dummy : Fin n → Bool) => bad a dummy) / ↑(Fintype.card (Fin n → Bool)) ≤ 12 * (1 - (pauliBraidingBranchGame n G special decode 0).commutingWinProb S)

Average a pointwise bound by the three check losses at the sampling weight of a duplicated pair with fixed roles and basis.

theorem Cslib.PCP.prob_bad_le_of_pauliBraidingDiagonal_checks {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] (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) 𝒜) (a dummy : Fin n → Bool) (k l : Fin 3) (read : Bool × Bool → Bool) (hquery : linearityQuery k a a = linearityQuery l a a) (hcheck : ∀ (bits : Bool × Bool), read bits = true → linearityCheck k bits ≠ linearityCheck l bits) :
have game := pauliBraidingDiagonalGame n G special decode roles basis; have logical := bif roles then S.swap else S; have question := PauliBraidingQuestion.basis basis (a, a); have loss := fun (i : Fin 3) => 1 - { seed := PMF.pure (i, a, dummy), query := game.query, accepts := game.accepts }.commutingWinProb S; Quantum.Measurement.prob logical.state (Quantum.Measurement.map (Sum.elim read fun (x : A) => false) (logical.alice question)) true ≤ loss k + loss l

Two checks with the same visible questions charge the probability of any pair answer on which their required bits differ to the sum of their rejection probabilities.

theorem Cslib.PCP.expect_prob_mismatch_pauliBraidingDiagonal_le {n : ℕ} [Nonempty (Fin n)] {Q : Type u_1} {A : Type u_2} {𝒜 : Type u_3} [Fintype A] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] (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 logical := bif roles then S.swap else S; (Finset.univ.expect fun (a : Fin n → Bool) => Quantum.Measurement.prob logical.state (Quantum.Measurement.map (Sum.elim (fun (bits : Bool × Bool) => bits.1 ^^ bits.2) fun (x : A) => false) (logical.alice (PauliBraidingQuestion.basis basis (a, a)))) true) / ↑(Fintype.card (Fin n → Bool)) ≤ 12 * (1 - (pauliBraidingBranchGame n G special decode 0).commutingWinProb S)

If the two bits of the duplicated pair answer differ, at least one of the two equality checks rejects. The average mismatch is weighted by the uniform mass of a tie.