Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: Not applicablePipeline-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.

Rational-interval rounding of a counting output

Definition

Input. Public integers N≥1, even M≥2, and 0≤y<M. The output is an integer q. All sums, factorials, comparisons and ceiling operations below use exact rational or integer arithmetic, charged as classical bit work under Classical bit-operation cost.

If y=0, return q=0. Otherwise initialize r=4. Compute Rr=82r+2/(2r+2)!; while NRr≥1/24, increment r by one and recompute Rr. At the first r with NRr<1/24, set Dr=∑k=1r2k 82k−1(2k)!.

Initialize h=1. Compute Sh=∑k=0h−1(−1)k2k+1,eh=42h+1,[ah,bh]=2yM[4Sh−eh,4Sh+eh]. These are the arctangent-series enclosures from Principal arctangent: derivative, integral, power series, and the Gregory–Leibniz series and 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. Set xh=(ah+bh)/2 and ρh=(bh−ah)/2. While either [ah,bh]⊈[0,8] or NDrρh≥1/24−NRr, increment h by one and recompute Sh,eh,ah,bh,xh,ρh.

For the first accepted h, compute Cr(xh)=∑k=0r(−1)kxh2k(2k)!,E=Drρh+Rr, u=N2(1−Cr(xh)−E),v=N2(1−Cr(xh)+E). Return q=⌈v−2/3⌉, computing the rational ceiling by integer division. The termination and error guarantee are established in Terminating certified rounding for a counting estimate ↗.

Depends on

Used by

Dependency tree · two levels

33 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