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.
Clifford+T Exact and Approximate Synthesis
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Approximate Universality and Solovay–Kitaev
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Linear Operators and Quotient Spaces
- Chain Conditions, Semisimple Modules and the Wedderburn–Artin Theorem
- Circuit Syntax, Denotational Semantics, and Measurement
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Continuous-Gate Universality and Exact Synthesis
- Controlled Gates, Phase, and Entanglement
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Cyclotomic Arithmetic and Reciprocity via Frobenius
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Exterior Powers, Orientation and Hodge Duality
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Dimensional Normed Spaces and Riesz Lemma
- Finite Fields and Cyclotomic Extensions
- Finite-Dimensional Complex Inner-Product Spaces and Matrix Interfaces
- Foundations of the Real Numbers for Analysis
- Free Modules, Exact Sequences, Projective and Injective Modules
- Fundamental Trigonometric Identities
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Integral Extensions and Going Up
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurements, POVMs, and Instruments
- Metric Spaces
- Modules over a Principal Ideal Domain and the Canonical Forms
- Modules, Submodules, Quotient Modules and the Isomorphism Theorems
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Noetherian Rings and Hilbert Basis
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- Number Fields Rings of Integers and Discriminants
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Primitive Roots and Unit Groups Modulo N
- Properties of the Integral and the Working FTC
- Pure and Mixed States, Ensembles, and Schmidt Decomposition
- Quadratic Residues and the Legendre Symbol
- Qubits, Bloch Sphere, Pauli Algebra, and One-Qubit Gates
- Registers, Tensor Products, and Partial Trace
- Relations, Functions, and Quotients
- Reversible Computation, Ancillas, and Coherent Oracles
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Solvability by Radicals and Kummer Theory
- Splitting Fields
- Strongly Continuous Semigroups and Hille Yosida
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- Tensor Products of Modules
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Exponential Function
- The Field of Fractions and Localisation
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page treats exact one-qubit Clifford+T synthesis, controlled-T with and without a clean ancilla, and ancilla-free on-the-nose Rz approximation. It fixes the exact H, T, and CNOT matrices, ordered-wire convention, dyadic cyclotomic ring, and denominator-exponent convention. Exact matrix equality, global-phase equivalence, T-count, H-count, ancilla use, approximation error, and classical input encoding remain distinct. The exact ring characterization is limited to one qubit; no multi-qubit ring criterion is asserted. The grid has finite coefficient bounds at each exponent and an efficient randomized prefix iterator. A complete factored norm solver and exact certificate checks support the oracle-optimal and conditional near-optimal searches; exhaustive alternatives establish completeness without an efficiency claim. The arithmetic-runtime guarantee retains its quantitative prime model and calibrated budgets. Arbitrary real inputs carry no implicit Turing-time guarantee.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Dyadic cyclotomic ring for Clifford+T synthesis
Definition
Set , , , and . The relation reduces every element of to four integer coefficients in the power basis . The canonical dyadic encoding of a nonzero is
where is least and, if , the four integers are not all even. Zero is encoded with and all four coefficients zero. Arithmetic is exact: multiply polynomials, reduce with , combine denominators, and remove the common power of from the coefficients. The integral-basis supplier Ring of integers of every cyclotomic field and the proof of Canonical dyadic coefficient encoding ↗ justify existence and uniqueness.
Remarks
The ring is a subring of . All coefficients and equality tests in this page use the displayed power basis; no floating-point comparison is implicit.
Exact randomized modular square roots in expected polynomial time
Statement
Given a prime integer and an integer , there is an exact randomized algorithm that returns a square root of modulo or correctly reports that none exists. With ordinary binary integers, schoolbook arithmetic and independent unbiased random bits, its expected bit cost is polynomial in the input length; after reducing modulo , it is . Every returned answer is correct, and the algorithm terminates with probability one. The input promise that is prime is not a primality test.
Facts & Assumptions
Given: A prime and an integer in binary; random bits are independent and unbiased.
Euler's criterion gives modulo an odd prime (Euler's criterion: ).
Exactly half the nonzero classes modulo an odd prime are nonsquares (An odd prime has nonzero quadratic residues and as many nonresidues).
The residue ring modulo a prime is a field (For every prime , the two operations on make it a field).
Proof
Reduce modulo . If , return its residue; if , return zero. Otherwise [F1] rejects exactly the nonsquares by testing . In the remaining case write with odd and . Repeatedly sample uniformly from until . Uniform sampling is implemented by drawing bits and rejecting zero and integers at least . Each draw is accepted with probability at least , and each accepted is a nonsquare with probability by [F2]; thus this search has bounded expected trials and terminates almost surely.
Set , , and , all modulo . Then , has exact multiplicative order , and by the tests in step 1.1. While , find the least with by successive squaring; it satisfies . Put and replace by . The identity is preserved. The old has order exactly , so : in a field, the only roots of are by factorization. Likewise has order and its -st power is . Therefore the new has order dividing , while the new has order . The invariants are maintained and strictly decreases. After at most iterations, and . Return .
Put . Every modular integer has bits. Schoolbook multiplication and division use bit operations; binary repeated squaring computes a power with -bit exponent in modular multiplications. These bounds follow directly by forming at most shifted rows for multiplication and eliminating at most quotient digits for division. Step 1.1 uses an expected bounded number of such powers. Each of the at most iterations in step 2.1 uses at most modular multiplications to find and compute . Its total cost is . Initial reduction has cost polynomial in the original length of and . Thus the algorithm has the asserted expected bit bound; only the nonsquare search is randomized, and its outcome never changes the correctness of the final answer.
The nontrivial real-conjugation automorphism of the eighth cyclotomic field
Definition
Let , where . The class is a unit modulo , so the cyclotomic Galois group supplier and gives the unique -automorphism with . It fixes and sends to . Complex conjugation and commute, as is checked on the generator . The four embeddings of are the identity, complex conjugation, , and their composite, because the Galois group consists of the four maps for . Since fixes and maps into , it preserves .
This is the nontrivial real-conjugation embedding used in the scaled-grid conditions; it is distinct from complex conjugation.
Canonical dyadic coefficient encoding
Statement
Every has exactly one canonical dyadic encoding specified in Dyadic cyclotomic ring for Clifford+T synthesis.
Facts & Assumptions
Given: , , and .
Ring of integers of every cyclotomic field: for , is an integral basis of .
Proof
For , its definition gives for some and integer . Expand in the integral basis [F1]. Among all such exponents choose the least ; if and all four coefficients of were even, replacing by would contradict minimality. This gives an encoding of the required form.
Suppose are two canonical encodings. If , then , so every coefficient of is even, contrary to its canonical condition because . If , the same argument makes every coefficient of even. Hence , and then ; uniqueness of the four coefficients follows from the basis property [F1]. The zero element is represented only by the all-zero numerator, and minimality forces its exponent to be .
Remarks
The proof uses only the integral-basis statement for ; it does not use unique factorization of ideals or a choice axiom.
Square root of two divisibility criterion in the eighth cyclotomic ring
Statement
For , multiplication by has coefficient vector . Consequently divides in exactly when and . Also,
and divides in exactly when divides .
Facts & Assumptions
Given: , , and .
Dyadic cyclotomic ring for Clifford+T synthesis: and ; the power-basis coefficients are unique.
Proof
Multiplying and reducing every power with gives . By [F1], this product is in exactly when all four displayed coefficients are even, which is equivalent to and even, or and . This proves the first criterion.
Expanding with and reducing powers gives the stated . Write and modulo . Then and . The pair is exactly for : the other three pairs give , , or . Since is in exactly when its unique power-basis coefficients are all even, equivalently when are both even, the norm is in exactly when , which by step 1.1 is exactly when divides .
Remarks
Here divisibility means divisibility by an element of : iff for some . The parity criterion is coefficient arithmetic, not an ideal-factorization assertion.
Denominator exponent is a well-defined integer
Statement
For every nonzero , the set is nonempty and bounded below, hence has a least integer.
Facts & Assumptions
Given: has the canonical form with .
Canonical dyadic coefficient encoding: the canonical numerator has integer coefficients, is not all even when , and is nonzero.
Proof
Since , multiplying by gives its canonical numerator in . Hence the exponent set is nonempty.
Suppose belongs to that set, so for some . Then the numerator , where and . Multiplication by has integer coefficients in the power basis, so all coefficients of are divisible by . Choose a nonzero coefficient ; its finite -adic valuation bounds above, and therefore bounds above. Thus the negative exponents in the set are bounded below; nonnegative exponents already are.
A nonempty subset of bounded below has a least element. Hence the set of clearing exponents has a least integer; this does not assume that the least exponent is nonnegative.
Remarks
For the exponent set is all of and has no least element; that is why the definition assigns separately.
Conjugate norms from the dyadic eighth-cyclotomic ring are real dyadics
Statement
Let and . For every , its complex-conjugate norm satisfies . More precisely, if is its canonical encoding, then
Facts & Assumptions
Given: , , , and scalar adjoint means complex conjugation: .
Canonical dyadic coefficient encoding: every has a canonical power-basis numerator over a power .
Square root of two divisibility criterion in the eighth cyclotomic ring: for , with the displayed integer forms .
Proof
Write using [F1]. Since is real, .
Substituting the exact norm formula from [F2] gives . Both coefficients are dyadic rationals, so this element lies in and has the claimed form.
Unit-modulus elements of the dyadic cyclotomic ring
Statement
If and , then for some .
Facts & Assumptions
Given: , , , and complex conjugation sends to .
Canonical dyadic coefficient encoding: every has a unique canonical numerator over a power of .
Square root of two divisibility criterion in the eighth cyclotomic ring: in iff in , and with for the integer coefficients of .
Proof
For nonzero , write its canonical form using [F1]. If , then , so in and [F2] gives for some . Whenever has with , the same argument gives and . Applying this for yields . All canonical coefficients of are then even, contradicting the minimality of . Thus and .
Write with integer coefficients. Direct multiplication gives , where and by [F2]. The numbers and are linearly independent over : if in lowest terms, then forces even and then even, a contradiction. Thus and . Four integer squares sum to only when exactly one coefficient is or and the others are zero. Hence .
Constructive cyclotomic factorization and real unit squares
Statement
Put , , and . Both rings are norm-Euclidean domains and hence unique factorization domains with effective gcd and associate tests. There is a terminating finite-search algorithm factoring every nonzero element of into primes and a unit. The units of are exactly (); a unit is positive at both real embeddings if and only if it is a square of a unit of . These assertions include effective square root recovery. No polynomial runtime bound is asserted for finite-search factorization.
Facts & Assumptions
Given: , , and sends to and fixes ; is complex conjugation.
Canonical dyadic coefficient encoding supplies unique power-basis coordinates and exact arithmetic. The automorphisms in The nontrivial real-conjugation automorphism of the eighth cyclotomic field commute with conjugation.
Proof
For put . For with put . These functions are multiplicative, positive on nonzero elements, and take positive integer values on nonzero elements of their respective rings: for , and . Integer norm one is equivalent to being a unit: the converse follows by multiplicativity, and the forward implication follows by taking the product of the other conjugates divided by the norm (with a sign in ). All coordinates of that inverse remain in the ring.
The real elements of are exactly . Indeed, for , its imaginary part is ; irrationality of makes this zero exactly when and . The real part is then . A real unit of consequently is a unit of , since its inverse is real too. Also and .
To divide in , round the rational coefficients of a quotient to nearest integers. Its error has , so . To divide in , express a quotient as and round to Gaussian integers. For the errors , , whence . If the last upper bound equals one, all four real coordinates of are . Then are purely imaginary of magnitude , so and are perpendicular and the actual norm is . Otherwise the displayed bound is already strict. Multiplicativity therefore gives a remainder of norm strictly below that of the divisor in both rings. This proves the Euclidean assertions, including ties in rounding.
If is a unit, choose a sign and an integer power of to make lie in . Such a power exists because . Write . Its signed field norm is , so . For norm , , hence ; the equation forces and . For norm , , hence , incompatible with . This proves . Its two embeddings are positive exactly when the sign is positive and is even. In this case is the required real unit square root. Enumerating integer powers until the exact coefficients agree recovers in finite time. Signs and comparisons of are decided by signs of the rational coefficients and, when necessary, comparing and .
Repeated division terminates because nonzero remainder norms strictly decrease through positive integers. Back substitution expresses the gcd as a linear combination. If an irreducible does not divide , the gcd of is a unit, so multiplying a Bezout identity by shows that implies . Thus irreducibles are prime. A nonunit has a factorization into irreducibles by induction on its norm: a proper factorization has two factors of norm at least two, each of smaller norm. The prime-divisor property and cancellation give uniqueness up to ordering and units. Divisibility is decidable by computing the quotient in the field and checking its integral coordinates; two elements are associates exactly when their quotient has integral coordinates and norm one.
Here is an explicit finite factor search, which makes the existence proof algorithmic without a primality oracle for . For a nonunit put and enumerate all power-basis integer tuples with coefficients between and . Test whether such an element divides and ; any successful splits into smaller-norm factors. If is reducible, choose a nonunit proper divisor and multiply it by a power of the unit so . Its norm is unchanged and less than , and . Recovering power-basis coefficients from the two complex embeddings gives and . They are all below , so the list contains this normalized proper divisor. Failure of the finite search therefore certifies irreducibility. Recursing on successful factors terminates by strict norm descent, and the residual norm-one elements supply the unit.
One-dimensional quadratic grid enumeration and counting
Statement
Put . For bounded closed real intervals , let count with , , and put . There is an explicit finite proposal list containing every solution once, with constant work per proposal, of length . If both lengths are positive its length is , and when . The list has constant-size random-access data. Empty intervals give empty lists; singleton intervals are also allowed. Floor operations are specified as integer-part operations, and their comparison cost is charged separately, rather than assumed constant.
Facts & Assumptions
Given: Closed bounded intervals and exact arithmetic/comparisons on their endpoints.
The automorphism sends to (The nontrivial real-conjugation automorphism of the eighth cyclotomic field).
Every real has an integer part (Integer part: for every real there is exactly one integer with ).
Proof
First suppose , have positive lengths . Multiplication by the unit on the first embedding and by on the second is a bijection of the grid solutions. Choose the integer so the new first length lies in , reversing the second interval's endpoints when necessary. This is done by taking an integer part of a logarithm and checking the endpoint inequalities; is unchanged. Work henceforth with the rescaled intervals. Every solution satisfies . Enumerate the integers in this interval. For each , the interval has length less than one, so its least integer is the only possible ; retain it only if both grid inequalities hold. No solution is duplicated or missed. The number of proposals is at most because and . The integer endpoints and the affine formula for give random access to proposals.
Any pair of intervals whose length product is at least contains a solution. Indeed, rescale as above, this time putting the first length in ; the second length is then greater than or equal to . For the two interval centers , round and to their nearest integers . Both errors and are at most , so the rounded point satisfies both constraints. If , put . Divide into equal cells and use the concentric closed half of each cell. Each resulting interval paired with has length product . Their disjointness gives distinct solutions, and . Consequently the proposal bound in step 1.1 is , including the case .
If is a singleton and has length , replace temporarily by the concentric interval of length and test the original equality when filtering proposals. The product is at most one, so step 1.1 gives only constantly many proposals and contains all original solutions. Treat a singleton symmetrically; if both are singletons, enlarge both to length . Empty intervals need no work. For all cases, restore the inverse unit scaling on retained points. Thus the asserted finite list and counting estimates hold without an unbounded search for a witness or a free floor oracle.
Effective simultaneous grid uprighting of paired ellipses
Statement
Let be ellipses in , specified by their centers and positive definite symmetric matrices. Normalize their matrices separately to determinant one, obtaining . Suppose the eigenvalues of both normalized matrices lie in , . There is a constructive real linear map such that , , , and both and have area at least of their axis-aligned bounding-box area. It uses matrix/arithmetic/logarithm/exponentiation operations and integer-part operations. All real quantities to which integer parts are applied have magnitude , so implementing those parts by comparisons and binary search costs operations overall. The entries of have magnitude .
Facts & Assumptions
Given: The two normalized matrices, centers and as in the Statement. Square roots may be evaluated as positive real exponentiation; this is an arithmetic-operation bound, not a bit-time claim about arbitrary real inputs.
The bullet map negates and fixes (The nontrivial real-conjugation automorphism of the eighth cyclotomic field).
Integer parts exist (Integer part: for every real there is exactly one integer with ).
Proof
Put and define , , , , , , and . Express a determinant-one positive matrix as , ; use for . Define skew and bias . For a matrix , act on the pair by . In real/imaginary coordinates, with , the additive group is . For integer matrices , the real matrix maps into exactly when the sum of the four entries of is even and all four entries of have the same parity; applying to gives these conditions. In the order (sum parity of , common parity of , determinant), each of has (even, odd, ); each of has (even, even, ); each of has (even, even, ); each of has (even, odd, ); has (even, even, ); has (even, even, ); and each of has (even, even, ). Thus these matrices preserve and have the stated determinants. Their entries lie in , so [F1] gives the conjugation identity.
The extra maps in the shifted-map factorization also preserve the lattice, including their inverses. With the criterion of step 1.1, , , , and each have even total integer part and even entries in their -coefficient matrix; hence all four map into itself. Applying the same criterion to each inverse gives equality with .
A skew-preserving temporary shift replaces by , where . It puts the bias in . This is conjugation by on and by on . If a lattice map reduces the shifted pair, then reduces the original skew by the same factor: shifting again preserves skew and gives precisely the action of , whose bullet is . This is still a lattice map. For , its entries are , the product of lattice maps; the same argument applies to inverse shifts. Finally apply if necessary to make , and if necessary to make . These preserve skew and the bias strip.
Assume and the normalization of step 3.1. In the central region , use . Its new off-diagonals are , where . Thus . For an explicit strict bound, follows from and , so and .
If , , and , use . Its off-diagonal squares sum to . Both arguments belong to . For , the inequality gives , and likewise for . On this interval , so . Here the rational bound follows from , , , and : hence . All fractional-power comparisons follow by raising positive sides to powers five or ten. Therefore . For , , use and exchange the two matrices.
If and , put , and use . The new off-diagonals are and . Expanding their squares and using , gives . If , then and ; the displayed bound is at most . Otherwise , , and the two arguments lie in . The quadratic's maximum is at the left endpoint: and verify the endpoint comparison. The bound is then at most .
If and , put , and use . Its off-diagonals are and . Since and , expansion gives . When the floor is positive, , giving at most . Otherwise and . The absolute value at both endpoints is less than : use , , and . The remaining term is below , so .
These cases cover the normalized strip. If the central region fails, one coordinate exceeds : a coordinate below would, by , force bias magnitude greater than one. When , either both coordinates are at least , or the smaller is at most and a case applies. When , a coordinate below forces the other below by the bias strip, putting both in the central region. Undo the temporary shift as in step 3.1 and repeat. Each iteration reduces by , so after iterations , since initially . For a determinant-one ellipse, its area-to-box ratio is : its area is and box half-widths are when the matrix is . Thus the final ratios exceed . The inverse cumulative map is the desired , including translated centers.
To control integer parts, after every contraction balance the top-left coefficients using a right action with ; this preserves skew. Let be the cumulative lattice map. Each column has some nonzero coordinate in , so by its nonzero rational norm, whose absolute value is at least . Hence , and likewise . Since , both products are also at most . Balancing makes individually and bounded below by ; and have the same bounds. The quadratic forms then bound the entries of by . At each iteration the temporary shifts and powers in step 3.1 and step 4.1 and step 4.2 and step 4.3 and step 4.4 have exponents and values as well. Integer parts are therefore computable by binary search within integer bounds in comparisons each. Balancing does not alter any skew estimate or termination bound, proving the quantitative claims without a free floor oracle.
Smallest square root of two denominator exponent
Definition
For nonzero , define ; exponents may be negative. Set . For a matrix , the denominator statistic used in the synthesis statements below is , the exponent of the squared modulus of its upper-left entry. The base regime in this convention is exponent at most .
Remarks
The set whose minimum is taken is nonempty and bounded below for each nonzero by Denominator exponent is a well-defined integer. This is the square-root of-two convention of Kliuchnikov–Maslov–Mosca, not an exponent of .
Constructive decision of the dyadic cyclotomic norm equation
Statement
For every there is a terminating exact algorithm deciding whether has a solution , and returning such a solution when one exists. A supplied prime factorization of the numerator of is permissible but unnecessary for the finite-search version below. No polynomial runtime bound is asserted.
More explicitly, reject a negative real embedding; handle by . Otherwise choose with and factor into primes of . Group the prime associate classes into orbits of complex conjugation. There is a solution exactly when every conjugation-fixed class has even exponent. The conjugation-paired classes have equal exponents automatically. Allocate half of each fixed exponent, and the whole exponent to one representative of each pair, to form . Recover a real unit with ; then is an exact solution.
Facts & Assumptions
Given: The automorphisms and commute, and the two real embeddings are the identity and on .
Constructive cyclotomic factorization and real unit squares proves unique factorization and a terminating factor algorithm in , identifies , and gives effective square roots of real units positive at both embeddings.
Proof
For any , both and are nonnegative. If either real embedding of is negative, reject. The signs are decidable by rational arithmetic and squaring the rational coefficients of after checking their signs. If either embedding is zero, injectivity of that embedding implies , and the output suffices. Thus the remaining case has both embeddings strictly positive. Choose by clearing the powers of two in the two coefficients of ; multiplication by the positive rational square preserves their signs.
Put and . Direct multiplication gives , , and . Norm two makes irreducible, hence prime by [F1]. As and are units, the last identity shows that has just the prime associate class of , with multiplicity four. Every element has a unique-factorization valuation at each prime associate class of , obtained from its integral numerator minus the valuations of its power-of-two denominator; only can be negative. Conjugation acts on these valuations by permuting the prime classes, since it is a ring automorphism. In particular, for a fixed class, .
If for , then , so all valuations of are nonnegative and . To see the last implication without any assumption on units of , write with ; its only possible denominator class is , and the valuation inequality says , hence . Consequently a solution to gives an integral solution to . Every conjugation-fixed prime exponent of must therefore be even. Conversely an integral solution for gives a solution for by division by . This proves both necessity of the parity test and completeness of the denominator-clearing reduction.
Factor nonzero by the finite algorithm of [F1]. Determine conjugation orbits by conjugating each factor and testing associates; and uniqueness of prime factorization imply that both classes in every two-element orbit occur with the same exponent. This is also an effective prime splitting test: each factor is assigned either to a fixed class or to a pair of distinct conjugate classes; no unproved classification by rational primes modulo eight is required. If a fixed exponent is odd, reject as justified in step 2.1. Otherwise, for each fixed class of exponent choose its displayed prime to power , and for each pair of exponent choose one displayed prime to power . Let be the product of these choices, with empty product one. Then and have exactly the same prime-class exponents.
Their quotient is a unit of by unique factorization, and is real. Its inverse is real too, so it is a unit of by [F1]. Both embeddings of are strictly positive, as are those of , so both embeddings of are positive. The unit-square construction of [F1] therefore returns with . Because , , and division by gives the claimed . All loops terminate: denominator clearing is finite, factorization terminates, associate tests are exact, the factor list is finite, and square-root recovery terminates for a positive real unit. Together with the rejection cases and necessity this proves the entire decision and construction claim.
Remarks
The proof supplies a complete terminating mode. Ross–Selinger Appendix C uses rational-prime splitting and modular square-root algorithms for a faster mode. Its expected polynomial runtime is a separate complexity assertion; it does not follow from the finite-search construction here.
Efficient exact-denominator Rz grid iterator
Definition
Inputs are and the unit vector , in the ideal exact-real arithmetic/comparison model. Put and The outer ellipse has center , semiaxes in direction and perpendicular to . Compute simultaneously uprighting by Effective simultaneous grid uprighting of paired ellipses, including its balancing operations, with . Retain this map for every layer. All subsequent coordinates are exact. Square roots in line/ellipse intersections are positive real exponentiation, or equivalently their comparisons can use sign tests and squared inequalities. Integer parts are obtained by bounded binary search, with their comparison cost charged.
Process denominator layers in order. At , enumerate the coefficient tuples in lexicographic order, form , and retain exactly those satisfying and . At , run three disjoint subproblems, indexed by : write and impose the corresponding affine constraints on . In each subproblem apply to and to , and replace the constraints by their affine images. Their outer ellipses are translated/scaled copies of . For each of the two lattice cosets , , translate both constraint sets appropriately, remembering that . The unknowns then lie in .
Construct a finite proposal domain for each resulting subproblem as follows. Let be the coordinate intervals of its first outer ellipse's bounding box, and those of its second; set , and the fixed constant , .
- If both , use the Cartesian product of the two one-dimensional proposal lists from One-dimensional quadratic grid enumeration and counting. Filter each proposal by the original exact cap and disk inequalities after inverse transformations.
- Otherwise take a coordinate with product less than , enumerate and filter its one-dimensional list completely, and retain its finitely many actual coordinate solutions. For each, compute the two exact remaining-coordinate slice intervals of the transformed cap and disk. Each is the intersection of a quadratic interval and a linear half-line; compute it by the quadratic formula and sign tests, declaring it empty when appropriate. Use the one-dimensional proposal list on these slice intervals, including its singleton rule, and test both original constraints. Before normalizing a positive first slice width with second width , if , enlarge that first interval concentrically to width and retain the original slice inequalities as filters; its new length product is at most one. For singleton second intervals first use the singleton enlargement of the one-dimensional lemma. This padding prevents arbitrarily small slice widths from causing an unbounded unit-rescaling exponent.
Each component is a Cartesian index range or one of finitely many one-dimensional ranges. Keep their lengths and prefix sums, so a domain index specifies one proposal without materializing a long list. Map a retained point back to . Maintain a set of already emitted exact coefficient tuples for the current layer.
To stream the layer, interleave a random proposal attempt with the next index of an exhaustive sequential scan. For domain size , a random attempt draws unbiased bits and treats them as an integer . If , visit proposal ; otherwise omit the random visit on this iteration. In either case advance the exhaustive scan by one index. Thus accepted random visits are uniform and a random attempt is accepted with probability at least , while rejection cannot block the exhaustive scan. At each visit emit its retained if not already emitted. Stop the layer once the sequential scan finishes, then discard its emitted set and advance to . For an empty proposal domain advance immediately. This is a randomized within-layer order with deterministic finite-layer completion; it promises no lexicographic tie order. The enumeration and its complexity are established in Complete scaled-grid enumeration with expected polynomial prefix cost ↗.
Finite coefficient bounds for the scaled cyclotomic grid
Statement
Let be the automorphism of defined in The nontrivial real-conjugation automorphism of the eighth cyclotomic field, so , and let satisfy and . Then . If , then
Thus for each fixed only finitely many coefficient vectors can occur; the integer search may be restricted to .
Facts & Assumptions
Given: has the four embeddings for , complex conjugation pairs with and with , and is the least square-root-of-two exponent.
Dyadic cyclotomic ring for Clifford+T synthesis: has unique power-basis coefficients and .
The nontrivial real-conjugation automorphism of the eighth cyclotomic field: is the field automorphism , fixes , commutes with complex conjugation, and preserves .
Proof
The two inequalities , together with their complex conjugates, give for all four embeddings ; these are the identity, complex conjugation, , and their composite by [F2]. If , the definition of gives , so . Thus for every . By [F3], with . Since negates and commutes with conjugation, the product of all four embeddings is . It is a nonzero integer because and each embedding is injective. Its modulus is at most , a contradiction. This proves .
For , set . Then for every . Fourier inversion in the power basis gives : expanding the sum, the coefficient of is , which equals for and for distinct . Therefore . Since is an integer, it lies in the stated finite interval.
Remarks
This proves a finite search bound, not a running-time bound for deciding exact real inequalities at an arbitrary real input angle. The norm-equation step of Cyclotomic scaled grid and norm-equation solver is a separate procedure with its own locally proved correctness and complexity suppliers.
Squared entry denominator bound
Statement
For nonzero , write . There is such that . In particular, if , then .
Facts & Assumptions
Given: , , and the exponent is the least integer power placing an element in .
Square root of two divisibility criterion in the eighth cyclotomic ring: for , iff and are even, and with and .
Proof
Put and . Minimality of implies , since otherwise with would make .
Write and set , . By [F1], means is not modulo . The two congruences and show that are not both even: among the three nonzero pairs , the pair is never . For , divisibility by is equivalent to both coefficients being even. Hence is divisible by at most once.
Let be the number of factors dividing ; write with and . Since , its least denominator exponent is : multiplying by that power gives , while any smaller exponent leaves a denominator because . Thus .
The hypothesis gives and , so and .
Remarks
The zero case is excluded in the statement; for both denominator exponents have the stipulated value and the implication also holds.
Prime norm numerators congruent to one modulo eight are solvable
Statement
Let be positive at both real embeddings. If with and a rational prime , then has a solution in . The complete finite-time norm solver returns a solution on every such input. The same conclusion holds when . No runtime bound is implied.
Facts & Assumptions
Given: as above; , , and .
Constructive decision of the dyadic cyclotomic norm equation: after clearing a rational square denominator, solvability is equivalent to even exponents at all conjugation-fixed prime classes. Its proof gives prime, , and .
Constructive cyclotomic factorization and real unit squares supplies unique factorization, effective associates and real unit correction.
First supplement: implies that is a square modulo every prime congruent to one modulo four.
Proof
Choose large enough that and . Then . Any prime of dividing divides the rational integer , hence divides or by the prime-divisor property. The only prime class over is that of , by [F1].
No prime dividing has a conjugation-fixed associate class. Indeed, choose an integer with by [F3], so . Thus divides at least one of . If its conjugate were associate to itself, conjugating this divisibility would make it divide both factors, and hence . Since is a unit, implies . As is odd, with . Thus , a contradiction. The required can also be found by the finite search .
Every nonzero element of has even -valuation in . To prove this, direct multiplication gives , so and . An odd integer is not divisible by : since and , divisibility of by the prime would imply . Hence, for each nonzero integer , writing with odd gives . For nonzero integers , the summands of therefore have valuations and . Their residues modulo are distinct, so the valuation of their sum is their minimum: after factoring out the lower power, the remaining lower-valuation term is nonzero modulo , whereas the other is zero. This minimum is even. When a coefficient is zero, the valuation of the remaining summand is even as well. Apply this to to conclude that its -exponent is even.
By steps 1.1 and 1.2, the only possible conjugation-fixed prime class in is , and step 1.3 proves its exponent is even. The criterion of [F1] therefore constructs a solution, and its complete terminating solver returns one.
If the norm numerator is , clear the denominator as in step 1.1; then . Every prime divisor of therefore lies in the sole class . Its exponent is even by step 1.3, so [F1] again constructs and returns a solution. This includes , where a positive real unit is corrected by the same unit-square step.
Efficient exact cyclotomic norm solving with a supplied integer factorization
Statement
Put , , and , with . Given and a valid complete rational-prime factorization of the nonzero numerator in the reduced fraction , there is an exact randomized algorithm returning with , or correctly reporting that no such exists. Zero input requires no factorization. The algorithm terminates almost surely and has expected bit cost polynomial in the total binary length of the explicitly encoded rational coefficients of and the supplied factorization. Denominators are ordinary binary integers, not compressed exponent encodings. The algorithm does not compute or verify rational primality of the promised prime factors.
In particular, suppose , and is the least nonnegative integer with . Given the factorization of , the expected cost, including exact solution recovery or a correct negative answer, is polynomial in when is supplied in reduced coefficient form. For a grid candidate with least -denominator exponent , its residual has least exponent at most . Under the same embedding bounds, and the residual solver has expected cost polynomial in . The unrestricted cost includes the bit length of the coefficients, rather than depending on alone.
For the stated grid residual with prime, or , a concrete schoolbook implementation of this algorithm has expected bit cost at most . This explicit bound includes input reading in reduced coefficient form and exact verification of a returned solution. Bit cost counts Boolean operations and bit reads/writes on binary arrays; multi-bit arithmetic is performed by the schoolbook loops detailed below. It gives a numerical cap for interrupted attempts; it makes no correctness or termination assertion about calling prime-specific branches with a composite integer falsely presented as prime.
Facts & Assumptions
Given: Binary rational coefficients for , the stated factorization promise, and independent unbiased random bits; arithmetic is ordinary bit arithmetic.
The rings are norm-Euclidean unique factorization domains. Their rounding divisions, exact divisibility tests and unit tests are constructive; has units , where , and a real unit positive at both embeddings is (Constructive cyclotomic factorization and real unit squares).
For positive at both embeddings, factorization into -prime classes decides : every conjugation-fixed class must have even exponent; paired classes have equal exponents. Allocating half of each fixed exponent and one entire member of each pair leaves a totally positive real unit for correction. Denominator clearing by is complete. Its proof gives prime, , and that its class is the only prime class over (Constructive decision of the dyadic cyclotomic norm equation).
The modular-root algorithm returns exact roots or certifies their absence in expected polynomial bit time (Exact randomized modular square roots in expected polynomial time). For odd primes, is a square exactly modulo , is a square exactly modulo , and quadratic characters multiply (First supplement: , Second supplement: , The Legendre symbol is multiplicative for all integer numerators).
Residues modulo a rational prime form a field; a polynomial quotient over a field is a field exactly when its defining polynomial is irreducible (For every prime , the two operations on make it a field, For a nonconstant in , the ideal is maximal and is a field exactly when is irreducible).
Proof
Reject if either real embedding of is negative, and return zero if . Signs of are determined by coefficient signs and comparison of with , so these are exact polynomial bit operations. A zero real embedding implies by injectivity. Otherwise both embeddings are positive. Clear a rational square denominator by choosing the least with . Since the input uses explicit denominators, and has -bit coefficients. Its positive rational norm is , so its factorization is obtained from the supplied one by adjoining the known factor . All its prime factors and their multiplicities have total size polynomial in .
Here are polynomial bit gcd and associate procedures for [F1], with coefficient growth controlled. Use and . The real coefficient-rounding error has norm at most . Write the cyclotomic rounding error as , where , and . Put . If , then . If , each of the four squared real coordinates exceeds , since the other three sum to at most . Thus and . Expanding the square gives . Hence every cyclotomic remainder contracts the norm by at most . As , every four nonzero divisions halve the norm. This explicit estimate needs no compactness premise.
Before and after each division, balance any nonzero remainder by multiplying it by a power of , which changes neither its norm nor the generated principal ideal. In arrange ; in arrange . The other embedding then has comparable magnitude, since their absolute product is respectively or . The fixed inverse linear conversion from embeddings to power-basis coordinates bounds every balanced coefficient by a constant times or . All comparisons can be performed without numerical approximations by squaring and comparing elements of . For inputs with -bit coordinates, the initial norm has bits, and its nonzero conjugates are bounded above by and below by using their integer product. Hence initial balancing uses unit multiplications. Thereafter all balanced coordinates and each exact quotient have bits; division in the fixed-degree number field uses a fixed number of rational operations. Rounding produces -bit remainders, whose balancing again uses multiplications. Step 2.1 bounds the number of divisions by . This proves polynomial bit cost for gcds; exact quotient and associate tests have polynomial cost as well. Units used in balancing do not affect any gcd ideal.
Recover all -prime classes above each odd rational prime in step 1.1 as follows. If , the polynomial has no root by [F3], so is a field by [F4], and is already prime in . If , compute using [F3]. Evaluation at the two distinct roots identifies with : interpolation of a linear polynomial gives the inverse, since is invertible. The gcds and generate the preimages of the two component kernels. Their quotients are fields, so these gcds are nonassociate primes, and the component description shows . These procedures give every -prime over and use the modular-root algorithm and polynomial gcds of step 3.1.
For an odd and an -prime just obtained, put . Because is invertible modulo and , there is an explicit isomorphism : the displayed formula expresses in the right-hand ring, and expresses its inverse map. If , then and is irreducible by [F3]. Thus is a field, and is prime also in ; its class is fixed by conjugation because is real. If , compute and put . If , compute and put ; the root exists since both characters of and are by [F3]. In these cases splits into distinct roots in : they are in the first case and in the second. Hence is a product of two fields, by the same explicit interpolation as in step 4.1. The ideals generated by and select the two distinct component kernels. Consequently and are nonassociate primes, with . This proves prime recovery and its completeness, rather than merely asserting a splitting table.
Include as the sole prime class over by [F2]. Step 4.1 and step 5.1 now give a finite list of all -prime classes over the rational prime divisors of . Every prime of dividing appears: it divides the integer , and the prime-divisor property of [F1] makes it divide one of those rational primes. Repeated exact division of by the displayed generators, with associate tests to remove duplicate classes, therefore gives its full prime-class exponent list. The remaining quotient has norm one and is a unit, since otherwise unique factorization would supply a missing prime divisor. Compute conjugation orbits by conjugating the generators and testing associates. Reject exactly when a fixed class has odd exponent; otherwise form by the allocation in [F2]. This decision and allocation are complete, including the ramified class and arbitrary multiplicities, by [F2].
Put . By [F2], this is a real unit of , positive at both embeddings; [F1] gives for an integer . Recover its exponent by multiplying by while it is at least , or by while it is below , recording the signed number of multiplications. The resulting unit in is by [F1], so this finds exactly, including negative exponents. Set and return . Then . This also states the actual unit-recovery algorithm; no search over arbitrary coefficients is used.
All rational primes in step 1.1 have bits, and their multiplicities sum to since their product is an -bit integer. Each gcd in step 4.1 and step 5.1 is normalized as in step 3.1, so its output has -bit coefficients. The number of prime generators is at most four per rational prime. A prime in has integer norm at least two; consequently step 6.1 uses successful divisions. Products and quotients of at most such factors have at most coefficient bits: a product in fixed degree adds operand bit lengths plus a constant, and a field inverse is given by the product of the other conjugates divided by the integer norm. Thus , and the intermediate divisions have polynomial bit length. An element with -bit coefficients has , because its two real absolute embeddings are and and both are bounded by . Step 7.1 therefore takes polynomially many bit operations and produces a polynomial-size answer. Modular-root calls are the only randomized operations; their number is and each has expected polynomial cost by [F3]. This proves the full expected polynomial bit bound, without using the exhaustive factor search in [F1].
For the bounded case, put . Both absolute embeddings of are at most , so and . If is even, ; if is odd, . These expressions and their reductions have coefficient bits. Moreover is an integer, so the reduced nonzero numerator is at most (and hence at most ); its supplied prime factorization has polynomial length in . Thus is polynomial in , and step 8.1 yields the asserted bounded-input complexity. For the candidate case, write with . Then is a real element of , hence lies in by [F1]; the least residual exponent is at most . Applying the preceding bounds with that exponent proves and expected polynomial cost in . Zero was already handled in step 1.1. For unrestricted inputs, real units can have norm one but arbitrarily large coefficients; retaining in the general statement is therefore necessary.
We calibrate the last bound for . The bounded residual lies in , so write with , by adding and subtracting its two embeddings. Using the least clearing exponent of step 1.1 gives and -coefficient bit lengths at most . The input coefficient denominators divide . For prime , ; hence its bit length is at most . The cases omit these prime calls. At most two real primes and four cyclotomic primes over , together with , need be represented. Reusing the modular roots, at most eight modular-root calls and sixteen ring gcds cover step 4.1 and step 5.1, including harmless duplicate computations. All gcd inputs have coefficient bit lengths at most : the modular roots are reduced below , and a balanced real factor has coefficients at most , so converting it to the cyclotomic basis still fits this bound. The real and cyclotomic norm bounds for an integer element with -bit coordinates are respectively and , because each complex embedding has magnitude at most . Step 2.1 therefore requires fewer than divisions per gcd.
Here is explicit storage and loop bookkeeping for these gcds. Multiplication in the power basis of has at most four signed product terms per output coefficient, so multiplying elements with coefficient bit lengths gives lengths at most ; the real basis obeys the same bound. The other field conjugates only permute or negate coordinates. Forming by multiplying by the other three conjugates of and dividing by gives numerator and denominator lengths at most and . Balanced gcd operands have lengths at most , by the embedding bounds in step 3.1 and the preceding norm estimate. Thus the unbalanced integer remainder has lengths below . Its nonzero embeddings lie between and , by the integer norm and the upper bound for the other embedding. Since , balancing needs fewer than unit multiplications, including comparisons; during balancing each embedding stays between its initial and final values, so all coefficient lengths stay below . The quotient formulas keep temporary rational coordinates below bits. Allowing eight fixed-degree field actions per balancing iteration and for division, norm and rounding, divisions, and initial balancing, fewer than field actions suffice per gcd. Here an action means a fixed-degree field multiplication, quotient, norm, sign comparison or coordinate rounding, with their integer-operation costs expanded below.
For the remaining work, the number of prime factors of counted with multiplicity is at most . Balanced prime-generator coefficients have at most bits, including . Multiplying at most generators gives coefficient lengths below ; successive exact divisions increase length by at most each by step 11.1, hence stay below . The quotient has length below . If , its two embedding bounds and give , so both exponent recovery and construction of use fewer than unit multiplications in total. A unit multiplication increases length by at most three; monotonicity of the embedding sizes during exponent reduction, or the direct power formula during reconstruction, bounds every stored coordinate, including the returned numerator and denominator, by bits. Sixteen gcds with , at most successful divisions and at most one failed division per generator, at most associate comparisons, and these unit loops, are together fewer than field actions; this also includes reading, denominator clearing, allocation, and checking exactly before returning. A field action can be implemented using fewer than signed integer operations and rational reductions on values of at most bits: expand the at most four coordinates, the at most three conjugate factors for inversion, and reduce each rational coordinate by the ordinary integer gcd. Binary schoolbook addition, multiplication and long division of -bit integers take fewer than bit steps, by their nested digit loops. An integer gcd has at most divisions, since every two Euclidean divisions at least halve its positive divisor. For , such integer-gcd costs are below . Maintaining the at most four binary array-index counters costs at most further bit operations per digit action, since their lengths are at most . Including this overhead and the rational reductions, one field action therefore costs less than bit steps. These bounds deliberately allow more integer operations and bits than any of the displayed fixed-degree formulas require.
Finally, for a modular-root call with prime bit length , the sampling implementation of [F3] uses an expected at most eight raw bit strings before finding a nonsquare: sampling accepts with probability at least , and half its accepted residues are nonsquares. Binary powering uses at most modular multiplications, and the at most order-reduction iterations use at most modular multiplications each. The schoolbook bounds in step 12.1 consequently put the expected cost of one call below bit steps, including sampling and initialization. Since , eight calls cost less than in expectation. The deterministic part is less than . Adding the random part gives a bound below . For the omitted prime calls only reduce the bound. This proves the explicit majorant for the actual chosen arithmetic loops, with no timing assumption about composite inputs.
Exponent growth of the Rz scaled grid
Statement
Let , , and let be the distinct points in , ordered by nondecreasing least denominator exponent . Put . Then this sequence is infinite, , and More generally, if two bounded convex plane regions contain disks of radii , then for every integer the simultaneous grid has at least two points whenever .
Facts & Assumptions
Given: The rings , , and the displayed regions and ordering.
The nontrivial real-conjugation automorphism of the eighth cyclotomic field fixes and sends to ; Dyadic cyclotomic ring for Clifford+T synthesis contains in .
Smallest square root of two denominator exponent defines least denominator exponents; Finite coefficient bounds for the scaled cyclotomic grid makes every bounded exponent layer of the two unit disks finite.
Integer part: for every real there is exactly one integer with : for every real , the integer is within of .
Proof
Write and . For any integer , the unit (using for negative ) satisfies . For arbitrary real , solve the two real linear equations and for real and round each to an integer by [F3]. The resulting satisfies and . Applying this independently to real and imaginary coordinates gives, for arbitrary complex centers , a such that and .
Set . Choose the integer so that . If , then implies , while . Apply step 1.1 to centers of disks in and ; the latter disk has radius , since . Both and lie in the first disk: their errors are bounded by and . Their bullet images likewise lie in the second disk, since the corresponding errors are at most and . Dividing by gives two distinct simultaneous grid points.
Put . The disk centered at with radius lies in the unit disk and in the half plane by the triangle inequality. Take this as the disk in and the full unit disk as . Since , step 2.1 gives two candidates of exponent at most . Every candidate is nonzero because its displayed real part is positive; [F2] therefore gives nonnegative exponents and finitely many candidates through each fixed exponent. In particular .
If are grid points of exponent at most , then for every integer the points , , are distinct. They have exponent at most , and both their original and bullet images lie in the required convex regions, because rational coefficients are fixed by . Thus the grid is infinite. Together with finite layers this proves the existence of its stated enumeration, and taking gives the exponent bound.
Size and residue of the Rz candidate norm integer
Statement
Let satisfy , put , and write with and least . Then , and either or . If has least square-root-of-two denominator exponent , then .
Facts & Assumptions
Given: The displayed and the convention for scalars.
Dyadic cyclotomic ring for Clifford+T synthesis supplies the unique integral power basis of and its localization .
The nontrivial real-conjugation automorphism of the eighth cyclotomic field fixes , negates , and commutes with conjugation.
For nonzero satisfying the two disk bounds, Finite coefficient bounds for the scaled cyclotomic grid gives and bounds its scaled integral coefficients. Smallest square root of two denominator exponent defines this least exponent and sets .
Proof
Put and . Direct multiplication gives , , and . Since , these identities give . Choose the least integer such that with . Multiplying by the displayed inverse of shows that exactly when is even: each numerator coefficient is a signed sum of the four coefficients, and all four sums have the same parity. Thus if , this sum is odd.
If , the two disk conditions give . Consequently or for . If , the same identity and give ; its parity is odd by minimality, so it equals . Then is again a root of unity, contradicting . Thus the cases give only (where ) and the eight roots of unity (where ).
For , multiplication gives , where and . The odd sum of coefficients makes odd; also since the two factors have opposite parity. Write . Both are even, since . It follows that , with odd and even. Taking real conjugates gives . Its numerator is , hence odd, so this denominator is already minimal. This proves the residue assertion; nonnegativity follows from .
For nonzero , write , . Then , and by the same multiplication as in step 3.1. Therefore is an integer, whence . The inequality now yields .
Complete scaled-grid enumeration with expected polynomial prefix cost
Statement
The iterator Efficient exact-denominator Rz grid iterator enumerates exactly once every satisfying , , in increasing least denominator exponent. Let . Its startup costs ideal exact-real arithmetic/comparison operations. In a layer having solutions, its explicit proposal domain has size for an absolute constant , without filtering already emitted lower-denominator points. Empty layers cost . For , the expected work through its first distinct outputs is ; the th moment of that prefix work is for every fixed positive integer . Complete-layer work is in expectation. These are arithmetic bounds with random-bit generation charged, and do not assert bit-time bounds for unspecified real inputs or worst-case polynomial delay.
Facts & Assumptions
Given: The arithmetic/comparison and real-input contract of the algorithm, independent unbiased random bits, and exact algebraic coefficient arithmetic.
One-dimensional intervals have the proposal and counting bounds of One-dimensional quadratic grid enumeration and counting.
The paired-ellipse construction makes both outer ellipses at least upright, with all map entries polynomially bounded in (Effective simultaneous grid uprighting of paired ellipses).
Simultaneous disk bounds give at most coefficient tuples at exponent (Finite coefficient bounds for the scaled cyclotomic grid).
Bullet negates and sends to (The nontrivial real-conjugation automorphism of the eighth cyclotomic field).
Proof
The ring has exactly four residue classes modulo , represented by . Indeed and imply , , and . Conversely the coefficient map annihilates every multiple of : multiplying by gives even sums in both coordinates. Thus those four residues are distinct and exhaustive. Consequently for the three chosen affine subproblems describe precisely the elements of least exponent . For , the algorithm scans all coefficient tuples in ; [F3] bounds every nonzero grid candidate in this layer by that box, and zero fails the cap because . The two further cosets and its translate by partition : expand a power-basis element's real and imaginary parts and separate the parity of . Thus all affine subproblems are disjoint. The lattice bijection [F2] and the exact filters preserve every solution, while the emitted set suppresses revisits. The exhaustive background scan makes every finite layer terminate for every sequence of random bits.
The cap is sandwiched between and its concentric -dilate. In coordinates , cap points have and , so . Conversely the -ellipse lies in , , hence and for . The normalized outer ellipse eigenvalues are and , within for ; the disk matrix is the identity. Therefore [F2] applies with . For a final normalized ellipse matrix with , its centered bounding box has half-widths . At its box scaled by , the quadratic form is at most , since . Each transformed cap therefore contains its outer ellipse's bounding box scaled concentrically by , and the same weaker bound holds for the transformed disk. Affine shifts, negative scalar dilations, and coset translations preserve these inclusions.
At the direct coefficient scan has at most proposals, hence for the number of layer solutions. For , consider one of the at most six subproblems. If , the two inner axis rectangles from step 1.2 supply independent coordinate grid problems with length products and . Both exceed , so [F1] gives at least and solutions, with a fixed . Their Cartesian product lies inside both true constraints, giving . The two outer one-dimensional proposal lengths are and , so their product is . If one coordinate product is below , its entire proposal list and filtered coordinate list have bounded length by [F1]. Each remaining exact slice gives proposals by the same result, including singleton slices. Summing over the constantly many coordinate solutions gives proposals. Combining the at most six disjoint subproblems proves . In particular an empty layer has only constantly many proposals; no exponentially large lower-denominator list is generated.
The bound [F2] on and the affine scalings bounds all outer centers and widths above by . A nonzero outer width is bounded below by , by the ellipse eigenvalue bounds and . Thus the integer parts in outer one-dimensional preprocessing cost comparisons each. There are only constantly many exact slice intervals in the small-coordinate branch. A positive slice can have arbitrarily small width, so the algorithm pads it before the [F1] normalization: replace a slice width smaller than by that value, keeping its center and filtering the original slice. Its product is at most one and it creates constantly many proposals. Otherwise , so both positive widths used for normalization are at least , since is bounded by the outer width. The same padding handles singleton slices, and an empty slice is skipped. In either branch the [F1] unit-rescaling exponents are , all floor operands have magnitude , and the earlier bound is retained. Root and line-intersection calculations use boundedly many source arithmetic operations; sign decisions are charged exact comparisons. Finally and [F3] give , so each random proposal attempt uses random bits and is accepted with probability at least . A balanced comparison tree on exact coefficient tuples handles the emitted set in comparisons per visit. Thus each proposal visit and all layer preprocessing cost in expectation, with polynomial moments.
Every actual solution occupies exactly one proposal index. For , after distinct solutions have been drawn, an independent random attempt produces a new solution with probability at least . Ignoring the background scan can only delay obtaining solutions. The expected number of random draws to obtain them is at most , since for . This is . Moreover each waiting time is dominated by a geometric variable with success probability , whose th moment is : sum its geometric tail, or bound the sum by the integral of . The inequality gives the stated draw-moment bound. Each random draw adds only one background visit. Independently, after at most such pairs the deterministic scan ends the layer, bounding complete-layer work by . Combining these estimates with step 3.1 proves all complexity claims. They control prefixes as well as complete output sizes, so they do not hide a whole-layer precomputation before the first candidate.
Conditional stopping bounds for prime-tested Rz candidates
Statement
For the candidate sequence and exponents of Exponent growth of the Rz scaled grid, let be success events and . Suppose there are numbers with , for a constant independent of the input, such that Independent success events of probabilities are a sufficient special case; independence of the events is not otherwise required. Then almost surely and, for every fixed positive integer , In particular and . The implied constants can depend on and , but not on or . For every fixed nonnegative integer , is polynomially bounded in .
This is the explicit quantitative probabilistic assumption needed when Ross–Selinger Hypothesis 8.3 is used for a complexity claim. It is a conditional model, not an assertion of independence for a deterministic input sequence.
Facts & Assumptions
Given: The success events, joint-failure product bound, constant , and random index in the statement.
Exponent growth of the Rz scaled grid gives and .
Proof
By [F1], choose constants and , with , so that for all . The assumed joint-failure bound and imply . This upper bound tends to zero, which proves almost sure finiteness.
For , put . Since and , one has . Hence for . For an integer-valued positive random variable, summing the identity and using nonnegative sums gives . The part is . The remaining part is bounded by a constant times : comparison with the integral and substitution reduce it to , which is finite by repeated integration by parts. This proves all the moment bounds.
The elementary tangent bound for , with , gives . Finally , and expansion of reduces its expectation to the finitely many moments in step 2.1; these are polynomial in . The stated bounds in follow from [F1].
Clifford+T gate library and exact matrices
Definition
Let . The one-qubit generators and exact matrices in the ordered computational basis are
On basis vectors, and for .
Write and . Pauli are as in The Pauli matrices. On two ordered wires, ; the first wire is control and the second target. A circuit is a finite chronological word of these gates at stated wire positions; its matrix is the product with later gates on the left. No extra wire or controlled- operation is implicit.
The scalar phase is an allowed Clifford phase in the one-qubit matrix-word convention. Its scalar factor is retained in exact matrix products; the convention that an overall scalar does not affect a resource count is stated separately from matrix equality. It does not grant a controlled- operation or allow a scalar on a target wire to be discarded under control.
The exact one-qubit H/T algebra is generated by ; and are aliases for the displayed powers. The distinction between exact matrix equality and global-phase equivalence is maintained. Resource costs are supplied by Finite circuit resource accounting and remain separate from this matrix definition.
Unresolved supplier checks
The actual QC07 Pauli/gate bodies and QC08 controlled-unitary body were inspected; their displayed matrices and control-first phase convention agree with this definition. The actual QC09 resource-vector body was inspected: it defines size, depth, width, and separately declared weighted/query costs. Scalar phase remains a matrix-word convention and is not an extra QC09 gate call. The actual QC07/08 gate interfaces and QC09 resource interface agree; this is reconciliation, not acceptance of their draft content.
Controlled T using a clean ancilla
Definition
Input two data bits and a third clean work bit . On the ordered register , apply the following chronological word:
- .
- .
- .
- .
- .
- Apply the same 15-gate word from steps 1–4 again.
The 15-gate word in steps 1–4 is the specified three-wire block. The output is the complete three-wire circuit, with no implicit fourth wire.
Remarks
The source's controlled- construction computes into the clean bit, applies there, and uncomputes. The target operation is the control-first block in Controlled Unitary Access. Its exact correctness and restoration claim is the separate proposition above.
Unresolved supplier checks
The actual QC09 syntax/denotational-semantics and QC10 Toffoli/ancilla carriers were inspected. Their ordered-wire and clean-return interfaces agree with this circuit. This is interface reconciliation, not acceptance of the supplier drafts.
Ancilla-free Rz approximation problem and T-count
Definition
For set . Given , the on-the-nose ancilla-free approximation problem is to find a finite one-qubit Clifford+T word such that
and minimize the number of occurrences of or ; the -count of a word is this integer. An overall scalar Clifford phase , viewed under Global Phase Equivalence, is free in the resource count but remains part of the exact matrix used in the displayed norm inequality. Thus changing the representative can change feasibility even when it leaves T-count unchanged. No workspace wire is permitted. The operator norm is the finite-dimensional norm from The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||.
This defines a mathematical optimization problem for exact real inputs . It does not specify a bit representation or assert a Turing algorithm for arbitrary real input.
Unresolved supplier checks
The actual QC07 gate/rotation and QC09 circuit/resource bodies were inspected. The resource vector counts explicit occurrences and keeps weighted/query costs separate; this problem's T-count is the stated number of or occurrences while exact matrix phase remains in the error objective. No bit encoding or Turing-time claim for arbitrary real inputs is made.
Determinants of one-qubit Clifford+T words are eighth roots
Statement
Every exact one-qubit Clifford+T matrix word, including a free scalar Clifford phase , has determinant in .
Facts & Assumptions
Given: and a finite word from the one-qubit Clifford+T matrix alphabet.
Clifford+T gate library and exact matrices: has its displayed Hadamard matrix, , , , , are the displayed Pauli matrices, and is an allowed scalar Clifford phase.
For same-sized finite square matrices over a commutative ring, : determinants multiply under products of same-sized square matrices.
Proof
Direct determinants give , , , , , and . Also . Thus every one-qubit generator has determinant an integer power of .
By [F2], the determinant of a finite product is the product of the generator determinants from step 1.1. The product is again an integer power of , including for the empty word, whose determinant is .
Clifford+T circuit entries lie in the dyadic cyclotomic ring
Statement
Every finite circuit on ordered wires using only the matrices in Clifford+T gate library and exact matrices has all matrix entries in .
Facts & Assumptions
Given: , chronological gate order, and the exact matrices in the gate-library definition.
Dyadic cyclotomic ring for Clifford+T synthesis: is a subring of and contains and .
Clifford+T gate library and exact matrices: has entries , have entries in , and CNOT is a computational-basis permutation matrix.
A local gate has a unique global wire embedding: each gate occurrence acts on its named ordered wires and as identity on the complementary wires.
Denotational semantics of a finite layered circuit: a circuit matrix is the finite product of its layer matrices, with later chronological layers multiplying on the left.
Proof
Since , every entry of lies in . The displayed diagonal gates have entries or powers of , the scalar Clifford phases have entries powers of , and the displayed CNOT has entries or , so each primitive gate matrix has entries in by [F1] and [F2]. The embeddings in [F3] are obtained from tensoring with identity matrices and permuting factors; these operations only insert zeros and copy entries, hence preserve membership in .
The product of two matrices with entries in a subring has entries that are finite sums of products in that subring. By the finite product interpretation [F4], induction on the circuit's finite gate list therefore places every entry of its matrix in ; the empty word is the identity matrix and also has entries in .
Unresolved supplier checks
The actual QC07 matrices and the QC09 syntax, local-wire-embedding, and denotational-semantics bodies were inspected. Their ordered-factor and chronological-product conventions match the local closure argument. This is interface reconciliation only, not acceptance of the supplier drafts.
Reduced Hadamard words and their exact denominators
Statement
Use and allow scalar phases . Only contributes to the H count; only contribute to the T count. Every word can be rewritten, with its exact scalar retained, as
where all are odd, exponents are read modulo , and . For interpret this as . The rewriting never increases either resource count. Each odd power uses one T gate and even powers use none. A reduced word with has ; with the exponent is , and with the squared entry is or . Consequently reduced words minimize H count among all words for the same matrix up to global phase.
Facts & Assumptions
Given: The exact matrices of , , and the ring .
Clifford+T gate library and exact matrices supplies the matrices and .
Smallest square root of two denominator exponent defines the least exponent placing an element in .
Proof
Replace by , and move all factors to the right using and . Combine adjacent diagonal powers. For an even interior exponent, use , , , or . Each replacement strictly decreases the H count and introduces only free diagonal Clifford or Pauli factors. Repeat until all interior exponents are odd. Combining powers never increases the number of odd powers, since the parity of a sum is at most the sum of the parities. Thus both counts never increase. Exact scalar exponents are updated modulo . A stack of diagonal blocks and H symbols implements this reduction in linear time in the input word length: each interior even-block replacement removes at least one H symbol and requires only bounded local stack updates.
For a unit column , set , , . Direct matrix multiplication gives the H action and the action . For odd , its sine and cosine are independently signed . The rightmost starts the column at , and the leftmost does not change the final .
Ignore these endpoint factors temporarily. After one H the triple is . After two H gates with an odd intervening power it is . After three it has , , , so the respective least exponents are . If two nonzero elements have unequal least exponents, their sum and difference have exponent equal to the larger one: scale by that larger power; one summand is primitive modulo and the other is divisible by , so their sum cannot be divisible. Inductively, after H gates the exponents of are . Indeed an odd rotation makes both new transverse coordinates have exponent , and H makes the new exponents . The same transition from the displayed two-H triple establishes the induction base.
Since , the positive exponent of for gives exponent for by the same primitive-numerator argument. For one H, and has exponent ; for zero H the column is a basis vector. Thus the squared-entry exponent distinguishes every possible reduced H count, including . Any competing word reduces by step 1.1 without increasing H count, and its squared-entry exponent is unchanged by scalar phase. Its reduced H count therefore equals that of the given reduced word. This proves H minimality.
Cyclotomic scaled grid and norm-equation solver
Definition
Fix and . Use the automorphism from The nontrivial real-conjugation automorphism of the eighth cyclotomic field, which sends to and fixes . Let and . The scaled grid for this input is
The default iterator is Efficient exact-denominator Rz grid iterator, with . It emits every candidate once in increasing least , with randomized order within each layer and finite layer completion for every random-bit sequence. Its expected prefix cost and all fixed prefix moments are proved in Complete scaled-grid enumeration with expected polynomial prefix cost.
A complete finite-search alternative uses lexicographic power-basis coefficients within each layer. For each , write with least exponent ; the finite coefficient bound is , proved in Finite coefficient bounds for the scaled cyclotomic grid. Test the three displayed conditions exactly. This defines a finite candidate list for each .
For a candidate , put
, using
Conjugate norms from the dyadic eighth-cyclotomic ring are real dyadics. For scalars, .
Write
with and least ; compute
it by writing with and multiplying
. The two disk conditions give
, so ; if , injectivity of
gives .
The complete norm-equation subprocedure receives and, if , a prime
factorization of . It must decide whether some satisfies
, return an exact such if one exists, and otherwise return
NO_SOLUTION. If , it returns . A bounded factorization attempt
may return FACTOR_TIMEOUT; that result skips this candidate and is not a
proof of NO_SOLUTION.
Factored norm-equation subprocedure
When the supplied integer factorization is available, use the efficient
construction in Efficient exact cyclotomic norm solving with a supplied integer factorization.
Clear the denominator by , taking the least nonnegative
for which . For each rational prime in its
known norm factorization, recover its real prime generators using
when exists, and otherwise retain
. Split these into cyclotomic prime generators by the displayed modular
roots of or and cyclotomic gcds; retain the inert generators and
include over . Recover the exponents in
by exact division, allocate them under complex conjugation as below,
and recover the real unit by multiplying by or its inverse
until its positive embedding lies in .
The cited construction specifies all residue-class branches and its
randomized modular square-root subroutine; balance gcd remainders by real
units as there. It returns an exact solution or NO_SOLUTION and has
expected polynomial bit cost in the explicit algebraic input size. For a
grid candidate of exponent , this is polynomial in .
Calibrated bounded prime attempts
In bounded mode no prime recognition oracle is used. For candidate exponent , use the fixed calibrated polynomial from Efficient exact cyclotomic norm solving with a supplied integer factorization. If , return . If , run the complete efficient construction with the empty odd-prime factor list; its remaining powers of two are known.
For , execute the factored construction prospectively, using the
single factor hint , for at most of its elementary binary
operations. This is an attempt, not a claim that is prime. Instrument
all loops, including random sampling, with this counter. Guard every partial
operation: check divisors for zero and obtain modular inverses by the
integer extended Euclidean algorithm, aborting if the gcd is not one.
Impossible order/root searches, malformed outputs, negative solver outcomes,
failed inverses, and work-cap interruptions all end the attempt with
FACTOR_TIMEOUT, never with a claim of NO_SOLUTION.
Before accepting any prospective output, reduce its rational power-basis
coefficients and check exactly. Accept only when that
equality holds; otherwise return FACTOR_TIMEOUT. Watchdog, guard and final
certificate costs are charged; they are polynomial in even on
composite inputs. The solver-work counter bounds every intermediate bit
string by its input length plus , so certification cannot hide an
unbounded output cost. Use fresh independent random bits at each candidate.
After the capped prime attempt fails, return FACTOR_TIMEOUT for this candidate and continue to the next grid candidate. Bounded mode makes no additional factoring attempt and takes no factor-suggestion procedure or additional factor-attempt budget as input. Complete oracle mode instead supplies a valid full factorization and runs the complete efficient solver without this cap.
Complete finite-search alternative
Use the complete terminating construction of
Constructive decision of the dyadic cyclotomic norm equation. Explicitly, after the zero
case choose the least integer clearing the coefficient denominators so that
. Factor in
by the finite divisor search in
Constructive cyclotomic factorization and real unit squares. Group the prime
associate classes under . If any fixed class has odd exponent,
return NO_SOLUTION. Otherwise form by allocating half each fixed
exponent, and all of the common exponent to one class from each conjugate
pair. Compute the positive real unit , recover
with by the unit construction, and return
. Every computation here uses exact power-basis arithmetic.
The supplied integer factorization is retained as an admissible input for implementations using rational-prime splitting. The finite-search mode above does not need it and has no asserted polynomial runtime. In bounded mode, FACTOR_TIMEOUT skips the current candidate and never changes the complete subprocedure's NO_SOLUTION criterion.
Comparison contract
The grid comparisons involve the supplied real parameters and . Their exact comparison interface is part of the outer real-input contract. It is independent of the algebraic norm solver, whose sign, equality, divisibility and associate tests are all exact and terminating.
Determinant-one Clifford+T words are dense in SU(2)
Statement
Let be the group of exact one-qubit Clifford+T matrix words, and let . For every and every , some satisfies and .
Facts & Assumptions
Given: is the group of unitary matrices and . Equip with its standard inner product, linear in the first argument, , and induced norm. The exact one-qubit Clifford+T matrices and projective unitary group have quotient metric , and .
Clifford+T Is Dense Projectively on One Qubit: projective classes of finite words in are dense in in operator norm.
Determinants of one-qubit Clifford+T words are eighth roots: every exact one-qubit Clifford+T word has determinant in .
Clifford+T gate library and exact matrices: and the exact matrices are the displayed Hadamard and Pauli matrices.
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely: every finite-dimensional normal complex matrix has an orthonormal eigenbasis.
The Leibniz determinant is column-multilinear, alternating and normalized over every commutative ring: the determinant is multilinear in the columns.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm is the maximum norm of the image of a unit vector.
For same-sized finite square matrices over a commutative ring, : determinants multiply under matrix products.
is a bijection from onto the real unit circle and , , and : every unit complex scalar is for some real , so it has a unit scalar square root.
Global Phase Equivalence: two matrices represent the same projective class exactly when they differ by a unit scalar.
Proof
By [F7], determinant is a homomorphism on , and [F2] places its image in the finite group . Therefore its kernel has finite index in . Let be the quotient map. Then has finite index in , and [F1] makes dense. Its closure is consequently a closed finite-index subgroup of : the dense group is a finite union of cosets of , so its closure is the same finite union of the corresponding closed cosets of . Every projective class has an representative: write using [F8] and multiply by . Every matrix has eigenvalues ; [F4] diagonalizes it and the path joins it to . Thus , and hence its continuous image , is connected. The complement of a finite-index closed subgroup is a finite union of its closed cosets, so that subgroup is also open. Since is connected, its only nonempty clopen subgroup is itself; hence .
Choose and, by the density just proved, a word and a scalar with . Write the columns of and as and . Multilinearity [F5] gives . For and , expanding both sides gives . Since the columns are unit vectors and each column difference has norm less than by [F6], .
Put and . Then and . Since from , we have . Choose attaining this minimum. By the triangle inequality and , . The scalar is a word in : direct multiplication gives Thus , and is less than . Because and , this scalar correction leaves the determinant equal to . Choosing proves the claim.
Unresolved supplier checks
The current QC12 projective-density proof and its Pauli-axis suppliers were inspected. The normalized lifts and are used only to prove projective density; their scalar phases are not discarded under control. The interfaces match this proof. Supplier drafts remain unapproved by this author.
The exact operator-norm epsilon region for determinant-one Rz candidates
Statement
Let , , and Then
Facts & Assumptions
Given: The exact matrix , the displayed determinant-one matrix , and the finite-dimensional operator norm.
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely: a finite- dimensional normal complex matrix has an orthonormal eigenbasis.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: for a nonzero finite-dimensional domain.
is a bijection from onto the real unit circle and , , and : every unit complex number has a real angle, and Euler's formula gives and .
Proof
Put . It is unitary and has determinant , so [F2] diagonalizes it. Its eigenvalues have modulus one by unitarity and satisfy by the determinant, hence . By [F4], write with ; if , swap and put , while if put . Thus the eigenvalues are for some . From the displayed matrices, . Hence .
Left multiplication by preserves vector norms, so [F3] gives . Let be a unitary diagonalizer of from [F2]; conjugation by preserves the operator norm by [F3]. Using [F4] then gives . Both the operator norm and are nonnegative, so squaring the bound is equivalent to the stated real-part inequality.
Normal form of a single-qubit ring unitary
Statement
If is a unitary with entries in , then for some ,
Facts & Assumptions
Given: , and .
Linear isometries, and orthogonal or unitary operators on finite-dimensional inner product spaces: in finite dimension a unitary operator satisfies .
Unit-modulus elements of the dyadic cyclotomic ring: if and , then for some integer .
Proof
The first column of is a unit vector, so . Its orthogonal complement is the one-dimensional span of , which is itself a unit vector. Therefore the second column is for a scalar with .
The determinant of this displayed matrix is . Because its entries lie in and is a ring, . By [F2], for some . Substitution gives the asserted form.
Unresolved supplier checks
The actual QC07 gate, QC09 circuit-semantics, and local entry-ring bodies were inspected; their matrix and ordered-word conventions match this argument. The supplier items remain draft and are not accepted by this record.
Clean ancilla controlled T circuit is exact
Statement
The procedure of Controlled T using a clean ancilla acts on every computational basis input as . Consequently it implements on the two data bits and returns the clean ancilla to , also when the data is entangled with any finite-dimensional reference register.
Facts & Assumptions
Given: , , the ordered computational basis, and the displayed chronological gate word.
Controlled T using a clean ancilla: the Toffoli block is .
Clifford+T gate library and exact matrices: acts by , , and CNOT adds the control bit modulo to its target.
Denotational semantics of a finite layered circuit: the matrix of a chronological circuit is the product of its gate-embedding matrices, with later gates multiplying on the left.
A local gate has a unique global wire embedding: a gate occurrence acts on its named ordered wires and as identity on all complementary wires.
Controlled Unitary Access: in the control-first basis.
Clean and dirty ancillas: a clean ancilla is initialized in the specified zero state and must be returned exactly for every allowed data input.
Toffoli and Fredkin gates: ; applying this action twice restores .
Proof
Fix the controls and let be the target bit immediately after the first . The seven phase gates in [F1] contribute exponent . For , the pairs are respectively . Conjugating these diagonal phases by the final therefore gives, for the four control values, on the target. The last CNOT–––CNOT block contributes data phase , which is in the same order. The combined action is exactly with phase in all eight cases, proving the displayed word is Toffoli in the sense of [F7]. By [F3,F4], these basis actions give the denotational matrix of the displayed chronological circuit.
Starting with , the first Toffoli sends to . The middle multiplies this vector by ; applying the Toffoli action [F7] again gives target . Thus the full circuit sends each basis vector to . The matrix product is the chronological circuit action by [F3,F4].
Every vector on data and a finite-dimensional reference with a clean ancilla has the finite expansion . Applying step 2.1 termwise gives , which is on the data and identity on the reference, tensored with the restored zero state, by [F5,F6]. This is the asserted correlated-input action.
Finite certificate
The exact arithmetic check at
research/quantum-computing-algorithms-60-2026-10-15-batch-13-finite-certificates.json
independently applies the 15-gate word to all eight three-bit basis vectors;
the table records the two unchanged inputs with as
and , and identity action on the other six, all with phase .
Unresolved supplier checks
The eight-case word calculation and reference extension are local. The actual QC07, QC09 and QC10 gate, circuit, ancilla and Toffoli bodies were inspected; their exact matrices, ordered-wire convention and clean-return interface agree. This is interface review, not approval of another batch's draft work.
Two-qubit determinant obstruction to controlled T
Statement
The two-qubit controlled- matrix cannot be implemented exactly, or up to a scalar global phase, by a circuit on exactly two wires using only one-qubit Clifford+T gates and CNOT. The assertion concerns no workspace wire; it does not rule out implementations with an explicit ancilla.
Facts & Assumptions
Given: , the exact two-wire gate embeddings, and multiplicativity and column multilinearity of the determinant.
Clifford+T circuit entries lie in the dyadic cyclotomic ring: every matrix entry of a finite Clifford+T circuit lies in .
Unit-modulus elements of the dyadic cyclotomic ring: every with is an eighth root .
Clifford+T gate library and exact matrices: have the displayed exact matrices and CNOT permutes the two-wire computational basis by .
For same-sized finite square matrices over a commutative ring, : the determinant of a product of square matrices is the product of their determinants.
The Leibniz determinant is column-multilinear, alternating and normalized over every commutative ring: determinant is multilinear in its columns, so scaling all four columns by scales the determinant by .
A local gate has a unique global wire embedding: on two ordered wires, a one-wire operation acts on its selected factor and as identity on the other factor.
Denotational semantics of a finite layered circuit: a finite chronological circuit is represented by the product of its gate-embedding matrices, with later gates multiplying on the left.
Global Phase Equivalence: and are equivalent up to global phase exactly when for a scalar of modulus .
Proof
By [F6], the two one-wire embeddings are and the corresponding tensor embeddings for and scalar phases. Direct diagonal/permutation calculations give , , and . The same calculation gives determinant for embedded , determinant for embedded , and for the embedded scalar phase . CNOT is a single transposition of and , so its determinant is . Thus every primitive determinant is an even power of ; [F4,F7] make the determinant of a finite circuit product an even power as well.
The target has determinant . Exact equality contradicts step 1.1. If a two-wire circuit equals for a unit scalar as in [F8], then its entry is , so [F1] gives ; unitarity gives , so [F2] gives . By [F5], , an odd power, again contradicting step 1.1.
Unresolved supplier checks
The determinant calculation was reconciled with the actual QC09 local-wire embedding and circuit-semantics bodies. QC07's exact gate matrices and the ring-unit-circle supplier were also inspected. This records interface review, not independent acceptance of those draft suppliers.
Two-phase reduction for Clifford+T Rz synthesis up to phase
Statement
For and a one-qubit Clifford+T operator , if for some unit scalar , then the same projective T-count has a representative whose phase parameter is one of or . The exact representative in the operator-norm constraint remains explicit in the pair . Thus the up-to-phase search need only compare the two scaled candidate problems. If such a phase-equivalent operator is placed under a control, its phase must be restored as a relative phase:
Facts & Assumptions
Given: and each Clifford+T word are unitary, , and is a complex scalar with .
Determinants of one-qubit Clifford+T words are eighth roots: every exact one-qubit Clifford+T word has determinant for some integer .
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely: a finite-dimensional normal complex operator has an orthonormal eigenbasis.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: for a finite-dimensional nonzero domain.
For same-sized finite square matrices over a commutative ring, : for square matrices over a commutative ring.
Global Phase Equivalence: and are phase-equivalent when for a unit scalar .
Ancilla-free Rz approximation problem and T-count: and scalar Clifford phases do not contribute to T-count.
Global Phase Under Control: in control-first order, .
Controlled Unitary Access: on the control-first register.
is a bijection from onto the real unit circle and , , and : every unit complex scalar has a real angular parameter, and Euler's formula gives .
Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on and strictly decreasing on ; cosine is strictly decreasing on .
Parity and the Pythagorean identity for sine and cosine: , , and sine and cosine are bounded by .
Proof
Write by [F1], and set . Since , [F4] gives . The unitary is normal, so [F2] diagonalizes it. Its two eigenvalues have product and modulus , hence are for some by [F9]; consequently is real. Choose such that has nonnegative trace. Since , for an integer , and is unitary with determinant .
Since , its eigenvalues are a unit scalar and its conjugate; by [F9] write them and, swapping them if needed, choose with eigenvalues . Then ; [F10,F11] imply . For any unit scalar , choose its angle by [F9] and set if , or otherwise. Thus . By [F2] and [F3], and . If , put . For , by [F10]; for , sine decreases on , so . By [F11,F12], , and gives by [F10]. If , apply the same bound to from the second eigenvalue. By [F9,F10], and these bounds imply .
Left multiplication by preserves operator norm, since it preserves the norm of every vector in the maximum [F3]. As , step 2.1 implies . Write with . Then . Since is a free scalar Clifford phase in [F6], moving it between the explicit scalar and the representative leaves the projective T-count unchanged. Thus the two phase representatives are , proving the reduction.
In the control-first basis [F8], direct block multiplication gives , in agreement with the supplier identity [F7]. The first factor is generally not a global scalar on the joint control-target system, so replacing by under control requires this relative phase correction.
Unresolved supplier checks
The actual QC07 gate, QC08 controlled-unitary, QC09 resource, and QC11 global-phase bodies were inspected and their interfaces agree with the matrix and scalar-phase conventions here. The separate Ross–Selinger T-count and arithmetic-runtime claims have their own local suppliers and explicit probabilistic assumptions; this phase-reduction proof does not use them.
Clifford+T denominator descent and finite base table
Statement
Let be a unit vector with entries in , and put . If , then some has
Moreover, every such unit column with is prepared exactly from
by a word in . A complete coefficient-and-word
table for the finite base set is recorded at
research/quantum-computing-algorithms-60-2026-10-15-batch-13-finite-certificates.json.
Facts & Assumptions
Given: , entries in , , and the exact H/T matrices.
Smallest square root of two denominator exponent: is the least integer with , and .
Squared entry denominator bound: for nonzero , for some .
Square root of two divisibility criterion in the eighth cyclotomic ring: for , iff and are even; also with and .
Finite coefficient bounds for the scaled cyclotomic grid: if , then and the coefficients of have absolute value at most .
Clifford+T gate library and exact matrices: maps to , while multiplies the lower entry by .
The nontrivial real-conjugation automorphism of the eighth cyclotomic field: the four embeddings are the identity, complex conjugation, , and their composite; commutes with complex conjugation.
Unit-modulus elements of the dyadic cyclotomic ring: if and , then for some .
Proof
For a nonzero real element , define as the largest for which divides it in . This maximum exists: divisibility by forces both integer coefficients to be divisible by , which cannot hold for arbitrarily large unless the element is zero. If with , then the definition of sde gives .
Applying each embedding of to preserves the identity by [F6]; hence every embedding of each entry has modulus at most . Since , . If , then and , a contradiction, so as well. Let and . From [F2] and , . More generally, if and the exponents differ, the same argument below gives a contradiction. If , set and . Then ; the right side and second term lie in , so . Write . By [F3], with and . If are both even, then and have equal parity because , while forces both even. Then [F3] gives , contradicting the minimality of . Since would make both even in the power basis, this is impossible. If , interchange and use the same calculation with the larger exponent. Thus . Write and . Their minimal exponents make both primitive with respect to . The same parity argument shows and are not divisible by , so their divisibility by is either zero or one. Since , is divisible by ; exactly one of the two norms cannot be divisible by , since then their sum would not be divisible by it. Hence . Also by [F4], since the entries and their -conjugates are all in the unit disk.
The squared-entry identity [F2] gives . If , then , so the integer forms satisfy . For a real element , direct successive division by gives , , and , and . These tests depend only on the four coefficients modulo for every requested exponent through . The finite checker enumerates all vectors in , groups the vectors with or , and checks all compatible residue pairs. For every pair and each , it finds a with ; all negative-power targets pass. Taking yields . The same code checks the positive-power form as a cross-check.
The only remaining case with is , so . Here satisfy . The four embedding bounds and Fourier coefficient formula in [F4] give . The checker therefore exhausts all integral coefficient vectors in for both columns, retains the normalized pairs with , and verifies for each a that . This proves descent at the boundary .
Suppose . If , [F2] gives ; if , its assigned exponent is . If , the unit-circle result [F7] gives , so its power-basis coefficients have absolute value at most . If , [F7] gives , with the same coefficient bound. In the remaining case both entries are nonzero. The embedding bounds from step 1.2 and [F4] give nonnegative exponents for both. If either exponent is positive, the unequal-exponent contradiction in step 1.2 forces them equal, so both are at most ; if neither is positive, both are . Thus [F4] bounds every numerator coefficient by . The exact enumeration in the certificate contains all such columns: it finds possible entries and exactly normalized columns, with squared-entry exponents occurring times. Exact breadth-first search from using reaches every one of the columns; the stored shortest words have maximum length and the search visits states. Every stored word is re-evaluated by exact rational coefficient arithmetic. Therefore the table prepares every base column.
The certificate is generated by the exact arithmetic program research/quantum-computing-algorithms-60-2026-10-15-batch-13-finite-certificates.py; the complete rows and all residue/boundary counts are in the adjacent JSON. The bounds in step 2.1 and step 2.2 and step 2.3 prove the enumerated finite sets contain every required case, so the checks prove the descent and base assertions rather than sampling them.
Remarks
The base table is a state-preparation table. For a full unitary, prepare its first column, then use Unit-modulus elements of the dyadic cyclotomic ring to correct the remaining determinant phase by a power of .
Unresolved supplier checks
The local finite descent and base table are complete. The actual QC07 exact H/T matrices and QC09 circuit-semantics body were inspected; the matrix products and chronological word order agree with this proof. This is interface reconciliation, not acceptance of those draft suppliers.
Every Rz epsilon region contains an exact norm-solvable grid point
Statement
For and , there are such that Thus the scaled grid has at least one candidate whose norm equation is solvable.
Facts & Assumptions
Given: The exact Clifford+T one-qubit matrices, , the automorphism , , and . For scalar , .
Determinant-one Clifford+T words are dense in SU(2): every target has an exact determinant-one Clifford+T word within any positive operator-norm error.
Dyadic cyclotomic ring for Clifford+T synthesis: is a subring of .
Clifford+T gate library and exact matrices: the exact displayed matrices are the one-qubit generators.
The nontrivial real-conjugation automorphism of the eighth cyclotomic field: is a field automorphism of that preserves and commutes with complex conjugation.
The exact operator-norm epsilon region for determinant-one Rz candidates: for , the operator-norm error bound is equivalent to the displayed real-part condition.
Proof
By [F2,F3], the entries of lie in . Also and , so every entry of lies in . The ring is closed under complex conjugation because . Apply [F1] to and choose an exact word with and . Every entry of lies in because each generator has entries in and products of matrices over a subring remain over that subring. Let the first column be . It is a unit vector; its orthogonal unit vector is therefore the second column up to a unit scalar . The determinant of the resulting matrix is , so forces . Hence and .
Applying to preserves products and fixes ; [F4] also makes it commute with the adjoint. Thus is unitary, and its first-column norm gives . The original first column similarly gives , so .
The strict approximation in step 1.1 and [F5] imply , hence the required weak inequality. Together with step 1.1 this gives a grid candidate and an exact solution of its norm equation.
Unresolved supplier checks
The actual QC12 projective-density proof and its Pauli-axis suppliers were inspected. Its normalized lifts are used only for projective density; the exact scalar phases are retained in the local matrix argument. This records interface reconciliation, not approval of those supplier drafts.
Determinant-one reduction for optimal Rz approximation
Statement
Set . If , every exact one-qubit Clifford+T matrix with has determinant one. If , there is a determinant-one Clifford matrix of T-count zero meeting this error bound. Consequently, for every positive precision the minimum T-count over all feasible matrices is attained among determinant-one matrices.
Facts & Assumptions
Given: A real angle , positive precision , and the on-the-nose error and T-count conventions of the approximation problem.
Determinants of one-qubit Clifford+T words are eighth roots: every exact one-qubit Clifford+T matrix has determinant , where .
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely: a normal complex matrix admits a unitary diagonalization.
Clifford+T gate library and exact matrices: and are Clifford matrices, and scalar Clifford phases cost no T gates.
Ancilla-free Rz approximation problem and T-count: ; the T-count is a nonnegative integer.
For same-sized finite square matrices over a commutative ring, : determinants multiply.
Determinant-one Clifford+T words are dense in SU(2): every SU(2) target has an exact determinant-one Clifford+T word within any positive error.
Integer part: for every real there is exactly one integer with : for every real , is the unique integer with .
Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on and cosine is strictly decreasing on .
, , and : and for real .
is a bijection from onto the real unit circle and [F10]: every unit complex number can be written as for a real .
Parity and the Pythagorean identity for sine and cosine: and ; in particular, .
The derivatives of sine and cosine are cosine and minus sine and A function differentiable at is continuous at and The mean value theorem, as the case of Cauchy's: for continuous on with and differentiable on there is with : and differentiability makes sine continuous; for each , the mean value theorem on gives for some . By [F12], .
Proof
Suppose and put . The matrix is unitary. By [F2] it has an orthonormal eigenbasis. For a nonzero eigenvector with eigenvalue , norm preservation gives , so ; by [F11] write the two eigenvalues as with . Unitary multiplication preserves [F3], and the norm of a diagonal matrix is the largest modulus of its entries, so . Since by [F10]. Since , [F12] gives and ; [F9] makes this strictly increasing in . Thus implies . Hence . By [F1,F6] and , . The only eighth root with an argument strictly between and is ; thus .
Suppose . Set by [F8]. Then , so . Set . It is a Clifford matrix with determinant one and T-count zero by [F4]. The two diagonal entries of have the same modulus by [F9, F10], and by the case hypothesis. To check the domain used here, [F13] gives ; [F9, F12] give , and [F14] gives . Thus . [F3] therefore gives the required error bound. At equality the weak inequality still holds.
For , step 1.1 says every feasible matrix already has determinant one. For , step 1.2 attains T-count zero, which is minimal by nonnegativity [F5]. The feasible set is nonempty by [F7], applied with error smaller than . Its T-counts form a nonempty subset of the nonnegative integers, hence have a least element attained by a feasible word. Thus restricting to determinant-one matrices never changes this attained minimum.
Certified capped norm attempts succeed on prime residuals
Statement
Let be a grid candidate of least denominator exponent , and put , in reduced form. Let be the calibrated prime-input binary-work bound of Efficient exact cyclotomic norm solving with a supplied integer factorization. The capped prime-attempt procedure in Cyclotomic scaled grid and norm-equation solver, with solver budget , has the following properties:
- Every accepted output is an exact solution .
- On every input its work is polynomial in , including the final exact verification, with no primality promise on .
- When is prime, its success probability is at least . When , the explicitly complete zero/unit branches succeed.
For a candidate stream with exponent profile , suppose its arithmetic data are given an idealized stochastic model in which the indicators of prime or zero/unit norm numerators are independent, with . Draw fresh independent solver bits, independently of all arithmetic data. If is the first successful call, then Thus these attempts have the same stopping-tail bound as independent events with probabilities . Independence of the actual successful-call events is not asserted or needed. This last assertion concerns the explicit stochastic model; the numerators of an actual fixed input have fixed primality, while the first three assertions above hold for each such input.
Facts & Assumptions
Given: The calibrated polynomial budget bound , the exact algebraic input, and independent random bits for each call. For the last assertion, let contain all modelled arithmetic data. The indicators are functions of and have the stated independent marginal model, but the remaining numerical data may have arbitrary correlations. Solver-bit streams are independent of and of one another; the enumerator ordering uses none of these solver bits. Conditioning on fixes primality, so no nondegenerate prime probabilities are asserted after that conditioning.
Cyclotomic scaled grid and norm-equation solver defines the capped prospective single-factor execution and accepts only a verified exact norm certificate. An invalid or aborted computation only skips its candidate.
Efficient exact cyclotomic norm solving with a supplied integer factorization proves that the construction terminates almost surely, is complete with a valid supplied factorization, and supplies the calibrated prime-input bound , as well as expected polynomial bit cost on bounded grid inputs.
Prime norm numerators congruent to one modulo eight are solvable gives solvability when or is prime congruent to one modulo eight.
Proof
The exact certificate check in [F1] is a comparison of the four rational power-basis coefficients of and . Equality of these coefficients is equality in the field, so acceptance always proves the required equation. On a composite input no field property of a proposed residue quotient and no NO_SOLUTION message is used as evidence: a failed operation, negative outcome, or work-cap interruption causes only a skip.
The construction is interrupted after binary operations, regardless of whether its proposed prime factor was valid. Every generated bit string then has length bounded by the input length plus . The grid-input bound of [F2] makes its input length polynomial in . A fixed-degree rational-coefficient multiplication and equality check therefore takes polynomial work in , by schoolbook integer multiplication and division. Since is a specified polynomial, total work including exact certification is polynomial on every input.
If is prime, the proposed one-factor factorization is valid, and [F3,F4] make its norm equation solvable. Let be the binary work of the uncapped construction on this input. By the calibrated bound [F2], . The elementary inequality gives . Whenever , [F2] returns an exact solution and step 1.1 accepts it. Thus success probability is at least . The zero case is explicit in [F1], and [F4] plus the complete factored empty-list branch gives the numerator-one case.
Condition first on all arithmetic data . Each call is then a deterministic function of its own input and its fresh solver bits, so its success events are independent under this conditional probability. By step 2.2 its conditional success probability is at least ; this also holds for the immediate zero/unit branches. Consequently . Average this inequality over . The indicators, rather than the successful-call events, are independent in the stated model; hence . The lower bounds on give the displayed joint-failure estimate. Correlated numerical inputs can correlate the unconditional call successes, but cannot invalidate this estimate.
Exact single-qubit Clifford+T ring characterization
Statement
A matrix is exactly the matrix of a finite one-qubit Clifford+T word if and only if all four entries of lie in . This is a single-qubit statement; no multi-qubit exact ring characterization is asserted.
Facts & Assumptions
Given: The exact circuit matrices and matrix-product convention of the gate-library and circuit-semantics definitions.
Clifford+T circuit entries lie in the dyadic cyclotomic ring: every finite Clifford+T circuit matrix has entries in .
Normal form of a single-qubit ring unitary: a ring-entry unitary has first column and determinant phase , with second column .
Clifford+T denominator descent and finite base table: every normalized ring column reduces by an step from squared-entry exponent to , and every column with has an exact H/T preparation word.
Unit-modulus elements of the dyadic cyclotomic ring: the elements satisfying are exactly .
Proof
If is a finite Clifford+T circuit matrix, [F1] puts all its entries in .
Conversely, let have entries in . By [F2] its first column is a normalized column. Apply the descent in [F3] repeatedly while . Each step replaces the current matrix by and decreases the nonnegative integer by exactly one; hence after finitely many steps the first column lies in the base regime.
By [F3], the base column has a word with . Reversing each descent step by prepending its recorded gives a word with first column equal to the original . The unitary has first column , so orthogonality of its columns makes it for a unit scalar . Its entries lie in , since have entries in that ring. Therefore [F4] gives , and is a finite Clifford+T word.
Both implications are proved. The proof constructs the converse word with only exact coefficient operations and the finite base lookup; no approximation, ancilla, or multi-qubit inference is used.
Unresolved supplier checks
The actual QC07 gate matrices and QC09 circuit-semantics body were inspected; their exact matrix and chronological word interfaces agree with the local proof. The theorem remains limited to one qubit; no multi-qubit ring characterization is inferred.
Exact single-qubit Clifford+T synthesis
Definition
Input a matrix as four canonical elements of . Perform the following exact procedure.
- Test by rational coefficient arithmetic. If it fails, return
INVALID. - Set and an empty list . While , test in that order and choose the first for which . Append to and replace by .
- Look up the first column of in the complete base-column table at
research/quantum-computing-algorithms-60-2026-10-15-batch-13-finite-certificates.json. Let be its stored H/T preparation word. Compute exactly and find with . - If in reduction order, form the exact matrix-word factorization For the chronological output, emit first, then the stored chronological gate list for , then for emit followed by . The QC09 semantics put later gates on the left, so this list has the displayed matrix product.
- Reduce this word by the exact stack rewriting in Reduced Hadamard words and their exact denominators: move Pauli factors to the right, combine diagonal powers modulo eight, and replace each by its zero- or one-H Clifford expression until all interior diagonal powers are odd. Retain the scalar phase produced by these identities in the exact output. Emit even powers as factors and odd powers as one or with free factors, then return the reduced factors in reverse order as the chronological list.
The denominator descent and table completeness are the mathematical properties in Clifford+T denominator descent and finite base table and Exact single-qubit Clifford+T ring characterization. The finite lookup table uses exact rational coefficients; no numerical equality tolerance is used.
Unresolved supplier checks
The current QC07 gate alphabet and QC09 circuit-semantics bodies were inspected. Their exact matrices and chronological order agree with the procedure; no separate interface hold remains.
Ancilla-free Clifford+T Rz approximation
Definition
Inputs are exact reals and , exact-real arithmetic and comparisons for the grid predicates, and the exact integer part operation needed to compute ; the integer part is the one defined in Integer part: for every real there is exactly one integer with . Also choose a norm mode: COMPLETE uses either a valid full integer-factorization oracle or the complete finite-search norm solver; BOUNDED uses the calibrated capped-prime attempt only. Supply a total candidate limit , defaulting to ; counts grid candidates on which a norm call is started. Output is either a finite chronological Clifford+T word or TIMEOUT. No bit encoding for arbitrary reals is implicit. In the randomized modes use an independent random stream for the grid iterator and fresh independent streams for each randomized norm call; candidate order depends only on the grid stream, not on norm-call outcomes.
Let .
- If , compute the nearest integer , with ties rounded upward, and return the chronological word with scalar phase first and second, omitting identity factors. Reduce the scalar exponent modulo and the exponent modulo . It has T-count zero.
- Otherwise . Set and enumerate from Cyclotomic scaled grid and norm-equation solver in increasing denominator exponent. Before starting a norm call for a candidate, if return TIMEOUT; otherwise increment . Compute . In COMPLETE mode invoke the selected complete norm solver, obtaining a valid complete integer factorization when that solver requires one. In BOUNDED mode use only the calibrated capped-prime attempt, which accepts an exact certificate and otherwise may return FACTOR_TIMEOUT.
- If the norm solver returns FACTOR_TIMEOUT or NO_SOLUTION, continue to the next candidate. For each returned with , form and .
- Run Exact single-qubit Clifford+T synthesis on both matrices. Return the word with smaller exact T-count; break ties by lexicographic gate word.
The exact grid-to-error equivalence is proved in The exact operator-norm epsilon region for determinant-one Rz candidates. The unbounded factoring-oracle mode uses the complete efficient solver from the norm procedure, or the finite alternative Constructive decision of the dyadic cyclotomic norm equation. Successful termination (almost surely for the randomized efficient mode) under the stated terminating exact-real comparisons is proved in The Rz approximation procedure is correct when it returns ↗. A finite-budget call can return TIMEOUT. The zero-T branch is the construction in Determinant-one reduction for optimal Rz approximation. The complete finite-search norm mode gives no polynomial arithmetic-time guarantee.
H-count and T-count optimality of exact Clifford+T synthesis
Statement
Use , with scalar phase ignored. Count each as one Hadamard and each or as one T gate; have zero H/T count. Let and be the separate minima. For unitary with , the exact synthesis algorithm, including its final reduced-word pass, attains both minima and
where are any integers satisfying . Such integers exist. Equivalently, if the reduced word has endpoint diagonal exponents , then . With canonical binary coefficient encoding the algorithm uses ring operations and bit operations, where is the minimum total H/T count.
More generally, every reduced word with Hadamard gates and endpoint diagonal exponents is T-optimal, with , including the cases.
Facts & Assumptions
Given: The gate family and costs in the statement, and canonical exact coefficient input.
Reduced Hadamard words and their exact denominators supplies a linear-time, resource-nonincreasing exact reduction and its H-optimality invariant.
Exact single-qubit Clifford+T synthesis uses denominator descent, a fixed finite base table, and the final reduction pass.
Clifford+T denominator descent and finite base table supplies one-step descent and complete finite base preparation.
Finite coefficient bounds for the scaled cyclotomic grid bounds scaled numerator coefficients by when all embeddings of the entry have modulus at most .
Squared entry denominator bound gives .
Proof
By [F2,F3], before the final reduction the compiler has an exact word for . By [F1] its final reduced word is exact and H-optimal, and makes its H count . Write its endpoint exponents and its trailing Pauli factor as in [F1]. Each of the odd interior powers costs one T, so its T count is , where .
Every Clifford block generated by reduces by [F1] to at most one H: all diagonal exponents remain even during that reduction. Splitting any word containing T gates into Clifford blocks therefore proves for every represented . This argument applies to equally.
There are descent iterations and a constant-size base lookup. Each trial uses boundedly many coefficient additions, sign permutations, multiplications by fixed ring constants, and denominator tests. At every iteration all embeddings of the current unitary remain unitary, so all embedded entries have modulus at most one. For a positive squared-entry exponent, the complementary squared norm has the same exponent: subtracting its primitive numerator from the positive power of leaves it primitive. Thus [F5] bounds every entry exponent by ; the base regime is bounded by [F3]. By [F4] all numerator coefficients have bits. Denominator tests need no integer multiplication: for , let be the minimum of the binary trailing-zero counts of its nonzero coefficients, and put . Its -valuation is , where exactly when both opposite-coefficient sums of are even. Indeed is not divisible by , so it can contain at most one factor . For the resulting primitive numerator , its norm has zero or one factor by [F5]; this factor occurs exactly when is even, since the rational coefficient of is . These parity and trailing-zero scans take bit operations. Every descent trial therefore costs bits and boundedly many ring operations, with coefficient valuations counted as linear binary scans.
Choose and with and odd. Then has an odd-interior reduced word with H gates: commute past using the identities in [F1], which changes only the sign of and adds a free terminal when . Its H count is therefore minimal. Conversely if either parity condition fails, the adjacent even-interior pair reduces, giving strictly fewer than H gates. Thus the extension condition is equivalent to and .
Apply step 1.2 to the extended matrix . Multiplication by these endpoint factors gives , while gives . Consequently . Step 1.1 attains this bound, proving simultaneous optimality and both formulas. The same argument proves the endpoint formula for every reduced word with at least one H, since its extension still has at least three H gates and [F1] applies.
The initial word has gates and its stack reduction is linear by [F1], retaining only exponents modulo eight and a scalar exponent modulo eight. The preceding bounds give ring operations and bit operations overall. Any word's total H/T count is at least ; the output has by step 1.1. Hence , proving the claimed bounds.
Remarks
Appendix B prints with the same extension condition. Its endpoint parities are complemented, so that printed formula must be corrected as above. For example has ; odd extend it to a reduced five-H word. The printed formula would give . No optimal base-circuit table or unexpanded endpoint case analysis is needed for the local proof.
The exact single-qubit compiler returns the input matrix
Statement
For every unitary , the procedure in Exact single-qubit Clifford+T synthesis terminates and returns a finite one-qubit Clifford+T word whose exact matrix is .
Facts & Assumptions
Given: A unitary , exact rational coefficient arithmetic, the descent procedure, and the finite base-column certificate.
Exact single-qubit Clifford+T synthesis: the procedure tests unitarity, repeatedly applies for a lowering the squared-entry denominator exponent, looks up a base-column word , and returns the matrix factorization determined by the recorded values and .
Clifford+T denominator descent and finite base table: each normalized -column above exponent has a reducing , and the certificate supplies an exact H/T preparation word for every normalized column in the base regime.
Unit-modulus elements of the dyadic cyclotomic ring: if and , then for some .
Smallest square root of two denominator exponent: the squared-entry statistic is , with .
Clifford+T gate library and exact matrices: have the displayed exact matrices, and the matrix of a chronological word is the product with later gates on the left.
Denotational semantics of a finite layered circuit: for chronological layers , the circuit matrix is .
Reduced Hadamard words and their exact denominators: the final reduction preserves exact matrix equality, retaining its scalar phase.
Proof
Initially with . If a loop iteration records and sets , then . Therefore, after reductions, the recorded sequence satisfies .
At every iteration, remains unitary with entries in , since the matrices in [F5] are unitary over . If its exponent exceeds , [F2] ensures that the finite search over finds a value reducing that integer exponent by exactly one. Thus the loop terminates after finitely many iterations with exponent at most .
Let be the table word for the first column of the terminal . Then is unitary with first column , hence is for a unit scalar . Its entries lie in , so [F3] gives for some . Consequently .
Substituting this identity into step 1.1 yields exactly the matrix factorization returned in [F1]. The algorithm emits its factors from right to left as a chronological gate list; [F6] says later gates multiply on the left, so that list has the displayed matrix. The final reduction preserves this matrix by [F7], including its scalar factor. Hence the returned word implements exactly.
Unresolved supplier checks
The actual QC07 gate matrices and QC09 chronological circuit semantics were inspected. The emitted factor order agrees with the supplier convention. The local exact synthesis proof and finite table are complete; this records interface reconciliation, not independent acceptance of QC07/QC09 drafts.
The Rz approximation procedure is correct when it returns
Statement
For and , every word returned by Ancilla-free Clifford+T Rz approximation satisfies , provided each accepted norm output is exact and the exact compiler returns the requested matrix. When , the algorithm returns its direct zero-T Clifford word. When , it returns only after the scaled-grid and exact norm-solver branch succeeds. If its total candidate limit is unbounded, either the complete finite-search norm mode is used or the complete factorization-based mode receives valid factorizations in finite time, and the required exact-real comparisons terminate, then it terminates for every such input. With the efficient randomized factored norm mode and independent random bits it terminates with probability one under those assumptions. A finite candidate limit can return TIMEOUT.
Facts & Assumptions
Given: The exact Rz approximation procedure, the exact epsilon-region criterion, and the finite coefficient bound for each denominator layer.
Ancilla-free Clifford+T Rz approximation: if it returns the direct zero-T Clifford; otherwise, for a candidate and an exact solution , it forms and , then returns an exact compilation of one of them.
The exact operator-norm epsilon region for determinant-one Rz candidates: a determinant-one matrix of the displayed form is within of exactly when .
Every Rz epsilon region contains an exact norm-solvable grid point: for every there exists a grid candidate and an exact solving its norm equation.
Finite coefficient bounds for the scaled cyclotomic grid: every grid candidate at fixed exponent has coefficients in a finite explicit box, and every candidate has a finite nonnegative exponent.
The exact single-qubit compiler returns the input matrix: the exact compiler returns a word with matrix exactly the requested unitary.
Clifford+T gate library and exact matrices: is diagonal and commutes with .
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm is the maximum over unit vectors.
In the correctness clause, every successful norm-solver outcome used by the procedure supplies an exact satisfying .
Constructive decision of the dyadic cyclotomic norm equation proves that the finite-search norm mode terminates, decides solvability exactly, and returns an exact solution whenever one exists.
Complete scaled-grid enumeration with expected polynomial prefix cost proves complete, nonduplicating increasing-exponent enumeration, with finite layer completion for every sequence of iterator random bits.
Efficient exact cyclotomic norm solving with a supplied integer factorization proves that the efficient norm mode is exact and complete and terminates almost surely on every valid algebraic input with its supplied factorization.
Determinant-one reduction for optimal Rz approximation: for every there is a determinant-one Clifford word of T-count zero within of .
In the termination clause, any requested factoring oracle returns a valid factorization in finite time, the exact integer-part operation used by the direct branch terminates when that branch is taken, and the exact-real comparisons required by the grid enumerator terminate with correct answers.
Proof
If , the direct branch returns the zero-T Clifford word whose error bound is proved in [F11]. Suppose instead . If the procedure returns, its successful candidate satisfies the scaled-grid real-part inequality by construction and [A2] gives the exact norm equation. Thus ; multiplying the displayed matrix by its conjugate transpose gives and . Therefore is in the form required by [F2], which gives .
Since and are diagonal, they commute. By [F7], unitary left and right multiplication preserve the operator norm: the left factor preserves every vector norm, and the right factor bijects the unit sphere to itself. Thus . Thus both compiler inputs meet the same error bound.
If , [A1] makes the direct integer-part operation terminate, so the zero-T word is returned. Suppose . Then , and [F3] gives a solvable grid candidate with some finite exponent . By [F4], each layer from through has finitely many coefficient vectors. The finite-search alternative checks them all; the default iterator enumerates precisely the candidates and finishes each preceding layer by [F9]. By [F8], each norm call terminates and it succeeds when that candidate is reached; the finitely many comparison and oracle calls terminate by [A1]. Therefore the unbounded loop terminates after finitely many earlier layers and candidates. A finite candidate limit may instead cause TIMEOUT before this point.
The exact compiler conclusion [F5] makes each returned word's matrix equal its selected input. Since the procedure chooses between and , step 2.1 proves the returned word satisfies the required bound.
For efficient factored mode, take a fixed exponent for one solvable candidate from [F3]. There are only finitely many candidates in layers through , independent of their within-layer order. The iterator finishes each preceding layer for every random-bit sequence by [F9]. On each of these finitely many algebraic inputs, the norm call terminates with probability one by [F10]. With fresh independent solver bits this remains true conditional on the history, so the finite union of nontermination events has probability zero. On its complement the same candidate argument as in step 2.2 gives successful return.
Remarks
The finite-search mode has no polynomial runtime assertion. The efficient factored mode has almost-sure termination and its separate proved polynomial expected algebraic cost. A finite factor-attempt budget may skip every solvable candidate; this theorem does not infer termination with a circuit from that branch.
Denominator exponent and optimal T count for determinant-one unitaries
Statement
Let with . Let be the least nonnegative integer such that . Count T gates over up to global phase. If , each of and has optimal T count in , and
If , both counts are zero. If are nonzero and , their individual least exponents both equal .
Facts & Assumptions
Given: The displayed determinant-one matrix, exact gate matrices, and the stated cost model.
Exact single-qubit Clifford+T ring characterization supplies an exact Clifford+T word for every unitary over .
Reduced Hadamard words and their exact denominators gives an exact reduced word with H gates and odd interior powers, and squared-entry exponent for or for .
H-count and T-count optimality of exact Clifford+T synthesis establishes T optimality of every reduced word with , with count for endpoint exponents .
Squared entry denominator bound gives when .
Unit-modulus elements of the dyadic cyclotomic ring says a unit-modulus element of is a power of .
Proof
Reduce an exact word supplied by [F1] as in [F2], retaining its scalar . When , the matrix is monomial with unit-modulus nonzero entries, so [F5] gives . Since its determinant is one, its diagonal exponent is even: its determinant is . Hence the matrix uses no T gates, and neither does its conjugate by , which changes its monomial exponent by or . When , every entry has modulus , and [F4] gives exponent for every entry; thus .
For , set . All four squared moduli have exponent : they are either or , and the latter has primitive numerator whenever the former has positive least exponent, since subtracting from cannot make its primitive numerator divisible by . By [F4], every entry therefore has exponent , so . Together with step 1.1, every case with has , except that was treated separately.
Write . The exact reduced word has determinant , so is even. Its optimal T count is by [F3]. Conjugating by changes the endpoint exponents to and and leaves every odd interior exponent unchanged; hence both endpoint parities flip. The conjugate is still reduced with the same and has optimal count . If is even, the determinant parity forces , giving both counts . If is odd, it forces or , giving the two counts and . This includes . Together with the monomial case in step 1.1, all assertions follow.
Remarks
The common nonnegative exponent handles without assigning a negative or infinite matrix exponent. When are nonzero and , the proof shows it is also the individual least exponent used in the usual synthesis formula. This provides the denominator/T-count relation locally rather than invoking a normal-form figure as a proof.
T-count guarantees for Clifford+T Rz synthesis
Statement
For the ancilla-free, on-the-nose problem with , the procedure first returns its zero-T Clifford whenever . In the remaining range , it has the following guarantees with its exact-real comparison and norm-solver assumptions.
- In complete mode with a factoring oracle and a complete factorization-based solver for , the first successful candidate yields a circuit of minimum T-count among all one-qubit Clifford+T circuits satisfying the operator norm bound. The direct branch for is also optimal because it has T-count zero.
- In bounded-factorization mode, for , under Ross–Selinger Hypothesis 8.3, interpreted quantitatively as [A1] below, if is the returned T-count and is the second-smallest T-count among non-equivalent feasible solutions, then the expected number of non-equivalent feasible solutions of T-count strictly below is , and as . Both expectations include the arithmetic-instance randomness of [A1]; is almost surely defined and integrable in this range. If is deterministic in the chosen model, its expectation is simply . For , the direct branch returns , so there are no feasible solutions of smaller T-count and the same mean bound is immediate whenever is defined.
- For , with the efficient iterator and calibrated capped-prime implementation specified below, the expected arithmetic-operation time is . In the range , the direct branch takes constant arithmetic work. These are not bit-time bounds for arbitrary unencoded real inputs.
Two determinant-one solutions are equivalent when their upper-left entries agree; the T-count of a class is the least count attained in that class. The nontrivial near-optimality assertion concerns the unbounded candidate stream, without a finite total candidate budget. The source's notation is used here only in the upper bound sense of its Proposition 8.8. In the explicit random-arithmetic model [A1], the second-best class is random as well, so its count must also be averaged. No lower bound relative to that class is asserted.
Facts & Assumptions
Given: The exact-real comparisons, the procedure in Ancilla-free Clifford+T Rz approximation, and the displayed input.
The Rz approximation procedure is correct when it returns gives correctness for all and successful termination in COMPLETE mode with an unbounded candidate limit, valid complete factorizations when required, and terminating exact-real operations (almost surely for the efficient randomized norm mode).
Determinant-one reduction for optimal Rz approximation: below all feasible matrices have determinant one; at or above a determinant-one Clifford solution of T-count zero exists.
Denominator exponent and optimal T count for determinant-one unitaries supplies the following interface: for a feasible candidate of least exponent and any solution , the smaller optimal T-count of and is , and no matrix in its -class has count below .
Exponent growth of the Rz scaled grid supplies the increasing distinct candidate sequence, , and .
Size and residue of the Rz candidate norm integer: a candidate's reduced integer is nonnegative, is zero or , and satisfies . Its two disk inequalities also give for the residual .
Prime norm numerators congruent to one modulo eight are solvable: double positivity and prime or imply solvability of the norm equation.
Conditional stopping bounds for prime-tested Rz candidates proves all fixed stopping-time moments and the logarithmic expectation bound from a joint-failure product estimate; independence of actual solver successes is not required.
Complete scaled-grid enumeration with expected polynomial prefix cost gives the default iterator's finite-layer completion and all fixed prefix-work moments. The second moment through global outputs is polynomially bounded in , , and : completed layers contain at most earlier outputs and at most layers, while the current layer has the displayed prefix-moment bound.
Efficient exact cyclotomic norm solving with a supplied integer factorization gives a complete expected-polynomial solver with a valid supplied factorization, including polynomial cost in the candidate exponent on these bounded grid inputs.
H-count and T-count optimality of exact Clifford+T synthesis gives exact optimal compilation with polynomial coefficient cost. The fixed small-exponent base cases are covered by the same compiler's finite lookup and reduction.
Certified capped norm attempts succeed on prime residuals proves that the calibrated capped prospective prime attempts accept only exact certificates, have polynomial cost on every candidate, and succeed with probability at least on an actual prime numerator. Zero/unit numerators have explicit complete branches. Conditioning on all arithmetic data makes the calls independent in their fresh solver bits; averaging gives the joint-failure product bound from independent modelled prime indicators, without asserting unconditional independence of the actual successful calls.
The nontrivial real-conjugation automorphism of the eighth cyclotomic field: is a field automorphism of preserving . In particular it is injective: applying its inverse to gives .
Quantitative prime model: clauses 2--3 adopt an idealized stochastic model of candidate arithmetic in the sense of Ross--Selinger Hypothesis 8.3. The iterator and solver coins are drawn independently of the underlying modelled arithmetic instance, and solver streams are independent of one another. For each fixed enumerator/tie-choice framework, the model assumes that the indicators of prime or zero/unit norm numerators are independent, with probabilities , for a constant uniform in the input and tie choices. Other numerical data can be correlated. This is a model assumption before conditioning on all numerical candidate data; after those data are fixed, primality is fixed too. In particular, fixing an actual input and drawing iterator bits does not make its integers random or prove this hypothesis. The expectations in clauses 2--3 refer to this explicit idealized arithmetic model together with the algorithmic coins. The uniform lower bound is the quantitative reading of Hypothesis 8.3 used here; [F5] gives for . Zero/unit cases succeed outright. The model is not an established number-theoretic theorem about each deterministic input stream.
For the probabilistic and runtime clauses use the efficient scaled-grid iterator and the calibrated capped-prime branch of the stated procedure, with fresh independent bits at each norm call and no finite total candidate limit. Bounded mode makes no extra factor-suggestion attempt. Complete mode instead supplies valid complete factorizations and uses the complete efficient solver. Every returned matrix is compiled by the optimal local exact compiler. The range returns before either iterator or norm solver is called; its exact integer-part operation is counted as one arithmetic operation.
Proof
If , the direct branch from [F2] returns a feasible zero-T Clifford, which is globally optimal by nonnegativity of T-count. Suppose instead . Then [F1] gives a first solvable candidate in COMPLETE mode. Since the stream is ordered by exponent and the solver is complete, its exponent is the least exponent of any solvable candidate. By [F3], taking the smaller compiled count returns , the minimum across determinant-one feasible classes, because is nondecreasing. By [F2] this is the global minimum.
If , the direct branch returns , so no feasible solution has T-count below and the expected lower-count is zero; also whenever is defined. Suppose . For the bounded-factorization branch let be the first successful mandatory prime-attempt index, using preassigned fresh bit streams along the candidate sequence. For each enumerator/tie-choice framework, condition first on all its arithmetic data . By [F11], . Averaging over the arithmetic model [A1] gives . This uses independence of the modelled indicators only; actual successful calls may be correlated after averaging over numerical inputs. The procedure succeeds no later than . Apply the joint-failure version of [F7], with replaced by : is finite almost surely, , and . All constants are uniform in the iterator tie choices, so these bounds survive averaging over its coins.
By [F3], the returned count satisfies . Every feasible class of count below therefore has exponent strictly below , since its class minimum is and is nondecreasing. By [F2] these classes cover all feasible solutions. Distinct classes have distinct candidates and occur before index , so their number is at most . Taking expectations proves the lower-count solution bound.
The model has infinitely many prime or zero/unit candidates almost surely. Indeed, for each integer , the growth bound [F4] implies that for every sufficiently large , . These block lower bounds imply . Independence in [A1] gives . Thus with probability one good indices occur after every finite , so there are infinitely many. By [F5], each candidate has . If , then in the field gives or . The latter also implies by [F12], so the solver returns . If or is prime, then makes both embeddings strictly positive; for prime , [F5] gives , so [F6] makes the norm equation solvable. Distinct candidates give distinct -classes, so the best and second-best feasible classes exist almost surely. Choose the best and second-best feasible classes, breaking equal-count ties by increasing exponent, and let their exponents be and . Since their class counts are and is nondecreasing, this choice has . The two classes are distinct candidates, so . By [F3,F4], . To check integrability of the benchmark, use the deterministic bound from [F4], and let be the second index with . If each of the blocks and contains a good index, then . By [A1,F4] and the same failure-product bound, The tail comparison in [F7] gives finite moments of . The first two good indices give two feasible classes, so by [F3], and [F4] makes integrable. Also is integrable by step 1.2. Taking expectations of the pathwise inequality and applying step 1.2 now gives , which is the stated asymptotic bound.
If , the direct branch takes constant arithmetic work, including one exact integer-part operation and reducing exponents modulo . Suppose . Write for the iterator work through its th global candidate, with no norm calls interleaved. The exponent sequence depends only on the number of distinct candidates in each layer, so it is unchanged by the iterator's randomized tie order. By [F4,F8], for some fixed , . The joint-failure estimate of step 1.2 and [F7] give the stopping tail uniformly for each enumerator/tie-choice framework in [A1], hence also after averaging over the independent iterator coins: , with and fixed . Cauchy--Schwarz, applied separately to each event , therefore gives . For completeness, the product bound follows by expanding the nonnegative expectation of with and ; if either second moment vanishes its term is zero. This sum is polynomial in . Indeed, for the tail proof of [F7] bounds its exponential factor by ; bound logarithms by powers of and compare the resulting polynomial-times-exponential sum with its integral, using . The part is also polynomial. Thus no independence between iterator delay and is assumed.
In capped mode [F11,A2] bound all candidate work through by , plus the successful exact compilation. In oracle mode take to be the first prime/zero/unit model index, which has the same tail and moment bounds and is solvable by [F6]. Then [F9] supplies the same bound in conditional expectation: condition on the preceding history before each call, and sum its uniform polynomial expected bound over the calls that are reached. Integer-factor oracle calls cost one operation; their factorization outputs have polynomial length by [F5]. The stopping bounds [F4,F7] make the expectation of these polynomial expressions finite and polynomial in . By [F3,F10], successful exact compilation also has polynomial cost in : its entry denominators are at most and squared-entry exponent at most , with only finitely many small cases. Combining this with step 2.3 proves the expected polynomial arithmetic runtime for the actual efficient implementations. It includes charged exact-real arithmetic and comparisons, but supplies no bit-time guarantee for unencoded real parameters.
Remarks
The complete coefficient-box iterator and divisor-search norm solver remain valid alternatives for completeness. Their costs are not used in the expected polynomial bound. Capped prospective executions never infer unsolvability from an unproved prime promise: only a verified exact norm certificate is accepted. The candidate-primality model remains an explicit number-theoretic hypothesis.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Kliuchnikov, Maslov, and Mosca, Fast and efficient exact synthesis of single qubit unitaries generated by Clifford and T gates
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Appendix C, Lemma C.12 and Remark C.22
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations
- Kliuchnikov, Maslov, and Mosca, Practical approximation of single-qubit unitaries by single-qubit quantum circuits
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Appendix C
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Section 4
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Appendix A
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Theorem 6.2 and Appendix C
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Sections 4–5 and Appendix A
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Proposition C.26
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Lemmas 5.23 and 5.24
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Lemmas 8.4 and 8.5 and Appendix D
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Theorem 5.18 and Propositions 5.21–5.22
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Hypothesis 8.3 and Proposition 8.8
- de Wolf, Quantum Computing: Lecture Notes
- Childs, Lecture Notes on Quantum Algorithms
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Lemma 7.2
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Algorithm 7.6 and Proposition 8.8