Documentation

CslibFrontier.Computability.PCP.TwoProverGame.CheckedAnswerRegister

Checked-answer states with a retained question register #

Sample a classical label carrying the transcript and Bob's question, then sample the full local questions independently given that label. Retain the label and both checked answers while discarding Bob's quantum register. The state restricted to a label-dependent answer event has trace equal to the actual probability of the event.

Its normalized state has relative entropy at most the logarithm of the number of answer labels minus the logarithm of the event probability, relative to the product reference with uniform answers. This combines the operator comparison and postselection cost used in Bavarian, Vidick and Yuen, Claim 5.13.

Main definitions #

Main results #

noncomputable def Cslib.PCP.QuantumStrategy.checkedAnswersWithLabel {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (p : L → PMF X) (r : PMF L) (q : L → PMF Y) :
PMF (L × (↥C → A) × (↥C → B))

The joint law obtained by sampling a label and then running the independently averaged checked-answer experiment at that label.

theorem Cslib.PCP.QuantumStrategy.checkedAnswersWithLabel_apply {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (p : L → PMF X) (r : PMF L) (q : L → PMF Y) (z : L × (↥C → A) × (↥C → B)) :
(S.checkedAnswersWithLabel C p r q) z = r z.1 * ((p z.1).bind fun (x : X) => (q z.1).bind fun (t : Y) => S.checkedAnswers C x t) z.2

The joint mass is the label mass times the conditional checked-answer mass.

noncomputable def Cslib.PCP.QuantumStrategy.checkedAnswerRegister {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] [Fintype Y] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (p : L → PMF X) (r : PMF L) (q : L → PMF Y) (W : L → Set ((↥C → A) × (↥C → B))) :
Matrix (ι × L × (↥C → A) × (↥C → B)) (ι × L × (↥C → A) × (↥C → B)) ℂ

The checked-answer operator retains Bob's label and both checked answers as classical registers. The event is applied before normalization, so excluded branches are zero blocks.

noncomputable def Cslib.PCP.QuantumStrategy.checkedAnswerProductReference {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (p : L → PMF X) (r : PMF L) :
Matrix (ι × L × (↥C → A) × (↥C → B)) (ι × L × (↥C → A) × (↥C → B)) ℂ

At each label the reference uses the nonselective Alice marginal and an independent uniform answer register. It is normalized when the answer alphabet is nonempty.

theorem Cslib.PCP.QuantumStrategy.checkedAnswerRegister_apply {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] [Fintype Y] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (p : L → PMF X) (r : PMF L) (q : L → PMF Y) (W : L → Set ((↥C → A) × (↥C → B))) (i j : ι) (y : L) (a : ↥C → A) (b : ↥C → B) (z' : L × (↥C → A) × (↥C → B)) :
S.checkedAnswerRegister C p r q W (i, y, a, b) (j, z') = if (y, a, b) = z' ∧ (a, b) ∈ W y then (r y).toReal • Quantum.partialTraceRight (Quantum.pureState (S.averagedCheckedVector C (p y) (q y) a b)) i j else 0

Only equal classical labels in the retained event contribute a matrix entry.

theorem Cslib.PCP.QuantumStrategy.checkedAnswerProductReference_apply {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) (p : L → PMF X) (r : PMF L) (i j : ι) (z z' : L × (↥C → A) × (↥C → B)) :
S.checkedAnswerProductReference C p r (i, z) (j, z') = if z = z' then ((r z.1).toReal / ↑(Fintype.card ((↥C → A) × (↥C → B)))) • S.averagedCheckedMarginalAlice C (p z.1) i j else 0

In each classical block the reference uses the Alice state at that label and assigns equal weight to every checked answer.

theorem Cslib.PCP.QuantumStrategy.posSemidef_checkedAnswerRegister {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] [Fintype Y] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Finite L] (p : L → PMF X) (r : PMF L) (q : L → PMF Y) (W : L → Set ((↥C → A) × (↥C → B))) :

The retained state is positive before and after restricting the accepted answers.

theorem Cslib.PCP.QuantumStrategy.isDensityMatrix_checkedAnswerProductReference {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype L] [Nonempty (↥C → A)] [Nonempty (↥C → B)] (p : L → PMF X) (r : PMF L) :

The product reference has trace one when there is a possible checked answer.

theorem Cslib.PCP.QuantumStrategy.trace_checkedAnswerRegister {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] [Fintype Y] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype L] (p : L → PMF X) (r : PMF L) (q : L → PMF Y) (W : L → Set ((↥C → A) × (↥C → B))) :
(S.checkedAnswerRegister C p r q W).trace.re = ((S.checkedAnswersWithLabel C p r q).toOuterMeasure {z : L × (↥C → A) × (↥C → B) | z.2 ∈ W z.1}).toReal

The trace of the restricted register is the probability of the retained answers under the original question draws and the strategy's checked-answer law.

theorem Cslib.PCP.QuantumStrategy.checkedAnswerRegister_le_card_smul {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] [Fintype Y] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Finite L] (p : L → PMF X) (r : PMF L) (q : L → PMF Y) (W : L → Set ((↥C → A) × (↥C → B))) :
S.checkedAnswerRegister C p r q W ≤ ↑(Fintype.card ((↥C → A) × (↥C → B))) • S.checkedAnswerProductReference C p r

Each retained branch is bounded by the Alice marginal at that label times its weight. Making the checked answers uniform in the product reference costs exactly their cardinality.

theorem Cslib.PCP.QuantumStrategy.relativeEntropy_normalize_checkedAnswerRegister_le {τ : Type u_1} {X : Type u_2} {Y : Type u_3} {L : Type u_4} {A : Type u_5} {B : Type u_6} {ι : Type u_7} {κ : Type u_8} [Fintype τ] [DecidableEq τ] [Fintype A] [Fintype B] [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [Fintype X] [Fintype Y] (S : QuantumStrategy X Y (τ → A) (τ → B) ι κ) (C : Finset τ) [Fintype L] [DecidableEq L] [DecidableEq A] [DecidableEq B] [Nonempty (↥C → A)] [Nonempty (↥C → B)] (p : L → PMF X) (r : PMF L) (q : L → PMF Y) (W : L → Set ((↥C → A) × (↥C → B))) (hW : 0 < ((S.checkedAnswersWithLabel C p r q).toOuterMeasure {z : L × (↥C → A) × (↥C → B) | z.2 ∈ W z.1}).toReal) :
Quantum.relativeEntropy (Quantum.normalizeDensity (S.checkedAnswerRegister C p r q W)) (S.checkedAnswerProductReference C p r) ≤ ↑(Real.log ↑(Fintype.card ((↥C → A) × (↥C → B))) - Real.log ((S.checkedAnswersWithLabel C p r q).toOuterMeasure {z : L × (↥C → A) × (↥C → B) | z.2 ∈ W z.1}).toReal)

Conditioning on a positive-probability event in the checked answers costs its negative log probability. Keeping the checked answers in the state costs at most the logarithm of their alphabet size. Bob's classical question label remains present in both states.