Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

L.3 From Interval Sums of Squares to Continuous Matrix Completion

What is missing at the endpoint? Take . If the real target itself must occupy the diagonal, the condition gives the impossible equality at . The missing weight can instead enter the imaginary part of the diagonal: choose

Then at the endpoint, while . The real target is preserved; the other components needed for normalization now have room to fit.

The literature basis for interval sums of squares is arXiv:1806.01838v1, Lemma 6 and Theorems 3 and 5 of the paper by Gilyén, Su, Low, and Wiebe cited above (STOC 2019, 10.1145/3313276.3316366). The explanation follows that lemma and the proofs of exists_sumsq_decomposition and exists_complement in shosonoda’s fixed revision of lean-qsvt; the source is copyright shosonoda (2026), under Apache-2.0. Theorem L.48 cites the main repository’s reuse of the original sum-of-squares proof; Theorem L.49 cites its native continuous matrix-field application. No mathematical novelty is claimed.

Write for complexification of a real polynomial. In the source, means that every odd coefficient vanishes, and means that coefficients of parity opposite to vanish. For real polynomials these are written as and , respectively. Throughout, natural-number subtraction is truncated to , and .

Theorem L.48 (Interval sums of squares for even polynomials at any degree budget)LEAN ✓

For any and real polynomial , assume

There exist real polynomials such that the following is a polynomial identity, not merely an equality of values within the interval:

Proof

The bound uses truncated natural-number subtraction, , and the zero polynomial has equal to ; it is both even and odd. In particular, only says that is constant and cannot replace the condition when . If , choose for any ; if , then is constant, and , works.

Why can the factors be completed one at a time? Evenness and real coefficients pair the roots of a nonzero polynomial as , with multiplicities preserved. An interior real root must have even multiplicity, since otherwise the sign would change across it; the source uses this to remove a double factor first. There are three kinds of nonnegative factors to remove:

  • For with , the quadratic with its sign chosen is . This equals for , or for . Its sum of squares uses , ; includes the factor .
  • For interior nonzero real roots with , remove , with , .
  • For , conjugate pairing gives a real quartic. The source uses precisely the coefficients

Expansion gives . The relation supplies the correct quadratic coefficient, and the triangle inequality makes the radicand nonnegative.

After writing , the cofactor is still even. Wherever , we have ; division is unavailable at a zero of . Each removed factor vanishes at only finitely many interval points. Polynomial continuity therefore extends nonnegativity to those points, using one-sided limits at the endpoints. This restores exactly the hypotheses needed to continue with the cofactor.

The completions multiply by the weighted Brahmagupta identity. With ,

The source proceeds by strong induction on the degree budget . Constants start with a square root. Removing one of the factors above of degree , where or , leaves a cofactor of degree at most . The identity then reassembles the result, adding both degree budgets and parities. A convenient equivalent way to keep track of products is to bound the degrees of both and by and give both parity .

When the actual degree is lower, multiply on the interval by the unit-modulus factor . At polynomial level this is

The same identity preserves the sum of squares while increasing the budget from to and toggling the parities. Thus a lower-degree polynomial can still meet the specified parity budget; is not required.

The full proof is checked by the Lean kernel.

Theorem L.49 (Native continuous unitary completion of a bounded parity polynomial)LEAN ✓

Let and satisfy , and assume

Put , , , and . There exist and , the type of continuous complex matrix fields on with rows and columns indexed by , such that

Both and hold. The first line is an identity in . The field witness satisfies : for every ,

In the continuous matrix-field algebra, is pointwise conjugate transpose and is the constant identity matrix field. All of the following hold:

Proof

The polynomial satisfies the evenness, degree, and closed-interval nonnegativity assumptions of Theorem L.48, which supplies with every stated constraint. The native circle coordinates satisfy , so evaluation of the polynomial identity gives . Every matrix entry combines continuous coordinates with polynomial evaluation. Direct multiplication gives both star-product identities and the determinant identity, while the upper-left real part follows from the matrix formula. The full proof is checked by the Lean kernel.

Remark L.50 (Completion by hand and its applicability limits)

The explicit algebra below retains the completion’s manual derivation. The complex polynomial pair, the full entrywise real-part and Hermitian-part identities, and the comparison with the interval square-root pullback are manual explanations outside the conclusions of the two Lean declarations above. Neither declaration itself supplies phase product decomposition or query bounds; the next section separately factors the same completion in Theorem L.54.

Turning the deficit into the remaining matrix components. Now let a real polynomial satisfy , , and for . Apply the decomposition to the even polynomial , retain all degree, parity, and conditions on , and set , . Then

The bars denote coefficientwise conjugation, which becomes ordinary complex conjugation after real evaluation. The degree bounds for are and , with their corresponding parities, and when . These are the completion data used by Theorem 3. Theorem 5 allows both real parts to be prescribed; the original source construction used here chooses and only requires . It does not require .

On the interval put . The general complex completion matrix in Theorem 3 is

For the real used here, set , where

Since , direct multiplication gives

Continuity and signs on the circle. Use the circle’s own coordinates for , , . Replacing by the signed coordinate defines

Because , we have . Replacing above by gives the same multiplication:

Here takes the real part of each matrix entry; the last line is the Hermitian part. The two operations agree for this completion with real . Every entry is a polynomial combination of the continuous coordinates , giving a continuous loop. There is no division at and no square-root sign to choose. For , and the matrix is the constant diagonal phase .

Agreement with the interval pullback is guaranteed on the upper semicircle : . For example, the valid completion at has off-diagonal entries in the interval pullback and in the signed circle loop. Both matrices are unitary, but the loops differ. What we have obtained is a completion of the polynomial deficit and its continuous matrix consequences. Factorization on the entire signed circle is proved separately in the next section. These two completion statements themselves supply no continuity of phase choices, query complexity, or full block-encoding QSVT result, and make no empirical physics claim.