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

Relative approximate counting success guarantee

Statement

For the dyadic relative-counting procedure with rational 0<ϵ≤1, if t>0 its integer output is within ϵt of t with probability at least 2/3. If t=0, every rough and final Count output is exactly zero, the loop stops at its finite cutoff, and the output is zero with certainty.

For every stated input, both dyadic scheduling loops terminate and the final certified integer rounding terminates. The final scale is the least dyadic value at least T=[20(22/7)2/ϵ]L, hence T≤M<2T and M≥20π2L/ϵ. Fresh preparations and all controlled access and bit costs remain as declared.

Facts & Assumptions

Given: The relative-counting algorithm, N=2n≥1, integer t marked addresses, and rational 0<ϵ≤1.

[F1]

The rough loop doubles L, stops on nonzero label or L2≥4N, and uses final M≥20(22/7)2L/ϵ (Relative approximate counting with unknown marked count).

[F2]

Fresh Count has zero-label probability sin⁡2(Lθ)/(L2sin⁡2θ), with exact zero endpoint (Exact zero-label probability for counting).

[F3]

The final Count raw error has the k=1 bound and probability at least 8/π2 (Quantum counting error and boundary cases).

[F4]

For 0≤u≤1/2, sin⁡(πu)≥2u, and for v≥0, sin⁡v≤v (Sine chord and linear bounds).

[F8]

The sine double-angle formula is sin⁡(2x)=2sin⁡xcos⁡x (The addition formulas for sine and cosine).

[F21]

Count is defined for every power-of-two label size L≥2 and uses the explicit controlled membership reflection (Quantum counting by uniform-state amplitude estimation).

[F22]

The exact zero-label probability is the kernel in Exact zero-label probability for counting.

[F23]

The rational upper bound 22/7 exceeds π (Rational bounds for pi used in finite schedules).

[F24]

Certified integer rounding returns an integer within 2/3 of the raw algebraic value (Terminating certified rounding for a counting estimate).

[F25]

The exact label and interval operations are classical postprocessing (Classical bit-operation cost).

[F26]

The real field is Archimedean, natural powers obey 2j+1=2j⋅2, and induction holds on the naturals (Every complete ordered field is Archimedean, Exponentiation of natural numbers, mn, and its agreement with the integer power in R, The principle of mathematical induction).

Proof

1.1givenF21F22F25F26algebra

The rough loop starts at L=2 and doubles each round. By [F26] choose a natural q>4N. Induction gives 2j≥j+1 for every natural j: it is equality at j=0, and 2j+1=2j+2j≥(j+1)+(j+1)≥j+2. Thus after at most q rounds the scale L=2q>4N has been reached, so L2≥4N; the other stopping condition can only make the loop stop earlier. By [F21]–[F22], y≠0 is exactly a nonzero raw estimate test.

1.2givenF1F2F26algebra

Suppose t>0 and put θ=arcsin⁡t/N. Let m be the largest nonnegative index such that 2jθ≤1/5 for every 1≤j≤m; the condition is vacuous for m=0. This index is finite because θ>0 and the powers of two are unbounded by [F26]. For each rough scale L=2j with 1≤j≤m, one has Lθ≤1/5 and L2≤1/(25θ2)≤N/25<4N, because θ≥sin⁡θ=t/N≥1/N. Thus cutoff cannot occur during these m rounds.

2.1givenF23F24F25F26step 1.1algebra

The threshold T=[20(22/7)2/ϵ]L is a positive rational. By [F26] and the induction argument in step 1.1, some power of two exceeds T, so the doubling loop terminates; its first value M≥T is the least such power and satisfies M<2T. Since L≥2 and ϵ≤1, T>2, so M is even and at least 2, as required by Count and the rounding lemma. Since 22/7>π, M≥20π2L/ϵ and M<40(22/7)2L/ϵ. The rounding step [F24] terminates and makes the integer output explicit; its bit work is covered by [F25].

2.2F2F4F7F8step 1.2algebra

For 0≤x≤2/5, define H(x)=sin⁡x−xcos⁡x. By [F7], H(0)=0 and H′(x)=xsin⁡x≥0, so the mean value theorem gives sin⁡x≥xcos⁡x. At each rough scale Lθ≤1/5, this and sin⁡θ≤θ yield P0(L)≥cos⁡2(Lθ) by [F2]. Fresh runs make their zero events independent. If m≥1, then θ≤1/10 and [F8] gives ∏j=1mcos⁡2(2jθ)=[sin⁡(2m+1θ)/(2m+1sin⁡θcos⁡θ)]2≥cos⁡2(2/5), using sin⁡x≥xcos⁡x, sin⁡θcos⁡θ≤θ, 2m+1θ≤2/5, and the decrease of nonnegative cosine from [F7]. If m=0, the empty product is 1≥cos⁡2(2/5).

2.3F1F3F4step 1.2algebra

On the event that the first m rough labels are zero, the loop cannot terminate before rough scale 2m+1: none of scales 2j, 1≤j≤m, triggers the cutoff by step 1.2, and the first m labels are zero. By maximality of m, 2m+1θ>1/5, so 2m+1>1/(5θ). The loop therefore terminates at some scale L≥2m+1>1/(5θ), whether by a nonzero label or by the cutoff. Thus [F1] gives M≥20(22/7)2L/ϵ>4π2/(ϵθ), in particular M≥4. Applying [F3], using t(N−t)=Nsin⁡θcos⁡θ and θ≤(π/2)sin⁡θ, gives ∣t~−t∣≤ϵt/4+ϵ2t/64. The trigonometric inequality follows from [F4] with u=θ/π.

3.1givenF21F22step 1.1step 2.1

Each Count call uses a fresh preparation; the algorithm uses only the supplied access capabilities in [F21]. It is a finite procedure with exact finite stopping tests and certified final output, but no success or query-cost bound follows from this definition alone.

3.2F3F5F6step 2.3algebra

Since cos⁡(2/5)≥1−(2/5)2/2=23/25 by the alternating cosine series [F6], [F5] gives cos⁡2(2/5) 8/π2>(23/25)2(8⋅49/484)>2/3, where the last comparison is 622104>605000 after cross multiplication. The final Count is a fresh run, so conditionally on the rough outcomes it succeeds with probability at least 8/π2; multiplying by the rough-event probability proves joint probability greater than 2/3.

3.3F1F3step 2.3algebra

The output integer differs from t~ by at most 2/3 by [F1]. If ϵt<1, raw error plus rounding is at most (ϵ/4+ϵ2/64)t+2/3<17/64+2/3<1, so the integer equals t. If ϵt≥1, then 2/3≤2ϵt/3 and ϵ2t≤ϵt, so total error is at most (1/4+1/64+2/3)ϵt=179ϵt/192<ϵt.

4.1F1F2step 3.3∎

If t=0, every Count phase is exactly zero by [F2], so rough labels are zero and cutoff L2≥4N eventually terminates. The final Count is also exactly zero, and certified rounding returns zero. This proves the zero-count branch and completes the success guarantee.

Depends on

Used by

Nothing in the library uses this result yet.

Cited to discharge well-definedness by Relative approximate counting with unknown marked count.

Dependency tree · two levels

86 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