The nonlocal game of a linear constraint system #
This file interprets an LCS instance (MIPRE.LCS.Game) as a two-player one-round
nonlocal game in the sense of MIPRE.Game, connecting the operator-algebraic
perfect-play formalism of MIPRE.LCS with the game-value framework of
MIPRE.Foundations.Games.
The game is symmetric in the players #
Both players receive questions from the same alphabet Fin G.r ⊕ Fin G.s --- an equation
or a variable --- and answer in the same alphabet (Fin G.s → ZMod 2) ⊕ ZMod 2 --- an
assignment or a bit. The referee samples an incidence (i, j) with j ∈ G.V i and then a
uniform orientation: one player is asked the equation and the other the variable. So there
are 2 r |V i|-many equiprobable oriented pairs, and both players have measurements at both
kinds of question.
That is deliberate, and it is what the literature's game^MS means. An earlier version of
this file sent the equation to Alice and the variable to Bob always. Nothing in the repository
depended on that choice, and it made statements about both players' variable observables ---
which is what the Pauli basis test consumes from the Magic Square, blueprint
lem:ms-direct-anticomm --- inexpressible: Alice never received a variable question, so
A^{Variable_j} did not exist. The orientation also fixes the constant of that lemma: the sum
of the conditional failures over the oriented incidences is 2 r |V i| times the failure
probability rather than r |V i| times it.
The decider checks the shape #
Game.accepts rejects an answer whose shape does not match its question, and rejects an
off-support pair (i, j) with j ∉ G.V i. Neither check is redundant with the question
distribution vanishing there. reports/clgame-format-check-missing.md records what a missing
format check cost the seeded CL game: the test became vacuous and a soundness theorem about it
false. The accepts_* simp lemmas below and the
decide-checked witnesses in MIPRE/LCS/MagicSquare/Game.lean --- an accepted pair in each
orientation, and one rejected for each of the three reasons --- are the guard against a
repeat.
Main definitions #
MIPRE.LCS.Layout.Question,MIPRE.LCS.Layout.Answer: the shared question and answer alphabets;MIPRE.LCS.Layout.questionDist: the oriented-incidence distribution;MIPRE.LCS.Game.accepts: the decider;MIPRE.LCS.Game.toNonlocalGame: the nonlocal game of an LCS instance.
Main statements #
MIPRE.LCS.exists_tensorStrategy_value_eq_one_of_localLoss_annihilates_epr: a bipartite observable strategy whose local loss operators annihilate the (unnormalized) EPR vector yields a perfect tensor-product strategy for the associated nonlocal game.
The alphabets #
An answer: an assignment to all the variables (inl), which is what an equation question
is answered with, or a single bit (inr), which is what a variable question is answered with.
The decider rejects the shape that does not match the question, so the two are not
interchangeable --- a player who answers a variable question with an assignment loses.
Instances For
The question distribution #
The oriented-incidence distribution: an incidence (i, j) with j ∈ G.V i, then a
uniform orientation. Each of the 2 ∑_i |V i| oriented pairs has probability
1 / (2 r |V i|).
Equations
Instances For
The decider #
The decider: the answer shapes must match the questions, the incidence must be on support, the assignment must satisfy its equation, and it must agree with the other player's bit at his variable. Every other combination is rejected.
Equations
- game.accepts (Sum.inl i) (Sum.inr j) (Sum.inl a) (Sum.inr v) = (decide (j ∈ G.V i) && decide (∑ k ∈ G.V i, a k = game.b i) && decide (a j = v))
- game.accepts (Sum.inr j) (Sum.inl i) (Sum.inr v) (Sum.inl a) = (decide (j ∈ G.V i) && decide (∑ k ∈ G.V i, a k = game.b i) && decide (a j = v))
- game.accepts x✝³ x✝² x✝¹ x✝ = false
Instances For
The decider rejects a mismatched shape. Answering an equation question with a bit, or a variable question with an assignment, loses --- whatever the other player does.
The symmetry between the players #
The orientation is sampled uniformly and the decider reads the two sides symmetrically, so
exchanging the players is an automorphism of the game. This is what lets a one-sided soundness
statement be applied twice --- as blueprint lem:ms-direct-anticomm does, whose Alice half is
its Bob half for the swapped strategy.
The game #
The nonlocal game of an LCS instance. The referee samples an incidence (i, j) with
j ∈ G.V i and a uniform orientation; the player who receives the equation answers an
assignment (only its restriction to G.V i is read), the player who receives the variable
answers a bit, and they win if the assignment satisfies the equation and agrees with the bit.
The hypotheses hr and hV are what make questionDist a probability distribution.
Blueprint def:lcs-game.
Equations
- game.toNonlocalGame hr hV = { μ := G.questionDist, μ_nonneg := ⋯, μ_sum_one := ⋯, D := game.accepts }
Instances For
Perfect strategies from operator solutions #
The local strategy on ℂ^n: Alice's observables are the grid, Bob's are trivial. Only
its Alice measurement is used.
Equations
Instances For
Alice's lift as a monoid homomorphism.
Equations
- MIPRE.LCS.BipartiteObservableStrategy.aliceLiftHom = { toFun := MIPRE.LCS.bipartiteAliceLift, map_one' := ⋯, map_mul' := ⋯ }
Instances For
Kronecker products of sums #
Pushing both measurements forward. The accepted operator of two induced measurements is the accepted operator of the original ones, read through the two maps.
The normalized EPR state #
The normalized EPR state Ω / √|n|.
Equations
- MIPRE.LCS.eprState n = (↑√↑(Fintype.card n))⁻¹ • MIPRE.LCS.eprVec n
Instances For
The measurements of the perfect strategy #
An assignment to the variables of equation i, extended by zero to all variables.
Equations
Instances For
The measurements both players use: at an equation, the joint measurement of its observables, answered as an assignment extended by zero; at a variable, the binary measurement of its observable.
Equations
- One or more equations did not get rendered due to their size.
- strat.lcsMeasurement (Sum.inr j) = MIPRE.LCS.inducedMeasurementSystem (MIPRE.LCS.observableToProjector (strat.obs j)) Sum.inr
Instances For
The measurements as a ProjectiveMeasurement.
Equations
- strat.lcsPM = { M := strat.lcsMeasurement, selfAdjoint := ⋯, projective := ⋯, normalized := ⋯ }
Instances For
The accepted probability as one quadratic form #
Exchanging the players, for a symmetric game, a symmetric Born rule and one measurement family used by both.
The accepted operator at an incidence is the local winning operator, lifted: at the
question pair (equation i, variable j), the Kronecker products of the players' accepted
outcomes sum to the winning operator of the edge (i, j) of the projector strategy.
A bipartite observable strategy whose local loss operators all annihilate the (unnormalized) EPR vector yields a perfect tensor-product strategy for the associated nonlocal game.
Both players use one measurement family (lcsMeasurement) on ℂ^n, sharing the
normalized EPR state eprState n. At an equation i a player measures the joint
measurement of the grid observables of i, answering the assignment extended by zero; at
a variable j, the binary measurement of obs j. At an oriented incidence the Kronecker
products of the accepted outcomes sum to the lifted local winning operator
(acceptedOp_eq), which fixes the EPR vector because the local loss operator annihilates
it; the other orientation is the same by the symmetry of the EPR state
(bornProb_eprState_comm) and of the decider. The [Nonempty n] hypothesis is
necessary: for empty n the hypothesis hLoss is vacuous while no unit vector exists.
Blueprint thm:lcs-perfect.