Alphabeta Math
Pipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

✓ 11 results · all verified · 6 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 5 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Quantum Signal Processing

1 · Prerequisites

2 · Summary

The page fixes the Hermitian-reflection signal matrix, ordered phase product, coefficient-conjugation convention, and controlled scalar convention. It proves the equivalence between admissible polynomial pairs and phase sequences, completes bounded real parity polynomials, and gives a constructive synthesis specification with exact validation, phase extraction, certified numerical approximation, and separate query and implementation costs.

The local prerequisite route supplies Sturm counting, interval sign certification, and exact algebraic root isolation needed by the critical-point validator and complementary-pair construction. The complete modes retain finite root isolation. The efficient numerical mode supplies exact multiplicity/Sturm input validation, bounded-height rational rounding and bounded-grid roots, counted quadratic tower completion and peeling, and buffered certified atan2. It proves polynomial arithmetic count in degree and logarithmic precision in an explicitly charged ideal exact-algebraic field/order tower/DAG model; coefficient encoding/access and implementation bit costs remain separate. No finite-basis phase compilation or polynomial bit-time guarantee is inferred.

An optional supplied-complement branch accepts real coefficient parameters through an explicitly charged ideal-real field/equality/order interface. It validates the full complement identity before use, then constructs positive half-angle root descriptors and applies the same buffered phase loop without algebraic root isolation of those parameters. Its finite termination is conditional on that interface; it does not extend the bare-target arithmetic bound to parameter-oracle implementation.

3 · Logical flowchart

4 · Definitions, theorems and proofs

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

Real-root intervals certify the sign of a real polynomial

Statement

Let H∈R[x] be nonzero, and list all its distinct real roots in [−1,1] in increasing order, including roots at the endpoints. On every open component of [−1,1] after removing these roots, H has constant sign. Therefore, if an exact sample point in each nonempty component has H≥0, and the endpoint/root values are also checked, then H(x)≥0 for every x∈[−1,1]. Conversely, if H≥0 on the interval, all these checks pass.

Facts & Assumptions

Given: A nonzero real polynomial H and its finite set of distinct real roots in [−1,1].

[F2]

Division algorithm for polynomials over a field: division by a nonzero polynomial over a field gives a unique quotient and a remainder that is zero or has degree strictly below the divisor.

[F3]

A nonreal root of a real polynomial comes with its complex conjugate: each nonreal root of a real polynomial occurs with its conjugate.

[F4]

The reals form a field: the real numbers are a field, so polynomial coefficient and factor arithmetic take place in a field.

[F5]

The reals form a totally ordered field: the real numbers carry a compatible total order, which determines signs of real factors and polynomial values.

Proof

1.1F1F2F3algebra

Repeated use of [F1] and [F2] factors H over C into linear factors with multiplicity. For a root ζ of multiplicity m, write H=(x−ζ)mG with G(ζ)≠0. Conjugating coefficients gives H=(x−ζ‾)mG‾ and G‾(ζ‾)=G(ζ)‾≠0, so the conjugate has exactly the same multiplicity. Thus, consistently with [F3], nonreal factors pair as (x−(a+ib))(x−(a−ib))=(x−a)2+b2, which is strictly positive for real x when b≠0. The remaining factors are real linear factors x−r for the real roots r.

2.1F4F5step 1.1algebra

On an open interval containing no real root, each real factor x−r is either strictly positive throughout or strictly negative throughout by [F5]; every paired nonreal factor is positive throughout, and the real leading coefficient has fixed sign. Thus H has one constant sign on that interval.

3.1F5step 2.1given∎

Each root value is zero, and the endpoints are checked separately. Step 2.1 shows each exact sample determines the sign on its entire root-free component, so the finite checks imply H≥0 on all of [−1,1]. If H≥0 everywhere, every sample and endpoint check plainly passes.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Sturm signed remainders count distinct real polynomial roots

Statement

Let K⊆R be an ordered subfield and let f∈K[t] be nonconstant and square-free, where square-free means gcd⁡(f,f′)=1. Put f0=f, f1=f′, and, while the next remainder is nonzero, set fj+1=−rem⁡(fj−1,fj). For x∈K, let V(x) be the number of sign changes in (f0(x),…,fm(x)) after deleting zero entries, where fm is the last nonzero member. If a,b∈K, a<b, and f(a)f(b)≠0, then the number of distinct real roots of f in (a,b) is V(a)−V(b).

Facts & Assumptions

Given: An ordered subfield K⊆R, a nonconstant f∈K[t] with gcd⁡(f,f′)=1, and a<b with f(a)f(b)≠0.

[F1]

Division algorithm for polynomials over a field: division by a nonzero polynomial over a field gives a quotient and a remainder of strictly smaller degree, with the quotient and remainder unique.

[F2]

The formal derivative of a polynomial: if f(t)=∑jajtj, then f′(t)=∑j≥1jajtj−1.

[F3]

Field and Ordered field: K is a field with a compatible total order; since K⊆R, every root considered below is ordered as a real number.

[F6]

The reals form a field and The reals form a totally ordered field: R is a field with a compatible total order, so division in R[t] and signs of real polynomial values are defined.

Proof

1.1F1givenalgebra

Each nonzero remainder has degree smaller than its divisor by [F1], so the chain terminates. The Euclidean algorithm preserves the common divisors of f and f′, and their gcd is 1 by the square-free hypothesis; hence the last nonzero member is a nonzero constant. A nonzero polynomial has only finitely many real roots: repeatedly divide by t−c at each distinct root c in R[t]; each division lowers degree, so there can be no more roots than the original degree.

2.1F1step 1.1

For each intermediate index 0<j<m, the division identity is fj−1=qjfj−fj+1. If fj(c)=0, then fj−1(c)=−fj+1(c). No two consecutive members can vanish at one point: the identity would propagate a common zero to the final nonzero constant. Thus both neighbors are nonzero and have opposite signs at c.

3.1F1step 2.1algebra

A polynomial h with h(c)≠0 keeps its sign in some interval about c: division by t−c gives h(t)=h(c)+(t−c)k(t), and the finite polynomial k is bounded on [c−1,c+1] by the sum of the absolute values of its coefficients times the corresponding powers of ∣c∣+1. Taking ∣t−c∣ small enough makes ∣(t−c)k(t)∣<∣h(c)∣. Therefore, near a zero c of an intermediate fj, its two neighboring members keep their opposite signs; whether fj is positive, negative, or zero, those three entries contribute exactly one sign change. Intermediate zeros do not change V, including at an endpoint where f0 is nonzero.

4.1F1F2F3F6givenstep 3.1

If c is a root of f0=f, then f1(c)=f′(c)≠0: otherwise the Euclidean algorithm and [F1] give polynomials u,v∈K[t] with uf+vf′=1, and evaluating at c would give 0=1. Division in R[t] gives f(t)=(t−c)h(t) by [F6]. Expanding h in powers of t−c, the coefficient of (t−c) in f is h(c); the formal derivative formula [F2] says this coefficient is f′(c). By step 3.1, h keeps the sign of f′(c) near c, so f changes sign exactly once there, from the opposite sign to the same sign as f′(c). The first pair (f0,f1) therefore loses exactly one sign change as t passes left to right through c.

5.1F1F4F5F6step 1.1step 3.1step 4.1given∎

The chain has finitely many roots by step 1.1. Every chain member is a real polynomial and so is continuous by [F4]; if its sign changed between two consecutive zeros, [F5] would give an additional zero. Thus between the finitely many chain-root locations all signs are fixed by [F6]. At every intermediate-member zero the variation is unchanged by step 3.1, and at every root of f it decreases by one by step 4.1. Since f(a)f(b)≠0, neither endpoint is a root of f; summing the changes from a to b gives V(a)−V(b) equal to the number of distinct roots of f in (a,b).

LemmaStatement: AI-adaptedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Exact interval boundedness by multiplicity strata and Sturm counts

Statement

Let K⊆R be an ordered subfield with charged ideal exact field operations, equality tests and order tests. Given p∈K[x] of degree at most d, whether ∣p(x)∣≤1 for all x∈[−1,1] can be decided in O((d+1)4) such operations, without root isolation or coefficient-height assumptions. This is an arithmetic-count claim; implementation bit costs and input encoding/access remain separate.

Facts & Assumptions

Given: The ordered field, polynomial, degree bound and charged ideal exact operations in the Statement.

[F1]

Sturm signed remainders count distinct real polynomial roots counts roots of a squarefree polynomial between nonroot endpoints by its signed negative-remainder chain.

[F2]

Division algorithm for polynomials over a field gives exact division and degree descent. The monic gcd of two base-field polynomials is unchanged after extending the coefficient field allows multiplicity analysis over the complex field without changing the base-field gcd. Fundamental theorem of algebra: every nonconstant complex polynomial has a complex root splits complex polynomials into linear factors, with multiplicities.

[F3]

The formal derivative of a polynomial gives the formal derivative formula. Expanding in powers of x−r shows that in characteristic zero the jth derivative reduces multiplicity m to m−j when j≤m.

Proof

1.1F2F3givenalgebraconstruct

Set f=1−p2 and n=deg⁡f≤2d when f≠0. The zero polynomial accepts; a nonzero constant accepts exactly when positive. Otherwise evaluate f(−1),f(1) and reject a negative endpoint. Normalize F=f/lc⁡(f) to monic. Put H0=F and Hj=monicgcd⁡(Hj−1,F(j)) for j=1,…,n, so Hn=1. For a complex root of F of multiplicity m, its multiplicity in Hj is max⁡(m−j,0): while j≤m, [F3] gives derivative multiplicity exactly m−j, and once the root has left Hj−1 it cannot reappear in the gcd. Characteristic zero follows from K⊆R.

2.1F2step 1.1algebraconstruct

Define Gj=Hj−1/Hj for 1≤j≤n and Gn+1=1. Each Gj is monic squarefree with roots exactly the roots of F of multiplicity at least j. Hence Sj=Gj/Gj+1 is an exact polynomial quotient, with precisely the roots of original multiplicity j, each once. This follows over C by the multiplicity formula and factorization in [F2], and division in K[x] has zero remainder because its scalar extension does. The product V=∏j oddSj is monic squarefree with exactly the odd-multiplicity roots of f; the empty product is 1. These are gcd, derivative, exact division and multiplication operations over K, with no individual roots computed.

3.1F1F4step 2.1algebra

Remove x−1 and x+1 from V whenever the corresponding endpoint is a root, each at most once, obtaining W. If W is nonconstant, its endpoints are nonzero, and [F1] counts its distinct real roots in (−1,1); for constant W the count is zero. A positive count rejects: near an interior odd-multiplicity root r, write f(x)=(x−r)mg(x) with g(r)≠0. Continuity gives a strict fixed sign for g near r, so the odd power gives opposite signs for f on the two sides, both inside the interval.

4.1F4step 2.1step 3.1algebraconstruct

If the count is zero, all interior real roots of f have even multiplicity. Between successive roots its sign is constant by [F4], and crossing an even root preserves that sign by the factorization from step 3.1. Thus all nonroot points of (−1,1) have one strict sign. Among the n+1 fixed rational points tj=−1+2j/(n+2), j=1,…,n+1, at least one is not a root by [F4]. Find the first by exact Horner evaluation and accept exactly when its value is positive. All interior values are then positive or zero, and the checked endpoint values are nonnegative. Conversely nonnegative f passes all checks. Since f≥0 is equivalent to ∣p∣≤1, this is the required exact decision, including invalid inputs.

5.1F2step 1.1step 2.1step 3.1step 4.1algebra∎

All polynomial degrees are at most n. Schoolbook long division costs O((n+1)2) field operations. A gcd or signed Sturm chain has at most n+1 degree decreases, costing O((n+1)3) operations/tests including leading-zero detection. There are n gcd computations; derivatives, exact quotients and products cost O((n+1)3) in total, and endpoint/sample evaluation costs O((n+1)2). Hence the total is O((n+1)4)=O((d+1)4). Every normalization divides only a verified nonzero leading coefficient. Exact divisibility and polynomial identities follow from steps 1.1–2.1 and may also be verified by multiplication within this budget. No refinement loop, coordinate sign oracle or implementation bit-time bound is used.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Certified complex-polynomial root isolation in exact algebraic arithmetic

Definition

The coefficient model is the exact algebraic model: coefficients and algebraic roots are represented by defining polynomials and rational isolators, with exact addition, multiplication, inversion of nonzero values, conjugation, equality, order, and real-sign decisions. Every such operation is charged as one exact algebraic operation. The algorithm makes no bit-complexity claim. A root descriptor consists of its defining square-free polynomial, an isolating rectangle containing exactly that root, and its multiplicity; exact algebraic operations refine these descriptors when needed.

ROOTS(p,b) takes a nonzero p(z)=∑j=0najzj∈C[z] with rational or exact-algebraic coefficients and an integer b≥1. The zero polynomial returns INVALID; a nonzero constant returns the empty root list.

  1. Compute g=gcd⁡(p,p′) by monic Euclidean remainders and set q=p/g. The polynomial q has each distinct root of p exactly once.

  2. If n>0, put M=max⁡j<n∣aj/an∣ and enumerate rational B>1+M until the strict inequality is certified. Search rational X,Y>B in increasing dyadic denominator and then lexicographic numerator order until the open rectangle (−X,X)+i(−Y,Y) has no root on its boundary, each vertex value of q has nonzero imaginary part, and the restriction of Im⁡q to each directed edge is not the zero polynomial. The strict Cauchy bound puts every root inside every such rectangle.

  3. To count a rectangle, first certify that its boundary is root-free: on each directed edge restrict q to F(t)=R(t)+iI(t), 0≤t≤1, and use the exact polynomial gcd and Sturm count to decide whether R and I have a common zero there. Require also that every vertex has nonzero imaginary value and that no edge restriction I is identically zero. If any condition fails for a proposed subdivision, enumerate rational vertical and horizontal cuts in the middle third of the corresponding side ranges, by increasing dyadic denominator and then lexicographic numerator, and use the first pair for which all four child rectangles satisfy these conditions.

  4. On each directed edge of an admissible rectangle, isolate every distinct zero of I in (0,1) using the square-free Sturm sequence of I. There are no endpoint zeros because the vertices have nonzero imaginary value. At each isolated zero, the boundary-root certificate gives R≠0; exact sign refinement decides whether R>0 or R<0. For R>0, add +1 if I changes from negative to positive, add −1 if it changes from positive to negative, and add 0 if it does not change sign. For R<0, add 0. The sum over the four counterclockwise edges is the rectangle's distinct-root count.

  5. Discard rectangles with count zero. If the count is one and wx2+wy2≤2−2b, where wx,wy are its rational side lengths, retain its open interior. Otherwise subdivide by Step 3 and recount the four children. The open interiors are pairwise disjoint and their root-free boundaries ensure no root is omitted or duplicated.

  6. For each retained rectangle R, find its original multiplicity as the least m∈{1,…,n} for which h=gcd⁡(q,p(m)) has no root in R. If h is a nonzero constant, its count is zero. Otherwise h is square-free and its boundary is root-free because h divides q. For t=0,1,…,8 in that order, form Ht=(1+it)h and test that its imaginary value is nonzero at all four vertices and its imaginary restriction to each of the four directed edges is not the zero polynomial. Use the first passing t, and apply the boundary and crossing routines of Steps 3–4 with q replaced by Ht on the same rectangle, without subdividing. The resulting count is zero or one and decides common-root membership. The finite scalar search and its admissibility are proved in Correctness and termination of certified complex-polynomial root isolation ↗. This derivative test ends by m=n, since p(n) is a nonzero constant.

The ROOTS return record is the input polynomial, its square-free part q, and a list of records (q,R,m): R is an open rational rectangle of diameter at most 2−b containing exactly one root of q, and m is that root's multiplicity in the input. The defining polynomial is over the declared exact coefficient field; it need not be a flattened rational minimal polynomial.

The same carrier supplies REALROOTS(h,w), with positive rational width threshold w (default w=1), used for exact interval-sign checks. For a real nonzero polynomial h∈K[x] with exact real-algebraic coefficients, replace it by its square-free part. Test and record roots at −1 and 1 directly, and divide out each corresponding linear factor once when present; the residual square-free polynomial has root-free endpoints. Isolate its roots in (−1,1) as follows: start with that open interval, use the Sturm variation drop to count roots, discard count-zero intervals, retain count-one intervals once their rational width is at most the requested threshold, and otherwise bisect at the first rational in the middle third that is not a root. Every interval endpoint is kept root-free. Return the original polynomial and an increasing list of exact-root descriptors: endpoint roots have singleton rational isolators, and interior roots have open rational isolators of width at most w, the residual square-free defining polynomial, and their original multiplicities computed by the derivative/gcd test of Step 6 (using Sturm membership for an interior interval, and direct derivative evaluation for an endpoint singleton). A nonzero constant returns the empty list. A zero polynomial is handled separately by the caller.

SIGNCERT(h) decides whether h≥0 throughout [−1,1]. If h=0, accept. Otherwise check h(−1),h(1)≥0, call REALROOTS(h,1). Refine each interior isolator by the same middle-third Sturm subdivision, retaining its unique root, until its closure lies in (−1,1) and the closures of all distinct-root isolators are strictly separated, including the endpoint singleton isolators. Choose one rational sample in each nonempty open gap between these separated isolators and the endpoints (or 0 if there are no roots). Accept exactly when every sample value is nonnegative. Exact algebraic comparisons determine all branches. SIGNCERT and REALROOTS use the same exact operation model and have no hidden numerical zero test.

This is a finite exact-algebraic procedure, not a polynomial-time bit algorithm. The root-separation, boundary-search, sign-certificate, Sturm, and winding-count proofs are supplied by Correctness and termination of certified complex-polynomial root isolation ↗. No arithmetic operation count implies a bit bound.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

Correctness and termination of certified complex-polynomial root isolation

Statement

For every nonzero rational or exact-algebraic complex polynomial p and integer b≥1, under the exact algebraic operation model declared in Certified complex-polynomial root isolation in exact algebraic arithmetic, the algorithm terminates and returns pairwise-disjoint open rational rectangles of Euclidean diameter at most 2−b, each containing exactly one distinct root and together containing every root. Each rectangle carries the algebraic root descriptor and the original multiplicity. The supplied REALROOTS and SIGNCERT routines also terminate and return the stated exact real-root and interval-sign certificates. No bit-complexity bound is asserted.

Facts & Assumptions

Given: A nonzero polynomial p∈C[z] with rational or exact-algebraic coefficients and an integer b≥1, with the exact arithmetic and comparison operations of Certified complex-polynomial root isolation in exact algebraic arithmetic.

[F1]

Certified complex-polynomial root isolation in exact algebraic arithmetic defines square-free reduction, a strict Cauchy bound, admissible rectangles, the signed positive-ray crossing count, subdivision, multiplicity testing, REALROOTS, and SIGNCERT.

[F2]

Sturm signed remainders count distinct real polynomial roots: for a square-free real polynomial and root-free endpoints, the signed-remainder variation drop equals the number of distinct roots in the open interval.

[F3]

Division algorithm for polynomials over a field: division over a field gives a quotient and a remainder of strictly smaller degree; a polynomial vanishing at ζ is divisible by z−ζ.

[F4]

The formal derivative of a polynomial: the formal derivative of ∑jajzj is ∑j≥1jajzj−1.

[F5]

Fundamental theorem of algebra: every nonconstant complex polynomial has a complex root: every nonconstant complex polynomial has a complex root.

[F7]

Conjugation is an involutive real-field automorphism, zz‾=∣z∣2, and modulus is definite, multiplicative, and subadditive: ∣z+w∣≤∣z∣+∣w∣, ∣zw∣=∣z∣∣w∣, and zz‾=∣z∣2.

[F8]

Every nonzero complex number has a unique polar form r(cos⁡θ+isin⁡θ) with r>0 and −π<θ≤π: every nonzero z has a unique polar representation z=∣z∣(cos⁡θ+isin⁡θ) with −π<θ≤π.

[F9]

Real-root intervals certify the sign of a real polynomial: a nonzero real polynomial has constant sign on each open interval between consecutive real roots; checking one point in each root-free gap and checking the endpoints certifies its sign on [−1,1].

[F10]

C=R[x]/(x2+1) is a field, every element is uniquely a+bi, and every nonzero element has inverse (a−bi)/(a2+b2): C is a field, so the complex polynomial Euclidean operations and coefficient arithmetic are defined.

[F11]

The reals form a field and The reals form a totally ordered field: R is a totally ordered field, so the real-root isolation, exact order tests, and sign comparisons are defined.

Proof

1.1F1F3F4F5F10algebra

The Euclidean gcd in [F1] terminates because each nonzero remainder has smaller degree by [F3]. By induction on degree, [F5] and [F3] factor p over the field C [F10]: take a root, divide by its linear factor, and repeat on the lower-degree quotient. At a root of multiplicity m, write p(z)=(z−ζ)mh(z) with h(ζ)≠0. Differentiation by [F4] gives p(j)(ζ)=0 for j<m and p(m)(ζ)=m!h(ζ)≠0. Also p′ has multiplicity exactly m−1 at ζ, so p/gcd⁡(p,p′) contains that root once. Thus square-free reduction preserves exactly the distinct roots, and the least derivative order with no common root at ζ is its original multiplicity. It remains to verify the membership implementation.

1.2F1F7algebra

Put M=max⁡j<n∣aj/an∣ for a degree-n polynomial. If ∣z∣>1+M, then ∣z∣>1 and ∑j<n∣ajzj∣≤∣an∣M∑j<n∣z∣j=∣an∣M∣z∣n−1∣z∣−1<∣an∣∣z∣n. Hence p(z)≠0. The exact comparisons and increasing rational enumeration in [F1] therefore find a strict rational bound; any rectangle whose two half-widths exceed that bound contains every root in its interior.

1.3F1F5algebra

For nonconstant square-free q, each root has finite real and imaginary coordinates, so only finitely many vertical or horizontal offsets pass through a root. Only finitely many horizontal offsets can make Im⁡q(t+iy) identically zero as a polynomial in t: otherwise every coefficient polynomial in y would vanish identically, which would force Im⁡q(x+iy) to be the zero bivariate polynomial; writing q first on the real axis and then differentiating its coefficient expansion in y shows this is impossible for nonconstant q. The vertical case is identical. Each vertex condition Im⁡q(±X±iY)=0 is the zero set of a nonzero polynomial in (X,Y). A nonzero bivariate polynomial cannot vanish on an open rectangle: fixing one coordinate on an interval makes each coefficient polynomial in the other coordinate vanish on an interval and hence identically. The finitely many forbidden coordinate lines and vertex zero sets thus cannot fill the open rational search region X,Y>B. Rational pairs are dense there, so the outer-bound enumeration in [F1] finds an admissible rectangle.

1.4F1F2F3algebra

On each edge, simultaneous vanishing of R and I is equivalent to a root of their gcd. The vertex test excludes endpoint roots, so [F2] decides whether such a root lies in the edge interior. At each zero of I, boundary-root-freeness implies R≠0; the sign of this exact nonzero algebraic value is decidable by refinement, and the square-free Sturm sequence isolates every zero of I. Thus every crossing and its direction in [F1] is finitely and exactly determined.

1.5F1F2F3F11algebra

REALROOTS is correct at each subdivision by [F2]: its square-free polynomial first records any roots at −1 and 1, divides out those endpoint linear factors using [F3], and applies Sturm to the residual, whose endpoints are root-free. The selected interior cut is not a root, so the two open children partition the residual roots. The polynomial has finitely many distinct roots by repeated division and degree decrease [F3]. If there are at least two, the minimum separation of its finite root set is positive in the real order [F11]; repeated bisection eventually makes every positive-count interval narrower than both that separation and the requested width. Each level has finitely many intervals, so the recursion terminates and outputs disjoint isolators for all real roots in (−1,1), together with the endpoint roots tested separately.

2.1F1step 1.3algebra

In a parent rectangle already satisfying the admissibility tests, the same finite-exclusion argument gives an admissible cut pair in the product of the two middle-third intervals. Cut coordinates that pass through roots are finite in number; offsets making an edge imaginary restriction identically zero are finite; vertex-zero conditions along an old side are nonzero univariate polynomials because that side's imaginary restriction is not identically zero; and conditions at a new cut intersection are nonzero bivariate polynomials by the argument in step 1.3. Their finite union has empty interior. The exhaustive dyadic enumeration therefore finds cuts for which all four child boundaries satisfy the exact tests.

2.2F1F8step 1.4

Let γ(t)=q(z(t)) traverse an admissible rectangle counterclockwise. Each edge restriction is polynomial, avoids zero, has nonzero imaginary-part polynomial, and has no endpoint with zero imaginary part. It therefore meets the positive real ray only at the finitely many interior zeros isolated in step 1.4. For w∉[0,∞), define Arg⁡+(w) as the unique θ∈(0,2π) in its polar representation; existence follows by applying [F8] to −w and adding π. This branch is continuous: on each open semicircle avoiding the cut, the unit-circle parametrization is one-to-one, and the chord identity ∣eiθ−eiθ0∣=2∣sin⁡((θ−θ0)/2)∣ shows that nearby circle points have nearby angles. Thus on every subarc between positive-ray intersections, Arg⁡+(γ(t)) is continuous. At an upward crossing its one-sided values approach 2π and 0, so adding 2π to the subsequent branch continues the lift and increases its integer offset by one. A downward crossing decreases the offset by one, and a non-crossing contact leaves it unchanged. The curve is closed and its starting vertex is off the ray, so the lifted argument's total increment divided by 2π is exactly the signed crossing sum in [F1].

2.3F1F9F11step 1.5algebra

For nonzero real h, REALROOTS returns all roots in [−1,1] by step 1.5, and the additional isolator refinement terminates: the finite distinct interior roots have positive distances from each other and from −1,1, and each refined interval contracts by at least 2/3. Thus their closures eventually separate strictly. Every component between consecutive actual roots contains the rational sample in the gap between their isolators; the two outer components are treated the same way. By [F9] this sample determines the sign on that whole component, including the portions inside isolators up to their roots; the root values themselves are zero and the endpoints are tested separately. Thus the routine accepts exactly when h≥0 on the whole interval. The h=0 branch accepts directly.

3.1F1F8step 1.1step 2.2algebra

Step 1.1 factors q(z)=c∏j(z−ζj) over its distinct roots. Continuous argument lifts add under multiplication, so the winding increment of q is the sum of the increments of these linear factors. Fix one root ζ not on the rectangle boundary. Enumerate rational directions (r,s) with (r,s)≠(0,0) by increasing positive denominator and then numerator pair, and take the first whose line is not parallel to a rectangle side and whose line through ζ contains no rectangle vertex. Only finitely many directions are forbidden, while rational directions are dense, so this search terminates. Normalize the chosen vector to a unit scalar u; its norm is nonzero. Rotating the curve z−ζ by the constant unit scalar u‾ does not change its total argument increment, and makes the chosen direction the positive real ray. If ζ is inside the convex rectangle, the ray leaves it exactly once; counterclockwise orientation puts the interior on the left, so this outward crossing is upward and contributes +1. If ζ is outside, the ray either misses the rectangle or enters and exits it, contributing a downward crossing and an upward crossing whose signs cancel. Thus the winding increment of z−ζ divided by 2π is 1 exactly for an interior root and 0 otherwise. Summing over the distinct roots shows that the signed crossing count of q in step 2.2 is exactly the number of roots inside the rectangle. Since q is square-free, this is the number of distinct roots.

4.1F1F2F3step 1.1step 1.4step 2.2step 3.1algebra

For a retained rectangle containing the unique root ζ of q, let h=gcd⁡(q,p(m)), 1≤m≤n. This gcd is nonzero. A constant h has zero roots; otherwise h divides square-free q, so it is square-free and has no boundary root. At a vertex v, Im⁡((1+it)h(v))=Im⁡h(v)+tRe⁡h(v) vanishes for at most one real t, since h(v)≠0. On an edge write h=R+iI. The polynomial I+tR can be identically zero for at most one t: two such values would force R=I=0, contradicting boundary-root-freeness. Thus the four vertices and four edges exclude at most eight scalars, and one of 0,…,8 passes all exact tests. The nonzero scalar 1+it preserves roots and square-freeness. Steps 1.4, 2.2 and 3.1 therefore count its roots on the unchanged rectangle, giving one exactly when h(ζ)=0. Each derivative test terminates, and step 1.1 gives the least zero-count order as the original multiplicity, by m=n. For REALROOTS, root-free interval endpoints also remain root-free for gcd divisors; [F2] decides interior membership, constants have zero count, and endpoint singletons use direct derivative evaluation.

4.2F1step 1.2step 2.1step 3.1

A cut line contains no root by step 2.1, and each parent boundary is root-free by admissibility. The four child interiors therefore partition the parent's roots without omission or duplication; their exact counts are correct by step 3.1. Discarding count-zero children and continuing preserves exactly the roots inside the initial rectangle, which contains all roots by step 1.2.

5.1F1step 3.1step 4.1step 4.2algebra∎

Each subdivision cut lies strictly inside the corresponding middle third, so each child's side lengths are at most 2/3 of its parent's. The finite set of distinct roots has a positive minimum pairwise distance when it has at least two elements. After finitely many levels, every rectangle has diameter below that separation and below 2−b; hence it cannot contain two roots. If there is one root, only the precision condition is needed. The finite four-child tree then terminates. Every retained rectangle contains exactly one root, their open interiors are pairwise disjoint, and step 4.1 supplies the correct multiplicity.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Bounded-grid rational root isolation and rounded numerical QSP input

Definition

This is the efficient numerical variant explicitly authorized by OP0/OP1; the complete exact/complete numerical modes retain their own root schedule. Its cost coordinate charges rational field arithmetic, including exact integer arithmetic on loop indices, rational comparisons, and exact input-coefficient comparisons. In particular, each integer midpoint division by 2 in a bounded binary search is charged. Exact input-coefficient equality/order tests are explicitly ideal charged resources; coefficient encoding/access and implementation, including any algebraic refinement or minimal-polynomial conversion, are separate costs. It asserts no Turing or bit-time bound.

ROUND-QSP(p,d,δ) receives a real coefficient polynomial of degree at most d, parity d mod 2, with ∣p∣≤1 on [−1,1], and rational δ>0. Put τ=min⁡(δ,8). Initialize L=0 and increment it until 2−L≤τ/[64(d+1)]. Set a=(1−τ/16)p. Set A=1 if d=0 and A=(d+1)dd if d≥1. For each permitted coefficient y of a, set the integer M=(A+2)2L, initialize lo=−M and hi=M+1, and repeat while hi−lo>1: set k=⌊(lo+hi)/2⌋, compare y with k2−L, and set lo=k if k2−L≤y, otherwise set hi=k. Let k=lo. If y=k2−L, set this rounded coefficient to that mesh value; otherwise compare y with (k+12)2−L and choose the nearer of k2−L and (k+1)2−L, taking the lower point in a tie. Keep all other coefficients zero. For d=0 the only permitted coefficient is the constant coefficient and this same search rounds it; no interpolation is used. Return the resulting dyadic polynomial h and the integer polynomial obtained from 1−h2 by multiplying by 22L.

GRID-ROOTS(P,b) receives a nonzero rational real polynomial P and b≥1. If P is constant, return the empty root list. Otherwise let n=deg⁡P≥1. First divide every coefficient by the nonzero leading coefficient, using rational field operations. Only then clear the denominators of these monic coefficient ratios and remove integer content. Compute integer gcds by Euclidean division, obtaining each quotient by bounded integer binary search rather than a free floor primitive. Use the square-free reduction, winding count, multiplicity test and real Sturm counts of Certified complex-polynomial root isolation in exact algebraic arithmetic, with the following bounded search and rational sign implementations.

At any coordinate interval (u,v), set N=100(n+1), where n=deg⁡P. Choose the least dyadic denominator D=2k for which the middle third contains at least N+1 consecutive grid points j/D. Take its first N points. For outer half-widths use intervals (B,B+1), with B=2+max⁡j<n∣aj/an∣ rounded upward to an integer; the search need not start at zero. Test all pairs of the two N-point sets in lexicographic order, using precisely the existing root-free-boundary, nonzero-vertex-imaginary-part, and nonzero-edge-imaginary-polynomial tests. Use the first admissible pair. If none exists return INTERNAL_ERROR. For subdivision use the two parent coordinate intervals and their middle thirds, so every child width is at most 2/3 of its parent width. This bounded search replaces the unbounded global dyadic-pair enumeration only in this numerical alternate.

Implement each edge sign R(α), where I(α)=0, by rational root isolation of the square-free part of RI (omit a nonzero constant factor, and handle R≡0 separately). Use Sturm counts of I and R in each product-root isolator to identify the I-roots; retain only those with I-count one and R-count zero, refining as needed. Use a rational sample therein for the sign of R. Boundary root-freeness ensures that α is not a common root. Endpoint roots are tested and factored out before open-interval Sturm counting. The sign change of I at α is its pair of rational endpoint signs. For sign refinement avoid roots of RI when choosing cuts. The one-dimensional Sturm subdivisions use the first nonroot among N dyadic grid points in the middle third, with the same bounded-grid rule. Euclidean gcd, division, and negative-remainder Sturm chains use exact rational field operations. Stop and return isolators by the original diameter/count rule.

TheoremStatement: AI-adaptedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Polynomial arithmetic cost for rounded-input bounded-grid root isolation

Statement

Let P be a nonzero real rational polynomial of degree n. Let H≥1 bound the binary lengths of its integer coefficients after clearing denominators and removing content. The efficient alternate GRID-ROOTS(P,b) terminates and has the same root/multiplicity correctness as ROOTS. It uses poly⁡(n,H,b) exact rational arithmetic and comparison operations. No cost for a rational operation is silently identified with its bit cost.

For bounded real p of degree at most d and parity d mod 2, put τ=min⁡(δ,8) and log⁡+(x)=max⁡(0,log⁡x). ROUND-QSP(p,d,δ) uses poly⁡(d,log⁡+(1/δ)) exact coefficient comparisons and rational arithmetic, and returns a parity-preserving dyadic h with ∥h−p∥∞≤5τ/64<τ/8, ∥h∥∞≤1−3τ/64, and an integer multiple of 1−h2 with degree at most 2d and coefficient height O(dlog⁡(d+1)+log⁡+(1/δ)+1). Consequently its root isolators to b bits cost poly⁡(d,log⁡+(1/δ),b) arithmetic operations independently of the original coefficient heights in this declared coefficient-access model.

This does not assert polynomial arithmetic complexity for refining the resulting algebraic QSP phases, nor bit complexity for the Euclidean-remainder implementation, nor efficient reading of an arbitrarily long input encoding.

Facts & Assumptions

Given: The inputs and exact rational/input-comparison model in the Statement.

[F1]

Bounded-grid rational root isolation and rounded numerical QSP input defines rounding and bounded-grid root isolation.

[F2]

Correctness and termination of certified complex-polynomial root isolation establishes correctness of the original winding/Sturm/root/multiplicity procedure for admissible cuts. Only its finite correctness, not a resource claim, is used.

[F3]

Sturm signed remainders count distinct real polynomial roots identifies the signed-remainder variation drop with the open-interval distinct-root count after endpoint handling.

[F4]

The discriminant of a monic polynomial as the coefficient expression of Δn2 defines the discriminant of a monic polynomial with integer coefficients by an integer coefficient polynomial Dn. The discriminant is ∏i<j(αi−αj)2 and vanishes exactly when a monic polynomial has a repeated root states that this discriminant is ∏i<j(αi−αj)2 and is nonzero exactly when the polynomial has no repeated root.

Proof

1.1givenalgebra

For d≥1 interpolate p at xj=−1+2j/d, j=0,…,d. The Lagrange basis is Lj(x)=∏k≠j(x−xk)/∏k≠j(xj−xk). The numerator's sum of absolute coefficients is at most ∏k≠j(1+∣xk∣)≤2d; the absolute denominator is (2/d)dj!(d−j)!≥(2/d)d. Therefore each coefficient of Lj has absolute value at most dd, and, since ∣p(xj)∣≤1, every coefficient of p has absolute value at most A=(d+1)dd. This interpolation identity follows because subtracting the interpolant leaves a polynomial of degree at most d with d+1 distinct zeros. For d=0 use A=1. Hence log⁡2(max⁡(2,A))=O(dlog⁡(d+1)+1), independently of any encoding of the original coefficients.

1.2givenalgebra

We give explicit coarse separation estimates sufficient for counting subdivisions. For a primitive integer polynomial U of degree m and coefficient magnitude at most 2J, every root has ∣z∣≤C=1+2J by the Cauchy argument: outside that radius the leading monomial strictly dominates the geometric sum of the others. Every primitive integer divisor V of U has leading coefficient dividing that of U and all its roots among those of U. Its coefficients, by expanding its linear factors, thus have magnitude at most 2J2mmax⁡(1,C)m. The assertion that primitive integer divisors may be used here follows from Gauss's lemma: products of primitive polynomials are primitive, since reduction modulo any prime gives a product of two nonzero polynomials over a field; clearing denominators of a rational factorization and comparing contents then gives the integral factorization. Consequently the primitive square-free part, and every gcd with another integer polynomial, has coefficient height O(m(J+1)). This is an output coefficient-growth bound; it does not bound the internal Euclidean fractions.

1.3F1algebra

For the root-isolation input P, if n=deg⁡P=0, the constant branch in [F1] returns the empty list, which is correct and takes constant work; assume n≥1 below. Put q equal to the square-free part of P and F(x,y)=Im⁡q(x+iy). This is a nonzero real bivariate polynomial of total degree at most n: if Im⁡q vanished everywhere, its x derivative and its y derivative would force q′=0 by the coefficient expansion, contrary to nonconstancy. A nonzero bivariate polynomial of total degree ≤n vanishes at at most nN points of a product of two N-point sets. Indeed, if its leading nonzero coefficient as a polynomial in y has x-degree s, at most s x-values annihilate that coefficient; at every remaining x there are at most n−s y-zeros, giving at most sN+(N−s)(n−s)≤nN. Each fixed old edge restriction of F is nonzero by admissibility, so it has at most n forbidden new vertex coordinates. There are at most n root real coordinates and n root imaginary coordinates, and at most n coordinates making F vanish identically along a vertical or horizontal line: such a coordinate must annihilate any chosen nonzero coefficient polynomial. The new center-vertex condition excludes at most nN pairs. Old-edge vertex, root-line, and identically-zero-edge restrictions together exclude fewer than 20(n+1)N pairs. The analogous four outer-corner polynomials F(±X,±Y) are nonzero and obey the same bound. Therefore N=100(n+1) gives an admissible pair both outside and inside, so INTERNAL_ERROR is unreachable. At most N2 candidate pairs are tested at each node. A univariate nonzero polynomial similarly excludes at most n candidates, proving the one-dimensional bounded search.

2.1F1step 1.1algebra

Let τ=min⁡(δ,8) and t=2−L. The least-L rule gives t≤τ/[64(d+1)] and, unless L=0, t>τ/[128(d+1)]. Since 0<τ≤8, the shrink factor 1−τ/16 lies in [1/2,1). For each scaled coefficient, binary search over the integer mesh indices in [−M,M], where M=(A+2)2L, finds the lower mesh point and exact comparison with its midpoint resolves the rounding tie. Since the interpolation bound gives ∣((1−τ/16)p)j∣≤A, this search interval contains the needed cell and takes O(log⁡(A+1)+L) exact comparisons and rational arithmetic operations, including each integer midpoint division by two. Rounding error per coefficient is at most t/2≤τ/[64(d+1)], so ∥h−(1−τ/16)p∥∞≤τ/64. Thus ∥h−p∥∞≤5τ/64<τ/8 and ∥h∥∞≤1−3τ/64. Parity is preserved because forbidden coefficients remain exactly zero. The integers 2Lhj have length O(L+log⁡(A+1)), and the convolution coefficients of 22L(1−h2) have length O(L+log⁡(A+1)+log⁡(d+1)). Minimality of L gives L=O(log⁡(d+1)+log⁡+(1/τ)+1), proving the claimed height and rounding cost, also when δ≥1. Zero leading rounded coefficients only lower the actual degree.

2.2F4step 1.2algebra

Let V(z)=azr+∑j<rvjzj be the primitive square-free integer part of U, of degree r≥2. Define W(t)=ar−1V(t/a). Its leading coefficient is one, and its j-th coefficient for j<r is vjar−1−j, an integer. Its distinct roots are βi=aζi, with ∣βi∣≤∣a∣C. By [F4], Disc⁡(W) is a nonzero integer and ∣Disc⁡(W)∣=∏i<j∣βi−βj∣2≥1. If Δβ is the least separation of its roots, all other pairwise distances are at most 2∣a∣C, so 1≤Δβ2(2∣a∣C)r(r−1)−2. Therefore the separation of the roots of V obeys Δζ=Δβ/∣a∣≥∣a∣−1(2∣a∣C)−(r(r−1)−2)/2. Step 1.2 bounds log⁡2∣a∣ by O(m(J+1)) and log⁡2C by O(J+1), so log⁡2(1/Δζ)=O(m3(J+1)). Constants and degree-one polynomials need no separation estimate. This argument uses only the two actual local discriminant suppliers in [F4], with no resultant multiplicativity premise.

3.1F1F2step 2.2step 1.3algebra

Every child side length lies between one third and two thirds of its parent side length. The initial side lengths have logarithm O(H+1), by the original Cauchy bound. By step 2.2, after D=poly⁡(n,H,b) levels every rectangle has diameter less than both 2−b and the least distinct-root separation, and hence has count at most one. At every level at most n positive-count rectangles exist, because their disjoint interiors each contain a root by [F2]. Each is replaced by at most four children, so there are O(n(D+1)) tested tree nodes, not 4D. A side at level k has length at least its initial length times 3−k. The least dyadic denominator containing N+1 middle-third points therefore has exponent O(H+k+log⁡(n+1)); all coordinates have numerator and denominator length T=O(H+D+log⁡(n+1)). Even if the interval already contains many integers, only its first N grid points are tested. This last restriction is essential: unrestricted lexicographic enumeration of all pairs in a very wide interval has no polynomial bound merely from a finite forbidden-coordinate count.

4.1F1step 2.1step 3.1algebra

For root analysis with n≥1 (the constant case is settled in step 1.3), integer parts and grid generation are charged operations rather than free primitives. For a rational operand of numerator/denominator length at most S, find its bounding signed powers of two by doubling, then find its floor by binary search through the bounded integer interval, using O(S+1) rational comparisons and additions; compare exactly with the resulting integer to obtain the ceiling and strict open-interval endpoints. Before denominator clearing, normalize the input P by its nonzero leading coefficient in O(n+1) rational field operations. If U is its primitive integer representative with height H, each resulting monic coefficient ratio is Uj/Un, whose reduced numerator and denominator lengths are O(H), independently of an arbitrarily large common rational scalar in the original P. The product of these at most n+1 denominators has length O((n+1)H); using that product as common denominator gives integer coefficients of length O((n+1)H). Their content is found by integer Euclidean gcds. Each division quotient is obtained by the bounded binary search just described, with polynomial-length integer operands. Integer remainders decrease in magnitude; after at most two nonterminal divisions the larger nonzero operand has at least halved (if the first remainder exceeds half the previous divisor, the next is smaller than its complement). Thus the number of divisions per gcd is linear in the initial operand length. Content removal and denominator clearing therefore cost poly⁡(n,H) rational arithmetic and comparisons. The resulting primitive integer representative has height at most H and is the input used in step 1.2 and step 2.2 and step 1.3 and step 3.1. In particular the outer B is obtained in poly⁡(H) operations from the original coefficient ratios. To generate a grid, begin with denominator one and double it, recomputing the strict lower/upper admissible integer numerators by this binary search, until their difference gives at least N+1 points. Step 3.1 bounds the number of doublings by O(H+D+log⁡(n+1)); every rational tested has polynomial numerator/denominator height in n,H,b, because it is a parent coordinate or width times such a dyadic denominator. Each integer-part search therefore costs poly⁡(n,H,b) operations. Writing the first N consecutive grid numerators costs O(N) further additions. This bound also applies to any one-dimensional bounded grid once its coordinate-height and denominator-doubling bounds are established. The least L in rounding is likewise found by sequential denominator doubling and exact comparison with τ/[64(d+1)], with O(log⁡(d+1)+log⁡+(1/τ)+1) iterations; mesh-cell integer selection is the bounded binary search already charged in step 2.1. No floor, ceiling, or denominator selection is treated as unit-cost.

4.2step 1.2step 2.2step 3.1algebra

Each rational edge substitution z=u+vt into q has degree at most n. Clearing the rational denominators after binomial expansion gives real and imaginary integer polynomials with coefficient height Jedge=poly⁡(n,H,T): each term uses at most n coordinate factors of length T and one q coefficient of height O(n(H+1)), and there are at most n+1 terms per coefficient. This also applies to all proposed edges, since they use the same bounded-coordinate grids. Products of two such edge polynomials have polynomial degree and height. Their primitive square-free parts and gcds have polynomial output height by step 1.2, and their distinct roots have separation 2−poly⁡(n,H,T) by step 2.2. The same facts apply to the gcds used for multiplicity tests, since the m-th derivative has coefficient height O(H+nlog⁡(n+1)) and its gcd is a divisor of q.

5.1F1F3step 1.3step 4.1step 4.2algebra

Polynomial division of degree-at-most-n rational polynomials takes O(n2) field operations, and Euclidean and negative-remainder chains have at most n nonzero stages. A Sturm evaluation at rational endpoints thus takes poly⁡(n) field operations and comparisons, regardless of the rational operand sizes. Square-free reduction and every boundary gcd test have the same polynomial arithmetic bound. Isolate each edge's I-roots on [0,1] with the bounded one-dimensional search, first handling endpoint factors. The separation estimate for the square-free product RI proves that poly⁡(n,H,T) levels suffice to separate distinct I-roots and distinguish each I-root from all noncommon R-roots. A root α of I on the edge is not a root of R by the certified boundary test. Refinement therefore eventually puts α in an interval containing no R-root; [F3] certifies this last fact by zero R-root count, and a rational sample gives the nonzero sign of R there. The sign change of I is its two endpoint signs. At every level at most n positive I-root intervals are retained (at most 2n when isolating the product). For a depth-K interval in [0,1], its length is at least 3−K and its endpoints have dyadic height O(K+log⁡(n+1)); the grid denominator therefore requires O(K+log⁡(n+1)) doublings. The grid integer parts, ceilings, and written candidate coordinates are consequently charged by step 4.1 within the same polynomial operation bound. Endpoint handling, bounded-grid cuts, all root counts, and all refinements therefore take poly⁡(n,H,T) rational arithmetic operations. A nonzero constant I has no crossings; an identically zero I was already excluded by the grid.

6.1F2step 2.1step 3.1step 4.1step 5.1algebra∎

Combining O(n(D+1)) nodes, N2 candidates per node, polynomial edge costs from step 5.1, and at most n derivative/gcd multiplicity tests per retained root proves poly⁡(n,H,b) rational arithmetic cost. All accepted boundaries satisfy exactly the conditions in [F2], so its winding, partition, and multiplicity arguments prove correctness unchanged. Substituting n≤2d and H=O(dlog⁡(d+1)+log⁡+(1/δ)+1) from step 2.1 gives the claimed rounded-input root cost. The proof counts field operations; it never bounds Euclidean intermediate operand lengths or the precision required by later algebraic phase calculations, so it makes none of those additional assertions.

Integration boundary

The cited source's p.12 paragraph and Corollary 10 state an efficient classical generation claim. They are context for this local construction, not premises replacing steps above. Theorem 4 is unnecessary for this root supplier; Theorems 3 and 5 are used only by completion/peeling consumers.

Completion, peeling and phase approximation are supplied separately by the local completion/peel arithmetic lemma and buffered phase theorem. This root theorem supplies their exact bounded-height root list; it does not assert floating-point peeling stability or a Turing compiler bound.

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

QSP signal matrix and ordered phase sequence

Definition

Let x∈[−1,1], put s(x)=1−x2 using the nonnegative real square root, and define the Hermitian-reflection signal matrix WR(x)=(xs(x)s(x)−x). For each real ϕ, define Z(ϕ)=diag⁡(eiϕ,e−iϕ). For an integer d≥0 and real phase list Φ=(ϕ0,…,ϕd), the length-d QSP sequence is the ordered matrix product UΦ(x)=Z(ϕ0)∏j=1d(WR(x)Z(ϕj)), where the product is written left to right in increasing j and matrix multiplication acts right to left. For d=0 this is Z(ϕ0). This definition fixes the sign of the off-diagonal signal entry, both endpoint phases, and the product order.

The phases are in matrix order: when the factors are applied as chronological circuit layers, the rightmost factor acts first, in accordance with Denotational semantics of a finite layered circuit. In the ordered signal basis, if both coordinates are nonzero, applying Z(ϕ) multiplies the ratio of the second coordinate to the first by e−2iϕ; if either coordinate is zero, that relative phase is undefined, while the displayed matrix action remains defined. This is the relative phase convention fixed by Relative Phase.

AlgorithmAlgorithm: AI-adaptedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Buffered certified rational phase approximation

Definition

PHASEAPPROX(ω,η) takes a unit scalar ω=u+iv and positive rational tolerance η. Coordinates may be exact algebraic, or exact real expression-DAG nodes in the following explicitly selected ideal-real model. A finite input table labels real constants by their stipulated values; a constant is a parameter with an oracle interface, not a finite rational encoding of an arbitrary real. DAG nodes denote rational constants, those parameters, field operations (division only by a tested nonzero value), and uniquely specified nonnegative square roots. The interface supplies exact equality and order tests on all such expressions, including comparisons with rationals; each call and each field/node operation is charged, together with rational arithmetic and written descriptors. An implementation may additionally return certified rational enclosures, but no enclosure-based equality decision is presumed. This ideal interface is an explicit resource assumption; arbitrary Cauchy names alone do not supply it. Algebraic inputs retain the original exact-algebraic operation model. Implementation and parameter-oracle costs are separate, with no Turing-time claim. Put h=min⁡(η,1). Reject a failed unit promise as INVALID.

  1. Compute a rational interval Iπ of width at most h/8 for π=16arctan⁡(1/5)−4arctan⁡(1/239). For each arctangent use consecutive partial sums of ∑j≥0(−1)jr2j+1/(2j+1) as the enclosure. Increment N≥1 until 20⋅5−(2N+1)≤h/8 and use sums through indices N−1,N. Combine the two intervals outward.
  2. Check coordinates for exact zero. If v=0,u>0, set J=[0,0]; if v=0,u<0, set J=Iπ; if u=0,v>0, set J=Iπ/2; if u=0,v<0, set J=−Iπ/2. In these axis branches proceed to instruction 5. The zero vector returns INVALID.
  3. Set a=∣u∣,b=∣v∣ and [L,U]=[0,2]. While w=U−L>h/8, set m=(L+U)/2 and ε=w/96. Compute rational Taylor sums c,s for cosine and sine at m with error at most ε. Retain at least indices 0,1,2; increment until twice the next absolute term is at most ε. The successive-term ratios after this index are at most 1/2. Form the exact real expression q=bc−as. If q>2ε, set L=m. Otherwise if q<−2ε, set U=m. Otherwise set [L,U]=[L,U]∩[m−12ε,m+12ε]. Equality takes this last branch.
  4. If u>0,v>0, set J=[L,U]; if u<0,v>0, set J=Iπ−[L,U]; if u<0,v<0, set J=−Iπ+[L,U]; if u>0,v<0, set J=−[L,U].
  5. Set t0 to the rational midpoint of J. Find k≥0 by repeated halving until 2−k≤h/16. Round t0 to a multiple of 2−k within 2−k, obtaining t; this can be done by binary search among the dyadic grid points in [−4,4], charging every comparison and written bit. Return t, J, and the rounding bound as the phase certificate.

Use the returned rational phase in Z(t) from QSP signal matrix and ordered phase sequence. All branches and operation counts are explicit; no coordinate-isolator refinement or equality test involving a transcendental sine/cosine value is invoked. In the ideal-real variant all coordinate equality/order calls use the explicitly supplied interface. This definition makes no Turing-time or finite-basis compilation claim.

DefinitionDefinition: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Admissible polynomial pair for Hermitian-reflection QSP

Definition

For an integer d≥0, a pair P,Q∈C[x] is QSP-admissible of degree bound d when:

  • P=0 or deg⁡P≤d, and every exponent with nonzero coefficient in P is congruent to d modulo 2;
  • Q=0 or deg⁡Q≤d−1, and every exponent with nonzero coefficient in Q is congruent to d−1 modulo 2;
  • the formal polynomial identity PP∗+(1−x2)QQ∗=1 holds, where P∗(x)=∑kpk‾xk if P(x)=∑kpkxk.

The zero polynomial satisfies every degree bound and both parity conditions. On real x, coefficient conjugation gives P∗(x)=P(x)‾. The bound d is nominal; a polynomial may have smaller degree of the same parity.

Facts & Assumptions

Given: An integer d≥0 and an admissible pair P,Q as defined above.

[F1]

Real and imaginary parts, complex conjugation, and modulus: complex conjugation fixes real numbers and ∣z∣2=zz‾≥0.

Verification

1.1givenF1algebra

For real x, conjugating each coefficient of P and using x=x‾ gives P∗(x)=P(x)‾; the same calculation gives Q∗(x)=Q(x)‾. Hence the polynomial identity implies ∣P(x)∣2+(1−x2)∣Q(x)∣2=1 for every real x.

2.1step 1.1algebra∎

If ∣x∣≤1, then both summands are nonnegative, so ∣P(x)∣2≤1 and (1−x2)∣Q(x)∣2≤1. Taking nonnegative square roots yields ∣P(x)∣≤1 and 1−x2∣Q(x)∣≤1. At d=0 the degree convention forces Q=0, so the second bound also holds at both endpoints.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

Hermitian-reflection and SU(2) QSP convention conversion

Statement

Put s=1−x2, WR=(xss−x), WS=(xisisx), and C=Z(π/4). Then CWRC=iWS†,WS†=Z(π/2)WSZ(−π/2). For d≥1, define US(Ψ)=Z(ψ0)∏j=1d(WSZ(ψj)). If Ψ is the SU(2)-convention phase list with ψ0=ϕ0+π/4, ψj=ϕj−π/2 for 1≤j<d, and ψd=ϕd−3π/4, then UR(Φ)=idUS(Ψ). The affine phase-list map is invertible. The scalar id is part of the identity: in a control-first block diag⁡(I,U) it acts on the active control branch and cannot be discarded as a global phase.

Facts & Assumptions

Given: x∈[−1,1], real phases, and the definitions of WR and Z in QSP signal matrix and ordered phase sequence.

[F1]

QSP signal matrix and ordered phase sequence fixes WR, Z(ϕ), the ordered product, and the control-relevant phase convention.

[F2]

Euler's formula: exp⁡(iθ)=cos⁡θ+isin⁡θ for every real θ gives eiθ=cos⁡θ+isin⁡θ for real θ.

[F3]
[F4]

Real and imaginary parts, complex conjugation, and modulus: conjugation fixes real numbers and sends i to −i.

[F5]

Controlled Unitary Access: control-first access to a two-dimensional target has block matrix diag⁡(I2,U) when that controlled call is explicitly supplied.

[F6]

Quarter-turn values and shifts by pi/2 and pi gives sin⁡(π/2)=1 and cos⁡(π/2)=0; together with [F2], these give eiπ/2=i and e−iπ/2=−i.

Proof

1.1F1F2F3F4F6algebra

By [F2, F6], eiπ/2=i, and [F3] gives eiπ/4e−iπ/4=1. Multiplying the three matrices entry by entry therefore gives CWRC=(ixssix)=iWS†, since [F4] gives WS†=(x−is−isx).

1.2F1F2F3F4F6algebra

By [F2, F6], the diagonal entries of Z(π/2) and Z(−π/2) are i,−i and −i,i, respectively. Multiplication gives Z(π/2)WSZ(−π/2)=(x−is−isx)=WS†.

2.1F1F3step 1.1step 1.2algebra

Rearranging step 1.1 yields WR=iZ(−π/4)WS†Z(−π/4). Substitution in each signal factor and combination of adjacent diagonal phases by [F3] gives UR(Φ)=idZ(ϕ0−π/4)∏j=1d−1(WS†Z(ϕj−π/2))WS†Z(ϕd−π/4).

3.1step 1.2step 2.1algebra

Replacing each WS† by the right side of step 1.2 adds π/2 to the initial phase, leaves each intermediate phase unchanged after its two adjacent shifts cancel, and subtracts π/2 from the final phase. The resulting SU(2) list is exactly the stated Ψ, and the scalar remains id. Each phase shift is affine with coefficient 1, so the map and its inverse are bijections on Rd+1.

4.1F1F5step 3.1algebra∎

When the operation model explicitly supplies the controlled call on a control-first qubit and two-dimensional target, [F5] gives C(US)=diag⁡(I2,US). Substituting idUS on the active branch gives diag⁡(I2,idUS), which differs from iddiag⁡(I2,US) unless id=1, because the inactive block remains I2. Thus id is a relative phase under control and must be retained.

LemmaStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Unitarity, determinant, and polynomial form of a QSP sequence

Statement

For every x∈[−1,1] and phase list Φ of length d+1, UΦ(x) is unitary with determinant (−1)d. There are polynomials P,Q∈C[x] such that UΦ(x)=(P(x)s(x)Q(x)(−1)d+1s(x)Q∗(x)(−1)dP∗(x)), where P=0 or deg⁡P≤d with parity d, Q=0 or deg⁡Q≤d−1 with parity d−1, and PP∗+(1−x2)QQ∗=1 as a formal polynomial identity.

Facts & Assumptions

Given: x∈[−1,1], s=1−x2≥0, and real phases ϕ0,…,ϕd.

[F1]

QSP signal matrix and ordered phase sequence: WR(x)=(xss−x), Z(ϕ)=diag⁡(eiϕ,e−iϕ), and UΦ=Z(ϕ0)∏j=1d(WRZ(ϕj)).

[F2]
[F4]

Real and imaginary parts, complex conjugation, and modulus: conjugation fixes real numbers, sends i to −i, and zz‾=∣z∣2.

[F5]

For the displayed 2×2 complex matrices, M†:=M‾T; “unitary” means M†M=MM†=I.

Proof

1.1F1F5algebra

Since s2=1−x2, direct multiplication gives WR†=WR, WR2=I, and det⁡WR=−1. Thus WR†WR=WRWR†=I, so WR is unitary in the matrix convention [F5].

1.2F1F2F3base

We prove the polynomial form by induction on d. For d=0, UΦ=Z(ϕ0), so P=eiϕ0 and Q=0 satisfy the degree and parity bounds and PP∗=1.

2.1F2F3F4F5step 1.1algebra

By [F2] and [F4], eiϕ‾=cos⁡ϕ−isin⁡ϕ=e−iϕ; by [F3], eiϕe−iϕ=1. Thus Z(ϕ)†Z(ϕ)=Z(ϕ)Z(ϕ)†=I and det⁡Z(ϕ)=1. Each factor WRZ(ϕ) is unitary with determinant −1, so the d signal factors give UΦ†UΦ=I and det⁡UΦ=(−1)d.

3.1F5step 2.1algebra

Write a 2×2 unitary matrix as M=(abce) with determinant ϵ∈{1,−1}. The cofactor formula gives M−1=ϵ(e−b−ca); by [F5], M−1=M†=(a‾c‾b‾e‾). Equating entries yields e=ϵa‾ and c=−ϵb‾. Applying this with ϵ=(−1)d shows the displayed lower row is forced by the first row.

4.1F1step 3.1step 1.2IHinductionalgebra

Suppose the representation holds at degree d. Multiplying on the right by WR(x)Z(ϕd+1) gives Pd+1=eiϕd+1(xPd+(1−x2)Qd) and Qd+1=e−iϕd+1(Pd−xQd). These are polynomials with degree bounds d+1 and d and parities d+1 and d. The lower row then has the required form by step 3.1.

5.1step 1.2step 4.1inductiondischarge-induction: step 4.1algebra∎

Put s2=1−x2. The scalar phase in each recurrence factor cancels with its coefficient conjugate. Expanding the first norm gives Pd+1Pd+1∗=x2PdPd∗+xs2(PdQd∗+QdPd∗)+s4QdQd∗. Expanding the second gives s2Qd+1Qd+1∗=s2PdPd∗−xs2(PdQd∗+QdPd∗)+x2s2QdQd∗. The mixed terms cancel and the unmixed terms sum to (x2+s2)PdPd∗+s2(x2+s2)QdQd∗=PdPd∗+s2QdQd∗. Thus the identity is preserved as a formal polynomial identity, and induction from step 1.2 proves it for every d.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

A nonnegative even polynomial has a bounded parity complement

Statement

Let d≥0 and let A∈R[x] be even, of degree at most 2d, and nonnegative on [−1,1]. Then there are B,C∈R[x] such that A(x)=B(x)2+(1−x2)C(x)2, where deg⁡B≤d, deg⁡C≤d−1, B has parity d, and C has parity d−1. The zero polynomial is both even and odd and satisfies every degree bound.

Facts & Assumptions

Given: An integer d≥0 and an even real polynomial A with deg⁡A≤2d and A(x)≥0 on [−1,1].

[F1]

The polynomial ring over a commutative ring as finitely supported coefficient sequences with convolution: a polynomial is a finitely supported coefficient sequence, and multiplication is coefficient convolution.

[F2]

Degree, leading coefficient and monic polynomial, with the zero polynomial having no degree: a nonzero polynomial has degree equal to the largest exponent with nonzero coefficient; the zero polynomial has no degree.

[F3]

Fundamental theorem of algebra: every nonconstant complex polynomial has a complex root: every nonconstant complex polynomial has a complex root.

[F4]

Division algorithm for polynomials over a field: division by a nonzero polynomial over a field gives a unique quotient and a remainder that is zero or has degree strictly below the divisor.

[F5]

Square roots exist: a unique a≥0 with (a)2=a; the positives are {x2:x≠0}: every nonnegative real number has a unique nonnegative real square root.

[F6]

A nonreal root of a real polynomial comes with its complex conjugate: a nonreal root of a real polynomial occurs with its complex conjugate.

[F7]

Real and imaginary parts, complex conjugation, and modulus: complex conjugation fixes real numbers, conjugates products, and zz‾=∣z∣2.

[F9]

The reals form a field and The reals form a totally ordered field: R is a field with a compatible total order, so real polynomial division and sign comparisons are defined.

Proof

1.1F1F2F3F4F8

If A=0, choose B=C=0. Otherwise evenness makes deg⁡A=2n for some 0≤n≤d. By [F3], [F8], and repeated use of [F4], factor A over C into its finite multiset of roots with multiplicity.

1.2F1F2F4F6F7F9given

The root multiset, with multiplicities, is invariant under ζ↦−ζ because substituting −x preserves the order of a zero, and under conjugation as follows: if A=(x−ζ)mH with H(ζ)≠0, conjugating the entire coefficient factorization gives A=(x−ζ‾)mH‾ and H‾(ζ‾)=H(ζ)‾≠0. Hence conjugate roots have exactly equal multiplicities, strengthening the root existence in [F6]. The multiplicity at zero is even because every nonzero coefficient of an even polynomial has even exponent. Every real root s with 0<∣s∣<1 has even multiplicity: write A(x)=(x−s)mh(x) with h(s)≠0. Division by x−s gives h(x)−h(s)=(x−s)k(x) for a polynomial k. On a bounded interval around s, k is bounded (each of its finitely many monomials is bounded); choosing the interval small enough makes ∣h(x)−h(s)∣<∣h(s)∣, so h has the sign of h(s) there by [F9]. If m were odd, (x−s)mh(x) would then have opposite signs on the two sides of s, contrary to A≥0.

1.3F5F7

Pair the roots into the following classes, choosing one representative from each symmetric class. A zero root of multiplicity 2r contributes xr. A real pair ±s with 0<s<1 and multiplicity m at each root contributes (x2−s2)m/2; this is a polynomial because m is even. A real pair ±s with s≥1 and multiplicity m contributes Rs(x)m, where Rs(x)=s2−1 x+is1−x2 and RsRs∗=s2−x2. A pure-imaginary pair ±ib with b>0 and multiplicity m contributes Ib(x)m, where Ib(x)=b2+1 x+ib1−x2 and IbIb∗=x2+b2.

1.4F5F6F7F8F9algebra

A nonreal quadruple ±a±ib with a,b>0 and common multiplicity m contributes Qa,b(x)m. Put u=a2+b2 and v=2(a2+1)b2+(a2−1)2+b4, and set c=u+v. Since v≥∣a2−1∣, the two cases a2≤1 and a2≥1 give c≥1, so all displayed square roots are real by [F5]. Define Qa,b(x)=cx2−u+ic2−1 x1−x2. For x∈[−1,1], its quartic norm is Qa,b(x)Qa,b(x)‾=∣Qa,b(x)∣2≥0; because the quartic roots are the nonreal numbers ±a±ib, it is strictly positive on the real interval. Direct expansion gives Qa,bQa,b∗=x4+2(b2−a2)x2+(a2+b2)2, the product of the four linear root factors.

2.1F3F4F5F8F9step 1.1step 1.3step 1.4given

Let G(x) be the product of the nonnegative real factors associated with these root classes: x2r for zero roots, (x2−s2)m for interior real pairs, (s2−x2)m for exterior real pairs, (x2+b2)m for pure-imaginary pairs, and the quartics from step 1.4. Then A=κG for a nonzero real constant κ, because both sides have the same roots with the same multiplicities and the same degree. Enumerate reduced rationals in (−1,1) by increasing positive denominator and then increasing numerator, and take the first x0 outside the finite root set; this search terminates because a nonzero polynomial has finitely many roots by step 1.1. There A(x0)>0 by the nonnegativity hypothesis and A(x0)≠0, and G(x0)>0 by its displayed factors, so κ=A(x0)/G(x0)>0 by [F9]. Let K=κ by [F5].

3.1F1F4F7step 1.3step 1.4step 2.1

Multiply the corresponding root-class factors defined above to form W(x)=K∏R(x), retaining the interior and zero factors as real factors. Repeated use of (B+i1−x2C)(D+i1−x2E)=(BD−(1−x2)CE)+i1−x2(BE+CD) shows that W=B+i1−x2C for real polynomials B,C. Their factor identities give WW∗=A for every x∈[−1,1]. Both WW∗=B2+(1−x2)C2 and A are polynomials; their difference vanishes at infinitely many real points, so it is the zero polynomial, since a nonzero polynomial has at most its degree many roots by repeated division by linear factors.

4.1step 3.1algebra

In each root class, the real part and the coefficient of i1−x2 have opposite parities; a real zero or interior factor has only a real part. The multiplication rule in step 3.1 preserves this parity relation. If deg⁡A=2n, the degrees of the factors give deg⁡B≤n and deg⁡C≤n−1: every imaginary term contains at least one factor whose imaginary coefficient has degree at least one below that factor's real degree. When n=d, the pair has a unique parity profile b determined by its nonzero component: B has parity b if B≠0, and otherwise C has parity 1−b. If b≠d, then B has degree at most d−1, while C, whose parity is d, has degree at most d−2; both terms of B2+(1−x2)C2 would then have degree at most 2d−2, contradicting deg⁡A=2d. Thus b=d and the required parities hold.

5.1F5step 3.1step 4.1algebra∎

If n<d, let b be the parity profile from step 4.1. If b≠d, multiply W by x+i1−x2. Its conjugate product is x2+(1−x2)=1, and the multiplication rule changes the profile from b to 1−b. It raises the degrees by at most one, so the new bounds are deg⁡B≤n+1≤d and deg⁡C≤n≤d−1. If b=d, no adjustment is needed. This also covers B=0 or C=0, since the profile is read from the nonzero component. Thus the resulting B,C meet the required bounds and parities, completing the identity.

TheoremStatement: AI-adaptedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Correctness and arithmetic resource bound for buffered phase approximation

Statement

Given exact real coordinates u,v represented in either model of Buffered certified rational phase approximation with u2+v2=1 and rational η>0, let h=min⁡(η,1). In a model charging one operation for each ideal exact field operation and order/equality comparison, the procedure Buffered certified rational phase approximation returns a certified rational angle t with ∣eit−(u+iv)∣<h. It requires O((1+log⁡(1/h))2) rational arithmetic operations and O(1+log⁡(1/h)) exact field operations/comparisons. It does not refine an algebraic isolator. The rational output has O(1+log⁡(1/h)) bits after a final dyadic rounding. This is not a claim about algebraic operation implementation, intermediate rational bit lengths, parameter-oracle implementation, or Turing time. The ideal-real conclusion is conditional on the stated equality/order interface, not on arbitrary Cauchy-name access. If ω=eiφ, then ∥Z(t)−Z(φ)∥op=∣eit−ω∣<h.

Facts & Assumptions

Given: The algorithm Buffered certified rational phase approximation, the exact unit vector and tolerance above, and access to the charged exact field operations, including comparison with rational numbers.

[F1]

t↦(cos⁡t,sin⁡t) is a bijection from [0,2π) onto the real unit circle and Signs, monotonicity intervals, and ranges of sine and cosine give a unique θ∈[0,π/2] with (cos⁡θ,sin⁡θ)=(∣u∣,∣v∣).

[F2]

Sine is positive and cosine is strictly decreasing on (0,2), with cos 2 at most -1/3 gives sin⁡x≥x/3 for 0≤x≤2; parity gives ∣sin⁡x∣≥∣x∣/3 for ∣x∣≤2.

[F3]

The subtraction formulas for sine and cosine gives the determinant identity used below.

[F7]

The alternating series test: if (bk) is nonincreasing with bk→0 then ∑k(−1)kbk converges, the sum lies between any two consecutive partial sums, and the error after n terms is at most bn: for decreasing nonnegative terms tending to zero, the alternating-series remainder lies between zero and the first omitted signed term; consecutive partial sums enclose the sum.

[F8]

The complex exponential by its power series defines ez=∑n≥0zn/n!, and The complex exponential series converges absolutely for every complex argument states this series converges absolutely for every z∈C.

Proof

1.1F4algebraconstruct

First compute rational sine and cosine approximations at any rational m∈[0,2] to absolute error ϵ>0. For each series, retain at least the terms through index 2 and use the recurrence of successive terms. Subsequent absolute-term ratios are at most 1/2 and decrease: for cosine they are m2/((2k+1)(2k+2)), and for sine they are m2/((2k+2)(2k+3)). Twice the first omitted absolute term bounds the tail. Increment the index until this rational bound is at most ϵ. The geometric decrease gives O(1+log⁡+(1/ϵ)) terms and arithmetic operations, uniformly in m. The returned partial sums c,s therefore satisfy ∣c−cos⁡m∣,∣s−sin⁡m∣≤ϵ.

2.1F1F4step 1.1algebraconstruct

The integral formula and arctan⁡1=π/4 in [F4] give 1/2<π/4<1: on the two cells of the partition 0,1/2,1, the decreasing integrand has lower sum 12(4/5+1/2)=13/20>1/2 and upper sum 12(1+4/5)=9/10<1. Thus 2<π<4. First check the coordinates for exact zero; an axis input takes instruction 2 of the algorithm. Otherwise set a=∣u∣, b=∣v∣ by exact comparisons and signs, and initialize [L,U]=[0,2]. It contains θ by [F1] and π/2<2. While its width w=U−L exceeds h/8, set m=(L+U)/2, ϵ=w/96, and compute c,s as in step 1.1. Form the exact real expression q=bc−as. If q>2ϵ, replace L by m. If q<−2ϵ, replace U by m. Otherwise replace the bracket by [L,U]∩[m−12ϵ,m+12ϵ]. These are two exact comparisons against rational buffers; equality belongs to the third branch. No comparison with an exact transcendental value is made.

3.1F2F3step 1.1step 2.1algebra

Let D=bcos⁡m−asin⁡m=sin⁡(θ−m) by [F3]. Since a,b∈[0,1], ∣D−q∣≤(a+b)ϵ≤2ϵ. Also ∣θ−m∣≤2 because θ,m∈[0,2]. By [F2], the sign of D is the sign of θ−m, and ∣θ−m∣≤3∣D∣. Thus either definite comparison in step 2.1 retains θ and halves the bracket. In the third branch, ∣D∣≤4ϵ implies ∣θ−m∣≤12ϵ, so the intersection also retains θ and has width at most 24ϵ=w/4. It is nonempty. Every iteration contracts by at least a factor 1/2, independently of how close the unknown phase is to a midpoint.

3.2F3F4F7step 2.1algebraconstruct

Obtain a rational enclosure Iπ for π of width at most h/8 by Machin's identity π=16arctan⁡(1/5)−4arctan⁡(1/239). For completeness, put α=arctan⁡(1/5), β=arctan⁡(1/239). The integral in [F4] gives 0<β<α<1/5, so 0<4α−β<4/5<1<π/2 by step 2.1. Sine/cosine addition and their quotient give tan⁡(2α)=5/12, tan⁡(4α)=120/119, and tan⁡(4α−β)=(120⋅239−119)/(119⋅239+120)=1. Injectivity of the principal tangent gives 4α−β=π/4. For each arctangent the positive terms r2j+1/(2j+1) decrease to zero for r=1/5,1/239, so [F7] shows that consecutive alternating partial sums enclose its value, and their separation is at most 5−(2N+1) after the first N terms. Choose N by incrementing until 20⋅5−(2N+1)≤h/8 and take the outward linear combination of the two enclosures. This uses O(1+log⁡(1/h)) rational operations. All displayed denominators are positive; all angles in these tangent identities are in its nonsingular principal range.

4.1step 1.1step 2.1step 3.1algebra

The loop terminates in O(1+log⁡(1/h)) iterations, returning rational L,U containing θ with U−L≤h/8. Its comparison count is linear in the number of iterations. In an iteration with width w>h/8, step 1.1 needs O(1+log⁡(1/h)) rational operations. The total is therefore O((1+log⁡(1/h))2). The exact real expressions compared are only rational linear combinations of the fixed coordinates a,b. No algebraic-coordinate approximation, root isolation, normalized-vector division, or sensitivity bound occurs in these instructions.

5.1F1F4F5F8step 4.1step 3.2algebraconstruct

On an axis, the explicit OP0 branches build J as follows: if v=0,u>0, use [0,0]; if v=0,u<0, use Iπ; if u=0,v>0, use Iπ/2; if u=0,v<0, use −Iπ/2. The zero vector is excluded by the unit promise (the general atan2 procedure returns INVALID there). No angular bisection is needed on an axis. Otherwise use the exact signs of u,v to build a rational interval J for a phase ϕ of u+iv: if u>0,v>0 use [L,U]; if u<0,v>0 use Iπ−[L,U]; if u<0,v<0 use −Iπ+[L,U]; if u≥0,v<0 use −[L,U]. Reflection, quarter-turn and parity identities give u+iv=eiϕ, and width⁡(J)≤h/4. Let t0 be its rational midpoint. Choose the least nonnegative integer k with 2−k≤h/16 by repeated halving, and round t0 to a multiple of 2−k, obtaining t with ∣t−t0∣≤h/16. Thus ∣t−ϕ∣≤3h/16≤3/16. Put Δ=t−ϕ. By [F8], the exponential series converges absolutely and ∣eiΔ−1∣≤∑n≥1∣Δ∣n/n!≤∑n≥1∣Δ∣n=∣Δ∣/(1−∣Δ∣)≤3h/13<h. By [F5], eit=eiϕeiΔ and ∣eiϕ∣=1, so ∣eit−eiϕ∣<h. The phase lies in a fixed bounded interval, so this dyadic t has O(1+log⁡(1/h)) bits. The constructed interval J and rounding bound are the certificate.

6.1F5F6step 4.1step 3.2step 5.1algebra∎

Put z=eit−ω. By [F5] and [F6], Z(t)−Z(φ) has diagonal entries z,z‾. On a vector with orthonormal coordinates x0,x1, its squared output norm is ∣z∣2(∣x0∣2+∣x1∣2). Thus every unit vector has output norm ∣z∣, and the operator norm is exactly ∣z∣<h. Together with the operation counts and termination above, this proves all claims.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

Constructive factorization of an admissible QSP polynomial pair

Statement

For every integer d≥0, a pair P,Q∈C[x] is QSP-admissible of degree bound d if and only if there is a real phase list Φ=(ϕ0,…,ϕd) such that UΦ(x)=(P(x)s(x)Q(x)(−1)d+1s(x)Q∗(x)(−1)dP∗(x))(x∈[−1,1]). The converse is constructive: a leading-coefficient phase peel reduces the degree at each nonconstant stage. The polynomial identity, determinant signs, product order, and phase convention are exactly those in Admissible polynomial pair for Hermitian-reflection QSP and QSP signal matrix and ordered phase sequence.

Facts & Assumptions

Given: An integer d≥0 and polynomials P,Q∈C[x].

[F1]

Admissible polynomial pair for Hermitian-reflection QSP: the degree bounds and parities are d and d−1, and PP∗+(1−x2)QQ∗=1 as a polynomial identity.

[F2]

Unitarity, determinant, and polynomial form of a QSP sequence: a length-d reflection sequence has the displayed determinant-(−1)d matrix form and its upper entries are an admissible pair.

[F3]

Hermitian-reflection and SU(2) QSP convention conversion: for d≥1, the reflection sequence is id times the explicitly phase-shifted SU(2) sequence; the map between phase lists is invertible and the scalar is retained under control.

[F4]

Every nonzero complex number has a unique polar form r(cos⁡θ+isin⁡θ) with r>0 and −π<θ≤π: every nonzero complex number has polar form r(cos⁡θ+isin⁡θ) with r>0.

[F5]
[F6]

Over an integral domain, degrees add under multiplication of nonzero polynomials: for nonzero polynomials over a domain, the degree of a product is the sum of the degrees.

[F7]

Division algorithm for polynomials over a field: division by a nonzero polynomial over a field gives a unique quotient and a remainder that is zero or has degree strictly below the divisor. In particular, division by x−α leaves the constant remainder R(α), so R(α)=0 implies x−α divides R.

[F8]

QSP signal matrix and ordered phase sequence: UΦ=Z(ϕ0)∏j=1d(WRZ(ϕj)) in the stated left-to-right, right-to-left matrix order; for d=0, UΦ=Z(ϕ0).

[F9]

For displayed 2×2 complex matrices, M†:=M‾T and “unitary” means M†M=MM†=I; P∗ and Q∗ continue to mean coefficient conjugation of polynomials.

Proof

1.1F2F8

If the pair comes from a phase list, Unitarity, determinant, and polynomial form of a QSP sequence gives exactly the stated matrix form, degree/parity bounds, and polynomial identity for the sequence defined in [F8]. This proves the forward implication.

1.2F1F4F5F8basegivenalgebra

Let d=0 and suppose the pair is admissible. Then Q=0 and P is constant with ∣P∣=1. Set ϕ0=Arg⁡(P) from the unique principal polar representation [F4]; [F5] gives P=eiϕ0. By [F8], UΦ=Z(ϕ0)=diag⁡(P,P∗), the required matrix.

1.3F1F4F5F8basealgebra

Let d=1. Parity gives P=ax and Q=b for constants a,b∈C. Evaluating the identity at x=0 and x=1 gives ∣b∣=∣a∣=1. Set α=Arg⁡(a) and β=Arg⁡(b) by [F4], so [F5] gives a=eiα and b=eiβ; then set ϕ0=(α+β)/2, ϕ1=(α−β)/2. By the order in [F8], direct multiplication of Z(ϕ0)WR(x)Z(ϕ1) gives entries ax, s(x)b, s(x)b‾, and −xa‾, exactly the four entries in the Statement for d=1.

1.4F1F2F3F9givenalgebra

Now let d≥2 and assume the converse has been constructed at every smaller nominal degree. Put PS=i−dP and QS=i−(d+1)Q. Multiplication by unit complex scalars preserves the bounds, parities and coefficient-conjugate identity in [F1]. The corresponding source-convention matrix is MS(x)=(PS(x)is(x)QS(x)is(x)QS∗(x)PS∗(x)). For real x, the diagonal entries of MS†MS are ∣PS∣2+s2∣QS∣2=1, and the off-diagonal entries cancel as isPS∗QS−isQSPS∗=0 and its conjugate. Thus MS†MS=I; together with det⁡MS=PSPS∗+(1−x2)QSQS∗=1 from [F1], this makes MS unitary by [F9]. Also WS†WS=WSWS†=I and det⁡WS=1 by direct multiplication using x2+s2=1, while every Z(ψ) is unitary with determinant 1 by [F2, F9]. Thus the peel multiplies by unitary matrices.

1.5F1F3F4F5F6F7givenalgebra

If PS is constant, then the identity at x=1 gives ∣PS∣=1. For every x∈(−1,1) it then gives (1−x2)∣QS(x)∣2=0, hence QS(x)=0 throughout that interval. If QS were nonzero of degree m, choose m+1 distinct points in (−1,1); repeated division by their linear factors using [F7] would force a divisor of degree m+1 of QS, contradicting [F6]. Thus QS=0. The parity of the nonzero constant PS forces d even. Set ψ0=Arg⁡(PS) by [F4], so [F5] gives PS=eiψ0. Direct multiplication using x2+s2=1 gives WSZ(π/2)WS=Z(π/2) and therefore WSZ(π/2)WSZ(−π/2)=I. This identity is the length-two phase product Z(0)WSZ(π/2)WSZ(−π/2). Insert it on the left of the current sequence; the adjacent Z(−π/2) and initial Z(ψ0) combine to Z(ψ0−π/2) by [F3], so the result is again a standard phase list and has two additional signal factors. Repeating this d/2 times pads the constant sequence to nominal degree d.

1.6F1F4F5F6algebra

Otherwise let ℓ=deg⁡PS≥1, with leading coefficients pℓ for PS and qm for QS. The identity forces QS≠0 and m=ℓ−1: if m≥ℓ, the highest term of −(x2)QSQS∗ has degree 2m+2>2ℓ and cannot cancel; if m<ℓ−1, the degree-2ℓ term ∣pℓ∣2x2ℓ cannot cancel. At degree 2ℓ, the coefficients therefore satisfy ∣pℓ∣2−∣qℓ−1∣2=0. Thus r:=pℓ/qℓ−1 has modulus one. Set ψd=Arg⁡(r)/2 using [F4]; then [F5] gives e2iψd=r.

2.1F1F6F9step 1.6algebra

Multiply MS on the right by Z(−ψd)WS†, where WS=(xisisx). The result has the same form with P′=e−iψdxPS+eiψd(1−x2)QS,Q′=eiψdxQS−e−iψdPS. The possible degree-(ℓ+1) coefficient of P′ and degree-ℓ coefficient of Q′ both equal zero by e2iψd=pℓ/qℓ−1. Their parities then give deg⁡P′≤ℓ−1 and deg⁡Q′≤ℓ−2, the bounds for nominal degree d−1. The right multiplier and MS are unitary with determinant 1, so their product N=(ABCD) is also unitary with determinant 1. The cofactor formula gives N−1=(D−B−CA), whereas [F9] gives N−1=N†=(A∗C∗B∗D∗). Equating entries yields D=A∗ and C=−B∗. Since A=P′ and B=isQ′, this is the required lower row [isQ′∗,P′∗]. If a=e−iψd, then P′=axPS+a‾(1−x2)QS and Q′=a‾xQS−aPS; expanding their coefficient-conjugate products cancels the two mixed terms and leaves P′P′∗+(1−x2)Q′Q′∗=(x2+1−x2)(PSPS∗+(1−x2)QSQS∗)=1. So (P′,Q′) is admissible at nominal degree d−1.

3.1F1F3step 1.2step 1.3step 1.4step 1.5step 2.1IHinductionconstruct

Put k=d−1≥1 and M′=MSZ(−ψd)WS†, the matrix in step 2.1. The pair (ikP′,ik+1Q′) is admissible at nominal degree k, since the unit scalars preserve degree, parity and the coefficient-conjugate identity. Apply the reflection-convention induction hypothesis to this pair. Its displayed matrix is ikM′ entrywise: the lower-row factors are (−1)k+1i−(k+1)=ik+1 and (−1)ki−k=ik. By [F3], convert that reflection phase list to a source-convention list with ikUS=ikM′, hence US=M′. Reversing the peel gives MS=M′WSZ(ψd), so appending ψd constructs the required finite source-convention list. Each induction call has strictly smaller nominal degree; steps 1.2, 1.3 and 1.5 supply the bases and constant padding.

4.1F3step 1.1step 1.2step 1.3step 1.4step 3.1discharge-induction: step 1.4algebra∎

For d≥2, apply the inverse affine phase map in [F3] to obtain a reflection phase list Φ. Since UR(Φ)=idUS(Ψ), its upper-left entry is idPS=P, its upper-right entry is id+1sQS=sQ, and its lower entries are (−1)d+1sQ∗ and (−1)dP∗. Thus it is the required reflection sequence and the converse follows. Together with the forward implication and both base cases this proves the equivalence for all d≥0.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Completion of a bounded real parity polynomial

Statement

Let d≥0 and let p∈R[x] have degree at most d, parity d mod 2, and ∣p(x)∣≤1 for every x∈[−1,1]. Then there is a QSP-admissible pair P,Q of degree bound d such that Re⁡P(x)=p(x) on [−1,1]. In fact, the completion is exact, so for every δ>0 it also satisfies ∣Re⁡P(x)−p(x)∣≤δ.

Facts & Assumptions

Given: An integer d≥0 and a real polynomial p with the stated degree, parity, and interval bound.

[F1]

A nonnegative even polynomial has a bounded parity complement: an even real polynomial R of degree at most 2d that is nonnegative on [−1,1] has R=B2+(1−x2)C2 with the required degree bounds and parities.

[F2]

Admissible polynomial pair for Hermitian-reflection QSP: admissibility requires the stated degree/parity bounds and PP∗+(1−x2)QQ∗=1.

[F3]

Real and imaginary parts, complex conjugation, and modulus: conjugation fixes real coefficients and sends i to −i.

Proof

1.1givenalgebra

Put R=1−p2. Since p(−x)=(−1)dp(x), p2 and hence R are even. Its degree is at most 2d, and the interval bound on p gives R(x)≥0 for every x∈[−1,1].

2.1F1step 1.1

Apply [F1] to obtain real polynomials B,C with R=B2+(1−x2)C2, degree bounds d,d−1, and parities d,d−1.

3.1F2F3givenstep 2.1algebra

Define P=p+iB and Q=C. By [F3], P∗=p−iB and Q∗=C, so PP∗=p2+B2 and QQ∗=C2. Their sum in the admissibility identity is therefore p2+B2+(1−x2)C2=p2+R=1. The degree bounds and parities of p,B,C also give the required bounds and parities of P,Q; hence the pair is admissible by [F2].

4.1step 3.1algebra∎

For real x, the real part of P(x)=p(x)+iB(x) is exactly p(x). Thus the uniform error is zero and is at most every δ>0.

LemmaStatement: AI-adaptedProof: AI-adaptedOpen item page →

Arithmetic cost of exact tower completion and QSP phase peeling

Statement

Let h∈Q[x] be parity-compatible, of degree at most d, with ∣h∣<1 on [−1,1]. Let H bound the binary lengths of every coefficient numerator and denominator of R=1−h2. Suppose its complete exact root list, multiplicities and fixed-precision rational isolating rectangles are supplied. In a model charging ideal exact algebraic field/order/equality operations and permitting finite extension tower/DAG descriptors, root-class completion and QSP phase peeling use poly⁡(d,H) operations and polynomially many descriptor nodes and written index bits. Positive roots use counted bisection with known rational upper bounds. For a unit peel ratio r=x+iy, choose i if x=−1 and otherwise s+iy/(2s) with s=(1+x)/2>0; either square root of r gives the exact factorization. Root generation, numerical phase approximation, expanded minimal-polynomial conversion, input encoding/access and operation implementation bit costs remain separate.

Facts & Assumptions

Given: The rational target and supplied complete exact root list in the Statement; rational and algebraic operations, comparisons, and descriptor construction are charged.

[F1]

A nonnegative even polynomial has a bounded parity complement gives the complement existence, parity correction and degree bounds. The particular root-class norm identities used for the cost calculation are verified directly below.

[F2]

Constructive factorization of an admissible QSP polynomial pair gives phase factorization of an admissible pair. The unit-ratio and cancellation calculations for the selected root are supplied directly below.

[F3]

Hermitian-reflection and SU(2) QSP convention conversion gives the fixed eighth-root multiplications and complete phase-list conversion.

Proof

1.1F2given

For an exact algebraic r=x+iy with x2+y2=1, select one square root by:

1.2F4givenconstruct

If x=−1, return ω=i (then necessarily y=0). Otherwise put s=(1+x)/2>0, t=y/(2s), and return ω=s+it.

1.3F4givenconstruct

Given an existing exact real algebraic value A≥0 and a known rational U≥max⁡(1,A), compare A with zero. If equal, return rational zero. Otherwise initialize [l,r]=[0,U]. While r−l>1/2, put m=(l+r)/2 and compare A with m2 exactly. Equality returns the rational value m. If A<m2, put r=m; if A>m2, put l=m. After the loop, return the tower descriptor consisting of T2−A over the existing field and the rational isolating interval [l,r], specifying its unique nonnegative root.

2.1F4step 1.2algebra

Here −1<x≤1, so the positive square root exists, is nonzero, and has the root-selection description S2−(1+x)/2=0, 0<S<2 over the existing real algebraic field. Its two roots are distinguished immediately by sign. One has t2=(1−x)/2 because y2=(1−x)(1+x), whence s2+t2=1, s2−t2=x, and 2st=y. Therefore ∣ω∣=1 and ω2=r. The x=1,y=0 case returns 1. No small-denominator numerical approximation is performed; the division is exact. There is no conditioning assumption.

2.2F4step 1.3algebra

For A>0, the roots are ±A, distinct, and only the positive root belongs to [0,U]. The square function is strictly increasing on this nonnegative interval, so each branch preserves A∈[l,r] and excludes the negative root. Every iteration halves the width and uses O(1) rational or exact field operations and one exact comparison. Hence the routine uses O(1+log⁡U) operations/comparisons and writes a degree-two defining equation plus its rational isolator. A root at the original right endpoint is permitted in the closed isolator; the root is still unique. If open endpoints are required, start with [0,2U]; this adds at most one iteration and makes the positive root interior unless a midpoint equality has already returned it rationally.

2.3step 1.3givenalgebra

In a model requiring conversion at every step to a rational defining polynomial and a rational isolator, the quadratic relation has an algebraic coefficient. Converting it to a rational defining polynomial requires elimination, and converting all subsequent values into that representation can be expensive. The descriptor routine does not bound that conversion cost. A tower of d quadratic extensions may have degree 2d, even though its construction writes only d degree-two tower equations and rational isolators.

3.1F2step 2.1algebra

This replaces a generic call ROOTS(z2−r,1) by a constant number of field operations and exact comparisons and the explicit quadratic-root descriptor routine below. It may choose the other square root from the existing lexicographic-rectangle rule. Either root gives the leading-term cancellation and an exact factorization: subsequent phases change coherently with that choice. The synthesis algorithm selects this formula in every mode; the efficient-numerical cost bound here uses its known upper bound rather than a bound search.

3.2step 1.2step 2.2algebra

For the half-angle radicand A=(1+x)/2, one has 0<A≤1 after the x=−1 branch, so U=1 is known without search. One bisection suffices for a closed width-1/2 isolator; at most two suffice with the open-endpoint initialization. This is an actual counted descriptor-construction loop, not a free ROOTS call or a radical oracle. Subsequent field operations and order/equality queries on these tower values remain the explicit charged primitives of the declared exact algebraic comparison/field model. These are ideal exact equality/order resources charged per use; their implementation is not supplied by the descriptor loop.

3.3F1step 2.2givenalgebraconstruct

Suppose the rational completion polynomial R has nonzero coefficient numerators and denominators of absolute value at most 2H. A rational Cauchy bound B≥1 can be chosen with B≤22H+2, because the leading coefficient ratio is at most 22H. Every classified root coordinate s,a,b then has absolute value at most B. In the exterior class s≥1 and the imaginary class b>0, so 0≤s2−1≤B2 and 0<b2+1≤2B2; thus U=2B works. For a quadruple put D=2(a2+1)b2+(a2−1)2+b4. Then D≤4B4+4B2+1≤9B4, so U=3B2 works for D. Writing A=a2+b2, direct expansion gives D=(A−1)2+4b2. Since b>0, c=A+D>A+∣A−1∣≥1. Hence 0<c2−1<c2≤25B4, and U=5B2 works for c2−1. All these descriptor-construction loops therefore use O(1+H) operations/comparisons per radical. They do not require roots to be well separated, and they do not approximate the input algebraic coordinates.

4.1F1step 3.3algebra

Write N(B,C)=B2+(1−x2)C2. Expanding the pair multiplication rule gives N((B,C)(D,E))=N(B,C)N(D,E). The factors (x,0), (x2−s2,0), (s2−1x,s) and (b2+1x,b) have norms respectively x2, (x2−s2)2, s2−x2 and x2+b2. For a quadruple put A=a2+b2. Step 3.3 gives c>1, and expansion gives c2−2Ac−1=−2(a2−b2). Consequently the pair (cx2−A,c2−1x) has norm x4−2(a2−b2)x2+A2, the monic polynomial with roots ±a±ib. These identities verify the radicands and the norm factors directly. There is also no uncontrolled reciprocal scale hidden in the final K. The squared norms of the unscaled elementary factors are, respectively, x2, (x2−s2)2, s2−x2, x2+b2, and the monic degree-four root polynomial for a quadruple. For the quadruple, the x4 coefficient is c2−(c2−1)=1. Thus the product norm G has leading coefficient +1 or −1. If R is nonconstant, its leading coefficient is minus the square of the leading coefficient of the rounded target, and κ>0 implies κ=∣lc⁡(R)∣. Hence κ≤2H, and one can compute the rational upper bound U=1+∣lc⁡(R)∣≤2H+1 to construct K=κ; alternatively use the absolute value of the target leading coefficient directly. If R is a nonzero constant, 0<R≤1 and U=1 suffices. The unit-norm parity correction does not alter G or this bound. These estimates count only the quadratic descriptors after the exact root list has already been obtained; they supply no bound for generating that root list.

4.2F2F3step 2.1step 3.2algebra

At a nonconstant peel, comparison of the highest coefficients in PP∗+(1−x2)QQ∗=1 forces deg⁡Q=ℓ−1 and ∣aℓ∣2=∣bℓ−1∣2, so bℓ−1≠0 and r=aℓ/bℓ−1 is unit. For either unit square root ω2=r, the leading terms in P′ and Q′ below are ω‾aℓ−ωbℓ−1=0 and ωbℓ−1−ω‾aℓ=0; parity lowers the resulting degree bounds by one. Direct expansion preserves the admissibility norm identity. The selected root therefore implements the same exact cancellation used for [F2]. Computing it, selecting the unit root above with its counted tower descriptor, and conjugating the root are O(1) charged operations/comparisons. The simultaneous coefficient-array updates P′=ω‾ xP+ω(1−x2)Q, Q′=ωxQ−ω‾P take O(n+1) field operations at nominal degree n. Degree/parity scans take O(n+1) exact comparisons; there are at most d peels. Thus the peel itself takes O((d+1)2) field operations/comparisons, including the O(d) quadratic-root descriptor constructions. If every full polynomial coefficient identity is recomputed naively after every peel, budget O((d+1)3) field operations instead; this remains polynomial. Padding and multiplication by the fixed eighth roots of unity use O(d+1) additional operations and at most one fixed 2 descriptor construction with U=2. The base constant is already a unit algebraic scalar and needs no Arg oracle.

5.1F1step 2.2step 3.3step 4.1step 4.2algebra∎

There are at most 2d roots counting multiplicity and therefore O(d+1) elementary complement factors and quadratic descriptors. Schoolbook polynomial-array pair multiplication and final coefficient-identity checks use O((d+1)3) field operations in total; root classification and symmetry checks use O((d+1)2) exact comparisons. Each descriptor writes a degree-two equation whose coefficients reference existing nodes, and an isolator of O(H+1) rational bits from its known bounded endpoint. Every field operation writes one referenced node rather than expanding prior expressions. Thus all certificate equations and operation lists have polynomially many nodes, indices and bits in d,H; the supplied root descriptors are referenced. These are arithmetic/descriptor costs, and make no claim about implementing the ideal equality/order tests or field operations.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Real bounded-polynomial QSP phase synthesis

Definition

Inputs and model. Input a real polynomial p∈Q[x] or with exact algebraic real coefficients, a declared degree bound d≥0, the required parity d mod 2, and a positive rational tolerance δ. The exact algebraic arithmetic model charges one operation for each ideal exact algebraic field operation and equality/order test, and charges rational arithmetic, root refinement, numerical operations and written output separately. Intermediates may be stored as a finite extension tower/DAG, with defining polynomials over previously constructed fields and rational isolators. Original input reading, expanded rational minimal-polynomial conversion and operation implementation bit costs are separate coordinates. Modes are exact, complete-numerical, and efficient-numerical (the default numerical mode); the first two retain the complete OP0 schedule. No polynomial bit-time or finite-basis gate bound is implicit. An optional finite-phase compiler must terminate on each requested phase and return either a unitary circuit with a certified operator-error bound or a declared failure. The optional supplied-complement mode also accepts exact real polynomials B,C as a proposed certificate; it skips only their generation, not validation or phase synthesis. These coefficients are parameters in the ideal-real expression-DAG/interface model of Buffered certified rational phase approximation; all derived field expressions and square-root nodes must be supported by its charged equality/order interface. The original target remains rational/exact-algebraic. In either numerical mode the supplied certificate must complete the actual p0 produced in Step 2. No claim identifies these ideal-real inputs with arbitrary computable-real names or includes their oracle implementation in the efficient bare-target bound.

Positive-root descriptors. When a nonnegative real expression a requires a square root, test a=0 and return zero in that case. Otherwise retain the exact node s defined by s2=a,s>0. Construct its rational isolator by doubling U from 1 until U2>a, and bisect [0,U] using comparisons of the rational midpoint squared with a until width at most 1 (or any requested positive rational width). An equality returns the exact midpoint singleton; otherwise retain the half containing the positive root. All comparisons, doublings, bisections and descriptor writes are charged. This constructs a uniquely specified root by order and square-root existence, with a finite bound search, rather than calling general polynomial ROOTS on ideal-real coefficients.

  1. Validate the target. Check the degree and parity coefficient conditions exactly. In efficient-numerical mode use Exact interval boundedness by multiplicity strata and Sturm counts on the original polynomial and return INVALID exactly when its interval promise fails. This uses only polynomially many field/order operations and no input-root isolation. In the other two modes compute the formal derivative p′. If p′ is zero, check ∣p(1)∣≤1. Otherwise call REALROOTS(p') from Certified complex-polynomial root isolation in exact algebraic arithmetic, retain all roots in [−1,1] including endpoints, and evaluate p exactly at those algebraic roots and at −1,1. Return INVALID if any value is outside [−1,1]. This finite critical-point check certifies the full interval bound by the extreme-value and Fermat theorems.

  2. Set the numerical target. Put δ0=min⁡(δ,8). In exact mode put p0=p; in complete-numerical mode put p0=(1−δ0/8)p. In efficient-numerical mode use ROUND-QSP from Bounded-grid rational root isolation and rounded numerical QSP input: shrink by 1−δ0/16 and parity-preservingly round each coefficient to dyadic error at most δ0/[64(d+1)]. Its output p0 has ∥p0−p∥∞≤5δ0/64<δ0/8 and ∥p0∥∞≤1−3δ0/64<1. Thus either numerical mode has ∣p−p0∣≤δ0/8≤δ/8 on [−1,1] and ∣p0∣<1 there. Clipping the shrink amount at 8 keeps the target bounded for every positive tolerance.

  3. Build or validate the complementary pair. Set R=1−p02. First, in supplied-complement mode, verify by exact coefficient arithmetic that R=B2+(1−x2)C2, that B,C have the required degree bounds, and that their parities are d and d−1; return CERTIFICATE_ERROR on failure, and on success go directly to Step 5, retaining the supplied pair even when R=0. Without a supplied pair, if R=0, set B=C=0 and go directly to Step 5. Only in the remaining R≠0 case call GRID-ROOTS(R,1) from Bounded-grid rational root isolation and rounded numerical QSP input in efficient-numerical mode and ROOTS(R,1) in the other modes. The former uses the rounded rational coefficients and bounded normalized cut grids, not the complete mode's unbounded lexicographic pair search. Verify the exact root symmetries and R≥0 certificate on [−1,1], and group roots by the following classes, retaining multiplicities: zero; real pairs ±s with 0<s<1; real pairs ±s with s≥1; purely imaginary pairs ±ib with b>0; and nonreal quadruples ±a±ib with a,b>0. Sort descriptors by the rational isolating-rectangle coordinates, lexicographically. A failed symmetry or nonnegativity check returns INVALID.

  4. Construct the pair. Start an unscaled pair (Bu,Cu)=(1,0). For a zero root of multiplicity 2r, multiply by (x,0) r times. For an interior real pair ±s of multiplicity m at each root, m is even; multiply by (x2−s2,0) m/2 times. For an exterior real pair ±s of multiplicity m, multiply by (s2−1 x,s) m times. For an imaginary pair ±ib of multiplicity m, multiply by (b2+1 x,b) m times. For a nonreal quadruple ±a±ib of common multiplicity m, put c=a2+b2+2(a2+1)b2+(a2−1)2+b4 and multiply by (cx2−(a2+b2),c2−1 x) m times. Each pair represents Bu+i1−x2Cu; multiply pairs by (B,C)(D,E)=(BD−(1−x2)CE,  BE+CD). Set G=Bu2+(1−x2)Cu2. The factor identities show that G has exactly the roots of R, with the same multiplicities, and each root-class factor is nonnegative on (−1,1); hence R=κG for a positive constant κ. To see positivity, choose a rational x∈(−1,1) outside the finite root set; then R(x)>0 and G(x)>0. Compute κ as the ratio of the leading coefficients of R and G, and set K=κ using the nonnegative algebraic square root. Set (B,C)=K(Bu,Cu). In efficient-numerical mode every positive square root in this step is represented by its degree-two tower equation and an explicitly bisected nonnegative rational isolator as in Arithmetic cost of exact tower completion and QSP phase peeling; the known root-bound-based upper endpoints make the descriptor loops polynomial. No generic ROOTS call with algebraic coefficients or flattened minimal polynomial is hidden in this instruction. Determine the parity profile b from the nonzero component: B has parity b and C has parity 1−b, with the zero polynomial allowed either parity. Since R≠0, these components are not both zero. If b≠d mod 2, multiply once by (x,1), whose squared modulus is x2+(1−x2)=1. Verify the exact identity R=B2+(1−x2)C2, the degree bounds and both parities; a failed identity returns CERTIFICATE_ERROR.

  5. Make the admissible pair. For the reflection convention of QSP signal matrix and ordered phase sequence, set P=p0+iB and Q=C. Then coefficient conjugation gives PP∗+(1−x2)QQ∗=p02+B2+(1−x2)C2=1. OP1's source SU(2) completion packages an i in its off-diagonal coefficient; this item keeps Q=C for the reflection signal. Step 6 forms the corresponding source-normalized pair, and step 7 maps the complete phase list back using Hermitian-reflection and SU(2) QSP convention conversion, including its scalar id. Never use one convention's off-diagonal formula with the other's phases.

  6. Peel phases. Form PS=i−dP and QS=i−(d+1)Q, and initialize an empty peel list. For nominal degree n=d,d−1,…, if PS is constant, verify QS=0 and ∣PS∣=1, verify that n is even, and store the base phase scalar PS. Initialize the residual source phase-scalar list with [PS]. To pad to degree n, prepend n/2 length-two identity blocks WSZ(π/2)WSZ(−π/2)=I; represent each block by phase scalars (1,i,−i) and merge adjacent phase scalars by multiplication in matrix order. An odd constant case returns CERTIFICATE_ERROR. After completing the constant branch and its padding, exit the peel loop and proceed to Step 7. Otherwise let ℓ=deg⁡PS, read leading coefficients aℓ,bℓ−1, verify bℓ−1≠0 and ∣aℓ∣=∣bℓ−1∣, and put r=aℓ/bℓ−1=x+iy. In every mode choose ωn=i when x=−1; otherwise construct the positive root descriptor s=(1+x)/2 by the preceding instructions (first returning s=1 when the radicand is 1, otherwise using strict upper bound 1) and set ωn=s+iy/(2s). It has unit modulus and square r by Arithmetic cost of exact tower completion and QSP phase peeling. Since ∣r∣=1, x≥−1; in the nonexceptional case x>−1 so s>0 and division is valid. This rule applies to ideal-real supplied coefficients without invoking algebraic ROOTS. Either square-root choice makes the exact leading-term cancellation valid. Set eiψn=ωn, append ωn to the peel list with index n, and update:

    PS←e−iψnxPS+eiψn(1−x2)QS,QS←eiψnxQS−e−iψnPS,

    using the old right-hand sides simultaneously. Verify the coefficient identity after each peel. The cancelled leading terms lower the nominal degree by one. Return CERTIFICATE_ERROR if any exact check fails. The loop terminates after at most d peels.

  7. Convert and approximate phases. Append the reverse of the indexed peel list to the residual base phase-scalar list to obtain the source phase scalars ζ0,…,ζd in matrix order. If d=0, take the sole reflection phase scalar to be ω0=ζ0. If d≥1, convert them to reflection phase scalars by the inverse map in Hermitian-reflection and SU(2) QSP convention conversion: set ω0=e−iπ/4ζ0, set ωj=iζj for 1≤j<d, and set ωd=e3iπ/4ζd. These are exact multiplications by eighth roots of unity, represented with the positive root of 1/2 and require no transcendental angle extraction; retain the exact scalar id in controlled use. For each ωj, call Buffered certified rational phase approximation with tolerance δ0/(16(d+1)); return its rational angle and distance certificate. If a finite-basis phase compiler is separately supplied, pass it those angles and require a unitary output with further operator error at most δ0/(16(d+1)) for each phase; return IMPLEMENTATION_ERROR if it cannot supply that bound. Without such a compiler, output the exact phase-scalar descriptors (algebraic or ideal-real as selected) and continuous-rotation list with finite-basis compilation marked not applicable.

Output and failure branches. On SUCCESS, return Φ, the exact B,C identity certificate, every leading-coefficient/root certificate, the numerical phase certificates, and the actual arithmetic, query, gate, precision and output-cost ledger. INVALID means the input promise failed. CERTIFICATE_ERROR means an exact generated or supplied identity check failed. IMPLEMENTATION_ERROR means the optional finite-basis compiler could not certify its allocated per-phase error. In efficient-numerical mode, without a supplied complement or optional compiler, the full construction and its continuous-rotation phase certificates require poly⁡(d,1+log⁡+(1/δ)) operations in the declared exact-algebraic arithmetic model, by Correctness of QSP phase synthesis ↗. Complete modes assert finite termination rather than that uniform bound; supplied-certificate reading and optional compiler work remain separately charged. No bare existence choice, free root oracle, free phase gate implementation, or finite Turing complexity claim is made.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Hybrid bound for imperfect QSP phase rotations

Statement

Fix x∈[−1,1] and a length-d sequence from QSP signal matrix and ordered phase sequence. Suppose the jth implemented phase is a unitary Z~j with ∥Z~j−Z(ϕj)∥op≤ζj, for 0≤j≤d. With exact signal calls, the implemented product obeys ∥U~Φ(x)−UΦ(x)∥op≤∑j=0dζj. If the kth implemented signal call is also a unitary W~k with ∥W~k−WR(x)∥op≤ηk, for 1≤k≤d, then the right-hand side is ∑j=0dζj+∑k=1dηk. These norm errors do not supply controlled or inverse access; their availability and charge remain part of the declared access model.

Facts & Assumptions

Given: x∈[−1,1], real phases ϕ0,…,ϕd, and unitary implemented phase/signal gates satisfying the displayed error bounds.

[F1]

QSP signal matrix and ordered phase sequence: WR(x) and every Z(ϕj) are unitary, and the product has d signal factors and d+1 phase factors.

[F2]

The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm is the maximum output norm on unit vectors.

[F3]

The operator norm is submultiplicative and satisfies ||T^*T|| = ||T||^2: operator norms are submultiplicative and a unitary has norm 1.

[F4]

Circuit-family and computation cost model: phase precision, ordinary gates, and oracle calls are separate resource coordinates.

[F5]

The inner-product norm is definite, homogeneous, and satisfies the triangle inequality: the vector norm satisfies the triangle inequality, and hence the induced operator norm does also.

Proof

1.1F1algebra

Write the ordered product as AnAn−1⋯A1, where each factor is one phase or signal gate, and write the implemented factors as A~j. Insert and subtract products with the first k factors implemented and all remaining factors ideal; this gives the exact telescoping identity A~n⋯A~1−An⋯A1=∑k=1nA~n⋯A~k+1(A~k−Ak)Ak−1⋯A1.

2.1F2F3F4F5step 1.1algebra∎

Every prefix and suffix in each summand is a product of unitaries, hence has operator norm 1 by [F3]. For any operators S,T and unit vector v, [F5] gives ∥(S+T)v∥≤∥Sv∥+∥Tv∥≤(∥S∥op+∥T∥op)∥v∥; taking the supremum gives the operator-norm triangle inequality. Together with submultiplicativity from [F3], this bounds the norm of the telescoping sum by the sum of individual factor errors. Grouping phase and signal factors gives ∑jζj+∑kηk, and setting all ηk=0 gives the phase-only assertion. The resource coordinates remain separate by [F4].

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

QSP signal-query and phase-rotation count

Statement

A length-d sequence from QSP signal matrix and ordered phase sequence has exactly d signal factors WR(x) and exactly d+1 phase factors Z(ϕj), for 0≤j≤d. In the scalar QSP model the signal acts on one two-dimensional signal register. If each WR is provided by a named query oracle, the sequence uses exactly d calls to that oracle; it makes no controlled or inverse signal calls. The oracle's work registers, implementation, and query/gate charges are those explicitly supplied with it. The phase-rotation, ordinary-gate, circuit-description, bit, and numerical-precision coordinates remain separate as in Circuit-family and computation cost model.

Facts & Assumptions

Given: A nonnegative integer d, the ordered QSP product, and the declared signal-oracle and circuit-cost interfaces.

[F1]

QSP signal matrix and ordered phase sequence: UΦ=Z(ϕ0)∏j=1d(WR(x)Z(ϕj)); the empty product at d=0 is Z(ϕ0).

[F2]

Real bounded-polynomial QSP phase synthesis: the output list contains the d+1 phase values and the target length d; phase generation is classical preprocessing.

[F3]

Circuit-family and computation cost model: named oracle calls, ordinary gates, phase precision, circuit-description size, and classical computation costs are distinct coordinates; a matrix description alone gives no oracle call.

[F4]

Hybrid bound for imperfect QSP phase rotations: any compiled phase or signal operator errors are bounded separately by the sum of their per-factor operator errors.

Proof

1.1F1givenalgebra

The product in [F1] contains one factor WR for each integer j=1,…,d, hence exactly d signal occurrences. It contains Z(ϕ0) once and one Z(ϕj) for each j=1,…,d, hence exactly d+1 phase rotations. The case d=0 has zero signal factors and the single endpoint phase Z(ϕ0).

2.1F1F2F3F4step 1.1∎

A named signal query is invoked once for each displayed WR factor and no other signal call appears in the sequence; therefore the query count is exactly d. The one-qubit signal matrix acts on C2, while any implementation work space is included only if the supplied signal interface declares it. The phase and compilation coordinates remain distinct by [F3]–[F4]; no controlled or inverse call is inferred.

TheoremStatement: AI-adaptedProof: AI-adaptedOpen item page →

Correctness of QSP phase synthesis

Statement

Let p be supplied in the rational/exact-algebraic target representation of Real bounded-polynomial QSP phase synthesis, with any supplied real complement represented through its explicitly charged ideal-real interface, with degree bound d≥0, parity d mod 2, ∣p(x)∣≤1 on [−1,1], and rational tolerance δ>0. On a SUCCESS output of Real bounded-polynomial QSP phase synthesis, the exact phase list has an ideal QSP matrix whose upper-left matrix entry P satisfies Re⁡P=p in exact mode and ∣Re⁡P(x)−p(x)∣≤δ0/8≤δ/8 in numerical mode, for every x∈[−1,1], where δ0=min⁡(δ,8). If numerical phase gates are used, each compiled phase error is at most δ0/(8(d+1)) in operator norm, so the implemented upper-left matrix entry has real-part error at most δ0/4≤δ. This is a matrix-entry accuracy claim; no measurement or scalar-extraction circuit is included. The algorithm terminates on every promised input when its optional compiler terminates with a certificate or an explicit failure result; failed exact checks return their declared non-success branch.

In efficient-numerical mode without a supplied complement or finite-basis compiler, the algorithm requires poly⁡(d,1+log⁡+(1/δ)) charged arithmetic operations, ideal exact algebraic field/equality/order tests, root-descriptor operations, and polynomially many written tower/DAG certificate bits. Here log⁡+(x)=max⁡(0,log⁡x). Input reading and conversion from an arbitrary original coefficient encoding, expanded minimal-polynomial conversion, operation implementation bit cost, and optional compiler work are separate resource coordinates. This is the explicit exact-algebraic arithmetic model of the algorithm; complete modes retain finite termination without the same height-independent bound.

Facts & Assumptions

Given: An exact polynomial, degree/parity declaration, interval promise, rational δ>0, and the optional terminating phase compiler allowed by the algorithm's input contract.

[F1]

Real bounded-polynomial QSP phase synthesis: validates degree/parity and the interval bound; constructs or verifies B,C with 1−p02=B2+(1−x2)C2; sets P=p0+iB,Q=C; peels a phase list; approximates each phase; and returns SUCCESS, INVALID, CERTIFICATE_ERROR, or IMPLEMENTATION_ERROR as specified.

[F2]

Certified complex-polynomial root isolation in exact algebraic arithmetic and Correctness and termination of certified complex-polynomial root isolation: REALROOTS(p') returns every real critical point in [−1,1] and terminates; ROOTS returns a complete exact algebraic root list and terminates.

[F6]

Completion of a bounded real parity polynomial: the exact complement construction produces an admissible pair with real upper-left component p0.

[F7]

Constructive factorization of an admissible QSP polynomial pair: every admissible pair has the stated exact phase factorization.

[F8]

Correctness and arithmetic resource bound for buffered phase approximation: each returned rational phase approximates its exact unit-circle phase with its certified operator error.

[F9]

Hybrid bound for imperfect QSP phase rotations: complete product error is at most the sum of the individual phase and signal errors.

[F10]

QSP signal matrix and ordered phase sequence and Admissible polynomial pair for Hermitian-reflection QSP fix the reflection signal, coefficient conjugation, and exact sequence matrix convention.

[F12]

The reals form a totally ordered field: R is a totally ordered field.

[F13]

Finite registers and their ordered computational bases and The computational basis is orthonormal: the signal register's ordered computational basis is orthonormal and its coordinates use the declared standard basis.

[F14]

The norm ∥v∥=⟨v,v⟩ induced by a real or complex inner product: vector length is the square root of the inner product with itself.

[F15]

The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm bounds the output norm on every unit input vector.

[F16]

Exact interval boundedness by multiplicity strata and Sturm counts decides the original interval promise exactly in O((d+1)4) field/order operations without isolating its critical points.

[F17]

Polynomial arithmetic cost for rounded-input bounded-grid root isolation proves parity-preserving rounded-target error at most 5δ0/64, strict interior bound 1−3δ0/64, coefficient height O(dlog⁡(d+1)+log⁡+(1/δ)+1), and polynomial arithmetic cost of bounded-grid root isolation of the rounded complement.

[F18]

Arithmetic cost of exact tower completion and QSP phase peeling proves the polynomial arithmetic and tower-descriptor costs of completion and peeling once that bounded-height exact root list is supplied, including the explicit unit-square-root choice.

Proof

1.1F1F2F3F4F5F10F11F12algebra

First verify the interval check. In efficient-numerical mode [F16] proves exact acceptance of the interval promise on the original unrounded target. For the complete modes the existing critical-point argument applies as follows. If the formal derivative is zero, write p=∑k=0nakxk. By [F3] and [F11], kak=0 for each k≥1. In the ordered field [F12], k⋅1>0 for each positive integer k, by repeated addition of 1>0; therefore k⋅1 is nonzero and invertible, so every ak=0 for k≥1 and p is constant. Its endpoint value is then its value everywhere, so the algorithm's single endpoint check is sufficient. Otherwise p is nonconstant. If p(x)>1 somewhere, its maximum on [−1,1] is greater than 1 by [F4]. Since both endpoints were checked and are at most 1, this maximum is attained at an interior point c. By [F5], p′(c)=0, and by [F3] this is a root of the formal derivative used by the algorithm. The complete list from [F2] therefore includes c, where the algorithm would detect p(c)>1, contrary to a successful check. The same argument applied to a value p(x)<−1 and the attained minimum detects every lower-bound violation. Conversely, when ∣p∣≤1 on the interval, every endpoint and critical-point comparison passes. Thus the validation branch accepts exactly the promised interval-bounded inputs.

1.2F1F6F10algebra

On a valid input, the generated or checked complement identity and the degree/parity checks make P=p0+iB,Q=C admissible by [F6] and [F10]. In the supplied-complement branch the same conclusion follows from the exact identity and parity certificate, which is checked before use.

1.3F1F6F7F17F18givenalgebra

By [F7], that admissible pair has an exact phase list whose sequence matrix has upper-left entry P. Its real part is p0, since B has real coefficients. Hence exact mode gives Re⁡P=p; complete-numerical mode gives ∣Re⁡P−p∣=∣(1−δ0/8)p−p∣≤δ0/8 because ∣p∣≤1. In efficient-numerical mode [F17] gives ∣Re⁡P−p∣=∣p0−p∣≤5δ0/64<δ0/8. Thus the stated ideal error holds in either numerical mode. The explicit alternative square root in its peel has square r and unit modulus by [F18], so the cancellation and factorization in [F7] apply unchanged.

1.4F1F8F9F10F13F14F15algebra

In numerical mode the angle approximation contributes at most δ0/(16(d+1)) per phase by [F8], and a supplied compiler contributes at most the same amount by its checked output certificate. Their sum is therefore at most δ0/(8(d+1)) per phase. With exact signal calls, [F9] bounds the full unitary error by (d+1)δ0/(8(d+1))=δ0/8. Let A=U~−U and write Ae0=A00e0+A10e1 in the orthonormal signal basis of [F13]. Then [F14] gives ∥Ae0∥2=∣A00∣2+∣A10∣2≥∣A00∣2, while [F15] and ∥e0∥=1 give ∥Ae0∥≤∥A∥op. Thus the upper-left entry error satisfies ∣A00∣≤∥A∥op, and its real-part error is no larger. It differs from p by at most the shrink error δ0/8 plus phase error δ0/8, at most δ0/4≤δ. Exact mode has zero shrink error. This identifies a matrix entry only and asserts no physical scalar-extraction procedure.

1.5F1F2F7F8F17F18giveninduction

ROOTS and REALROOTS terminate by [F2], and their efficient-mode replacement terminates by [F17]. Root classification and multiplication process finite lists, the phase peel decreases nominal degree at every nonconstant step, and each phase approximation terminates by [F8], including for ideal-real coordinates: its rational buffered comparisons use the declared interface and contract every bracket by at least one half independently of equality. The supplied-complement path never invokes ROOTS on its coefficients; it checks its finite identity before any zero-complement branch and proceeds directly to the admissible pair. For its positive-root nodes, a positive real radicand has a finite rational upper bound, so doubling eventually succeeds; bisection then halves the width to the requested positive tolerance, with equality returning a singleton. In a unit peel ratio r=x+iy, x=−1 gives square root i; otherwise s2=(1+x)/2>0, ω=s+iy/(2s) has imaginary-square contribution y2/(4s2)=(1−x)/2, so ∣ω∣=1 and ω2=x+iy. Thus these nodes give the same valid cancellation over real coefficients. No algebraic encoding of the real parameters is assumed. The optional compiler either returns a certificate or its declared failure. Consequently every promised execution terminates or returns the explicit IMPLEMENTATION_ERROR branch, and no failed certificate is reported as SUCCESS.

1.6F1F16F17algebra

Put S=d+1+log⁡+(1/δ). Degree/parity validation scans at most d+1 coefficients on promised input. [F16] bounds its exact interval decision by O((d+1)4) operations, independent of original coefficient heights. [F17] bounds rounding by polynomially many charged coefficient operations/comparisons, gives a rounded rational target of polynomial coefficient height in S, and bounds its complete bounded-grid complement-root list at fixed isolator precision by poly⁡(S) rational operations. Root classification, multiplicity grouping, descriptor sorting and symmetry checks use polynomially many exact equality/order tests on that finite list. No complete-mode root isolation of the original target or its critical points occurs in this branch.

1.7F1F6F7F18algebra

[F18] bounds every positive-root descriptor in completion by a polynomial number of exact comparisons and rational operations using root-bound-based upper endpoints. In particular the norm-product leading coefficient has absolute value one, so the final scale has a known polynomial-height upper bound. Polynomial-array multiplication and full identity checks take polynomially many operations. Phase peeling, its identity checks, fixed convention conversion and padding require polynomially many field operations and at most O(d+1) quadratic tower descriptors; no generic algebraic-coefficient ROOTS call occurs. The explicit half-angle formula divides only after checking that its positive root is nonzero. Its possible tiny numerical value does not alter a charged exact-field operation count.

2.1F1F8F17F18step 1.6step 1.7algebra∎

There are d+1 phases, each requested to precision η=δ0/[16(d+1)]. [F8] gives O((1+log⁡(1/min⁡(η,1)))2) rational operations and linear-in-that-log exact algebraic comparisons per phase, polynomial in S. Buffered comparisons contract the angular bracket in every case, including equality, so no hidden input-conditioned coordinate refinement is used. Each returned dyadic angle has polynomially many bits. Root isolators and their rational defining polynomials have polynomial height by [F17]; each completion/peel intermediate is a referenced field-operation or quadratic-extension node rather than an expanded minimal polynomial. The polynomial operation count thus gives polynomially many tower/DAG nodes and index bits. Angular bracket endpoints are obtained by fixed dyadic affine operations for polynomially many steps; Machin partial-sum denominators have polynomial bit length in the number of terms (multiplying their polynomially many integer denominators suffices as a common denominator). Their phase certificates also have polynomial size. The root, completion identity and peel certificates can reference these same nodes without duplicating expanded expressions. Together these bounds prove the resource assertion, while leaving the separately named encoding, implementation, conversion and optional compiler coordinates unclaimed.

5 · Examples, counterexamples and false statements

None yet.

Sources