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.
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.
Depends on
- Exact randomized modular square roots in expected polynomial time
- Constructive cyclotomic factorization and real unit squares
- Constructive decision of the dyadic cyclotomic norm equation
- First supplement: $(-1/p)=(-1)^{(p-1)/2}$
- Second supplement: $(2/p)=(-1)^{(p^2-1)/8}$
- The Legendre symbol is multiplicative for all integer numerators
- For every prime $p$, the two operations on $\mathbb{Z}/p$ make it a field
- For a nonconstant $p$ in $F[x]$, the ideal $(p)$ is maximal and $F[x]/(p)$ is a field exactly when $p$ is irreducible
Used by
Dependency tree · two levels
30 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Ross and Selinger, Optimal ancilla-free Clifford+T approximation of z-rotations, Theorem 6.2 and Appendix C (standard reference, not scraped)