Games, strategies, and values #
This file contains the definitions of blueprint Section 2.1 ("Games, strategies, and values") of the MIP* = RE formalization project: two-player one-round nonlocal games, the three classes of strategies (tensor-product, synchronous, and commuting), the associated values, and the entanglement requirement.
The three strategy classes are built on a common skeleton, which this file factors out:
a question-indexed family of projective measurements in a complex star algebra
(MIPRE.ProjectiveMeasurement). Tensor-product strategies instantiate it on two matrix
algebras joined by a state vector and the Born rule; synchronous strategies instantiate
it on one matrix algebra ℂ^{d×d}, evaluated against the dimension-normalized trace;
commuting strategies are the general case of an abstract unital C*-algebra with a
tracial state (MIPRE.TracialState), evaluated by the generic value
MIPRE.tracialValue. The inclusion of synchronous into commuting strategies is
MIPRE.SyncStrategy.toCommutingStrategy, which preserves the value definitionally; the
comparison of values (blueprint lem:sync-le-valco) follows.
The matrix-based definitions (POVM, SynchronousGame, and the synchronous value)
agree with those of MIPRE.HaltingGameValue, which is kept self-contained. The
synchronous strategy is packaged differently there (with POVMs in place of a
ProjectiveMeasurement); MIPRE.SyncStrategy.ofPOVM and MIPRE.SyncStrategy.value_eq
provide the correspondence.
Main definitions #
MIPRE.Game: two-player one-round games (blueprintdef:game).MIPRE.SynchronousGame: synchronous games, with the interpretationMIPRE.SynchronousGame.toGame(blueprintdef:sync-game).MIPRE.ProjectiveMeasurement: question-indexed projective measurement families in a star ring, the common skeleton of the three strategy classes.MIPRE.TracialState: tracial states on a complex star algebra;MIPRE.normalizedTraceis the normalized matrix traceTr(·)/d.MIPRE.tracialValue: the generic value of a projective measurement family against a tracial state.MIPRE.POVM: positive operator-valued measures, following the QuantumLib (Lean-QuantumInfo) definition; the vocabulary of the distance measures (MIPRE.Foundations.Distances) and of the correspondence withMIPRE.HaltingGameValue.MIPRE.TensorProductStrategy: finite-dimensional tensor-product strategies, with projective measurements on both factors (blueprintdef:tensor-strategy).MIPRE.quantumValue: the quantum valueval*of a game (blueprintdef:q-value).MIPRE.SyncStrategy: synchronous strategies (blueprintdef:sync-strategy), the instantiation of the skeleton atℂ^{d×d}with the normalized trace.MIPRE.SyncStrategy.IsPCC: PCC (projective, consistent, and commuting) strategies (blueprintdef:pcc).MIPRE.syncValue: the synchronous value of a synchronous game (blueprintdef:sync-value).MIPRE.CommutingStrategy: commuting strategies, given by a unital C*-algebra with a tracial state (blueprintdef:commuting-strategy).MIPRE.commValue: the commuting value of a synchronous game (blueprintdef:commuting-value).MIPRE.SyncStrategy.toCommutingStrategy: a synchronous strategy is a commuting strategy, with the same value (MIPRE.SyncStrategy.value_toCommutingStrategy).MIPRE.entRequirement: the entanglement requirementEnt(G, ν)(blueprintdef:ent).
Main statements #
MIPRE.tracialValue_nonnegandMIPRE.tracialValue_le_one: the generic value lies in[0, 1]; the synchronous and commuting values inherit both bounds.MIPRE.ProjectiveMeasurement.consistency: against a tracial state, a projective family answers equal questions with equal answers (probability zero fora ≠ b).MIPRE.syncValue_le_quantumValue: the synchronous value lower-bounds the quantum value (blueprintlem:sync-le-valstar).MIPRE.syncValue_le_commValue: the synchronous value lower-bounds the commuting value (blueprintlem:sync-le-valco).
Implementation notes #
- Question distributions are bare real-valued functions with nonnegativity and
normalization fields, rather than
PMF(which isℝ≥0∞-valued and would force coercions in the value definitions). - Outcome probabilities are nonnegative reals, but proving so requires positivity
arguments; as in
MIPRE.HaltingGameValue, each value takes the real part.reof the relevant complex quantity so that the definitions carry no proof obligations. - The shared layer (
ProjectiveMeasurement,TracialState,tracialValue) requires no norm: the definitions and the basic lemmas hold over any complex star algebra. The C*-structure enters only inCommutingStrategy, following the blueprint. In particular the matrix-based strategies never need mathlib's (scoped) matrix operator-norm instances. - Tensor-product strategies are defined with projective measurements, as in JNVWY
(where strategies are assumed projective; by Naimark dilation this loses no
generality, and allowing general POVMs would define the same quantum value — a fact
we do not need and do not formalize). General POVMs remain as
POVM, the vocabulary of the distance measures and rounding arguments. - The algebra of a
CommutingStrategylives in universe0. This loses no generality: for a finite game, the GNS representation of the (separable) C*-subalgebra generated by the finitely many measurement operators realizes the same correlation, and it lives in universe0. SyncStrategy.toCommutingStrategyrealizes the matrix algebra asCStarMatrix (Fin d) (Fin d) ℂ, mathlib's type synonym ofMatrixcarrying the (unscoped) operator-normCStarAlgebrainstance. All algebraic instances ofCStarMatrixare definitionally those ofMatrix, so the strategy transported alongCStarMatrix.ofMatrixStarAlgEquivhas the same value byrfl.- A commuting strategy whose algebra is finite-dimensional is not literally a
synchronous strategy: a finite-dimensional C*-algebra is a direct sum of matrix
blocks, and its tracial states are the convex combinations of the normalized traces
of the blocks. The two notions give the same supremum of values (decompose the trace
and pick the best block), but we do not need this fact; the inclusion
SyncStrategy.toCommutingStrategyis the direction the project uses. POVMmatches the QuantumLib (Lean-QuantumInfo) definition (QuantumInfo.Finite.POVM), withselfAdjoint (Matrix d d ℂ)spelled out for its definitionally equalHermitianMat d ℂ, so that the strategy layer can be upstreamed.SyncStrategy.povmandSyncStrategy.ofPOVMconvert between theProjectiveMeasurementpackaging and the POVM packaging.
References #
- Ji, Natarajan, Vidick, Wright, Yuen, MIP* = RE, arXiv:2001.04383.
Games #
A two-player one-round game (blueprint def:game): finite question alphabets X,
Y, finite answer alphabets A, B, a probability distribution μ on X × Y, and a
decision predicate D (true = accept).
- μ : X → Y → ℝ
The probability that the players are asked the question pair
(x, y). Question probabilities are nonnegative.
Question probabilities sum to one.
- D : X → Y → A → B → Bool
The decision predicate:
D x y a b = truemeans the answers(a, b)to the questions(x, y)are accepted.
Instances For
A synchronous game (blueprint def:sync-game): both players receive questions from
the same alphabet and answer from the same alphabet; on equal questions, unequal answers
always lose.
- μ : X → X → ℝ
The probability that the players are asked the question pair
(x, y). Question probabilities are nonnegative.
Question probabilities sum to one.
- D : X → X → A → A → Bool
The decision predicate:
D x y a b = truemeans the answers(a, b)to the questions(x, y)are accepted. Unequal answers to equal questions are rejected.
Instances For
A synchronous game is in particular a game, with Y = X and B = A.
Instances For
Projective measurement families and tracial states #
All strategy classes below are built on a common skeleton: a question-indexed family of projective measurements in a complex star algebra. Tensor-product and synchronous strategies instantiate it on matrix algebras; commuting strategies on an abstract unital C*-algebra, evaluated against a tracial state. The skeleton is defined once, so that the definitions and basic lemmas are shared. No norm is needed at this level of generality.
A question-indexed family of projective measurements with outcomes in a star ring
𝒜: for each question x, the operators M x a are self-adjoint idempotents (i.e.
orthogonal projections) that sum to one. This is the common skeleton of the strategy
classes: tensor-product strategies (TensorProductStrategy) and synchronous strategies
(SyncStrategy) instantiate it at matrix algebras, commuting strategies
(CommutingStrategy) at an abstract unital C*-algebra.
- M : X → A → 𝒜
The measurement operators, indexed by questions and answers.
Each measurement operator is self-adjoint.
Each measurement operator is idempotent, hence a projection.
For each question, the measurement operators sum to one.
Instances For
A tracial state on a complex star algebra 𝒜: a linear functional that is positive
(0 ≤ τ (star m * m), in the order of ℂ), unital (τ 1 = 1), and tracial
(τ (m * n) = τ (n * m)). On a unital C*-algebra this is the standard notion of tracial
state (blueprint def:commuting-strategy).
The functional is positive.
The functional is unital.
The functional is tracial.
Instances For
Equations
- MIPRE.TracialState.instFunLikeComplex = { coe := fun (τ : MIPRE.TracialState 𝒜) => ⇑τ.toLinearMap, coe_injective := ⋯ }
A tracial state is unital.
The trace of a product of two projections is nonnegative:
τ (p * q) = τ (star (q * p) * (q * p)). This is the positivity of outcome
probabilities for the strategies below.
Transport a projective measurement family along a star-algebra equivalence.
Equations
- MIPRE.ProjectiveMeasurement.map φ P = { M := fun (x : X) (a : A) => φ (P.M x a), selfAdjoint := ⋯, projective := ⋯, normalized := ⋯ }
Instances For
Perfect consistency: against a tracial state, a projective measurement family
answers unequal answers to equal questions with probability zero. This is why the
"consistent" condition of a PCC strategy (blueprint def:pcc) is automatic for
synchronous strategies.
POVMs #
A POVM is a (finite) collection of PSD matrices on the same Hilbert space that sum
to the identity. Here X indexes the matrices, and d is the space dimension.
This is the QuantumLib (Lean-QuantumInfo) definition of POVM, with
selfAdjoint (Matrix d d ℂ) spelled out for its definitionally equal
HermitianMat d ℂ; 0 ≤ mats x is the Loewner order, i.e. positive semidefiniteness.
General POVMs are not part of the strategy definitions (strategies are projective, via
ProjectiveMeasurement); they are the vocabulary of the distance measures
(MIPRE.Foundations.Distances) and of the correspondence with
MIPRE.HaltingGameValue (SyncStrategy.povm, SyncStrategy.ofPOVM).
- mats : X → ↥(selfAdjoint (Matrix d d ℂ))
The measurement operators, one for each outcome.
Each measurement operator is positive semidefinite.
The measurement operators sum to the identity.
Instances For
Tensor-product strategies and the quantum value #
A tensor-product strategy for a game G (blueprint def:tensor-strategy):
finite-dimensional Hilbert spaces ℂ^dA and ℂ^dB, a unit vector ψ in their tensor
product — realized as Fin dA × Fin dB → ℂ — and projective measurements {A^x_a} on
ℂ^dA and {B^y_b} on ℂ^dB, packaged as ProjectiveMeasurement families on the two
matrix algebras. Restricting to projective measurements follows JNVWY; by Naimark
dilation this loses no generality. Outcome probabilities are computed using the Born
rule (see TensorProductStrategy.value).
- dA : ℕ
The dimension of the first player's Hilbert space.
- dB : ℕ
The dimension of the second player's Hilbert space.
The shared state, a vector in the tensor product
ℂ^dA ⊗ ℂ^dB = ℂ^(dA × dB).The first player's measurements: for each question
x, a projective measurement onℂ^dA.The second player's measurements: for each question
y, a projective measurement onℂ^dB.
Instances For
The value of a tensor-product strategy in G (blueprint def:q-value): the players
answer questions (x, y) with (a, b) with the Born-rule probability
⟨ψ| A^x_a ⊗ B^y_b |ψ⟩, the tensor product being realized by the Kronecker product.
The probability is a nonnegative real; we take the real part so that the definition
typechecks with no proof obligations.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The quantum value val*(G) of a game (blueprint def:q-value): the supremum of
strategy values over all tensor-product strategies.
Equations
- MIPRE.quantumValue G = ⨆ (S : MIPRE.TensorProductStrategy G), S.value
Instances For
The generic tracial value #
The value of a projective measurement family P against a tracial state τ in a
synchronous game G: the players answer questions (x, y) with (a, b) with
probability τ (M^x_a M^y_b), a nonnegative real by TracialState.nonneg_mul; we take
the real part so that the definition carries no proof obligations. The synchronous value
(blueprint def:sync-value) and the commuting value (blueprint def:commuting-value)
are instantiations.
Equations
Instances For
The generic value is nonnegative.
The generic value is at most one: for each question pair the outcome probabilities
τ (M^x_a M^y_b) sum to τ 1 = 1 over the answers.
The dimension-normalized trace τ(m) = Tr(m)/n is a tracial state on the matrix
algebra ℂ^{n×n} (in fact its unique tracial state, though we do not prove this).
Equations
- MIPRE.normalizedTrace n = { toLinearMap := (↑(Fintype.card n))⁻¹ • Matrix.traceLinearMap n ℂ ℂ, nonneg' := ⋯, map_one' := ⋯, map_mul_comm' := ⋯ }
Instances For
Synchronous strategies and the synchronous value #
A synchronous strategy for a synchronous game (blueprint def:sync-strategy): a
question-indexed projective measurement family on ℂ^d (d > 0). Measurements for
different questions need not commute. There is no state vector: outcome probabilities
are computed with the dimension-normalized trace τ(M) = Tr(M)/d (see
SyncStrategy.value). This is the instantiation of the commuting framework at the full
matrix algebra with its canonical tracial state, see
SyncStrategy.toCommutingStrategy.
- d : ℕ
The dimension of the Hilbert space.
The dimension is positive.
The measurements: for each question, a projective measurement on
ℂ^d.
Instances For
The value of a synchronous strategy in G (blueprint def:sync-value): the generic
tracial value against the normalized trace τ(M) = Tr(M)/d. See SyncStrategy.value_eq
for the explicit form.
Equations
- S.value = MIPRE.tracialValue G (MIPRE.normalizedTrace (Fin S.d)) S.P
Instances For
The value of a synchronous strategy, written out (the spelling of blueprint
def:sync-value and of MIPRE.HaltingGameValue.strategyValue): the players answer
questions (x, y) with (a, b) with probability Tr(M^x_a M^y_b)/d.
The value of a synchronous strategy is nonnegative.
The value of a synchronous strategy is at most one.
The measurements of a synchronous strategy, packaged as POVMs (positivity follows
from projectivity). This is the interface to the QuantumLib-compatible POVM layer.
Instances For
Build a synchronous strategy from POVM data with a projectivity certificate (the
packaging of MIPRE.HaltingGameValue.SyncStrategy).
Equations
- One or more equations did not get rendered due to their size.
Instances For
A synchronous strategy is PCC (projective, consistent, and commuting, following
JNVWY Section 5.2; blueprint def:pcc) if the measurement operators associated with any
pair of questions asked with positive probability commute. Projectivity is part of
SyncStrategy, and consistency is automatic for synchronous strategies
(ProjectiveMeasurement.consistency), so only the commutation condition remains.
Equations
Instances For
The synchronous value of a synchronous game (blueprint def:sync-value): the
supremum of strategy values over all synchronous strategies.
Equations
- MIPRE.syncValue G = ⨆ (S : MIPRE.SyncStrategy G), S.value
Instances For
Commuting strategies and the commuting value #
A commuting strategy for a synchronous game (blueprint def:commuting-strategy): a
unital C*-algebra alg with a tracial state τ, together with a question-indexed
projective measurement family in alg. Outcome probabilities are computed with τ (see
CommutingStrategy.value).
The algebra lives in universe 0; by the GNS representation this loses no generality
(see the module docstring).
- alg : Type
The underlying unital C*-algebra.
- cstarAlgebra : CStarAlgebra self.alg
The C*-algebra structure.
- τ : TracialState self.alg
The tracial state.
- P : ProjectiveMeasurement X A self.alg
The measurements: for each question, a projective measurement in
alg.
Instances For
The value of a commuting strategy in G (blueprint def:commuting-value): the
generic tracial value; the players answer questions (x, y) with (a, b) with
probability τ(M^x_a M^y_b).
Equations
- S.value = MIPRE.tracialValue G S.τ S.P
Instances For
The value of a commuting strategy is nonnegative.
The value of a commuting strategy is at most one.
The values of commuting strategies are bounded above (by one).
The commuting value of a synchronous game (blueprint def:commuting-value): the
supremum of strategy values over all commuting strategies.
Equations
- MIPRE.commValue G = ⨆ (S : MIPRE.CommutingStrategy G), S.value
Instances For
The commuting value is nonnegative.
A synchronous strategy is a commuting strategy #
A synchronous strategy is a commuting strategy (the content of blueprint
lem:sync-le-valco): take the algebra of d × d complex matrices with the normalized
trace. The algebra is realized as CStarMatrix (Fin d) (Fin d) ℂ — mathlib's type
synonym of Matrix carrying the operator-norm CStarAlgebra instance — and the
measurements and the state are transported along the definitionally trivial
star-algebra equivalence CStarMatrix.ofMatrixStarAlgEquiv. The value is preserved:
SyncStrategy.value_toCommutingStrategy.
Equations
- One or more equations did not get rendered due to their size.
Instances For
SyncStrategy.toCommutingStrategy preserves the value — definitionally.
Entanglement requirement #
The entanglement requirement Ent(G, ν) (blueprint def:ent): the least d such
that there exists a synchronous strategy with dimension at most d achieving value at
least ν in G, and ∞ if no synchronous strategy achieves ν. It is realized as the
infimum in ℕ∞ of the dimensions of the achieving strategies, which takes the value
⊤ = ∞ when there are none.
Equations
- MIPRE.entRequirement G ν = ⨅ (S : { S : MIPRE.SyncStrategy G // ν ≤ S.value }), ↑(↑S).d
Instances For
Relationship lemmas #
The synchronous value lower-bounds the quantum value (blueprint
lem:sync-le-valstar): a synchronous strategy {M^x_a} on ℂ^d yields the
tensor-product strategy A^x_a = M^x_a, B^y_b = (M^y_b)ᵀ,
ψ = d^{-1/2} ∑ᵢ |i⟩|i⟩ with the same value.
The synchronous value lower-bounds the commuting value (blueprint
lem:sync-le-valco): a synchronous strategy on ℂ^d is a commuting strategy with
alg = ℂ^{d × d} and τ = Tr/d (SyncStrategy.toCommutingStrategy), with the same
value.