Documentation

CslibFrontier.Computability.PCP.TwoProverGame.AnchoredConditionalStates

Conditional checked-answer states of the anchored experiment #

Once the selected pair and the remaining question information are fixed, the hidden local questions are independent. The norm of the averaged checked-answer branch therefore measures the probability of the checked answers in the actual anchored experiment.

This identifies the fixed-question normalization in Bavarian, Vidick and Yuen, Proposition 4.9, equation (20).

Main results #

noncomputable def Cslib.PCP.AnchoredDependency.aliceQuestionsGivenRest {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)) (j : { i : Fin n // i ∉ C }) (t : RestQuestions (Option X) (Option Y) C j) (q : Option X × Option Y) :
PMF (Fin n → Option X)

The Alice question tuple law at fixed remaining information and selected question pair.

noncomputable def Cslib.PCP.AnchoredDependency.bobQuestionsGivenRest {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)) (j : { i : Fin n // i ∉ C }) (t : RestQuestions (Option X) (Option Y) C j) (q : Option X × Option Y) :
PMF (Fin n → Option Y)

The Bob question tuple law at fixed remaining information and selected question pair.

theorem Cslib.PCP.AnchoredDependency.questionsGivenRest_eq_bind {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)) (j : { i : Fin n // i ∉ C }) (t : RestQuestions (Option X) (Option Y) C j) (q : Option X × Option Y) (ht : t ∈ (restQuestionsLaw G α C j).support) :
questionsGivenRest G α C j t q = (aliceQuestionsGivenRest G α C j t q).bind fun (x : Fin n → Option X) => PMF.map (fun (y : Fin n → Option Y) (i : Fin n) => (x i, y i)) (bobQuestionsGivenRest G α C j t q)

The two parties' entire question tuples are independent given the retained information and the selected pair.

noncomputable def Cslib.PCP.AnchoredDependency.checkedVectorGivenRest {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) ι κ) (j : { i : Fin n // i ∉ C }) (t : RestQuestions (Option X) (Option Y) C j) (q : Option X × Option Y) (a : ↥C → A) (b : ↥C → B) :

The branch vector selected by the checked answers, with the retained information and the selected question pair held fixed.

theorem Cslib.PCP.AnchoredDependency.norm_checkedVectorGivenRest_sq_answers {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) ι κ) (j : { i : Fin n // i ∉ C }) (t : RestQuestions (Option X) (Option Y) C j) (q : Option X × Option Y) (a : ↥C → A) (b : ↥C → B) (ht : t ∈ (restQuestionsLaw G α C j).support) :
‖checkedVectorGivenRest G α C S j t q a b‖ ^ 2 = ((answersGivenRest G α C S j t q) fun (i : ↥C) => (a i, b i)).toReal

The branch weight is the point mass of the reconstructed answer kernel.

theorem Cslib.PCP.AnchoredDependency.norm_checkedVectorGivenRest_sq {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) ι κ) (j : { i : Fin n // i ∉ C }) (t : RestQuestions (Option X) (Option Y) C j) (q : Option X × Option Y) (a : ↥C → A) (b : ↥C → B) (ht : t ∈ (restQuestionsLaw G α C j).support) :
‖checkedVectorGivenRest G α C S j t q a b‖ ^ 2 = ((Probability.PMF.conditionalSnd (PMF.map (fun (r : ParallelRepetition.Shared (Option X) (Option Y) A B C j) => (restQuestions C j r, r.answers)) (restKernel G α C S j q)) t) fun (i : ↥C) => (a i, b i)).toReal

The squared norm of the branch is the probability of the checked answers conditional on the retained questions and messages in the experiment with the selected pair fixed.

noncomputable def Cslib.PCP.AnchoredDependency.observedCheckedAnswersBy {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)) {O : Type u_7} (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) (j : { i : Fin n // i ∉ C }) (observe : (Option X ⊕ Option Y) × Option X × Option Y → O) :
PMF ((O × RestQuestions (Option X) (Option Y) C j) × (↥C → A × B))

Keep a chosen observation of the selected trial, together with the retained question information and the checked answers from the original transcript.

theorem Cslib.PCP.AnchoredDependency.observedCheckedAnswersBy_eq_bind {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)) {O : Type u_7} (S : QuantumStrategy (Fin n → Option X) (Fin n → Option Y) (Fin n → A) (Fin n → B) ι κ) (j : { i : Fin n // i ∉ C }) (observe : (Option X ⊕ Option Y) × Option X × Option Y → O) :
observedCheckedAnswersBy G α C S j observe = (law G.questions α).bind fun (trial : (Option X ⊕ Option Y) × Option X × Option Y) => (restQuestionsLaw G α C j).bind fun (t : RestQuestions (Option X) (Option Y) C j) => PMF.map (fun (x : ↥C → A × B) => ((observe trial, t), x)) (answersGivenRest G α C S j t trial.2)

Disintegrate the original checked answers by the selected trial and retained information, then apply the requested observation to the selected trial.

noncomputable def Cslib.PCP.AnchoredDependency.observedCheckedAnswers {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) ι κ) (j : { i : Fin n // i ∉ C }) :
PMF (((Option X × Option Y) × RestQuestions (Option X) (Option Y) C j) × (↥C → A × B))

Keep the selected question pair as the observation of the selected trial.

theorem Cslib.PCP.AnchoredDependency.norm_checkedVectorGivenRest_sq_observed {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) ι κ) (j : { i : Fin n // i ∉ C }) (t : RestQuestions (Option X) (Option Y) C j) (q : Option X × Option Y) (a : ↥C → A) (b : ↥C → B) (ht : t ∈ (restQuestionsLaw G α C j).support) (hq : q ∈ (PMF.map Prod.snd (law G.questions α)).support) :
‖checkedVectorGivenRest G α C S j t q a b‖ ^ 2 = ((Probability.PMF.conditionalSnd (observedCheckedAnswers G α C S j) (q, t)) fun (i : ↥C) => (a i, b i)).toReal

The effect-based branch weight agrees with the conditional answer probability in the original sampler, given the selected question pair and retained question information.