Documentation

CslibFrontier.Computability.PCP.TwoProverGame.Seeded

Two-prover games with private verifier randomness #

In a Cslib.PCP.TwoProverGame the verifier's decision depends only on the questions and the answers. Many verifiers keep randomness of their own: the linearity test selects which check to run, the Pauli braiding test selects a subtest and a role for each player, and when two choices of the private randomness produce the same questions, the verifier may still decide differently. A seeded game (Cslib.PCP.SeededGame) records this: the verifier draws a seed r ∼ seed, sends the questions query r, and accepts the answers (a, b) when accepts r a b. The players see only the questions.

The winning probability of answer distributions ans x y (Cslib.PCP.SeededGame.answersWinProb), and so of tensor-product and commuting-operator strategies (Cslib.PCP.SeededGame.quantumWinProb, Cslib.PCP.SeededGame.commutingWinProb), is the probability that the verifier accepts; for finite seeds and answers it is ∑_r Pr[r] ∑_{a,b} [accepts r a b] Pr[(a, b) | query r] (Cslib.PCP.SeededGame.answersWinProb_eq_sum, Cslib.PCP.SeededGame.commutingWinProb_eq_sum). Every two-prover game is a seeded game with the questions as the seed (Cslib.PCP.TwoProverGame.toSeeded), with the same winning probabilities (Cslib.PCP.TwoProverGame.answersWinProb_toSeeded).

Main definitions #

Main results #

noncomputable def Cslib.PCP.SeededGame.quantumWinProb {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} (G : SeededGame R X Y A B) [Fintype A] [Fintype B] {ι : Type u_6} {κ : Type u_7} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y A B ι κ) :

The probability that the tensor-product strategy S wins G.

noncomputable def Cslib.PCP.SeededGame.commutingWinProb {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} (G : SeededGame R X Y A B) {𝒜 : Type u_6} [Fintype A] [Fintype B] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] (S : CommutingStrategy X Y A B 𝒜) :

The probability that the commuting-operator strategy S wins G.

theorem Cslib.PCP.SeededGame.commutingWinProb_eq_sum {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} (G : SeededGame R X Y A B) {𝒜 : Type u_6} [Fintype A] [Fintype B] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] [Fintype R] [(r : R) → (a : A) → (b : B) → Decidable (G.accepts r a b)] (S : CommutingStrategy X Y A B 𝒜) :
G.commutingWinProb S = ∑ r : R, (G.seed r).toReal * ∑ a : A, ∑ b : B, if G.accepts r a b then S.prob (G.query r).1 (G.query r).2 a b else 0

The winning probability of a commuting-operator strategy: ∑_r Pr[r] ∑_{a,b} [accepts r a b] Re φ(P_x^a Q_y^b) with (x, y) = query r.

theorem Cslib.PCP.SeededGame.commutingWinProb_eq_expect_of_uniform {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} (G : SeededGame R X Y A B) {𝒜 : Type u_6} [Fintype A] [Fintype B] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] [Fintype R] [Nonempty R] [(r : R) → (a : A) → (b : B) → Decidable (G.accepts r a b)] (h : G.seed = Probability.PMF.uniformOfFintype R) (S : CommutingStrategy X Y A B 𝒜) :
G.commutingWinProb S = Finset.univ.expect fun (r : R) => ∑ a : A, ∑ b : B, if G.accepts r a b then S.prob (G.query r).1 (G.query r).2 a b else 0

With a uniform private seed, the winning probability is the average of the conditional acceptance probabilities.

theorem Cslib.PCP.SeededGame.one_sub_commutingWinProb_pure_seed {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} (G : SeededGame R X Y A B) {𝒜 : Type u_6} [Fintype A] [Fintype B] [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] (r : R) [(a : A) → (b : B) → Decidable (G.accepts r a b)] (S : CommutingStrategy X Y A B 𝒜) :
1 - { seed := PMF.pure r, query := G.query, accepts := G.accepts }.commutingWinProb S = ∑ a : A, ∑ b : B, if G.accepts r a b then 0 else S.prob (G.query r).1 (G.query r).2 a b

Rejection at a specified private seed is the sum of the probability of every rejected answer pair on that seed's questions.

theorem Cslib.PCP.SeededGame.commutingWinProb_toCommuting {R : Type u_1} {X : Type u_2} {Y : Type u_3} {A : Type u_4} {B : Type u_5} (G : SeededGame R X Y A B) [Fintype A] [Fintype B] {ι : Type u_6} {κ : Type u_7} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y A B ι κ) :

A tensor-product strategy and its commuting-operator form win with the same probability.

theorem Cslib.PCP.TwoProverGame.answersWinProb_toSeeded {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} (G : TwoProverGame X Y A B) (ans : X → Y → PMF (A × B)) :

A two-prover game and its seeded form have the same winning probabilities.