MIP\(^*\) = RE: a Lean blueprint

3 Background results

This chapter collects theorems that the proof relies on but whose proofs appear in other papers. Each entry gives a full statement, a pointer to the literature, and comments on its role and on formalization. The project may initially assume these as axioms; discharging them are independent sub-projects. Three of these results are larger sub-projects and are developed in their own sections: the computability results in Section 4 and parallel repetition in Section 5; they are included in the summary table below for completeness. Statements are given in the form closest to how they will be used. The compression pipeline carries bipartite soundness in \(\mathrm{val}^*\); synchronous and tracial results appear as internal ingredients with their own transfer obligations.

Each entry carries an estimate of the formalization effort: [\(\bullet \) easy] for self-contained arguments of at most a few pages, [\(\bullet \bullet \) medium] for substantial but well-delimited developments, and [\(\bullet \bullet \bullet \) hard] for results whose formalization is a project in itself; [\(\checkmark \) (mostly) in Mathlib] marks statements essentially available in Mathlib. The estimates are for the statement as it will be used (including any required interface translation) and are of course provisional. Independently of the effort estimate, the [\(\uparrow \) QuantumLib] badge (introduced in Section 2) marks results of general quantum-information interest that are intended to be upstreamed to QuantumLib.

Result

Statement

Source

Effort

Gowers–Hatami

Thm. 3.2

[ 7 , 8 ]

 

Almost-synchronous correlations

Thm. 3.3

[ 9 ]

hard

Orthonormalization

Thm. 3.5

[ 8 ]

 

Magic Square rigidity

Thm. 3.9

[ 14 ]

easy

Low individual degree test (canonical lines)

Thm. 3.12

[ 2 ]

 

Low individual degree test (seeded CL)

Thm. 3.14

[ 34 ]

 

Low individual degree test (seeded CL, one codeword)

Thm. 3.19

[ 2 ]

 

Low individual degree test (Pauli)

Thm. 3.38

[ 34 ]

hard

Direct parallel repetition (commuting-operator)

Thm. 5.5

[ 32 ]

 

Direct parallel repetition (entangled)

Thm. 5.6

[ 31 ]

 

Tracial density

Thm. 5.10

[ 12 , 32 ]

 

Recursive compression lemma

Lem. 4.10

[ 11 ]

 

Compressibility criterion

Lem. 4.11

[ 13 ]

 

Efficient computability toolkit

Lems. 4.7–4.9

[ 11 ]

hard

Halting undecidability

Thm. 3.79

Mathlib

 

Succinct Cook–Levin

Thm. 3.83

[ 23 , 22 ]

 

Self-dual normal bases

Lem. 3.87

[ 24 , 25 ]

medium

Schwartz–Zippel

Lem. 3.111

[ 26 , 27 ]

 

Value approximable from below

Lem. 3.112

folklore

medium

The anchored parallel repetition theorem of  [ 10 ] , and the entropy and fidelity toolkit its proof needs, are not on the path to the main theorem and are not stated in this blueprint (Remark 5.11).

3.1 The Gowers–Hatami theorem

[\(\uparrow \) QuantumLib]

Definition 3.1 Approximate representation
✓
#

[\(\uparrow \) QuantumLib] Let \(G\) be a finite group and \(\varepsilon \in \mathbb {R}\). An \(\varepsilon \)-approximate representation of \(G\) is a function \(f : G \to U(d)\) such that

\begin{equation*} \mathop{\mathbb {E}}_{x, y \sim G} \, \mathrm{Re}\, \langle f(x) f(y), f(xy) \rangle _{hs} \geq 1 - \varepsilon \; , \end{equation*}

where \(\langle \cdot , \cdot \rangle _{hs}\) is the normalized Hilbert–Schmidt inner product of Definition 2.25. Since each value of \(f\) is unitary, \(\left\| {f(x) f(y) - f(xy)} \right\| _{hs}^2 = 2 - 2\, \mathrm{Re}\, \langle f(x) f(y), f(xy) \rangle _{hs}\), so the condition is equivalent to the defect form \(\mathop{\mathbb {E}}_{x, y \sim G} \left\| {f(x) f(y) - f(xy)} \right\| _{hs}^2 \leq 2 \varepsilon \).

Theorem 3.2 Gowers–Hatami
✓
#

Let \(G\) be a finite group and \(f : G \to U(d)\) an \(\varepsilon \)-approximate representation of \(G\). Then there exist \(d' \geq d\), an isometry \(V : \mathbb {C}^d \to \mathbb {C}^{d'}\), and a representation \(\rho : G \to U(d')\) such that

\begin{equation*} \mathop{\mathbb {E}}_{x \sim G} \, \left\| {f(x) - V^\dagger \rho (x) V} \right\| _{hs}^2 \leq 2 \varepsilon \; . \end{equation*}
Proof ▶

Let \(L(G, \mathbb {C}^d) \cong \mathbb {C}^{|G| d}\) carry the inner product normalized by \(1/|G|\), let \(V : \mathbb {C}^d \to L(G, \mathbb {C}^d)\) be the map \(u \mapsto (x \mapsto f(x) u)\), and let \(\rho \) be the right regular representation, \((\rho (x) F)(y) = F(yx)\). Then \(V\) is an isometry, and the compression \(V^\dagger \rho (x) V = \mathop{\mathbb {E}}_{y \sim G} f(y)^\dagger f(yx)\) is an average of unitaries, hence has squared Hilbert–Schmidt norm at most \(1\). Moreover \(\mathop{\mathbb {E}}_{x} \mathrm{Re}\, \langle f(x), V^\dagger \rho (x) V \rangle _{hs} = \mathop{\mathbb {E}}_{x, y} \mathrm{Re}\, \langle f(x) f(y), f(xy) \rangle _{hs} \geq 1 - \varepsilon \) by hypothesis, and the claim follows by expanding \(\left\| {f(x) - V^\dagger \rho (x) V} \right\| _{hs}^2\). The construction gives \(d' = |G|\, d\).

Source.

Gowers and Hatami  [ 7 ] . A quantitative form suited to applications in nonlocal games, and a version adapted to the tracial setting, is given by de la Salle  [ 8 ] and in  [ 9 ] .

Comments.

This is the stability result underlying all rigidity (self-testing) arguments in the proof: an approximate representation of the Pauli group \(\mathbb {F}_2^{2k}\) (with its cocycle) is close to an exact one, which forces the presence of EPR pairs. The statement above is fully formalized (statement and proof) in MIPRE/Background/GowersHatami/Basic.lean, following the regular-representation argument sketched in the proof; the intermediate statement, with the exact representation living on the concrete index set \(G \times \{ 1, \dots , d\} \), is MIPRE.gowers_hatami_prod. Two remarks on the statement. (i) It asserts only \(d' \geq d\), with witness \(d' = |G| d\); it does not include the dimension bound \(d' \leq (1 + C\varepsilon ) d\) of  [ 7 ] , whose proof goes through the Fourier-analytic route via irreducible representations. Whether the sharper bound is needed downstream (in the Pauli-group application feeding Theorem 3.38) is to be revisited; if so it will be added as a separate strengthening. (ii) In the Lean encoding the isometry is stored as the \(d \times d'\) matrix of its adjoint, so the isometry condition reads \(V V^\dagger = I\) and the compression is written \(V \rho (x) V^\dagger \). The normalized Hilbert–Schmidt norm is the tracial form needed for the synchronous framework  [ 8 , 9 ] .

3.2 Almost-synchronous correlations

[\(\bullet \bullet \bullet \) hard] [\(\uparrow \) QuantumLib]

Theorem 3.3 Almost-synchronous strategies are near synchronous strategies

There are universal constants \(C {\gt} 0\) and \(0 {\lt} c \leq 1\) such that the following holds. Let \(\mathfrak {G}\) be a synchronous game whose question distribution has the same marginal \(\nu \) on both coordinates and gives the diagonal pointwise proportional weight: for some \(\kappa \in (0, 1]\),

\begin{equation*} \mu (x,x) \; \geq \; \kappa \nu (x) \qquad \text{for all } x \in \mathcal{X}\; . \end{equation*}

Then, writing \(\varepsilon = 1 - \mathrm{val}^*(\mathfrak {G})\),

\begin{equation*} 1 - \mathrm{val}^{s}(\mathfrak {G}) \; \leq \; C \bigl( \varepsilon / \kappa \bigr)^{c}\; . \end{equation*}

More precisely, the correlation of every tensor-product strategy of value \(1 - \varepsilon \) is approximated, on average over the game’s questions, by a mixture of synchronous correlations. The mixture has average game value at least \(1 - C(\varepsilon /\kappa )^c\), so at least one component attains that bound; the bound is not asserted for every component. The Lean proof does not use this theorem: the pipeline is stated in \(\mathrm{val}^*\) throughout (Remark 6.8), and the one comparison it wants is Lemma 2.14.

Source.

Vidick  [ 9 ] , building on  [ 20 , 21 ] ; the statement above is the corollary needed here, with constants independent of the game’s size. What the source controls is not the game’s value directly but the synchronicity defect of a strategy — its inconsistency (Definition 2.37) at equal questions, taken against the common marginal \(\nu \); the two-sided correlation replacement uses that common marginal. The diagonal-weight hypothesis is what turns the game’s rejection probability \(\varepsilon \) into the bound \(\varepsilon /\kappa \) on that defect, the pairs \((x,x)\) carrying at least a \(\kappa \) fraction of the weight of \(x\). Without it the two values are unrelated (Remark 3.4).

Comments.

The proof uses the orthonormalization lemma (Section 3.3) and a rounding argument. Used contrapositively, the theorem turns a bound \(\mathrm{val}^{s}(\mathfrak {G}) \leq 1 - \delta \) into \(\mathrm{val}^*(\mathfrak {G}) \leq 1 - \Omega (\kappa \delta ^{1/c})\): the diagonal weight multiplies the gap recovered, so a small \(\kappa \) is a loss. The hypothesis is also not preserved by repetition. The pipeline instead carries soundness in \(\mathrm{val}^*\) throughout and uses direct bipartite repetition.

Remark 3.4 The diagonal-weight hypothesis cannot be dropped

Some lower bound on the diagonal weight is necessary, and its absence is not merely lossy: the two values become unrelated. Let \(\mathcal{X}= \mathcal{A}= \{ 0,1\} \), let \(\mu \) give weight \(\frac12\) to each of \((0,1)\) and \((1,0)\) and none to the diagonal, and let \(D\) accept exactly the answer pair \((a,b) = (0,1)\) at those two question pairs and reject unequal answers at the two diagonal pairs, as Definition 2.2 requires — which costs nothing here, the diagonal carrying no weight. Alice answering \(0\) and Bob answering \(1\), deterministically, is a tensor-product strategy of value \(1\), so \(\mathrm{val}^*(\mathfrak {G}) = 1\). A synchronous strategy, by contrast, is a single family \(\{ M^x_a\} \) of projective measurements against a tracial state \(\tau \); writing \(P = M^0_0\) and \(Q = M^1_0\), its value is

\begin{equation*} \tfrac 12 \tau \bigl( P (I- Q) \bigr) + \tfrac 12 \tau \bigl( Q (I- P) \bigr) \; =\; \tfrac 12 \bigl( \tau (P) + \tau (Q) \bigr) - \tau (PQ) \end{equation*}

by traciality. Now \(\tau (PQ) \geq \max \{ 0,\ \tau (P) + \tau (Q) - 1\} \): the first bound because \(\tau (PQ) = \tau (QPQ) \geq 0\), the second because \(\tau \bigl( (I- P)(I- Q) \bigr) = \tau \bigl( (I- Q)(I- P)(I- Q) \bigr) \geq 0\). With \(s = \tau (P) + \tau (Q)\) the value is therefore at most \(\min \{ s/2,\ 1 - s/2 \} \leq \frac12\), attained in dimension \(1\) at \(P = I\), \(Q = 0\). Hence \(\mathrm{val}^{s}(\mathfrak {G}) = \frac12\) while \(1 - \mathrm{val}^*(\mathfrak {G}) = 0\).

This game is not symmetric, and for this instance symmetry alone repairs the conclusion: symmetrizing \(D\) so as to accept every unequal answer pair off the diagonal gives \(\mathrm{val}^{s}(\mathfrak {G}) = 1\) too, by \(P = |0\rangle \langle 0|\), \(Q = |1\rangle \langle 1|\) in dimension \(2\). The counterexample therefore refutes the theorem as quantified over all synchronous games, rather than exhibiting a failure among the symmetric games the pipeline produces; what the source’s proof needs in either case is the diagonal weight itself, the synchronicity defect being measured against the marginal and controlled only by the diagonal pairs.

A positive diagonal weight does not rescue the printed statement either: the hypothesis has to be quantitative. For \(p \in (0,1)\) let \(\mu \) give weight \(p/2\) to each of \((1,1)\) and \((2,2)\) and \((1-p)/2\) to each of \((1,2)\) and \((2,1)\), with \(D\) accepting equal answers on the diagonal and \((a,b) = (0,1)\) off it; every question then carries diagonal weight exactly \(p\). Answering \(0\) and \(1\) deterministically loses only the diagonal, so \(\mathrm{val}^*(\mathfrak {G}) \geq 1 - p\), while a synchronous strategy wins the diagonal with certainty (\(\sum _a \tau (M^x_a M^x_a) = 1\) for a projective family) and, by the computation above, at most half of the remaining weight, so \(\mathrm{val}^{s}(\mathfrak {G}) = \frac{1+p}{2}\). Thus \(1 - \mathrm{val}^{s}(\mathfrak {G}) = \frac{1-p}{2}\) stays above \(\frac14\) for \(p \leq \frac12\) while \(1 - \mathrm{val}^*(\mathfrak {G}) \leq p\) tends to \(0\): no constants independent of the game satisfy the printed inequality, and the \(\kappa \) of the corrected one cannot be absorbed into \(C\).

Nor does the hypothesis survive repetition: if \(\mu (x,x) = \kappa \sum _y \mu (x,y)\) for every \(x\), the \(k\)-fold product distribution satisfies the same inequality with \(\kappa ^k\) and no better. A bound on the synchronous value of a \(k\)-fold repetition therefore does not supply a uniform quantum gap once \(k\) grows with the instance size. The pipeline’s repetition theorem therefore uses direct bipartite repetition, with no application of Theorem 3.3 to either the input or repeated game. The separate role of almost-synchronicity in the paper’s tensor-code proof is explained in Remark 3.30.

Even with the hypothesis, the transport cannot by itself reach the threshold \(\frac12\) that Definition 2.52 demands. Take \(\mathcal{X}= \{ 1,2\} \), a singleton answer alphabet, \(\mu (1,1) = \mu (2,2) = \frac12\), and \(D\) accepting at \((1,1)\) only: both values are \(\frac12\) and \(\kappa = 1\), so the corrected inequality forces \(C \geq 2^{c-1}\), whence \((2C)^{-1/c} \leq \frac12\). From \(\mathrm{val}^{s}(\mathfrak {G}) \leq \frac12\) it then concludes at best \(\mathrm{val}^*(\mathfrak {G}) \leq 1 - \kappa (2C)^{-1/c}\), and that bound is never better than \(\frac12\). The threshold must therefore come from Theorem 5.6, which is a \(\mathrm{val}^*\) theorem, and carrying soundness in \(\mathrm{val}^*\) throughout avoids this transport loss.

3.3 The orthonormalization lemma

[\(\bullet \bullet \) medium] [\(\uparrow \) QuantumLib]

Theorem 3.5 Orthonormalization
✓

Let \(\cal {M}\) be a von Neumann algebra on a finite-dimensional Hilbert space, let \(\varphi \) be a normal state on \(\cal {M}\), and let \(\{ M_a\} _{a \in \mathcal{A}}\) be a POVM in \(\cal {M}\) that is \(\varepsilon \)-nearly projective:

\begin{equation*} \varphi \Bigl( \sum _{a \in \mathcal{A}} M_a^2 \Bigr) {\gt} 1 - \varepsilon \; . \end{equation*}

Then there is a projective measurement \(\{ P_a\} _{a \in \mathcal{A}}\) in \(\cal {M}\) with

\begin{equation*} \varphi \Bigl( \sum _{a \in \mathcal{A}} (M_a - P_a)^*(M_a - P_a) \Bigr) {\lt} 9\varepsilon \; . \end{equation*}

The same holds, on average, for a family \(\{ M^x_a\} \) indexed by \(x \sim \mu \), by applying it to \(\varphi \) averaged over \(x\).

Remark 3.6 What is proved, and in what generality
✓
#

The statement above is the finite-dimensional case, which is the one the main theorem needs and the one that is formalized. The vendored development proves three unconditional cases, in increasing generality of the algebra and decreasing generality of the state: every von Neumann algebra on a finite-dimensional space, for every normal state (MIPRE.Orthonormalization.povm_orthogonalization_finDim, the statement above, bridging povm_orthogonalization_finDim_vn); \(\cal {B}(H)\) for arbitrary \(H\) (povm_orthogonalization_fullAlgebra_general); and II\(_1\) factors whose trace and state are both of trace-class form (povm_orthogonalization_II1Factor). This repository adds a fourth, for the commuting-operator track: every von Neumann algebra with no nonzero abelian projection and a faithful tracial state given by finitely many vectors, factor or not, for every state of trace-class form (Theorem 3.8), from a centre-valued trace constructed without any structure theory (Lemma 3.7). A tracial commuting-operator strategy lives in a finite von Neumann algebra; on an infinite-dimensional space that algebra is now covered whenever it has no type I part, whatever its centre, and a type I part with diffuse centre still needs the general case below.

The general case — every von Neumann algebra, every normal state — is proved only as an implication. Its hypothesis, MvNStructureTheory, bundles eight facts: seven are classical Murray–von Neumann structure theory that Mathlib does not have (normal functionals are of trace-class form; the type decomposition; the finite decomposition; increasing nets of finite projections in the semifinite part; the center-valued trace; halving in type III; polar decomposition inside the algebra, which the development proves separately as exists_polar), and the eighth is the measurable-selection step of the source’s own Lemma 3.1 for the finite type I part. No term of that type is constructed, so the unconditional general statement remains open upstream, and with it the three companion results (Theorems 1.1 and 1.4 and Corollary 1.5 of  [ 8 ] ), which are formalized in finite dimension and conditionally in general. MIPRE/Background/Orthonormalization/Axioms.lean makes the split mechanical: it fails to build if an unconditional result acquires an axiom, or if one of the four open targets is closed upstream without this blueprint being updated.

Source.

de la Salle  [ 8 ] , which gives a dimension-free bound with explicit constants; earlier versions with worse parameters appear in  [ 20 ] and in  [ 1 ] . The Lean proof is vendored from the orthogonalization package of the commuting-repetition repository (the same upstream as Theorem 5.5) by scripts/vendor-repetition.py; see that directory’s README.md for what the copy changes (import prefixes, nothing else).

Comments.

Used constantly: soundness analyses produce POVMs that are only approximately projective, and this lemma replaces them by genuinely projective measurements on the same space, which is what makes the “projective strategies throughout” convention of Section 1.3 viable (avoiding Naimark dilation). The finite-dimensional case suffices for the main theorem and is a clean, self-contained formalization target in linear algebra.

The first of the two claims about the source made by the verification campaign  [ 33 ] — that this statement was over-hypothesized, the result needing only a normal state rather than a normal faithful tracial one, with constant \(9\) and exponent \(1\) — is now settled in the direction the campaign predicted, and settled by proof rather than by reading: the statement above carries neither faithfulness nor traciality and is checked. That matters beyond bookkeeping, because the tracial hypothesis excluded the bipartite vector-state applications that several of the projectivization sites of Section 6 need; those sites can now use this lemma, where before they needed Naimark dilation or the projective-by-definition convention of Section 1.3. What is settled is the mathematics, not the attribution: the campaign’s second claim, that crediting the weaker predecessor to  [ 20 ] and  [ 1 ] is wrong and the source credits the low individual degree paper and Kempe–Vidick instead, is still unchecked here, [ 8 ] not being vendored in this repository. The campaign also offers a consistency-to-projectivity step giving \(O(\delta )\) in place of \(O(\delta ^{1/4})\), which would sharpen the proof of Theorem 3.3.

The formalized hypothesis and conclusion are both strict. For a POVM, completeness identifies the defect with \(1-\varphi (\sum _a M_a^2)\), but does not turn a non-strict bound into a strict one. A compactness argument in finite dimension would retain the constant \(9\) at the non-strict bound — apply the theorem at every larger error, then pass to a convergent subsequence of projective measurements and use continuity — and would also cover zero defect. Corollary 3.45, the one application in this chapter, does not need it: its Cauchy–Schwarz step produces slack \(\gamma ^2\) over the bound it has to clear, so the strict hypothesis holds as stated. The comments after that corollary record the repair. That corollary is no longer on the formalized route: the analysis of the Pauli basis test is stated for projective strategies in a bipartite model, whose measurements need no orthonormalization, so nothing outside the vendored tree applies this theorem at present.

For the commuting-operator track this repository adds the fourth case of Remark 3.6: algebras without abelian projections, factor or not.

Let \(\cal {M}\) be a von Neumann algebra on a Hilbert space \(\mathcal{H}\) with a faithful tracial state of the form \(\tau (x) = \sum _{k {\lt} d} \langle g_k, x g_k \rangle \) for finitely many vectors \(g_k\). Then \(\cal {M}\) has a centre-valued trace: a linear map \(E\), defined on \(\cal {B}(\mathcal{H})\) and constrained on \(\cal {M}\) only, with values in the centre \(\cal {Z}\) of \(\cal {M}\), which is positive, faithful, tracial, the identity on \(\cal {Z}\), \(\cal {Z}\)-linear, continuous along bounded weak-operator convergent nets, and admits division in the centre; and two projections of \(\cal {M}\), or of the matrix algebra \(M_n(\cal {M})\) compared through \(\sum _i E(X_{ii})\), with the same centre-valued trace are Murray–von Neumann equivalent. These are the clauses of the centre-valued trace of the vendored structure-theory interface, at the projection \(1\); no factor, type or separability hypothesis is needed.

Proof ▶

For \(x \in \cal {M}\), the elements \(y \in \cal {M}\) with \(\| y\| \le \| x\| \) and \(\tau (yc) = \tau (xc)\) for every central \(c\) form a set that is compact and convex in the weak operator topology, on which the \(2\)-norm \(y \mapsto \sum _k \| y g_k\| ^2\) is lower semicontinuous and, by the parallelogram law and faithfulness, has a unique minimizer. Conjugation by a unitary of \(\cal {M}\) preserves the set and, by traciality, the \(2\)-norm, so it fixes the minimizer, which therefore commutes with every unitary of \(\cal {M}\), hence with \(\cal {M}\): it is central, and it is \(E x\). A central element is determined by its pairings with the centre, which gives linearity and the algebraic clauses; normality and division are cluster-point arguments. For comparison, the vendored proof for factors builds a maximal partial isometry \(W\) from \(p\) into \(q\) by a greedy chain and uses the factor hypothesis only to exclude two nonzero complements; here maximality makes the central support \(c\) of \(p - W^*W\) kill \(q - WW^*\), and applying \(E\) to \(c(p - W^*W) = p - W^*W\) and \(c(q - WW^*) = 0\) shows that both complements vanish. The matrix case is the same argument in \(M_n(\cal {M})\), whose centre is the amplified centre of \(\cal {M}\). The full proof is reports/c6b-paper-proofs.md, Section 2.

Theorem 3.8 Orthonormalization in algebras without abelian projections
✓

Let \(\cal {M}\) be a von Neumann algebra with no nonzero abelian projection and a faithful tracial state given by finitely many vectors, as in Lemma 3.7. Then the conclusion of Theorem 3.5 holds in \(\cal {M}\) for every vector state, and more generally for every positive normalized functional of trace-class form: a POVM \(\{ M_a\} \) in \(\cal {M}\) with \(\varphi (\sum _a M_a^2) {\gt} 1 - \varepsilon \) is within \(\varphi (\sum _a (M_a - P_a)^*(M_a - P_a)) {\lt} 9\varepsilon \) of a projective measurement \(\{ P_a\} \) in \(\cal {M}\).

Proof ▶

The vendored proof of the theorem for II\(_1\) factors uses its factor hypothesis only to build its centre-valued trace, the scalar trace \(x \mapsto \tau (x)\, 1\); it reads the centre-valued trace only through the clauses of the interface, and the state only through positivity, normalization and its trace-class form. With the centre-valued trace of Lemma 3.7 the same proof applies: the selection lemma on the type II\(_1\) part, which is all of \(\cal {M}\), then the polar decomposition in \(M_n(\cal {M})\) and the three-term estimate.

3.4 Magic Square rigidity

[\(\bullet \) easy] [\(\uparrow \) QuantumLib]

Theorem 3.9 Magic Square rigidity

Let \(\mathscr {S}= (|\psi \rangle , A, B)\) be a strategy that succeeds in the Magic Square game \(\mathfrak {G}^{\mathrm{MS}}\) with probability \(1 - \varepsilon \). Then there exist local isometries \(\phi _\textsc{A}: \mathcal{H}_\textsc{A}\to (\mathbb {C}^2)^{\otimes 2} \otimes \mathcal{H}_{\textsc{A}''}\), \(\phi _\textsc{B}: \mathcal{H}_\textsc{B}\to (\mathbb {C}^2)^{\otimes 2} \otimes \mathcal{H}_{\textsc{B}''}\) and a state \(|\textsc{aux}\rangle \in \mathcal{H}_{\textsc{A}''} \otimes \mathcal{H}_{\textsc{B}''}\) such that

\begin{equation*} \left\| { \phi _\textsc{A}\otimes \phi _\textsc{B}|\psi \rangle - |\textsc{EPR}_2\rangle ^{\otimes 2} \otimes |\textsc{aux}\rangle } \right\| \leq O(\sqrt{\varepsilon })\; , \end{equation*}

and, writing \(\tilde A = \phi _\textsc{A}A \phi _\textsc{A}^\dagger \), the observables for the questions \(\textsc{Variable}_1\) and \(\textsc{Variable}_5\) satisfy \(\tilde A^{\textsc{Variable}_1}_b \approx _{\sqrt\varepsilon } \sigma ^X_b \otimes I\) and \(\tilde A^{\textsc{Variable}_5}_b \approx _{\sqrt\varepsilon } \sigma ^Z_b \otimes I\) on \(|\textsc{EPR}_2\rangle ^{\otimes 2} \otimes |\textsc{aux}\rangle \) (and symmetrically for \(\tilde B\)). In particular the corresponding \(\pm 1\)-observables approximately anticommute: \(\tilde A^{\textsc{Variable}_1} \tilde A^{\textsc{Variable}_5} \approx _{\sqrt\varepsilon } - \tilde A^{\textsc{Variable}_5} \tilde A^{\textsc{Variable}_1}\). The Lean proof does not use this theorem: the Pauli basis test consumes only the direct anticommutation of Lemma 3.10.

Source.

Wu, Bancal, McKague and Scarani  [ 14 ] ; the game is the Mermin–Peres magic square. The form above is  [ 1 , Section 8 ] .

[\(\bullet \bullet \) medium]

Let \(|\psi \rangle \) be a unit vector on \(\mathbb {C}^{d_\textsc{A}} \otimes \mathbb {C}^{d_\textsc{B}}\) and let \(A, B\) be POVM families for the Magic Square game (Definition 2.17 at the magic square’s layout), failing it with probability at most \(\varepsilon \geq 0\). Write \(B_j\) for the second player’s \(\pm 1\)-observable for variable \(\textsc{Variable}_j\) — the difference of the two bit outcomes, every other answer contributing zero — and \(A_j\) for the first player’s. If the first player’s measurements are projective, then

\begin{equation*} \left\| { (I\otimes \{ B_1, B_5 \} ) |\psi \rangle } \right\| ^2 \; \leq \; 186624\, \varepsilon \; , \end{equation*}

and if the second player’s are, then \(\left\| { (\{ A_1, A_5 \} \otimes I) |\psi \rangle } \right\| ^2 \leq 186624\, \varepsilon \), where \(\{ X, Y\} = XY + YX\). The bound holds on the original observables: no isometry, no full Schmidt rank and no extracted EPR pairs are required, and of projectivity only the other player’s. It averages without loss: for a family indexed by \(\omega \) on the same pair of spaces, the first player’s measurements projective, with weights \(\nu _\omega \geq 0\), \(\sum _\omega \nu _\omega \left\| {(I\otimes \{ B_{1,\omega }, B_{5,\omega }\} )|\psi _\omega \rangle } \right\| ^2 \leq 186624 \sum _\omega \nu _\omega \varepsilon _\omega \). The Lean proves it for two families of POVMs in the players’ algebras of any bipartite model (Definition 8.49) in a unit state; the statement above is its tensor-product instance.

Proof ▶

Repair each of the first player’s constraint measurements, sending every outcome that violates the constraint’s parity to a fixed parity-valid triple. The repaired measurement is a coarse-graining of a projective measurement, hence projective, and its signed sums are commuting reflections \(C_{c,j}\) whose product over a constraint is exactly that constraint’s sign. The second player’s POVMs are untouched. Uniformity of the \(36\) oriented question incidences bounds each conditional loss by \(36\varepsilon \), and \(\left\| {(C_{c,j} - B_j)|\psi \rangle } \right\| ^2 \leq 2 - 2(1 - 2\ell _{c,j}) \leq 4 \ell _{c,j}\) using \(C_{c,j}^2 = I\) and \(B_j^2 \leq I\), so \(\gamma := \max _{c,j} \left\| {(C_{c,j} - B_j)|\psi \rangle } \right\| \) satisfies \(\gamma ^2 \leq 144 \varepsilon \).

Write \(a, \dots , i\) for Bob’s variables \(1, \dots , 9\) in row-major order. Substituting one operator at a time costs \(\gamma \) each, cross-party products appearing in reversed order, and a constraint relation inserted before a right suffix of length \(k\) costs the relation’s own \(3\gamma \) plus \(2k\gamma \). The six-step path

\begin{equation*} d\, a\, e\, b \; \to \; g\, e\, b \; \to \; g\, h \; \to \; i \; \to \; -f\, c \; \to \; -d\, e\, c \; \to \; -d\, e\, a\, b\; , \end{equation*}

applying the column-one, column-two, row-three, column-three, row-two and row-one constraints in turn, costs \((7 + 3 + 3 + 3 + 5 + 3)\gamma = 24\gamma \), and its two ends give \(\left\| { d (ae + ea) b |\psi \rangle } \right\| \leq 24 \gamma \). The sign appears exactly once, at the column-three constraint, which is the one of product \(-1\).

Put \(R = ae + ea\) and \(T = Rb\). Since \(\left\| {(I- B_j^2) W |\psi \rangle } \right\| \leq (2 + k)\gamma \) for a word \(W\) of length \(k\), the two length-three words in \(T\) give \(\left\| {(I- d^2) T |\psi \rangle } \right\| \leq 10\gamma \), and hence \(\left\| {T|\psi \rangle } \right\| \leq 34\gamma \). Finally Alice’s reflection for variable \(2\) commutes with the Bob operator \(R\), squares to \(I\), and approximates \(b\) on \(|\psi \rangle \) to within \(\gamma \), which removes the trailing factor: \(\left\| {R |\psi \rangle } \right\| \leq 34\gamma + 2\gamma = 36\gamma \). Squaring and substituting \(\gamma ^2 \leq 144\varepsilon \) gives \(1296 \cdot 144 = 186624\). Exchanging the parties gives Alice’s bound. The averaged form is the pointwise bound averaged, with no Jensen step.

Comments.

This lemma is why Theorem 3.9 is no longer an assumption of this blueprint (Remark 3.81). Full two-EPR self-testing is strictly stronger and is not proved by this route — but the pipeline never needed it: what the Pauli basis test consumes is one anticommutation bound on the original observables, and the argument above delivers it from the game alone, with an explicit constant and without any of the structural hypotheses rigidity would impose. For a formalization this is a much better target than Theorem 3.9: the ingredients are the projectivity of one player’s measurements, a telescoping substitution bound, and one six-step word identity in a group generated by nine reflections with six relations.

One player is projective, which is a choice, not a correction. An earlier statement here, following the paper, allowed arbitrary POVM families on both sides, and its proof dilated the constraint measurements to projective ones on one ancilla shared by the six constraints (Lemma 2.30). The formalization is now stated in a bipartite model, where every strategy of the Pauli basis test is projective from the start (Definition 8.62), and Lemma 3.46, the one consumer, applies the bound with the constraint player projective; so the repaired measurement is used as it is, on the model’s own state, and the dilation has no consumer. The POVM form would follow from the projective one by dilating the constraint player alone on a one-sided ancilla extension (Definition 8.75, Lemma 8.77), which changes neither the other player’s observables nor their norms on the state; that step is not formalized. The paper was not consulted for this revision.

Comments.

The direct bound is the elementary anticommutation input that the Pauli test amplifies to many qubits. Its bipartite form already matches the soundness proof’s use; a tracial specialization is optional and is not an additional pipeline prerequisite.

One clause moved out of the statement. An earlier revision also asserted the transfer to the point observables of the Pauli basis test: if \(P, Q\) have cross-party consistency errors \(s_X, s_Z\) against \(B_1, B_5\) then \(\left\| {\{ P,Q\} |\psi \rangle } \right\| \leq 2 s_X + 2 s_Z + \left\| {\{ B_1,B_5\} |\psi \rangle } \right\| \). That is not a statement about the Magic Square game at all — \(P\) and \(Q\) are the Pauli test’s observables — so it belongs to Lemma 3.46, which is where it is used, and it is stated there. The argument is two substitutions across the parties: \(P\) and \(Q\) sit on one factor and \(B_1, B_5\) on the other, so \(PQ|\psi \rangle \approx _{s_Z} P B_5 |\psi \rangle = B_5 P |\psi \rangle \approx _{s_X} B_5 B_1 |\psi \rangle \), and symmetrically for \(QP\).

The game this lemma is about is the one of Definition 2.17 at the magic square’s layout, and that definition is symmetric in the players: an equation, a variable of it, and a uniform orientation, so \(36\) equiprobable oriented incidences. That is what makes the statement’s Alice half expressible at all — a one-directional game would never send Alice a variable, so \(A^{\textsc{Variable}_j}\) would not exist — and it is where the constant comes from: \(\sum _{c,j} \ell _{c,j} \leq 36\varepsilon \) gives \(\gamma ^2 \leq 144\varepsilon \) and \(36^2 \cdot 144 = 186624\), the paper’s constant. An earlier revision of the formalization had the one-directional game, where the same argument gives \(18\varepsilon \), \(\gamma ^2 \leq 72\varepsilon \) and \(36^2 \cdot 72 = 93312\, \varepsilon \); either serves Lemma 3.46, which needs only \(O(\varepsilon )\), but the game and the constant must match.

3.5 The classical low individual degree test

[\(\bullet \bullet \bullet \) hard]

Definition 3.11 Canonical-line low individual degree test
✓
#

Let \(\mathbb {F}\) be a finite field with \(q\) elements and let \(m \geq 1\) and \(d\) be integers. The \((m,q,d)\)-low individual degree test is the two-player game in which the verifier picks one of the following three sub-tests with probability \(\tfrac 13\) each, having sampled a uniform point \(u \sim \mathbb {F}^m\).

  1. Axis-parallel lines test. Sample a uniform direction \(i \sim [m]\) and a uniform role. One player receives the line \(\ell = \{ u + t e_i\} \) and answers a univariate polynomial \(f\) of degree at most \(d\); the other receives \(u\) and answers \(a \in \mathbb {F}\). Accept if \(f(u) = a\).

  2. Self-consistency test. Both players receive \(u\) and answer elements of \(\mathbb {F}\). Accept if the answers are equal.

  3. Diagonal lines test. Sample a uniform \(j \sim [m]\), a uniform direction \(v \in \mathbb {F}^m\) whose coordinates after the \(j\)-th vanish, and a uniform role. One player receives the line \(\ell = \{ u + t v\} \) and answers a univariate polynomial of degree at most \(md\); the other receives \(u\) and answers \(a \in \mathbb {F}\). Accept if \(f(u) = a\).

Comments.

This is Figure 1 of  [ 2 ] . The direction \(v\) of the diagonal lines test may be zero, in which case the “line” is the single point \(u\); this degenerate case is part of the test as stated. In the formalization, line questions are the lines themselves, presented canonically (the direction is rescaled so that its first nonzero coordinate is \(1\), and the base point is the point of the line whose corresponding coordinate vanishes), so that the same line asked by two sub-tests is the same question; a line answer is a polynomial in the parameter of that canonical parametrization.

Theorem 3.12 Quantum soundness of the canonical-line low individual degree test
✓

Let

\begin{equation*} \delta _{lidt}(\varepsilon , m, d, q, k) = 10^5 \, k^2 m^4 \bigl( \varepsilon ^{1/40000} + (d/q)^{1/40000} + e^{-k/(2560000 m^2)} \bigr). \end{equation*}

Let \(\mathscr {S}= (|\psi \rangle , A, B)\) be a tensor-product strategy for the \((m,q,d)\)-low individual degree test that succeeds with probability at least \(1 - \varepsilon \), and let \(k\) be an integer with \(k \geq 400md\) and \(k {\gt} 0\). Then there exist projective measurements \(G^\textsc{A}= \{ G^\textsc{A}_g\} \) on Alice’s space and \(G^\textsc{B}= \{ G^\textsc{B}_g\} \) on Bob’s space, both with outcomes the polynomials \(g\) in \(m\) variables of individual degree at most \(d\), such that, writing \(\delta = \delta _{lidt}(\varepsilon , m, d, q, k)\) and letting \(u \sim \mathbb {F}^m\) be uniform:

  1. Alice’s point measurement \(A^u\) and the evaluation \(G^\textsc{B}_{[g(u) = \cdot ]}\) are \(\delta \)-consistent;

  2. the evaluation \(G^\textsc{A}_{[g(u) = \cdot ]}\) and Bob’s point measurement \(B^u\) are \(\delta \)-consistent;

  3. \(G^\textsc{A}\) and \(G^\textsc{B}\) are \(\delta \)-consistent.

Proof ▶

This is Theorem 1.3 of  [ 2 ] (thm:main-formal there), whose proof is the MIPStarRE formalization vendored into this repository. The Lean proof translates a strategy for our game into MIPStarRE’s strategy container (the state as a density matrix; the line measurements as coarse-grainings of the measurements at the canonical line questions along the change of parametrization, which makes them covariant under rebasing), shows that MIPStarRE’s failure surrogate is at most the rejection probability \(1 - \mathrm{val}\) (the consistency defect of each branch is at most the rejection probability of that branch, since acceptance forces the coarse-grained answers to agree), applies their main theorem, and reads the resulting measurements back into our vocabulary.

Source.

Ji, Natarajan, Vidick, Wright and Yuen  [ 2 ] , Theorem 1.3 (the formal version for general, not necessarily symmetric, strategies). The proof is a formalization by Sirui Lu and collaborators (https://github.com/LionSR/MIPStarRE), vendored into this repository with the authors’ permission at MIPRE/Background/LIDT/MIPStarRE/; the statement above is this project’s own, and is connected to theirs by an explicit bridge.

Comments.

Two hypotheses correct the printed statement, as established by that formalization: the sampling parameter satisfies \(k \geq 400md\) where the paper prints \(k \geq md\), and \(k\) must be positive, since the printed error vanishes at \(k = 0\). The parameter \(k\) remains free: the error carries both a factor \(k^2\) and a term \(e^{-k/(2560000m^2)}\). A chosen-\(k\) corollary in the shape of \(\delta _{qld}\) below is a separate quantitative derivation; it is not part of the displayed Lean theorem.

The paper’s seeded CL test and its tensor-code route

The following is the paper’s route to a different game interface. Its tensor-code reduction and reviewed intermediate statements are not the proof of Theorem 3.12, and have no Lean proof marks here. The seeded game and its theorem are in the pinned paper snapshot  [ 34 ] , ldt.tex, Definition of the game and Theorem lem:ld-soundness.

The single-codeword case of the seeded theorem is proved here, by a different route: an explicit adapter to the canonical-line test, Theorem 3.19 below. It certifies none of the paper’s intermediate statements, and they certify none of it.

For admissible \(q\), positive integers \(m,d,\mathrm{ldc}\) and \(m\mid q\), the seeded CL test is the paper’s typed low-degree game with parameters \((q,m,d,\mathrm{ldc})\). Each ordered pair of types from \(\{ \mathtt{Point},\mathtt{ALine},\mathtt{DLine}\} \) has weight \(1/9\), with question contents sampled from the corresponding CL distribution. Point questions ask for an element of \(\mathbb {F}_q^{\mathrm{ldc}}\). Axis-line questions retain a seed-labelled description \((u_0,s)\) and ask for \(\mathrm{ldc}\) degree-\(d\) polynomials; diagonal-line questions retain \((u_0,s,v)\) and ask for \(\mathrm{ldc}\) degree-\(md\) polynomials. The seed selects the direction class, with leading coordinates of the diagonal direction set to zero. The verifier checks the answer format, equality on identical same-type questions, and evaluation agreement for either line type against a point; the other type pairs impose no further check. In particular, different seed descriptions of the same geometric line remain different questions.

Comments.

The formalization is MIPRE.LIDT.CL.clGame (MIPRE/Background/LIDT/CLGame.lean), beside the canonical-line game MIPRE.LIDT.lidtGame of Definition 3.11 whose soundness is proved; keeping both in one vocabulary is what makes Remark 3.15’s adapter expressible at all. Three points.

The base point of a line question is the canonical representative \(L^{\mathrm{Ln}}_w(u)\) of Definition 6.2 — the canonical linear map with kernel \(\mathrm{span}\{ w\} \) — which is why that vocabulary had to come first. The seed function \(\chi \) is the paper’s eq:chi-func, \(0\)-indexed: under the fixed bijection \(\mathbb {F}_q \cong \{ 0, \ldots , q-1\} \), \(\chi (s)\) is the block of \(q/m\) elements that \(s\) falls into, and \(m \mid q\) is where it is used.

The seeding is not cosmetic, and aline_question_ne records it: two seeds in the same block give the same base point and the same direction, hence the same geometric line, and yet are different questions. A strategy may answer them differently, which is exactly the obligation Lemma 3.20 discharges by choosing a seed in each fibre.

The format check is not decoration, and the formalization now separates it from the subtests (Question.fmtOk and subtests, with accepts their conjunction). Two clauses of fig:ld-decider look alike and are opposite: an answer whose format does not match its question’s type is rejected (“If the answers returned by the players do not fit this format the decision procedure rejects”), whereas a well-formatted answer on one of the two cross type pairs is accepted (“in all cases where no action is indicated, accept”). An earlier version of clGame collapsed both into one catch-all that accepted, which made the test vacuous: the constant strategy answering a point-format answer to every question, the two line types included, passes every subtest, so the game has a value-\(1\) strategy whose point measurements are an arbitrary function of the point, and Theorem 3.14 is false for it. That defect and its repair are recorded in reports/clgame-format-check-missing.md; the statement of this definition was correct throughout, which is why the repair changes only the Lean and this paragraph.

Where fig:ld-decider says “\(t \in \mathbb {F}_q\) is such that \(x = u_0 + tw\)”, the point may fail to lie on the line and the condition is then vacuous. The formalization requires membership, as the canonical-line game already does: the two readings agree on the support of the question distribution, and following the convention of the test whose soundness is proved is what keeps the two comparable. The distribution itself is uniform over the nine ordered type pairs and the ambient \((u, s, v)\), so normalization is a single division rather than the per-subtest bookkeeping Definition 3.11 needs.

Each \(\chi \)-fibre has exactly \(q/m\) seeds (card_chi_fiber), so a uniform seed gives a uniform direction index and the induced axis-parallel line distribution is uniform over lines. This is the hypothesis \(m \mid q\) earning its place, and it is the input Lemma 3.21 consumes.

Theorem 3.14 Quantum soundness of the seeded CL test
✓

There are universal constants \(a\geq 1\) and \(0{\lt}b{\lt}1\) such that every projective strategy passing the seeded CL test with probability at least \(1-\varepsilon \), for \(\varepsilon {\gt}0\), admits projective measurements \(G^\textsc{A},G^\textsc{B}\) on the respective players’ spaces with outcomes tuples \((g_1,\ldots ,g_{\mathrm{ldc}})\) of polynomials of individual degree at most \(d\). Their evaluations are consistent with the other player’s point measurement on average over uniform \(u\in \mathbb {F}_q^m\), and the two full tuple measurements are consistent with each other, all with error at most

\[ \delta _{\mathrm{CL}}(\varepsilon ,q,m,d,\mathrm{ldc}) = a(dm\, \mathrm{ldc})^a\bigl(\varepsilon ^b+q^{-b}+2^{-bmd}\bigr). \]

The full tuple consistency has no question average. The Lean statement takes \(q=2^k\), \(m\mid q\) and \(m,d,\mathrm{ldc}\geq 1\); \(b\) is the exponent of Theorem 3.19 and \(a\) is the constant of Lemma 3.34. The tensor-code intermediates below remain separate targets.

Proof ▶

If \(m+\mathrm{ldc}\leq q\), Lemma 3.31 at the padding of Lemma 3.34, whose error that lemma absorbs. Otherwise the error bound is at least one, and any complete projective measurements satisfy the three conclusions.

Remark 3.15 The CL-to-canonical adapter and parameter corollary

Reusing Theorem 3.12 to prove the single-codeword case of Theorem 3.14 requires an explicit strategy adapter. It must control the question distributions and subtest weights, reverse coordinate order, remove the seed labels with a proved choice or averaging argument, and transport line answers under canonicalization and rebasing. It must also preserve the degree bounds and projectivity, or account for their repair, and recover the two original point-consistency conclusions and full-codeword consistency. A seeded strategy need not assign the same measurement to different descriptions of the same line.

A separate quantitative obligation is to choose an integer \(k\geq 400md\), \(k{\gt}0\), and bound the canonical theorem’s error, together with every adapter loss, by the single-codeword \(\delta _{\mathrm{CL}}\) above. The simultaneous extension and the padded Pauli use must then propagate the changed dimension and any ancillas. Formalizing the paper’s tensor-code route below is an alternative way to establish the seeded CL theorem; a proof by either route would not certify the intermediate claims of the other.

Both obligations are now met for \(\mathrm{ldc}=1\), which suffices for the padded QLD application: Lemmas 3.16–3.18 and Theorem 3.19. What the adapter does not supply is the simultaneous extension of Lemma 3.31, and it certifies none of Lemmas 3.20–3.23.

The canonical-line route, and what it certifies.

The adapter and the parameter corollary the remark calls for are built, and the single-codeword case of Theorem 3.14 follows from Theorem 3.12 — which this project has — rather than from the tensor code test, which it does not. planning/lidt-cl-adapter.md records the design, including two corrections found while proving it.

One structural remark before the statements. The canonical-line test’s only same-type subtest is point self-consistency, so a pair of two line questions carries no weight on that side and no line-synchronicity transfer is needed: no Lemma 3.22, no Schwartz–Zippel, and no \(d/q\) term from that source. The paper’s route needs them because the tensor code test has a line synchronicity condition. A \(d/q\) term still appears in \(\delta _{\mathrm{CL}}\), from the canonical-line theorem’s own error.

Lemma 3.16 The adapter’s two maps, and acceptance
✓

Assume \(m\mid q\) and fix a family member: a seed position \(\sigma (i)\) in each \(\chi \)-fibre, and a scale \(c\neq 0\). Let \(\rho \) be coordinate reversal on \(\mathbb {F}_q^m\). Map a canonical-line question to a seeded one by

\[ \mathtt{point}\ u \mapsto \mathtt{Point}\ \rho u,\qquad \ell \mapsto (L^{\mathrm{Ln}}_{\rho w}(\rho u_0),\ s_{\sigma },\ c\cdot \rho w), \]

\(w\) the direction of \(\ell \) and \(u_0\) its base point, with \(s_\sigma \) the seed \(\sigma \) selects in the fibre of the \(\chi \)-index of \(\rho w\), and the third component omitted for an axis-parallel line. Map a seeded answer back by reading its single component, reparametrizing a diagonal-line polynomial affinely by \(t\mapsto c^{-1}t+c^{-1}\mathrm{sh}(\ell )\), where \(\mathrm{sh}(\ell )\) is the shift between the two tests’ base points for \(\ell \), and sending an answer whose format does not match its question to a fixed answer.

Then on every question pair the canonical-line test gives positive weight, every answer pair the seeded test accepts at the images is accepted by the canonical-line test at the originals.

Proof ▶

Five cases, one per shape of a canonical-line sample: point self-consistency, an axis-parallel line against a point, a diagonal line against a point, and the last two with the roles swapped. The format branches are unreachable, because the seeded test rejects an answer whose format does not match its question.

On axis-parallel lines the two tests’ base points agree exactly, so the reparametrization is the identity there. On diagonal lines they do not: the seeded base point zeroes the coordinate at the first nonzero entry of \(\rho w\), which is the reversal of the last nonzero entry of \(w\), while the canonical presentation zeroes it at the first. The two parameters of a point of the line therefore differ by the shift \(\mathrm{sh}(\ell )\), and by the scale \(c\); the affine reparametrization undoes both, and preserves the degree bound because composing with a degree-one polynomial does.

The restriction to the support is not cosmetic: off it the claim is false, a pair of two line questions being a real question pair of the seeded test that the canonical-line test has no subtest for.

Lemma 3.17 The adapter’s cost in the question distributions
✓

Average the family of Lemma 3.16 over the seed positions and the scale, uniformly and independently. Then for every seeded question pair \((x,y)\) the average canonical-line mass of its preimage is at most \(3m\) times the seeded mass of \((x,y)\).

Proof ▶

Both distributions are sums over a sample type against an indicator, so the bound is a count of samples. Reordering the average puts it as a weight times a count of family members, and that is what the shapes differ in: the image of a point question does not depend on the family member at all, while a line question’s pins the seed position at one index and, for a diagonal line, the scale as well.

Four of the nine shapes carry no weight, by the structural remark above. For a pair of points the averaging is neutral and the requirement is \(1/(3q^m)\leq C/(9q^m)\). For an axis-parallel line against a point the single contributing sample has weight \(1/(6mq^m)\), the family is pinned at one of \(m\) indices, and the seeded test puts at least \(1/(9q^{m+1})\) on the pair, so \(C\geq 3/2\) suffices — the factor \(q/m\) a fixed seed choice would have cost, paid back exactly by the averaging. For a diagonal line the crude bound “number of contributing samples times the largest of their weights” replaces the geometric series over the admissible \(j\), which costs a factor \(m\) and nothing in \(q\); with the scale pinned as well the constant is \(3q/(2(q-1))\), which \(3m\) covers for every \(q\geq 2\).

Two points where the design is forced rather than free. Carrying the direction unrescaled would concentrate the push-forward on a \(1/(q-1)\) fraction of the seeded questions describing the same line, and force \(C\) to grow with \(q\); averaging over one global scale fixes it. And a singleton line — direction zero — must be sent to a seed with \(\chi =m-1\), not \(\chi =0\): the seeded test has \(q^{\chi }\) samples for such a question, so only the largest \(\chi \) dominates the canonical-line mass, and the wrong choice costs a factor \(q^{m-1}\).

Lemma 3.18 The parameter choice
✓

Take \(a=2\cdot 10^{11}\), \(b=1/40000\) and \(k=400m^3d+400m\). Then for all \(m,d\geq 1\), all \(q\) and all \(\varepsilon \geq 0\),

\[ 100000\, k^2m^4\Bigl((3m\varepsilon )^{b}+(d/q)^{b}+e^{-k/(2560000m^2)}\Bigr) \ \leq \ a(dm)^{a}\bigl(\varepsilon ^{b}+q^{-b}+2^{-bmd}\bigr), \]

the left side being the error of Theorem 3.12 at \(k\) on failure \(3m\varepsilon \) and the right side \(\delta _{\mathrm{CL}}\) at \(\mathrm{ldc}=1\). Moreover \(k\geq 400md\) and \(k{\gt}0\).

Proof ▶

Term by term. \((3m\varepsilon )^b=(3m)^b\varepsilon ^b\leq 3m\, \varepsilon ^b\) and \((d/q)^b=d^b q^{-b}\leq d\, q^{-b}\), since \(x^b\leq x\) for \(x\geq 1\) and \(b\leq 1\). The exponential is where \(k\) is chosen: \(e^{-k/(2560000m^2)}\leq 2^{-bmd}\) asks for \(k\geq 2560000\, b\, m^3d\ln 2=64(\ln 2)m^3d\), about \(44.4\, m^3d\), and \(400m^3d\) clears it; the \(400m\) summand is there only so that \(k{\gt}0\) and \(k\geq 400md\) hold for every \(m,d\geq 1\). The prefactor is then \(100000k^2m^4\cdot 3md\leq 1.92\cdot 10^{11}(dm)^{11}\leq a(dm)^a\), using \(k\leq 800m^3d\).

\(d\geq 1\) is needed and is not cosmetic: at \(d=0\) the right side is identically zero, so no positive error could be bounded by it.

Let \(m,d\geq 1\), \(m\mid q\) and \(\varepsilon \geq 0\). Every projective strategy passing the seeded CL test at \((q,m,d,1)\) with probability at least \(1-\varepsilon \) admits projective measurements \(G^\textsc{A},G^\textsc{B}\) on the respective players’ spaces with outcomes polynomials of individual degree at most \(d\), such that A’s point measurement is consistent with \(G^\textsc{B}\) evaluated at the point on average over uniform \(u\in \mathbb {F}_q^m\), \(G^\textsc{A}\) evaluated at the point is consistent with B’s point measurement, and \(G^\textsc{A}\) and \(G^\textsc{B}\) are consistent with each other, all with error at most \(\delta _{\mathrm{CL}}(\varepsilon ,q,m,d,1)=a(dm)^a(\varepsilon ^b+q^{-b}+2^{-bmd})\) for the constants of Lemma 3.18.

Proof ▶

Lemma 3.16 gives, for each family member, a strategy for the canonical-line test built from the seeded one by reindexing the questions and coarse-graining the answers — same spaces, same state, so projectivity and the dimensions are untouched. Lemma 3.17 bounds the failure of the adapted strategy by \(3m\) times the failure of the original, on average over the family, so some member achieves it; that is the choice of seed the seeding makes necessary. Theorem 3.12 applies to it at the \(k\) of Lemma 3.18, and that lemma converts its error.

The three conclusions come back through the coordinate reversal. It relabels the questions by a bijection that preserves the uniform distribution, and the outcomes by the same reversal of a polynomial’s exponent vectors — a bijection of the polynomials of individual degree at most \(d\), the bound being symmetric in the variables — under which evaluation at \(u\) becomes evaluation at \(\rho u\). Consistency is invariant under both.

[\(\bullet \bullet \) medium]

Lemma 3.20 Setup, and the two tests are not the same test

Let \(C\) be the Reed–Solomon code of degree \(d{\lt}q\) over \(\mathbb {F}_q\). The codewords of \(C^{\otimes m}\) are exactly the evaluation tables of \(m\)-variate polynomials of individual degree at most \(d\). The seeded CL test with \(\mathrm{ldc}=1\) is not the two-prover tensor code test — the two differ in which lines they sample and how they label answers — so a strategy for the former must be converted, and the converted strategy \(\mathscr {S}'\) is well defined and projective: points by reversing the coordinate order, lines by choosing a seed in the fibre of size \(q/m\) with answers relabelled through the parametrization of the line, pairs by restriction. The Lean proof does not use this lemma: it converts a seeded strategy to the canonical-line test instead (Lemmas 3.16 and 3.17).

[\(\bullet \bullet \bullet \) hard]

Lemma 3.21 Transfer of the line and pair tests

Assume \(m \mid q\). Then a uniform axis-parallel line of \([q]^m\) together with a uniform seed from its fibre and a uniform point on it induces exactly the axis-parallel-line distribution the tensor code test uses; and for two independent uniform points of a subcube fixing the last \(j - 1\) coordinates, the pair (point, difference) is distributed as the diagonal-line test requires, the seed law \(\Pr [\chi (s) = i] \propto q^{i-1}\) matching the conditional law of the seeded CL test. The Lean proof does not use this lemma: the transfer it needs is the mass bound of Lemma 3.17, against the canonical-line test.

Proof ▶

The line case needs the conditional law of the seed given the line, which is immediate from the joint distribution rather than part of the cited normal form; the divisibility \(m \mid q\) is where it is used, and is the same hypothesis that appears in Remark 6.169 for the same reason.

[\(\bullet \bullet \) medium]

Lemma 3.22 Transfer of synchronicity

If the original seeded CL strategy fails with probability at most \(\varepsilon \), points synchronicity of \(\mathscr {S}'\) fails with probability at most \(9\varepsilon \), and lines synchronicity with probability at most \(81\varepsilon + d/q\). The Lean proof does not use this lemma: the canonical-line test has no line–line subtest, so no line synchronicity is transferred.

Proof ▶

A triangle chain through the other player’s point measurement, plus the observation that two distinct univariate polynomials of degree \(d\) agree at no more than \(d\) of the \(q\) points, which is Lemma 3.111 in one variable.

[\(\bullet \bullet \) medium]

Lemma 3.23 Summation, derandomization, and the parameter choice

Summing the per-subtest bounds with the tensor code test’s weights gives expected total failure at most \(\varepsilon ' = C(\varepsilon + md/q)\) over the independent uniform choices of seeds, so some deterministic choice achieves \(\varepsilon '\). Restrict to \(d {\lt} q\), so that Reed–Solomon of degree \(d\) over \(\mathbb {F}_q\) is defined with distance \(q - d\); the number of codeword coefficients is then \(t = d + 1\), and \(k = m^3 d + 12m(d+1)\) satisfies the tensor code theorem’s hypothesis \(k \geq 12mt\) for all \(m, d \geq 1\) while keeping \(e^{-k/m^2} \leq e^{-md}\) and \(k = \mathrm{poly}(m, d)\). (The ledger writes this free parameter \(r\) rather than \(k\) at node \(1.2.1.8\); it is the \(k\) of Theorem 3.24, and has nothing to do with the \(k\) of the field size \(q = 2^k\).) The Lean proof does not use this lemma: seed averaging and the choice of \(k\) are Theorem 3.19 and Lemma 3.18.

[\(\bullet \bullet \bullet \) hard]

Theorem 3.24 Synchronous tensor code test

Let \(C\subseteq \Sigma ^n\) be a nonempty linear code over a finite field, of blocklength \(n\) and distance \(\Delta \), and set \(t=n-\Delta +1\). Assume \(C\) is interpolable: arbitrary symbols prescribed at any \(t\) distinct coordinates extend to a codeword. Let \(m\geq 1\), and let a synchronous tracial strategy \((\tau ,A,B,P)\) in an algebra \(\cal M\) pass the augmented tensor code test for \(C^{\otimes m}\) with probability at least \(1-\varepsilon '\). For every integer \(k\geq 12mt\) there is a projective measurement \(\{ G_c\} _{c\in C^{\otimes m}}\) in the same algebra with

\[ \mathop{\mathbb {E}}_{u\sim [n]^m}\sum _{c\in C^{\otimes m}}\tau \bigl(G_c A^u_{c(u)}\bigr) \geq 1-\eta ,\qquad \eta =\mathrm{poly}(m,t,k)\cdot \mathrm{poly}\bigl(\varepsilon ',n^{-1},e^{-\Omega (k/m^2)}\bigr). \]

The Lean proof does not use this theorem: it proves Theorem 3.14 from Theorem 3.12 through the canonical-line adapter.

Proof ▶

This is the synchronous theorem of  [ 3 ] , with its free parameter written \(k\) here. The induction includes the base case \(m=1\). Its reviewed decomposition is recorded below; no Lean proof of this tensor-code theorem is claimed. Lemma 3.29 supplies the separate two-prover contract that the seeded CL reduction consumes.

[\(\bullet \bullet \bullet \) hard]

Lemma 3.25 The induction inside the tensor code theorem

The theorem is proved by induction on the number of tensor factors. For a single factor a synchronous strategy passing the test yields a measurement over codewords of \(C\) with the claimed consistency. The step from \(m\) to \(m+1\) composes the two tools of Lemma 3.26, and the closing arithmetic propagates the error terms with universal constants. The Lean proof does not use this lemma, for the reason given at Theorem 3.24.

[\(\bullet \bullet \bullet \) hard]

Lemma 3.26 Self-improvement and pasting

Two tools drive the induction. Self-improvement: a measurement family that almost satisfies the test’s conditions can be replaced by an exactly projective family that is approximately consistent, at controlled error. Pasting: measurements for the first \(j\) coordinates and for coordinate \(j+1\) that approximately commute on average — which the subcube commutation test certifies — can be pasted into a joint measurement over the restricted tensor code. The Lean proof does not use this lemma, for the reason given at Theorem 3.24.

[\(\bullet \bullet \bullet \) hard]

Corollary 3.27 Rigidity transfer to symmetric strategies, with the marginal condition

Let \(\mathfrak {G}\) be a symmetric game with common question marginal \(\nu \), let \(\mathcal{Y}\) and \(\mathcal{B}\) be finite non-empty auxiliary sets, let \(p\) be a distribution on \(\mathcal{X}\times \mathcal{Y}\), and let \(R \geq 1\) satisfy

\begin{equation*} p_{\mathcal{X}}(x) \; \leq \; R\, \nu (x) \qquad \text{for all } x \in \mathcal{X}\; . \end{equation*}

For each \((x,y)\) let the sets \(g_{xy}(a) \subseteq \mathcal{B}\), \(a \in \mathcal{A}\), be pairwise disjoint (not necessarily exhaustive), and for a POVM \(N^y\) write \(N^y_{g_{xy}(a)} = \sum _{b \in g_{xy}(a)} N^y_b\). Let \(\kappa : [0,1] \to \mathbb {R}_{\geq 0}\) be convex and non-decreasing, and suppose that every symmetric projective maximally entangled (PME) strategy \(T = (|\Phi \rangle , Q)\) for \(\mathfrak {G}\) (so \(|\Phi \rangle \) is maximally entangled), of value \(\omega (T)\), admits complete auxiliary POVMs \(N^y\) with

\begin{equation*} F_p(T, N) \; :=\; \mathop{\mathbb {E}}_{(x,y) \sim p} \sum _{a \in \mathcal{A}} \langle \Phi | Q^x_a \otimes N^y_{g_{xy}(a)} |\Phi \rangle \; \geq \; \kappa \bigl( \omega (T) \bigr)\; . \end{equation*}

Then there are universal constants \(C_0, c_0 {\gt} 0\) — supplied by the squared-distance decomposition behind Theorem 3.3 — such that, writing \(e(\delta ) = C_0 \delta ^{c_0}\) and \(s(\delta ) = 2\sqrt{2\delta } + 8\sqrt{e(\delta )}\), every symmetric projective strategy \(\mathscr {S}= (|\psi \rangle , A)\) of value \(\omega \) and synchronicity defect \(\delta = 1 - \mathop{\mathbb {E}}_{x \sim \nu } \sum _a \langle \psi | A^x_a \otimes (A^x_a)^{\mathsf{T}} |\psi \rangle \) admits complete auxiliary POVMs \(M^y\) on its own Bob space with

\begin{equation*} F_p(\mathscr {S}, M) \; \geq \; \max \Bigl\{ 0,\; \kappa \bigl( \max \{ 0, \omega - s(\delta )\} \bigr) - \sqrt{R\, e(\delta )} \Bigr\} \; . \end{equation*}

Two parts of the hypothesis are load-bearing and easy to lose. Symmetric means the Schmidt form \(|\psi \rangle = \sum _j \sqrt{r_j} |j\rangle |j\rangle \) with \(r_j \geq 0\) and Bob’s game measurements the transposes of Alice’s; swap symmetry alone is not a sufficient input. And the conclusion delivers a POVM: it asserts no projectivity, so a consumer needing projective operators must project separately, at its own cost. The Lean proof does not use this corollary, for the reason given at Theorem 3.3.

Remark 3.28 The printed transfer corollary is false without the marginal condition

The marginal condition \(p_{\mathcal{X}} \leq R\nu \) in Corollary 3.27 is not book-keeping. Corollary 4.1 of  [ 9 ] is stated for an arbitrary auxiliary distribution \(p\), and in that unrestricted form it is false; the source applies an estimate averaged over \(\nu \) to \(p_{\mathcal{X}}\) without justification. The counterexample is two questions wide. Let \(\mathfrak {G}\) ask only question \(0\) and check equality, let \(p\) be supported on question \(1\) alone, let \(g(a) = \{ a\} \), and let \(\kappa = 1\). Every symmetric PME strategy meets the auxiliary hypothesis, using the transpose of its question-\(1\) measurement: on a maximally entangled state, agreement is the normalized trace of \(\sum _a (Q^1_a)^2=I\). But the symmetric projective strategy \(|00\rangle \) measuring \(\sigma ^Z\) at question \(0\) and \(\sigma ^X\) at question \(1\) has game value \(1\) and synchronicity defect \(0\), while every Bob POVM achieves auxiliary agreement exactly \(\tfrac 12\) — so the conclusion would force \(\tfrac 12 \geq \kappa (1) = 1\). Here \(p_{\mathcal{X}}\) is supported where \(\nu \) vanishes, so no finite \(R\) exists and Corollary 3.27 does not apply.

What rescues the use made of it here is that the tensor code test’s own sampling is comfortable: \(p\) is uniform on point questions while \(\nu (u) = \tfrac 49 n^{-m}\), giving \(R = \tfrac 94\), so Lemma 3.29 pays only the universal synchronization losses. This is worth recording because a formalization must carry the condition explicitly — it is exactly the hypothesis a paraphrase drops — and because it is the one defect the 2026-09-14 adversarial round of the companion campaign turned up (a major challenge against ledger node \(1.2.1.7.2.3\), resolved by amending the node to the statement given above rather than by repairing the source).

Lemma 3.29 From the synchronous to the two-prover form

With the same code hypotheses and \(t=n-\Delta +1\), let a finite-dimensional two-prover projective strategy pass the two-prover tensor code test with probability at least \(1-\varepsilon '\), and let \(k\geq 12mt\). There are projective measurements \(G^\textsc{A},G^\textsc{B}\), with outcomes in \(C^{\otimes m}\), on the players’ respective original spaces. With error \(\eta '=\mathrm{poly}(m,t,k)\cdot \mathrm{poly}(\varepsilon ',n^{-1},e^{-\Omega (k/m^2)})\), Alice’s point measurement is consistent with \(G^\textsc{B}\) evaluated at a uniform point; the restriction of \(G^\textsc{A}\) to a uniform axis-parallel line is consistent with Bob’s line measurement; and \(G^\textsc{A},G^\textsc{B}\) are consistent as full codeword measurements. The last conclusion has no question average. The reverse point consistency follows from the first and third conclusions and the test’s point self-consistency, with a change of universal constants. The Lean proof does not use this lemma: the two-prover conclusion it wants comes, for the canonical-line game, from Theorem 3.12.

Proof ▶

For symmetric PME strategies, the normalized trace realizes their correlations, so Theorem 3.24 supplies the PME premise of Corollary 3.27. For a general strategy, symmetrize and apply the corrected transfer with a concavified error function, at \(R = \tfrac 94\) as Remark 3.28 records. Symmetrization is where care is needed: the swap construction preserves the passing probability, but what the corollary consumes is the Schmidt-basis form with Bob’s operators the transposes of Alice’s, which swap symmetry alone does not provide — the approximate Takagi bridge of Remark 3.36 is what supplies it. The auxiliary measurements are compressed back to the original spaces and projectivized there, using Theorem 3.5; projectivity is not a conclusion of the transfer corollary itself. The consistency estimates then give the point, line and full-codeword conclusions. These are steps of the paper’s reviewed proof, not consequences already checked by the canonical-line Lean theorem.

Remark 3.30 Almost-synchronicity belongs to the paper’s tensor-code route

The outer pipeline carries soundness in \(\mathrm{val}^*\) and needs no conversion of a synchronous value bound. The paper’s proof of Theorem 3.14 nevertheless uses almost-synchronicity internally, through the corrected transfer in Lemma 3.29.

The sorry-free Lean proof of MIPRE.LIDT.lowIndividualDegree_soundness establishes the canonical-line theorem by another route. It does not prove this tensor-code transfer, the Vidick corollary, or the Takagi bridge. They remain separate formalization targets on the paper’s route. Reusing the existing Lean theorem instead goes through Remark 3.15’s adapter, which is built for \(\mathrm{ldc}=1\) (Theorem 3.19) and needs no almost-synchronicity at all.

[\(\bullet \bullet \bullet \) hard]

Lemma 3.31 Several codewords: the simultaneity reduction
✓

For admissible \(q\), \(m,d,r\geq 1\), \(m\mid q\), and \(r=\mathrm{ldc}\), the single-codeword seeded CL contract implies the simultaneous contract of Theorem 3.14, including a projective measurement of complete \(r\)-tuples on each player’s original space and full-tuple consistency. The chosen input contract is the proved Theorem 3.19. This extension is needed at \((q,m',d,m'+6)\) in answer reduction; QLD uses only \((q,4m,d,1)\). The separate tensor-code route is alternative provenance.

In Lean the reduction is stated at any padding \(K\) with \(r\leq K\), \(K\geq 1\) and \((K+m)\mid q\): the three conclusions hold with errors \(\delta _{\mathrm{CL}}(9(K+1)\varepsilon ,q,K+m,d,1)+(K+m)d/q\) for the two point conclusions and \(\delta _{\mathrm{CL}}(9(K+1)\varepsilon ,q,K+m,d,1)\) for the full-tuple one.

Proof ▶

Lemma 3.32 gives, on the same state and spaces, a strategy at \((q,K+m,d,1)\) of failure at most \(9(K+1)\varepsilon \) whose point measurements are the combined ones. Theorem 3.19 gives \(R^\textsc{A}\), \(R^\textsc{B}\) satisfying the three single-codeword conclusions against them with error \(\delta _{\mathrm{CL}}(9(K+1)\varepsilon ,q,K+m,d,1)\), and Lemma 3.33 turns those into \(G^\textsc{A}\), \(G^\textsc{B}\).

Lemma 3.32 The padded multi-codeword game adapter
✓
#

Let \(1\leq r\leq K\), \(d\geq 1\), \(m\mid q\) and \((K+m)\mid q\), and split the points of \(\mathbb {F}_q^{K+m}\) as \((x,y)\) with the \(K\) combining coordinates first. A projective strategy of failure at most \(\varepsilon \) at \((q,m,d,r)\) induces, on the same state and spaces, one at \((q,K+m,d,1)\) with failure at most \(9(K+1)\varepsilon \). At \((x,y)\) its point answer is \(\sum _{j=1}^r x_jb_j\), where \((b_1,\ldots ,b_r)\) is the original answer at \(y\). Axis answers have degree at most \(d\), diagonal answers at most \(md+1\leq (K+m)d\).

Both players share one seed offset. A combined question whose seed lies in block \(i\) (counting from \(0\)) is sent to the original question with seed block \(\max (i-K,0)\) and that offset, its line projected to the original coordinates and rebased; a line whose projection is a single point is sent to that point. Line answers are the original ones reparametrized along the combined line, multiplied by the combining coordinates and summed. All measurements are deterministic coarse-grainings once the offset is fixed, and the offset is chosen by averaging the complete game failure, not arbitrarily.

Proof ▶

On the two questions of one sample, the decider checks the formats, then equality for equal types, nothing for the two cross type pairs, and otherwise equality of the two answers’ values at the sample’s point. With a shared offset every pair of simulated questions is the pair of questions of a single original sample, whose point, seed and direction are the original parts of the combined ones and whose types are the combined ones, collapsed to the point type where the projected line is a point. Acceptance then transfers subtest by subtest: equal combined types have equal images, and on a line-versus-point pair the combined answer’s value at the point is \(\sum _j x_jb_j\) with \(b\) the original answer’s value at \(y\).

The cost is the push-forward of the question distribution, averaged over the offset. The original sample, point, seed and offset determine the combined sample up to the three preimages of each type, the \(q^{2K}\) combining coordinates of the point and the direction, and at most \((K+1)q/(K+m)\) combined seeds, the offset being determined; comparing the sizes of the two sample spaces, this is at most \(9(K+1)\) times the original mass per offset.

This is not the paper’s route, which draws the seeds independently for each player from the conditional seed law of the projected diagonal distribution and loses \(27M(\varepsilon +d/q)\). Sharing the offset makes the simulated pair a single original sample, so the same-type line subtests need no chain of consistency links and the \(d/q\) term does not arise.

Lemma 3.33 Extracting exactly linear combined codewords
✓
#

Let \(1\leq r\leq K\) and \(d\geq 1\), split the points of \(\mathbb {F}_q^{K+m}\) as \((x,y)\) with the \(K\) combining coordinates first, and let \(\{ A^y_b\} \), \(\{ B^y_b\} \) be the two players’ point measurements for the \(r\)-codeword test, with outcomes \(b\in \mathbb {F}_q^r\). The combined point measurement at \((x,y)\) measures \(A^y\) and answers \(\sum _{j\leq r}x_jb_j\). Let \(R^\textsc{A}\), \(R^\textsc{B}\) be projective measurements of polynomials in the \(K+m\) variables of individual degree at most \(d\) which satisfy the three conclusions of the single-codeword contract against the combined point measurements with error \(\delta \). Coarse-grain each by keeping the outcomes that are exactly linear in \(x\), \(g(x,y)=\sum _{i\leq K}x_ig_i(y)\), reading off \((g_1,\ldots ,g_r)\), and sending every other outcome to the zero tuple. The results \(G^\textsc{A}\), \(G^\textsc{B}\) are projective measurements of complete \(r\)-tuples of polynomials of individual degree at most \(d\) in \(m\) variables; each evaluated at a uniform \(y\) is consistent with the other player’s point measurement with error \(\delta +(K+m)d/q\), and \(G^\textsc{A}\), \(G^\textsc{B}\) are consistent with each other with error \(\delta \). It does not select independent single-codeword measurements.

Proof ▶

Fix \(y\), the original answer \(b\) and the outcome \(g\), and average over \(x\) alone: the Born probabilities do not depend on \(x\), since the original point measurement is asked \(y\) and \(R\) is asked nothing. If \(g\) is exactly linear in \(x\) and its tuple at \(y\) is not \(b\), then \(x\mapsto g(x,y)\) and the combined answer are two different linear forms and agree with probability at most \(Kd/q\). If \(g\) is not exactly linear, some monomial with a forbidden \(x\)-part has a nonzero coefficient \(Q_g\), a polynomial in \(y\); where \(Q_g(y)\neq 0\) the same bound holds, and \(Q_g(y)=0\) has probability at most \(md/q\), paid once per outcome weighted by its total Born weight, because summing the Born probabilities over \(b\) removes \(y\). Both bounds are Lemma 3.111, applied to coefficient vectors through the polynomials they denote: a nonzero coefficient vector in \(n\) variables, of individual degree at most \(d\), vanishes at a uniform point with probability at most \(nd/q\). The full-tuple conclusion is data processing: the same coarse-graining applied to both players can only increase agreement. The linear-forms case costs \(Kd/q\) rather than the source’s \(1/q\), since one Schwartz–Zippel lemma serves all cases.

Comments.

The algebra of coefficient vectors that this lemma shares with the Pauli basis test is in MIPRE/Background/LIDT/Coefficients.lean, below both: the polynomial a coefficient vector denotes (LowIndDegPoly.toMv), Schwartz–Zippel for a nonzero coefficient vector (card_eval_eq_zero_le), and the coefficient of a monomial pattern on a set of coordinates as a coefficient vector in the others (LowIndDegPoly.coef, with the decomposition eval_eq_sum_coef). This lemma uses the first two, and stage 4 of the Pauli basis test uses all three, from Lemma 3.67 on. They are listed here, the lowest of their consumers in the dependency graph, so that every other consumer cites a node it depends on.

Let \(q=2^k\), \(m,d,r\geq 1\) and let \(M\) be the least power of two at least \(m+r\). If \(m+r\leq q\) then \(M\mid q\) and \(M\leq 2(m+r)\leq 4mr\), and with \(K=M-m\) the losses of Lemma 3.31, \(\delta _{\mathrm{CL}}(9(K+1)\varepsilon ,q,M,d,1)+Md/q\), are bounded by

\[ \delta _{\mathrm{sim}}(\varepsilon ,q,m,d,r)=a(dmr)^a(\varepsilon ^b+q^{-b}+2^{-bmd}), \]

with \(b\) the exponent of Theorem 3.19 and \(a=40a_1 4^{a_1}\), \(a_1\) its constant. If \(m+r{\gt}q\) then \(\delta _{\mathrm{sim}}\geq 1\), and arbitrary complete projective measurements do. This separates the trivial regime from the padding argument that requires \(M\mid q\).

Proof ▶

Use \(M\leq 4mr\) for the polynomial factor and the extraction term, \(x^b\leq x\) for \(x\geq 1\) for the failure blow-up \(9(K+1)\leq 9M\), \(q^{-1}\leq q^{-b}\), and \(M\geq m\) in the exponential term. When \(m+r{\gt}q\), \(q{\lt}2dmr\) gives \(q^{-b}\geq (2dmr)^{-1}\).

Lemma 3.35 Effective seeded low-degree test

The seeded test has a sampler running in \(\mathrm{poly}(m,\log q)\) and a decider running in \(\mathrm{poly}(m,d,r,\log q)\), with bounded-prefix checks on every input. Question parsing costs \(O(m\log q)\); the answer-format checks must also scan up to \(O(r(md+1)\log q)\) symbols, with one extra symbol to detect overflow. Thus the full parsing bound is \(O((m+r(md+1))\log q)\). The sampler and decider descriptions are constructed in time polynomial in the binary parameter lengths; runtime dependence on parameter values is a separate assertion. No question-length-only bound is asserted for the decider. The Lean proof does not use this lemma as a separate statement: the seeded test’s sampler and decider are formalized only inside answer reduction — the CL presentation in Definition 6.174, the line-versus-point check in Lemma 6.178, and their running times in Lemmas 6.177 and 6.178.

3.6 The quantum low individual degree test

[\(\bullet \bullet \bullet \) hard] [\(\uparrow \) QuantumLib]

Remark 3.36 Scope of the formalized classical theorem

Theorem 3.12 is proved from Mathlib through the vendored formalization of  [ 2 ] . The bridge modules in MIPRE/Background/LIDT/Bridge/ translate the canonical-line game, strategies and consistency relation to that development and back. Its axiom guard checks the Lean proof, with the corrected hypotheses \(k\geq 400md\) and \(k{\gt}0\).

The paper’s node \(1.2.1\) is Theorem 3.14: a seeded CL game, simultaneous outputs and a collapsed error. Its reduction to the two-prover tensor-code theorem and the reviewed decomposition of that theorem are mathematical source material  [ 34 ] , not Lean certificates. The existing canonical-line proof therefore does not discharge that node or its tensor-code subtree. Its reuse goes through the adapter and chosen-\(k\) estimate of Remark 3.15, both now supplied for \(\mathrm{ldc}=1\): Theorem 3.19 discharges the single-codeword content of node \(1.2.1\), by a route that certifies nothing in the subtree, and Lemma 3.18 is where the growth in \(k^2\) and the decay in \(e^{-k/(2560000m^2)}\) are accounted for.

One node of the subtree is worth reading before reusing anything from it. Node \(1.2.1.7.2.4\) records that the interface between the product-basis transposes of  [ 1 ] and the Schmidt-diagonal symmetric strategies of  [ 9 ] is false as stated, with an explicit \(2 \times 2\) counterexample. It is closed, not open: the repair is an approximate Takagi bridge, which puts every strategy of the first form within a controlled synchronicity defect of one of the second after a local basis change, with the closure constants re-derived and checked by a registered claim-test. It does not affect the Lean proof of Theorem 3.12, which does not go through the interface at all — but it is not idle on the paper’s route, where the bridge is what supplies Corollary 3.27 with the Schmidt-basis input that Lemma 3.29 needs. The lesson for a formalization is that the bridge is the thing to state, not the exact identity it replaces.

The game

Definition 3.37 Pauli basis test
✓
#

Let \(\mathsf{qldparams}= (q, m, d)\) be admissible: \(q\) an admissible field size and \(m \mid q\). Write \(M = 2^m\) and let \(\omega = (u_X, u_Z, r_X, r_Z) \in (\mathbb {F}_q^m)^2 \times \mathbb {F}_q^2\). The Pauli basis test \(\mathfrak {G}^\textsc{Pauli}_\mathsf{qldparams}\) is the two-player game with the following twenty-six question types,

\begin{equation*} \mathcal{T}^\textsc{Pauli}= \bigl( \{ \mathtt{Point}, \mathtt{ALine}, \mathtt{DLine}, \textsc{Pauli}, \mathtt{Pair}\} \times \{ X, Z\} \bigr) \cup \mathcal{T}^\mathrm{MS}\cup \{ \mathtt{Pair}\} \; , \end{equation*}

where \(\mathcal{T}^\mathrm{MS}\) is the six constraints and nine variables of the Magic Square (Definition 2.22).

Question distribution. The verifier draws an ordered pair of types uniformly among those adjacent in the type graph \(G^\textsc{Pauli}\) — each non-loop edge contributing two ordered pairs and each self-loop one — and independently \(u_X, u_Z, v \in \mathbb {F}_q^m\), \(s \in \mathbb {F}_q\) and \(r_X, r_Z \in \mathbb {F}_q\) uniformly. The edges of \(G^\textsc{Pauli}\) are: a self-loop at every type; \((\mathtt{ALine}, W)\) and \((\mathtt{DLine}, W)\) each to \((\mathtt{Point}, W)\); \((\mathtt{Point}, W)\) to \((\textsc{Pauli}, W)\); \((\mathtt{Point}, W)\) to \((\mathtt{Pair}, W)\) to \(\mathtt{Pair}\); \((\mathtt{Point}, X)\) to \(\mathtt{Variable}_1\) and \((\mathtt{Point}, Z)\) to \(\mathtt{Variable}_5\); and the eighteen incidences of the Magic Square, \(\mathtt{Constraint}_i\) to \(\mathtt{Variable}_j\) for \(j\) in the support of equation \(i\). So there are thirty non-loop edges and eighty-six ordered pairs, each of weight \(1/86\).

Question content. A type \((\mathtt{Point}, W)\) receives \(u_W\); \((\mathtt{ALine}, W)\) receives \((u_0, s)\) with \(u_0 = L^{\mathrm{Ln}}_{e_i}(u_W)\) and \(i = \chi (s)\); \((\mathtt{DLine}, W)\) receives \((u_0, s, v')\) with \(v' = \pi _{i-1}(v)\) and \(u_0 = L^{\mathrm{Ln}}_{v'}(u_W)\) — all three exactly as in Definition 3.13; \((\textsc{Pauli}, W)\) receives nothing; and each of \(\mathtt{Pair}\), \((\mathtt{Pair}, W)\), \(\mathtt{Constraint}_i\) and \(\mathtt{Variable}_j\) receives \(\omega \).

Answer format. An element of \(\mathbb {F}_q\) for \((\mathtt{Point}, W)\); a polynomial of degree at most \(d\) for \((\mathtt{ALine}, W)\) and at most \(md\) for \((\mathtt{DLine}, W)\); an element of \(\mathbb {F}_q^M\) for \((\textsc{Pauli}, W)\); a pair \((\beta _X, \beta _Z) \in \mathbb {F}_2^2\) for \(\mathtt{Pair}\); a single bit for \((\mathtt{Pair}, W)\) and for \(\mathtt{Variable}_j\); and a triple \((\alpha _{v_1}, \alpha _{v_2}, \alpha _{v_3}) \in \mathbb {F}_2^3\), indexed by the three variables of the equation in order, for \(\mathtt{Constraint}_i\).

Decision. The verifier first checks that both answers have the format their question’s type prescribes, and rejects if not. It then applies, with \(\gamma (\omega )\) as in Lemma 3.42 and \(g_h\) the low-degree encoding of Definition 6.149:

  1. equal types: accept iff the two answers agree;

  2. \((\mathtt{Point}, W)\) against \((\mathtt{ALine}, W)\) or \((\mathtt{DLine}, W)\): accept iff the seeded CL decider of Definition 3.13 at \((q, m, d, 1)\) accepts;

  3. \((\mathtt{Point}, W)\) against \((\textsc{Pauli}, W)\): accept iff \(g_{a_{\bar w}}(x_w) = a_w\);

  4. \((\mathtt{Pair}, W)\) against \(\mathtt{Pair}\): accept iff \(a_w = \beta _W\) or \(\gamma (\omega ) \neq 0\);

  5. \((\mathtt{Point}, W)\) against \((\mathtt{Pair}, W)\): accept iff \(\operatorname {tr}(a_w r_W) = a_{\bar w}\) or \(\gamma (\omega ) \neq 0\);

  6. \(\mathtt{Constraint}_i\) against \(\mathtt{Variable}_j\): accept iff \(\gamma (\omega ) = 0\), or \(j\) occurs in equation \(i\), the triple \(a_w\) satisfies that equation, and its entry at \(j\) is \(a_{\bar w}\);

  7. \((\mathtt{Point}, W)\) against \(\mathtt{Variable}_j\): accept iff \(\gamma (\omega ) = 0\), or \(j = 1\), \(W = X\) and \(\operatorname {tr}(a_w r_X) = a_{\bar w}\), or \(j = 5\), \(W = Z\) and \(\operatorname {tr}(a_w r_Z) = a_{\bar w}\);

each in both orientations, and accepts on any type pair no rule names.

Source.

The pinned paper  [ 34 ] , ldt.tex: the type set is eq:pauli-type, the sampling procedure and type graph sec:qld-game and fig:type-graph-pauli, and the decision procedure fig:decider_pauli. No definition of this game appeared in this blueprint before; Theorem 3.38 and Lemma 3.46 were statements about an undefined object, which is why this is the campaign’s first definitional obligation.

Comments.

The formalization is MIPRE.QLD.qldGame (MIPRE/Background/QLD/Game.lean). Five points, four of them the consequences of having a second twenty-six-type game in the same vocabulary as Definition 3.13 rather than a fresh one.

The line and point content is read off the sample by the same functions as the seeded CL test — \(\chi \), \(\pi \), \(L^{\mathrm{Ln}}\), all from Definition 3.13 — and rule 2 calls that test’s decider rather than restating it: lowDeg_eq_cl and lowDeg_eq_cl_dline are the two identities, and they hold by rfl. This is what stage 4 of Remark 3.41 needs in order to feed Theorem 3.14 at all, and getting it by sharing definitions rather than by a translation lemma is the reason Definition 3.13 was written first.

The Magic Square indices are the layout’s own, \(0\)-indexed (MIPRE.LCS.MagicSquare.layout), against the paper’s \(1\)-indexed \(\mathtt{Constraint}_1, \ldots , \mathtt{Constraint}_6\) and \(\mathtt{Variable}_1, \ldots , \mathtt{Variable}_9\). The paper’s distinguished pairs \((\mathtt{Point}, X)\)–\(\mathtt{Variable}_1\) and \((\mathtt{Point}, Z)\)–\(\mathtt{Variable}_5\) are therefore variables \(0\) and \(4\) in the Lean, which are also the two the anticommutator of Lemma 3.10 is taken between — the same two cells, and they have to be, since rule 7 is what transfers that lemma’s conclusion to the point observables.

The format check is separated from the rules for the reason recorded at Definition 3.13: leaving it out made that test vacuous (reports/clgame-format-check-missing.md), and the same error is available here with twenty-six types instead of three. Each of the eight rules accordingly carries an explicit pair of formatted answers it rejects (rejects_*). The four rules gated on \(\gamma \) take the gate as a hypothesis, since each of them by design checks nothing on the other value of \(\gamma \) — that division of labour between the commutation check and the Magic Square is what the gate is for.

The remaining vacuity risk is a rule that is simply missing, so that an edge of \(G^\textsc{Pauli}\) falls through to the catch-all. handled_of_adj closes it by decide: every non-loop edge of the type graph has a rule. Together with the rejection witnesses — one per rule — that says no question pair the distribution asks is accepted regardless of the answers. The converse fails harmlessly: some rules also reject pairs the graph does not contain, such as \((\mathtt{Point}, X)\) against \(\mathtt{Variable}_j\) for \(j \neq 1\).

Finally, the answer alphabet for \(\mathtt{Constraint}_i\) is \(\mathbb {F}_2^3\) and not the full assignment \(\mathbb {F}_2^9\) of Definition 2.17. The two give the same value, the decider reading only the three support coordinates either way, and the full assignment would have been markedly easier to work with; the paper’s format is kept because answer lengths are what the introspection of the compression chapter accounts for, and a game whose answers are six bits too long is a statement about a different verifier.

There exists a function

\begin{equation*} \delta _{qld}(\varepsilon , m, d, q) = a (md)^a \bigl( \varepsilon ^b + q^{-b} + 2^{-bmd} \bigr) \end{equation*}

for universal constants \(a \geq 1\) and \(0 {\lt} b {\lt} 1\) such that the following holds. Let \(\cal {M}\) be a bipartite model (Definition 8.49) whose two players’ algebras are ordered, proper and compatible with the scalars, and let \(\omega \) be a value model (Definition 8.34). Suppose (L) that the seeded CL test is sound (Definition 8.65) in every ancilla extension of \(\cal {M}\) by a unit vector (Definition 8.51), and (V) that \(\omega \) dominates the POVM strategies (Definition 8.78) of every such extension with its state replaced by any unit vector. Then for all admissible parameter tuples \(\mathsf{qldparams}= (q, m, d)\) and every projective strategy in \(\cal {M}\) (Definition 8.62) for the game \(\mathfrak {G}^{\textsc{Pauli}}_{\mathsf{qldparams}}\) that succeeds with probability at least \(1 - \varepsilon \), there are an ancilla model \(\cal {N}\), a bipartite model in a unit state \(|\textsc{aux}\rangle \) whose POVM strategies \(\omega \) dominates, and a local isometry (Definition 8.69) from \(\cal {M}\) to the register model of \(\cal {N}\) on the register \(\mathbb {F}_q^M\), \(M = 2^m\), each player holding a copy of \((\mathbb {C}^q)^{\otimes M}\) (Definition 8.72), such that

  1. the image of the strategy’s state is within \(\delta _{qld}\) of \(|\textsc{EPR}_q\rangle ^{\otimes M} \otimes |\textsc{aux}\rangle \), the state of the register model; and

  2. for each \(W \in \{ X, Z\} \) and each player, the image of that player’s own measurement for the question \((\textsc{Pauli}, W)\), read as cube data, is within \(\delta _{qld}\) of the Pauli basis measurement \(\tau ^W_h\), \(h \in \mathbb {F}_q^M\), on that player’s half of the register, in summed squared state-dependent distance on that state.

That is, the Pauli basis test is sound in \(\cal {M}\) with \(\omega \) (Definition 8.82). The pipeline uses two instances. In the tensor-product model of a state \(|\psi \rangle \) on \(\mathbb {C}^{d_\textsc{A}} \otimes \mathbb {C}^{d_\textsc{B}}\), with \(\mathrm{val}^*\), both hypotheses hold, and the conclusion is the matrix statement: local isometries \(\phi _\textsc{A}, \phi _\textsc{B}\) into \(\mathcal{H}' \otimes (\mathbb {C}^q)^{\otimes M}\) and a state \(|\textsc{aux}\rangle \) with \(\left\| {\phi _\textsc{A}\otimes \phi _\textsc{B}|\psi \rangle - |\textsc{aux}\rangle \otimes |\textsc{EPR}_q\rangle ^{\otimes M}} \right\| \leq \delta _{qld}\), and for \(W \in \{ X, Z\} \) the measurements for the questions \((\textsc{Pauli}, W)\) \(\delta _{qld}\)-close to the Pauli basis measurements \(\tau ^W_u\), \(u \in \mathbb {F}_q^M\), acting on \(|\textsc{EPR}_q\rangle ^{\otimes M}\) (Lemma 8.83). In the model of every commuting-operator strategy, with \(\omega ^{\mathrm{co}}\), the second hypothesis always holds and the first follows from the soundness of the seeded CL test in the commuting-operator model (Lemma 8.99).

Proof ▶

Two cases. Inside the regime — \(48md \leq q\), and \(2\sqrt{X} + 2X {\lt} 1\) at the constant \(X\) of Lemma 3.76, which is what item 1 of Lemma 3.77 needs — three steps, and no dilation.

  1. Legalize (Lemma 3.57): send every answer of the wrong format to its question’s default. The legalized strategy is projective, fails with probability at most \(\varepsilon \), and is legally supported, which stage 4 needs; and its coarse \((\textsc{Pauli}, W)\) measurements are the strategy’s, a malformed Pauli answer and the default both reading as the cube datum \(0\).

  2. Both cuts on one state: stage 4 (Lemma 3.63) at the legalized strategy and at the legalized strategy with the players exchanged, at one padding size. This is where hypothesis (L) is used: the padded models of \(\cal {M}\) and of \(\cal {M}\) with the players exchanged are ancilla extensions of \(\cal {M}\) up to associativity, and the two runs’ pair measurements are the two cuts of one physical model (Definition 3.62).

  3. The swap isometry of Lemma 3.77 is a local isometry of \(\cal {M}\) into the register model of the extension of \(\cal {M}\) by the padded registers in an auxiliary unit state; that extension, in that state, is the ancilla model, and hypothesis (V) is that \(\omega \) dominates it. Item 2 is item 2 of the lemma as it stands, the measurements it carries being the strategy’s own, and item 1 is the square root of the lemma’s bound on the squared distance.

Both items are also at most the trivial bound \(4\), which caps the error. Outside the regime the error is \(4\), and the model itself, with the EPR register adjoined inertly, is an extraction at that bound: the state is carried exactly to the state of the register model, and two projective measurements on a unit vector are within \(4\) of each other in summed squared state-dependent distance. Its ancilla model is \(\cal {M}\) itself, which \(\omega \) dominates by (V) at the extension by one-point registers. In both cases the error is the function of Lemma 3.78, which has the closed form.

Source.

The pinned paper  [ 34 ] , qld-appendix.tex and its five proof files, states this Pauli theorem and its reduction to the seeded CL test. The reduction follows the architecture of  [ 1 , Section 7 ] ; the canonical-line soundness theorem of  [ 2 ] is related background. Lemma 3.10 supplies the base anticommutation directly.

Comments.

This is the workhorse of question reduction: introspection certifies the players’ sampling of their own questions against Pauli basis measurements. The paper’s reduction uses direct Magic Square anticommutation, linearity and orthonormalization, together with the seeded CL theorem; the formalized proof invokes neither linearity (Theorem 3.55) nor orthonormalization (Corollary 3.45), its strategies being projective. The dependency graph still draws Theorem 3.55 below it, through matrix-level declarations that Lemma 3.56 lists beside its model form and that share that theorem’s Fourier and ancilla-embedding definitions; soundIn_of_lidt reaches none of them. The available canonical-line theorem can replace the paper’s classical route through Remark 3.15’s adapter, which supplies the \(\mathrm{ldc}=1\) case this reduction uses (Theorem 3.19).

The theorem’s bipartite statement matches the pipeline’s \(\mathrm{val}^*\) soundness interface, so its uses require no additional synchronous-value transport. The verification campaign  [ 33 ] further reports three corrections in the tensor-code material the proof passes through — \(\kappa \)-convexity requires \(c_1 \leq 1\), the synchronicity defect obeys \(\delta _{\mathrm{sync}} \leq 4\varepsilon \) rather than \(3\varepsilon \), and one corner block pairs with a transpose — none affecting the statement above. The formal proof is checked end to end with no assumption beyond Lean’s standard axioms — in the tensor-product model hypothesis (L) is discharged by Lemma 8.66 — so it does not rest on the paper’s account of that material.

The formalization. MIPRE.QLD.soundIn_of_lidt (MIPRE/Background/QLD/Soundness.lean) is the theorem: for a bipartite model \(\cal {M}\) with ordered, proper algebras compatible with the scalars and a value model \(\omega \), the two hypotheses give QLD.SoundIn \(\omega \) \(\cal {M}\) (Definition 8.82). For every field \(\mathbb {F}_q\) of characteristic two, every \(m \geq 1\) with \(m \mid q\), every \(d \geq 1\) and every projective strategy in \(\cal {M}\) failing with probability at most \(\varepsilon \), it provides an extraction (QLD.Extraction) at error qldErr (Lemma 3.78): an ancilla model, which \(\omega \) dominates, a local isometry of \(\cal {M}\) into its register model, the state error, and both players’ summed squared errors for both bases. Its tensor-product instance (soundIn_tensor) and its commuting-operator instance (soundCo_of_lidt) are recorded in Chapter 8, as Lemmas 8.83 and 8.99, where their consumers are. Four points of the statement are worth knowing, the first two of them differences from the paper’s.

  • The strategy is projective, in a model. The paper states the theorem for POVM strategies on a tensor product of finite-dimensional spaces; here it is about the projective strategies of a bipartite model satisfying the two hypotheses. The restriction is deliberate. The matrix theorem this replaces did cover POVM strategies, by dilating the strategy to a projective one, running the chain on the dilation and carrying item 2 back down to the original POVM through its agreement with \(\tau ^W\) on the other half of the pair, at a cost of \(8\sqrt{\eta }\) for item 1’s bound \(\eta \). That descent was specific to matrices, and its one consumer, introspection, applies the theorem to projective strategies only (Lemma 6.115); so the POVM form is not restated. This is a choice of the formalization, not a discrepancy with the paper, which was not consulted for this revision.

  • The conclusion is a local isometry of models into the register model of an ancilla model, in place of a pair of isometries \(\phi _\textsc{A}\otimes \phi _\textsc{B}\) into \(\mathcal{H}' \otimes (\mathbb {C}^q)^{\otimes M}\) and a state \(|\textsc{aux}\rangle \). The players’ operators move by its homomorphisms, as \(X \mapsto \phi _\textsc{A}X \phi _\textsc{A}^\dagger \) does, and the errors are the model’s state norms; in the tensor-product model the two forms coincide (Lemma 8.83).

  • It asks less than admissibility: characteristic two, \(m \mid q\) and \(d \geq 1\). The regime where the chain runs is \(48md \leq q\) rather than the paper’s \(16md \leq q\), \(48\) being where Lemma 3.70 is formalized; the regime and the divisibility \(4m \mid q\) are discharged inside the proof, not assumed (Lemma 3.64), and outside the regime the error absorbs the trivial bound (Lemma 3.78), as the paper’s own enlargement of \(a\) does.

  • Item 2 is about the strategy’s Pauli measurement read as cube data, (S.PA (.pauli W)).map rdPauliVec, which puts every malformed Pauli answer at \(h = 0\), as the game’s reading does. The paper assumes well-formatted answers; this is a relabelling of outcomes, not a restriction, and it is why legalizing the strategy is free (rdPauliVec_legalize_pauli). Read at the genuine answers instead, item 2 is Corollary 3.39.

Inside the regime the proof is exists_extraction_of_regime: the extraction is the swap isometry MirrorSimul.swapPhi at the MirrorSimul that exists_mirrorSimul builds for the legalized strategy (legalStrat), with the padded extension in the swap lemma’s auxiliary state as its ancilla model. Outside it the proof is Extraction.trivial. Nothing follows the swap isometry, so the matrix route’s explicit embedding of the strategy’s space into the physical state, its descent from the dilation, and its reading of the isometries with the register first are all gone.

The error the proof produces, qldErr, and its closed form are Lemma 3.78, which rests on the chain’s constants alone; QLD.SoundIn is stated at that function.

The ledger node \(1.2.2\) also records completeness of the game. That is Lemma 6.110, formalized separately; this theorem is the soundness half, node \(1.2.2.17\)’s assembly.

A property of the shape itself. Because of the \(2^{-bmd}\) term the right-hand side never falls below \(a \cdot 2^{-bmd}\), so for any bound on \(md\) the theorem is satisfied trivially by a large enough \(a\), the conclusions being about unit vectors and projective measurements. The statement has content only as \(md\) grows, with \(\varepsilon \) small and \(q\) large. That is inherent in the stated form, not a defect of the formalization, but it is worth knowing when reading the constants the proof produces.

In the setting of Theorem 3.38, suppose in addition that the strategy’s measurements for the questions \((\textsc{Pauli}, W)\) are supported on correctly formatted answers: for both players and both bases, the measurement has no element at an answer that is not of the form \(h \in \mathbb {F}_q^M\). Then for the first player’s \(X\) measurement and the second player’s \(Z\) measurement, the two that introspection uses, item 2 holds with the sum over \(h \in \mathbb {F}_q^M\) taken at the answer \(h\) itself rather than over every answer the game reads as \(h\), with the same local isometry, the same ancilla model and the same \(\delta _{qld}\). The constants \(a\), \(b\) of \(\delta _{qld}\) are fixed once, before the parameters, and at every \(\varepsilon \geq 0\) the error is \(\delta _{qld}(\varepsilon , m, d, q)\). The support hypothesis holds for the restriction to the Pauli basis test (Lemma 6.114) of a strategy of the parsed introspection game whose measurements at the Pauli questions have nonzero elements only at genuine full-register answers. The Lean proves it for a projective strategy in any bipartite model in which the Pauli basis test is sound (Definition 8.82); the statement above is its tensor-product instance.

Proof ▶

When a measurement has no element at a malformed answer, the coarse measurement that reads every answer as cube data has at \(h\) exactly the element of the answer \(h\): the fibre of \(h\) holds \(h\) and malformed answers, which contribute nothing — including at \(h = 0\), where the game’s reading puts every malformed answer. So the two sums agree term by term, and item 2 of Theorem 3.38 is the statement. The constants are those of the closed form of the error, Lemma 3.78; the theorem is applied at \(\min (\varepsilon , 1)\), which bounds the failure probability too, the value being nonnegative. For the restriction of a parsed strategy, completing the malformed outer answers at a scalar answer moves no mass onto a malformed Pauli answer, every nonzero element at a Pauli question being a genuine full-register answer.

Comments.

The paper’s game has no other answers to a \((\textsc{Pauli}, W)\) question; the formal game has one answer type for all questions, and Theorem 3.38 reads every answer that is not a Pauli answer as the outcome \(0\), as the game does. The introspection consumer (Lemma 6.111) sums over the valid answers only, and this corollary is the bridge, in MIPRE/Background/Introspection/QLDExtractionAdapter.lean. FieldExtraction (MIPRE/Background/Introspection/BinaryExtraction.lean) is the conclusion at the genuine answers: the ancilla model, the local isometry, the state error, and the two estimates introspection uses, the first player’s \(X\) and the second player’s \(Z\). FieldExtraction.ofQLD reads an extraction of Theorem 3.38 there under the support hypothesis (PauliSupported, through rdPauliVec_op_of_supported), fieldExtraction_exists is the corollary, and degreeOne_fieldExtraction_exists is its case \(d = 1\), at the error the canonical parameter estimates use.

It costs nothing. The matrix corollary this replaces assumed only that the two Pauli measurements were projective, and paid at \(h = 0\): the answer \(0\) is one element of everything the game reads as \(0\), so the triangle inequality cost twice the weight of the rank-one projector \(\tau ^W_0\) on \(|\textsc{EPR}_q\rangle ^{\otimes M} \otimes |\textsc{aux}\rangle \), at most \(1/q\), and the error became \(2\delta _{qld} + 8/q\). The support hypothesis removes the malformed answers instead, so the fibre at \(0\) is the answer \(0\) alone. It is free where the corollary is used: the decoder of the introspection game leaves only genuine full-register answers at the Pauli questions (ParsedPauliSupported), and the restriction to the Pauli basis test keeps that (completePauliPOVM_invalid_of_supported). The universal constants are fixed once (qldCoefficient, qldExponent), from the closed form exists_qldErr_le of the error (Lemma 3.78), a fact about that function alone, so they are the same in every model (qldErr_le_errShape).

Let \(q = 2^k\), let \(\{ e_1, \ldots , e_k\} \) be a self-dual basis of \(\mathbb {F}_q\) over \(\mathbb {F}_2\), and let \(\phi : \mathbb {F}_q^M \to \mathbb {F}_2^{M \times k}\) be the relabelling of Lemma 2.36. Then Corollary 3.39 holds with the same \(\delta _{qld}\) and with the register \((\mathbb {C}^q)^{\otimes M}\) read as \(M k\) qubits: the local isometry maps into the register model on \(\mathbb {F}_2^{M \times k}\), item 1 compares with \(|\textsc{EPR}_2\rangle ^{\otimes Mk} \otimes |\textsc{aux}\rangle \), and in item 2 the honest measurement at the outcome \(\phi (u)\), for the genuine answer \(u\), is the qubit Pauli \(X\) measurement \(\sigma ^X_{\phi (u)}\) for the first player and the computational-basis measurement \(\sigma ^Z_{\phi (u)}\) for the second. Indexed by the qubit label \(x \in \mathbb {F}_2^{M \times k}\), the element of the strategy’s measurement compared with the honest one at \(x\) is its element at the valid answer \(\phi ^{-1}(x)\), the Pauli answer that the binary introspection game reads as \(x\); this conclusion in binary coordinates is the form Lemma 6.115 consumes. The Lean proves it for a projective strategy in any bipartite model, the relabelling acting on the register of the ancilla model’s register model after the local isometry; the statement above is its tensor-product instance.

Proof ▶

The relabelling is a bijection of basis index sets, so the transport relabels the register of the register model, a local isometry carrying the state of one register model exactly to the state of the other (Lemma 8.73); composed after the extraction’s local isometry it changes no quantity. The state error is unchanged, and the two error sums are reindexed along \(\phi \): the \(Z\) readouts are computational-basis projectors on both sides, and the \(X\) readouts correspond by Lemma 2.36, which is where self-duality is used.

Comments.

The paper’s cor:pauli-binary (ldt.tex), and the form the binary introspection game consumes (Lemma 6.115). FieldExtraction.toBinary (MIPRE/Background/Introspection/BinaryExtraction.lean) composes the extraction’s local isometry with the relabelling of the register along the binary basis (BipartiteModel.regRelabel), and binaryX and binaryZ identify the relabelled honest projectors. Its conclusion is Extraction (MIPRE/Background/Introspection/RestrictedSoundness.lean), the extraction in binary coordinates, whose two estimates read the strategy’s measurements at validAnswer \(x\), the Pauli answer \(\phi ^{-1}(x)\), which the binary game’s reading of answers takes back to \(x\) (project_validAnswer). Like Corollary 3.39 it carries the first player’s \(X\) estimate and the second player’s \(Z\) estimate, the two introspection uses; the matrix form, which covered both players and both bases for an arbitrary relabelling of the register, was removed with the matrix theorem.

The shape of the soundness proof

Remark 3.41 How the soundness proof of Theorem 3.38 is organized

The soundness half of Theorem 3.38 is developed in the five-file appendix of the pinned paper  [ 34 ] . Its architecture is worth stating before its pieces, because the pieces are unreadable without it. There are five stages.

  1. Preliminaries: three utility lemmas about closeness, one of which (Corollary 3.45) the paper uses on almost every page.

  2. Win implications: unpack “succeeds with probability \(1 - \varepsilon \)” into one consistency or commutation statement per subtest (Lemma 3.46).

  3. Expansion: adjoin EPR ancillas and replace the strategy’s measurements by ones on the enlarged space that approximately commute across the two bases (Lemmas 3.51 and 3.54).

  4. Combining: build a single measurement returning both the \(X\)- and the \(Z\)-polynomial, by padding the ambient space and applying seeded CL soundness to the padded strategy (Lemma 3.63).

  5. Separation and the swap isometry: extract exact Pauli operators from that single measurement and rotate them onto honest EPR pairs (Lemmas 3.75 and 3.77).

Stage 4 consumes Theorem 3.14 at \((q,4m,d,1)\), after constructing a strategy for the seeded CL game and dilating it to a projective one. Theorem 3.12 justifies this application through Theorem 3.19, the \(\mathrm{ldc}=1\) case being exactly what stage 4 consumes; what stage 4 must still supply is the padding itself. Stage 5 recovers the Pauli group relations exactly, which permits the standard swap isometry; the expanded measurements in stage 3 satisfy only approximate commutation.

In the formalization every stage is stated for a strategy in a bipartite model (Definition 8.49), and the tensor-product model is the instance in which each statement below is written. A strategy of the model is projective from the start (Definition 8.62), so the orthonormalization of stage 1 is used nowhere: where the paper replaces a POVM by a nearby projective measurement, the formalization’s measurement is projective already. The registers the later stages adjoin are ancilla extensions of the model (Definition 8.51): the expanded state of stage 3 is its register model (Definition 8.72), and the padded and physical states of stages 4 and 5 are the models of Definition 3.62, between which registers move by local isometries. The seeded CL theorem enters as a hypothesis on the model, its soundness in every ancilla extension by a unit vector (Definition 8.65), and is applied once per player orientation, in the padded model, to the projective dilation of the padded strategy.

Preliminaries

[\(\bullet \bullet \) medium]

Let \(\mathrm{ind}_m(x) \in \mathbb {F}_q^M\), \(M = 2^m\), be the vector \((\mathrm{ind}_{m,y}(x))_y\) of the indicator polynomials of Definition 6.149 evaluated at a point \(x \in \mathbb {F}_q^m\), and call a tuple \(\omega = (u_X, u_Z, r_X, r_Z) \in (\mathbb {F}_q^m)^2 \times \mathbb {F}_q^2\) anticommuting if

\begin{equation*} \gamma (\omega ) \; =\; \operatorname {tr}_{q \to 2}\bigl( (r_X \cdot \mathrm{ind}_m(u_X)) \cdot (r_Z \cdot \mathrm{ind}_m(u_Z)) \bigr) \; \neq \; 0\; , \end{equation*}

the inner product being the one of \(\mathbb {F}_q^M\), and commuting otherwise. The two cases partition the sample space. If \(m \geq 1\) and \(d \geq 1\) then a uniformly random \(\omega \) is anticommuting with probability at least \((1 - 3md/q)/2\), and commuting with probability at least \((1 - 3md/q)/2\).

Proof ▶

Because \(\mathrm{ind}_m(x) \cdot \mathrm{ind}_m(z) = g_{\mathrm{ind}_m(x)}(z)\) — one low-degree encoding evaluated at the other point — \(\gamma (\omega ) = \operatorname {tr}_{q \to 2}(r_X r_Z \cdot g_{\mathrm{ind}_m(u_X)}(u_Z))\). The vector \(\mathrm{ind}_m(x)\) has coordinate sum \(\prod _i (x_i + (1 - x_i)) = 1\), so it is never zero and \(g_{\mathrm{ind}_m(u_X)}\) is a nonzero multilinear polynomial; by Lemma 3.111 it vanishes at no more than an \(m/q\) fraction of the \(u_Z\). Fix \(u_X, u_Z\) with \(g_{\mathrm{ind}_m(u_X)}(u_Z) \neq 0\) and \(r_X \neq 0\), and put \(c = r_X\, g_{\mathrm{ind}_m(u_X)}(u_Z) \neq 0\). Then \(r \mapsto \operatorname {tr}_{q \to 2}(c r)\) is a nonzero \(\mathbb {F}_2\)-linear functional on \(\mathbb {F}_q\), so its kernel is a hyperplane and exactly \(q/2\) of the \(r_Z\) give \(\gamma \neq 0\), the other \(q/2\) giving \(\gamma = 0\). Multiplying the three independent estimates gives \((1 - 1/q)(1 - m/q)/2 \geq (1 - (m+1)/q)/2\) for the anticommuting case; the commuting case gains the whole \(r_X = 0\) slice and the whole \(g_{\mathrm{ind}_m(u_X)}(u_Z) = 0\) slice, so \((1 - 1/q)/2\) holds for it with no \(m\) at all. Finally \(m + 1 \leq 3md\) and \(1 \leq 3md\) when \(m, d \geq 1\).

Comments.

Two departures from the paper’s statement and proof, both recorded in the formalization’s own docstring. First, the paper states the bound as \((1 - q^{-m})(1 - q^{-1})(1 - md/q)/2\); its own correction note removes the case distinction on \(u_X = 0\) that produced the first factor, observing that \(\mathrm{ind}_m(u_X)\) is never the zero vector, and keeps the factor only because it remains a valid lower bound. It is dropped here. Second, the low-degree encoding is multilinear, so Schwartz–Zippel costs \(m/q\) and not \(md/q\); the formalized bounds are \((1 - (m+1)/q)/2\) and \((1 - 1/q)/2\), and the paper’s \((1 - 3md/q)/2\) is derived from them for \(m, d \geq 1\). The ‘\(d\)’ in this fact is therefore inert: it is the individual-degree parameter of the surrounding test, and the bound does not depend on it.

The complementarity statement is not decoration. Each of the two bounds is a lower bound on a probability, so either alone would be implied by the wrong definition of its event; that they hold for complementary events, and add to one, is what pins them down.

[\(\bullet \) easy]

Lemma 3.43 Averaging preserves closeness
✓

Let \(A^x \approx _\delta B^x\) on average over \(x \sim \mu \), and let \(\alpha _x\) be coefficients with \(\left\vert {\alpha _x} \right\vert \leq 1\). Then \(\mathop{\mathbb {E}}_x \alpha _x A^x \approx _\delta \mathop{\mathbb {E}}_x \alpha _x B^x\).

Proof ▶

Triangle inequality and Jensen. Note the hypothesis is \(\left\vert {\alpha _x} \right\vert \leq 1\), not \(\left\vert {\alpha _x} \right\vert = 1\): the lemma is used with genuinely contractive coefficients. The \(\delta \) is preserved exactly, with no constant: the triangle inequality gives \(\left\| {\mathop{\mathbb {E}}_x \alpha _x (A^x - B^x)|\psi \rangle } \right\| \leq \mathop{\mathbb {E}}_x \left\| {(A^x - B^x)|\psi \rangle } \right\| \) and Jensen for the square root gives \(\mathop{\mathbb {E}}_x \sqrt{f(x)} \leq \sqrt{\mathop{\mathbb {E}}_x f(x)}\), which is the \(\mu \)-probability case of MIPRE.sum_mul_sqrt_le.

[\(\bullet \) easy]

Lemma 3.44 From POVM elements to generalized observables
✓

Let \(\{ A^x_a\} \) and \(\{ B^x_a\} \) be POVMs with a common outcome set \(\mathcal{A}\), and let \(\alpha _a\) be coefficients of unit modulus. If \(A^x_a \approx _\delta B^x_a\) then the generalized observables \(A^x = \sum _a \alpha _a A^x_a\) and \(B^x = \sum _a \alpha _a B^x_a\) satisfy \(A^x \approx _{\left\vert {\mathcal{A}} \right\vert \delta } B^x\).

Proof ▶

Triangle inequality over the outcomes, then Cauchy–Schwarz against the constant \(1\): \((\sum _a t_a)^2 \leq \left\vert {\mathcal{A}} \right\vert \sum _a t_a^2\). Unit modulus is more than the proof uses; the formalized hypothesis is \(\left\vert {\alpha _a} \right\vert \leq 1\), and the constant \(\left\vert {\mathcal{A}} \right\vert \) is exact rather than an \(O(\cdot )\).

[\(\bullet \bullet \) medium]

Corollary 3.45 Orthonormalization from consistency

Let \(\delta {\gt} 0\), let \(\{ Q_a\} \) be a POVM on \(\mathcal{H}_\textsc{A}\) and \(\{ R_a\} \) a POVM on \(\mathcal{H}_\textsc{B}\) whose inconsistency on the unit vector \(|\psi \rangle \) is at most \(\delta \). Then there is a projective measurement \(\{ P_a\} \) on \(\mathcal{H}_\textsc{A}\) with

\begin{equation*} \sum _a \left\| {\bigl((Q_a - P_a) \otimes I_\textsc{B}\bigr)|\psi \rangle } \right\| ^2 \; {\lt}\; 18\, \delta \; , \end{equation*}

that is, \(P_a \otimes I\approx _{\eta _{ortho}(\delta )} Q_a \otimes I\) on \(|\psi \rangle \) with \(\eta _{ortho}(\delta ) = 18\delta \), linear in \(\delta \) as Theorem 3.5 permits.

Proof ▶

This is not Theorem 3.5 restated: that theorem requires strict near-projectivity in a normal state, while what the appendix has is bipartite consistency. The bridge is a Cauchy–Schwarz step. Write \(\gamma = \sum _{a \neq b} \langle \psi | Q_a \otimes R_b |\psi \rangle \), so that \(\sum _a \langle \psi | Q_a \otimes R_a |\psi \rangle = 1 - \gamma \) because \(\sum _{a,b} Q_a \otimes R_b = I\). Since \(\sum _a R_a^2 \leq \sum _a R_a = I\), Cauchy–Schwarz over \(a\) gives

\begin{equation*} 1 - \gamma \; =\; \sum _a \bigl\langle (Q_a \otimes I)|\psi \rangle ,\, (I\otimes R_a)|\psi \rangle \bigr\rangle \; \leq \; \Bigl(\sum _a \langle \psi | Q_a^2 \otimes I|\psi \rangle \Bigr)^{1/2}\; , \end{equation*}

hence \(\sum _a \langle \psi | Q_a^2 \otimes I|\psi \rangle \geq (1 - \gamma )^2 = 1 - 2\gamma + \gamma ^2\). Now \(2\gamma - \gamma ^2 {\lt} 2\delta \) for every \(\gamma \leq \delta \) with \(\delta {\gt} 0\) — at \(\gamma = \delta \) because \(\gamma ^2 {\gt} 0\), and at \(\gamma {\lt} \delta \) because \(\gamma ^2 \geq 0\) — and if \(\gamma \geq 1\) the hypothesis holds vacuously, so near-projectivity at \(\varepsilon = 2\delta \) holds strictly. Apply Theorem 3.5 to \(\cal {L}(\mathcal{H}_\textsc{A})\otimes I\) with the vector state of \(|\psi \rangle \): it gives a projective family \(P_a \otimes I\) with squared-distance sum less than \(9\varepsilon = 18\delta \).

Comments.

The paper closes this proof differently, and the difference is a repair. It derives near-projectivity at \(2\gamma \) for the actual inconsistency \(\gamma \), which is non-strict, so Theorem 3.5 applies only at each \(\varepsilon {\gt} 2\gamma \); it then takes \(\varepsilon \downarrow 2\gamma \) inside the (compact) set of projective measurements with a fixed finite outcome set and extracts a convergent subsequence to reach \(18\gamma \) itself. That limit is not needed. The slack \(\gamma ^2\) in \((1-\gamma )^2 = 1 - 2\gamma + \gamma ^2\) already makes the hypothesis strict at \(\varepsilon = 2\delta \) for any bound \(\delta {\gt} 0\) on the inconsistency, which is the form in which every application supplies it and the form stated above; the compactness argument, and with it the continuity of \(\{ P_a\} \mapsto \sum _a \left\| {((Q_a - P_a)\otimes I)|\psi \rangle } \right\| ^2\) and the sequential extraction, disappears. What the paper’s version additionally gives is the exact case \(\delta = 0\), where the limit produces a projective measurement agreeing with \(\{ Q_a\} \) on \(|\psi \rangle \) exactly. Nothing downstream uses it: every invocation carries a positive error bound. The statement above is therefore weaker only at \(\delta = 0\) and stronger elsewhere, both in being strict and in naming the constant.

Not formalized, and off the formalized route. This corollary was formalized for matrices (exists_projective_of_consistent, through Theorem 3.5), and the formalization was removed when the analysis of the Pauli basis test was restated in a bipartite model: a strategy there is projective from the start (Definition 8.62), and its one consumer, the commuting case of Lemma 3.48, now uses the strategy’s own projective \(\mathtt{Pair}\) measurement (Lemma 3.49). It is kept as the paper’s statement, with the repair above, and carries no formalization marks.

What winning implies

[\(\bullet \bullet \bullet \) hard]

Let \(\mathscr {S}= (|\psi \rangle , M)\) be a POVM strategy succeeding with probability at least \(1 - \varepsilon \) in the Pauli basis test \(\mathfrak {G}^\textsc{Pauli}_\mathsf{qldparams}\) of Definition 3.37, \(M\) standing for either player’s measurements. Let \(\gamma (\omega )\) be as in Lemma 3.42, write \(g_h\) for the low-degree encoding of Definition 6.149, and let every average below be over the verifier’s content, each content carrying the same weight, restricted where indicated to the contents whose tuple \(\omega \) is commuting (\(\gamma (\omega ) = 0\)) or anticommuting (\(\gamma (\omega ) \neq 0\)). Then, with \(\simeq _\delta \) the cross-party distance of Definition 2.28:

  1. (Consistency) for every question type \(t\), \(M^{t,x}_a \otimes I\simeq _{172\varepsilon } I\otimes M^{t,x}_a\);

  2. (Low degree) for each \(W \in \{ X, Z\} \) and each of the two line types, the line answer evaluated at the sampled point agrees with the point answer: \(M^{(\mathtt{Point}, W), u_W}_a \otimes I\simeq _{172\varepsilon } I\otimes M^{(\mathtt{Line}, W), \ell }_{[\, f(t) = a\, ]}\), where \(f\) is the polynomial answered and \(t\) the parameter of \(u_W\) on the line \(\ell \);

  3. (Pauli basis consistency) for each \(W\), \(M^{(\mathtt{Point}, W), u_W}_a \otimes I\simeq _{172\varepsilon } I\otimes M^{(\textsc{Pauli}, W)}_{[g_h(u_W) = a]}\);

  4. (Commutation) for each \(W\), on average over commuting \(\omega \), \(M^{(\mathtt{Pair}, W), \omega }_b \otimes I\simeq _{172\varepsilon } I\otimes M^{\mathtt{Pair}, \omega }_{[\beta _W = b]}\);

  5. (Commutation consistency) for each \(W\), on average over commuting \(\omega \), \(M^{(\mathtt{Point}, W), u_W}_{[\operatorname {tr}(\cdot \, r_W) = b]} \otimes I\simeq _{172\varepsilon } I\otimes M^{(\mathtt{Pair}, W), \omega }_b\);

  6. (Magic square) on average over anticommuting \(\omega \), the \(\mathtt{Constraint}\) and \(\mathtt{Variable}\) measurements at \(\omega \) form a strategy for the Magic Square game of value \(1 - O(\varepsilon )\); consequently, if the first player’s measurements are projective, Lemma 3.10 gives, for the second player’s \(\pm 1\)-observables \(B^{\mathtt{Variable}_j, \omega }\),

    \begin{equation*} \mathop{\mathbb {E}}_{\omega \, :\, \gamma (\omega ) \neq 0} \left\| {\bigl(I\otimes \{ B^{\mathtt{Variable}_1, \omega }, B^{\mathtt{Variable}_5, \omega }\} \bigr) |\psi \rangle } \right\| ^2 \; \leq \; 16049664\, \varepsilon \; ; \end{equation*}
  7. (Magic square consistency) on average over anticommuting \(\omega \), \(M^{(\mathtt{Point}, X), u_X}_{[\operatorname {tr}(\cdot \, r_X) = b]} \otimes I\simeq _{172\varepsilon } I\otimes M^{\mathtt{Variable}_1, \omega }_b\), and the same with \(Z\), \(r_Z\) and \(\mathtt{Variable}_5\).

The Lean proves it for a strategy in any bipartite model (Definition 8.49) — a unit state and, for each player, a family of POVMs in that player’s algebra — items 1–5 and 7 for any such families and item 6 with the first player’s measurements projective; the statement above is its tensor-product instance.

Proof ▶

Items 1–5 and 7 are one lemma applied seven times. The question distribution factors as an ordered type edge times the content, both uniform, so a question pair arising from a fixed edge of the type graph carries at least \(1/86\) of the mass — \(86\) being the ordered pairs counted in Definition 3.37 — and the conditional failure of any subtest is therefore at most \(86\varepsilon \). Each rule of \(\mathcal{D}^\textsc{Pauli}\) accepts only when two named readings of the two answers agree, so 1 converts that into \(172\varepsilon \) of cross-party distance for the measurements coarse-grained along those readings. The four rules gated on \(\gamma \) check nothing on the other value of \(\gamma \), which is why their averages are restricted.

Item 6 is not of that shape. Relabelling the \(\mathtt{Constraint}_i\) and \(\mathtt{Variable}_j\) answers at a fixed \(\omega \) into the Magic Square game’s alphabet — the three bits placed at the constraint’s cells, the bit passed through — gives a strategy for \(\mathfrak {G}^\mathrm{MS}\), and relabelling outcomes is data processing, so that strategy wins whenever the Pauli test’s own rule would have accepted. Its failure is therefore at most the Magic Square game’s own question-weighted sum of the Pauli test’s conditional failures at the corresponding question pairs, which is \(86\varepsilon \) on average over anticommuting \(\omega \) — one factor of \(86\) and not thirty-six, because \(\mathfrak {G}^\mathrm{MS}\)’s distribution is itself normalized. The conditional strategy’s constraint measurements are coarse-grainings of the first player’s, hence projective when those are, and Lemma 3.10 applied to each conditional strategy and averaged gives \(186624 \cdot 86 = 16049664\). This uses the strategy’s own observables and invokes no Magic Square rigidity.

Comments.

Four departures from the paper’s statement ( [ 34 ] , qld-commutation.tex, lem:qld-win-implications), and one from this blueprint’s own earlier text.

The paper’s hypothesis \(6md \leq q\) is not needed and is dropped. It is there to turn the gated items into averages conditioned on \(\gamma \): by Lemma 3.42 each of the two events has probability at least \((1 - 3md/q)/2 \geq 1/4\) under it, so dividing by that probability costs a factor \(4\). The formalization states the gated items in the unconditional form, with the gate’s indicator inside the average, which needs no lower bound on the gate’s probability and is what the machinery produces directly. Whoever needs the conditional form divides, and pays \(6md \leq q\) there.

The constants are named rather than hidden in \(O(\varepsilon )\). They are \(172 = 2 \cdot 86\) for the consistency items — the factor \(2\) of 1 and the selection probability \(1/86\) — and \(16049664 = 186624 \cdot 86\) for the anticommutator. Item 6 in the paper reads \(\mathop{\mathbb {E}}\Lambda _\omega = 1 - O(\varepsilon )\); that intermediate form is one_sub_povmValue_ms_le together with sum_msEps_le, and the item above states the composition with Lemma 3.10 because that is what the expansion stage consumes.

That composition asks the first player’s measurements to be projective, where the paper’s strategy is arbitrary: it inherits the hypothesis of Lemma 3.10, which is stated with the constraint player projective, and whose comments say why. The strategies the later stages apply it to are projective in both players (Definition 8.62), so nothing downstream pays for it; the other six items hold for arbitrary POVM families.

The paper’s item 2 quantifies over the line–point distribution of a separate definition; here it is the two line types of Definition 3.37 separately, at the questions the content actually produces, which is the form Definition 3.13’s own decider is stated in and avoids a second distribution.

Finally, this blueprint’s earlier statement of this lemma bundled into it the transfer of the anticommutation to the point observables. That is the paper’s separate lem:qld-win-implications-obs, it needs items 4, 5, 6 and 7 together, and it is where the sign \((-1)^{\gamma }\) first appears; it belongs with the expansion stage that consumes it and is not part of this lemma.

The point observables

The stage that follows works with the \(\pm 1\)-observables of the two-outcome probes rather than with the measurements themselves, and needs two statements about them: they are cross-party consistent, and they commute up to the sign \((-1)^{\gamma }\). The first is Lemma 3.46 item 1 and costs one factor of two; the second is the synthesis of items 4 to 7 and is where the sign that Lemma 3.51 cancels first appears.

[\(\bullet \) easy]

Lemma 3.47 Consistency of the point observables
✓
#

For \(W \in \{ X, Z\} \) and \(r \in \mathbb {F}_q\) write \(W^r(u) = M^{(\mathtt{Point}, W), u}_{[\operatorname {tr}(\cdot \, r) = 0]} - M^{(\mathtt{Point}, W), u}_{[\operatorname {tr}(\cdot \, r) = 1]}\) for the \(\pm 1\)-observable of the probe. Under the hypotheses of Lemma 3.46, on average over the verifier’s content,

\begin{equation*} W^r(u) \otimes I_\textsc{B}\; \approx _{344\varepsilon }\; I_\textsc{A}\otimes W^r(u)\; . \end{equation*}

As Lemma 3.46, the Lean proves it for a strategy in any bipartite model, with no projectivity.

Proof ▶

Item 1 of Lemma 3.46 holds for any common reading of the two answers, the rule at equal types accepting only when the answers are equal and equal answers having equal readings — so the data-processing step the paper cites separately is already in the item. Take the reading to be the probe \(a \mapsto \operatorname {tr}(a\, r)\) and apply xStateDist_obsOf_le, the cross-party form of Lemma 3.44, with the two signs \(\pm 1\): the factor is the number of outcomes of the probe, which is two, giving \(2 \cdot 172\varepsilon \).

[\(\bullet \bullet \bullet \) hard]

Lemma 3.48 Signed commutation of the point observables
✓

Under the hypotheses of Lemma 3.46, with the first player’s measurements projective, on average over uniformly random \(\omega = (u_X, u_Z, r_X, r_Z)\),

\begin{equation} \label{eq:qld-obs-commutation-bp} X^{r_X}(u_X)\, Z^{r_Z}(u_Z) \otimes I_\textsc{B}\; \approx _{57676416\, \varepsilon }\; (-1)^{\gamma (\omega )}\; Z^{r_Z}(u_Z)\, X^{r_X}(u_X) \otimes I_\textsc{B}\; . \end{equation}
13

The Lean proves it for a strategy in any bipartite model (Definition 8.49), the first player’s measurements projective; the statement above is its tensor-product instance.

Proof ▶

Two cases, and the sign is the branch. The content distribution is uniform and the two cases partition it, so the statement is the sum of the two restricted ones: Lemma 3.49 at \(9519168\, \varepsilon \) and Lemma 3.50 at \(48157248\, \varepsilon \).

[\(\bullet \bullet \) medium]

Under the hypotheses of Lemma 3.46, with the first player’s measurements projective, summed over the commuting tuples with the uniform weight \(\left\vert {\mathcal{C}} \right\vert ^{-1}\),

\begin{equation*} \sum _{\omega \, :\, \gamma (\omega ) = 0} \frac{1}{\left\vert {\mathcal{C}} \right\vert } \left\| {\bigl( [X^{r_X}(u_X),\, Z^{r_Z}(u_Z)] \bigr) \otimes I_\textsc{B}|\psi \rangle } \right\| ^2 \; \leq \; 9519168\, \varepsilon \; . \end{equation*}
Proof ▶

Items 5, 4 and 1 chain each point probe to a marginal of the \(\mathtt{Pair}\) measurement on the other side: three links at \(172\varepsilon \) each, so \(1548\varepsilon \) after a three-term triangle inequality. The first player’s \(\mathtt{Pair}\) measurement is projective, and so is its reading as the pair \((\beta _X, \beta _Z)\), a coarse-graining of it, whose marginals are the two one-basis readings; that is the projective measurement Lemma 2.31 needs, and the lemma applies. Then 3’s commutator form with Lemma 3.47’s probe carries the conclusion to the observables. The constant is \(12 \cdot 344 + 12 \cdot 344 + 768 \cdot (2 \cdot 1548 + 2 \cdot 1548 + 72 \cdot 86)\); its last term is the inconsistency of the two players’ \(\mathtt{Pair}\) measurements, \(86\varepsilon \) at the Born level by item 1, which no step now needs and which is kept as slack.

Comments.

Formalized in MIPRE/Background/QLD/Commutation.lean. One departure from the paper’s route, and two from its bookkeeping, both forced by which side an object lives on.

No orthonormalization. The paper’s strategy is a POVM strategy, and it makes the \(\mathtt{Pair}\) measurement projective with Corollary 3.45, at \(18\) times the inconsistency of the two players’ \(\mathtt{Pair}\) measurements and a factor two per marginal. Here the first player’s measurements are projective, as a strategy of a bipartite model is, and so is the joint \(\mathtt{Pair}\) reading, a coarse-graining of hers (isPVMIn_pairPOVM). The inconsistency term is kept at the weight \(72\) the orthonormalization charged, with its bound sum_incQty_le, so that the constant is the matrix formalization’s, unchanged; the strict positivity the corollary asks of its error bound, and the limit that discharged it in the matrix formalization, are gone.

The analysis is run on Bob’s observables and carried back. Lemma 2.31 wants the two commuting families on one side and the joint projective measurement on the other, and the projective \(\mathtt{Pair}\) measurement is Alice’s. So the analysis is applied to Bob’s point measurements against Alice’s \(\mathtt{Pair}\) measurement, and the conclusion is carried to Alice’s observables by the order-reversal rule. Running it on Alice’s side instead would ask Bob’s measurements to be projective too.

The chain is run in the mirrored orientation. Every rule of fig:decider_pauli is stated in both orientations, so items 5 and 1 are available with the players exchanged and item 4 is used as it stands.

Data processing is a consistency-level fact. The chain’s links are converted to the state-dependent distance only after the coarse-grainings are taken, because \(\approx _\delta \) has no data-processing inequality: NW19’s Fact 4.26 is stated for \(\simeq _\delta \), and the remark following it gives a counterexample for \(\approx _\delta \). The paper’s fact:data-processing is the \(\simeq \) form, correctly; a formalization that reached for the \(\approx \) form would be proving something false.

[\(\bullet \bullet \) medium]

Under the hypotheses of Lemma 3.46, with the first player’s measurements projective, summed over the anticommuting tuples with the uniform weight \(\left\vert {\mathcal{C}} \right\vert ^{-1}\) on the verifier’s content,

\begin{equation*} \sum _{\omega \, :\, \gamma (\omega ) = 1} \frac{1}{\left\vert {\mathcal{C}} \right\vert } \left\| {\bigl( X^{r_X}(u_X)\, Z^{r_Z}(u_Z) + Z^{r_Z}(u_Z)\, X^{r_X}(u_X) \bigr) \otimes I_\textsc{B}|\psi \rangle } \right\| ^2 \; \leq \; 16049664\, \varepsilon + 8256\, \varepsilon \; =\; 48157248\, \varepsilon \; , \end{equation*}

which is Lemma 3.48 at \((-1)^{\gamma (\omega )} = -1\).

Proof ▶

Item 7 of Lemma 3.46 says that on an anticommuting tuple each point probe agrees with one of the two distinguished \(\mathtt{Variable}\) bits on the other side. At the level of observables that is \(X^{r_X}(u_X) \otimes I\simeq _{344\varepsilon } I\otimes V_1\) and \(Z^{r_Z}(u_Z) \otimes I\simeq _{344\varepsilon } I\otimes V_5\) — item 7 at the two-outcome probe, then xStateDist_obsOf_le, whose cost is the number of outcomes of the probe, two. Item 6 says \(V_1\) and \(V_5\) anticommute on the state at \(16049664\, \varepsilon \). Feed the three into 3 and square with \((a+b+c)^2 \leq 3(a^2+b^2+c^2)\): the constant is \(12 \cdot 344 + 12 \cdot 344 + 3 \cdot 16049664\).

Two bookkeeping points. The weight is uniform on all contents but supported on the anticommuting ones, which is how every item of Lemma 3.46 is stated, so it is a sub-probability and not a distribution; sum_acommWeight_mul is the one lemma that converts between the two forms. And item 6 is stated for the anticommutator of the conditional Magic Square strategy’s observables, which are the same operators as the \(\mathtt{Variable}\) observables here: the conditional strategy at a \(\mathtt{Variable}\) question is the Pauli test’s measurement at the corresponding question with its answer relabelled to the bit it reports, and relabelling along the injection \(\mathtt{Sum.inr}\) leaves a coarse-grained POVM element alone (bobs_msPOVM).

Comments.

Formalized in MIPRE/Background/QLD/Commutation.lean.

This half costs \(\varepsilon \), not \(\sqrt{\varepsilon }\). Every input above is a squared-norm bound linear in \(\varepsilon \), and the only inequalities used are the triangle inequality and \((a+b+c)^2 \leq 3(a^2+b^2+c^2)\), so nothing introduces a square root. Correction to an earlier reading of this: the square root in 13 as the paper writes it does not belong to the commuting case either — that case is \(O(\varepsilon )\) too (Lemma 3.49), since 4 is linear in its hypothesis and the paper’s orthonormalization, Corollary 3.45, is linear in the inconsistency, while the formalization needs no orthonormalization at all. The paper’s \(\sqrt{\varepsilon }\) is a uniform weakening, and its own text says so where the anticommuting case is proved: “direct averaging proves the anticommutation relation with squared error \(O(\varepsilon )\). In particular it implies the following weaker bound, retained in the form used below”. Nothing downstream needs the sharper form — lem:qld-comm-cons asks only for \(\mathrm{poly}(\varepsilon )\) — so this is a note about where a square root is not spent, not a repair.

The sign is the double reversal. Both order reversals run in the same direction — a product transferred across the tensor factors comes back reversed — and what sits between them is Bob’s anticommutator, a sum. So the two reversals do not cancel: Alice’s two observables anticommute because Bob’s do, and that is the \((-1)^{\gamma }\) the expansion stage of Lemma 3.51 cancels against the ancillas.

Expansion: approximate commutation of the two bases

[\(\bullet \bullet \bullet \) hard]

Lemma 3.51 Expanded point measurements
✓

Adjoin EPR ancilla registers to \(|\psi \rangle \). There are measurements \(\widehat{M}^{(\mathtt{Point}, W), u}\) on each player’s space together with its ancilla such that, with \(\delta _{\mathrm{acom}}(\varepsilon ) = O(\sqrt{\varepsilon })\): they are self-consistent across the two sides at error \(\varepsilon \), and, the first player’s measurements being projective, the \(X\)-side and \(Z\)-side coarse observables approximately commute on the expanded state at error \(\delta _{\mathrm{acom}}\). The Lean proves it for a strategy in any bipartite model, the expanded state being its register model on \(\mathbb {F}_q^M\) (Definition 8.72); the statement above is its tensor-product instance.

Proof ▶

Two items, one lemma each. The pivotal one is an exact cancellation of a sign \((-1)^\gamma \) between the strategy’s own observables, supplied by the anticommutation relations of Lemma 3.46, and the ancilla observables: Lemma 3.53. Without the ancillas the two bases only commute up to an error carrying that sign, which does not improve with \(\varepsilon \); with them the sign cancels identically. Self-consistency is Lemma 3.52.

Comments.

Both items are formalized, at \(172\varepsilon \) and \(57676416\varepsilon \); the \(\delta _{\mathrm{acom}} = O(\sqrt{\varepsilon })\) of the statement is a weakening, as it is one step earlier (see Lemma 3.50’s comments). The expansion contributes nothing to either constant, which is the point of Definition 2.29’s items 3 and 4.

With \(|\hat\psi \rangle \) as in Lemma 3.53, let

\begin{equation*} \widehat{M}^{(\mathtt{Point},W),u}_a \; =\; \sum _{a' + a'' = a} M^{(\mathtt{Point},W),u}_{a'} \otimes \tau ^{W}_{[\, \cdot \, \mathrm{ind}_m(u) = a'']} \end{equation*}

be the convolution of the strategy’s point measurement with the ancilla’s syndrome measurement. Then, on average over the verifier’s content,

\begin{equation*} \widehat{M}^{(\mathtt{Point},W),u}_a \otimes I\; \simeq _{172\varepsilon }\; I\otimes \widehat{M}^{(\mathtt{Point},W),u}_a\; . \end{equation*}

The Lean proves it for a strategy in any bipartite model, with no projectivity, on its register model (Definition 8.72); the statement above is its tensor-product instance.

Proof ▶

Three inputs and no loss. The agreement probability of a product measurement on the expanded state factorizes (Definition 2.29); the ancilla factor is exactly one, because the syndrome projectors are perfectly self-consistent across the two halves of \(|\textsc{EPR}_q\rangle ^{\otimes M}\) — that is Definition 2.35’s stabilizer relation, summed over the level set, and it is \(1\) rather than \(1 - O(\varepsilon )\); and the convolution is a coarse-graining, so it can only increase agreement. What is left is the disagreement of the strategy’s own point measurements, which item 1 of Lemma 3.46 bounds by the conditional failure of the \((\mathtt{Point}, W)\) subtest. One conversion from agreement to distance (1) gives \(2 \cdot 86 \varepsilon \).

Comments.

Formalized in MIPRE/Background/QLD/Expanded.lean. The whole estimate runs on Born probabilities and is converted to the state-dependent distance exactly once, at the end. That is not a stylistic choice: the convolution is a coarse-graining, and \(\approx _\delta \) has no data-processing inequality (Definition 2.29’s comments). So the route through agreement probabilities is the only correct one, and it is also the one that makes the ancilla’s contribution visible as an exact \(1\).

Let \(|\hat\psi \rangle = |\psi \rangle \otimes |\textsc{EPR}_q\rangle ^{\otimes M}\) with the ancilla halves split between the two parties, and let \(\widehat{W}^{r}(u) = W^{r}(u) \otimes \tau ^W(r \cdot \mathrm{ind}_m(u))\). If the first player’s measurements are projective then, on average over the verifier’s content and with no sign,

\begin{equation*} \sum _\omega \frac{1}{\left\vert {\mathcal{C}} \right\vert } \left\| {\bigl[ \widehat{X}^{r_X}(u_X),\, \widehat{Z}^{r_Z}(u_Z) \bigr] \otimes I|\hat\psi \rangle } \right\| ^2 \; \leq \; 57676416\, \varepsilon \; . \end{equation*}

The Lean proves it for a strategy in any bipartite model, \(|\hat\psi \rangle \) being the state of its register model on \(\mathbb {F}_q^M\) (Definition 8.72); the statement above is its tensor-product instance.

Proof ▶

One identity and two bookkeeping facts. The identity is

\begin{equation*} \bigl[ \widehat{X}^{r_X}(u_X),\, \widehat{Z}^{r_Z}(u_Z) \bigr] \; =\; \Bigl( X^{r_X}(u_X) Z^{r_Z}(u_Z) - (-1)^{\gamma (\omega )} Z^{r_Z}(u_Z) X^{r_X}(u_X) \Bigr) \otimes \Bigl( \tau ^X(r_X \cdot \mathrm{ind}_m(u_X))\, \tau ^Z(r_Z \cdot \mathrm{ind}_m(u_Z)) \Bigr)\; , \end{equation*}

because the two ancilla operators commute up to exactly the sign \((-1)^{\gamma (\omega )}\) — the twisted commutation relation of Definition 2.34, whose sign is the form \(\operatorname {tr}\bigl( (r_X \mathrm{ind}_m(u_X)) \cdot (r_Z \mathrm{ind}_m(u_Z)) \bigr)\), and that form is \(\gamma (\omega )\) (gam_eq_trDot). Then the surviving ancilla operator is unitary, hence invisible to the state-norm, and what is left has an inert ancilla, hence the same norm on \(|\hat\psi \rangle \) as on \(|\psi \rangle \) (Definition 2.29, items 3 and 4). So the bound is exactly Lemma 3.48’s, with the sign removed.

Comments.

Formalized in MIPRE/Background/QLD/Expanded.lean. This is what the expansion exists for, and it is worth saying precisely what is bought: the sign is gone, not smaller. Without the ancillas the two bases commute only up to an error carrying \((-1)^{\gamma (\omega )}\), which no amount of soundness improves, because \(\gamma \) is a property of the question and not of the strategy. With them the two signs multiply to one identically, and the error that remains is the strategy’s own.

The constant carries over unchanged. That is the content of items 3 and 4 of Definition 2.29: the expansion is free, in the sense that no step of it loses anything, which is also why it is stated there rather than here.

[\(\bullet \bullet \bullet \) hard]

Let \(d \geq 1\) and let \(|\hat\psi \rangle \) be as in Lemma 3.53. For each \(W \in \{ X, Z\} \) and each line type — axis-parallel or diagonal — write \(\ell \) for the line the verifier’s content presents on the \(W\) side, and let

\begin{equation*} \widehat{M}^{(\mathtt{Line}, W), \ell }_f \; =\; \sum _{f' + f'' = f} M^{(\mathtt{Line}, W), \ell }_{f'} \otimes \tau ^{W, \ell }_{f''} \end{equation*}

be the convolution of the strategy’s line measurement with the ancilla measurement that reports the restriction to \(\ell \) of the low-degree encoding of its outcome (Definition 6.150), the outcomes being the polynomials of degree at most \(md\) on \(\ell \). Then, on average over the verifier’s content — which is the line–point distribution, the line and the point being read off the same sample:

  1. (Self-consistency) \(\widehat{M}^{(\mathtt{Line}, W), \ell }_f \otimes I\; \simeq _{172\varepsilon }\; I\otimes \widehat{M}^{(\mathtt{Line}, W), \ell }_f\);

  2. (Consistency with the expanded point measurements) \(\widehat{M}^{(\mathtt{Point}, W), u}_a \otimes I\; \simeq _{172\varepsilon }\; I\otimes \widehat{M}^{(\mathtt{Line}, W), \ell }_{[\mathrm{eval}_u(\cdot ) = a]}\), where \(u\) is the point of the same content and \(\mathrm{eval}_u\) evaluates a polynomial on \(\ell \) at the parameter of \(u\).

Moreover \(\{ \widehat{M}^{(\mathtt{Line}, W), \ell }_f\} _f\) is projective whenever the strategy’s own line measurement is, as it is for a strategy of a bipartite model (Definition 8.62). The Lean proves the two items for a strategy in any bipartite model, with no projectivity, on its register model (Definition 8.72); the statement above is its tensor-product instance.

Proof ▶

Everything is exact except the strategy’s own error, and the two items come out of the same three inputs as Lemma 3.52.

Projectivity is two closure properties and no computation: a product of projective measurements is projective, and so is any coarse-graining of one — because the elements of a projective measurement are mutually orthogonal, a sum of them over a level set is idempotent. The convolution is a coarse-graining of a product, so it is projective.

For item 1, the agreement probability of the product measurement on the expanded state factorizes (Definition 2.29); the ancilla factor is exactly one, the level-set projectors of the basis measurement being perfectly self-consistent across the two halves of \(|\textsc{EPR}_q\rangle ^{\otimes M}\) (Definition 2.35); the convolution can only increase agreement; and what remains is item 1 of Lemma 3.46 at the line type’s self-loop. One conversion from agreement to distance gives \(2 \cdot 86\varepsilon \).

For item 2 the ancilla contributes an identity rather than an estimate: relabelling a line outcome of the ancilla by its value at the point is the ancilla’s point measurement at that point. Both are coarse-grainings of the same eigenbasis measurement, and the two labels agree because evaluating the restriction of \(g_h\) to \(\ell \) at the parameter of \(u\) is evaluating \(g_h\) at \(u\) (Definition 6.150), \(u\) lying on \(\ell \) at that parameter. So the two players’ measurements are convolutions of their own factors with one ancilla measurement, the factorization applies again, the ancilla factor is again exactly one, and what remains is item 2a or 2b of Lemma 3.46 — the line answer evaluated at the sampled point against the point answer — at \(2 \cdot 86 \varepsilon \).

Comments.

Formalized in MIPRE/Background/QLD/Expanded.lean, with the restriction operation in MIPRE/Foundations/LowDegree/LineRestrict.lean and the two closure properties of projectivity in MIPRE/Foundations/PVM.lean and MIPRE/Foundations/Expanded.lean.

Three things about the statement have changed against the version this replaces, and all three are improvements rather than paraphrases.

\(\delta _{\mathrm{Line}}\) is linear in \(\varepsilon \), at the constant \(172\varepsilon \) of item 1 of Lemma 3.46, not \(O(\sqrt\varepsilon )\) as this lemma previously claimed. The paper says \(\mathrm{poly}(\varepsilon )\) and is consistent with either; the square root was this blueprint’s own and had no source. Nothing in the proof takes a square root, because nothing in it converts an operator inequality into a norm.

Projectivity does not come from Corollary 3.45, and that reference is gone from the uses list. It comes from projectivity of the strategy’s own line measurement, which the paper takes for granted and which is without loss of generality; the formalized statement carries it as a hypothesis rather than hiding it.

The paper’s two forms of item 2 — comparing a line outcome with a point outcome, and comparing the evaluation of the line polynomial at the point — are one statement here. The paper needs a direct calculation to pass between them, because it works with \(\approx \) and Fact fact:data-processing is a statement about \(\simeq \) (a defect it flags itself). At the Born level the passage is free: summing the line outcomes over a fibre of \(\mathrm{eval}_u\) is a coarse-graining, which increases agreement, so the estimate proved is the stronger one and the weaker follows without a separate argument.

One thing is deliberately not claimed. For an axis-parallel line the honest restriction is affine, hence of degree at most \(d\) rather than \(md\); that refinement is what Lemma 3.58 will need in order to keep the padded answers in the degree-\(d\) format, and it needs the individual-degree bound along the line’s own direction, not the total-degree bound proved here. The convolution above is stated at degree \(md\) for both line types, with the axis-parallel answers padded, which is what the paper’s printed definition does too.

Combining the two bases

The point of this stage is a single measurement that returns the \(X\)-polynomial and the \(Z\)-polynomial at once. It is reached by padding the ambient space from \(\mathbb {F}_q^m\) to \(\mathbb {F}_q^{4m}\), so that a point of the padded space encodes a point in each basis together with a pair of coefficients, and then applying the seeded CL theorem to the padded strategy.

[\(\bullet \bullet \bullet \) hard]

Let \(\{ O^u\} _{u \in V}\), \(V = \mathbb {F}_q^n\), be observables on the first party’s space — self-adjoint involutions — and let \(|\psi \rangle \) be a state. Then, on the space extended by an ancilla register \(\mathbb {C}^V\) on the first party only, with the extended state \(|\psi '\rangle = |\psi \rangle \otimes |0\rangle \), there are observables \(\{ L^u\} \) that are exactly linear,

\begin{equation*} L^u L^{u'} \; =\; L^{u + u'}\; , \qquad L^0 \; =\; I\; , \end{equation*}

such that the average squared distance to the original family is equal to the average linearity defect:

\begin{equation*} \mathop{\mathbb {E}}_{u \in V} \left\| {\bigl(L^u - O^u \otimes I\bigr) |\psi ’\rangle } \right\| ^2 \; =\; \mathop{\mathbb {E}}_{a, b \in V} \left\| {\bigl(O^a O^b - O^{a + b}\bigr) |\psi \rangle } \right\| ^2\; . \end{equation*}

In particular, if the family is \(\delta \)-approximately linear on average then \(L^u \approx _\delta O^u\) on average over \(u\): the error is linear in \(\delta \), with no loss in the exponent and no change of constant.

Proof ▶

The Fourier argument, in three exact steps and one identity.

Parseval. Let \(A_e = \left\vert {V} \right\vert ^{-1} \sum _a (-1)^{\operatorname {tr}(a \cdot e)} O^a\) be the Fourier transform of the family against the characters of the trace form (Definition 2.34). Merging the characters and summing over \(e\) collapses the double sum, because \(\sum _e (-1)^{\operatorname {tr}(c \cdot e)}\) is \(\left\vert {V} \right\vert \) at \(c = 0\) and \(0\) otherwise:

\begin{equation} \label{eq:linearity-character-sum} \sum _e (-1)^{\operatorname {tr}(u \cdot e)} A_e^2 \; =\; \left\vert {V} \right\vert ^{-1} \sum _a O^a O^{a + u}\; . \end{equation}
14

At \(u = 0\) the right-hand side is \(\left\vert {V} \right\vert ^{-1} \sum _a (O^a)^2 = I\), so \(\{ A_e^2\} \) is a POVM — exactly, with no appeal to the approximate linearity. That is the only place the involution property is used.

Naimark. Dilate that POVM to a projective measurement \(\{ P_e\} \) on \(\mathbb {C}^{d} \otimes \mathbb {C}^{V}\), compressed back by the isometry \(|v\rangle \mapsto |v\rangle \otimes |0\rangle \) (Lemma 2.30). One isometry serves the whole family of families, which is what lets the estimate be taken against the single state \(|\psi '\rangle \).

Inversion. Put \(L^u = \sum _e (-1)^{\operatorname {tr}(u \cdot e)} P_e\). Mutual orthogonality of the \(P_e\) gives \(L^u L^{u'} = L^{u + u'}\) and \(L^0 = \sum _e P_e = I\), and the compression of \(L^u\) is the left-hand side of 14, hence \(\left\vert {V} \right\vert ^{-1} \sum _a O^a O^{a+u}\).

The identity. Expanding both squared distances — each is \(2\) minus the two orders of an overlap, the operators involved being unitary — and compressing, the \(u\)-th term on the left is the average over \(a\) of the \((a, a+u)\)-th term on the right, after reindexing that average by \(a \mapsto a + u\). Summing over \(u\) and reindexing once more, by \(u \mapsto a + u\) for each fixed \(a\), gives the stated equality. No inequality is used anywhere, which is why the constant is exactly \(1\).

Source and correction.

The paper imports this from Natarajan and Vidick  [ 5 ] (Theorem 10 of the arXiv version) and proves nothing about it; the source is vendored in the paper repository, not in this one. An earlier version of this proof text said “the source is vendored and was audited line by line”, which is true of paper/external/nv17/ and false of MIPRE/Background/, whose vendored trees are GowersHatami, LIDT, Orthonormalization and Repetition. A reader would have planned the wrong work. The theorem is therefore proved here, from Parseval and Lemma 2.30; it is formalized in MIPRE/Foundations/Linearity.lean.

The ledger node this statement accounts for records the paper’s status — imported from NV17, with the import audited in its three children: the statement match, the source’s state-dependent-distance toolkit, and the Fourier proof line by line. The mark here records the Lean’s status, which is a proof. The two are consistent claims about different artifacts, and the Lean proof is the argument the third child audits: the same transform, the same Parseval step, the same dilation, the same inversion.

Comments.

Three things are worth separating from the proof.

Theorem 3.2 is not used, and has left this theorem’s uses list. Gowers–Hatami is a statement about the Hilbert–Schmidt distance and approximate representations; the hypothesis here is in the state-dependent distance, and the exact-POVM step above replaces the stability machinery entirely. The two results are about different things and neither implies the other in the form stated.

The conclusion is an equality, which is more than the paper’s statement and more than the application needs. The paper’s own audit note reconciles its \(\delta \) against NV17’s convention and concludes “the closeness exponent is \(1\), with the identical \(\delta \)”; the equality above says where that comes from — the linearity defect is transported term by term, not estimated.

The ancilla is adjoined to one party. That is the asymmetric extension \(|\psi \rangle \otimes |0\rangle _{\textsc{A}'}\) of the source statement, not the two-sided \(|\textsc{EPR}_q\rangle ^{\otimes M}\) of Definition 2.29; the exactly linear observables act on \(\textsc{A}\textsc{A}'\) and the second party is untouched. Its formalization is extVecA, with the compression identity qform_extVecA the only fact about it the proof needs.

[\(\bullet \bullet \bullet \) hard]

In the remaining combining and separating obligations, cross-party consistency estimates use the outcome-summed squared distance of Definition 2.28. When a proof instead bounds the probability of unequal outcomes, convert using Equation 1 and retain the resulting constant. Same-side operator comparisons use Definition 2.27.

Lemma 3.56 Combined \(XZ\) point measurements
✓
#

Let \(|\hat\psi \rangle \) be as in Lemma 3.51, and suppose both players’ measurements are projective, as they are for a strategy of a bipartite model (Definition 8.62). Put

\begin{equation*} \delta _Q(\varepsilon ) \; =\; 2\sqrt{57676416\, \varepsilon } \; +\; \sqrt{86\, \varepsilon } \; +\; 86\, \varepsilon \; =\; \mathrm{poly}(\varepsilon )\; . \end{equation*}

Then for every pair \((x, z) \in \mathbb {F}_q^m \times \mathbb {F}_q^m\) and each player there is a projective measurement \(\{ \widehat{Q}^{x, z}_{a, b}\} _{a, b \in \mathbb {F}_q}\), acting on that player’s expanded space enlarged by one ancilla register, two copies of \(\mathbb {F}_q \times \mathbb {F}_q\), held in the basis state \(|0, 0\rangle \) of the first copy, which jointly returns the \(X\)-value at \(x\) and the \(Z\)-value at \(z\) and satisfies, on average over the verifier’s content:

  1. (Self-consistency) \(\widehat{Q}^{x, z}_{a, b} \otimes I\; \simeq _{2 \delta _Q}\; I\otimes \widehat{Q}^{x, z}_{a, b}\);

  2. (Consistency with the ordered products)

    \begin{gather*} \widehat{Q}^{x, z}_{a, b} \otimes I\; \simeq _{4 \delta _Q + 115352832 \varepsilon }\; I\otimes \widehat{M}^{(\mathtt{Point}, Z), z}_b \widehat{M}^{(\mathtt{Point}, X), x}_a\; , \\ \widehat{Q}^{x, z}_{a, b} \otimes I\; \simeq _{4 \delta _Q + 461411328 \varepsilon }\; I\otimes \widehat{M}^{(\mathtt{Point}, X), x}_a \widehat{M}^{(\mathtt{Point}, Z), z}_b\; . \end{gather*}

Moreover \(\widehat{Q}^{x, z}\) compresses, along the isometry that adjoins \(|0, 0\rangle \), to the sandwich \(\widehat{R}^{x, z}_{a, b} = \widehat{M}^{(\mathtt{Point}, Z), z}_b \widehat{M}^{(\mathtt{Point}, X), x}_a \widehat{M}^{(\mathtt{Point}, Z), z}_b\). The conclusions depend on the content only through \((x, z)\), whose marginal is uniform, so “on average over the content” is “on average over uniform \((x, z)\)”. The marginals of \(\widehat{Q}^{x,z}\) are not claimed here; they are obtained in Lemma 3.58. The Lean proves it for a strategy in any bipartite model, on the ancilla extension of its register model by that register on each side (Definition 8.51), and states the estimates also for the sandwich itself on the register model, as agreements; the statement above is its tensor-product instance.

Proof ▶

The sandwich, its Naimark dilation, and one five-link chain.

The sandwich is a POVM, exactly. With \(\{ \widehat{M}^{(\mathtt{Point}, Z), z}_b\} \) projective,

\begin{equation*} \sum _{a, b} \widehat{M}^{Z, z}_b \widehat{M}^{X, x}_a \widehat{M}^{Z, z}_b \; =\; \sum _b \widehat{M}^{Z, z}_b \Bigl(\sum _a \widehat{M}^{X, x}_a\Bigr) \widehat{M}^{Z, z}_b \; =\; \sum _b \widehat{M}^{Z, z}_b \; =\; I\; , \end{equation*}

and each term is \((\widehat{M}^{X, x}_a \widehat{M}^{Z, z}_b)^\dagger (\widehat{M}^{X, x}_a \widehat{M}^{Z, z}_b)\), hence positive. No approximate commutation is used here, and no orthonormalization is needed afterwards: the family \((a, b) \mapsto \widehat{M}^{X, x}_a \widehat{M}^{Z, z}_b\) is a Kraus family of \(\{ \widehat{R}^{x, z}_{a, b}\} \), and the Halmos unitary of its Naimark column dilates it to a projective measurement on one extra register, two copies of \(\mathbb {F}_q \times \mathbb {F}_q\), which compresses to the sandwich at \(|0, 0\rangle \) (as in Lemma 8.77); one reference state serves every \((x, z)\) at once. Projectivity of \(\widehat{M}\) itself is two closure properties of projective measurements — products and coarse-grainings — applied to the convolution of Definition 2.29.

Parseval moves the commutation input to the elements. What Lemma 3.51 bounds is the commutator of the observables \(\widehat{W}^{r}(u)\), one pair per probe; what the sandwich needs is the commutator of the measurement elements, one pair per outcome. The elements are the two-variable Fourier transform of the observables against the characters of the trace form (Definition 2.34), so by Parseval the sum over outcomes of the one is the average over probes of the other — and the content already averages over the probes uniformly and independently of everything else it carries, so that average is free.

The chain. Write \(P_b = \widehat{M}^{Z, z}_b \otimes \widehat{M}^{Z, z}_b\) and \(\Delta = \sum _a (I- \widehat{M}^{X, x}_a) \otimes \widehat{M}^{X, x}_a\). Then

\begin{align*} \sum _{a, b} \langle \hat\psi | \widehat{R}^{x, z}_{a, b} \otimes \widehat{R}^{x, z}_{a, b} |\hat\psi \rangle & \approx \sum _{a, b} \langle \hat\psi | \widehat{M}^{Z}_b \widehat{M}^{X}_a \otimes \widehat{R}^{x, z}_{a, b} |\hat\psi \rangle \approx \sum _{a, b} \langle \hat\psi | \widehat{M}^{Z}_b \widehat{M}^{X}_a \otimes \widehat{M}^{Z}_b \widehat{M}^{X}_a |\hat\psi \rangle \\ & \approx \sum _{a, b} \langle \hat\psi | \widehat{M}^{Z}_b \otimes \widehat{M}^{Z}_b \widehat{M}^{X}_a |\hat\psi \rangle = \sum _b \langle \hat\psi | P_b |\hat\psi \rangle \; =\; 1 - \tfrac 12 \sum _b \delta ^Z_b\; , \end{align*}

where \(\delta ^Z_b\) is the \(Z\)-consistency defect. The first two steps are the two players’ commutators: each difference is \(\widehat{M}^Z_b\) times a commutator, the front factor is a contraction, and one Cauchy–Schwarz over all outcome pairs pays for it — against \(\sum _{a,b} \left\| {\widehat{R}_{a,b} |\hat\psi \rangle } \right\| ^2 \leq 1\) for the first and \(\sum _{a,b} \left\| {\widehat{M}^X_a \widehat{M}^Z_b |\hat\psi \rangle } \right\| ^2 = 1\) for the second. The third step is the one place the outcome sum must not be broken up: the whole double sum is the single product \((\sum _b P_b) \Delta \), both factors are projections, and Cauchy–Schwarz gives \(\sqrt{\langle \hat\psi | \Delta |\hat\psi \rangle } = \sqrt{\tfrac 12 \sum _a \delta ^X_a}\). Breaking it up instead would cost a factor \(q\), which is exactly the defect the paper’s round-11 note repairs. Both parties’ commutators are available because the game is symmetric in the players (MIPRE.QLD.accepts_symm).

Transport. The compression identity of the dilation turns every Born-rule expectation on the extended state into one on \(|\hat\psi \rangle \), so the chain’s bound is the dilated pair’s self-consistency with no further loss, and the same expansion against \(\widehat{R}^{x, z}_{a, b} \otimes I\) gives item 2 after one triangle inequality replacing the sandwich by each ordered product — the difference being \(\widehat{M}^Z_b\) times a commutator again.

Source and correction.

Formalized in MIPRE/Background/QLD/Combined.lean, with the generic mathematics in MIPRE/Foundations/Sandwich.lean, the Fourier dictionary in MIPRE/Foundations/Parseval.lean and the player exchange in MIPRE/Foundations/Swap.lean and MIPRE/Background/QLD/Swap.lean.

The route differs from the paper’s, and the statement is the same. The paper builds \(\widehat{Q}\) in three steps: the sandwich, then orthonormalization (Corollary 3.45) to make it projective, then the quantum linearity test (Theorem 3.55) to turn the resulting binary observables into an \(\mathbb {F}_q^2\)-valued measurement. Given that the strategy may be taken projective — which the paper also assumes — the last two steps are unnecessary: the sandwich is already a POVM, so its Naimark dilation is already the projective joint measurement wanted, and the compression identity carries the estimates. So thm:linearity has left this lemma’s uses list, together with cor:ortho-from-consistency, which was never in it. Theorem 3.55 is consequently used nowhere in this blueprint — Lemma 3.75 says explicitly that it is not used there either — and is kept because it is a statement of the paper’s and is now proved rather than imported, not because anything downstream needs it.

The extra register is explicit. The paper writes “by assuming that \(|\hat\psi \rangle \) has sufficiently many ancilla zero qubits, we do not need to extend the state further”; here the register the dilation needs, two copies of \(\mathbb {F}_q \times \mathbb {F}_q\), is adjoined to each party by name (the ancilla extension BipartiteModel.jointModel), which is the same device with the bookkeeping visible. It is adjoined to both parties, unlike the one-sided extension of Theorem 3.55, because item 1 compares the two players’ copies of the same construction.

The constants are explicit and linear in the inputs. \(\delta _Q\) has a square root because three of the chain’s five links are Cauchy–Schwarz steps; the \(57676416\varepsilon \) under the first two is Lemma 3.48’s constant, unchanged by the expansion, and the \(86\varepsilon \) under the third and in the linear term is item 1 of Lemma 3.46’s, halved by projectivity. Nothing in the chain is a per-outcome estimate, so no constant depends on \(q\).

[\(\bullet \bullet \bullet \) hard]

Without loss of generality the strategy answers every question in the format its type prescribes: replacing each answer of the wrong format by a fixed legal one keeps the measurements projective, does not decrease the success probability, and leaves every reading the rules and the conclusions use — point values, trace probes, Pauli encodings, bits — unchanged. For such a strategy and \(d \geq 1\), the expanded line measurement of Lemma 3.54 at an axis-parallel line is supported on polynomials of degree at most \(d\): it has no element on any other outcome. The same holds for the padded line measurement of Lemma 3.61 at an axis-parallel padded line, so its outcomes are legal answers to the axis-parallel line questions of the seeded test at \((q,4m,d,1)\). The original strategy’s axis-line answers have degree at most \(d\) by their legal format. Expansion convolves that outcome with the restriction of a multilinear Pauli encoding. The latter has degree at most one on an axis line, so addition preserves the bound for \(d\geq 1\). The Lean proves it for a strategy in any bipartite model, the expanded and padded measurements living in the players’ algebras of its register model; the legalized strategy is the one the assembly of Theorem 3.38 runs the chain on.

Proof ▶

Legalizing (legalizeStrat) relabels each measurement along the map that keeps a well-formatted answer and sends any other to a default legal answer reading as \(0\). A relabelling of a projective measurement is projective. The decider rejects an answer of the wrong format before running any rule, so every accepted answer pair is left alone and the accepted mass can only grow (povmValue_le_legalizeStrat, by data processing on the Born distribution). Every reading of Lemma 3.46’s rules sends ill-formatted answers to \(0\), as the defaults do, so the point-probe, hatted point and Pauli readings of the two strategies coincide.

For a legally supported strategy the strategy’s factor of the expanded axis-line measurement is supported on apoly answers, of degree at most \(d\), and the ancilla’s factor on restrictions of the multilinear encoding to the axis line, of degree at most \(1\) (natDegree_lineRestrict_single_le); their convolution is supported on degree at most \(d\) for \(d \geq 1\) (hatLinePOVM_aline_eq_zero_of_not_degLE). The padded line measurement is an average of sandwiches of the two sides’ axis-line elements, coarse-grained by the combining map, whose degree bound degLE_padCombine_aline contraposes: an outcome of degree above \(d\) can only come from a pair with a factor of degree above \(d\), and that factor vanishes.

Comments.

Proved, exactly and at no cost, by legalizing the strategy first. An earlier version of this paragraph costed the support claim as “coarse-grain the ill-formatted answers into a default outcome and re-derive the two items of Lemma 3.54 for the modified measurement at the cost of the format-failure probability, which is \(O(\varepsilon )\) but changes the constants”. That is one legalization too late. Legalizing the strategy rather than the expanded measurement is where the paper’s own convention lives — a “valid strategy” answers in the prescribed format, which is how qld-combining.tex justifies the axis bound — and it costs nothing: the value does not decrease, projectivity is kept, and the readings are unchanged, so every lemma of this appendix applies to the legalized strategy verbatim and its conclusions about point and Pauli measurements are conclusions about the original. The support claim is then exact — zero mass, not \(O(\varepsilon )\) — and no constant moves. MIPRE/Background/QLD/Legalize.lean is the legalization; the support half sits next to the degree computation in MIPRE/Background/QLD/PaddedLines.lean.

Lemma 3.58 Pairs of lines
✓
#

Let \(|\hat\psi \rangle \) and \(\{ \widehat{Q}^{x,z}_{a,b}\} \) be as in Lemma 3.56. Fix a line presentation on each side — a line type, axis-parallel or diagonal, so that each content presents a line \(\ell _W\) with a base point and a direction on side \(W\), and the sampled point \(u_W\) lies on it. For a pair of degree-\(md\) polynomials \((f_X, f_Z)\) on the two lines put

\begin{equation*} T^{\ell _X, \ell _Z}_{f_X, f_Z} \; =\; \widehat{M}^{(\mathtt{Line}, X), \ell _X}_{f_X}\, \widehat{M}^{(\mathtt{Line}, Z), \ell _Z}_{f_Z}\, \widehat{M}^{(\mathtt{Line}, X), \ell _X}_{f_X}\; , \end{equation*}

which is a POVM with outcomes pairs of degree-\(md\) polynomials. Then, on average over the verifier’s content,

\begin{equation} \label{eq:qld-pairs-of-lines-bp} \widehat{Q}^{x,z}_{a,b} \otimes I\; \simeq _{2 \delta _P}\; I\otimes T^{\ell _X, \ell _Z}_{[\mathrm{eval}_x(\cdot ) = a,\, \mathrm{eval}_z(\cdot ) = b]}\; , \end{equation}
15

with \(\delta _P = \mathrm{poly}(\varepsilon , \varepsilon _c)\) where \(\varepsilon _c\) is the average collision probability of the \(X\)-side evaluation map: \(md/q\) for an axis-parallel line and \(md/q + 1/q\) for a diagonal one. The Lean proves it for a strategy in any bipartite model, on the extension of its register model that \(\widehat{Q}\) acts on; from the game it states the estimate in agreement form, for the sandwich \(\widehat{R}^{x,z}\) to which \(\widehat{Q}^{x,z}\) compresses, on the register model. The statement above is its tensor-product instance.

Proof ▶

This is the pasting lemma (Lemma 2.33) at \(G_1 = \widehat{M}^{(\mathtt{Line}, Z), \ell _Z}\), \(G_2 = \widehat{M}^{(\mathtt{Line}, X), \ell _X}\) and \(A = \widehat{Q}^{x,z}\), and what has to be supplied is its four hypotheses.

The two marginal consistencies. Lemma 3.56 gives the joint measurement against the ordered product of the two point measurements, in either order; the marginal step of Lemma 2.32 turns each of those into the corresponding marginal against a single point measurement, at ten times the input. Replacing that point measurement by the line measurement evaluated at the point is one triangle inequality through Bob’s own point measurement — whose two legs are item 1 of Lemma 3.51 (Alice’s copy against Bob’s) and item 2 of Lemma 3.54 (Alice’s point against Bob’s line).

The fine-grained self-consistency of the \(X\)-line measurement is item 1 of Lemma 3.54 verbatim. The joint measurement lives on each party’s space enlarged by the dilation register and the line measurements do not, so both inputs are transported by the fact that an operator with an inert ancilla has the same cross-party deviation on the extended state as the operator itself.

The collision term needs the point to be uniform on its line once the line is fixed. The content determines both, so the factorization is produced by shifting: for a fixed \(t \in \mathbb {F}_q\) the map that replaces \(u_W\) by \(u_W + t \cdot w_W\) is a bijection of contents, so averaging over contents and over (content, shift) pairs give the same thing; the line’s question, base point and direction are invariant under it; and the point’s parameter moves by exactly \(t\). Two distinct degree-\(md\) polynomials then agree at at most \(md\) of the \(q\) parameters, which is the univariate case of Lemma 3.111.

Comments.

Formalized in MIPRE/Background/QLD/Lines.lean, on top of Lemma 2.33 in MIPRE/Foundations/Pasting.lean. The headline declaration qld_pairs_of_lines takes only game-level hypotheses — a strategy, its projectivity, and \(1 - \mathrm{val}\leq \varepsilon \) — and bounds by \(\delta _P\) the probability that the first player’s sandwich and the second player’s \(T\), read at the sampled points, disagree on the register model, at the axis-parallel line of each side. That is 15 in agreement form: \(\widehat{Q}\) compresses to the sandwich, so its Born probabilities against \(T\) on the extended state are the sandwich’s on the register model, and 1 converts. pairs_of_lines_gen and pairs_of_lines state the distance form for the dilated \(\widehat{Q}\) itself. pairs_of_lines_of_items is the agreement form for any pair of presentations, and aPres_items, dPres_items and sum_content_collProb_dPres are what the other three pairs of line types need.

The question distribution is a parameter. pairs_of_lines_gen proves the lemma over any finite nonempty sample space carrying a content per side — \(k_X\) presenting the \(X\) line, \(k_Z\) the \(Z\) line — together with a shift of the \(X\) point that both contents see as such; the two contents need share nothing, because no hypothesis of Lemma 2.33 involves both lines. pairs_of_lines is its instance at one content per sample, the same one on both sides, where the two lines are therefore dependent; pairs_of_lines_prod (Lemma 3.61) is its instance at a pair of line–point data, where they are independent. pasteLine and pasteJ_eq_pasteLine accordingly take the \(X\) line and the \(Z\) line from two contents rather than one.

Per pair of line types, not for the mixture. The paper states the lemma on average over the line–point distribution, which is an equal mixture of the axis-parallel and diagonal branches. Here the line type is a parameter and the statement is proved for each of the four pairs, which is stronger: the mixture is a convex combination of the four.

A degenerate diagonal line makes the collision probability one, and the paper’s \(\varepsilon = md/q\) does not account for it. The seeded test’s diagonal direction is \(\mathtt{zeroBelow}(\chi (s), v)\), which vanishes for a \(1/q\) fraction of the contents at worst; on such a content the “line” is a single point, every polynomial is evaluated at the same parameter, and two distinct ones can agree with probability \(1\). The bound above therefore carries \(md/q + 1/q\) on the diagonal side, and \(\delta _P\) is still \(\mathrm{poly}(\varepsilon , md/q)\). See reports/pasting-degenerate-diagonal-line.md.

The shift replaces the paper’s appeal to lem:alnf and lem:dlnf. Those say that conditioned on the line the point is uniform on it, which is what the collision bound uses. Rather than form the conditional distribution, the formalization shifts the point along the direction and uses that the shift is a bijection of contents for each fixed \(t\) (sum_content_shift_gen); the same device, applied to the raw direction \(v\) instead of the point, is what bounds the probability of a degenerate diagonal line.

What the refined contract still asks for. Three items of the contract recorded for this lemma are not part of what is proved above, and are wanted by the lemmas that consume it: that the outcome polynomials have degree at most \(d\) on an axis-parallel component, which is Lemma 3.57 and an additional target there; and the restriction to specified line types and direction indices, which costs the reciprocal probability of those choices, at most \(4m^2\). That the two lines be drawn independently is no longer one of them: pairs_of_lines_gen leaves the question distribution free, so the padded line–point distribution of Lemma 3.61 is an instance rather than a gap. The version above fixes the line type on each side as a parameter and is proved for each of the four pairs, so the restriction factor is not incurred; the reciprocal cost appears only when a caller wants the statement for the mixture.

[\(\bullet \bullet \) medium]

Write a point of the padded space \(\mathbb {F}_q^{4m}\) as \(u = (x, z, \alpha , \beta , w)\) with \(x, z \in \mathbb {F}_q^m\), \(\alpha , \beta \in \mathbb {F}_q\) and \(w \in \mathbb {F}_q^{2m - 2}\) the dummy coordinates. With \(\delta _Q\) as in Lemma 3.56, put

\begin{equation*} \widehat{Q}^u_c \; =\; \widehat{Q}^{x, z, \alpha , \beta }_c \; =\; \sum _{\substack {a, b \, :\\ \begin{bgroup} \alpha a + \beta b = c \end{bgroup}}} \widehat{Q}^{x, z}_{a, b}\; , \end{equation*}

which returns the combined value \(\alpha g_X(x) + \beta g_Z(z)\) and depends on \(u\) only through \((x, z, \alpha , \beta )\) — that is what “independent of the dummy coordinates” means. Then \(\{ \widehat{Q}^{u}_c\} _{c \in \mathbb {F}_q}\) is projective, and

  1. (Self-consistency) for every \((\alpha , \beta )\), on average over the content, \(\widehat{Q}^{u}_c \otimes I\simeq _{2\delta _Q} I\otimes \widehat{Q}^{u}_c\);

  2. (Consistency with \(\widehat{M}\)) on average over the content and over uniform \((\alpha , \beta )\),

    \begin{gather*} \widehat{Q}^{u}_c \otimes I\; \simeq _{4\delta _Q + 115352832\varepsilon }\; I\otimes \sum _{\alpha a + \beta b = c} \widehat{M}^{(\mathtt{Point}, Z), z}_b \widehat{M}^{(\mathtt{Point}, X), x}_a\; , \\ \widehat{Q}^{u}_c \otimes I\; \simeq _{4\delta _Q + 461411328\varepsilon }\; I\otimes \sum _{\alpha a + \beta b = c} \widehat{M}^{(\mathtt{Point}, X), x}_a \widehat{M}^{(\mathtt{Point}, Z), z}_b\; . \end{gather*}

The Lean proves it for a strategy in any bipartite model, on the extension of its register model that \(\widehat{Q}\) acts on (Lemma 3.56); the statement above is its tensor-product instance.

Proof ▶

Both items are about the same coarse-graining and they are free for opposite reasons.

Item 1 is free because both families are projective. The fibres \(\{ (a, b) : \alpha a + \beta b = c\} \) partition \(\mathbb {F}_q^2\), so the coarse-grained families are projective too — a sum of mutually orthogonal projections is a projection. For projective families the summed cross-party deviation and the agreement probability determine each other exactly, \(1 - \sum _c \langle \psi | A_c \otimes B_c |\psi \rangle = \tfrac 12 \sum _c \left\| {(A_c \otimes I- I\otimes B_c)|\psi \rangle } \right\| ^2\), and agreement can only increase under a coarse-graining applied to both sides. So the error is unchanged, for each \((\alpha , \beta )\) separately. Note that the state-dependent distance has no data-processing inequality of its own; projectivity is what buys the two conversions.

Item 2 is not free, and Parseval is what pays for it. The right-hand families are not POVMs — they are products of two measurements — so the argument above does not apply, and a per-fibre triangle inequality would cost the fibre size \(q\), which the conclusion cannot afford. Instead, write

\begin{equation*} U_{a, b} \; =\; \bigl(\widehat{Q}^{x,z}_{a,b}\bigr)_{\textsc{A}\textsc{A}'} - \bigl(\widehat{M}^{Z, z}_b \widehat{M}^{X, x}_a\bigr)_{\textsc{B}\textsc{A}''}\; , \qquad D_c \; =\; \sum _{\alpha a + \beta b = c} U_{a, b}\; , \end{equation*}

so that item 2’s deviation is \(\left\| {D_c |\hat\psi \rangle } \right\| \). Parseval over \(\mathbb {F}_q\) turns the sum over fibres into an average over one probe, \(\sum _c \left\| {D_c|\hat\psi \rangle } \right\| ^2 = \mathop{\mathbb {E}}_r \left\| {\sum _{a,b} (-1)^{\operatorname {tr}(r(\alpha a + \beta b))} U_{a,b} |\hat\psi \rangle } \right\| ^2\), and two things then happen. The \(r = 0\) term vanishes identically, because \(\sum _{a,b} U_{a,b} = I- (\sum _a \widehat{M}^X_a)(\sum _b \widehat{M}^Z_b) = 0\) — completeness of all three families, and the only place the zero-sum property is used. For \(r \neq 0\) the pair \((r\alpha , r\beta )\) is uniform on \(\mathbb {F}_q^2\) when \((\alpha , \beta )\) is, so averaging over \((\alpha , \beta )\) and applying Parseval over \(\mathbb {F}_q^2\) (Definition 2.34) returns \(\sum _{a,b} \left\| {U_{a,b}|\hat\psi \rangle } \right\| ^2\) exactly. Summing the \(q - 1\) nonzero probes gives \(\tfrac {q-1}{q} \sum _{a,b} \left\| {U_{a,b}|\hat\psi \rangle } \right\| ^2\), which is item 2 of Lemma 3.56 with a factor below one.

The second relation is the same argument with the two orders exchanged, using \(\sum _{a,b} \widehat{M}^{X, x}_a \widehat{M}^{Z, z}_b = I\) in place of the other order.

Comments.

Formalized in MIPRE/Background/QLD/Combined.lean, with Parseval over one and two copies of the field and the coarse-graining identity in MIPRE/Foundations/Parseval.lean and MIPRE/Foundations/Sandwich.lean.

The error is improved, not merely preserved: item 2 comes out at \(\tfrac {q-1}{q}\) times the input, so the factor is below one and there is no \(md/q\) term. That is the paper’s round-12 repair of this step, and the ledger node records it: an earlier orthogonality-and-Cauchy–Schwarz route claimed \(O(\delta _Q^{1/2})\) and was retracted, every direct route paying the fibre multiplicity \(q\). The Lean statement keeps the factor visible rather than absorbing it.

Item 1 holds for every \((\alpha , \beta )\), not only on average, because nothing in its proof averages over the probes — the coarse-graining is free pointwise. Only item 2 needs the \((\alpha ,\beta )\)-average, and it needs it for the bijection \((\alpha , \beta ) \mapsto (r\alpha , r\beta )\).

[\(\bullet \bullet \) medium]

Lemma 3.60 The sublines distribution
✓
#

For the seeded padded line distribution on \(\mathbb {F}_q^{4m}\) there is a distribution of \((\ell ,\ell _X,\ell _Z)\) with the following properties. Its \(\ell \)-marginal is the padded line marginal. Every \(u=(u_X,u_Z,\alpha ,\beta ,w)\in \ell \) satisfies \(u_X\in \ell _X\) and \(u_Z\in \ell _Z\). For uniform \(u\in \ell \), the law of \((\ell _X,\ell _Z)\) is a mixture of products of restricted unpadded line marginals; conditional on this pair, each of \(u_X,u_Z\) is uniform on its respective line. Joint independence of these two points is not asserted. Here a restricted axis distribution fixes direction \(e_i\); a restricted diagonal distribution fixes the seed index \(i\) and has direction with its first \(i-1\) coordinates zero. These are restrictions of the seeded laws, including degenerate lines, not new uniform laws on distinct geometric lines. Finally, if \(\ell \) is axis-parallel, both \(\ell _X\) and \(\ell _Z\) are axis-parallel. This last clause is needed for the legal degree-\(d\) answers.

Proof ▶

The distribution is a sampling procedure, and the procedure is forced by the first property it has to satisfy.

What the containment forces. Moving along the padded line moves the \(X\) block of a point along the \(X\) block of the padded direction. So where that block is nonzero the \(X\) subline has no choice: its direction must be exactly that block, and the only freedom left is which seed presents it — a seed of the prescribed axis index, drawn uniformly from that index’s block of \(q/m\) elements. Where the block vanishes the \(X\) block of a point is constant along the padded line, the containment is free, and the subline is sampled fresh. Same for \(Z\).

The four cases, and why the two sides differ. A coordinate position of \(\mathbb {F}_q^{4m}\) lies in the \(X\) block, in the \(Z\) block, at \(\alpha \) or \(\beta \), or among the dummy coordinates, and which blocks of the padded direction vanish depends on the case and on the line type. For an axis-parallel padded line the direction is a single coordinate, so at most one of the two blocks is nonzero. For a diagonal one it is \(v\) truncated below the axis index, so an index in the \(X\) block leaves the whole \(Z\) block untouched: both blocks are nonzero and the \(Z\) subline is forced as well, at axis index \(0\) since nothing of its direction is truncated. That is the only place the construction looks at the line type.

The law. The \(X\) and \(Z\) blocks of a uniform padded point are uniform and independent, because \(\mathbb {F}_q^{4m}\) is the disjoint union of the two blocks and the \(2m\) positions above them, and precomposition with an injection of index types carries the uniform measure to the uniform measure. The two sides’ data are therefore functions of disjoint parts of the randomness: the point and the raw direction contribute one block each, and each side’s fresh seed is its own. Averaging over the sampling space is then exactly averaging over a product of two line-point laws, restricted on a side precisely when that side is forced, with no constant left over — the multiplicities are the assignments the construction does not read, and they divide out. A side that is not forced gets the unrestricted law, which is the uniform mixture of the \(m\) restricted ones; that is the mixture in the second property.

The third property is definitional here, the line type being a parameter handed to both sides rather than something the construction chooses. What the paper draws from its Property 3 — that the directions agree — is the four-case statement above.

Comments.

Formalized in MIPRE/Background/QLD/Padded.lean, on the block identities of MIPRE/Foundations/Blocks.lean.

The construction. LPData is the triple \((u, s, v)\) a seeded line–point pair is generated from, in either dimension; subX and subZ are the sampling procedure, reading the two \(m\)-dimensional pairs off a padded one together with a fresh seed and raw direction per side. padCase is the four-way case distinction, and seedIn is the retargeting of a seed to a prescribed block keeping its offset — the paper’s “choose \(s_X\) uniformly at random subject to \(\chi (s_X) = i\)”, made a function so that the construction is a function of its randomness rather than a conditional distribution.

The containment is xBlk_dir_sub and zBlk_dir_sub, which say that in each case the relevant block of the padded direction either is the subline’s direction or vanishes, and xBlk_on_subX / zBlk_on_subZ, which turn that into \(u_X \in \ell _X\) and \(u_Z \in \ell _Z\).

The law is stated as four identities, one per case, and they are identities of averages rather than of sums: avgSub_free, avgSub_zc, avgSub_xc and avgSub_xc_dline each say that the average over the sampling space equals the average over a product of two line–point laws, restricted on a side exactly when that side is forced. No constant survives; the multiplicities — the assignments to the coordinates and the fresh randomness the construction does not read — are what the normalization divides out, and they differ from case to case, which is why the four are separate statements. sumAll_eq_sum_sumRestr is the mixture: the unrestricted law is the sum of the \(m\) restricted ones, so a side that is not forced contributes a uniform mixture.

Property 1 is definitional and Property 3 is definitional, for the same reason: the padded line–point pair is an input the construction does not modify, and the line type is a parameter handed to both sides. subX_question_aline and subZ_question_aline record the second of these.

Why \(4m\). \(\alpha \) and \(\beta \) sit at positions \(2m\) and \(2m+1\), so the dummy block is the \(2m-2\) positions above them and every index bound needs only \(m \geq 1\). The asymmetry between the two sides in the diagonal case is what the paper’s round-12 note on this lemma repairs: the missing primes on \(w_X, w_Z\), and the unspecified law of the coordinate registers \(s_X, s_Z\).

[\(\bullet \bullet \bullet \) hard]

Lemma 3.61 Padded line POVM
✓
#

For every padded line \(\ell \), there is a POVM with polynomial outcomes of degree at most \(md+1\), and — given Lemma 3.57 — at most \(d\) when \(\ell \) is axis-parallel. On the padded line–point distribution it is consistent with the opposite padded point measurement, with error \(\delta _{\mathrm{combine}}=\mathrm{poly}(m)\cdot \mathrm{poly}(\varepsilon ,md/q)\), in both register versions. The answer is the restriction of \(\alpha f_X(x)+\beta f_Z(z)\). On an axis line, either an \(x\) or \(z\) coordinate varies with constant \(\alpha ,\beta \), or only one coefficient varies, giving degree at most \(d\) for \(d\geq 1\). The general bound \(md+1\leq 4md\) and the separate axis bound make these legal answers for the seeded test at \((q,4m,d,1)\). The Lean proves it for a strategy in any bipartite model, the measurement being a family in the players’ algebras of its register model, with the consistency in agreement form against the padded sandwich combination; the statement above is its tensor-product instance.

Proof ▶

The measurement is the conditional average, over the sublines the construction of Lemma 3.60 draws for the given padded line, of the pasted line measurement coarse-grained by the combining map; its outcome at a point of \(\ell \) is \(\alpha f_X(x) + \beta f_Z(z)\) by construction, and the degree bounds are the ones the Comments below record.

For the consistency, the joint law of the two sublines-with-points is, at a fixed padded seed, exactly a product of the two marginal laws, each restricted or not according to which block the padded axis index lies in. So Lemma 3.58 on a product of two independent line–point laws applies directly, and the padded law is at most \(m^2\) times the product of the two unrestricted laws. Coarse-graining the outcome pair \((f_X(x),f_Z(z))\) along \((r_1,r_2)\mapsto \alpha r_1 + \beta r_2\) only increases agreement, and \(\alpha \) and \(\beta \) at the sampled point are uniform and independent of both sublines, because translating the padded point in those two coordinates alone leaves both sublines fixed. Chaining the three gives \(\delta _{\mathrm{combine}} = m^2\, \delta _P\). The other register version is this one applied to the strategy with the players exchanged, in the model with the players exchanged.

The paper instead chains three Cauchy–Schwarz claims, because it takes the joint law to be correlated; that is so given the padded line, but the quantity conditions on the two sublines, which do not determine the relative offset of the two blocks. See reports/padded-lines-product-law.md.

Comments.

The statement and its proof are formalized; the consistency bound \(\delta _{\mathrm{combine}}\) was the last piece to close. Everything the statement asserts about the measurement is formalized — the combining map, its two degree bounds, the POVM \(\widehat Q^\ell \) itself and the coarse-graining that turns it into an \(\mathbb {F}_q\)-valued outcome — in MIPRE/Background/QLD/Combine.lean, on top of the transfer in MIPRE/Background/QLD/Product.lean. The transfer is worth separating from the rest because it is where an apparent obstruction turns out not to be one.

The obstruction, and why it is not one. Lemma 3.58 is proved on the Pauli basis test’s own question distribution: one content, carrying both sides’ points but a single seed and a single raw direction, so the \(X\) line and the \(Z\) line it presents are not independent. This lemma needs the same conclusion on a product of two independent line–point laws, which is what Lemma 3.60 delivers. The two distributions are genuinely different — but no hypothesis of the pasting lemma involves both lines. Each marginal consistency involves one line and the two points; the fine self-consistency and the collision term involve one line only. So the only laws that have to agree are one side’s line–point data on its own, one side’s data together with the other side’s point, and the two points; and each of those has the same law under a content as under a product, because a content’s two points and its seed and raw direction are independent and uniform. avg_content_eq_pair_X, avg_content_eq_pair_Z and avg_content_eq_pair_pts are those three identities, each one line on top of avg_comp_equiv_fst: exhibit the splitting of each sample space that isolates the part the quantity depends on, and the marginals match.

The change of variables generalizes for free. The device that makes the point uniform on its line without forming a conditional distribution needs a finite nonempty sample space, a shift action, and a direction the shift does not move — nothing about contents. bijective_shift and sum_shift_gen are that statement, and sum_pair_shift is its instance at a pair with the shift acting on the \(X\) side only.

The combining map, and where its whole geometry sits. combine is built through Mathlib’s Polynomial and truncated back to a coefficient vector: it is \(\alpha (t) f_X(x(t)) + \beta (t) f_Z(z(t))\) with all four substitutions affine in the padded parameter \(t\), so the degree bound \(md+1\) is a product of degrees and nothing more. eval_padCombine is the paper’s parametrization-free defining property: at the padded parameter \(t\) the combined polynomial takes the value \(\alpha \cdot f_X(x) + \beta \cdot f_Z(z)\) at the corresponding point, each side’s polynomial read at the parameter of its own subline.

The only geometric input is xBlk_dir_sub and its \(Z\) twin (Lemma 3.60): the \(X\) block of the padded direction is either the \(X\) subline’s own direction or zero. In the first case the subline parameter moves by exactly the padded shift, in the second it does not move at all — so in both it is \(p_0 + c\, t\) with \(c\) one or zero, and subAff is that pair. The paper’s case analysis over the branches of the subline construction is not needed: the disjunction is proved once and used once.

The axis bound is the same case distinction padCase already makes. A padded direction in the \(X\) or \(Z\) block leaves \(\alpha \) and \(\beta \) constant along the line, so the combined polynomial inherits the degree of \(f_X\) and \(f_Z\) — degree \(d\) exactly when Lemma 3.57 supplies it, which is why degLE_padCombine_aline takes that as a hypothesis. A direction at \(\alpha \), \(\beta \) or a dummy coordinate leaves both blocks constant, so the combined polynomial is affine, and there \(d \geq 1\) is all that is used.

The measurement. padLineMats is \(\widehat Q^\ell \): the uniform average, over the fresh randomness the subline construction draws, of the pasted line measurement \(T^{\ell _X,\ell _Z}\) coarse-grained by padCombine. Conditioning on the padded line is exactly averaging over that randomness and nothing else, so the paper’s conditional expectation is a plain uniform average. sum_padLineMats and posSemidef_padLineMats are that it is a POVM, and sum_filter_padLineMats is the data-processing step the paper’s proof ends with, in the form pairs_of_lines_prod applies to.

Lemma 3.58, on the product. pairs_of_lines_prod is that lemma at \(k_X = \mathtt{pairCX}\), \(k_Z = \mathtt{pairCZ}\) and pairShift as the shift: each side’s content is its own point, seed and raw direction, with the other side’s point filled in as the content’s other point, which no quantity of that side’s line depends on. The two \(\mathtt{rfl}\)s pairCX_pairShift and pairCZ_pairShift are the whole of the instantiation — the generalization it instantiates is recorded under Lemma 3.58, since that is the lemma it proves.

And from the game. pairs_of_lines_prod_of_items takes only game-level hypotheses and delivers the product form, which is what the consistency chain consumes. Two things had to be arranged for it. First, the combined point measurement is re-indexed by the pair of points (combined_points_pts) rather than by the content: all four inputs of the joint-measurement construction see the content only through its two points, so the same construction runs at the pair, and the resulting measurement is usable at any sample space carrying two points — whereas the content-indexed one would have to be fed contents with zeroed probes, whose average is not the content average. Second, FactorsX and FactorsZ say that a line presentation reads the content only through that side’s line-point data; both presentations satisfy them by \(\mathtt{rfl}\), and that is what lets avg_content_eq_pair_X carry each content-level bound to the product (avg_pair_eq_content_X and its three companions).

The restricted laws, and where the factors of \(m\) come from. avgRestr was already the paper’s \(D_{\mathrm{ty},i}\). sum_avgRestr says the \(m\) restricted laws average to the unrestricted one, so each is at most \(m\) times it (avgRestr_le_mul_avgAll) and a product of two is at most \(m^2\) times the product (avgRestr_prod_le_mul_avgAll). The paper’s factor is \(2m\) because it mixes over the two line types; here the type is a parameter, so it is \(m\). This is the whole source of the leading \(m\) in \(\delta _{\mathrm{combine}}\).

The paper’s three Cauchy–Schwarz claims are avoidable here, and this is a finding. The paper proves the consistency by chaining Claims 17-1, 17-2 and 17-3, and says in a comment that the chain is needed because “under the distribution \(D\) the pair is correlated (for diagonal lines both coordinates share the line parameter), so that decomposition is not available”. The correlation is real given the padded line — a uniform point of it moves both blocks with one parameter — but the quantity to be bounded conditions on the two sublines, which know each block’s coset in its own space and not the relative offset of the two blocks. Marginalizing that out restores independence, and avgSub_free and its three companions (Lemma 3.60) already prove the joint law to be exactly a product of the two marginals at a fixed padded seed. avgSub_le_mul_avgAll combines that with the restricted-law transfer: the padded line–point law is at most \(m^2\) times the product of the two unrestricted subline laws, uniformly in the padded seed and the line type. avgSubAB_le_of_forall does the same for \(\alpha \) and \(\beta \) at the sampled point: translating the padded point in those two coordinates alone is a bijection that leaves both sublines fixed, so they are uniform and independent of everything else and a bound holding for each fixed \((\alpha ,\beta )\) holds for the joint law. No refinement of the block decomposition is needed. The report is reports/padded-lines-product-law.md.

The consistency bound is proved, in MIPRE/Background/QLD/PaddedLines.lean. padded_lines_consistency is it: on the padded line–point law, at every padded seed and line type, the combined point measurement read along \((\alpha ,\beta )\) at the sampled point agrees with the pasted line measurement coarse-grained by the combining map, up to \(m^2 \cdot \delta _P\). The proof is the coarse-graining step (sum_bornProb_le_fibre: agreement only increases under a common coarse-graining, for bare matrix families rather than POVM structures, which is what the pasted measurement is) followed by the two domination lemmas.

What of the statement is conditional. Two of the three gaps this paragraph used to list are closed. The error form was corrected to \(\mathrm{poly}(m)\cdot \mathrm{poly}(\varepsilon ,md/q)\) in the statement above, which is what is proved; and the second register version is padded_lines_consistency_swap, by the game’s player symmetry. What remains is the degree bound \(d\) on an axis-parallel line, which is conditional on Lemma 3.57 — an additional target there, and the reason the degree clause is written conditionally above. So the proof mark covers the consistency bound and the measurement’s being a POVM, and the degree clause only given that lemma. reports/padded-lines-product-law.md records the history, together with the size of \(\delta _P\) itself: \(\delta _P \approx 7\cdot 10^3\, \varepsilon ^{1/4} + 1.5\sqrt{md/q}\), so the bound is vacuous unless \(\varepsilon \leq 4\cdot 10^{-16}\) — a property of the whole chain’s constants, not of this step.

[\(\bullet \bullet \) medium]

Let \(\cal {N}\) be a bipartite model and \(I\) a finite set, the register of the analysis (\(I = \mathbb {F}_q^{\{ 0,1\} ^m}\), so that \(\mathbb {C}^I = (\mathbb {C}^q)^{\otimes M}\)). Let \(T\) be the ancilla of the projective dilation of Lemma 8.77 for POVMs whose outcomes are the answers of the seeded CL test at \((q, 4m, d, 1)\), with \(K + 1\) Kraus terms, and \(t_0 \in T\) its reference state, at the zero answer. The registers are named as in the paper: \(A\) is the first player’s own space, \(A'\) and \(A''\) the two halves of an EPR pair on \(I\), and \(E_A\) a copy of \(T\); likewise \(B\), \(B'\), \(B''\) and \(E_B\) for the second player. Every model below depends on the padding size \(K\).

  1. The padded model is the register model of \(\cal {N}\) on \(I\) (Definition 8.72) extended by \(E_A\) for the first player and \(E_B\) for the second, in the basis state \(|t_0\rangle \otimes |t_0\rangle \) (Definition 8.51). Up to the associativity of extensions it is the extension of \(\cal {N}\) by the registers \((E_A, A')\) and \((E_B, A'')\) in the unit vector \(|t_0 t_0\rangle \otimes |\textsc{EPR}_I\rangle \), so the seeded CL test is sound in it (Definition 8.65) whenever it is sound in every extension of \(\cal {N}\) by a unit vector, and then also in the padded model of \(\cal {N}\) with the players exchanged.

  2. The physical model is the extension of \(\cal {N}\) in which each player holds three registers, \((A'', E_A, A')\) and \((B'', E_B, B')\), in the physical state: each player’s own EPR pair, \((A'', A')\) and \((B'', B')\), and the two padding registers in \(|t_0\rangle \otimes |t_0\rangle \). The physical state is a unit vector, symmetric under the exchange of the two players’ blocks, and each pair satisfies the mirror identity: an operator \(P\) on the near half \(A'\) acts on the state as \(P^{\mathsf T}\) on the far half \(A''\), whatever the other player applies, and likewise for \(B'\) and \(B''\).

  3. The first cut is the physical model read (Definition 8.88) with the first player’s far half \(A''\) handed to the second player: the same Hilbert space, state and representation, the first player’s operators being those of \((E_A, A')\) and the second player’s those of \((A'', B'', E_B, B')\). The second cut is the first cut of \(\cal {N}\) with the players exchanged, a reading of the same state.

  4. The padded model and the register model embed in the first cut, along embeddings \(j_1\) and \(\iota _1\) (Definition 8.90), local isometries that carry the state to the state and keep both units: \(\iota _1\) is the inert extension of the register model by \(|t_0 t_0\rangle \) followed by \(j_1\), and it sends a first-player operator \(Z\) of \(A'\) to \(I_{E_A} \otimes Z\).

  5. Item 1’s cut is the register model on \(I\), its pair being \((A'', B'')\), of the extension of \(\cal {N}\) by the padded registers \((E_A, A')\) and \((E_B, B')\). Regrouping the physical registers into it is a local isometry (Definition 8.69) from the physical model, with no condition on the state.

  6. The physical model of \(\cal {N}\) with the players exchanged is the physical model of \(\cal {N}\) with the players exchanged: the exchange of the two blocks of registers is an isomorphism of models between them (Definition 8.85), the identity on the players’ algebras, because the physical state is symmetric.

Comments.

MIPRE/Background/QLD/PhysModel.lean: the padding register is PadAnc, the padded model padModel with soundIn_padModel and soundIn_padModel_swap, the physical model phys on the state physE, the first cut cut1 with its reading lemmas for the two players, the embeddings \(j_1\) and \(\iota _1\), item 1’s cut tgt with the regrouping unassoc, and the exchange of the blocks blockSwapIso. The matrix analysis built each of these states as an explicit vector on a product of index sets — the twice-padded state, the appended second pair, item 1’s regrouped state — and moved between them by reindexing whole spaces. Here every state is an ancilla extension of the strategy’s model by finite registers in a joint vector, only the finite registers are regrouped, and a regrouping is a local isometry or an isomorphism of models. The two cuts are two readings of one state model, so that nothing has to be proved about their states agreeing, and both players’ dilations are taken on one padding register at one common size, so that the two runs of stage 4 read one physical state. The padded model is where stage 4 applies the seeded CL test (Lemma 3.66); the first cut is where stage 5 reads its output (Lemma 3.63); and the physical model is where the two parties’ exact Pauli objects are compared (Lemmas 3.76 and 3.77).

[\(\bullet \bullet \bullet \) hard]

There are universal \(a{\gt}1\), \(0{\lt}b{\lt}1\) and, on each relevant padded local space, a complete projective measurement \(\widehat S_{g_X,g_Z}\) of pairs of individual-degree-\(d\) polynomials on \(\mathbb {F}_q^m\). Its evaluated \(X\) and \(Z\) marginals are consistent with the opposite expanded point measurements, with error at most \(\delta _S=a(md)^a(\varepsilon ^b+q^{-b}+2^{-bmd})\). Both register versions are required; no symmetric-strategy hypothesis is added. The Lean proves it for a legal projective strategy in any bipartite model in which the seeded CL test is sound in every ancilla extension by a unit vector, the pair measurements living in the padded model of Definition 3.62, for every padding size beyond a threshold; the statement above is its tensor-product instance.

Proof ▶

Lemma 3.66 supplies the pair \((G_A, G_B)\) with error \(\delta _{\mathrm{ld}}\); Lemmas 3.67–3.73 complete it to a projective measurement of pairs whose evaluated marginals track the opposite party’s expanded point measurements with error \(\delta _S = 2\sqrt{\Delta } + 2/q + 8\Delta \), \(\Delta = 2\delta _{\mathrm{ld}} + 2 \cdot 57676416\, \varepsilon \), in the same model, so no register has to be moved. The displayed functional form is proved with the error of Theorem 3.38, in Lemma 3.78, where \(\delta _{\mathrm{ld}}\) is the seeded soundness theorem’s error and the square root halves the exponent \(b\).

Comments.

The conclusion is formalized as the structure SimulPair (MIPRE/Background/QLD/Simul.lean): for a projective strategy of a bipartite model and an error \(\delta \), a model \(K\) into which the register model embeds (Definition 8.90) — a local isometry carrying the state to the state and keeping both units, along which every expectation of the expanded measurements transfers exactly — projective pair measurements \(S_A\), \(S_B\) in \(K\)’s algebras, with outcomes in pairs of individual-degree-\(d\) polynomials, and the two evaluated-marginal consistencies against the opposite party’s expanded point measurements carried to \(K\). The lemma is the existence of a SimulPair at error \(\delta _S\) in the padded model, along the inert embedding (exists_simulPair). A SimulPair moves along any further embedding (SimulPair.transport), and stage 5 uses it on the first cut of the physical model, along the embedding \(\iota _1\) of Definition 3.62 (CutSimul); the transport along \(j_1\) of the padded model’s SimulPair is one by definition. Two departures from the paper’s statement. The sandwiched joint estimate it also announces is not carried in the structure: stage 5 consumes only the two evaluated marginals, and the sandwich is what Lemma 3.72 passes through on the way to them. And the hypothesis is \(48md \leq q\) rather than the standing \(16md \leq q\), which is what makes the factor \(1 - 2\eta \) of Lemma 3.70 at least \(1/2\); as with \(16md {\gt} q\), the regime \(48md {\gt} q\) is absorbed in the assembly by enlarging the universal constant (Lemma 3.78).

Lemma 3.64 Admissible padded setup
✓
#

Assume \(m, d \geq 1\), \(m \mid q\) and \(4m \mid q\) — the last follows from \(m \mid q\) when \(4m \leq q\), in particular when \(48md \leq q\), the field having characteristic two — and let \((\psi , M_A, M_B)\) be a projective strategy for the Pauli basis test whose answers are in the format its questions prescribe (Lemma 3.57 makes this a normalization). Write a point of the padded space \(\mathbb {F}_q^{4m}\) as \(u = (x, z, \alpha , \beta , w)\) with \(2m - 2\) dummy coordinates \(w\). The padded strategy is a strategy for the seeded low individual degree test (Definition 3.13) at parameters \((q, 4m, d, 1)\), played on the expanded state \(\hat{\psi }\) of Lemma 3.61. Each player answers a point question \(u\) with the sandwich \(\widehat{M}^{X, x}_a \widehat{M}^{Z, z}_b \widehat{M}^{X, x}_a\) of their expanded point measurements, coarse-grained along \((a, b) \mapsto \alpha a + \beta b\) and extended by the identity to the combining coefficients’ register — a measurement that ignores \(w\) — and a line question with the padded line measurement of Lemma 3.61 at the canonical base point of the line, averaged over the raw directions that produce the question, its polynomial outcome resized to the format of the question. Every answer has the format the decider expects, and on an axis-parallel line the resizing loses nothing. Both measurements are POVMs; the dilation to a projective strategy is performed once, when the soundness theorem is applied (Lemma 3.66). Moving the base point of a line question to the sampled point along the line does not change the padded line measurement, so what the decider reads is the padded line measurement at the sample’s own data, coarse-grained by evaluation at the parameter of the sample’s point — the quantity Lemma 3.61 controls. The Lean constructs it for a projective strategy in any bipartite model, the padded strategy being a pair of families of POVMs in the players’ algebras of its register model; the statement above is its tensor-product instance.

Proof ▶

Definitions, and two invariances. The pasted line measurement is unchanged by moving the padded point along the padded line, because each block of the point either moves along its own subline or does not move at all (Lemma 3.60); and the resizing of an axis-line answer to degree \(d\) is invisible on the support of a legally supported strategy (Lemma 3.57), while the resizing of a diagonal answer to degree \(4md\) is a genuine padding. For the divisibility: \(q\) is a power of two, the size of a finite field of characteristic two, so its divisor \(m\) is one too, \(m = 2^j\), and \(4m = 2^{j+2}\) divides \(q = 2^n\) exactly when \(j + 2 \leq n\), that is when \(4m \leq q\); and \(4m \leq 48md\) for \(d \geq 1\).

Comments.

The ledger node dilates the line POVMs to projective measurements at this point, “using fresh local product ancillas”. The formalization keeps the strategy as a family of POVMs and dilates once, at the application of the soundness theorem (Lemma 3.66), on the padding register of Definition 3.62: on the padded model the Born rule sees only the reference entries of the dilated measurements, which are the padded strategy’s, so nothing has to be proved about the dilation beyond its compression (Lemma 8.77). The node’s “\(16md {\gt} q\)” clause belongs to the assembly of Theorem 3.38, where the trivial bound is used instead of the padded theorem (Lemma 3.78). The node also lists \(4m \mid q\) beside the regime, as though it were a further hypothesis; here it is derived, and the derivation is worth getting exactly right, because the obvious reading is false: \(m \mid q\) with \(q\) a power of two gives only that \(m\) is a power of two, and at \(m = q\) the conclusion fails. What gives \(4m \mid q\) is \(m \mid q\) together with \(4m \leq q\) (four_mul_dvd_card), which the regime \(48md \leq q\) supplies (four_mul_dvd_card_of_regime, MIPRE/Background/QLD/Regime.lean); stages 4 and 5 derive it there, and outside the regime the trivial bound is used and the divisibility is never needed. Nor is admissibility what the step uses — the oddness of the degree is for the self-dual basis — since a finite field of characteristic two has power-of-two size already (exists_card_eq_two_pow).

Lemma 3.65 All padded subtests succeed
✓
#

In the setting of Lemma 3.64, if the strategy wins the Pauli basis test with probability at least \(1 - \varepsilon \), \(\varepsilon \geq 0\), then the padded strategy fails the seeded test at \((q, 4m, d, 1)\) with probability at most

\begin{equation*} 5\, m^2 \delta _P(\varepsilon , md/q + 1/q) + 4\, \delta _Q(\varepsilon ) + \frac{md + 1}{q}\; , \end{equation*}

with \(\delta _P\) the error of Lemma 3.58 and \(\delta _Q\) that of Lemma 3.56; that is, \(\delta ' = C(\delta _{\mathrm{combine}} + \delta _Q + md/q)\) for a universal \(C\), with \(\delta _{\mathrm{combine}} = m^2 \delta _P\) as in Lemma 3.61. The bound covers the line–point, identical-point and identical-line subtests under their actual seeded distributions; line equality uses polynomial separation. The Lean proves it for a strategy in any bipartite model, the padded strategy’s value being computed on its register model; the statement above is its tensor-product instance.

Proof ▶

The failure probability is the average over the verifier’s samples of the conditional failure at the two questions the sample generates, and the sample splits into the ordered pair of types and the ambient triple (point, seed, raw direction), uniform on its own. The two cross pairs are always accepted. Each other pair is bounded by an agreement defect of two families of POVMs indexed by the ambient triple, averaged uniformly: a line type against a point by the agreement of the line measurement read at the sample’s point with the opposite party’s padded point measurement, which is exactly the padded consistency quantity of Lemma 3.61 once the strategy’s average over raw directions is composed with the sample’s; two points by the agreement of the two padded point measurements, which is the self-consistency item of Lemma 3.56 read through the compressions; and two identical lines by polynomial separation — two distinct outcomes of degree at most \(md + 1\) are told apart by reading both at a uniformly random parameter of the line, up to \((md + 1)/q\), and the parameter of the sample’s point is uniform on the line once the raw direction is fixed and the line is not degenerate, because translating the point along the line is a bijection of the sample space that fixes the line and shifts the parameter. The evaluated disagreement of the two line measurements is then bounded through the agreement triangle (the POVM version of the paper’s fact:triangle-for-simeq, with \(11\delta \) in place of \(9\delta \)) by the line–point and point–point defects. A degenerate diagonal direction has probability at most \(1/q\) and is paid for in full. Collecting the nine terms with weight \(1/9\) gives the constants stated.

Comments.

The decider’s acceptance is only implied by, not equal to, agreement of the relabelled answers: an ill-formatted answer that happens to agree is still rejected. The formalization uses the implication in the one direction it holds and asks it only of answers the strategy can produce (condFail_le_one_sub_sum_bornProb_map). The paper’s proof compares \(f_A(u)\) with \(f_B(u)\) at a uniformly random point \(u\) of the line; the formalization reads the sample’s own point instead, which makes the uniformity of the parameter a change of variables rather than a conditioning.

Suppose that the seeded CL test is sound (Definition 8.65) in every ancilla extension of the strategy’s model by a unit vector. Then, for every padding size beyond a threshold, the test’s soundness in the padded model of Definition 3.62, applied at \((q,4m,d,1)\), one codeword, to a projective dilation of the padded strategy of Lemma 3.64 on the two padding registers, supplies projective global polynomial measurements \(G_A\), \(G_B\) in the padded model’s two algebras, with both point-consistency estimates and the full-polynomial consistency. Their common error is \(\delta _{\mathrm{ld}} := \delta _{\mathrm{sim}}(q, 4m, d, 1, \delta _{\mathrm{GS}})\), the error of Lemma 3.34 at one codeword, where \(\delta _{\mathrm{GS}} = 5 m^2 \delta _P(\varepsilon , md/q + 1/q) + 4 \delta _Q(\varepsilon ) + (md+1)/q\) is the bound of Lemma 3.65; it has the form \(A(md)^A((\delta _{\mathrm{GS}})^b+q^{-b}+2^{-bmd})\) for universal \(A,b\). The point-consistency estimates hold against the padded point measurements of the original strategy — the expanded sandwich combinations, carried to the padded model by the inert embedding of the register model — so no dilation appears in the conclusion, and no further dilation of the projective outputs is required. The conclusion is packaged as the structure GlobalPair, which the rest of stage 4 is stated on. The same holds for the strategy with the players exchanged, in the model with the players exchanged, the test being symmetric in the players, and the two hold at any common padding size beyond both thresholds. The Lean proves it for a legal projective strategy in any bipartite model; the statement above is its tensor-product instance, where the hypothesis holds by Lemma 8.66.

Proof ▶

Lemma 3.65 is the value hypothesis of the seeded test for the padded strategy at \((q, 4m, d, 1)\). Each player’s family of POVMs is dilated to a projective family on that player’s padding register, both at one common size beyond the two thresholds (Lemma 8.77), with reference state \(t_0\) at the zero answer: the dilated families are a projective strategy of the padded model whose reference entries are the padded strategy’s, and since a Born probability of the padded model is that of the reference entries, it has the padded strategy’s value. The padded model is an ancilla extension of the strategy’s model up to associativity, so the test is sound in it (Definition 3.62); applied at one codeword, it returns projective low-degree measurements in the padded model’s algebras and the three consistency estimates against the dilation’s own point measurements, a tuple of one value being read as that value. In each inconsistency the dilation’s point measurement may then be replaced by the padded point measurement carried along the inert embedding: the two have the same reference entry, and the number does not change. Expectations of operators carried along that embedding are their expectations on the expanded state, so the conclusions of Lemmas 3.51 and 3.56 transfer to the padded model.

Comments.

The seeded test enters as a hypothesis on the model, its soundness in every ancilla extension by a unit vector, rather than as Theorem 3.19 applied to matrices; in the tensor-product model the hypothesis is Lemma 8.66, which rests on that theorem, and its error \(\delta _{\mathrm{sim}}\) is the one of the model statement, whose constant is \(40 a_1 4^{a_1}\) for the constant \(a_1\) of Theorem 3.19 (Lemma 3.34). The dilation is the one of Lemma 8.77, in the players’ algebras, so it needs neither finite dimension nor a square root. The second Naimark dilation of the paper’s proof, applied to the recovered polynomial measurement, is not needed: the soundness theorem already returns projective measurements (as the ledger’s challenge history of node 1.2.2.13 records). The recovered polynomials are functions on \(\mathbb {F}_q^{4m}\), while the padded point measurements read only the \(2m+2\) coordinates \((x, z, \alpha , \beta )\); the Schwartz–Zippel argument that the polynomials do not read the remaining dummy coordinates is Lemma 3.67.

Call an outcome \(g\) of a global measurement of Lemma 3.66 \(w\)-independent if no monomial of \(g\) involves a dummy coordinate: one of the \(2m - 2\) coordinates of \(\mathbb {F}_q^{4m}\) that the padded point measurements do not read. If the evaluated global measurement is \(\delta \)-consistent, on average over a uniform point, with a point measurement that does not read the dummy coordinates, then the state weight \(W\) of the outcomes that are not \(w\)-independent satisfies \((1 - 8md/q)\, W \leq 2\delta \); under the standing assumption \(16md \leq q\), \(W \leq 4\delta \). For the measurements of Lemma 3.66, on either side, \(W \leq 4\delta _{\mathrm{ld}}\). The bad set is empty for \(m = 1\). Retaining the other outcomes gives a projective submeasurement. The Lean proves it in any bipartite model in a unit state, for a global measurement in one player’s algebra against a point measurement in the other’s, and for a GlobalPair in any model; the statement above is its tensor-product instance.

Proof ▶

Resample the dummy coordinates: for independent uniform points \(u, u'\) let \(\mathrm{mix}(u, u')\) be \(u\) with its dummy coordinates replaced by those of \(u'\). The point measurement is the same at \(u\) and at \(\mathrm{mix}(u, u')\), and \((u, u') \mapsto (\mathrm{mix}(u, u'), \mathrm{mix}(u', u))\) is an involution of the pairs, so the consistency estimate holds at both points simultaneously. Adding the two, the operator \(P_u(g(u)) + P_u(g(\mathrm{mix}(u, u')))\) is at most \(2\, I\) when the two values agree and at most \(I\) when they differ, because two distinct elements of a POVM sum to at most the identity; no projectivity of the point measurement is used. Hence \(\sum _g \langle G_g \rangle \Pr [g(u) = g(\mathrm{mix}(u, u'))] \geq 1 - 2\delta \). For a \(w\)-independent outcome the probability is one. For an outcome that reads a dummy coordinate, \(g(u) - g(\mathrm{mix}(u, u'))\) is a nonzero polynomial in the \(8m\) coordinates of the pair, of individual degree at most \(d\) — its coefficient at a monomial of \(g\) involving a dummy coordinate survives — so by Lemma 3.111 the probability is at most \(8md/q\). The two bounds give \((1 - 8md/q)\, W \leq 2\delta \).

Comments.

The paper’s orthogonality step uses that the point measurements are projective, which the dilation’s are; the formalization works with the padded point measurements of the original strategy, which are POVMs, and replaces orthogonality by \(P_b + P_{b'} \leq I\) for \(b \neq b'\), valid for any POVM. Schwartz–Zippel is applied with individual degrees, on two copies of the \(4m\) coordinates; the formalization states Lemma 3.111 for any finite variable type (prob_agreeOn_le_individualDegree) and bridges the seeded test’s coefficient vectors to MvPolynomial (LowIndDegPoly.toMv, listed with Lemma 3.33, which uses it first). The outcomes are not relabelled: the projective submeasurement is the restriction of the global measurement to the \(w\)-independent outcomes, and its complement’s weight is the bound above.

Lemma 3.68 Ordered products with global outcome multipliers
✓
#

Let \((G_A, G_B)\) be the global measurements of Lemma 3.66, with error \(\delta \), in the padded model, whose state is \(\Phi \). For an outcome \(g\) put \(v_g = (G_{A,g} \otimes I)\Phi \), and for a padded point \(u = (x, z, \alpha , \beta , w)\) let \(B_u(c)\) sum Bob’s expanded ordered products \(\widehat M^Z_b \widehat M^X_a\), carried to the padded model by the inert embedding of the register model, over \(\alpha a + \beta b = c\). Then, on average over a uniform padded point, \(\sum _g \mathbb E_u \| v_g - (I\otimes B_u(g(u))) v_g\| ^2 \leq 2\delta + 2\kappa \), where \(\kappa = 57676416\, \varepsilon \) is the commutator weight of Lemma 3.56. The estimate holds for every outcome, with the product order reversed (\(\widehat M^X_a \widehat M^Z_b\)), and with the parties exchanged (\(G_B\) against Alice’s ordered products, in the padded model with the players exchanged); retaining a subset of outcomes only decreases the left-hand side. These ordered products need not be POVMs. The Lean proves it for a GlobalPair in any model into which the register model embeds; the statement above is its tensor-product instance.

Proof ▶

Write \(P_u(c) = \sum _{\alpha a + \beta b = c} \widehat M^Z_b \widehat M^X_a \widehat M^Z_b\) for the sandwich combination the consistency of Lemma 3.66 is stated against, and split \(I- B_u(c) = (I- P_u(c)) + (P_u(c) - B_u(c))\). Since \(0 \leq P_u(c) \leq I\), \((I- P_u(c))^2 \leq I- P_u(c)\), so the first part is bounded by \(\sum _g \mathbb E_u \langle G_{A,g} \otimes (I- P_u(g(u))) \rangle \leq \delta \). For the second, group the outcomes by their value \(c = g(u)\) and drop the projector \(\sum _{g(u) = c} G_{A,g} \leq I\): what remains is \(\mathbb E_u \sum _c \| (I\otimes (P_u(c) - B_u(c)))\Phi \| ^2\), the squared norms of the fibre sums, along \((a, b) \mapsto \alpha a + \beta b\), of the deviations \(D(a, b) = \widehat M^Z_b \widehat M^X_a \widehat M^Z_b - \widehat M^Z_b \widehat M^X_a\), which sum to zero over \((a, b)\). Parseval over \(\mathbb {F}_q\) turns the average over \((\alpha , \beta )\) of the fibre sums into \((1 - 1/q) \sum _{a,b} \| (I\otimes D(a, b))\Phi \| ^2\), with no factor \(q\), and each deviation is a contraction of a commutator: \(D(a, b) = \widehat M^Z_b [\widehat M^X_a, \widehat M^Z_b]\) for this order and \(-(I- \widehat M^Z_b)[\widehat M^X_a, \widehat M^Z_b]\) for the other. The commutator weight is the one of Lemma 3.56, read in the padded model, where operators carried along the embedding have their expanded-state norms. Bob’s version applies the same argument with the players exchanged.

Comments.

The paper restricts to \(w\)-independent outcomes and goes through the projective joint measurement of Lemma 3.56; the formalization works with the sandwich combination itself, which is a POVM and needs no projectivity, and proves the estimate for all outcomes, so Lemma 3.67 is not needed here. The two orders are one abstract theorem (sum_snorm_sq_ordComb_le), which takes the identity \(\sum _{a, b} \mathrm{ord}(a, b) = I\) and the contraction bound as hypotheses. The error is \(2\delta _{\mathrm{ld}} + 2 \cdot 57676416\, \varepsilon \), linear in both.

Let \((G_A, G_B)\) be the global measurements of Lemma 3.66, with error \(\delta \), in the padded model, with state \(\Phi \), and let \(\Delta = 2\delta + 2 \cdot 57676416\, \varepsilon \) be the bound of Lemma 3.68 for the order \(\widehat M^X_a \widehat M^Z_b\). Call an outcome \(g\) linear in \((\alpha , \beta )\) if every monomial of \(g\) has exponents \((1, 0)\) or \((0, 1)\) on the two combining coordinates, that is \(g = \alpha g_1(x, z, w) + \beta g_2(x, z, w)\), and let \(L\) be the set of such outcomes. Then, with \(\eta = (1 + 2d + 4md)/q\),

\[ (1 - 2\eta ) \sum _{g \notin L} \langle G_{A,g} \otimes I\rangle _\Phi \leq 2\Delta , \]

and likewise for \(G_B\). Under \(16md \leq q\) this is \(O(\Delta )\), linear in \(\delta \) and in \(\varepsilon \); the sum over outcomes introduces no factor \(q^2\). The Lean proves it for a global measurement in any bipartite model in a unit state, and for a GlobalPair in any model; the statement above is its tensor-product instance.

Proof ▶

Fix \(g \notin L\), write \(S = G_{A,g}\), and let \(B_u(c)\) be the combination of the ordered products \(\widehat M^X_a \widehat M^Z_b\) along \(\alpha a + \beta b = c\), for the padded point \(u = (x, z, \alpha , \beta , w)\). Since \((S \otimes I)\Phi = (S \otimes B_u(g(u)))\Phi + (S \otimes (I- B_u(g(u))))\Phi \),

\[ \langle S \otimes I\rangle \leq 2\, \| (S \otimes B_u(g(u)))\Phi \| ^2 + 2\, \| (S \otimes (I- B_u(g(u))))\Phi \| ^2 \]

for every \(u\). Averaging over \(u\) and summing over \(g \notin L\), the second terms total at most \(2\Delta \), so it suffices to show \(\mathbb E_u \| (S \otimes B_u(g(u)))\Phi \| ^2 \leq \eta \langle S \otimes I\rangle \) for each \(g \notin L\).

Read the uniform padded point as a uniform base point \(u_0\) with a fresh uniform pair \((\alpha , \beta )\) substituted in the two combining coordinates. The blocks \(x, z\) are those of \(u_0\), and \(g(u) = p_{u_0}(\alpha , \beta )\) for the bivariate polynomial \(p_{u_0} = \sum _{i,j} g_{ij}(u_0)\, \alpha ^i \beta ^j\), whose coefficients \(g_{ij}\) are polynomials of individual degree at most \(d\) in the remaining coordinates. As \(g \notin L\), some \(g_{i_0 j_0}\) with \((i_0, j_0) \notin \{ (1, 0), (0, 1)\} \) is a nonzero polynomial in \(4m\) variables, so by Schwartz–Zippel it vanishes at a uniform \(u_0\) with probability at most \(4md/q\); at such a base point the average over \((\alpha , \beta )\) is bounded by \(\langle S \otimes I\rangle \), each \(B_u(c)\) being a contraction. At every other base point, \(p_{u_0}\) differs from every linear form \(\alpha a + \beta b\). The pairs with \(\beta = 0\) contribute at most \(\langle S \otimes I\rangle / q\). For \(\beta \neq 0\) the fibre \(\{ \alpha a + \beta b = c\} \) has one \(b\) per \(a\), and the \(\widehat M^X_a\) are orthogonal projectors, so \(\| (S \otimes B_u(c))\Phi \| ^2 = \sum _{\alpha a + \beta b = c} W(a, b)\) with \(W(a, b) = \| (S \otimes \widehat M^X_a \widehat M^Z_b)\Phi \| ^2\), weights that do not depend on \((\alpha , \beta )\) and sum to \(\langle S \otimes I\rangle \). Exchanging the two sums, each \(W(a, b)\) is counted with the probability that \(p_{u_0}(\alpha , \beta ) = \alpha a + \beta b\) at a uniform \((\alpha , \beta )\), which is at most \(2d/q\) by Schwartz–Zippel in two variables. Altogether \(\eta = 1/q + 2d/q + 4md/q\). Bob’s version applies the same argument with the players exchanged.

Comments.

The paper (eq:qld-g-prime-bound) states the bound as \(O((\delta _{\mathrm{ld}} + \delta _Q)^{1/2} + md/q)\) for the \(w\)-independent outcomes, and remarks that the quadratic expansion used here supports the linear bound; the formalization proves the linear bound, for all outcomes and with an explicit constant, so Lemma 3.67 is not needed here. The paper goes through the projective joint measurement of Lemma 3.56 and drops the \(\beta = 0\) pairs at a cost of \(1/q\); here the products estimate is used directly and the \(\beta = 0\) pairs are bounded by the contraction property. The two Schwartz–Zippel applications are card_eval_eq_zero_le (a nonzero coefficient vector in \(4m\) variables, at \(4md/q\)) and sum_agree_two_le (two distinct bivariate coefficient vectors, at \(2d/q\)), both through the bridge LowIndDegPoly.toMv. The coefficient vectors are LowIndDegPoly.coef, the coefficient of a monomial pattern on a set of coordinates as a polynomial in the others (eval_eq_sum_coef). The bridge, the first estimate and the patterns are in MIPRE/Background/LIDT/Coefficients.lean, below the seeded test, and are listed with Lemma 3.33.

Lemma 3.70 Separating the two point variables
✓

Let \((G_A, G_B)\), \(\Phi \) and \(\Delta \) be as in Lemma 3.69, where now \(\Delta \) bounds the estimate of Lemma 3.68 for both product orders. Call an outcome \(g\) good if \(g = \alpha g_X(x) + \beta g_Z(z)\) with \(g_X\) reading only the \(x\) block and \(g_Z\) only the \(z\) block: every monomial of \(g\) has exponents \((1, 0)\) on \((\alpha , \beta )\) and no other nonzero exponent outside the \(x\) block, or exponents \((0, 1)\) and no other nonzero exponent outside the \(z\) block. Let \(\mathrm{Good}\) be the set of good outcomes. Then, with \(\eta = (2 + 2d + 8md)/q\),

\[ (1 - 2\eta ) \sum _{g \notin \mathrm{Good}} \langle G_{A,g} \otimes I\rangle _\Phi \leq 4\Delta , \]

and likewise for \(G_B\). In particular a good outcome reads no dummy coordinate, and the good outcomes are in bijection with the pairs \((g_X, g_Z)\) of polynomials of individual degree at most \(d\) on \(\mathbb {F}_q^m\). The Lean proves it for a global measurement in any bipartite model in a unit state, and for a GlobalPair in any model; the statement above is its tensor-product instance.

Proof ▶

An outcome that is not good is not linear in \((\alpha , \beta )\), or is linear, \(g = \alpha g_1 + \beta g_2\), with \(g_2\) reading a coordinate outside the \(z\) block, or with \(g_1\) reading a coordinate outside the \(x\) block. The first two kinds are handled against the order \(\widehat M^X_a \widehat M^Z_b\) and the third against \(\widehat M^Z_b \widehat M^X_a\), each by the assembly of Lemma 3.69: it suffices to show \(\mathbb E_u \| (S \otimes B_u(g(u)))\Phi \| ^2 \leq \eta \langle S \otimes I\rangle \) for \(S = G_{A,g}\) and each bad \(g\), the non-linear ones being Lemma 3.69 itself. Since \(1 - 2\eta \) may be taken nonnegative, the three weights add.

Fix \(g = \alpha g_1 + \beta g_2\) linear with \(g_2\) reading a coordinate outside the \(z\) block, and a base point \(u_0\); then \(g(u_0[\alpha , \beta ]) = \alpha g_1(u_0) + \beta g_2(u_0)\). The fibre \(\{ \alpha a + \beta b = \alpha g_1(u_0) + \beta g_2(u_0)\} \) always contains the diagonal pair \((g_1(u_0), g_2(u_0))\), and contains any other pair for at most \(q\) of the \(q^2\) values of \((\alpha , \beta )\), the equation being a nontrivial linear form in \((\alpha , \beta )\). With the Pythagoras and weight bookkeeping of Lemma 3.69, the average over \((\alpha , \beta )\) is at most \(2/q \cdot \langle S \otimes I\rangle \) plus the diagonal weight \(W(g_1(u_0), g_2(u_0)) = \langle S \otimes \widehat M^Z_{g_2} \widehat M^X_{g_1} \widehat M^Z_{g_2} \rangle \leq \langle S \otimes \widehat M^Z_{g_2(u_0)} \rangle \). Read the uniform \(u_0\) as a uniform \(z\) block with the other coordinates uniform and independent. For a fixed \(z\) block, \(u \mapsto g_2(u)\) is a polynomial in the other coordinates; as \(g_2\) reads a coordinate outside the \(z\) block, some coefficient of a non-constant monomial of this polynomial is a nonzero polynomial in the \(z\) block, which vanishes for at most a \(4md/q\) fraction of the \(z\) blocks by Schwartz–Zippel, and where it does not vanish the polynomial is non-constant and takes each value \(b\) with probability at most \(4md/q\), again by Schwartz–Zippel. So \(\mathbb E_{u_0} \langle S \otimes \widehat M^Z_{g_2(u_0)}(z) \rangle \leq \sum _b \mathbb E_z \Pr [g_2 = b \mid z] \langle S \otimes \widehat M^Z_b(z) \rangle \leq 8md/q \cdot \langle S \otimes I\rangle \), using \(\sum _b \widehat M^Z_b(z) = I\). Altogether \(\eta \geq 2/q + 8md/q\). For \(g_1\) reading a coordinate outside the \(x\) block, exchange the roles of \((\widehat M^X, a, \alpha )\) and \((\widehat M^Z, b, \beta )\): the order \(\widehat M^Z_b \widehat M^X_a\) along \((\alpha , \beta )\) is the order \(\widehat M^X_a \widehat M^Z_b\) along \((\beta , \alpha )\) with the two families exchanged, and the base point is read as a uniform \(x\) block. Bob’s version applies the same argument with the players exchanged.

Comments.

The paper states the excluded weight as \(\delta _G = O((\delta _{\mathrm{ld}} + \delta _Q)^{1/2} + md/q)\); the formalization proves the linear bound, as for Lemma 3.69, and with its own constants: both Schwartz–Zippel applications are over all \(4m\) coordinates (card_eval_eq_zero_le), where the paper counts \(2m\) or \(2m + 2\). The good outcomes exclude the dummy coordinates as well, so this lemma subsumes Lemma 3.67 for the purposes of stage 4c. The conditioning on a block is one generic statement (sum_uniform_bornProb_readOn_le), for an operator family reading only the coordinates in a set \(T\) and a polynomial reading a coordinate outside \(T\), with LowIndDegPoly.restrictOff the polynomial in the other coordinates obtained by fixing those in \(T\); the assembly is one generic statement (sum_bad_mass_le_of_avg), which Lemma 3.69 could also use.

Relabel each good outcome \(g = \alpha g_X(x) + \beta g_Z(z)\) of the global measurement by the pair \((g_X, g_Z)\) of polynomials of individual degree at most \(d\) on \(\mathbb {F}_q^m\), and every other outcome by the fixed pair \((0, 0)\). The result is a complete projective measurement of pairs, and the operator it assigns to \((0, 0)\) beyond the good outcomes with that pair is the paper’s complement \(R\), of weight at most \(\delta _G\) by Lemma 3.70. Consequently each consistency estimate stated for the good outcomes holds for the completed measurement with its error increased by \(\delta _G\). The Lean proves it for a global measurement in any bipartite model.

Proof ▶

The relabelling is a map on outcomes, so the completed measurement is the coarse-graining of the global measurement by it; a coarse-graining of a projective measurement is projective, and complete because the original is. The pair of a good outcome is read off its two coefficient polynomials: \(g_X\) is the coefficient of \(\alpha \), which reads only the \(x\) block, viewed as a polynomial in \(m\) variables, and \(g_Z\) the coefficient of \(\beta \) on the \(z\) block (blockPoly, whose defining property is that a coefficient vector supported on a block evaluates through that block). Nothing is lost: for a good outcome \(g_X(x) = g_1(u)\) and \(g_Z(z) = g_2(u)\) at every padded point \(u\).

Let \(\Delta \) be the bound of Lemma 3.68 and \(\delta _G\) the weight of the outcomes that are not of the separated form. Then the evaluated \(Z\) marginal of the completed pair measurement is consistent with Bob’s expanded \((\mathtt{Point}, Z)\) measurement at a uniform \(z \in \mathbb {F}_q^m\), with error at most \(2\sqrt{\Delta } + 2/q + \delta _G\), and likewise the \(X\) marginal with the \(X\) measurement at a uniform \(x\). The Lean proves it in any bipartite model in a unit state; the statement above is its tensor-product instance.

Proof ▶

Write \(B_u(c)\) for the combination of the ordered products \(\widehat M^X_a \widehat M^Z_b\) along \(\alpha a + \beta b = c\). From \(\sum _g \mathbb E_u \| (G_g \otimes (I- B_u(g(u))))\Phi \| ^2 \leq \Delta \) and \(\| (G_g \otimes I)\Phi \| \leq \| (G_g \otimes B_u)\Phi \| + \| (G_g \otimes (I- B_u))\Phi \| \), one Cauchy–Schwarz over the pairs \((u, g)\) gives \(\sum _g \mathbb E_u \| (G_g \otimes B_u(g(u)))\Phi \| ^2 \geq 1 - 2\sqrt{\Delta }\). For a good outcome, the fibre analysis of Lemma 3.70 bounds the left-hand side above by \(2/q \cdot \langle G_g \otimes I\rangle \) plus the diagonal weight \(\mathbb E_{u_0} \langle G_g \otimes \widehat M^Z_{g_Z(z)}(z)\rangle \), and the outcomes that are not good contribute at most \(\delta _G\) in total. The \(z\) block of a uniform padded point is uniform, so what remains is exactly the \(Z\) marginal, and rearranging gives the bound. The \(X\) marginal is the same computation from the other product order. No complex intermediate appears: every quantity estimated here is a squared norm or a Born probability of a positive operator.

Collect the three errors of stage 4b–4c as explicit functions of the error \(\delta \) of Lemma 3.66 and the failure \(\varepsilon \) of the strategy: \(\Delta = 2\delta + 2 \cdot 57676416\, \varepsilon \) is the ordered-products bound, \(\delta _G = 8\Delta \) the weight of the outcomes that are not of the separated form, and \(\delta _S = 2\sqrt{\Delta } + 2/q + \delta _G\) the marginal error. The bound \(\delta _G = 8\Delta \) holds under \(48md \leq q\), where the factor \(1 - 2\eta \) of Lemma 3.70 is at least \(1/2\). Both register versions are obtained by running the same estimates in the model with the players exchanged; no symmetry of the strategy is assumed. The marginal consistencies hold in the model of the global measurements, against the expanded point measurements carried there by the embedding of the register model, which is the form Lemma 3.63 states them in, so no register is moved. The Lean proves it for a GlobalPair in any model into which the register model embeds; the statement above is its tensor-product instance.

Proof ▶

For the arithmetic: \(2 + 2d + 8md \leq 12md\) for \(m, d \geq 1\), so \(48md \leq q\) gives \(\eta = (2 + 2d + 8md)/q \leq 1/4\) and \(1 - 2\eta \geq 1/2\); since the weight is nonnegative, Lemma 3.70 then reads \(\delta _G \leq 8\Delta \). The expanded point measurements enter carried along the embedding (liftPt), whose Born probabilities are their expanded-state ones. Bob’s versions are Alice’s applied in the model with the players exchanged, which the inconsistency and the Born rule exchange.

Separation and the swap isometry

[\(\bullet \bullet \) medium]

Let \((S_A, S_B)\) be a simultaneous pair measurement of error \(\delta _S\) (Lemma 3.63) for a strategy of failure \(\varepsilon \), in a model with state \(\Phi \) into which the register model embeds. For \(W \in \{ X, Z\} \) and on average over a uniform \(u \in \mathbb {F}_q^m\), with \(\widehat S^W_a\) the evaluated \(W\) marginal,

\begin{equation*} 1 - \mathbb E_u \sum _a \bigl\langle \widehat{S}^W_a \otimes \widehat{M}^{(\mathtt{Point}, W), u}_{a} \bigr\rangle _\Phi \leq \delta _S , \end{equation*}

the opposite party’s measurement being the one on the right, and

\begin{equation*} \mathbb E_u \sum _a \bigl\| \bigl( \widehat{S}^W_a ( I- \widehat{M}^{(\mathtt{Point}, W), u}_{a} ) \otimes I\bigr) \Phi \bigr\| ^2 \leq 4 \delta _S + 344\, \varepsilon , \end{equation*}

in which both factors sit on the same party, the point measurements being carried to that model by the embedding. All symmetric equivalents hold. The Lean proves it for a SimulPair of a projective strategy in any bipartite model; the statement above is its tensor-product instance.

Proof ▶

The first display is the consistency of Lemma 3.63 read as an agreement: for two POVMs with the same outcomes on a unit state, the inconsistency is one minus the probability that they agree.

For the second, write \(T = \widehat S^W_a\) and \(A = \widehat M^{(\mathtt{Point}, W), u}_a\) on Alice’s register and \(B\) for the same point measurement on Bob’s; all three are projections, \(T\) because the marginal of a projective measurement is projective, \(A\) and \(B\) because the expanded point measurements are. Since operators on opposite parties commute and \(B^2 = B\),

\[ (T \otimes I)(I- A \otimes I) = (I- I\otimes B)\, (T \otimes I- I\otimes B) - (T \otimes I)(A \otimes I- I\otimes B) , \]

an identity whose two right-hand factors in front, \(I- I\otimes B\) and \(T \otimes I\), are contractions. So the same-party deviation is at most the sum of two cross-party ones: the first is the deviation of the marginal from the opposite party’s point measurement, which the first display bounds by \(2\delta _S\) after summing, and the second is the self-consistency of the expanded point measurements, \(172\varepsilon \) by Lemma 3.51. Squaring costs a factor two on each. The self-consistency is stated at the verifier’s content and used at a uniform point; the content’s \(W\) block is uniform, and it transfers to the model of the pair measurement because operators carried along the embedding keep their expanded-state expectations.

Comments.

The paper absorbs the \(\varepsilon \) of the second item into \(\delta _S\); here both constants are explicit, and the second item’s is \(4\delta _S + 344\varepsilon \). Both items are stated for the evaluated marginal at an outcome \(a \in \mathbb {F}_q\) rather than per polynomial \(g\): the two are the same sum, grouped differently, and the outcome form is what the Pauli construction consumes.

[\(\bullet \bullet \bullet \) hard]

Lemma 3.75 Exact Pauli operators
✓
#

From the simultaneous measurement one constructs, for \(W \in \{ X, Z\} \), measurements and binary observables on the expanded space which satisfy the Pauli group relations exactly — linearity in the argument, and \(XZ\) commutation or anticommutation with the phase \((-1)^{\operatorname {tr}(e e' (\tilde{u} \cdot \tilde{v}))}\) at the two combining field elements — and which are \(\delta \)-close to the strategy’s \((\mathtt{Point}, W)\) measurements on the expanded state. The Lean proves it for a simultaneous pair measurement of a projective strategy in any bipartite model; the closeness is stated on the physical model of Definition 3.62, for the pair measurement on its first cut and the strategy’s measurements with the registers inert. The statement above is its tensor-product instance.

Proof ▶

Exactness of the linearity comes from projectivity of the simultaneous measurement together with the group law of the Pauli basis; Theorem 3.55 is not used here. The remaining ingredient bounds the mass the simultaneous measurement places on non-multilinear outcomes, via Lemma 3.111 applied in the correct direction — distinct polynomials of degree \(md\) agree on at most an \(md/q\) fraction, so it is the agreement and not the disagreement that the bound controls (Remark 3.80).

Comments.

Both halves are formalized, for a simultaneous pair measurement (Lemma 3.63) of a strategy of failure \(\varepsilon \), and both are about the same objects: \(\tilde{M}^{W,\mathrm{ind}_m(u)}\) and \(\tilde{W}^e(\tilde{u})\) built from that measurement, on that party’s registers. The closeness constant is explicit,

\begin{equation*} \delta \; =\; \delta _S + 2\Bigl( \delta _S + \sqrt{688\, \varepsilon } + \frac{md}{q} \Bigr) , \end{equation*}

which is the \(O(\delta _S + \sqrt{\varepsilon } + md/q)\) the paper absorbs into \(\delta _S\). The rest of this comment records how it was reached, because two of the obstacles it used to list turned out not to exist.

Of the approximate half’s ingredients, three were in place first: the agreement form of Schwartz–Zippel against every multilinear polynomial at once, the aggregation that turns it into a bound on the mass at non-multilinear outcomes, and the substitution error of two families agreeing off that mass (MIPRE/Background/QLD/NonMultilinear.lean). A fourth is now too: the strategy’s \((\mathtt{Point}, W)\) measurement and the low-degree reading of its \((\mathtt{Pauli}, W)\) answer are close on one party, at \(688\, \varepsilon \) (sum_normSq_point_sub_pauli_le), which is what lets the point be sampled independently of the operators. The two inputs are cross-party items of Lemma 3.46, and they share Alice’s point measurement, so one triangle inequality removes it. A fifth carries such a statement from the strategy’s state to the expanded one: every hatted measurement is a convolution \(\widehat X_c = \sum _{a + b = c} X_a \otimes T_b\) with the ancilla’s Weyl measurement, and for a projective \(T\) the cross terms of \(\widehat X^\dagger \widehat X\) vanish, so the common ancilla factor drops out exactly: \(\sum _c \| (I\otimes \widehat X_c) \widehat\psi \| ^2 = \sum _a \| (I\otimes X_a) \psi \| ^2\) (sum_normSq_stateVecB_conv_eq). The two together put the closeness on the expanded state with the same constant (sum_normSq_hat_point_sub_pauli_le). The aggregation has now been applied to the simultaneous measurement’s outcomes, in MIPRE/Background/QLD/Multilinear.lean, and the bound the appendix’s repair turns on is formalized: with \(\widehat S^W\) a simultaneous pair measurement of error \(\delta _S\) for a strategy of failure \(\varepsilon \),

\begin{equation*} \sum _{g \text{ not multilinear}} \bigl\langle \widehat S^W_g \otimes I\bigr\rangle _\Phi \; \leq \; \delta _S + \sqrt{688\, \varepsilon } + \frac{md}{q} \end{equation*}

(SimulPair.sum_bornProb_not_isML_le). Its three inputs are the point-independent family indexed by cube data (hatPauli, the strategy’s \((\mathtt{Pauli}, W)\) measurement convolved with the ancilla’s Weyl measurement, projective and independent of the sampled point, whose reading at a point is the hatted Pauli measurement there — hatPauli_map); the Cauchy–Schwarz that substitutes it for the point measurement at cost \(\sqrt{688\, \varepsilon }\) (abs_sum_weighted_bornProb_le, SimulPair.sum_bornProb_hatPauli_ge); and Lemma 3.111 per non-multilinear outcome, uniformly in the cube datum (sum_uniform_agree_ldEnc_le). The marginal is taken indexed by polynomials rather than by their value at the point (polyMarg), which is what makes the outcome operator independent of the point that Schwartz–Zippel then samples.

And the agreement itself is formalized: expanding \(\tilde{M}^{W,\mathrm{ind}_m(u)}_a\) and contracting the generalized Pauli against the strategy’s point measurement turns the first item’s left-hand side into the outcome sum with the label \(\mathrm{Coded}(g) \cdot \mathrm{ind}_m(u)\), and

\begin{equation*} \mathbb E_u \sum _g \bigl\langle \widehat S^W_g \otimes \widehat M^{(\mathtt{Point}, W), u}_{\mathrm{Coded}(g) \cdot \mathrm{ind}_m(u)} \bigr\rangle _\Phi \; \geq \; 1 - \delta _S - 2\Bigl( \delta _S + \sqrt{688\, \varepsilon } + \frac{md}{q} \Bigr) \end{equation*}

(SimulPair.sum_bornProb_cubeData_ge), from the helper’s agreement read by polynomial (SimulPair.sum_bornProb_polyMarg_ge) and the mass bound, through sum_sub_le_of_eq_on.

One outstanding ingredient turned out not to be needed. The chain was stated with the good set “\(g\) is multilinear”, and then agreement of the two labels on it is uniqueness of multilinear interpolation — an independent fact about MvPolynomial that sum_sub_le_of_eq_on took as a hypothesis. Taking the good set to be “\(g\) is the low-degree encoding of its own cube data” (IsInterp) removes it: there the two labels agree by definition (dotF_cubeData_indVec), and off it \(g\) differs from the encoding of every cube datum (ne_ldEnc_of_not_isInterp), which is exactly the hypothesis Schwartz–Zippel wants, uniformly in the datum. Uniqueness of multilinear interpolation would say the two sets coincide; neither inclusion is used.

Formalized, unconditionally, in MIPRE/Background/QLD/ExactPauli.lean: the two marginals of a projective pair measurement (sCoarse, projective by IsPVM.coarse), the measurement \(\tilde{M}^{W,\tilde{u}}_a\) (mTilde) and the observable \(\tilde{W}^e(\tilde{u})\) (wTilde), and the identity everything rests on: wTilde_eq says the observable factorizes as a signed sum of the pair measurement tensor a bare generalized Pauli. Self-adjointness, squaring to the identity, and the twisted commutation relation are then three lines (wTilde_conjTranspose, wTilde_mul_self, wTilde_mul_wTilde), and linearity in the argument a fourth (wTilde_mul_add: both tensor factors are additive, the sign because the pairing is and the generalized Pauli by the Weyl family’s group law), with IsPVM and MIPRE.Weyl.IsWeylFamily the only hypotheses — no game, no error term, and no appeal to Theorem 3.55, exactly as the proof above says. All four are instantiated at a simultaneous pair measurement in MIPRE/Background/QLD/MTilde.lean (SimulPair.wTildeAt and its relations), which is what puts them on the same objects as the closeness below.

The phase is the general one. The pinned paper’s display for the commutation relation used to split into \(e \neq e'\), claiming exact commutation, and \(e = e'\), carrying a phase. That split is false: self-duality gives \(\operatorname {tr}(e_j e_{j'}) = \delta _{j j'}\), but \(\operatorname {tr}(e_j e_{j'} c)\) need not vanish for \(c\) outside \(\mathbb {F}_2\), and the exponent here is \(e e' (\tilde{u} \cdot \tilde{v})\) with an arbitrary field element in the middle. The paper now displays the general phase, and wTilde_mul_wTilde is that phase: no case split, and no reference to a basis, since the relation holds for every pair of field elements.

The critical finding is discharged where it can be, in MIPRE/Background/QLD/NonMultilinear.lean. prob_agree_ldEnc_le_of_not_multilinear is Lemma 3.111 in the agreement direction and uniformly in the interpolated data, which is what the sum over \(\mathbb {F}_q^M\) needs; nonMultilinear_mass_le is the aggregation that turns it into the bound on the mass the simultaneous measurement places on non-multilinear outcomes; and sum_sub_le_of_eq_on is the substitution error given that mass, taking agreement on the good set as a hypothesis — which is why the choice of good set below matters.

And it is read as a closeness of two measurements, which is how the paper states item 1. \(\tilde{M}^{W,\mathrm{ind}_m(u)}\) is a projective measurement (isPVM_mTildeAt, through sTensor_mul, so through projectivity of the simultaneous measurement and nothing else), and

\begin{equation*} \mathbb E_u \sum _a \bigl\langle \tilde{M}^{W,\mathrm{ind}_m(u)}_a \otimes M^{(\mathtt{Point}, W), u}_a \bigr\rangle \; \geq \; 1 - \delta \end{equation*}

(SimulPair.sum_bornProb_mTilde_ge, and SimulPair.inconsistency_mTilde_le for the \(\simeq _\delta \) form). The two are the same statement grouped differently: expanding \(\tilde{M}\) and contracting the generalized Pauli against the point measurement is sum_kron_syn_eq_hatMats, one characteristic-two shift.

The second entangled pair is not needed here. The paper’s expanded state \(|\hat\psi \rangle = |\psi \rangle _{\textsc{A}\textsc{B}} \otimes |\textsc{EPR}\rangle _{\textsc{A}'\textsc{A}''} \otimes |\textsc{EPR}\rangle _{\textsc{B}'\textsc{B}''}\) carries two entangled pairs, each local to one party, and is read along two cuts — \(\textsc{A}\textsc{A}' \mid \textsc{B}\textsc{A}''\) for one orientation of Lemma 3.63 and \(\textsc{B}\textsc{B}' \mid \textsc{A}\textsc{B}''\) for the other — while the register model of the strategy’s model has one pair, along one such cut. That is all Lemmas 3.63 and 3.74 need. Writing \(\tilde{M}^{W,\tilde{u}} = \sum _g \widehat S^W_g \otimes \tau ^W_{\mathrm{Coded}(g) \cdot \tilde{u} - a}(\tilde{u})\) as one operator wants \(\widehat S^W\) and the generalized Pauli on the disjoint registers \(\textsc{A}\textsc{A}'\) and \(\textsc{A}''\), and needs no new pair: the register \(\textsc{A}''\) is already there, on the far side of the cut. In the formalization \(\widehat S^W\) is an operator of the first player of the first cut, on \((E_A, A')\), and \(\tilde{M}\) one of the first player of the physical model, on \((A'', E_A, A')\) with the Pauli register outermost (Definition 3.62). The first cut and the physical model are two readings of one state model, so every Born probability is read on the physical model by the reading lemmas (phys_bornProb_compHom_smulKron), the strategy’s own measurements entering with the registers inert (physInert). No second pair, no transport between cuts, and no new estimate.

A ledger discrepancy worth recording. Node \(1.2.2.15\) declares its dependencies as \(\{ 1.2.2.13, 1.2.2.14, 1.2.2.7\} \) — the last being Theorem 3.55 — and does not declare \(1.2.2.4\), Lemma 3.46. The paper’s current proof of this step is the other way round: it does not use exact linearity at all, and it does use the win implications, at enu:qld-pauli-basis-cons and enu:qld-cons. The uses list above follows the paper. reports/qld-stage5-blueprint-repairs.md records it.

[\(\bullet \bullet \bullet \) hard]

Lemma 3.76 Self-consistency of the exact Pauli observables
✓
#

For every basis \(W\), every \(e \in \mathbb {F}_q\) and every probe \(\tilde{u} \in \mathbb {F}_q^{M}\), \(M = 2^m\), the exact Pauli observable of Lemma 3.75 on one party agrees with the same observable on the other:

\begin{equation*} \left\| {\Bigl( \bigl( \tilde{W}^e(\tilde{u}) \bigr)_{\textsc{A}\textsc{A}' \textsc{A}''} - \bigl( \tilde{W}^e(\tilde{u}) \bigr)_{\textsc{B}\textsc{B}' \textsc{B}''} \Bigr) |\widehat{\psi }\rangle } \right\| ^2 \; \leq \; 72 \Bigl( 10 \delta _S + 860 \varepsilon + 2\sqrt{172 \varepsilon } + \frac{md}{q} \Bigr) \; =\; O\Bigl( \delta _S + \sqrt{\varepsilon } + \frac{md}{q} \Bigr) , \end{equation*}

which is the paper’s \(\bigl( \tilde{W}^e(\tilde{u}) \bigr)_{\textsc{A}\textsc{A}' \textsc{A}''} \approx _{\delta _{qld}} \bigl( \tilde{W}^e(\tilde{u}) \bigr)_{\textsc{B}\textsc{B}' \textsc{B}''}\) once the \(O(\sqrt\varepsilon )\) and \(O(md/q)\) terms are absorbed into \(\delta _S\), as the paper says it does. Two departures from the paper’s phrasing, both in the direction of a stronger statement: the bound holds at every probe rather than on average over a uniform one — the chain never averages over the probe, only over the sampled point — and the constant is explicit. The Lean proves it for the two cuts of one physical state (MirrorSimul) of a projective strategy in any bipartite model, \(|\widehat\psi \rangle \) being the state of the physical model of Definition 3.62; the two cuts exist for every legal projective strategy in the regime \(48md \leq q\) of a model in which the seeded CL test is sound in every ancilla extension by a unit vector. The statement above is its tensor-product instance.

Proof ▶

The paper’s “pulling” chain. Right-multiplying \(\tilde{M}^{W,\tilde{u}}_a\) on one party by the near-identity \(\sum _g (\widehat S^W_g)_{\textsc{A}\textsc{A}'} \otimes (\widehat M^{(\mathtt{Point},W),u}_{g(u)})_{\textsc{B}\textsc{A}''}\) of Lemma 3.74 and expanding both definitions rewrites it as a sum over pairs \((g, h)\) with \((\mathrm{Coded}(g) - h) \cdot \tilde{u} = a\) of \((\widehat S^W_g) \otimes (\tau ^W_h) \otimes (M^{(\mathtt{Point},W),u}_{(g - g_h)(u)})\); the self-consistency of the point measurements (Lemma 3.46) then moves the last factor across, and undoing the expansion on the other side gives the claim. Lemma 3.111 enters where \(g\) is compared with \(g_h\), and is where the \(md/q\) of \(\delta _{qld}\) comes from.

Comments.

This statement is not in the pinned paper’s Lemma 3.75; it is the second item of that lemma in the paper, and the blueprint’s paraphrase of Lemma 3.75 dropped it. That was found by formalizing: Lemma 3.77’s item 1 needs the two twirls to be near-invariances of the state, and the only thing that supplies them is this self-consistency at a uniform \(\tilde{u}\) — not at \(\tilde{u} = \mathrm{ind}_m(u)\), which is all Lemma 3.75 gives. So the dependency graph was missing an edge, and worse, a node. It is separated out here rather than folded back into Lemma 3.75 so that the latter’s leanok marks stay honest: what is formalized there is exactly what it states.

The exact steps of the chain are formalized. Its eleven displays are of two kinds: steps marked \(\approx _0\), which are identities, and steps marked \(\approx _\delta \), which are estimates. All the identities are in place.

syn_mul_syn is display eq:qld-pulling-2b: the syndrome projectors of one Weyl family at two different probes multiply to the projector onto the outcomes satisfying both conditions — off the diagonal the spectral projectors annihilate each other, so only the eigenvalue patterns in both level sets survive.

SimulPair.stateVec_ancSyn is eq:qld-pulling-3a: a generalized Pauli moves from one party’s ancilla half to the other’s at no cost, the two halves being maximally entangled and the syndrome projectors symmetric. The point worth recording is that this is available at all. Lemma 3.63 does not say that the model of the pair measurement is the register model, only that the register model embeds in it, carrying its expectations, so a vector identity about its state looks out of reach. It is not: the identity to be proved is the vanishing of a squared norm, and a squared norm is an expectation, so SimulPair.xSqNorm_aOp carries it across with no loss.

SimulPair.sum_ancSyn_mulVec is eq:qld-pulling-4: summing the matched pairs of syndrome projectors, one on each party, leaves the state unchanged, since by the transport each matched pair acts as the projector on one side alone and those sum to the identity.

And what the estimates consume is in place. Two of the \(\approx _\delta \) displays, eq:qld-pulling-7 and eq:qld-pulling-11, are the second item of Lemma 3.74 — but not in the indexing that lemma is stated in. The helper is stated at an outcome \(a \in \mathbb {F}_q\), which is what the expansion stage produces, while the chain sums over the polynomial outcomes \(g\), because the label \(\mathrm{Coded}(g) \cdot \tilde{u}\) it carries is a function of \(g\) and not of \(g(u)\). The two sums are equal, not merely comparable: within a fibre of the evaluation the pair measurement’s outcomes are orthogonal projectors, so every cross term of the squared norm vanishes (snorm_sq_sum_orthogonal), and the fibres partition the outcomes. That gives SimulPair.sum_snorm_sq_polyMarg_one_sub_le, at the helper’s own constant \(4\delta _S + 344\, \varepsilon \).

Display eq:qld-pulling-12 is Lemma 3.111 again, in the form sum_uniform_agree_mass_le: restricting a weighted sum to the tuples where two distinct outcome polynomials agree at the sampled point costs \(md/q\), the weights being Born probabilities of a projective family and so summing to at most one. No lower bound on \(d\) is needed here, unlike at prob_agree_ldEnc_le_of_not_multilinear: both polynomials carry the same degree bound, so the hypothesis is already met.

And the near-identity is a projection. Display eq:qld-pulling-1 right-multiplies by \(\sum _g (\widehat S^W_g)_{\textsc{A}\textsc{A}'} \otimes (\widehat M^{(\mathtt{Point},W),u}_{g(u)})_{\textsc{B}\textsc{A}''}\), which the first item of Lemma 3.74 says is close to the identity on the state. What makes the step cheap is that this operator is a projection (agreeOp_mul_self): the pair measurement’s outcomes are orthogonal, so the cross terms vanish, and the opposite party’s factors are projectors. Its deficit from the identity is then exactly one minus the agreement (snorm_sq_one_sub_agreeOp) — linear in the operator, with no Cauchy–Schwarz anywhere — and a contraction on the left cannot amplify it (snorm_sub_mul_agreeOp_le). The package asks only the first party’s family to be projective, which is what lets it apply here, where the second party’s factors are indexed by \(g\) through \(g(u)\) and so are not a measurement in \(g\).

And the two ends of eq:qld-pulling-10’s justification. That display is argued by bounding the magnitude of a difference, and the argument runs from fact:add-a-proj at the top to the helper at the bottom. Both ends are in place. The top is sum_kron_le_one: a family of projectors on one factor, tensored with a projective measurement on another, sums to at most the identity, because the complement \(\sum _x (I- B_x) \otimes T_x\) is a sum of positive semidefinite terms; against a positive operator on the other party that discards the index the sandwich runs over (sum_bornProb_kron_le). The bottom is eq:qld-pulling-14, SimulPair.sum_bornProb_polyMarg_one_sub_le: the complement of the helper’s agreement, read by polynomial outcome, is at most \(\delta _S\), the marginal’s outcomes summing to the identity.

And the middle of that justification, which is the only Cauchy–Schwarz in the chain. The estimate expands a squared norm over the orthogonal outcomes of a projective family into a sum of sandwiches, one per outcome (snorm_sq_sum_proj_sandwich); drops the constraint on the outcomes, every sandwich being nonnegative (sum_qform_sandwich_le_of_subset); and then moves the sandwiched measurement from one party to the other. That is abs_sum_qform_swap_le, display eq:qld-pulling-13: the difference of the two sandwiches is two terms each carrying the deviation on one side, and each is bounded by \(\sqrt{\varepsilon }\) against a mass at most one, so the substitution costs \(2\sqrt{\varepsilon }\). The side that is left as a single factor rather than a sandwich is the one whose measurement commutes with what it sandwiches, where \(XSX = XS\).

And eq:qld-pulling-3. The expansion leaves one party’s projector beside the other party’s point measurement, and the chain inserts a copy of that measurement on the first party’s side, spending the self-consistency of Lemma 3.46. Two things make the step cost that and no more. The deficit of the insertion is the cross-party deviation itself (snorm_one_sub_aOp_mul_bOp_le): \((I- A)B = B(B - A)\), the outcome inserted beside being a projection and the parties commuting, and a projection in front costs nothing. And the family in front is indexed through a map to the measurement’s own outcomes, so the sum sees only the fibres of that map (sum_snorm_sq_proj_comp_le). Without the fibres the step would be false: the family’s index is far larger than the outcome set, and paying one deviation per index would multiply the bound by the size of a fibre. The display is sum_snorm_sq_insert_le.

And the final passage was already in the library. Coarse-graining two projective measurements the same way costs nothing — which is Item 2 of fact:agreement, then fact:data-processing, then Item 1 of fact:agreement — and Foundations has it as sum_xSqNorm_map_le, on bundled POVMs. The chain speaks IsPVM; IsPVM.toPOVM and sum_xSqNorm_fibre_le bridge the two.

And the probe it runs at. This chain is stated at a uniform \(\tilde{u} \in \mathbb {F}_q^{M}\), and that is not a point’s low-degree encoding — the encodings are a tiny subset of \(\mathbb {F}_q^M\). Confusing the two is the omission that created this node, so the two probes are kept apart by name: SimulPair.mTildeAnc is the exact Pauli measurement at an arbitrary probe, mTildeAt_eq_mTildeAnc is the one place it meets Lemma 3.75’s, and swapU_conj_mTildeAnc says that conjugation by the swap unitary strips the pair measurement off it whatever the probe — the cancellation is between the outcome’s shift and the conjugation’s, and both are written with the same pairing.

And a strategy has one. MirrorSimul is the pair of cuts the chain runs on, and exists_mirrorSimul constructs it: a legal projective strategy of value \(1 - \varepsilon \), in a model in which the seeded CL test is sound in every ancilla extension by a unit vector, has both cuts, on one state, in the regime \(48md \leq q\). The construction is two runs of Lemma 3.63, one at the strategy and one at the strategy with the players exchanged, in the model with the players exchanged, at one padding size (mirrorOfGlobalPairs); each run’s pair measurement is carried to the first cut of its physical model along the embedding \(j_1\) of Definition 3.62. The interface does not ask the two cuts’ pair measurements to be related — the paper does not either, its simultaneous-measurement lemma giving one measurement per player’s space — and it has nothing to say about their states: the physical model of the exchanged model is the physical model with the two players’ algebras exchanged, so the two cuts read one state by construction.

And the conclusion is expressible. Both sides of this statement are exact Pauli objects, one per party, so writing it down at all needs each party’s whole triple on its own side of one cut: Alice’s \(\textsc{A}\textsc{A}' \textsc{A}''\) against Bob’s \(\textsc{B}\textsc{B}' \textsc{B}''\). That cut is the physical model, and the shape MirrorSimul takes was decided by three sentences of the paper rather than by the Lean types.

The registers are partitioned two ways — \(\textsc{A}\textsc{A}'\) against \(\textsc{B}\textsc{A}''\), and \(\textsc{B}\textsc{B}'\) against \(\textsc{A}\textsc{B}''\) — and qld-commutation.tex’s sec:expanding records that every bipartite relation derived for one holds for the other with the registers changed. Lemma 3.63 gives \(\widehat{S}\) on \(\textsc{A}\textsc{A}'\) and on \(\textsc{B}\textsc{B}'\), one per player’s space, and it is the second that \(V_\textsc{B}\) conjugates by. So the second reading is not data of a new kind: the mirror of a SimulPair is a SimulPair, at the exchanged players and the exchanged strategy. A MirrorSimul is the padding size and the two cuts’ pair measurements, first and second, and every lemma already proved about a SimulPair — mTildeAnc, swapA, swapU_conj_mTildeAnc — becomes Bob’s by instantiation at second, with no mirror lemma to prove. bobSwap_conj_bobMTilde is the paper’s “an entirely analogous calculation shows” discharged that way.

Each cut’s pair measurement acts on its own player’s registers only, \((E_A, A')\) for the first and \((E_B, B')\) for the second, so \(\widehat{S}\) never acts on the other player’s registers — a non-local \(\widehat{S}\) would make \(\tilde{M}\) and the swap unitary non-local, and then the two sides of this lemma would not lie on opposite sides of any cut. And \(\tilde{M}\) writes its Pauli register outermost, which is where the physical model puts the far half of the player’s own pair: mTildeAnc, flattened, lands on Alice’s physical registers \((A'', E_A, A')\) with nothing to reindex, and the second cut’s on Bob’s. aliceMTilde and bobMTilde are the two sides, operators of the two players of the physical model, and selfConsGap is this lemma’s left-hand side. A statement proved on the physical model of the exchanged model reads on the physical model along the exchange of the blocks (phys_swap_bornProb, phys_swap_inconsistency and their companions). The matrix formalization appended each cut’s missing pair to the other cut’s state and proved the two appendings equal; planning/qld-two-pairs-scope.md keeps the designs it discarded on the way.

And the chain’s two ends are formalized, which leaves only its middle. The chain’s arithmetic frame is MIPRE/Background/QLD/Chain.lean, and it holds no estimate at all: it is the index algebra the eleven displays are bookkeeping for.

At the near end, mTildeAnc_eq_sum_chainIdx is eq:qld-pulling-2 and eq:qld-pulling-2b: the exact Pauli measurement, written not as ‘eq:tilde_M‘’s sum over pair outcomes \(g\) with a syndrome projector attached, but as the chain’s sum over pairs \((g,h)\) cut out by \((\mathrm{Coded}(g) - h) \cdot \tilde{u} = a\). The two are the same sum, the syndrome projector being the fibre of the spectral family over that pairing; in characteristic two the shift the definition carries is the sum the chain’s label is written with (dotF_chainLabel_eq_iff).

At the far end, endOp is display eq:qld-pulling-12 and endOpMirror_eq is the sentence that makes the whole lemma go through. Both parties’ derivations end at that display, and the reason the two are then close to each other rather than each close to something is that it is symmetric in the two pairs — which is not apparent, its index set being cut out by a coupling that mentions both pairs and a pairing condition that mentions only the first. chainLabel_eq_of_coupled is why: coupled pairs carry the same label, so the condition may be read off either, and the whole index set is invariant under exchanging them (swap_mem_coupledIdx). Evaluating the coupling at a cube point is the entire proof, the encoding of a cube datum being that datum on the cube.

And sum_xSqNorm_le_of_endOp closes it: given the two chains, the triangle inequality for a family of deviations (sum_snorm_sq_triangle’, already in Foundations) gives eq:qld-pulling-cons at twice the cost, which is the factor the paper absorbs into \(\delta _S\).

And the chain’s first step. Display eq:qld-pulling-1 right-multiplies the exact Pauli measurement by the near-identity, and SimulPair.sum_uniform_snorm_sq_nearId_le is that display at item 1 of Lemma 3.74’s own constant. Two things make it cost that and no more. The insertion’s deficit is exactly the near-identity’s, because the measurement’s outcomes are orthogonal, so summing the deviation over them leaves one copy rather than one per outcome (sum_snorm_sq_sub_mul) — without that, the bound would carry a factor \(q\). And the near-identity lives on the first cut, where snorm_sq_one_sub_agreeOp turns its deficit into the helper’s Born probability, while \(\tilde{M}\) lives on the physical model, which has \(\textsc{A}''\) with Alice. The two are readings of one state model, with one Hilbert space and one state, so a state norm is the same number on both and the first cut’s reading lemmas move an operator between them. That is what lets each step of the chain be read along whichever of the paper’s three groupings it is local in, rather than forcing one grouping on all of them.

And the expansion that follows it. Displays eq:qld-pulling-2 and eq:qld-pulling-2b carry out the product, and SimulPair.aOp_mTildeAnc_mul_nearId is that computation at the interface. It is an identity, not an estimate, and it runs in three moves. The near-identity expands because the hatted point measurement is the convolution \(\sum _{a'} M^{(\mathtt{Point},W),u}_{a'} \otimes \tau ^{W,u}_{c-a'}\) by construction (sum_kron_syn_eq_hatMats), and the reading lemmas of the first cut send each of its terms to the physical model, where \(\tilde{M}\) lives, putting \(\tau ^{W,u}\) beside Alice and the point measurement alone on Bob (SimulPair.nearId_eq_sum). Multiplying then kills all but one pair outcome, the family being projective, and fuses the two syndrome projectors into the Weyl outcomes meeting both conditions — syn_mul_syn, which is where the chain’s index set first appears (SimulPair.mTildeAnc_mul_kron). Finally the sum over Bob’s outcome collapses: for each Weyl outcome \(h\) exactly one \(a'\) survives, namely \((g - g_h)(u)\), because in characteristic two the condition \(h \cdot \mathrm{ind}_m(u) = g(u) + a'\) determines \(a'\). What is left is a sum over chainIdx, with chainOp as its summand — which is what that definition was introduced for.

And the insertion, eq:qld-pulling-3. The expansion leaves Bob’s point measurement beside each term, and the chain inserts Alice’s copy of it, spending the point measurements’ self-consistency. SimulPair.sum_snorm_sq_insert_chain is that display, and the packaging sum_snorm_sq_insert_le does the work once its two hypotheses are supplied. Both are about the chain’s terms being a projective family in the pair \((g,h)\) (isPVM_chainOp, a marginal of the pair measurement tensored with a Weyl spectral projector — for which isPVM_proj bundles three facts Foundations had only separately). Projectivity is what makes the outcomes not interfere, so the squared norm of the sum over an outcome’s fibre is the sum of the squared norms (snorm_sq_sum_orthogonal’ — the existing common-tail version does not cover the chain, whose tail carries each term’s own point measurement), and it is also what makes the fibres of the outcome map \((g,h) \mapsto (g - g_h)(u)\) be seen once rather than once per index. Summing the display over the measurement outcome \(a\) recovers the whole index set, the sets chainIdx being its fibres, which is Finset.sum_fiberwise.

And the two transports, eq:qld-pulling-3a and eq:qld-pulling-4. Both are \(\approx _0\) steps — identities on the state, not estimates. SimulPair.stateVec_ancProj moves a single Weyl projector from \(\textsc{A}'\) to \(\textsc{A}''\) at no cost, the two halves of the pair being maximally entangled and the projectors symmetric; and SimulPair.sum_ancProj_mulVec is the consequence the chain uses, that summing the matched pairs of them, one on each party, leaves the state alone. AncTransport.lean had both for the syndrome projector, which is a fibre of the spectral family; the chain moves one projector of that family, so it needs the single-projector version, and stateVec_epr_proj — already in Foundations, and already used by the endgame — is the ingredient. The shape of the argument is worth restating because it is what makes these steps available at all: Lemma 3.63 does not say the model of the pair measurement is the register model, only that the register model embeds in it, carrying its expectations, so a vector identity about its state looks out of reach. It is not, because the identity to be proved is the vanishing of a squared norm, and a squared norm is an expectation.

And eq:qld-pulling-3b, which is a definition unfolded the other way. hatMats_mul_proj says the chain’s factor \((M^{(\mathtt{Point},W),u}_r)_\textsc{A}\otimes (\tau _h)_{\textsc{A}'}\) is the hatted point measurement cut down by the Weyl outcome: \(\widehat{M}^{u}_{c}\) times the projector at \(h\) keeps exactly the point outcome \(c - g_h(u)\), because the syndrome factor selects the one term of the convolution whose shift matches \(h\). The supporting fact is syn_mul_proj — a syndrome projector meets a single spectral projector in that projector or in nothing, the syndrome being the fibre of the family over the pairing.

And the last two displays’ common machinery. eq:qld-pulling-5 to -7 and eq:qld-pulling-10 to -12 are the chain’s remaining estimates, and they are the first of its steps to live on all six registers: both compare operators on the physical cut, \(\textsc{A}\textsc{A}' \textsc{A}''\) against \(\textsc{B}\textsc{B}' \textsc{B}''\), which is what MirrorSimul was built to make expressible. They share an outer shape and a way of discharging the far party.

sum_snorm_sq_fiber_sandwich_le is the shape: each display bounds the summed squared norm of the chain’s terms grouped by the measurement outcome, projectivity turns each group into a sum of sandwiches (snorm_sq_sum_proj_sandwich), the groups are the fibres of the outcome map — so the double sum is the single one over the whole index — and what is left to bound carries no outcome at all. sum_bornProb_sandwich_drop_le is the discharge: each sandwich carries, on the far party, a projector times a Weyl outcome, and summed over that outcome these are at most the identity, so the whole sum is bounded by the near party’s sandwiches alone. That is fact:add-a-proj in the form the two displays consume it. MirrorSimul.chainP is the projective family they sum over — Alice’s pair and Weyl outcomes together, against Bob’s Weyl outcome, on the physical cut.

And the first of the two is done. sum_snorm_sq_chainP_le is eq:qld-pulling-5 to -8 and sum_uniform_snorm_sq_chainP_le is eq:qld-pulling-9: the step costs item 2 of Lemma 3.74 and nothing more. Three things had to be arranged, and each is worth recording because the same three recur at eq:qld-pulling-10.

The chain’s tail at this display is chainW, Alice’s gap \(I- \widehat{M}^u_{g(u)}\) against Bob’s point measurement at the shifted outcome \((g - g_h + g_{h'})(u)\) — shifted by both Weyl outcomes, which is what makes the display’s index a triple rather than a pair. chainW_sandwich is where that tail meets the outer shape: conjugating the chain’s projector by it splits across the cut, each party’s factor staying local, so a single rewrite turns the quadratic form the shape produces into a Born probability.

Bob’s side then discharges. bobHat_conj_bobWeyl says his factor is a projector on \(\textsc{B}\textsc{B}'\) tensored with a Weyl outcome on \(\textsc{B}''\), and sum_bornProb_chainW_drop_le sums it away by sum_bornProb_kron_le — the projector varying with the Weyl outcome, which is why the discharge has to be stated with the two indices coupled rather than at a fixed projector.

Alice’s side then collapses and travels. sum_aliceChainOp sums the Weyl outcome out of her summand, the spectral projectors being complete, and sum_aliceChainOp_sandwich carries that through the sandwich, her gap operator not depending on the Weyl index. What is left is on \(\textsc{A}\textsc{A}'\) alone, and bornProb_physVec_aOp reads it on the first cut, where SimulPair.sum_snorm_sq_polyMarg_one_sub_le bounds it: an operator of the first player of the first cut is the physical operator acting as the identity on \(\textsc{A}''\), on the same state.

And Bob’s whole derivation is Alice’s, instantiated. The mirror of a MirrorSimul is a MirrorSimul — at the exchanged players and the exchanged strategy, with the two cuts exchanged. Its two fields give each player’s objects on one cut, which is enough for anything stated there; mirror gives Bob’s objects as the first player’s of the mirror, on the physical model of the exchanged model, which the exchange of the blocks carries to the physical model — what the chain’s last displays compare — so every lemma about the six-register reading becomes Bob’s by instantiation. mirror_sum_snorm_sq_chainP_le is eq:qld-pulling-5 to -8 for Bob, and its proof is one rewrite and one application. The paper’s “an analogous derivation shows” for the second party is discharged that way for the whole chain rather than display by display, and sum_xSqNorm_le_of_endOp, which needs both parties’ chains, will be fed from one.

What makes it go through is that the mirror is an involution by definition (mirror_mirror, by rfl): exchanging the players twice is the identity on models and on projective strategies, and a MirrorSimul carries no state of its own to be exchanged.

And the four-index family. From eq:qld-pulling-9a on, the chain runs over both parties’ pairs: chainQ is that family, projective by isPVM_chainQ, and endOp_eq_sum_chainQ says the chain’s endpoint — in place since the arithmetic frame was built — is exactly its restriction to the coupled index set, so the displays leading there and the endpoint speak about one projective measurement. sum_poly_chainQ is eq:qld-pulling-9a itself: left-multiplying by Bob’s own pair measurement, which is the identity, refines the three-index family into the four-index one, and SimulPair.sum_poly_chainOp is the completeness that makes it so.

And eq:qld-pulling-10 down to its Cauchy–Schwarz step. That display runs over the four-index family and over the pairs whose outcomes disagree at the sampled point, and everything before the swap is now in. sum_snorm_sq_fiber_sandwich_subset_le is the outer shape on a subset of the index — the form the disagreeing pairs need, and the one the first display’s version is now a case of. bobTail_sandwich splits the sandwich across the cut and bobHat_conj_bobChainOp identifies Bob’s factor as his sandwiched pair-measurement marginal bobSand tensored with his Weyl outcome.

sum_snorm_sq_chainQ_disagree_le is then the relaxation, which is where the paper’s “\(\leq \)” sits: each disagreeing pair contributes one term of a sum over all outcomes that the pair’s own value excludes, the rest of that sum is nonnegative, and the constraint tying the outcome to the index may then be dropped. Note what is not used: no Cauchy–Schwarz, no measurement property beyond projectivity — only that a sandwich is nonnegative. sum_qform_bobTail_eq closes the reduction at eq:qld-pulling-13a: Alice’s whole family and Bob’s Weyl outcome both sum to the identity, so what is left carries neither, and the bound is a statement about Bob’s registers alone.

And the swap, which completes eq:qld-pulling-10. The chain’s only Cauchy–Schwarz, and the one step where the existing package did not fit. abs_sum_qform_swap_le measures the two placements’ deviation bare; this display sandwiches a projector with the measurement it swaps, and the deviation has to be read through that projector, because the index runs over pairs of a pair outcome and a point outcome and the bare form would pay one deviation per pair outcome — a factor of the number of polynomials. abs_sum_qform_swap_proj_le is the same argument with the Cauchy–Schwarz taken against the projector’s own form, which is legitimate because a projector is \(S^*S\), so no square root is needed; abs_sum_qform_conjTranspose_mul_le is the summed Cauchy–Schwarz it uses, the existing one assuming the first family self-adjoint.

SimulPair.abs_sum_qform_ne_swap_le is eq:qld-pulling-13 itself, stated on a SimulPair because that is where both placements are local — the one that sandwiches is the first party’s own, the one that replaces it the second party’s — and the mirror then makes it Bob’s. sum_qform_ne_eq reads the swapped side back as a Born probability, the other party’s point measurement summed over the outcomes its own value excludes being the complement of that value, and sum_uniform_qform_ne_le is eq:qld-pulling-10 complete, at \(\delta _S + 2\sqrt{172\varepsilon }\). The average over the sampled point goes inside the square root by Cauchy–Schwarz against the constant one (sum_weighted_sqrt_le).

And eq:qld-pulling-11. bobLift is any operator of Bob’s extended by the identity on the half of the pair he holds — both remaining displays sandwich the four-index family with one of these, and only which one differs, so bobLift_sandwich_kron and sum_qform_bobLift_eq serve both. sum_snorm_sq_chainQ_agree_le is the display and sum_uniform_snorm_sq_chainQ_agree_le its cost, which is item 2 of Lemma 3.74 at the second cut — available with no new proof, the mirror of a MirrorSimul being a MirrorSimul, and the swapped strategy’s hypotheses coming from swapVec_unit and povmValue_swapped_le. bornProb_physVec_bOp is the bridge those two run through: the mirror image of bornProb_physVec_aOp, carrying an operator that is Bob’s alone back to the state the second cut describes.

And eq:qld-pulling-12, which is the last of the eleven. The chain’s constraint is an equality of polynomial values at the sampled point; passing to equality of the polynomials themselves discards only the tuples where distinct polynomials happen to agree there, and Schwartz–Zippel bounds that by \(md/q\). sum_uniform_chainCoupled_agree_le is that bound at one pair of index pairs and sum_uniform_chainCoupled_mass_le the weighted form, with sum_uniform_snorm_sq_chainQ_notCoupled_le the display itself — the weights being the four-index family’s own Born probabilities, which sum to exactly one (sum_qform_chainQ).

Two things are worth recording. The polynomials compared are not the chain’s pair outcomes but those outcomes shifted by the Weyl outcomes’ encodings, \(g + g_h\) against \(g' + g_{h'}\), and the encoding is multilinear — so the sum keeps the individual-degree bound exactly when \(d \geq 1\), which is the lemma’s one hypothesis and the only place in the chain where a lower bound on \(d\) is needed. And chainQShift_eq_iff is where characteristic two is spent again: the condition the chain carries the shift on one side of is the condition Schwartz–Zippel wants it split across.

All eleven displays are now formalized, and so are the assembly’s two joints.

sum_snorm_sq_chain_le is the triangle inequality along a chain rather than across one step, and it is worth having rather than iterating sum_snorm_sq_triangle’: a chain of \(n\) steps costs a factor \(n\), not \(2^n\), because the total deviation telescopes into the sum of the steps’ and Cauchy–Schwarz against the constant one turns the squared norm of a sum of \(n\) terms into \(n\) times the sum of their squares. For eleven displays that is the difference between eleven and two thousand.

The other joint is between the groupings. Displays eq:qld-pulling-1 to -4 are local in the first cut’s grouping and everything from -5 on is local in the physical one. The matrix chain carried each of the first four across by lifting it through a regrouping of the appended pair; here the first cut and the physical model are two readings of one state model, so the first four terms enter the physical chain as they stand (SimulPair.chainS at the first cut), their operators read by the first cut’s reading lemmas.

And the first step of the chaining, which is the one that had to be read off the paper rather than the Lean. eq:qld-pulling-4 is the step that brings the second pair’s outcome into the chain, and the pair it is about is the appended one — the paper writes \(|\hat\psi \rangle = \sum _{h'} (\tau _{h'})_{\textsc{B}'} \otimes (\tau _{h'})_{\textsc{B}''} |\hat\psi \rangle \), and in the physical grouping both of those halves are Bob’s. So the matched projectors are one operator of his (bobPairProj), not a cross-party pair, and the step is the statement that it fixes the physical state (sum_bobPairProj_mulVec). SimulPair.sum_ancProj_mulVec, which an earlier note here called this display, is the same fact for the first pair and belongs to eq:qld-pulling-3a. The two are genuinely different steps about different pairs, and the registers had to be checked against qld-separating.tex to see it.

What makes the new one go through is the mirror identity of the second player’s pair in the physical model (Definition 3.62): on the physical state the matched Weyl projectors act as the projector on one half alone — the projectors being symmetric matrices — and those sum to the identity (bobPairProj_eq, sum_bobPairProj_mulVec).

And the chaining has started. SimulPair.chainS names the four terms displays eq:qld-pulling-0 to -3 run through, on the first cut, and the three lemmas after it are those displays read as bounds on consecutive deviations — the form sum_snorm_sq_chain_le consumes. Two of the three are the displays applied verbatim; the middle one is free, eq:qld-pulling-2 and -2b being identities (chainS_one_eq_two).

And the chain’s four free steps, which are one step. Displays eq:qld-pulling-3a, -3b, -4 and -5 are all “\(\approx _0\)” or identities, so the chain pays nothing between -3 and -5 and there is no reason to name the three terms between them: SimulPair.chainS_three_mulVec followed by MirrorSimul.chainS3b_mulVec is the whole stretch at once.

What runs through all four is one fact about a maximally entangled pair, used on each of the two pairs in turn: the projector on one half is the projector on the other, on the state. SimulPair.ancProj_mulVec_mVec is that for the pair \(\textsc{A}'\textsc{A}''\), read on the first cut, and MirrorSimul.bobPairProj_mulVec is the same for the pair \(\textsc{B}'\textsc{B}''\), which the physical model gives to Bob entire; both are the mirror identities of the physical state.

Given that, both halves of the step are the same two lines. Insert the projector on the half the chain does not carry; it commutes with everything between it and the state, so it may be moved next to the one the chain does carry, where it is absorbed; and now the point measurement beside it is the hatted point measurement cut down by that projector (hatMats_mul_proj, which is eq:qld-pulling-3b and was already in the tree). SimulPair.ancB_ptA_mulVec is Alice’s half and MirrorSimul.bobPt_mul_bobPairProj is Bob’s. The asymmetry between the two — Alice’s is an identity on the state and Bob’s an identity of operators — is only that Bob’s matched pair is already there, eq:qld-pulling-4 having put it there.

Nothing has to carry the first of the two across: eq:qld-pulling-3a and -3b are local in the first cut’s grouping, and an identity on the first cut’s state is an identity on the physical state, the two being one vector.

And the chaining, which is done. MirrorSimul.chainT is the chain on the physical model: ten terms for nine steps, the four of eq:qld-pulling-0 to -3 entering as the first cut’s terms and everything from -5 on entering directly. Three of the nine steps are free — eq:qld-pulling-2 and -2b, then -3a to -5, then -9a — and the six that are not cost, in order: item 1 of Lemma 3.74, the game’s point–point consistency, item 2 of Lemma 3.74, eq:qld-pulling-10 complete, item 2 again at the second cut, and Schwartz–Zippel. sum_uniform_snorm_sq_chainT_le is their sum at the factor nine that sum_snorm_sq_chain_le charges, and sum_uniform_snorm_sq_mTildeAnc_endOp_le is eq:qld-pulling-cons for Alice: her exact Pauli measurement on \(\textsc{A}\textsc{A}' \textsc{A}''\) is within \(9(10 \delta _S + 860 \varepsilon + 2\sqrt{172 \varepsilon } + md/q)\), in summed squared state distance, of the chain’s endpoint.

The one cost the displays did not already supply is eq:qld-pulling-3’s. SimulPair.sum_uniform_xSqNorm_pt_le supplies it: the game’s point–point consistency, read on the model the chain runs on rather than on the strategy’s own. That reading is free, for the reason the whole SimulPair interface exists — the register model embeds in the first cut carrying every expectation, and the strategy’s model embeds in the physical model with the registers inert — but it has to be done once (bornProb_mVec_ext, xSqNorm_mVec_ext).

And the lemma, which is now proved. Two steps after the chain, and neither is a new derivation.

Bob’s half is Alice’s at the mirror. MirrorSimul.mirror makes the mirror a MirrorSimul again, its physical model is this one with the players exchanged, and sum_coupledIdx_swap says its endpoint is this one read from the other side — which is swap_mem_coupledIdx, the symmetry of the index set that is the whole reason this lemma holds. snorm_sub_endOpMirror carries the norm across the exchange of the blocks, and sum_xSqNorm_le_of_endOp, in the tree since the endpoint was named, puts the two halves together: sum_selfConsGap_le is the two exact Pauli measurements agreeing.

From the measurements to the observable. This is the one place where the obvious route is the wrong one. Lemma 3.44 applied to the whole outcome set costs a factor \(q\), which would turn the chain’s \(md/q\) into \(md\) and lose the lemma. The paper coarse-grains first, along the character the observable reads — free for projective families, and in the tree as sum_xSqNorm_fibre_le — and turns only the resulting two-outcome family into an observable. So the factor is two, and snorm_sq_obs_sub_le is Lemma 3.44 in the state-norm form that step takes. MirrorSimul.snorm_sq_wTilde_le is the lemma. reports/qld-stage5-blueprint-repairs.md records the omission that created this node.

[\(\bullet \bullet \bullet \) hard]

Lemma 3.77 The swap isometry
✓
#

There is \(\delta _{qld} = O\bigl( \delta _S^{1/4} + md/q \bigr)\) and local unitaries \(V_\textsc{A}\), \(V_\textsc{B}\) on the expanded spaces such that, writing \(M = 2^m\):

  1. there is a state \(|\textsc{aux}\rangle \) on the two parties’ non-ancilla registers with \(\left\| { V_\textsc{A}\otimes V_\textsc{B}|\widehat{\psi }\rangle - |\textsc{aux}\rangle \otimes |\textsc{EPR}_q\rangle ^{\otimes M} } \right\| ^2 \leq \delta _{qld}\) — the bound is on the squared norm, which is why Theorem 3.38, whose item bounds the norm itself, carries \(\delta _{qld}^{1/2}\) and halves the constant \(b\);

  2. conjugation by \(V_\textsc{A}\), resp. \(V_\textsc{B}\), carries the strategy’s total Pauli measurement \(M^{(\textsc{Pauli},W)}_h\) to \(I\otimes \tau ^W_h\) on the EPR registers, within \(\delta _{qld}\) in the state-dependent distance relative to \(|\textsc{aux}\rangle \otimes |\textsc{EPR}_q\rangle ^{\otimes M}\).

Conjugation carries the exact Pauli observables of Lemma 3.75 to the honest Pauli operators exactly, with no error at all; that identity is a step of item 2’s proof, not a weaker form of it. The Lean proves it for the two cuts of a projective strategy in any bipartite model (Lemma 3.76), in the vocabulary of Definition 8.82. For a unit vector \(|\textsc{aux}\rangle \) of the extension of the strategy’s model by the padded registers (Definition 3.62), the swap isometry is a local isometry from the strategy’s model to the register model on \(\mathbb {F}_q^M\) of that extension in the state \(|\textsc{aux}\rangle \): the strategy’s model into its physical model with the registers inert, then conjugation by the two swap unitaries \(V_\textsc{A}\) and \(V_\textsc{B}\), then the regrouping into item 1’s cut. Item 1 is the squared distance of the transported state to that register model’s state \(|\textsc{EPR}_q\rangle ^{\otimes M} \otimes |\textsc{aux}\rangle \), and item 2, for each player and each basis, the summed squared state-dependent distance there of the transported \((\textsc{Pauli}, W)\) measurement, read as cube data, to the honest projector on the player’s half of the register. One \(|\textsc{aux}\rangle \) serves both items and both players. The statement above is its tensor-product instance.

Proof ▶

The standard swap-isometry argument for item 1. It is standard because the representation is exact: an approximate representation would not give a unitary, which is the whole reason Lemma 3.75 is stated with exact relations. Item 2 is not exact and is the longer half: it chains the win implications’ Pauli-basis consistency and the point measurements’ self-consistency through the marginals of Lemma 3.74, and it is where the \(md/q\) of \(\delta _{qld}\) comes from, by Lemma 3.111. Item 1 alone gives \(O(\sqrt{\delta _S})\).

Comments.

Both items are formalized, relative to one auxiliary state, with nothing assumed beyond the game: MirrorSimul.swap_isometry in MIPRE/Background/QLD/SwapItemTwo.lean. The isometry is MirrorSimul.swapPhi, a local isometry of the strategy’s model in the vocabulary of QLD.Extraction: the inert embedding of the model into its physical model, the conjugation by the two swap unitaries (adV), and the regrouping unassoc into item 1’s cut, read in the auxiliary state. It carries the strategy’s state to the swapped physical state regrouped, endState, by definition, item 1 compares that with the register model’s state tgtState, and the summands of item 2 are the physical model’s state norms of the conjugated Pauli measurement minus the honest projector (stateSqNorm_swapPhi_alice, stateSqNorm_swapPhi_bob). The history below is kept because it records where the obstacles were. The exact pieces are in MIPRE/Background/QLD/SwapUnitary.lean, item 1’s assembly in MIPRE/Background/QLD/SwapState.lean and MIPRE/Background/QLD/SwapItemOne.lean, and item 2’s threading in SwapItemTwo.lean.

The Lean statement has two constants where the statement above has one: item 1 is bounded by etaItemOne, which is \(2 - 2\sqrt{1 - \eta }\) with \(\eta = 2\sqrt{X} + 2X\) for the constant \(X\) of Lemma 3.76, and item 2 by deltaItemTwo at that bound, which is \(2\bigl( 11 \delta ' + md/q + 2 \sqrt{\texttt{etaItemOne}} \bigr)\), where \(\delta '\) (deltaLegs) bounds each leg of eq:qld-unitary-5. The error of Theorem 3.38 is built from the two: item 2’s bound plus the square root of item 1’s, capped at \(4\) (Lemma 3.78). Item 2’s distance is the register model’s summed squared state norm, which in the tensor-product model is \(\sum _h \left\| {(V M^{(\textsc{Pauli},W)}_h V^\dagger - I\otimes \tau ^W_h) |\textsc{aux}\rangle \otimes |\textsc{EPR}_q\rangle ^{\otimes M}} \right\| ^2\). That this has the shape Theorem 3.38 asks for is Lemma 3.78 (errSmall_swapItemOne and its companions in MIPRE/Background/QLD/ErrorShape.lean).

Every operator in the construction has the shape \(\sum _p \widehat{S}_p \otimes T_p\) (sTensor), and because \(\widehat{S}\) is projective these compose factorwise (sTensor_mul). That one lemma is where projectivity is used, and it makes the rest arithmetic: the swap map swapU is unitary on both sides (swapU_mul_conjTranspose, swapU_conjTranspose_mul), and conjugation by it strips the measurement off the observable, swapU_conj_wTilde_X and swapU_conj_wTilde_Z being \(V \tilde{W}^e(\tilde{u}) V^\dagger = I\otimes \tau ^W(e \tilde{u})\) exactly. The two signs cancel there because the sign the first factor carries is the very phase the ancilla factor’s conjugation produces (uOf_conj_wX, uOf_conj_wZ).

The estimate rests on an identity about the Weyl system with no measurement in it: twirl_mul_twirl is \(\bigl( \mathop{\mathbb {E}}_{\tilde{u}} \tau ^X(\tilde{u}) \otimes \tau ^X(\tilde{u}) \bigr) \bigl( \mathop{\mathbb {E}}_{\tilde{v}} \tau ^Z(\tilde{v}) \otimes \tau ^Z(\tilde{v}) \bigr) = \bigl( |\textsc{EPR}_q\rangle \langle \textsc{EPR}_q| \bigr)^{\otimes M}\). The paper proves it by an induction over the \(M\) qudits, having presented the ancilla as an iterated tensor product; here \((\mathbb {C}^q)^{\otimes M}\) is one matrix algebra indexed by \(\mathbb {F}_q^M\), so it is a single entry computation and the induction disappears.

The arithmetic that turns the two near-invariances into the closeness is norm_sub_sq_le_of_re_inner_ge, re_inner_ge_of_two_close and norm_sub_normalize_sq_le, and it is the repaired chain: the pinned paper bounded \(\left\| {(H_W - I) v} \right\| \) by \(\delta _S\) where its own preceding display gives \(\delta _S\) for the square, and compared a squared triangle inequality with \(2\sqrt{\delta _S}\) where the bound on the square is \(4 \delta _S\). The conclusion \(O(\sqrt{\delta _S})\) is unchanged; only intermediate constants move. re_inner_ge_of_two_close concludes exactly the paper’s \(1 - 2\sqrt{\delta _S} - 2\delta _S\), and it carries a case split the paper does not: a statement with no hidden “for small enough \(\delta _S\)” has to handle \(\delta _S {\gt} 1\), where squaring \(1 - \sqrt{\delta _S}\) would reverse the inequality and where the trivial bound is already stronger.

The assembly is done. exists_auxVec_close is item 1: a unit state on \(R \times (T \times T)\) — the two parties’ non-ancilla registers as one index, their two ancilla halves adjacent — that is nearly invariant under both Weyl twirls is within \(2 - 2\sqrt{1 - \eta }\) of a product \(|\textsc{aux}\rangle \otimes |\textsc{EPR}_q\rangle ^{\otimes M}\), with \(\eta = 2\sqrt{\delta } + 2\delta \), which is \(O(\sqrt{\delta })\) as the proof above says. Two things made it shorter than expected. The twirl is a projection (twirl_mul_self), not merely a contraction: the Weyl family is a homomorphism, so the double average collapses, for each \(s\) there being exactly \(q^n\) pairs \((u,v)\) with \(u + v = s\). That supplies the contraction hypothesis of norm_sub_sq_le_of_re_inner_ge through snorm_le_one_of_proj, with no operator-norm estimate anywhere. And the range of \(I\otimes |\textsc{EPR}\rangle \langle \textsc{EPR}|\) consists of product vectors by inspection (bOp_eprProj_mulVec), which is where \(|\textsc{aux}\rangle \) comes from — no partial trace and no Schmidt decomposition.

And three of item 2’s displays. Conjugation carries the exact Pauli measurement to the bare syndrome projector exactly, not just the observable: that is eq:qld-unitary-6, swapU_conj_mTilde, and at the interface SimulPair.swapU_conj_mTildeAt. What makes it work is one mechanism, recorded on its own because the observable’s proof did not need it: the twisted commutation relation says conjugation multiplies each Weyl operator by a character, and on the projectors that is a shift — a spectral projector is the Fourier average against a character, and two characters compose by adding their labels (conj_proj_of_sign), so a syndrome projector’s outcome moves by the shift’s own pairing with the probe (conj_syn_of_sign). In \(\tilde{M}^{W,u}_a\) the outcome carried at the pair outcome \(p\) is \(\mathrm{Coded}(g_{\pi p}) \cdot u + a\) and the shift is \(\mathrm{Coded}(g_{\pi p})\), so the two cancel in characteristic two and the pair outcome disappears. That cancellation is the paper’s relabelling \(h' = h + \mathrm{Coded}(g_W)\), the passage its cnote records as repaired; what makes it exact here is that the shift and the outcome are written with the same \(\mathrm{Coded}(g_{\pi p}) \cdot u\) by construction.

The endgame’s opening expansion is sum_snorm_sq_sub_eq_two_sub (eq:qld-unitary-7): the two families compared there act on the same party, so the bipartite one_sub_sum_bornProb_eq does not apply, but the same three-term expansion does. And its one estimate, eq:qld-unitary-8, is Schwartz–Zippel in the packaging eq:qld-pulling-12 already used (sum_uniform_agree_bornProb_le): the index is a pair of Pauli outcomes and the diagonal is excluded by the weight rather than by the index set, which is why sum_uniform_agree_mass_le now asks for the two polynomials to be distinct only where the weight is nonzero.

And the endgame’s own steps, in SwapEndgame.lean. Item 1 leaves a product state \(|\textsc{aux}\rangle \otimes |\textsc{EPR}_q\rangle ^{\otimes M}\), and what the endgame does to it is elementary once said plainly: an operator on the entangled pair acts on the second factor and leaves the first (bOp_mulVec_auxVec, one entry computation), so two operators that agree on \(|\textsc{EPR}_q\rangle ^{\otimes M}\) agree on the product (mulVec_auxVec_congr). That is eq:qld-unitary-7’s last line, where a generalized Pauli’s spectral projector moves from one half of the pair to the other: the projectors are symmetric, being real Fourier averages of a symmetric family, so stateVec_epr_proj moves them across and mulVec_auxVec_proj carries that to the product state (mulVec_auxVec_syn for the syndrome projectors). The display’s first two lines are sum_snorm_sq_sub_le_of_agree: everything after them is a lower bound on one number, the agreement, and the deviation is twice its deficit. And sum_uniform_bornProb_fibre_le is eq:qld-unitary-8 in the form the chain consumes: reading the two families at the value of the encoding at the sampled point rather than at the full outcome raises the agreement by at most \(md/q\), the pairs it adds being the distinct ones whose encodings collide there.

And item 1’s cut, which holds both pairs. exists_auxVec_close concludes about \(|\textsc{EPR}_q\rangle ^{\otimes M}_{\textsc{A}'' \textsc{B}''}\) — one half of each party’s local pair — whereas the register model of one run of stage 4 carries only the pair \(\textsc{A}' \textsc{A}''\), read along the cut \(\textsc{A}\textsc{A}' \mid \textsc{B}\textsc{A}''\), and has no \(\textsc{B}' \textsc{B}''\) in it at all. That was deliberate and correct for Lemma 3.63 and Lemma 3.74, each of which uses one orientation at a time, and it is what reports/qld-stage5-blueprint-repairs.md records as the second entangled pair not being needed for Lemma 3.75’s item 1. Item 2’s threading is the first consumer that does need it. The physical model of Definition 3.62 holds both pairs, the two cuts of a MirrorSimul are readings of it (Lemma 3.76), and item 1’s cut is the register model, with the pair \((A'', B'')\), of the extension of the strategy’s model by the padded registers, into which unassoc regroups the physical model; qform_endVec carries an expectation between the two readings.

And the missing edge, made explicit. Item 1 asks for a near-invariance of the state under the Weyl twirl on its two ancilla halves; what Lemma 3.76 supplies is an agreement of the two parties’ exact Pauli observables averaged over a uniform probe. The twirl is by definition that average, so the two are one rewriting apart: qform_bOp_twirl. That this edge is short is not an accident — it is why the missing node was worth separating out rather than folding into Lemma 3.75.

And item 1 is now unconditional. The near-invariances were hypotheses of exists_auxVec_close; Lemma 3.76 supplies them, and MirrorSimul.exists_aux_close is item 1 with nothing assumed beyond the game’s. Three things had to be said to make the blueprint’s “one rewriting” go through, and each is worth naming.

The cut. The physical model puts the far half of each party’s own pair first among that party’s registers, and item 1’s cut puts the two far halves together as the register; the regrouping between them is unassoc, a local isometry with no condition on the state, and endState is the swapped physical state carried along it.

The conjugation, read backwards. swapU_conj_wTilde_X and _Z say the swap unitary strips the pair measurement off the exact Pauli observable exactly; read the other way (conj_inv_of_unitary) that turns an expectation of the honest Weyl operator on the swapped state into an expectation of the two parties’ observables on the state itself (MirrorSimul.qform_endState_weyl).

And the two involutions. Each party’s exact Pauli observable is self-adjoint and squares to one, so its cross-party deviation and its joint expectation determine each other exactly, the summed squared deviation being \(2 - 2\) times the joint expectation, with no inequality anywhere (MirrorSimul.bornProb_wTilde_ge).

And item 2 is threaded. MirrorSimul.sum_snorm_sq_aliceConjPauli_le is the chain for Alice, on any unit state \(\Delta \) that carries the pair on \(\textsc{A}'' \textsc{B}''\) and is within \(r\) of the swapped physical state. eq:qld-unitary-7 makes the deviation twice the deficit of an agreement; on \(\Delta \), \(\tau ^W_h\) on \(\textsc{A}''\) is \(\tau ^W_h\) on \(\textsc{B}''\), which makes that agreement a bipartite Born probability across the physical cut; eq:qld-unitary-8 coarse-grains it along \(g_h(u)\) at a cost of \(md/q\); and eq:qld-unitary-6 on Bob’s side turns the coarse honest projector into Bob’s exact Pauli measurement conjugated by his swap unitary (bobSwap_conj_bobMTilde). The transport across item 1 (sum_bornProb_conj_ge_of_close) moves the conjugation onto the state, where it undoes the swap, and costs \(2r\); with \(r\) the square root of item 1’s bound this is where \(\delta _S^{1/4}\) enters. The last step is eq:qld-unitary-5 at the mirror instance (sum_bornProb_physVec_ge): Bob’s exact Pauli measurement against Alice’s \((\textsc{Pauli}, W)\) reading is the second cut’s \(\tilde{M}\) against the swapped strategy’s Pauli reading. sum_snorm_sq_alice_le applies the chain at \(\Delta = |\textsc{aux}\rangle \otimes |\textsc{EPR}_q\rangle ^{\otimes M}\) read on the physical model (physAux, the register model’s state carried there by the associativity of item 1’s cut, which unassoc inverts: unassoc_W_physAux), for any \(|\textsc{aux}\rangle \) close to the swapped state. sum_snorm_sq_bob_le is Alice’s at the mirror, relative to the same \(|\textsc{aux}\rangle \): the mirror’s product state and its swapped physical state are this one’s with the parties exchanged (mirror_physSwap_mulVec), so no second auxiliary state is needed. One point of encoding: the Schwartz–Zippel packaging reads its index through coefficient tables of bounded individual degree, and ancPoly is the table of \(\mathrm{Coded}(h)\), faithful because the encoding is multilinear and \(d \geq 1\) (toMv_coeffTable).

And eq:qld-unitary-5. It needed no new estimate: its engine is the paper’s fact:triangle-for-simeq, already in Foundations as agreeSum_triangle (with \(11\delta \) for the paper’s \(9\delta \), as Lemma 3.65 records). Two adapters put it to work. inconsistency_triangle is the estimate in the vocabulary this interface states everything in — an inconsistency rather than an agreement, the two being the same number. The three legs are not read in the same model: \(\tilde{M}^{W,u}\) needs the ancilla half with the first party, which is the physical model, while the strategy’s own measurements live in its own model. They are read on the physical model with the registers inert (physInert), an embedding of models, along which every inconsistency is the same number. SimulPair.inconsistency_mTilde_pauli_le is then the display, with the two middle legs — the game’s point–point and point–Pauli consistencies, the latter read through pauliAtPOVM — as hypotheses, in the same way exists_auxVec_close takes item 1’s near-invariances. They are asked for in the form the game supplies them: an inconsistency of the strategy’s own measurements carried along that embedding is their inconsistency in the strategy’s own model, so inconsistency_mTilde_pauli_le’ takes them on \(|\psi \rangle \), where agree_subtest_le leaves them.

And those two legs are discharged. They are items 1 and 3 of Lemma 3.46 at the point and Pauli types — item_consistency and item_pauli_consistency, both already in — and three steps carry each into the form the triangle wants. The point question a content asks is the point the content carries, so the average over contents of a function of that point is the uniform average over points (sum_content_pt); and for projective families a cross-party deviation is exactly twice the inconsistency (inconsistency_eq_half_xPovmDist — only \(\leq \) holds for general POVMs, and what makes it an equality is that both families’ masses are exactly one). That gives inconsistency_pt_pt_le and inconsistency_pt_pauli_le at \(86\varepsilon \), which is agree_subtest_le’s \(172\varepsilon \) halved, and inconsistency_mTilde_pauli_le_of_win is then eq:qld-unitary-5 from the game’s soundness and item 1 of Lemma 3.75 alone.

And the endgame’s transport. abs_qform_withState_sub_qform_le: moving an expectation from the product state to the swapped physical state costs twice the operator’s bound times the distance between them. Item 1 bounds the squared distance, which is exactly where the fourth root in \(\delta _{qld}\) comes from. reports/qld-stage5-blueprint-repairs.md records the repairs above, including the ledger’s declared dependencies for node \(1.2.2.16\), which name \(1.2.2.4\) (Lemma 3.46) and which the uses list did not.

The error

Lemma 3.78 The error of the Pauli basis test
✓
#

Say that a function \(f(\varepsilon , m, d, q)\) has the shape of Theorem 3.38 if there are constants \(a \geq 1\) and \(0 {\lt} b {\lt} 1\), chosen before the parameters, such that

\begin{equation*} 0 \leq f(\varepsilon , m, d, q) \leq a (md)^a \bigl( \varepsilon ^b + q^{-b} + 2^{-bmd} \bigr) \end{equation*}

whenever \(0 \leq \varepsilon \leq 1\), \(m, d \geq 1\) and \(q \geq 2\). These functions are closed under sums, nonnegative constant multiples, products, polynomial prefactors \((md)^r\) and real powers \(t \mapsto t^B\) for \(0 {\lt} B \leq 1\); they include \(\varepsilon \), \(md/q\), and \(q^{-B}\) and \(2^{-Bmd}\) for every \(B {\gt} 0\); and no positive constant has the shape. Every error of the soundness chain has the shape: \(\delta _Q\) of Lemma 3.56, \(\delta _P\) of Lemma 3.58, \(\delta _{\mathrm{GS}}\) and \(\delta _{\mathrm{ld}} = \delta _{\mathrm{sim}}(q, 4m, d, 1, \delta _{\mathrm{GS}})\) of Lemma 3.66, \(\delta _S\) of Lemma 3.73 at \(\delta _{\mathrm{ld}}\), and, at \(\delta = \delta _S(\delta _{\mathrm{ld}})\), the constant \(X\) of Lemma 3.76 and the two bounds of Lemma 3.77. Let \(\delta _{qld}(\varepsilon , m, d, q)\) be the smaller of \(4\) and \(\delta _2 + \sqrt{\eta _1}\) if \(48md \leq q\) and \(2\sqrt{X} + 2X {\lt} 1\), where \(\eta _1\) is the bound of item 1 of Lemma 3.77 on the squared distance and \(\delta _2\) the bound of its item 2, and let it be \(4\) otherwise. Then \(\delta _{qld}\) has the shape of Theorem 3.38: there are universal constants \(a \geq 1\) and \(0 {\lt} b {\lt} 1\) such that \(\delta _{qld}(\min (\varepsilon , 1), m, d, q) \leq a (md)^a (\varepsilon ^b + q^{-b} + 2^{-bmd})\) for every \(\varepsilon \geq 0\), \(m, d \geq 1\) and \(q \geq 2\).

Proof ▶

Write \(S_b = \varepsilon ^b + q^{-b} + 2^{-bmd}\). On the range, \(S_b\) is antitone in \(b\), since \(\varepsilon \leq 1 \leq q\), and \((md)^a\) is monotone in \(a\), since \(md \geq 1\); so two functions of the shape are both below the shape at the larger \(a\) and the smaller \(b\), which gives sums, constant multiples and polynomial prefactors. For \(0 {\lt} B \leq 1\) the map \(t \mapsto t^B\) is subadditive, while \(a^B \leq a\) and \(((md)^a)^B \leq (md)^a\), so \((a (md)^a S_b)^B \leq a (md)^a S_{bB}\); square roots are \(B = 1/2\). Each term of \(S_b\) is at most one, so \(S_b \leq 3\), which gives products. The base cases are direct: \(\varepsilon \leq \varepsilon ^{1/2}\) on \([0, 1]\), and \(md/q = (md) q^{-1}\). A positive constant \(c\) does not have the shape: at fixed \(m\) and \(d\) the shape tends to \(a (md)^a 2^{-bmd}\) as \(\varepsilon \to 0\) and \(q \to \infty \), and that is below \(c\) once \(md\) is large.

The chain applies these operations a fixed finite number of times, so \(b\) stays universal. Its one external input is the seeded soundness error at \((q, 4m, d, 1)\), which is \(A (4md)^A (x^B + q^{-B} + 2^{-4Bmd})\) at the error \(x\) it is fed, for the constants \(A\), \(B\) of Lemma 3.34; since \((4md)^A = 4^A (md)^A\) and \(2^{-4Bmd} \leq 2^{-Bmd}\), it has the shape whenever \(x\) does. Item 1 of Lemma 3.77 bounds the squared distance by \(\eta _1 = 2 - 2\sqrt{1 - \eta }\) with \(\eta = 2\sqrt{X} + 2X\), which is at most \(2\eta \) for every \(\eta \geq 0\), whether or not \(\eta {\lt} 1\), the square root of a negative number being \(0\). Outside the regime the trivial bound costs nothing: a nonnegative function bounded by a constant \(C\), and at most a function \(h\) of the shape wherever some function \(g\) of the shape is below one, is at most \(h + C g\) everywhere, and so has the shape. Here \(h = \delta _2 + \sqrt{\eta _1}\), \(C = 4\) and \(g = 48md/q + 2\sqrt{X} + 2X\), which is below one only where \(48md \leq q\) and \(2\sqrt{X} + 2X {\lt} 1\). Finally, the shape is monotone in \(\varepsilon \), which gives the bound at \(\min (\varepsilon , 1)\) for every \(\varepsilon \geq 0\).

Comments.

The paper takes the trivial bound outside the regime and enlarges \(a\) until the shape exceeds it; the formalization names the function the proof produces and proves that it has the shape, so the paper’s enlargement of \(a\) becomes a closure property (ErrSmall.of_cases). The lemma rests on the chain’s constants only, not on Theorem 3.38: the soundness of the test in a model (Definition 8.82) is stated at this function, and the theorem proves it.

MIPRE/Background/QLD/QLDError.lean names the bound, qldErr: \(\min (\texttt{qldBound}, 4)\) inside the regime and \(4\) outside. Here qldBound is item 2’s constant of Lemma 3.77 plus \(\sqrt{\eta _1}\), for item 1’s bound \(\eta _1\) on the squared distance: item 2 of Theorem 3.38 is item 2 of the lemma as it stands and \(\sqrt{\eta _1}\) is item 1’s distance, so qldBound dominates both (itemTwo_le_qldBound, sqrt_qldEta_le_qldBound). The cap \(4\) is the trivial bound: two unit vectors are within \(2\) of each other, and two projective measurements on a unit vector within \(4\) in summed squared state-dependent distance (BipartiteModel.sum_stateSqNorm_sub_le_four). le_qldErr is the interface the assembly of Theorem 3.38 uses: a quantity at most \(4\), and at most qldBound inside the regime, is at most qldErr. exists_qldErr_le is the closed form at \(\min (\varepsilon , 1)\), and Corollary 3.39 fixes its two constants once.

MIPRE/Background/QLD/ErrorShape.lean is the shape: ErrSmall says that a family of error terms is dominated by \(a(md)^a(\varepsilon ^b + q^{-b} + 2^{-bmd})\) with \(a \geq 1\) and \(0 {\lt} b {\lt} 1\) chosen before the parameters, on the range \(0 \leq \varepsilon \leq 1\), \(m, d \geq 1\), \(q \geq 2\). The range costs nothing: \(q \geq 2\) because \(q\) is the size of a field, and a failure probability above one may be read as one (ErrSmall.exists_le_min_one). The links of the chain are errSmall_deltaQ through errSmall_swapItemOne, the seeded soundness error enters through ErrSmall.deltaSim_comp, and not_errSmall_one guards the definition against being vacuous. ErrSmall.of_regime and ErrSmall.of_cases are the trivial bound outside the regime, needed for \(48md \leq q\) and for item 1’s smallness hypothesis. The divisibility \(4m \mid q\) that stage 4 needs is derived inside the regime, in Lemma 3.64.

3.7 Undecidability of the halting problem

[\(\checkmark \) (mostly) in Mathlib]

The halting problem is r.e. but not decidable; it is \(\mathrm{RE}\)-complete under many-one (indeed polynomial-time) reductions.

Proof ▶

Mathlib: ComputablePred.halting_problem and halting_problem_re, both at the empty input; the many-one reduction of an r.e. language to halting on the empty input is MIPRE.IsRE.exists_code_halts, by Mathlib’s \(S^m_n\) function Nat.Partrec.Code.curry. Polynomial-time computability of the reduction is not formalized (Section 1.3).

Source.

Turing (1936); in Mathlib as part of the Computability library.

Comments.

Listed to close the dependency graph: combined with the halting reduction (Theorem 6.214) it yields undecidability of approximating the game value, and \(\mathrm{RE}\)-completeness gives \(\mathrm{RE}\subseteq \mathrm{MIP}^*\).

3.8 Cook–Levin and succinct satisfiability

[\(\bullet \bullet \bullet \) hard]

Remark 3.80 What stage 1.2 leaves open, and where its weight is

Stage \(1.2\) of the ledger is by far its heaviest: after the refinement rounds of September 2026 the earlier snapshot held \(149\) of \(316\) live nodes and \(169\) of \(309\) challenges were raised against its original \(62\), against \(46\) for answer reduction and \(19\) for repetition. At the September 20 pin, stage \(1.2\) has \(150\) active nodes inside the \(347\)-node active ledger. Three facts about it bear on how this section should be formalized.

First, the Magic Square input is no longer an assumption. It was: node \(1.2.2.4.1\) was an import of  [ 4 , Theorem 6.9 ] , neither vendored nor reproved, carrying two adaptations made in the paper — a weakening of trace-norm \(O(\varepsilon )\) closeness to Euclidean \(O(\sqrt{\varepsilon })\), and a local basis change between two anticommuting pairs. What made it tractable was how narrowly it was consumed, through a single anticommutation consequence, and that observation is what eventually discharged it: the consequence is now proved directly from the game, as Lemma 3.10. The completeness leg never used it at all, resting instead on the in-file argument that anticommuting observables give a perfect Magic Square strategy (Lemma 2.23 below is that strategy, and it is already in Lean).

Second, the soundness proof of Theorem 3.38 is not in the main text at all: it is deferred to a five-file appendix, which is where most of stage \(1.2\)’s challenge weight sits, including one of the campaign’s three critical findings, at node \(1.2.2.15\): the construction of exact Pauli operators applied Schwartz–Zippel in the wrong direction — distinct polynomials of degree \(md\) agree on at most an \(md/q\) fraction, so for a non-multilinear \(g\) the disagreement indicator has expectation near \(1\) — which made the step equivalent to an unproven assertion about how much mass the simultaneous measurement places on non-multilinear outcomes. It is resolved, by bounding that mass first. A formalization should treat the appendix as the real content and the main-text statement as its interface.

The other two critical findings are worth naming here, because neither reaches this blueprint and the reason is the same in both cases. At node \(1.4\), the anchored repetition theorem was applied to a game that is not of the anchored product form at all: detyping destroys the product structure, and restricting a repeated strategy to the event that every coordinate is a real question costs \(16^k\). At node \(1.5\), the compression statement had omitted the doubly exponential term in its entanglement lower bound, which the recursion needs. Both are resolved upstream; both live in the entanglement-form apparatus that Theorem 5.6 and the \(\mathrm{val}^*\) chain replace (Remark 3.81). All three criticals are resolved, so this is not a soundness worry — it is an indication of where the delicate machinery is, and two thirds of it is machinery this route does not carry.

Third, the introspection statement that consumes all of this (node \(1.2\), Theorem 6.129) leaves a soundness gap of \(1/\mathrm{poly}(n)\) — not a constant, which is the stronger reading and the one the ledger is explicit about. That is exactly why parallel repetition has to follow it: repetition is what turns a gap shrinking with \(n\) back into the constant \(\frac12\) the recursion needs.

Remark 3.81 What is still admitted, after the discharges of September 2026

At the September 20 source pin, the ledger has \(347\) active nodes: \(344\) are validated and exactly three are admitted — asserted on the strength of a cited source rather than proved. The interesting fact is that these are not the three that were admitted when this section was first written: all of those were discharged, and two of the present three are in new territory.

What was discharged, and how, is the useful part:

  1. Anchored parallel repetition (node \(1.4.2\), the theorem of  [ 10 ] , which this blueprint no longer states) is no longer admitted upstream either: the campaign decomposed it into a \(60\)-node subtree, and the quantum relative-entropy data-processing inequality it rested on is derived there rather than imported — by joint convexity plus a Weyl twirl realising the partial trace as a convex combination of unitary conjugations, which is legitimate for the finite-dimensional partial-trace case. It is unused here regardless, since direct repetition (Theorem 5.6) replaces it and takes a value hypothesis rather than an entanglement one (Remark 5.11).

  2. Magic Square rigidity (node \(1.2.2.4.1\)) is no longer admitted either, and this one matters, because it was the assumption the pipeline actually consumed. The consequence the proof needs is not full self-testing but a single anticommutation bound, and that bound is now proved directly: Lemma 3.10. Theorem 3.9 stays in this section as cited background, with no live invocation, and the completeness leg never used it at all (Lemma 2.23).

  3. Efficient self-dual normal bases (node \(1.1.6.1\), Lemma 3.87) was narrowed to one imported construction in the companion ledger. Normal-basis construction and self-dualization were proved over sixteen sub-nodes; node \(1.1.6.1.1\) retained the deterministic construction of irreducible binary polynomials. That ledger history is unchanged. The Lean project now also proves this construction, with the original uniform polynomial-time contract (Lemma 3.103).

Thus the paper ledger’s remaining admitted input to this route is the classical deterministic polynomial-time construction of irreducible polynomials over \(\mathbb {F}_2\). This is a statement about the paper’s proof dependencies, not the current Lean frontier: the simultaneous seeded CL extension and unfinished Pauli steps still require formalization; the single-codeword seeded theorem is already proved. The mechanical ledger figure is in scripts/ledger-sync.py, which walks declared dependencies as well as decomposition and reports node \(1.1.6.1.1\) as reached from \(24\) of this blueprint’s statements.

The other two admitted nodes sit in the downstream chapter rather than the pipeline: node \(1.8.3\) (decidability of the first-order theory of real closed fields) and node \(1.8.6.1\) (the forward implication from the Connes embedding property to \(\min = \max \) for \(C^*(F_\infty )\)). They are reached only through Chapter 8, and Remark 8.146 says what they carry there. The Lean proof of Corollary 8.19 does not use node \(1.8.3\); the ledger’s dependency on it is unchanged.

Definition 3.82 Succinctly described 3SAT and decoupled 5SAT
✓

A Boolean circuit \(C\) with three inputs of length \(m\) and three single-bit inputs succinctly describes the 3SAT formula on the \(2^m\) variables \(x_0, \ldots , x_{2^m - 1}\) whose clauses are the \(x_{i_1}^{o_1} \vee x_{i_2}^{o_2} \vee x_{i_3}^{o_3}\) with \(C(i_1, i_2, i_3, o_1, o_2, o_3) = 1\), integers presented to the circuit in binary ( [ 1 , Definition of succinct descriptions of 3SAT formulas, Section 10 ] ). A decoupled 5SAT formula has five blocks of variables and clauses with one literal from each block, evaluated on five separate assignments; a circuit with two inputs of length \(\ell \), three of length \(r\) and five single-bit inputs succinctly describes one in the same way. Such a circuit describes the decider \(\mathcal{D}\) on \((n, x, y)\) at time \(T\) if, for all \(a, b \in \{ 0,1\} ^{2^\ell }\), some three assignments complete \((a, b)\) to a satisfying tuple exactly when \(a\) and \(b\) are the two-bit tape encodings (\(0 \mapsto 00\), \(1 \mapsto 01\), blank \(\mapsto 10\)) of strings of length at most \(T\) on which \(\mathcal{D}\) accepts \((n, x, y, \cdot , \cdot )\) within \(T\) steps. Circuits have fan-in and fan-out at most two and a terminal output gate, and their size is the number of gates.

Theorem 3.83 Explicit succinct Cook–Levin
✓

There is a polynomial-time algorithm that, given a decider \(\mathcal{D}\), an index \(n\), a time bound \(T\) (in binary), a question length \(Q\), a bound \(\sigma \) and strings \(x, y\), with \(\max \{ Q, 2\lceil \log n \rceil \} \leq T\), \(\left\vert {\mathcal{D}} \right\vert \leq \sigma \) and \(\left\vert {x} \right\vert , \left\vert {y} \right\vert \leq Q\), outputs a circuit \(C\) on \(3m + 3\) inputs which succinctly describes (Definition 3.82) a 3SAT formula \(\varphi \) on \(2^m\) variables such that

  1. for all \(a, b \in \{ 0,1\} ^{2T}\), the formula \(\varphi \) has a satisfying assignment whose first \(4T\) variables are \((a, b)\) if and only if \(a\) and \(b\) are the two-bit tape encodings of strings \(a', b'\) of length at most \(T\) such that \(\mathcal{D}\) accepts \((n, x, y, a', b')\) within \(T\) steps;

  2. \(m = O(\log T + \log \sigma )\) and \(2^m \geq 4T\);

  3. \(C\) has at most \(s(n, T, Q, \sigma ) = \mathrm{poly}(\log n, \log T, Q, \sigma )\) gates;

  4. the algorithm runs in time \(\mathrm{poly}(\log n, \log T, Q, \sigma )\);

  5. \(m\) and \(s\) are computable from the parameters in time polynomial in their bit lengths.

Proof ▶

Fix one interpreter machine \(U\), a multi-input Turing machine that runs the small-step semantics of the ambient model on a serialized configuration, and put the five parameters \(n, x, y\) and the two answers on its input tapes, the answers on the two tapes left free. Then the decider is *data* on an input tape and never becomes a machine, so the local check circuit of \(U\) is a constant; and the answer blocks are the contents of two tapes at time \(0\), which is item 1’s block structure for free. The time bound \(T\) in the cost of the ambient model becomes a tableau length \(S = 2^e\) with \(e = 5\lceil \log T \rceil + 5 \lceil \log \sigma \rceil + 24\), because a run of the decider of cost \(T\) is a run of \(U\) of at most \(400000 (T + \sigma + 1)^5\) steps.

Apply Lemma 3.84 to \(U\) at that length. Index its variables by bit strings of width \(m = 11 + 15 W + Q_b + G_b\), where \(W = e + 4\) is the width of a time, a position or a window offset: the top bit says whether the index is structured or is one of the first \(4T\) answer indices, and the remaining fields are a kind tag, a time, a tape, a position, a value, a state, the thirteen window offsets and a gate number. Each clause family of the tableau is then a predicate on those decoded fields, and each such predicate is computed by a formula over the \(3m + 3\) input bits of the describer, built from equality and comparison with a constant, equality of two fields, and a ripple-carry increment. The describer is the flattening of the disjunction of those formulas to a circuit, together with two clauses forcing the cell at position \(T + 3\) of each free tape to hold the blank, which is what bounds the answers read off a satisfying assignment by \(T\) rather than by \(2S\).

Item 1 is the correctness of the tableau in both directions, transported along the indexing: an assignment of the tableau gives one of the formula by decoding, and an assignment of the formula gives one of the tableau by the canonical index, where an answer cell of a free tape inside the answer block is sent to its answer index, so that the extension hypothesis on the first \(4T\) variables is exactly the time-\(0\) row of that tape. Item 2 is arithmetic on \(m\) and \(e\). For items 3 and 4, every builder of the formula is a polynomial-time function of the parameters, since the encoding of a formula is the encoding of its post-order list and each builder is therefore a concatenation, a map or a fold over lists, with the widths and offsets carried in unary; and then item 3 needs no separate argument, because the output of a polynomial-time function is no larger than its running time and a circuit has at most as many gates as its encoding has nodes. Item 5 follows by rounding \(s\) up to a power of two whose exponent is a multiple of the bit lengths of the parameters.

Lean statement.

The theorem is the structure MIPRE.SAT.SuccinctCookLevin: the algorithm a polynomial-time function of the ambient model (PolyTimeFun) from \(((\mathcal{D}, n, T, Q, \sigma ), x, y)\) to circuits as data, “within \(T\) steps” read as cost at most \(T\) in the ambient model, the reading of every time bound of the pipeline, and the five items as fields. An earlier statement asked for a succinct description in the sense of Definition 2.42, which is a program answering bit queries and not the circuit the proof produces and the PCP consumes, and it carried none of the five items, all of which Lemma 6.147 and the PCP parameters depend on. The statement is validated by its consumer (MIPRE.SAT.DecoupledDescriber, Lemma 6.147) before its proof; the route to the proof is planning/succinct-cook-levin.md.

Formalization status.

Complete: statement and proof, the structure inhabited by MIPRE.SAT.succinctCookLevin (MIPRE/TM/CookLevin/). Three things the formalization settled against the first design, all recorded in planning/succinct-cook-levin.md. The index width has \(W = e + 4\), not \(e + 2\), because a position field must hold \(2S + 7\); the state field is \(\lceil \log |Q| \rceil \) bits rather than a fixed four. Two clauses beyond the tableau are needed: soundness needs answers of length at most \(T\), and the tableau alone admits answers of length up to \(2S\). And the canonical index of an answer cell of a free tape is its answer index, not its structured index — that is what ties the extension hypothesis on the first \(4T\) variables to the time-\(0\) row of the tape, and getting it wrong makes the soundness direction unprovable rather than merely awkward.

Two notes on the Lean, both about scale. The check circuit of the interpreter machine is the truth-table circuit of a fixed Boolean function on the window variables, so its gate count is \(7 \cdot 2^{|\mathrm{window}|}\) — an enormous constant, exactly as the paper’s lem:pack-check-size carries one. Nothing unfolds it, and nothing may: the defining terms of the state count and of the check circuit mention a cardinality and a truth table whose evaluation does not terminate in practice, so they are kept opaque (the state width is irreducible and the circuit is taken from an existential). And the program layer is written so that each of the fifty-odd family formulas costs one simp: a field record is a record of readers of the describer’s input whose evaluation is a structure literal of those programs’ own values, which makes every formula match its program definitionally.

Source.

Cook  [ 23 ] and Levin for the tableau reduction; Papadimitriou and Yannakakis  [ 22 ] for succinct representations and their complexity; the explicit form needed here is  [ 1 , Section 10 ] .

Comments.

This is the classical core of answer reduction: the players prove satisfiability of \(\varphi \) (arithmetized over a low-degree extension) instead of sending \((a,b)\). The statement is long but entirely combinatorial. Cook–Levin has been formalized in other proof assistants; a Lean formalization with the explicit-uniformity guarantees above is a substantial but well-specified sub-project.

A caution on the construction, from the verification campaign  [ 33 ] and not checked here: in the Tseitin encoding of  [ 6 ] , which the explicit form of  [ 1 , Section 10 ] follows, the formula is reported to omit the output-wire conjunct, so that it is satisfiable for every input and the central equivalence of the construction fails as written. The statement above is end-to-end and so does not inherit the defect textually, but a formalization of it must supply what the repair needs: the output-wire conjunct, the out-degree-zero hypothesis that yields individual degree \(6\), and the exact variable count on which the later PCP parameters depend — none of which the statement currently fixes.

Lemma 3.84 Correctness of the Cook–Levin tableau
✓
#

Let \(M\) be a multi-input Turing machine (Definition 4.1) with \(i\) input tapes and \(w\) work tapes over a finite alphabet, \(\mathsf{acc}\), \(s_0\), \(s_1\) symbols and \(S\) a step bound, and fix the strings on some of the input tapes. The tableau formula of \(S\) steps of \(M\) is the 3SAT formula on the variables “cell \(p\) of tape \(d\) at time \(t\) holds \(v\)” (one for each of \(2S + 7\) cells and each value: a symbol, the blank or the boundary marker), “the head of tape \(d\) is on cell \(p\) at time \(t\)”, “the state at time \(t\) is \(q\)”, the emission flags of every step, and, for every step and every choice of a five-cell window on each tape, the gate variables of a circuit deciding local consistency of the window; its clauses are the start row, the boundary rows, the free-tape row (a string over \(\{ s_0, s_1\} \) followed by blanks), the emission bookkeeping, the acceptance row and the circuit-to-3SAT clauses of the local check at every window. The formula is satisfiable if and only if \(M\), started on the fixed strings and on some strings over \(\{ s_0, s_1\} \) on the free input tapes, halts within \(S\) steps having output exactly \(\mathsf{acc}\).

Proof ▶

Completeness: the encoding of the run satisfies every clause, the window clauses because the windows of a run pass the local check (locallyConsistent_localCfgOf) and the circuit computes it, which is its specification (IsCheckCircuit). Soundness: the time-\(0\) rows of a satisfying assignment determine the free strings; by induction on time the rows encode the run, because a locally consistent window whose time-\(t\) part is that of a configuration has the time-\((t + 1)\) part of its successor (post_of_pre); the acceptance row and the emission bookkeeping then give the output. Every head stays on an interior cell: a head moves at most one cell per step and a tape has \(2S + 7\) cells.

Source.

The tableau of  [ 1 , Section 10 ] and the standard argument of Cook  [ 23 ] ; the companion paper’s answer_reduction.tex (its lem:correct-tableau).

Comments.

The lemma is Cook–Levin for one fixed machine; the theorem applies it to a fixed interpreter machine for the decider’s program, and the succinct description is a circuit for the clauses of this formula — pieces S2 and S3 of planning/succinct-cook-levin.md. The interpreter machine (S2) is formalized: MIPRE.TM.Interp.U, with accepts_of_acceptsWithin and acceptsWithin_of_accepts (MIPRE/TM/Interp/Run.lean) — on the inputs \((\mathcal{D}, n, T, x, y, a, b)\) with \(\left\vert {a} \right\vert , \left\vert {b} \right\vert \leq T\), it halts having output exactly \(1\), within an explicit polynomial number of steps, if and only if \(\mathcal{D}\) accepts \((n, x, y, a, b)\) within cost \(T\). The local check circuit is a parameter of the formula, with its specification a hypothesis of the lemma, so that the lemma is proved once and the circuit supplied with the describer. The windows are five cells wide: a head at one of the middle three cells then sees, in the window, both the cell it leaves and the cell it reaches, and the clamped moves of an input head at the ends of the input are decided from the window alone.

3.9 Self-dual normal bases

[\(\bullet \bullet \) medium]

blue( Thomas: Is this needed? )

Definition 3.85 Self-dual and normal bases
✓

Let \(K / \mathbb {F}\) be a finite extension of finite fields, \(q = \left\vert {\mathbb {F}} \right\vert \). A basis \((e_i)\) of \(K\) over \(\mathbb {F}\) is self-dual when its Gram matrix for the trace form is the identity, \(\mathrm{tr}_{K / \mathbb {F}}(e_i e_j) = \delta _{ij}\), and normal when its vectors are the Frobenius orbit \(\alpha , \alpha ^q, \alpha ^{q^2}, \ldots \) of a single element \(\alpha \in K\).

Lemma 3.86 Self-dual coordinates are trace pairings
✓

Let \((e_i)\) be a self-dual basis of \(K / \mathbb {F}\) and \(\kappa (x)\) the coordinate vector of \(x \in K\). Then

  1. \(\kappa (x)_i = \mathrm{tr}_{K/\mathbb {F}}(x e_i)\), and

  2. \(\mathrm{tr}_{K/\mathbb {F}}(xy) = \kappa (x) \cdot \kappa (y)\).

Proof ▶

For the first, expand \(x = \sum _j \kappa (x)_j e_j\), multiply by \(e_i\) and take the trace: self-duality kills every term but \(j = i\). The second follows from the first by the same expansion, \(\mathrm{tr}(xy) = \sum _j \kappa (x)_j \mathrm{tr}(e_j y) = \sum _j \kappa (x)_j \kappa (y)_j\).

Source.

Items 1 and 2 of the paper’s lem:downsize_field (preliminaries.tex); ledger node 1.1.6.1.11, which also records that neither item needs normality or odd \(k\). The paper’s third item, compatibility of the downsized matrix map with \(\kappa \) (\(\kappa _{\mathrm{m}}(M)\kappa (v) = \kappa (Mv)\)), is not formalized here: it is wanted by the conditionally linear downsizing of Lemma 6.7, which is stated over \(\mathbb {F}_2\) and so has not needed it.

Comments.

These two identities are why the pipeline insists on self-duality rather than on an arbitrary basis: they make \(\kappa \) computable by the trace form, with no matrix inversion, and turn the trace form into the standard inner product on coordinates. They are also what collapses the Pauli phase index \(G_E \kappa (b)\) to \(\kappa (b)\) at \(G_E = I\) (ledger node 1.1.6.1.13).

There is a deterministic algorithm that, given an odd integer \(k {\gt} 0\), outputs in time \(\mathrm{poly}(k)\) a self-dual normal basis of \(\mathbb {F}_{2^k}\) over \(\mathbb {F}_2\) together with its multiplication tables.

Proof ▶

Construct the normal basis by Lemma 3.108, apply Lemma 3.109, and transport the multiplication table by Lemma 3.107. The composed ambient program has unary degree as its only input and prints both the basis vectors and all table coefficients. Its source runtime is bounded by a fixed polynomial in \(k\).

Source.

Shoup’s deterministic irreducible-polynomial construction  [ 24 ] , and then the companion campaign’s own constructions. The attribution here used to name Lenstra’s isomorphism algorithm  [ 25 ] and the classical characteristic-\(2\) existence results, following the discussion in  [ 1 , Section 3 ] ; the campaign has since proved both steps — ledger node \(1.1.6.1.6\) discharges the normal-basis construction contract “formerly attributed to Lenstra” and node \(1.1.6.1.8\) the self-dualization contract “formerly attributed to Wang” — and the Lean development now proves the remaining Shoup construction as well.

Comments.

Needed so that verifiers can do field arithmetic over \(\mathbb {F}_{2^k}\) using only \(\mathbb {F}_2\)-data (the “downsize” maps), uniformly and deterministically. This is why field sizes are restricted to \(q = 2^k\), \(k\) odd (“admissible”). Self-contained algebra/algorithmics; independent of everything quantum. Two consumers now name it: the admissible field with a bit representation that Theorem 6.164 takes as a parameter (MIPRE.SAT.BinField), and the downsized samplers of Lemma 6.7 once they move past field size \(2\).

The companion ledger retains its historical admission of Shoup’s construction at node \(1.1.6.1.1\). The Lean declaration MIPRE.LowDegree.exists_shoup_irreducible is now a theorem, proved by the explicit program of Lemma 3.103. Its input is the requested degree in unary, so the ambient bound is polynomial in the degree and includes printing all coefficient bits. The proof covers every positive degree in characteristic two, including powers of two, with fixed behavior at degree zero.

The complete effective self-dual normal-basis construction in SAT/EffectiveNormalBasis.lean composes this proved field constructor with the verified normal-element, inverse-Gram self-dualization, and multiplication-table programs. Fixed-space separation is performed directly in the cyclic algebra, as detailed in Lemma 3.108; this avoids materializing polynomial factors while implementing the primitive-projection argument. Exact axiom guards in MIPRE/Axioms.lean check the field constructor, the classical PCP decider, and this effective basis theorem against Lean’s standard axioms alone. This local proof does not rewrite the companion ledger’s events or discharge unrelated unfinished pipeline theorems.

Let \(R\) be a commutative ring on which \(x \mapsto x^2\) is a bijection and let \(\tau \) be a ring automorphism of \(R\). Then every \(u \in R\) with \(\tau (u) = u\) is of the form \(a \cdot \tau (a)\).

Squaring is a bijection of the group algebra \(\mathbb {F}[G]\) when \(\mathbb {F}\) is a finite field of characteristic two and \(G\) is a finite abelian group of odd order. For \(\mathbb {F}=\mathbb {F}_2\), its inverse has the explicit coefficient formula \(b(g)=u(g+g)\). This \(b\) satisfies \(b^2=u\), and \(b\tau (b)=u\) whenever \(\tau (u)=u\).

Proof ▶

For the first statement, let \(b\) be the square root of \(u\). Then \(\tau (b)^2 = \tau (b^2) = \tau (u) = u = b^2\), so \(\tau (b) = b\) by injectivity of squaring, and \(b \cdot \tau (b) = b^2 = u\).

For the second, squaring is additive in characteristic two, and on a single generator \(\delta _g r\) it is \(\delta _{g + g} r^2\). Doubling is injective on \(G\): if \((a - b) + (a - b) = 0\) then the additive order of \(a - b\) divides both \(2\) and \(\left\vert {G} \right\vert \), which are coprime because \(\left\vert {G} \right\vert \) is odd. So the coefficient of \(x^2\) at \(g + g\) is the square of the coefficient of \(x\) at \(g\), and \(x^2 = 0\) forces \(x = 0\). Squaring is then injective, because \((x - y)^2 = x^2 - y^2\) in characteristic two, and injective implies bijective on a finite set. Over \(\mathbb {F}_2\) the coefficients are fixed by squaring, so the displayed coefficient permutation gives the square root directly. The following lemma implements that permutation in the ambient cost model.

Comments.

This is the self-dualization step of Lemma 3.87, and it is where oddness of \(k\) is used. If \(\alpha \) is a normal element of \(\mathbb {F}_{2^k}/\mathbb {F}_2\) with Galois group \(G\), the trace-form Gram matrix of its orbit is the circulant determined by \(c \in \mathbb {F}_2[G]\), \(c(g) = \mathrm{tr}(\alpha \cdot g\alpha )\): it is a unit, because the Gram matrix of a basis under the nondegenerate trace form is invertible, and it is fixed by the involution \(\tau \) induced by \(g \mapsto g^{-1}\), because that Gram matrix is symmetric. Replacing \(\alpha \) by \(a \cdot \alpha \) replaces \(c\) by \(a \cdot \tau (a) \cdot c\), so a self-dual normal basis is exactly a solution of \(a \cdot \tau (a) = c^{-1}\), which is what the lemma supplies. Nodes \(1.1.6.1.7\) and \(1.1.6.1.8\) carry an explicit circulant Gram manipulation instead; the argument above replaces it, and needs no factorization of \(X^k - 1\) and no norm computation in the factors.

What the lemma does not do is assemble a basis: the group algebra must be made to act on \(\mathbb {F}_{2^k}\), the Gram identity must be proved, and \(c\) must be shown to be a unit. Those three are bookkeeping, and Lemma 3.90 now carries them out; the algorithm is a separate matter again.

For odd \(k\), the square-root permutation on the coefficient vector of \(\mathbb {F}_2[\mathbb {Z}/k\mathbb {Z}]\) is computed by one uniform ambient program in time polynomial in \(k\). The output vector has length \(k\) and represents a square root of the input group-algebra element.

Proof ▶

Split the list into coefficients in even positions and coefficients in odd positions, then append those lists. At position \(i\) this reads the coefficient at \(2i\) modulo \(k\). A size-bounded fold implements the split. The input encoding has size at most \(4k+1\), giving the stated polynomial bound. The preceding lemma supplies the algebraic identity.

Scope.

This completes the square-root operation only. Computing the normal element, the inverse Gram element and the transported field tables remains part of Lemma 3.87.

Let \(K / \mathbb {F}\) be a Galois extension of finite fields of characteristic two whose degree is odd. Then \(K\) has a basis over \(\mathbb {F}\) that is at once normal and self-dual. In particular \(\mathbb {F}_{2^k}\) has a self-dual normal basis over \(\mathbb {F}_2\) for every odd \(k \geq 1\).

Proof ▶

Let \(G = \mathrm{Gal}(K/\mathbb {F})\), which is cyclic, hence abelian, so \(\mathbb {F}[G]\) is a commutative ring, and \(\left\vert {G} \right\vert = [K : \mathbb {F}]\) is odd. Let \(\alpha \) be the normal element Mathlib’s normal basis theorem supplies, write \(\mathrm{ofAlg}(a)\) for the element of \(K\) with normal-basis coordinates \(a \in \mathbb {F}[G]\), and let

\[ c(x, y) \in \mathbb {F}[G], \qquad c(x, y)_g = \mathrm{tr}(x \cdot g y), \qquad c = c(\alpha , \alpha ). \]

Because \(\mathrm{tr} \circ g = \mathrm{tr}\), the pairing of two members of one orbit depends only on their ratio, and expanding both coordinate sums gives the transformation law

\[ c(\mathrm{ofAlg}(a), \mathrm{ofAlg}(b)) = a \cdot \tau (b) \cdot c, \]

where \(\tau \) is the involution of \(\mathbb {F}[G]\) induced by \(g \mapsto g^{-1}\). The element \(c\) is fixed by \(\tau \), because \(\mathrm{tr}(\alpha \cdot g^{-1}\alpha ) = \mathrm{tr}(g\alpha \cdot \alpha )\), and it is a unit: if \(c \cdot z = 0\) then the transformation law with \(b = \tau (z)\) makes \(\mathrm{tr}(\mathrm{ofAlg}(\tau z) \cdot x)\) vanish for every \(x \in K\), so \(\mathrm{ofAlg}(\tau z) = 0\) by nondegeneracy of the trace form, so \(z = 0\); a non-zero-divisor in a finite commutative ring is a unit. Then \(c^{-1}\) is also \(\tau \)-fixed, and Lemma 3.88 — squaring is bijective on \(\mathbb {F}[G]\) in characteristic two with \(\left\vert {G} \right\vert \) odd — gives \(a\) with \(a \cdot \tau (a) = c^{-1}\). For \(\beta = \mathrm{ofAlg}(a)\) the transformation law reads \(c(\beta , \beta ) = 1\), which says exactly that the Frobenius orbit of \(\beta \) is orthonormal for the trace form. It is in particular linearly independent, so it is a basis, and it is normal by construction.

Comments.

This is existence, not construction, so it is not Lemma 3.87 and does not discharge any ledger node: the normal element comes from Mathlib’s IsGalois.normalBasis, which is a theorem and not an algorithm, and nothing here is claimed to run in \(\mathrm{poly}(k)\). What it does settle is that the three bookkeeping items left open by Lemma 3.88 — making the group algebra act, the Gram identity, and unitness of \(c\) — are genuinely bookkeeping, and that the short self-dualization argument assembles. The formalization indexes the group algebra by \(G\) itself rather than by \(\mathbb {Z}/k\), which is what makes \(\mathrm{ofAlg}\) the inverse of Mathlib’s normalBasis.repr on the nose; the CommGroup instance comes from cyclicity, supplied locally.

One fixed deterministic ambient program removes the trailing zero coefficients from any little-endian binary coefficient list in polynomial time. Its output is no longer than the input, is empty or ends in one, and represents the same polynomial over \(\mathbb {F}_2\). More generally it preserves Horner evaluation at any element of any commutative ring. This program requires no irreducible-polynomial construction.

Proof ▶

Fold the coefficient list from its highest coefficient downwards. Ignore a zero while the accumulator is empty; otherwise prepend the current coefficient. Induction proves preservation of Horner evaluation and the leading-coefficient property. Each step adds at most one coefficient, so every intermediate encoded accumulator has size bounded by the input and the generic bounded-fold program gives the polynomial runtime bound.

Scope.

This generic normalization result is used by the complete irreducible-polynomial constructor in Lemma 3.103.

Given a binary coefficient list \(a\) and the \(d\) lower coefficients \(p\) of a monic polynomial \(f\), one deterministic ambient polynomial-time program returns coefficient lists \(q,r\) satisfying \(fq+r=a\) and \(\deg r{\lt}d\). Their lengths are at most the length of \(a\) and \(d\), respectively. The case \(d=0\) divides by one and returns zero remainder.

Proof ▶

Process the dividend by Horner’s rule, keeping a remainder of width \(d\) and recording its discarded high bit as the next quotient coefficient. Each shift subtracts the indicated multiple of the monic divisor; induction gives the reconstruction identity. The remainder width bounds its degree. Normalize both outputs. The quotient grows by one bit per iteration and the remainder cannot grow, even from malformed initial states, so the ambient bounded-fold theorem gives the global polynomial bound.

For every monic \(f\in \mathbb {F}_2[X]\) of degree \(d\), the quotient \(\mathbb {F}_2[X]/(f)\) has canonical \(d\)-bit coordinates in its power basis. Encoding and decoding are inverse on correctly sized lists, and equality of their root evaluations is equivalent to equality of the lists. The uniform XOR and reduced-multiplication programs implement quotient addition and multiplication. Irreducibility and squarefreeness are not required.

Proof ▶

The monic power basis identifies each quotient element with its \(d\) binary coefficients. The basis representation identities prove the two inverse laws. Evaluation at the canonical root equals decoding on fixed-width vectors. The root satisfies the monic reduction equation, so the generic XOR and Horner multiplication identities give the stated arithmetic. The constant-one modulus has a trivial quotient and empty coordinate vectors.

Scope.

The coordinate maps describe the semantics of the explicit coefficient programs. They do not enumerate a quotient or supply an abstract field conversion as an executable primitive.

Normalization of a binary coefficient list is empty exactly when its polynomial is zero; otherwise its length is the degree plus one. List-based monic division agrees with polynomial division. Uniform deterministic polynomial-time programs compute the normalized polynomial gcd and polynomial quotient on all binary coefficient lists. The quotient by zero is zero. For a nonzero divisor which divides the dividend, the quotient reconstructs the dividend by multiplication. The gcd width is at most the larger input width, and quotient width is at most the dividend width.

Proof ▶

A nonempty normalized list ends in one, determining the degree and monicity. The reconstruction identity and strict remainder-degree bound uniquely identify monic quotient and remainder. Euclidean steps preserve the gcd and strictly decrease the normalized remainder length until it is zero, so the original divisor width bounds the iteration count. Intermediate widths never exceed the initial maximum, including malformed states of the ambient loop. Quotient computation normalizes the divisor and invokes monic division, with an explicit zero branch.

For a monic binary modulus of degree \(d\), uniform deterministic polynomial-time programs compute the matrix of squaring and a family of \(d\) vectors spanning its fixed space. Every decoded generator is idempotent, and every idempotent lies in their binary span. If the modulus is squarefree, squaring on the quotient is bijective.

Proof ▶

Square each power-basis vector using the supplied modulus and transpose the resulting columns. The fixed-space matrix is this matrix plus the identity; the verified binary kernel program prints a spanning family. The power-basis coordinate equivalence transports the kernel and its span back to quotient elements. For a squarefree modulus, equality of squares makes the square of the difference zero. A polynomial lift of that difference has its square divisible by the modulus; squarefreeness implies divisibility of the lift itself. Squaring is therefore injective, hence bijective on the finite quotient.

Scope.

Computing a spanning family does not enumerate its binary linear combinations. The next lemma extracts and reconstructs the factors.

A fixed deterministic polynomial-time program factors every nonconstant monic squarefree polynomial over \(\mathbb {F}_2\), given its lower coefficient bits. Every printed factor is monic and irreducible, and their product is the input.

Proof ▶

Start with the identity idempotent and split each retained component by each computed Frobenius-fixed generator, discarding zero components. Orthogonality bounds the number of nonzero components by the quotient dimension. A component that no generator splits is primitive, since the generators span all idempotents. For a primitive component represented by \(E\), compute \(\mathrm{gcd}(f,E-1)\) with the verified Euclidean program. Divisibility by this gcd is equivalent to annihilation by \(E\) in the quotient. Bijectivity of squaring and primitivity make the corresponding quotient a field, proving irreducibility. Orthogonal components yield coprime factors, while their sum is the identity; the resulting factors therefore reconstruct \(f\). The executable splitting loop caps intermediate lists at the input dimension, providing a polynomial bound on every raw input as well as on inputs satisfying the squarefree contract.

Given a supplied monic irreducible binary modulus, a fixed-width representation of \(a\) in its quotient field, and a unary integer \(r\), a fixed polynomial-time program prints the binary coefficients of \(\prod _{i=0}^{r-1}(X+a^{2^i})\) whenever \(a^{2^r}=a\). The output polynomial is monic of degree \(r\). If \(r{\gt}0\) is the minimal-polynomial degree of \(a\) over \(\mathbb {F}_2\), the output is that minimal polynomial and is irreducible.

Proof ▶

Repeated modular squaring constructs the orbit, and polynomial multiplication in the supplied quotient constructs the product. Closing the orbit makes each coefficient fixed by squaring. In a field of characteristic two such a coefficient is zero or one; faithful power-basis coordinates therefore justify reading its constant bit. The resulting binary polynomial vanishes at \(a\). Minimal-polynomial divisibility, monicity, and equal degrees identify it with the minimal polynomial when the exact-degree hypothesis holds. All loops are bounded by supplied unary lengths and coefficient widths.

For every odd prime \(q\), a fixed polynomial-time program on unary \(q\) prints a canonical monic irreducible binary polynomial \(f\) of degree \(m=\mathrm{ord}_q(2)\), with \(\mathrm{gcd}(q,m)=1\), such that the specified root of \(f\) in \(\mathbb {F}_2[X]/(f)\) has no \(q\)th root in that field.

Proof ▶

Choose the first irreducible factor of the squarefree cyclotomic polynomial \(\Phi _q\). Repeatedly factor \(f(X^q)\). A singleton factor list certifies that the current root is a nonresidue; retain the current polynomial and stop. Otherwise, every factor has the original degree \(m\), and the first factor advances the primitive-root order from \(q^j\) to \(q^{j+1}\). The order of a nonzero element of a field of size \(2^m\) bounds the number of advances by \(m\), so \(m\) iterations suffice. Every query is squarefree by its cyclotomic invariant. Clipping each nonterminal choice to the initial coefficient width bounds all raw executions; the exact-degree invariant shows that clipping preserves valid executions.

A fixed polynomial-time program, given the requested degree \(2^e\) in unary, prints exactly \(2^e+1\) coefficient bits of a monic irreducible polynomial of degree \(2^e\) over \(\mathbb {F}_2\), for every \(e\geq 0\).

Proof ▶

Degree one uses \(X\), and degree two starts from \(X^2+X+1\). At each later stage, the current root \(\alpha \) has the invariant that \(Y^2+Y+(\alpha ^3+\alpha ^2)\) is irreducible. The quadratic-basis calculation preserves this invariant at the next root. Compute the closed orbit polynomial of \(\alpha ^3+\alpha ^2\) over the current field and substitute \(X^2+X\); the result is monic of twice the current degree. The new quadratic root lies outside the current field, and the power-of-two subfield divisibility argument proves its full doubled degree. The executable loop stops when the requested width is reached and caps intermediate coefficients by that width. Its fuel is the unary requested degree, so even malformed inputs satisfy one polynomial bound.

A fixed polynomial-time program takes unary \(q\) and unary \(r\). If \(q\) is an odd prime and \(r=q^{e+1}\) for \(e\geq 0\), it prints exactly \(r+1\) coefficient bits of a monic irreducible binary polynomial of degree \(r\). On arbitrary inputs its output has at most \(r+1\) bits, where \(r\) denotes the second input length.

Proof ▶

Construct the nonresidue polynomial \(f\) of degree \(m=\mathrm{ord}_q(2)\). The odd-prime Kummer criterion makes \(f(X^r)\) irreducible. In its explicitly represented quotient, with root \(\beta \), compute \(\gamma =\sum _{i=0}^{m-1}\beta ^{2^{ri}}\) by repeated modular squaring and addition. Its Frobenius period divides \(r\). To show its degree is exactly \(r\), use the subfield generated by \(\beta ^q\): membership of \(\gamma \) in that subfield would produce a nonzero polynomial of degree less than \(q\) vanishing at \(\beta \). The residues of \(2^{ri}\) modulo \(q\) are distinct because \(\mathrm{gcd}(r,m)=1\), which gives a nonzero coefficient in that polynomial. The relative degree of \(\beta \) is \(q\), a contradiction. The closed orbit program therefore prints the minimal polynomial of \(\gamma \). The flat extension has degree \(mr\), and all arithmetic, trace, and orbit loops use the supplied unary parameters and fixed quotient widths, giving a global polynomial bound.

Lemma 3.101 Effective combination of coprime degrees
✓

A fixed polynomial-time program combines monic irreducible binary polynomials \(f,g\) of coprime degrees \(a,b\) into a monic irreducible binary polynomial of degree \(ab\). Its inputs are the lower coefficient bits of \(f\) and the full coefficient bits of \(g\).

Proof ▶

In the supplied quotient for \(f\), form \(H(X)=\prod _{i=0}^{a-1}g(X+\alpha ^{2^i})\), where \(\alpha \) is its specified root. Frobenius permutes the factors, so the coefficients descend to binary bits. This polynomial is monic of degree \(ab\) and vanishes at \(\alpha +\beta \) for a root \(\beta \) of \(g\) in a common algebraic closure. Coprimality of the two Frobenius periods forces the degree of \(\alpha +\beta \) to be \(ab\); comparison with its minimal polynomial proves irreducibility. Polynomial translation, multiplication, and the length-\(a\) product use bounded coefficient arrays.

Proof ▶

Enumerate the unary indices from zero through \(n\), test primality by trial division, and compute the largest dividing prime power by bounded unary multiplication and divisibility tests. Each arithmetic routine has a polynomial bound on all inputs. The resulting list agrees with the proof-only list \(q^{n.\mathrm{factorization}(q)}\). Unique factorization gives its product; distinct prime indices give coprime powers, and all other indices contribute one. Divisibility of entries and prefix products follows from the product identity. The mathematical factorization function appears only in correctness proofs, not in the executable program.

There is one fixed deterministic ambient program and one polynomial \(R\) such that, on unary input \(n\geq 1\), the program prints \(n+1\) coefficient bits of a monic irreducible polynomial over \(\mathbb {F}_2\) of degree \(n\) within \(R(n)\) steps. The same bound includes degree zero, where the program returns the constant polynomial one. The public constructor shoupIrreducible is this specified program, and exists_shoup_irreducible is a proved theorem.

Proof ▶

Compute the unary prime-power decomposition of \(n\) and dispatch each contribution to the power-of-two or odd-prime-power constructor; neutral contributions use \(X\). Starting from \(X\), fold the coprime-degree combination over this ordered list. The degrees are pairwise coprime and have product \(n\). Every intermediate degree is at most \(n\), so clipping the lower coefficients to the original unary input length preserves each valid step and gives a global fold bound. Append the leading coefficient to obtain the exact \(n+1\)-bit output. The composite PolyTimeFun supplies a polynomial bound on actual encoded execution; substituting the unary encoding size \(2n+1\) gives the displayed polynomial \(R\). No existential choice is used to select the program.

Source and audit.

This is the characteristic-two construction from Shoup  [ 24 ] , using the squarefree factorization oracle and the two prime-power branches before coprime assembly. Exact guards for the constructor and its effective consumers exclude the former Shoup axiom and any replacement nonstandard axiom. The companion ledger’s historical admission is unchanged.

For a monic irreducible binary polynomial \(f\) of degree \(k\), its quotient field has a canonical \(k\)-bit power-basis representation. Uniform ambient programs on coefficient lists implement addition and multiplication in that field. Using the proved Shoup construction, one uniform multiplication program also constructs the modulus from unary \(k\), and runs in time polynomial in \(k\) on \(k\)-bit operands. This supplies a field family for every admissible odd \(k\).

Proof ▶

XOR implements addition. Shift a coefficient vector and, when its highest bit is one, XOR the lower coefficients of the monic modulus. Horner multiplication uses this reduction after each shift. The accumulator length never increases, so the ambient fold has a polynomial size and time bound. Horner evaluation at a root of \(f\) proves correctness, and the quotient’s power basis proves that correctly sized bit vectors are canonical. Normalize Shoup’s output by taking its first \(k\) coefficients and treating the leading monic coefficient implicitly. Compose the programs; the encoded input has size at most \(10k+5\).

Scope.

This is the addition and multiplication part of the effective-field node. Lemma 3.105 supplies element inversion and trace computation. Matrix algorithms, the normal-element construction and transport to a self-dual normal basis remain open. The supplied-modulus arithmetic and the uniform field constructor use only Lean’s standard axioms.

Uniform ambient programs compute binary exponentiation, inversion of nonzero field elements, iterated Frobenius, and the trace in the Shoup polynomial-basis field. Inversion and trace computation, including construction of the modulus, take polynomial time in the unary extension degree \(k\) on \(k\)-bit operands. After \(k\) squarings an element returns to itself, and the sum of its first \(k\) Frobenius iterates is its algebraic trace embedded in the extension field.

Proof ▶

Binary exponentiation reads the exponent bit by bit, squaring the current power and multiplying the accumulator when the bit is one. For a nonzero operand use the exponent \(2^k-2\), constructed directly as a \(k\)-bit string. Fixed-width accumulators give a polynomial bound even on malformed inputs. A second loop squares its current element and XORs it into an accumulator. Induction identifies the accumulated sum, and the finite-field trace formula identifies it with the algebraic trace. The concrete programs preserve the canonical quotient encoding.

Scope.

These are element operations. Effective matrix construction, Lemma 3.108 constructs the normal element, and Lemma 3.109 supplies the effective self-dualizing basis change. They are composed in Lemma 3.87. Lemma 3.107 supplies the Frobenius matrix, inverse Gram computation and multiplication-table transport in any supplied basis. Lemma 3.106 supplies the binary matrix operations, elimination and solves.

Lemma 3.106 Effective binary matrix arithmetic and elimination
✓
#

Uniform polynomial-time ambient programs compute binary vector addition and dot products, matrix application, transposition and multiplication, a basis of the span of a supplied family, solutions of consistent binary linear systems, inverses of nonsingular binary matrices, and generators of matrix kernels. Explicit output dimensions are supplied in unary. Basis rows retain coefficient certificates in the original family; the returned vectors are independent, span exactly that family, and number at most the ambient dimension. Inverse output uses canonical binary coordinates and satisfies both multiplication identities.

Proof ▶

Reduce each candidate against the stored pivots, XORing its coefficient certificate at every step, and append a nonzero remainder at its first nonzero coordinate. Later rows vanish at every earlier pivot. This triangular invariant proves independence; reduction preserves membership in every subspace containing the stored rows, which proves equality of spans. Reducing a target with an initially zero certificate gives its coefficients in the original generating family. Apply this solver to the columns of a matrix and to each standard basis vector to construct an inverse. Each reduction preserves or shrinks both row widths, and insertion adds a row of size bounded by the candidate’s size. These bounds prove polynomial runtime on all raw inputs, including malformed ones.

Reducing the graph of the original matrix map and retaining the certificate component gives a linear projection onto its kernel. Its images of the standard basis are the computed kernel generators; they number exactly the input dimension and may include zero or dependent vectors.

Scope.

The normal-element construction remains separate. These programs supply the kernels, solves and matrix inverse needed by that construction. The field-matrix applications are assembled in Lemma 3.107.

The canonical Shoup-field coordinates form a binary linear equivalence. Uniform polynomial-time ambient programs construct the binary Frobenius matrix, the trace Gram matrix of a supplied family, its inverse when that family is a basis, and coordinates and multiplication tables in any supplied basis. The Frobenius matrix has minimal polynomial \(X^k-1\), has \(k\)th power equal to the identity, and has squarefree minimal polynomial when \(k\) is odd. Constructing the Frobenius matrix and printing all \(k^3\) multiplication-table bits take polynomial time in \(k\).

Proof ▶

Canonical encoding and decoding identify field vectors with binary coordinates. Evaluate a linear map on the standard coordinate vectors to compute its matrix; apply this to squaring. Transport Mathlib’s Frobenius minimal-polynomial theorem through the basis matrix equivalence. Extract the binary trace from its field encoding, then evaluate it on each pairwise product. Nondegeneracy of the finite field trace form makes the Gram matrix of a basis nonsingular. Binary elimination computes its inverse and the coordinates of every basis-vector product. The encoded size of a supplied basis is quadratic in \(k\), so the ambient polynomial bounds give the stated source bounds.

Scope.

These programs consume a supplied basis. The self-dualizing basis change is assembled in Lemma 3.109; Lemma 3.108 constructs the initial normal element.

Proof ▶

In \(\mathbb {F}_2[C_k]\), compute generators of the fixed space of squaring by binary elimination. Starting from \(1\), split each component by a fixed generator \(b\) into \(eb\) and \(e(1-b)\), omitting zeros. The remaining components are nonzero orthogonal idempotents summing to \(1\), so there are at most \(k\). Spanning the fixed space makes them primitive. Odd \(k\) makes squaring bijective, and every nonzero element supported on a primitive component has an inverse there.

Let the cyclic algebra act on the quotient field by Frobenius. Independence of distinct field automorphisms makes this action faithful. For each component, scan the polynomial basis and select its first nonzero projected vector. Their sum has trivial annihilator: applying a component and its inverse would otherwise kill its selected nonzero vector. Its Frobenius orbit is therefore a basis. All scans, kernel computations, cyclic products and orbit computations are implemented by polynomial-time programs. A dimension cap bounds component lists also on malformed inputs and is proved inert on valid component families.

Implementation.

This performs the paper’s fixed-space separation directly in the cyclic algebra. It constructs the CRT projections without printing polynomial factors or calling polynomial gcd; no standalone binary squarefree-factorization algorithm is claimed.

Proof ▶

The normal Gram matrix is the circulant determined by its first column. The regular representation embeds the binary cyclic group algebra into matrices, and the inverse of a nonsingular circulant remains circulant. Read the computed inverse’s first column at doubled indices, then print its circulant matrix \(H\). The coefficient square-root identity gives \(H^2=G^{-1}\); symmetry and commutation give \(H^{\mathsf T}GH=I\). Apply \(H\) to the supplied basis columns. The identity Gram matrix proves independence, and a circulant change of coordinates preserves the Frobenius orbit. All matrix constructions and the final change of basis are implemented with polynomial runtime in \(k\).

Scope.

This constructs a self-dual normal basis from a supplied normal basis. Lemma 3.108 supplies that basis from unary \(k\), and Lemma 3.87 composes the complete algorithm.

Lemma 3.110 An admissible field with a bit representation
✓

For every \(k \geq 1\) there is a field of size \(2^k\) together with a \(k\)-bit representation of its elements admitting a left inverse; that is, MIPRE.SAT.BinField \(k\) is inhabited.

Proof ▶

Mathlib’s GaloisField 2 k has \(2^k\) elements and dimension \(k\) over \(\mathbb {F}_2\); take the coordinate vector in any basis.

Comments.

This removes the field parameter of Theorem 6.164 from the list of things this project assumes. It is deliberately weaker than Lemma 3.87: the basis is whatever Mathlib returns, so it is neither normal nor self-dual, there are no multiplication tables, and nothing is claimed about time. A consumer that needs \(\kappa \) to be computed by the trace form (Lemma 3.86) needs the self-dual normal basis, and MIPRE.SAT.BinField will have to carry more fields before it can be served; shaping that interface should wait until such a consumer exists.

3.10 The Schwartz–Zippel lemma

[\(\checkmark \) (mostly) in Mathlib]

Let \(f \neq g : \mathbb {F}_q^m \to \mathbb {F}_q\) be polynomials of total degree at most \(d\). Then \(\Pr _{x \sim \mathbb {F}_q^m}[ f(x) = g(x) ] \leq d/q\).

Proof ▶

Mathlib’s MvPolynomial.schwartz_zippel_totalDegree is the statement for one nonzero polynomial and a product of arbitrary finite subsets; apply it to \(f - g\) with every subset all of \(\mathbb {F}_q\).

Source.

[ 26 , 27 ] . A version is available in Mathlib (multivariate polynomials over finite fields).

Comments.

Used throughout the low-degree machinery (distance of the Reed–Muller code, soundness of arithmetization). Three shapes are formalized, because three consumers want three different ones: the probability bound \(d/q\) above; the individual-degree variant \(m d / q\), derived from Mathlib’s schwartz_zippel_sum_degreeOf rather than through the lossy \(\text{total degree} \leq m d\); and the univariate case as a count rather than a probability — two distinct polynomials of degree at most \(d\) agree at no more than \(d\) points — which is the form Lemma 3.22 uses. The probabilities are stated over \(\mathbb {R}\), which is where the low-degree machinery’s error terms live, rather than over Mathlib’s \(\mathbb {Q}_{\geq 0}\).

3.11 Approximating the value from below (\(\mathrm{MIP}^*\subseteq \mathrm{RE}\))

[\(\bullet \bullet \) medium]

Write \(\mathfrak {G}_g\) for the game described by a game description \(g\) (Definition 2.43). The set

\[ \{ (g, p, q) : g \text{ a game description},\ p, q \in \mathbb {N},\ \mathrm{val}^*(\mathfrak {G}_g) {\gt} p/q \} \]

is recursively enumerable.

Proof ▶

By Lemma 3.114, \(\mathrm{val}^*(\mathfrak {G}_g) {\gt} p/q\) if and only if some valid exact strategy with entries in \(\mathbb {Q}(i)\) has value greater than \(p/q\). A raw candidate is a common denominator \(k\), two dimensions, the Gaussian-integer numerators of the two players’ operators as lists of list matrices, and the numerators of the state; it denotes the exact strategy with entries divided by \(k\), and every valid exact strategy with \(\mathbb {Q}(i)\) entries is denoted by one (clear a common denominator of its finitely many entries). Raw candidates are first-order data, hence enumerable. For a raw candidate the check “\(k {\gt} 0\), each family of operators is Hermitian, idempotent (\(M^2 = kM\)) and sums to \(kI\), the state is nonzero, and \(p \cdot W \cdot k^2 \cdot \langle v, v\rangle {\lt} q \cdot \sum _{x,y} w(x,y) \sum _{a,b} D(x,y,a,b)\, \mathrm{re}\langle v, (A^x_a \otimes B^y_b) v\rangle \)” is a finite conjunction of polynomial identities and one comparison in Gaussian-integer arithmetic, so it is primitive recursive, and it holds if and only if the denoted strategy is valid with value greater than \(p/q\) (for \(q = 0\), where \(p/q = 0\), the comparison is replaced by positivity of the numerator). Dovetailing over the candidates and halting on the first that passes the check therefore halts exactly when \(\mathrm{val}^*(\mathfrak {G}_g) {\gt} p/q\); the boundary case \(\mathrm{val}^*(\mathfrak {G}_g) = p/q\) is correctly non-halting.

Source.

Folklore; see  [ 1 , Section 12 ] , and statement (S) in the proof of cor:mip-re of recursive.tex for a complete argument. The statement was previously given for \(\mathrm{val}^{s}\) “and likewise for \(\mathrm{val}^*\)”; it is now the \(\mathrm{val}^*\) statement, which is the one the pipeline consumes (Remark 6.204) and the one the paper proves. The \(\mathrm{val}^{s}\) analogue needs its own enumeration and density argument, since rounding the entries of a synchronous strategy preserves neither projectivity nor synchronicity; it is not needed and not planned. Thresholds are nonnegative rationals written as fractions \(p/q\) of naturals, as in the paper’s (S), where \(t \in [0,1]\); a negative threshold is trivial since \(\mathrm{val}^*\geq 0\). In Lean the game description is HaltingGameValue.GameData (Definition 2.43), read as a game of the foundations by GameData.game, and recursive enumerability is Mathlib’s REPred, the domain of a partial computable function; integers travel as pairs of naturals, because Mathlib’s primitive recursion has no arithmetic on \(\mathbb {Z}\). The form the compressibility criterion consumes (its hypothesis that the complement of \(B\) is the halting set of a program, Lemma 4.11) is MIPRE.exists_semidecider_lt_quantumValue: for a computable family of game descriptions and a threshold \(p/q\), a well-scoped program of the ambient model halting exactly on the strings whose game has value greater than \(p/q\). It comes from the generic passage MIPRE.Cost.exists_semidecider from an REPred on bit strings to a program (Definition 2.41): a ToPartrec code for the predicate, translated into the model by Prog.ofCode, run after an ambient loop has shifted every bit up by one, since a ToPartrec code cannot see trailing zeros of its input and the bit \(0\) encodes as nil.

Comments.

The Lean route to the \(\mathrm{val}^*\) half departs from the paper’s proof of (S). The paper enumerates approximate candidates — tuples with entries in \(\frac1k \mathbb {Z}[i]\) satisfying relaxed POVM constraints, tested by positive semidefiniteness (Lemma 3.115) — and repairs each into an exact POVM by conjugating with \(T_x^{-1/2}\), with the explicit slack \(\Delta (d,k) = 250(\left\vert {\cal A} \right\vert + \left\vert {\cal B} \right\vert )^2 d/k\) (its Claims “Stability” and “Density”; ledger nodes 1.1.7.2.3 and 1.1.7.2.4). The formalization enumerates exact projective strategies instead: every projective measurement is \(U \Pi _a U^*\) for a unitary \(U\) and coordinate projections \(\Pi _a\), and up to a phase every unitary is the Cayley transform of a skew-Hermitian matrix, which is what gets rounded (Lemma 3.113). Every candidate is then a genuine strategy, so only the density half of the argument is needed, with no slack, no matrix square root and no positive-semidefiniteness test, and the biconditional of Lemma 3.114 is sharp. Lemma 3.115 is proved but no longer on the path (the ledger’s node 1.1.7.2.1, exact arithmetic and the decidability of the candidate test, is accounted for by the primitive recursive check itself); Lemma 3.116 is used as stated. The choice was made for the formalization’s sake — the stability claim needs the functional calculus for \(T_x^{-1/2}\) and the candidate test needs decidability of positive semidefiniteness over \(\mathbb {Q}(i)\), both heavier in Lean than the Cayley parametrization — and it proves the same statement (S); it reverses the route decision recorded in Finding 3 of planning/ledger-informed-plan.md, which is annotated accordingly.

Let \(\{ M_a\} _{a \in \cal A}\) be a projective measurement on \(\mathbb {C}^d\) and \(\eta {\gt} 0\). There is a projective measurement \(\{ M'_a\} _{a \in \cal A}\) on \(\mathbb {C}^d\) with all entries in \(\mathbb {Q}(i)\) such that \(\left\| {M_a - M’_a} \right\| \leq \eta \) for every \(a\).

Proof ▶

Diagonalize a Hermitian combination \(\sum _a w_a M_a\) with distinct real weights \(w_a\): \(M_a = U \Pi _a U^*\) for a unitary \(U\) and the coordinate projections \(\Pi _a\) of a pattern \(r : [d] \to \cal A\). For a unit scalar \(z\), \((zU) \Pi _a (zU)^* = U \Pi _a U^*\), and \(\det (I+ zU)\) is a polynomial in \(z\) with constant term \(1\), so some unit \(z\) makes \(I+ zU\) invertible; then \(zU = (I- S)(I+ S)^{-1}\) is the Cayley transform of the skew-Hermitian matrix \(S = 2(I+ zU)^{-1} - I\). Round \(S\) entrywise to \(R\) with entries in \(\mathbb {Q}(i)\) and re-symmetrize, \(S' = (R - R^*)/2\): \(S'\) is skew-Hermitian, has entries in \(\mathbb {Q}(i)\), and \(\left\vert {S_{ij} - S’_{ij}} \right\vert \) is at most the rounding precision. Its Cayley transform \(U' = (I- S')(I+ S')^{-1}\) is unitary with entries in \(\mathbb {Q}(i)\), and \(\left\| {zU - U’} \right\| \leq 2 \left\| {S - S’} \right\| \), since \(zU - U' = 2(I+ S)^{-1}(S' - S)(I+ S')^{-1}\) and \(\left\| {(I+ S)^{-1}} \right\| \leq 1\) for skew-Hermitian \(S\) (the cross term of \(\left\| {x + Sx} \right\| ^2\) vanishes). Finally \(M'_a = U' \Pi _a U'^*\) satisfies \(\left\| {M_a - M’_a} \right\| \leq 2 \left\| {zU - U’} \right\| \).

An exact strategy for a game \(\mathfrak {G}\) is the data of dimensions \(d_\textsc{A}, d_\textsc{B}\), matrices \(A^x_a \in \mathbb {C}^{d_\textsc{A}\times d_\textsc{A}}\) and \(B^y_b \in \mathbb {C}^{d_\textsc{B}\times d_\textsc{B}}\), and a vector \(u \in \mathbb {C}^{d_\textsc{A}} \otimes \mathbb {C}^{d_\textsc{B}}\); it is valid if each \(\{ A^x_a\} _a\) and each \(\{ B^y_b\} _b\) is a projective measurement and \(u \neq 0\), and its value is

\[ \omega \; =\; \frac{1}{\left\| {u} \right\| ^2} \sum _{x,y} \mu (x,y) \sum _{a,b} D(x,y,a,b)\, \langle u| A^x_a \otimes B^y_b |u\rangle , \]

a rational function of the entries. Suppose the answer alphabets of \(\mathfrak {G}\) are nonempty. Then for every real \(t\), \(\mathrm{val}^*(\mathfrak {G}) {\gt} t\) if and only if some valid exact strategy with all entries in \(\mathbb {Q}(i)\) has value \(\omega {\gt} t\).

Proof ▶

A valid exact strategy with the state normalized to \(u/\left\| {u} \right\| \) is a tensor-product strategy of value \(\omega \), so \(\omega \leq \mathrm{val}^*(\mathfrak {G})\). Conversely, if \(\mathrm{val}^*(\mathfrak {G}) {\gt} t\) then, \(\mathrm{val}^*\) being a supremum over a nonempty set, some tensor-product strategy \((\psi , \{ A^x_a\} , \{ B^y_b\} )\) has value \(v {\gt} t\), and it suffices to find, for every \(\varepsilon {\gt} 0\), a valid exact strategy with \(\mathbb {Q}(i)\) entries of value \({\gt} v - \varepsilon \). Replace each \(\{ A^x_a\} _a\) and \(\{ B^y_b\} _b\) by a \(\mathbb {Q}(i)\) projective measurement within \(\eta \) of it (Lemma 3.113), and \(\psi \) by an entrywise rounding \(u \neq 0\) with \(\left\| {u - \psi } \right\| \leq \eta /4\), so that \(\left\| {u/\left\| {u} \right\| - \psi } \right\| \leq \eta /2\). The value is Lipschitz in the data: by Lemma 3.116, a Born term \(\langle \psi | A \otimes B |\psi \rangle \) changes by at most \(\left\| {A - A’} \right\| \left\| {B} \right\| + \left\| {A’} \right\| \left\| {B - B’} \right\| + 2\left\| {A’} \right\| \left\| {B’} \right\| \left\| {\psi - \psi ’} \right\| \) between unit vectors \(\psi , \psi '\), using \(\left\| {A \otimes B} \right\| \leq \left\| {A} \right\| \left\| {B} \right\| \); projections have norm at most one, so each term moves by at most \(4\eta \) and the value, a \(\mu \)-average of sums of at most \(\left\vert {\cal A} \right\vert \left\vert {\cal B} \right\vert \) such terms, by at most \(4\left\vert {\cal A} \right\vert \left\vert {\cal B} \right\vert \eta \). Take \(\eta {\lt} \varepsilon / (4\left\vert {\cal A} \right\vert \left\vert {\cal B} \right\vert )\).

Comments.

The lemma is the mathematical content of Lemma 3.112, isolated from the computability: only the right-hand side involves the enumeration. It accounts for the ledger’s stability and density nodes (1.1.7.2.3, 1.1.7.2.4) by a different proof, as explained under Lemma 3.112: stability is vacuous for exact candidates, and density is Lemma 3.113 plus the Lipschitz bound, whose constant \(4\left\vert {\cal A} \right\vert \left\vert {\cal B} \right\vert \) is crude and immaterial. The nonemptiness of the answer alphabets is what makes a strategy exist at all: with it \(\mathrm{val}^*\) is a supremum over a nonempty set, without it the supremum is \(0\) by convention and the equivalence fails for \(t {\lt} 0\). Game descriptions (Definition 2.43) always satisfy it. In Lean the data type ExactStrategy carries no proofs, so that the computability layer can enumerate it and test validity.

Lemma 3.115 Decidable candidate set: a norm constraint is two psd tests
✓

Let \(M\) be a Hermitian matrix and \(c\) a real number. Then \(cI+ M \succeq 0\) and \(cI- M \succeq 0\) both hold if and only if \(-c\left\| {x} \right\| ^2 \leq \langle x| M |x\rangle \leq c \left\| {x} \right\| ^2\) for every vector \(x\) — which for Hermitian \(M\) says \(\left\| {M} \right\| \leq c\).

Proof ▶

Both directions are the defining property of positive semidefiniteness applied to the quadratic form, read once forwards and once backwards; the scalar step is \(\langle x|(cI\pm M)|x\rangle = c\left\| {x} \right\| ^2 \pm \langle x| M |x\rangle \).

For matrices \(M, N\) and vectors \(\psi , \phi \),

\[ \langle \psi | M |\psi \rangle - \langle \phi | N |\phi \rangle = \langle \psi | (M - N) |\psi \rangle + \langle \psi - \phi | N |\psi \rangle + \langle \phi | N |\psi - \phi \rangle , \]

and \(A \otimes B - A' \otimes B' = (A - A') \otimes B + A' \otimes (B - B')\); combining the two splits a bipartite Born expectation in which both players’ operators and the state have moved into four terms, each moving exactly one of \(A\), \(B\) and \(\psi \).

Proof ▶

Expand and cancel. Both identities are exact: no norm and no estimate occurs in either, and the analytic bounds are obtained afterwards by bounding the terms separately.

Comments.

This is the easy inclusion \(\mathrm{MIP}^*\subseteq \mathrm{RE}\) and one half of Theorem 7.6. The pipeline consumes only the \(\mathrm{val}^*\) half, as the semidecision procedure of Remark 6.204. The commuting-operator analogue (approximating \(\mathrm{val}^{\mathrm{co}}\) from above via the NPA hierarchy  [ 29 ] ) is not needed for the main theorem, but becomes relevant for the downstream consequences in Section 8.