Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedPipeline-generated
How statement and proof provenance work

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

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

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

Terminating certified rounding for a counting estimate

Statement

Given integers N≥1, even M≥2, and 0≤y<M, let z=Nsin⁡2(πy/M). There is a terminating deterministic rational-interval procedure that produces an integer q with ∣q−z∣≤2/3. Its arithmetic work is a classical bit cost; no polynomial bit bound is asserted.

Facts & Assumptions

Given: Integers N≥1, even M≥2, and a phase label 0≤y<M.

[F1]

3<π<22/7, and π/4=∑n=0∞(−1)n/(2n+1). After n terms, the alternating-series error gives ∣π−4Sn∣≤4/(2n+1), where Sn=∑k<n(−1)k/(2k+1). Increasing n until 8/(2n+1) is below a requested rational width yields the rational interval [4Sn−4/(2n+1),4Sn+4/(2n+1)]; termination follows from the Archimedean property (Rational bounds for pi used in finite schedules, Principal arctangent: derivative, integral, power series, and the Gregory–Leibniz series, 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, Every complete ordered field is Archimedean).

[F2]

Cosine is represented by its everywhere-convergent power series (Sine and cosine defined by their real power series).

[F3]

Rational arithmetic, interval comparison, and output writing are charged classical bit operations (Classical bit-operation cost).

[F4]

For x=2πy/M and ζM=e2πi/M, the exponential addition law gives ζM±y=e±ix (exp⁡(z+w)=exp⁡z exp⁡w, and the complex exponential extends the real exponential). Euler's formula, ∣eix∣=1, and e−ix=(eix)−1 give ζMy+ζM−y=2cos⁡x (exp⁡(x+iy)=ex(cos⁡y+isin⁡y), ∣exp⁡(x+iy)∣=ex, and eiπ+1=0). Together with [F5], this proves sin⁡2(πy/M)=(2−ζMy−ζM−y)/4 for every integer M≥2, including M=2 and non-dyadic M.

[F5]

The cosine double-angle identity gives cos⁡(2u)=1−2sin⁡2u (Double-angle and quadratic power-reduction identities).

[F6]

For x,y∈[0,8] and d≥1, factoring xd−yd=(x−y)∑j=0d−1xd−1−jyj gives ∣xd−yd∣≤d 8d−1∣x−y∣.

[F8]

For Rr=82r+2/(2r+2)!, Rr+1/Rr=64/((2r+4)(2r+3))→0. The ratio test gives convergence of ∑r≥4Rr, and the term test then gives Rr→0 (Ratio test: lim sup⁡∣ak+1/ak∣<1 gives absolute convergence and hence convergence, and lim inf⁡∣ak+1/ak∣>1 gives divergence, If a series converges then its terms tend to 0).

[F9]

For every real x, there is an integer m=⌊x⌋ with m≤x<m+1 (Integer part: for every real x there is exactly one integer m with m≤x<m+1).

[F10]

The real absolute value is defined by ∣x∣=x for x≥0 and ∣x∣=−x for x<0 (Absolute value in an ordered field).

[F11]

The exact rational-interval instructions, including the y=0 branch, the r and enclosure-index loops, and the output q=⌈v−2/3⌉ for the final interval [u,v], are defined in Rational-interval rounding of a counting output.

Proof

1.1givenF1F2F6F7F11algebra

If y=0, [F11] returns q=0=z, so assume 0<y<M. Since π<22/7<4, the true argument x=2πy/M lies in (0,8). For any accepted enclosure index h in [F11], write xr=xh, ρr=ρh and Ir=[u,v] for its output interval. For every r≥4, the cosine terms after index r alternate with decreasing magnitudes, so the omitted tail is bounded by Rr. For each integer k≥1, [F6] bounds ∣x2k−xr2k∣ by 2k 82k−1∣x−xr∣; summing with the factorial coefficients gives ∣Cr(x)−Cr(xr)∣≤Drρr. Thus ∣cos⁡x−Cr(xr)∣≤Drρr+Rr=E, and the endpoints in [F11] enclose z=N(1−cos⁡x)/2 in Ir.

2.1givenF1F8F11step 1.1algebra

The ratio of successive Rr bounds tends to zero, so Rr→0 and a finite r satisfies NRr<1/24. For that r, the enclosure-index loop in [F11] refines the alternating arctangent enclosure of π until its propagated argument interval is contained in [0,8] and NDrρr<1/24−NRr: this terminates because the true argument is strictly inside [0,8], Dr is finite, and the enclosures become arbitrarily narrow. The cosine interval has width at most 2(Drρr+Rr), so its z interval has width N(Drρr+Rr)<1/24<1/6. Both loops terminate.

3.1givenF3F4F5F9F10F11step 2.1algebra∎

Apply [F9] to z+1/2 and set n=⌊z+1/2⌋. Then n≤z+1/2<n+1, so −1/2≤z−n<1/2 and [F10] gives ∣z−n∣≤1/2. If Ir=[u,v] contains z and has width below 1/6, every x∈Ir satisfies −1/6<x−z<1/6; adding these bounds gives −2/3<x−n<2/3. Thus the closed radius-2/3 interval about n contains all of Ir, so an eligible integer exists. Eligibility is exactly v−2/3≤q≤u+2/3, so the least eligible integer is q=⌈v−2/3⌉, as returned by [F11]. It gives ∣q−z∣≤2/3 because z∈Ir. All rational operations and output work are charged by [F3]. The identity z=Nsin⁡2(πy/M) follows from the cosine double-angle identity, and its exact encoding is covered by [F4] using [F5].

Depends on

Used by

Cited to discharge well-definedness by Rational-interval rounding of a counting output.

Dependency tree · two levels

92 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