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 coherent amplitude-grid rounding
Statement
For every integer , put . There is a deterministic uniformly generated finite reversible circuit with the action
for every -bit integer and every -bit target , where is an integer satisfying
Circuit generation time, gate count in , CNOT and Toffoli, serial depth, and clean workspace are all polynomial in . The identity holds on arbitrary coherent inputs and with finite reference registers. Its actual inverse and coherent controls have the same polynomial resource order. The algorithm uses only bounded exact integer/rational arithmetic with fixed loop counts depending on ; it performs no real equality test or equality-dependent precision refinement. The output encodes the rational by its numerator and the known fixed denominator.
Facts & Assumptions
Given: , , and a -bit input .
The principal arctangent has derivative and its integral formula. (Principal arctangent: derivative, integral, power series, and the Gregory–Leibniz series).
Principal inverse tangent uses the injective increasing tangent branch; tangent addition and doubling hold. (The principal inverse tangent , Tangent is a continuous strictly increasing bijection from onto , Addition and subtraction formulas for tangent, cotangent, secant, and cosecant on their exact domains).
Sine and cosine have their derivative, parity, Pythagorean and quarter-turn/cofunction identities. (The derivatives of sine and cosine are cosine and minus sine, Pythagorean and parity identities for all six trigonometric functions on their natural domains, Cofunction, supplementary, quarter-turn, and reflection identities for the six trigonometric functions).
The finite Taylor remainder is bounded by the derivative bound times . (A uniform derivative bound gives a uniform Taylor remainder bound).
The real mean value theorem controls increments by a first-derivative bound. (The mean value theorem, as the case of Cauchy's: for continuous on with and differentiable on there is with ).
A finite Boolean DAG admits compute-copy-reverse with the declared linear gate/work overhead. (Reversible embedding of a Boolean circuit, Gate, workspace, and serial-depth costs of reversible embedding).
Proof
Put and . Principal monotonicity and give . The tangent double-angle formula gives , so and . A second doubling gives , hence . The subtraction formula gives All denominators are positive, and . Injectivity of the principal tangent branch therefore proves , or . This is a local proof of the needed Machin identity.
For and any integer , the exact finite geometric identity is Integrating from zero to and using the arctangent integral yields This is a finite bound, requiring no limit test during the algorithm. Set and form the exact rational Step 1.1 and the finite integral estimate above give because and . In particular : for the lower bound, gives ; for the upper bound, step 1.1 and give , and the displayed error is below .
Set , so , and set the even integer . Compute the exact rational sine polynomial Every derivative of sine has absolute value at most one. The Taylor remainder bound at degree gives Indeed the last factors in are at least , so , and . Finally gives the stated precision.
All rational computations above have polynomial bit length in . For the arctangent sum at , one may take as an unreduced common denominator , whose bit length is . Obtain each numerator by exact division of this known multiple, then sum with the indicated signs. A common denominator for is , still of bits; the same bound holds for its numerator. Therefore can be written with integer , of bits, without rational reduction.
The derivative bound for sine and the mean value theorem give . Put and . Step 3.1 implies and . Consequently Thus the exact rational square approximates the desired probability with absolute error strictly below .
If , set explicitly. Otherwise write the exact rational with integers and , without requiring cancellation to lowest terms. Use integer division to compute The floor rule is deterministic nearest-grid rounding, breaking rational half-grid ties upward. Hence . Clipping to cannot increase distance from the true probability . Step 4.1 therefore gives For , the exact target is zero, so the bound also holds. Every comparison in this procedure compares finite integers, including any tie; there is no comparison against an exact transcendental number.
A common denominator for the sine polynomial is . Its th integer numerator term is All exponents are nonnegative and every indicated division is exact. The powers, factorials, terms, common denominator, and signed partial sums have bits: , , and . Summing terms adds only extra bits. Thus can be computed with -bit signed integers; , , and the final integer division in step 5.1 have the same bit-length order.
There are only polynomially many arithmetic operations: products for the two denominators, powers and factorials, Taylor terms and their exact divisions, and one final quotient/clamp. Schoolbook addition, subtraction and comparison of -bit integers use elementary Boolean operations, multiplication uses operations by summing shifted partial products, and long division uses operations by shift/compare/subtract stages. Signed integers can use a sign bit and a magnitude of the fixed safe length; all denominators are known positive. The operation counts and safe register lengths depend only on . Unroll their loops and implement data branches by Boolean selection between the two computed results. Thus a deterministic classical generator produces a Boolean DAG for of polynomial size and description length in , in polynomial time. This also covers generation of the rational constants; no constant table of exponential length or unit-cost unbounded integer arithmetic is assumed.
Apply compute-copy-reverse to that Boolean DAG: evaluate its nodes in fresh clean bits, XOR-copy its output bits to , and reverse every evaluation gate. The inspected reversible embedding theorem gives the asserted XOR action, polynomial elementary gate count, serial depth and clean workspace, all restored to zero. The Boolean circuit's uniform generation proof in step 7.1, followed by the finite node-gadget compiler, gives polynomial-time generation of the actual reversible gate list. The clean identity extends by linearity to coherent inputs and finite references. Its actual reversal has identical gate count. For an external control, either use a compute/controlled-copy/uncompute construction on the same Boolean function, or control the fixed reversible gate list; the former directly gives a constant-factor resource increase and restores all scratch. No real-number refinement or measurement occurs. This proves the Statement.
Depends on
- Principal arctangent: derivative, integral, power series, and the Gregory–Leibniz series
- The principal inverse tangent $\arctan:\mathbb R\to(-\pi/2,\pi/2)$
- Tangent is a continuous strictly increasing bijection from $(-\pi/2,\pi/2)$ onto $\mathbb R$
- Addition and subtraction formulas for tangent, cotangent, secant, and cosecant on their exact domains
- The derivatives of sine and cosine are cosine and minus sine
- Pythagorean and parity identities for all six trigonometric functions on their natural domains
- Cofunction, supplementary, quarter-turn, and reflection identities for the six trigonometric functions
- A uniform derivative bound gives a uniform Taylor remainder bound
- The mean value theorem, as the case $g(x) = x$ of Cauchy's: for $f$ continuous on $[a,b]$ with $a < b$ and differentiable on $(a,b)$ there is $c \in (a,b)$ with $f(b) - f(a) = f'(c)(b-a)$
- Reversible embedding of a Boolean circuit
- Gate, workspace, and serial-depth costs of reversible embedding
Used by
Dependency tree · two levels
67 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
- NIST Digital Library of Mathematical Functions, §4.24 (standard reference, not scraped)
- Preskill, Quantum Computation, §5.2.2–§5.2.3 (standard reference, not scraped)