Documentation

MIPRE.Background.QLD.Win

What winning the Pauli basis test implies #

Blueprint lem:qld-win, the paper's lem:qld-win-implications (qld-commutation.tex). A strategy succeeding with probability 1 - ฮต satisfies one cross-party consistency relation per subtest, each at error O(ฮต) --- and the blueprint's proof is exactly one sentence: "each item is the definition of the value of the corresponding subtest, divided by the probability that the subtest is selected".

This file makes that sentence mechanical, in two steps.

Step one: every subtest is selected with probability at least 1/86 #

qldGame's question distribution is uniform over TyEdge ร— Content, so a question pair arising from a fixed ordered type edge has probability at least 1/86 times the conditional probability of its content (le_qldGame_mu). subtest_le is the consequence: for any edge (t, u) of the type graph, the content-averaged conditional failure at that edge is at most 86 ฮต. The 86 is card_adj, the ordered pairs of the type graph, and it is where the paper's "the probability of any of the subtests being executed is at least some universal constant" becomes a number.

Nothing here is about which subtest it is: one lemma serves all seven, because the distribution factors.

Step two: each item is an agreement subtest #

BipartiteModel.xSqNorm_sum_le_condFail turns "the decider accepts iff f a = g b" into a bound on the cross-party deviation of the POVMs coarse-grained along f and g. So each item of the lemma is: name f and g, check the decider against them, and compose with subtest_le. That composition is agree_subtest_le, and the seven items below are its instances --- the identity for the plain consistency check, a polynomial evaluation for the low-degree check, the low-degree encoding for Pauli-basis consistency, a projection for the commutation check, and the trace probe prb for the two commutation- and Magic-Square-consistency checks.

The Magic Square item itself is not of this shape --- it is a statement about the value of a conditional Magic Square strategy, which is what lem:ms-direct-anticomm consumes --- and it is in MIPRE/Background/QLD/WinMS.lean.

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 _ โ„ฌ); its value is M.povmValue, its conditional failures M.condFail, and the cross-party deviation M.xSqNorm a b = โ€–(ฯ€A a - ฯ€B b) ฯˆโ€–ยฒ. The matrix statements on a unit vector ฯˆ : dA ร— dB โ†’ โ„‚ are the instances at the tensor-product model BipartiteModel.tensor ฯˆ with the families POVM.toIn, through povmValue_eq_tensor, condFail_eq_tensor, xSqNorm_eq_tensor and xPovmDist_eq_tensor. Nothing here uses projectivity, so the families are arbitrary POVMs, and the projective strategies of the later files apply these statements as they are. The combinatorial half --- the size of the sample space, the readings, the gates, the format inversions --- mentions no state and is unchanged.

The size of the sample space #

Every subtest is selected with probability at least 1/86 #

theorem MIPRE.QLD.qldGame_mu_eq {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] (hm : m โˆฃ Fintype.card F) (x y : Question F m) :
(qldGame hm).ฮผ x y = (โ†‘(Fintype.card (Sample F m)))โปยน * โ†‘{sm : Sample F m | (Content.question hm sm.2 (โ†‘sm.1).1, Content.question hm sm.2 (โ†‘sm.1).2) = (x, y)}.card

The question distribution in closed form: the fraction of samples that produce the pair.

theorem MIPRE.QLD.le_qldGame_mu {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] (hm : m โˆฃ Fintype.card F) {t u : Ty} (htu : adj t u = true) (p : Question F m ร— Question F m) :
86โปยน * โˆ‘ _c : Content F m with (Content.question hm _c t, Content.question hm _c u) = p, (โ†‘(Fintype.card (Content F m)))โปยน โ‰ค (qldGame hm).ฮผ p.1 p.2

A subtest at a fixed edge of the type graph carries at least 1/86 of the mass. The sample space is an ordered type edge times the content, drawn independently and uniformly, so conditioning on the edge costs exactly the 86 ordered pairs of card_adj.

theorem MIPRE.QLD.subtest_le {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} (hM : โ€–M.ฯˆโ€– = 1) {ฮต : โ„} (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) {t u : Ty} (htu : adj t u = true) (S : Finset (Content F m)) :
โˆ‘ c โˆˆ S, (โ†‘(Fintype.card (Content F m)))โปยน * M.condFail (qldGame hm) PA PB (Content.question hm c t) (Content.question hm c u) โ‰ค 86 * ฮต

The content-averaged conditional failure of a subtest is at most 86 ฮต. This is the blueprint's "divided by the probability that the subtest is selected", with the probability computed. The sum is over any set S of contents, since a rule gated on ฮณ fires only on part of the sample space; dropping the rest only decreases a sum of nonnegative terms.

Each item is an agreement subtest #

theorem MIPRE.QLD.agree_subtest_le {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} (hM : โ€–M.ฯˆโ€– = 1) {ฮต : โ„} (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) {t u : Ty} (htu : adj t u = true) {C : Type u_5} [Fintype C] [DecidableEq C] (S : Finset (Content F m)) (f g : Content F m โ†’ Answer F m d โ†’ C) (hD : โˆ€ c โˆˆ S, โˆ€ (a b : Answer F m d), (qldGame hm).D (Content.question hm c t) (Content.question hm c u) a b = true โ†’ f c a = g c b) :
โˆ‘ c โˆˆ S, (โ†‘(Fintype.card (Content F m)))โปยน * โˆ‘ o : C, M.xSqNorm ((POVMIn.map (f c) (PA (Content.question hm c t))).op o) ((POVMIn.map (g c) (PB (Content.question hm c u))).op o) โ‰ค 172 * ฮต

The master estimate for the Pauli basis test. A subtest that accepts only when two post-processings of the answers agree gives, at error 172 ฮต, cross-party closeness of the coarse-grained measurements --- averaged over the verifier's content, which is the "on average over ..." of every item of lem:qld-win.

S is the set of contents on which the rule fires: everything for the ungated rules, the commuting or the anticommuting tuples for the four rules gated on ฮณ. The weight is 1/#Content throughout, so for a gated rule this is the unconditional average with the gate's indicator inside; the paper's conditional form is this divided by the gate's probability, which is where fact:omega-anticomm-prob and the hypothesis 6md โ‰ค q enter.

The 172 is 2 ยท 86: the factor 2 of BipartiteModel.xSqNorm_sum_le_condFail and the selection probability 1/86 of subtest_le.

The readings each rule compares #

A rule of fig:decider_pauli compares a post-processing of Alice's answer with one of Bob's. Each is named here, with 0 on answers of the wrong format --- which costs nothing, because the format check rejects those before any rule runs, and xSqNorm_sum_le_condFail only needs accept implies agree.

def MIPRE.QLD.rdVal {F : Type u_1} [Field F] {m d : โ„•} :
Answer F m d โ†’ F

The field element a point answer reports.

Equations
Instances For
    def MIPRE.QLD.rdAPoly {F : Type u_1} [Field F] [DecidableEq F] {m d : โ„•} (uโ‚€ w y : LIDT.Point F m) :
    Answer F m d โ†’ F

    The value at y of an axis-parallel line answer, at the parameter of y on the line.

    Equations
    Instances For
      def MIPRE.QLD.rdDPoly {F : Type u_1} [Field F] [DecidableEq F] {m d : โ„•} (uโ‚€ w y : LIDT.Point F m) :
      Answer F m d โ†’ F

      The value at y of a diagonal line answer.

      Equations
      Instances For
        noncomputable def MIPRE.QLD.rdPauli {F : Type u_1} [Field F] {m d : โ„•} (y : LIDT.Point F m) :
        Answer F m d โ†’ F

        The low-degree encoding of a (Pauli, W) answer, evaluated at y: the paper's g_h(y).

        Equations
        Instances For
          def MIPRE.QLD.rdBit {F : Type u_1} {m d : โ„•} :
          Answer F m d โ†’ ZMod 2

          The bit a (Pair, W) or Variable_j answer reports.

          Equations
          Instances For
            def MIPRE.QLD.rdBitPair {F : Type u_1} {m d : โ„•} (W : Bas) :
            Answer F m d โ†’ ZMod 2

            The W-component of a Pair answer.

            Equations
            Instances For
              noncomputable def MIPRE.QLD.rdProbe {F : Type u_1} [Field F] [Algebra (ZMod 2) F] {m d : โ„•} (r : F) :
              Answer F m d โ†’ ZMod 2

              The trace probe tr(a ยท r) of a point answer: the two-outcome measurement the commutation and Magic Square checks compare against.

              Equations
              Instances For
                noncomputable def MIPRE.QLD.dirOf {F : Type u_1} [Field F] [Fintype F] {m : โ„•} [NeZero m] (hm : m โˆฃ Fintype.card F) (c : Content F m) :

                The axis-parallel direction the seed selects.

                Equations
                Instances For
                  noncomputable def MIPRE.QLD.rdALineAt {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {m d : โ„•} [NeZero m] (hm : m โˆฃ Fintype.card F) (W : Bas) (c : Content F m) :
                  Answer F m d โ†’ F

                  Bob's reading of an axis-parallel line answer, at the point the same content gives Alice.

                  Equations
                  Instances For
                    noncomputable def MIPRE.QLD.rdDLineAt {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {m d : โ„•} [NeZero m] (hm : m โˆฃ Fintype.card F) (W : Bas) (c : Content F m) :
                    Answer F m d โ†’ F

                    Bob's reading of a diagonal line answer, at the point the same content gives Alice.

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

                      The commuting and anticommuting contents #

                      Four rules are gated on ฮณ(ฯ‰) and check nothing on the other value, so their statements carry the gate as a restriction of the content average.

                      noncomputable def MIPRE.QLD.commSet {F : Type u_1} [Field F] [Fintype F] [Algebra (ZMod 2) F] {m : โ„•} :

                      The contents whose tuple is commuting, ฮณ(ฯ‰) = 0.

                      Equations
                      Instances For
                        noncomputable def MIPRE.QLD.acommSet {F : Type u_1} [Field F] [Fintype F] [Algebra (ZMod 2) F] {m : โ„•} :

                        The contents whose tuple is anticommuting, ฮณ(ฯ‰) โ‰  0.

                        Equations
                        Instances For
                          theorem MIPRE.QLD.gam_eq_zero_of_mem_commSet {F : Type u_1} [Field F] [Fintype F] [Algebra (ZMod 2) F] {m : โ„•} {c : Content F m} (hc : c โˆˆ commSet) :
                          gam c.omega = 0
                          theorem MIPRE.QLD.gam_ne_zero_of_mem_acommSet {F : Type u_1} [Field F] [Fintype F] [Algebra (ZMod 2) F] {m : โ„•} {c : Content F m} (hc : c โˆˆ acommSet) :

                          The edges the rules live on #

                          The items #

                          Each is agree_subtest_le at a named edge with the two readings the rule compares.

                          theorem MIPRE.QLD.of_accepts {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {hm : m โˆฃ Fintype.card F} {x y : Question F m} {a b : Answer F m d} (h : accepts hm x y a b = true) :

                          The three components of an acceptance.

                          theorem MIPRE.QLD.item_consistency {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} {ฮต : โ„} (hM : โ€–M.ฯˆโ€– = 1) (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) (t : Ty) {C : Type u_5} [Fintype C] [DecidableEq C] (ฯ† : Answer F m d โ†’ C) :
                          (M.xPovmDist (fun (x : Content F m) => (โ†‘(Fintype.card (Content F m)))โปยน) (fun (c : Content F m) => POVMIn.map ฯ† (PA (Content.question hm c t))) fun (c : Content F m) => POVMIn.map ฯ† (PB (Content.question hm c t))) โ‰ค 172 * ฮต

                          Item 1, the consistency check. At equal types the two players' measurements are cross-party consistent at error 172 ฮต, and so is any common reading of their answers: the rule accepts only when the answers are equal, and equal answers have equal readings. That is the data-processing inequality, and it comes for free from agree_subtest_le rather than as a separate fact.

                          theorem MIPRE.QLD.eval_eq_of_lowDeg {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] {m n : โ„•} {uโ‚€ w y : LIDT.Point F m} {p : LIDT.LinePoly F n} {a : F} (h : lowDeg uโ‚€ w y p a = true) :
                          p.eval (LIDT.CL.lineParam uโ‚€ w y) = a

                          The parameter agreement a line-against-point acceptance yields.

                          theorem MIPRE.QLD.item_lowDeg_aline {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} {ฮต : โ„} (hM : โ€–M.ฯˆโ€– = 1) (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) (W : Bas) :
                          โˆ‘ c : Content F m, (โ†‘(Fintype.card (Content F m)))โปยน * โˆ‘ o : F, M.xSqNorm ((POVMIn.map rdVal (PA (Content.question hm c (Ty.point W)))).op o) ((POVMIn.map (rdALineAt hm W c) (PB (Content.question hm c (Ty.aline W)))).op o) โ‰ค 172 * ฮต

                          Item 2a, the low-degree check against an axis-parallel line. The line polynomial, evaluated at the parameter of the sampled point, agrees with the point answer, at error 172 ฮต. This is the seeded CL decider's own check (lowDeg_eq_cl).

                          theorem MIPRE.QLD.item_lowDeg_dline {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} {ฮต : โ„} (hM : โ€–M.ฯˆโ€– = 1) (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) (W : Bas) :
                          โˆ‘ c : Content F m, (โ†‘(Fintype.card (Content F m)))โปยน * โˆ‘ o : F, M.xSqNorm ((POVMIn.map rdVal (PA (Content.question hm c (Ty.point W)))).op o) ((POVMIn.map (rdDLineAt hm W c) (PB (Content.question hm c (Ty.dline W)))).op o) โ‰ค 172 * ฮต

                          Item 2b, the low-degree check against a diagonal line.

                          theorem MIPRE.QLD.item_pauli_consistency {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} {ฮต : โ„} (hM : โ€–M.ฯˆโ€– = 1) (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) (W : Bas) :
                          โˆ‘ c : Content F m, (โ†‘(Fintype.card (Content F m)))โปยน * โˆ‘ o : F, M.xSqNorm ((POVMIn.map rdVal (PA (Content.question hm c (Ty.point W)))).op o) ((POVMIn.map (rdPauli (c.pt W)) (PB (Content.question hm c (Ty.pauli W)))).op o) โ‰ค 172 * ฮต

                          Item 3, Pauli basis consistency. The low-degree encoding of the full (Pauli, W) outcome, evaluated at the sampled point, agrees with the point answer.

                          theorem MIPRE.QLD.item_commutation {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} {ฮต : โ„} (hM : โ€–M.ฯˆโ€– = 1) (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) (W : Bas) :
                          โˆ‘ c โˆˆ commSet, (โ†‘(Fintype.card (Content F m)))โปยน * โˆ‘ o : ZMod 2, M.xSqNorm ((POVMIn.map rdBit (PA (Content.question hm c (Ty.pairB W)))).op o) ((POVMIn.map (rdBitPair W) (PB (Content.question hm c Ty.pair))).op o) โ‰ค 172 * ฮต

                          Item 4, the commutation check, on the commuting tuples: the (Pair, W) bit agrees with the W-component of the Pair answer. On an anticommuting tuple the rule checks nothing, by design, which is why the average is restricted.

                          noncomputable def MIPRE.QLD.rdProbeAt {F : Type u_1} [Field F] [Algebra (ZMod 2) F] {m d : โ„•} (W : Bas) (c : Content F m) :
                          Answer F m d โ†’ ZMod 2

                          The trace probe of a point answer against the W-side qubit basis element of the content.

                          Equations
                          Instances For
                            theorem MIPRE.QLD.item_commutation_consistency {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} {ฮต : โ„} (hM : โ€–M.ฯˆโ€– = 1) (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) (W : Bas) :
                            โˆ‘ c โˆˆ commSet, (โ†‘(Fintype.card (Content F m)))โปยน * โˆ‘ o : ZMod 2, M.xSqNorm ((POVMIn.map (rdProbeAt W c) (PA (Content.question hm c (Ty.point W)))).op o) ((POVMIn.map rdBit (PB (Content.question hm c (Ty.pairB W)))).op o) โ‰ค 172 * ฮต

                            Item 5, commutation consistency, on the commuting tuples: the trace probe of the point answer agrees with the (Pair, W) bit.

                            theorem MIPRE.QLD.item_ms_consistency_X {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} {ฮต : โ„} (hM : โ€–M.ฯˆโ€– = 1) (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) :
                            โˆ‘ c โˆˆ acommSet, (โ†‘(Fintype.card (Content F m)))โปยน * โˆ‘ o : ZMod 2, M.xSqNorm ((POVMIn.map (rdProbeAt Bas.X c) (PA (Content.question hm c (Ty.point Bas.X)))).op o) ((POVMIn.map rdBit (PB (Content.question hm c (Ty.var (LCS.MagicSquare.v 0 adj_pointX_var0._proof_1))))).op o) โ‰ค 172 * ฮต

                            Item 7 for X, Magic Square consistency, on the anticommuting tuples: the trace probe of the (Point, X) answer agrees with the Variable_1 bit --- var 0 at this file's 0-indexing.

                            theorem MIPRE.QLD.item_ms_consistency_Z {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] {m d : โ„•} [NeZero m] {๐’ž : Type u_2} {๐’œ : Type u_3} {โ„ฌ : Type u_4} [Ring ๐’ž] [StarRing ๐’ž] [Algebra โ„‚ ๐’ž] [Ring ๐’œ] [StarRing ๐’œ] [Algebra โ„‚ ๐’œ] [Ring โ„ฌ] [StarRing โ„ฌ] [Algebra โ„‚ โ„ฌ] [PartialOrder ๐’œ] [StarOrderedRing ๐’œ] [PartialOrder โ„ฌ] [StarOrderedRing โ„ฌ] {hm : m โˆฃ Fintype.card F} {M : BipartiteModel ๐’ž ๐’œ โ„ฌ} {PA : Question F m โ†’ POVMIn (Answer F m d) ๐’œ} {PB : Question F m โ†’ POVMIn (Answer F m d) โ„ฌ} {ฮต : โ„} (hM : โ€–M.ฯˆโ€– = 1) (hfail : 1 - M.povmValue (qldGame hm) PA PB โ‰ค ฮต) :
                            โˆ‘ c โˆˆ acommSet, (โ†‘(Fintype.card (Content F m)))โปยน * โˆ‘ o : ZMod 2, M.xSqNorm ((POVMIn.map (rdProbeAt Bas.Z c) (PA (Content.question hm c (Ty.point Bas.Z)))).op o) ((POVMIn.map rdBit (PB (Content.question hm c (Ty.var (LCS.MagicSquare.v 4 adj_pointZ_var4._proof_1))))).op o) โ‰ค 172 * ฮต

                            Item 7 for Z.