Alphabeta Math
TheoremStatement: AI-adaptedProof: 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.

Complete scaled-grid enumeration with expected polynomial prefix cost

Statement

The iterator Efficient exact-denominator Rz grid iterator enumerates exactly once every u∈Z[ω,1/2] satisfying u∈A, u∙∈B, in increasing least 2 denominator exponent. Let L=1+log⁡(1/ε). Its startup costs O(L2) ideal exact-real arithmetic/comparison operations. In a layer k having N solutions, its explicit proposal domain has size M≤C(N+1) for an absolute constant C, without filtering already emitted lower-denominator points. Empty layers cost poly⁡(k+L). For 1≤j≤N, the expected work through its first j distinct outputs is O(j(1+log⁡j)poly⁡(k+L)); the rth moment of that prefix work is Or(j2rpoly⁡(k+L)r) for every fixed positive integer r. Complete-layer work is O((N+1)poly⁡(k+L)) in expectation. These are arithmetic bounds with random-bit generation charged, and do not assert bit-time bounds for unspecified real inputs or worst-case polynomial delay.

Facts & Assumptions

Given: The arithmetic/comparison and real-input contract of the algorithm, independent unbiased random bits, and exact algebraic coefficient arithmetic.

[F1]

One-dimensional intervals have the proposal and counting bounds of One-dimensional quadratic grid enumeration and counting.

[F2]

The paired-ellipse construction makes both outer ellipses at least 1/6 upright, with all map entries polynomially bounded in 1/ε (Effective simultaneous grid uprighting of paired ellipses).

[F3]

Simultaneous disk bounds give at most (2⌊2k/2⌋+1)4=2O(k+1) coefficient tuples at exponent k (Finite coefficient bounds for the scaled cyclotomic grid).

[F4]

Bullet negates 2 and sends ω to −ω (The nontrivial real-conjugation automorphism of the eighth cyclotomic field).

Proof

1.1givenF2F3F4constructalgebra

The ring O=Z[ω] has exactly four residue classes modulo 2O, represented by 0,1,ω,1+ω. Indeed 2ω=1+i and 2=ω−ω3 imply i≡1, ω3≡ω, and 2≡0. Conversely the coefficient map a0+a1ω+a2ω2+a3ω3↦(a0+a2,a1+a3) mod 2 annihilates every multiple of 2: multiplying by 2=ω−ω3 gives even sums in both coordinates. Thus those four residues are distinct and exhaustive. Consequently for k≥1 the three chosen affine subproblems describe precisely the elements of least exponent k. For k=0, the algorithm scans all 81 coefficient tuples in {−1,0,1}4; [F3] bounds every nonzero grid candidate in this layer by that box, and zero fails the cap because 1−ε2/2>0. The two further cosets Z[2]+iZ[2] and its translate by ω partition O: expand a power-basis element's real and imaginary parts and separate the parity of a1+a3. Thus all affine subproblems are disjoint. The lattice bijection [F2] and the exact filters preserve every solution, while the emitted set suppresses revisits. The exhaustive background scan makes every finite layer terminate for every sequence of random bits.

1.2givenF2constructalgebra

The cap is sandwiched between E and its concentric 1/8-dilate. In coordinates u=xw+yiw, cap points have 1−h≤x≤1 and y2≤2h, so (x−(1−h/2))2/h2+y2/(4h)≤1/4+1/2<1. Conversely the 1/8-ellipse lies in ∣x−(1−h/2)∣≤h/8, ∣y∣≤h/4, hence x≥1−h and x2+y2≤(1−3h/8)2+h/16<1 for 0<h<1/8. The normalized outer ellipse eigenvalues are 2/h and h/2, within [H−1,H] for H=4/ε; the disk matrix is the identity. Therefore [F2] applies with log⁡H=O(L). For a final normalized ellipse matrix (abbd) with b2≤15, its centered bounding box has half-widths d,a. At its box scaled by 1/8, the quadratic form is at most 2(ad+∣b∣ad)/64≤1, since ad=1+b2≤16. Each transformed cap therefore contains its outer ellipse's bounding box scaled concentrically by 1/64, and the same weaker bound holds for the transformed disk. Affine shifts, negative scalar dilations, and coset translations preserve these inclusions.

2.1F1step 1.1step 1.2algebra

At k=0 the direct coefficient scan has at most 81 proposals, hence M=O(N+1) for the number N of layer solutions. For k≥1, consider one of the at most six subproblems. If Px,Py≥T, the two inner axis rectangles from step 1.2 supply independent coordinate grid problems with length products Px/642 and Py/642. Both exceed 4λ3, so [F1] gives at least cPx and cPy solutions, with a fixed c>0. Their Cartesian product lies inside both true constraints, giving Nsub≥c2PxPy. The two outer one-dimensional proposal lengths are O(Px+1) and O(Py+1), so their product is O(Nsub). If one coordinate product is below T, its entire proposal list and filtered coordinate list have bounded length by [F1]. Each remaining exact slice gives O(Nx+1) proposals by the same result, including singleton slices. Summing over the constantly many coordinate solutions gives O(Nsub+1) proposals. Combining the at most six disjoint subproblems proves M=O(N+1). In particular an empty layer has only constantly many proposals; no exponentially large lower-denominator list is generated.

3.1F1F2F3step 1.2step 2.1constructalgebra

The bound [F2] on G and the affine scalings 2k/2 bounds all outer centers and widths above by exp⁡(O(k+L)). A nonzero outer width is bounded below by exp⁡(−O(k+L)), by the ellipse eigenvalue bounds and det⁡G=±1. Thus the integer parts in outer one-dimensional preprocessing cost O(k+L) comparisons each. There are only constantly many exact slice intervals in the small-coordinate branch. A positive slice can have arbitrarily small width, so the algorithm pads it before the [F1] normalization: replace a slice width δ smaller than 1/(Δ+1) by that value, keeping its center and filtering the original slice. Its product is at most one and it creates constantly many proposals. Otherwise δ≥1/(Δ+1), so both positive widths used for normalization are at least exp⁡(−O(k+L)), since Δ is bounded by the outer width. The same padding handles singleton slices, and an empty slice is skipped. In either branch the [F1] unit-rescaling exponents are O(k+L), all floor operands have magnitude exp⁡(O(k+L)), and the earlier O(Nx+1) bound is retained. Root and line-intersection calculations use boundedly many source arithmetic operations; sign decisions are charged exact comparisons. Finally M=O(N+1) and [F3] give log⁡(M+1)=O(k+1), so each random proposal attempt uses O(k+1) random bits and is accepted with probability at least 1/2. A balanced comparison tree on exact coefficient tuples handles the emitted set in O(log⁡(N+2))=O(k+1) comparisons per visit. Thus each proposal visit and all layer preprocessing cost poly⁡(k+L) in expectation, with polynomial moments.

4.1givenF3step 1.1step 2.1step 3.1algebra∎

Every actual solution occupies exactly one proposal index. For N≥1, after s<N distinct solutions have been drawn, an independent random attempt produces a new solution with probability at least (N−s)/(2M). Ignoring the background scan can only delay obtaining j solutions. The expected number of random draws to obtain them is at most ∑s<j2M/(N−s)≤2C(N+1)∑s<j1/(N−s)≤4Cj∑t=1j1/t, since N/(N−s)≤j/(j−s) for N≥j. This is O(j(1+log⁡j)). Moreover each waiting time is dominated by a geometric variable with success probability 1/(4C(s+1)), whose rth moment is Or((s+1)r): sum its geometric tail, or bound the sum by the integral of rxr−1exp⁡(−x/(4C(s+1))). The inequality (∑s<jxs)r≤jr−1∑s<jxsr gives the stated Or(j2r) draw-moment bound. Each random draw adds only one background visit. Independently, after at most M such pairs the deterministic scan ends the layer, bounding complete-layer work by O((N+1)poly⁡(k+L)). Combining these estimates with step 3.1 proves all complexity claims. They control prefixes as well as complete output sizes, so they do not hide a whole-layer precomputation before the first candidate.

Depends on

Used by

Cited to discharge well-definedness by Efficient exact-denominator Rz grid iterator.

Dependency tree · two levels

12 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