Alphabeta Math
TheoremStatement: AI-adaptedProof: AI-adaptedPipeline-generatedjudge pass (gpt-6-luna)
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.

Correctness and arithmetic resource bound for buffered phase approximation

Statement

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

Facts & Assumptions

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

[F1]

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

[F2]

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

[F3]

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

[F7]

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

[F8]

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

Proof

1.1F4algebraconstruct

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

2.1F1F4step 1.1algebraconstruct

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

3.1F2F3step 1.1step 2.1algebra

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

3.2F3F4F7step 2.1algebraconstruct

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

4.1step 1.1step 2.1step 3.1algebra

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

5.1F1F4F5F8step 4.1step 3.2algebraconstruct

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

6.1F5F6step 4.1step 3.2step 5.1algebra∎

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

Depends on

Used by

Cited to discharge well-definedness by Buffered certified rational phase approximation.

Dependency tree · two levels

102 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