Documentation

CslibFrontier.Computability.PCP.TwoProverGame.AnchoredConditioning

Conditioning the repeated anchored experiment on wins #

A transcript records the questions and answers in a checked set of coordinates and the noisy messages on the other coordinates. The question pairs on the unchecked coordinates are drawn independently given the messages, before sampling the strategy's answers. The shared coordinate record from Holenstein's argument stores the noisy messages in its halves field.

The first two assertions of Bavarian, Vidick and Yuen, Lemma 4.6 (arXiv:1509.07466v2, §4.3) follow from the library's Raz and Holenstein bounds. We state the first in squared-sum form, as in the source proof, and the second as a sum over unchecked coordinates. The bound uses natural logarithms and the statistical distance of PMFs, so the Pinsker factor is 1 / 2.

noncomputable def Cslib.PCP.AnchoredDependency.infoLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {n : ℕ} [Fintype X] [Fintype Y] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) :

Draw the checked questions and the free-coordinate messages independently.

noncomputable def Cslib.PCP.AnchoredDependency.pairGiven {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {n : ℕ} (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (j : { i : Fin n // i ∉ C }) (t : ParallelRepetition.Revealed (Option X) (Option Y) C) :

The prior question-pair law at an unchecked coordinate given the revealed information.

noncomputable def Cslib.PCP.AnchoredDependency.checkedAnswerLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) (q : Fin n → Option X × Option Y) :
PMF (↥C → A × B)

The law of the checked answers at a full tuple of questions.

noncomputable def Cslib.PCP.AnchoredDependency.sideKernel {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype X] [Fintype Y] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) (t : ParallelRepetition.Revealed (Option X) (Option Y) C) :
PMF (({ i : Fin n // i ∉ C } → Option X × Option Y) × (↥C → A × B))

Sample the unchecked pairs given the revealed information and retain the strategy's answers on the checked coordinates.

theorem Cslib.PCP.AnchoredDependency.map_fst_sideKernel {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype X] [Fintype Y] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) (t : ParallelRepetition.Revealed (Option X) (Option Y) C) :
PMF.map Prod.fst (sideKernel G α C S t) = Probability.PMF.pi fun (j : { i : Fin n // i ∉ C }) => pairGiven G α C j t

Before looking at the answers, the unchecked pairs are independent given the messages.

noncomputable def Cslib.PCP.AnchoredDependency.transcriptLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype X] [Fintype Y] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) :
PMF ((ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) × ({ i : Fin n // i ∉ C } → Option X × Option Y))

The joint law of the transcript and the unchecked questions.

def Cslib.PCP.AnchoredDependency.winsOnChecked {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {n : ℕ} (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) :
Set ((ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) × ({ i : Fin n // i ∉ C } → Option X × Option Y))

The verifier accepts every coordinate in the checked set.

def Cslib.PCP.AnchoredDependency.freeTrials {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {n : ℕ} (C : Finset (Fin n)) (r : (ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) × ({ i : Fin n // i ∉ C } → Option X × Option Y)) :
{ i : Fin n // i ∉ C } → (Option X ⊕ Option Y) × Option X × Option Y

Discard the checked data, keeping the message and pair at every unchecked coordinate.

noncomputable def Cslib.PCP.AnchoredDependency.completeTranscript {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) (checked : ↥C → Option X × Option Y) (u : { i : Fin n // i ∉ C } → (Option X ⊕ Option Y) × Option X × Option Y) :
PMF ((ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) × ({ i : Fin n // i ∉ C } → Option X × Option Y))

Attach the checked answers after sampling the checked questions and the unchecked trials.

theorem Cslib.PCP.AnchoredDependency.transcriptLaw_eq_complete {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype X] [Fintype Y] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) :
transcriptLaw G α C S = (Probability.PMF.pi fun (x : ↥C) => (G.anchored α).questions).bind fun (checked : ↥C → Option X × Option Y) => (Probability.PMF.pi fun (x : { i : Fin n // i ∉ C }) => law G.questions α).bind (completeTranscript C S checked)

The transcript can equally be sampled by independent trials followed by the strategy's checked answers.

theorem Cslib.PCP.AnchoredDependency.map_checked_freeTrials_transcriptLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype X] [Fintype Y] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) :
PMF.map (fun (r : (ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) × ({ i : Fin n // i ∉ C } → Option X × Option Y)) => match r with | ((t, snd), snd_1) => (t.questions, freeTrials C r)) (transcriptLaw G α C S) = (Probability.PMF.pi fun (x : ↥C) => (G.anchored α).questions).bind fun (checked : ↥C → Option X × Option Y) => PMF.map (fun (x : { i : Fin n // i ∉ C } → (Option X ⊕ Option Y) × Option X × Option Y) => (checked, x)) (Probability.PMF.pi fun (x : { i : Fin n // i ∉ C }) => law G.questions α)

Before conditioning on wins, the checked questions and all unchecked trials are independent, with their original laws.

theorem Cslib.PCP.AnchoredDependency.map_freeTrials_transcriptLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype X] [Fintype Y] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) :
PMF.map (freeTrials C) (transcriptLaw G α C S) = Probability.PMF.pi fun (x : { i : Fin n // i ∉ C }) => law G.questions α

The unchecked message-and-question triples have the independent prior law.

theorem Cslib.PCP.AnchoredDependency.map_questionPairs_transcriptLaw {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype X] [Fintype Y] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) :
PMF.map (fun (r : (ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) × ({ i : Fin n // i ∉ C } → Option X × Option Y)) => match (motive := (ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) × ({ i : Fin n // i ∉ C } → Option X × Option Y) → Fin n → Option X × Option Y) r with | ((t, snd), u) => t.combine u) (transcriptLaw G α C S) = Probability.PMF.pi fun (x : Fin n) => (G.anchored α).questions

Recombining the two sets of question coordinates recovers the independent question-pair sequence of the repeated verifier.

theorem Cslib.PCP.AnchoredDependency.sum_dist_questions_given_wins_le {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype X] [Fintype Y] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) (hW : ∃ r ∈ winsOnChecked G α C, r ∈ (transcriptLaw G α C S).support) :
let P := transcriptLaw G α C S; let W := winsOnChecked G α C; have Q := P.filter W hW; ∑ j : { i : Fin n // i ∉ C }, dist (PMF.map (fun (r : (ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) × ({ i : Fin n // i ∉ C } → Option X × Option Y)) => (r.1, r.2 j)) Q) ((PMF.map Prod.fst Q).bind fun (x : ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) => match x with | (t, v) => PMF.map (fun (x : Option X × Option Y) => ((t, v), x)) (pairGiven G α C j t)) ≤ √(↑(Fintype.card { i : Fin n // i ∉ C }) * Real.log (↑(Fintype.card (↥C → A × B)) / (P.toOuterMeasure W).toReal) / 2)

BVY Lemma 4.6(2) in summed form. Conditioned on winning the checked coordinates, the questions at an unchecked coordinate are close, on average, to a draw from the prior conditional law given its message, with the transcript held fixed.

theorem Cslib.PCP.AnchoredDependency.sum_sq_dist_freeTrials_given_wins_le {X : Type u_1} {Y : Type u_2} {A : Type u_3} {B : Type u_4} {ι : Type u_5} {κ : Type u_6} {n : ℕ} [Fintype X] [Fintype Y] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (G : TwoProverGame X Y A B) (α : ↑unitInterval) (C : Finset (Fin n)) (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) (hW : ∃ r ∈ winsOnChecked G α C, r ∈ (transcriptLaw G α C S).support) :
let P := transcriptLaw G α C S; let W := winsOnChecked G α C; ∑ j : { i : Fin n // i ∉ C }, dist (PMF.map (fun (r : (ParallelRepetition.Revealed (Option X) (Option Y) C × (↥C → A × B)) × ({ i : Fin n // i ∉ C } → Option X × Option Y)) => freeTrials C r j) (P.filter W hW)) (law G.questions α) ^ 2 ≤ Real.log (1 / (P.toOuterMeasure W).toReal) / 2

BVY Lemma 4.6(1) in the squared-sum form used in its proof.