Documentation

MIPRE.Background.QLD.Anticomm

Direct Magic Square anticommutation #

Blueprint lem:ms-direct-anticomm: a strategy failing the Magic Square game with probability ε has ‖{B₁, B₅}|ψ⟩‖² ≤ 186624 ε for the original ±1-observables of the player who receives the variables --- no isometry and no extracted EPR pairs. This is the only thing the Pauli basis test consumes from the Magic Square, and it is much weaker than the full rigidity theorem thm:ms-rigidity, which this repository does not prove.

The shape of the argument #

Alice's constraint answers are repaired to parity-valid ones and pushed forward to a measurement with four outcomes (repPOVM). Her measurements are projective, and a coarse-graining of a projective measurement is projective (isPVMIn_repPOVM), so the repaired measurement is one too. Signed sums of it are reflections that commute within a constraint and multiply to its sign exactly (MIPRE.IsPVMIn.pvmObs_mul_mul) --- that is what projectivity buys, and it is why the repair has to happen first.

The rest is norm bookkeeping on the state, in the operator-bound calculus of the model (MIPRE/Foundations/StateModel.lean): each of Alice's reflections is within γ of the corresponding Bob observable, γ² ≤ 144 ε; a Bob word of length t can be replaced by the reversed word of Alice reflections at cost t γ; a within-constraint relation costs 3 γ; and the six-step path through the six constraints turns d a e b into - d e a b at cost 24 γ.

In a bipartite model #

Stated in a bipartite model (Phase 5 of planning/mipco-track.md). The strategy is a model M : BipartiteModel 𝒞 𝒜 ℬ with ‖M.ψ‖ = 1 and two families of POVMs PA, PB in the players' ordered algebras (POVMIn _ 𝒜, POVMIn _ ℬ). The operators are elements of 𝒜 and ℬ acting through M.πA and M.πB, the norms are the model's (M.snorm, and M.swap.stateSqNorm for the second player's ‖(Id ⊗ Y)|ψ⟩‖²), and the value is M.povmValue. The constraint player's measurements are projective (IsPVMIn), as every strategy of the Pauli basis test is from the start. So the Naimark dilation of the matrix statement --- whose only purpose was to make the repaired measurement projective, on one ancilla shared by the six constraints --- is gone: the repaired measurement is used as it is, on the model's own state, and its reflections are elements of the first player's algebra. The variable player's measurements stay arbitrary POVMs; the other player's half of the lemma (ms_direct_anticomm') asks for his to be projective instead. On a unit vector ψ : dA × dB → ℂ the statement is read at the tensor-product model BipartiteModel.tensor ψ with the families POVM.toIn (projectivity through IsPVM.toIn), where M.swap.stateSqNorm Y is ‖stateVecB ψ Y‖² (normSq_stateVecB_eq_tensor) and the value is povmValue (povmValue_eq_tensor).

Alice's repaired outcomes #

A parity-valid answer to a constraint is determined by its bits at the first two cells, so the repaired outcome set is ZMod 2 × ZMod 2 and the bit at the third cell is read off the constraint's right-hand side.

@[reducible, inline]

The repaired outcome set of a constraint.

Equations
Instances For

    The bit that outcome k assigns to cell j of constraint c.

    Equations
    Instances For

      The sign weighting of constraint c at its j-th cell.

      Equations
      Instances For
        theorem MIPRE.QLD.MS.csgn_mul_self (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) (k : PV) :
        csgn c j k * csgn c j k = 1
        theorem MIPRE.QLD.MS.star_csgn (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) (k : PV) :
        star (csgn c j k) = csgn c j k

        The three signs of a constraint multiply to its sign.

        Alice's answer to a constraint, repaired to a parity-valid outcome: an assignment satisfying the constraint keeps its bits at the first two cells, and everything else --- an assignment violating the parity, or an answer of the wrong shape --- is sent to (0, 0). This preserves every originally winning pair, which is all the argument needs.

        Equations
        Instances For

          On a parity-valid answer the repair loses nothing: the outcome's bit at each cell is the answer's. For the third cell this is the parity condition.

          Numerals for the magic square #

          Variable k, in row-major order.

          Equations
          Instances For

            Constraint c: the three rows then the three columns.

            Equations
            Instances For

              The repaired Alice measurement, and Alice's reflections #

              The repaired measurement is the coarse-graining of Alice's constraint measurement along rep, and it is projective because hers is: this is what replaces the matrix statement's dilation.

              Alice's repaired constraint measurement, with the four parity-valid outcomes.

              Equations
              Instances For

                The repaired measurement of a projective measurement is projective: it is a coarse-graining.

                Alice's reflection for constraint c at its j-th cell.

                Equations
                Instances For
                  theorem MIPRE.QLD.MS.refl_mul_self {𝒜 : Type u_1} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [Algebra ℂ 𝒜] {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                  refl PA c j * refl PA c j = 1
                  theorem MIPRE.QLD.MS.refl_comm {𝒜 : Type u_1} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [Algebra ℂ 𝒜] {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (c : Fin LCS.MagicSquare.layout.r) (i j : Fin 3) :
                  refl PA c i * refl PA c j = refl PA c j * refl PA c i

                  The three reflections of a constraint multiply to its sign, exactly.

                  The three reflections of a constraint, in the form the relations use: the product of the first two is the constraint's sign times the third.

                  theorem MIPRE.QLD.MS.refl_isometry {𝒜 : Type u_1} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [Algebra ℂ 𝒜] {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} [StarModule ℂ 𝒜] (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                  star (refl PA c j) * refl PA c j = 1
                  theorem MIPRE.QLD.MS.isometry_mul {𝒜 : Type u_1} [Ring 𝒜] [StarRing 𝒜] {X Y : 𝒜} (hX : star X * X = 1) (hY : star Y * Y = 1) :
                  star (X * Y) * (X * Y) = 1
                  theorem MIPRE.QLD.MS.refl_eq_sum {𝒜 : Type u_1} [Ring 𝒜] [StarRing 𝒜] [PartialOrder 𝒜] [Algebra ℂ 𝒜] (PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                  refl PA c j = ∑ d : LCS.MagicSquare.layout.Answer, csgn c j (rep c d) • (PA (Sum.inl c)).op d

                  Alice's reflection is her constraint measurement, signed by the repaired outcome: each original answer contributes with the sign its repaired outcome gives the cell.

                  Bob's observables #

                  Bob's ±1-observable at variable j: the difference of the two bit outcomes. Answers of the wrong shape contribute zero, which is exactly the paper's convention.

                  Equations
                  Instances For

                    {B₀, B₄}, the anticommutator the Pauli basis test consumes.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      An operator fact #

                      Id - b² is a contraction for a difference b of two operators between 0 and 1. It is a statement about operators on a Hilbert space, where the functional calculus is: a player's algebra need not have one.

                      theorem MIPRE.QLD.MS.bnd_one_sub_sq_of_sub {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] {P Q : H →L[ℂ] H} (hP0 : 0 ≤ P) (hP1 : P ≤ 1) (hQ0 : 0 ≤ Q) (hQ1 : Q ≤ 1) :
                      Op.Bnd (1 - (P - Q) * (P - Q)) 1

                      1 - (P - Q)² is a contraction for 0 ≤ P, Q ≤ 1: it lies between 0 and 1, the upper bound because (P - Q)² is positive and the lower because 1 - (P - Q)² is the product of the commuting positive operators 1 - (P - Q) and 1 + (P - Q).

                      The calculus on the state #

                      Every estimate of the argument is a state norm M.snorm of an element of the model's algebra, built from Alice's reflections (through M.πA) and Bob's observables (through M.πB).

                      theorem MIPRE.QLD.MS.isometry_πA {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) {X : 𝒜} (h : star X * X = 1) :
                      star (M.πA X) * M.πA X = 1

                      An isometry of the first player's algebra is an isometry of the model's.

                      def MIPRE.QLD.MS.dd {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) (X Y : ℬ) :

                      ‖(πB X - πB Y) ψ‖, the quantity every step of the word argument estimates.

                      Equations
                      Instances For
                        theorem MIPRE.QLD.MS.dd_comm {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) (X Y : ℬ) :
                        dd M X Y = dd M Y X
                        theorem MIPRE.QLD.MS.dd_triangle {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) (X Y Z : ℬ) :
                        dd M X Z ≤ dd M X Y + dd M Y Z
                        theorem MIPRE.QLD.MS.dd_neg {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) (X Y : ℬ) :
                        dd M (-X) (-Y) = dd M X Y

                        Negating both sides changes nothing.

                        theorem MIPRE.QLD.MS.bnd_bobs_mul {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) (X Y : ℬ) (hX : M.Bnd (M.πB X) 1) (hY : M.Bnd (M.πB Y) 1) :
                        M.Bnd (M.πB (X * Y)) 1

                        A product of Bob observables is a contraction.

                        theorem MIPRE.QLD.MS.dd_prefix {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] {M : BipartiteModel 𝒞 𝒜 ℬ} {P : ℬ} (hP : M.Bnd (M.πB P) 1) (X Y : ℬ) :
                        dd M (P * X) (P * Y) ≤ dd M X Y

                        A Bob prefix does not increase the distance.

                        theorem MIPRE.QLD.MS.dd_suffix {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] {M : BipartiteModel 𝒞 𝒜 ℬ} {X Y W : ℬ} {XD : 𝒜} {δ : ℝ} (hX : M.Bnd (M.πB X) 1) (hY : M.Bnd (M.πB Y) 1) (hXD : star XD * XD = 1) (hδ : M.snorm (M.πB W - M.πA XD) ≤ δ) :
                        dd M (X * W) (Y * W) ≤ dd M X Y + 2 * δ

                        Appending a Bob suffix costs twice its replacement cost.

                        theorem MIPRE.QLD.MS.bnd_bobs {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) [PartialOrder ℬ] [StarOrderedRing ℬ] {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} (j : Fin LCS.MagicSquare.layout.s) :
                        M.Bnd (M.πB (bobs PB j)) 1

                        Bob's observable is a contraction: the difference of two POVM elements.

                        theorem MIPRE.QLD.MS.alice_isometry {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) [PartialOrder 𝒜] [StarModule ℂ 𝒜] {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                        star (M.πA (refl PA c j)) * M.πA (refl PA c j) = 1

                        Alice's reflection is an isometry of the model's algebra.

                        theorem MIPRE.QLD.MS.bnd_alice {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) [PartialOrder 𝒜] [StarModule ℂ 𝒜] {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                        M.Bnd (M.πA (refl PA c j)) 1
                        theorem MIPRE.QLD.MS.bnd_anti {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) [PartialOrder ℬ] [StarOrderedRing ℬ] {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} :
                        M.Bnd (M.πB (anti PB)) 2

                        The anticommutator is bounded by two.

                        theorem MIPRE.QLD.MS.bnd_one_sub_sq {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) [PartialOrder ℬ] [StarOrderedRing ℬ] {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} (j : Fin LCS.MagicSquare.layout.s) :
                        M.Bnd (M.πB (1 - bobs PB j * bobs PB j)) 1

                        Id - b² is a contraction, because 0 ≤ b² ≤ 1.

                        Replacing Bob's letters by Alice's reflections #

                        A Bob word of length t agrees on the state with the reversed word of Alice reflections to within t γ: replace the letters one at a time from the right, each replacement costing γ, and cross the two players' algebras so the Alice letters accumulate in the opposite order. Only lengths one, two and three occur in the argument, so the three cases are spelled out rather than induced.

                        theorem MIPRE.QLD.MS.word1 {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} {γ : ℝ} (hγ : ∀ (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3), M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ γ) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                        M.snorm (M.πB (bobs PB (LCS.MagicSquare.cell c j)) - M.πA (refl PA c j)) ≤ γ
                        theorem MIPRE.QLD.MS.word2 {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} {γ : ℝ} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (hγ : ∀ (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3), M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ γ) (c c' : Fin LCS.MagicSquare.layout.r) (i j : Fin 3) :
                        M.snorm (M.πB (bobs PB (LCS.MagicSquare.cell c i) * bobs PB (LCS.MagicSquare.cell c' j)) - M.πA (refl PA c' j * refl PA c i)) ≤ 2 * γ
                        theorem MIPRE.QLD.MS.word3 {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} {γ : ℝ} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (hγ : ∀ (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3), M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ γ) (c c' c'' : Fin LCS.MagicSquare.layout.r) (i j k : Fin 3) :
                        M.snorm (M.πB (bobs PB (LCS.MagicSquare.cell c i) * bobs PB (LCS.MagicSquare.cell c' j) * bobs PB (LCS.MagicSquare.cell c'' k)) - M.πA (refl PA c'' k * (refl PA c' j * refl PA c i))) ≤ 3 * γ

                        Rewriting inside a word #

                        theorem MIPRE.QLD.MS.relation_core {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} {γ : ℝ} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (hγ : ∀ (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3), M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ γ) (c : Fin LCS.MagicSquare.layout.r) (i j : Fin 3) (hij : refl PA c j * refl PA c i = sgn (LCS.MagicSquare.game.b c) • refl PA c 2) :

                        A within-constraint relation costs 3 γ. The two Bob letters are transported to the constraint's two Alice reflections, which costs 2 γ; their product is the third reflection times the constraint's sign, with no error; and that reflection is returned to Bob for a further γ.

                        theorem MIPRE.QLD.MS.relation10 {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} {γ : ℝ} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (hγ : ∀ (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3), M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ γ) (c : Fin LCS.MagicSquare.layout.r) :
                        theorem MIPRE.QLD.MS.relation01 {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} {γ : ℝ} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (hγ : ∀ (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3), M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ γ) (c : Fin LCS.MagicSquare.layout.r) :

                        The six-step path #

                        d a e b becomes - d e a b by applying the six constraints in turn --- column one, column two, row three, column three, row two, row one --- at a total cost of 24 γ. The sign appears exactly once, at column three, which is the constraint of product -1.

                        theorem MIPRE.QLD.MS.path {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} {γ : ℝ} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (hγ : ∀ (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3), M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ γ) :

                        The six-step path.

                        Removing the two outer letters #

                        The path bounds ‖d (a e + e a) b |ψ⟩‖. Removing d costs the non-projectivity of b_3, which is ‖(Id - b_3²) W |ψ⟩‖ ≤ (2 + t) γ for a word of length t; removing b costs 2 γ, because Alice's reflection for variable 1 is unitary and commutes with the anticommutator.

                        theorem MIPRE.QLD.MS.snorm_one_sub_sq {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} {γ : ℝ} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (hγ : ∀ (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3), M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ γ) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                        M.snorm (M.πB (1 - bobs PB (LCS.MagicSquare.cell c j) * bobs PB (LCS.MagicSquare.cell c j))) ≤ 2 * γ

                        ‖(Id - b²)|ψ⟩‖ ≤ 2 γ, from Id - b² = (D + b)(D - b) across the two players.

                        theorem MIPRE.QLD.MS.snorm_anti {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} {γ : ℝ} (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (hγ : ∀ (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3), M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ γ) :
                        M.snorm (M.πB (anti PB)) ≤ 36 * γ

                        The anticommutator is within 36 γ of zero on the state.

                        From the game's value to the closeness hypothesis #

                        The correlation ⟨ψ| C_{c,j} ⊗ B_j |ψ⟩ is agreement minus disagreement between Alice's repaired outcome bit and Bob's answer bit, and every winning answer pair agrees --- that is what the repair preserves. So the correlation is at least 1 - 2 ℓ_{c,j}, and since δ²_{c,j} = 2 - 2⟨ψ| C B |ψ⟩ - (1 - ⟨ψ| B² |ψ⟩) ≤ 2 - 2⟨ψ| C B |ψ⟩, the reflection is within 2√ℓ of the observable.

                        (-1)^x for a bit, as a real.

                        Equations
                        Instances For
                          theorem MIPRE.QLD.MS.sgn_eq_rsgn (x : ZMod 2) :
                          sgn x = ↑(rsgn x)
                          theorem MIPRE.QLD.MS.val_inj (x y : ZMod 2) (h : x.val = y.val) :
                          x = y
                          theorem MIPRE.QLD.MS.rsgn_mul_eq (x y : ZMod 2) :
                          rsgn x * rsgn y = (2 * if x = y then 1 else 0) - 1
                          def MIPRE.QLD.MS.corr {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] (M : BipartiteModel 𝒞 𝒜 ℬ) (PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜) (PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :

                          The signed Born mass at an incidence: Alice's repaired outcome bit against Bob's answer bit, agreement counting +1 and disagreement -1.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            theorem MIPRE.QLD.MS.sum_bornProb_inr_le {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing 𝒜] [StarOrderedRing ℬ] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} (hM : ‖M.ψ‖ = 1) (c : Fin LCS.MagicSquare.layout.r) (k : Fin LCS.MagicSquare.layout.s) :
                            ∑ d : LCS.MagicSquare.layout.Answer, ∑ w : ZMod 2, M.bornProb ((PA (Sum.inl c)).op d) ((PB (Sum.inr k)).op (Sum.inr w)) ≤ 1

                            The total Born mass on Bob's bit answers is at most one.

                            theorem MIPRE.QLD.MS.condWin_le_agree {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing 𝒜] [StarOrderedRing ℬ] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :

                            Every winning answer pair agrees, so the accepted mass is at most the agreeing mass.

                            The correlation is at least 1 - 2 ℓ.

                            The correlation is the quadratic form #

                            theorem MIPRE.QLD.MS.sum_zmod2 {M : Type u_1} [AddCommMonoid M] (f : ZMod 2 → M) :
                            ∑ w : ZMod 2, f w = f 0 + f 1
                            theorem MIPRE.QLD.MS.qform_eq_corr {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                            M.qform (M.πA (refl PA c j) * M.πB (bobs PB (LCS.MagicSquare.cell c j))) = corr M PA PB c j

                            The correlation is the quadratic form of C_{c,j} ⊗ B_j. No projectivity: this is the expansion of the reflection into Alice's original constraint measurement (refl_eq_sum).

                            The closeness hypothesis, from the game's value #

                            theorem MIPRE.QLD.MS.snorm_sq_le_condFail {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} [StarOrderedRing 𝒜] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] (hM : ‖M.ψ‖ = 1) (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                            theorem MIPRE.QLD.MS.close_of_fail {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] {M : BipartiteModel 𝒞 𝒜 ℬ} {PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜} {PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ} [StarOrderedRing 𝒜] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] (hM : ‖M.ψ‖ = 1) (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) {ε : ℝ} (hε : 0 ≤ ε) (hfail : 1 - M.povmValue LCS.MagicSquare.nonlocalGame PA PB ≤ ε) (c : Fin LCS.MagicSquare.layout.r) (j : Fin 3) :
                            M.snorm (M.πA (refl PA c j) - M.πB (bobs PB (LCS.MagicSquare.cell c j))) ≤ 12 * √ε

                            The closeness hypothesis, with γ = 12 √ε.

                            The lemma, for the player who receives the variables #

                            theorem MIPRE.QLD.MS.ms_direct_anticomm {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing 𝒜] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {M : BipartiteModel 𝒞 𝒜 ℬ} (hM : ‖M.ψ‖ = 1) (PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜) (hPA : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA q).op) (PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ) {ε : ℝ} (hε : 0 ≤ ε) (hfail : 1 - M.povmValue LCS.MagicSquare.nonlocalGame PA PB ≤ ε) :
                            M.swap.stateSqNorm (anti PB) ≤ 186624 * ε

                            Direct Magic Square anticommutation (blueprint lem:ms-direct-anticomm), for the player who receives the variable questions, in a bipartite model. No isometry and no extracted EPR pairs: the bound is on the original observables and the original state. The constraint player's measurements are projective; the variable player's are arbitrary POVMs.

                            The other player, by the symmetry of the game #

                            Exchanging the players is an automorphism of the Magic Square game (MIPRE.LCS.Layout.questionDist_symm, MIPRE.LCS.Game.accepts_symm), so Alice's half of the lemma is Bob's half in the swapped model, BipartiteModel.swap.

                            The value of a Magic Square strategy is unchanged by exchanging the players, in the swapped model.

                            theorem MIPRE.QLD.MS.ms_direct_anticomm' {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing 𝒜] [StarOrderedRing ℬ] [StarModule ℂ ℬ] {M : BipartiteModel 𝒞 𝒜 ℬ} (hM : ‖M.ψ‖ = 1) (PA : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜) (PB : LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ) (hPB : ∀ (q : LCS.MagicSquare.layout.Question), IsPVMIn (PB q).op) {ε : ℝ} (hε : 0 ≤ ε) (hfail : 1 - M.povmValue LCS.MagicSquare.nonlocalGame PA PB ≤ ε) :
                            M.stateSqNorm (anti PA) ≤ 186624 * ε

                            Direct Magic Square anticommutation for the other player. The game is symmetric in the players, so this is ms_direct_anticomm in the swapped model; now the variable player's measurements are the projective ones.

                            theorem MIPRE.QLD.MS.ms_direct_anticomm_avg {𝒞 : Type u_1} {𝒜 : Type u_2} {ℬ : Type u_3} [Ring 𝒞] [StarRing 𝒞] [Algebra ℂ 𝒞] [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [Ring ℬ] [StarRing ℬ] [Algebra ℂ ℬ] [PartialOrder 𝒜] [PartialOrder ℬ] [StarOrderedRing 𝒜] [StarOrderedRing ℬ] [StarModule ℂ 𝒜] {Ω : Type u_4} [Fintype Ω] (ν : Ω → ℝ) (hν : ∀ (ω : Ω), 0 ≤ ν ω) (M : Ω → BipartiteModel 𝒞 𝒜 ℬ) (hM : ∀ (ω : Ω), ‖(M ω).ψ‖ = 1) (PA : Ω → LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer 𝒜) (hPA : ∀ (ω : Ω) (q : LCS.MagicSquare.layout.Question), IsPVMIn (PA ω q).op) (PB : Ω → LCS.MagicSquare.layout.Question → POVMIn LCS.MagicSquare.layout.Answer ℬ) (ε : Ω → ℝ) (hε : ∀ (ω : Ω), 0 ≤ ε ω) (hfail : ∀ (ω : Ω), 1 - (M ω).povmValue LCS.MagicSquare.nonlocalGame (PA ω) (PB ω) ≤ ε ω) :
                            ∑ ω : Ω, ν ω * (M ω).swap.stateSqNorm (anti (PB ω)) ≤ 186624 * ∑ ω : Ω, ν ω * ε ω

                            The averaged form. The bound is pointwise, so averaging it over a family of strategies in models over the same algebras costs nothing --- no Jensen step, and the same constant.