Documentation

CslibFrontier.Computability.PCP.TwoProverGame.ConsistencyTest

Agreement tests on decoded bits #

A seeded agreement test compares one bit decoded from each player's answer. The seed determines the questions and how to decode the answers. Failure bounds the average squared distance of the two binary observables obtained from the players' measurements by those decoders. This formalizes the round-by-round agreement estimate used in the proof of Natarajan and Vidick, §4.3.1, Lemma 17 (arXiv:1610.03574v1, p. 21). The generic bound takes the seed distribution and the decoders as parameters. Its first application fixes one basis and the players' roles, samples an odd pair uniformly, and compares the corresponding coordinate of the pair answer with the special-question answer. The passage to the averaged observables of their equation (11) and the complete verifier are tracked in cslib-community/cslib-frontier#6149.

Main definitions #

Main results #

def Cslib.PCP.SeededGame.bitAgreement {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} (seed : PMF R) (query : R → X × Y) (decodeAlice : R → A → Bool) (decodeBob : R → B → Bool) :
SeededGame R X Y A B

Draw a private seed, send its two questions, and accept if the decoded bits agree.

@[instance_reducible]
instance Cslib.PCP.SeededGame.instDecidableAcceptsBitAgreement {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} (seed : PMF R) (query : R → X × Y) (decodeAlice : R → A → Bool) (decodeBob : R → B → Bool) (r : R) (a : A) (b : B) :
Decidable ((bitAgreement seed query decodeAlice decodeBob).accepts r a b)
theorem Cslib.PCP.SeededGame.sum_norm_sub_sq_le_of_bitAgreement {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {𝒜 : Type u_6} [Fintype A] [Fintype B] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [Fintype R] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] (seed : PMF R) (query : R → X × Y) (decodeAlice : R → A → Bool) (decodeBob : R → B → Bool) (S : CommutingStrategy X Y A B 𝒜) :
∑ r : R, (seed r).toReal * S.state.norm ((Quantum.Measurement.map (decodeAlice r) (S.alice (query r).1)).observable - (Quantum.Measurement.map (decodeBob r) (S.bob (query r).2)).observable) ^ 2 ≤ 4 * (1 - (bitAgreement seed query decodeAlice decodeBob).commutingWinProb S)

The seed-weighted squared distance of the decoded observables is at most four times the probability that the verifier rejects. The estimate applies also to nonprojective measurements.

theorem Cslib.PCP.SeededGame.sum_norm_sub_sq_le_of_accepts_imp_eq {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} {𝒜 : Type u_6} [Fintype A] [Fintype B] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [Fintype R] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] (G : SeededGame R X Y A B) (decodeAlice : R → A → Bool) (decodeBob : R → B → Bool) (haccept : ∀ (r : R) (a : A) (b : B), G.accepts r a b → decodeAlice r a = decodeBob r b) (S : CommutingStrategy X Y A B 𝒜) :
∑ r : R, (G.seed r).toReal * S.state.norm ((Quantum.Measurement.map (decodeAlice r) (S.alice (G.query r).1)).observable - (Quantum.Measurement.map (decodeBob r) (S.bob (G.query r).2)).observable) ^ 2 ≤ 4 * (1 - G.commutingWinProb S)

If every accepted answer pair has equal decoded bits, the same squared-distance bound holds with the original verifier's rejection probability. The verifier may also reject some agreeing answers, for example when an answer has the wrong tag.

structure Cslib.PCP.PauliConsistencyQuestion (ι : Type u_7) :
Type u_7

A question for the fixed-role special-question consistency test.

  • xString : ι → Bool

    The bit string for the first coordinate, checked in the X basis.

  • zString : ι → Bool

    The bit string for the second coordinate, checked in the Z basis.

  • basis : Bool

    The basis of the check: false for X and true for Z.

The bit of the pair answer checked in the question's basis.

def Cslib.PCP.PauliConsistencyQuestion.ofChecked {ι : Type u_7} (basis : Bool) (checked dummy : ι → Bool) :

Form the question in X–Z coordinate order from the basis, checked string and dummy string.

A fixed-role special-question consistency round, with the odd pair sampled uniformly. Both questions carry the same pair and basis. The pair player returns two bits and the special-question player returns one. The verifier checks the first bit for the X basis (false) and the second for the Z basis (true).

theorem Cslib.PCP.expect_norm_sub_sq_le_of_pauliSpecialQuestionTest {𝒜 : Type u_6} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] {ι : Type u_7} [Fintype ι] [DecidableEq ι] [Nonempty ι] [StarModule ℂ 𝒜] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] (basis : Bool) (S : CommutingStrategy (PauliConsistencyQuestion ι) (PauliConsistencyQuestion ι) (Bool × Bool) Bool 𝒜) :
(Finset.univ.expect fun (p : ↥(BitString.oddPairs ι)) => have q := { xString := (↑p).1, zString := (↑p).2, basis := basis }; S.state.norm ((Quantum.Measurement.map q.checkedBit (S.alice q)).observable - (S.bob q).observable) ^ 2) ≤ 4 * (1 - (pauliSpecialQuestionTest ι basis).commutingWinProb S)

In the matched-basis special-question rounds, the conditional average squared distance between the checked pair marginal and the special-question observable is at most four times the rejection probability. This is a step toward the special-question estimates in Natarajan and Vidick, §4.3.1, Lemma 17. It concerns the marginal at the sampled pair; the source's observables also average over the other question coordinate.