Documentation

CslibFrontier.Computability.PCP.TwoProverGame.LinearSystem

Linear constraint system games #

A binary linear constraint system (Cslib.PCP.LinearSystem) has equations e over Boolean variables V: the variables in support e must have parity parity e. Its game (Cslib.PCP.LinearSystem.game), for a distribution μ of pairs of an equation and a variable, asks Alice for an assignment satisfying the equation e and Bob for the value of the variable v, and accepts when Alice's assignment satisfies e and agrees with Bob's bit on v whenever v occurs in e. These are the binary constraint system games of Cleve and Mittal, §1 (arXiv:1209.2729v1, p. 2), which ask a uniformly random equation and a uniformly random variable of it; here the question distribution is arbitrary. The magic square is the system of its six rows and columns.

An operator solution (Cslib.PCP.LinearSystem.OperatorSolution) replaces the variables by ±1 observables: self-adjoint involutions commuting within every equation, whose product over each equation is the sign (-1)^{parity e}. A satisfying assignment is an operator solution in ℂ, but there are systems, such as the magic square, with operator solutions and no satisfying assignment.

Operator solutions give perfect strategies. The verification step holds in every commuting-operator model: if Alice measures each equation jointly in an operator solution X (Cslib.Quantum.Measurement.ofCommuting) and Bob measures each variable v by an observable Y_v commuting with Alice's and agreeing perfectly with X_v in the shared state, they win with probability 1 for every question distribution (Cslib.PCP.LinearSystem.OperatorSolution.commutingWinProb_strategy_of_agreement). Outcomes violating the equation vanish because of the product relation (Cslib.Quantum.jointProj_eq_zero), and disagreement on v vanishes after exchanging Bob's Y_v for Alice's X_v inside the state (Cslib.Quantum.AlgState.apply_mul_signProj_eq_of_approx_zero).

For a finite-dimensional operator solution X in M_ι(ℂ), the construction of Cleve and Mittal, §2 (arXiv:1209.2729v1, p. 3) supplies Bob and the state: on the maximally entangled state of ℂ^ι ⊗ ℂ^ι, Alice measures with X_v ⊗ 1 and Bob measures v by 1 ⊗ X_vᵀ (Cslib.PCP.LinearSystem.OperatorSolution.maxEntangledStrategy), and the transpose trick (Cslib.Quantum.AlgState.kroneckerOne_approx_oneKronecker_transpose) gives the perfect agreement. So every finite-dimensional operator solution, from its matrices alone, wins with probability 1 for every question distribution (Cslib.PCP.LinearSystem.OperatorSolution.commutingWinProb_maxEntangledStrategy): the direction "operator solution ⇒ perfect strategy" of Cleve and Mittal, for arbitrary question distributions. Alice's observables are the images of X under M ↦ M ⊗ 1 (Cslib.PCP.LinearSystem.OperatorSolution.map). A satisfying assignment gives the scalar operator solution (-1)^{s_v} in ℂ (Cslib.PCP.LinearSystem.OperatorSolution.ofAssignment).

Main definitions #

Main results #

References #

structure Cslib.PCP.LinearSystem (V : Type u_3) (E : Type u_4) :
Type (max u_3 u_4)

A binary linear constraint system: each equation e asks that the variables in support e have parity parity e.

  • support : E → Finset V

    The variables of the equation e.

  • parity : E → Bool

    The required parity of the equation e.

def Cslib.PCP.LinearSystem.Satisfies {V : Type u_1} {E : Type u_2} (L : LinearSystem V E) (e : E) (a : V → Bool) :

The assignment a satisfies the equation e.

Instances For
    @[instance_reducible]
    instance Cslib.PCP.LinearSystem.instDecidableSatisfies {V : Type u_1} {E : Type u_2} (L : LinearSystem V E) (e : E) (a : V → Bool) :
    noncomputable def Cslib.PCP.LinearSystem.game {V : Type u_1} {E : Type u_2} (L : LinearSystem V E) (μ : PMF (E × V)) :
    TwoProverGame E V (V → Bool) Bool

    The game of a linear constraint system with question distribution μ: Alice receives an equation and answers an assignment, Bob receives a variable and answers a bit; they win when the assignment satisfies the equation and agrees with Bob's bit on the variable, if it occurs.

    @[instance_reducible]
    instance Cslib.PCP.LinearSystem.instDecidableAcceptsForallBoolGameOfDecidableEq {V : Type u_1} {E : Type u_2} (L : LinearSystem V E) (μ : PMF (E × V)) (e : E) (v : V) (a : V → Bool) (b : Bool) [DecidableEq V] :
    Decidable ((L.game μ).accepts e v a b)
    structure Cslib.PCP.LinearSystem.OperatorSolution {V : Type u_1} {E : Type u_2} (L : LinearSystem V E) (𝒜 : Type u_3) [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] :
    Type (max u_1 u_3)

    An operator solution of a linear constraint system: ±1 observables commuting within every equation, whose product over the equation e is (-1)^{parity e}.

    def Cslib.PCP.LinearSystem.OperatorSolution.eqOp {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {𝒜 : Type u_3} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] (X : L.OperatorSolution 𝒜) (e : E) :
    ↥(L.support e) → 𝒜

    The observables of the equation e.

    theorem Cslib.PCP.LinearSystem.OperatorSolution.eqOp_commute {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {𝒜 : Type u_3} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] (X : L.OperatorSolution 𝒜) (e : E) (u w : ↥(L.support e)) :
    Commute (X.eqOp e u) (X.eqOp e w)
    theorem Cslib.PCP.LinearSystem.OperatorSolution.eqOp_isSelfAdjoint {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {𝒜 : Type u_3} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] (X : L.OperatorSolution 𝒜) (e : E) (u : ↥(L.support e)) :
    theorem Cslib.PCP.LinearSystem.OperatorSolution.eqOp_mul_self {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {𝒜 : Type u_3} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] (X : L.OperatorSolution 𝒜) (e : E) (u : ↥(L.support e)) :
    X.eqOp e u * X.eqOp e u = 1
    def Cslib.PCP.LinearSystem.OperatorSolution.extend {V : Type u_1} [DecidableEq V] (s : Finset V) (a : ↥s → Bool) (v : V) :

    An assignment of the variables of an equation, extended by false.

    noncomputable def Cslib.PCP.LinearSystem.OperatorSolution.eqMeasurement {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {𝒜 : Type u_3} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] (X : L.OperatorSolution 𝒜) [DecidableEq V] [Fintype V] (e : E) :

    Alice's measurement of the equation e: the joint measurement of its observables.

    noncomputable def Cslib.PCP.LinearSystem.OperatorSolution.strategy {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {𝒜 : Type u_3} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] (X : L.OperatorSolution 𝒜) [DecidableEq V] [Fintype V] (Y : V → 𝒜) (hY : ∀ (v : V), IsSelfAdjoint (Y v)) (hY' : ∀ (v : V), Y v * Y v = 1) (φ : Quantum.AlgState 𝒜) (hXY : ∀ (u v : V), Commute (X.op u) (Y v)) :
    CommutingStrategy E V (V → Bool) Bool 𝒜

    The strategy of an operator solution X for Alice and observables Y for Bob in the state φ, when Alice's observables commute with Bob's.

    theorem Cslib.PCP.LinearSystem.OperatorSolution.apply_effect_mul_effect_eq_zero {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {𝒜 : Type u_3} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] (X : L.OperatorSolution 𝒜) [DecidableEq V] [Fintype V] [SelfAdjointDecompose 𝒜] (Y : V → 𝒜) (φ : Quantum.AlgState 𝒜) (hagree : ∀ (v : V), φ.Approx 0 (X.op v) (Y v)) (μ : PMF (E × V)) {e : E} {v : V} {a : V → Bool} {b : Bool} (hrej : ¬(L.game μ).accepts e v a b) :
    φ ((X.eqMeasurement e).effect a * Quantum.signProj (Y v) b) = 0

    In the strategy of an operator solution with perfect agreement, rejected answers have probability 0.

    theorem Cslib.PCP.LinearSystem.OperatorSolution.commutingWinProb_strategy_of_agreement {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {𝒜 : Type u_3} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] (X : L.OperatorSolution 𝒜) [DecidableEq V] [Fintype V] [SelfAdjointDecompose 𝒜] [TopologicalSpace 𝒜] [ContinuousFunctionalCalculus ℝ 𝒜 IsSelfAdjoint] [NonnegSpectrumClass ℝ 𝒜] [Finite E] (Y : V → 𝒜) (hY : ∀ (v : V), IsSelfAdjoint (Y v)) (hY' : ∀ (v : V), Y v * Y v = 1) (φ : Quantum.AlgState 𝒜) (hXY : ∀ (u v : V), Commute (X.op u) (Y v)) (hagree : ∀ (v : V), φ.Approx 0 (X.op v) (Y v)) (μ : PMF (E × V)) :
    (L.game μ).commutingWinProb (X.strategy Y hY hY' φ hXY) = 1

    Verification of a perfect strategy: if Alice measures the equations jointly in an operator solution X, and Bob measures each variable by a supplied observable Y_v commuting with Alice's and agreeing perfectly with X_v in the supplied state, they win the game of the linear constraint system with probability 1, for every question distribution. The construction of such a Bob and state from a finite-dimensional solution is Cslib.PCP.LinearSystem.OperatorSolution.commutingWinProb_maxEntangledStrategy.

    noncomputable def Cslib.PCP.LinearSystem.OperatorSolution.ofAssignment {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} (s : V → Bool) (hs : ∀ (e : E), L.Satisfies e s) :

    A satisfying assignment s is an operator solution in ℂ: the scalars (-1)^{s_v}.

    noncomputable def Cslib.PCP.LinearSystem.OperatorSolution.map {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {𝒜 : Type u_3} {ℬ : Type u_4} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (f : 𝒜 →⋆ₐ[ℂ] ℬ) (X : L.OperatorSolution 𝒜) :

    The image of an operator solution under a star-algebra homomorphism.

    noncomputable def Cslib.PCP.LinearSystem.OperatorSolution.transposeObs {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {ι : Type u_3} [Fintype ι] [DecidableEq ι] (X : L.OperatorSolution (Matrix ι ι ℂ)) (v : V) :
    Matrix (ι × ι) (ι × ι) ℂ

    Bob's observable of the variable v in the transpose strategy: 1 ⊗ X_vᵀ.

    theorem Cslib.PCP.LinearSystem.OperatorSolution.transposeObs_mul_self {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {ι : Type u_3} [Fintype ι] [DecidableEq ι] (X : L.OperatorSolution (Matrix ι ι ℂ)) (v : V) :
    noncomputable def Cslib.PCP.LinearSystem.OperatorSolution.maxEntangledStrategy {V : Type u_1} {E : Type u_2} {L : LinearSystem V E} {ι : Type u_3} [Fintype ι] [DecidableEq ι] (X : L.OperatorSolution (Matrix ι ι ℂ)) [Fintype V] [DecidableEq V] [Nonempty ι] :
    CommutingStrategy E V (V → Bool) Bool (Matrix (ι × ι) (ι × ι) ℂ)

    The maximally entangled transpose strategy of a finite-dimensional operator solution Cleve and Mittal, §2: on the maximally entangled state of ℂ^ι ⊗ ℂ^ι, Alice measures each equation jointly in the observables X_v ⊗ 1, and Bob measures each variable v by 1 ⊗ X_vᵀ.

    Operator solutions give perfect strategies Cleve and Mittal, §2: the maximally entangled transpose strategy of a finite-dimensional operator solution wins the game of the linear constraint system with probability 1, for every question distribution.