Alphabeta Math
CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-31
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.

The average order of the two-square representation count is pi

Statement

For every real x≥1,

∑n≤xr2(n)=πx+O(x).

Consequently the constant function π is an average order of r2.

Facts & Assumptions

Given: A real x≥1, N:=⌊x⌋, and G(y):=∑n≤yχ4(n).

Proof

technique · direct
1.1givenalgebra

By The divisor formula for the two-square representation count, r2=4(1∗χ4). Applying Dirichlet's hyperbola method for summatory convolutions with f=1, g=χ4, and U=V=x gives ∑n≤xr2(n)=4(∑a≤NG(x/a)+∑b≤Nχ4(b)⌊xb⌋−NG(N)).

2.1step 1.1givenalgebra

The values of χ4 repeat as 1,0,−1,0, so every complete block of length 4 has sum 0 and every initial partial block has sum 0 or 1. Hence G(y)=O(1) uniformly in y, and step 1.1 gives ∑a≤NG(x/a)=O(N),NG(N)=O(N). Also ⌊x/b⌋=x/b+O(1), so ∑b≤Nχ4(b)⌊xb⌋=x∑b≤Nχ4(b)b+O(N).

3.1step 2.1given

Deleting the zero even terms identifies ∑b≤Nχ4(b)/b with a partial Gregory-Leibniz sum. Therefore The Gregory-Leibniz series: pi over four equals 1-1/3+1/5-1/7+... gives ∑b≤Nχ4(b)b=π4+O(1/N).

4.1step 1.1step 2.1step 3.1givenalgebra∎

Substituting step 3.1 into step 2.1 and then into step 1.1 yields ∑n≤xr2(n)=4(x⋅π4+O(N))=πx+O(x). Since ∑n≤xπ=π⌊x⌋=πx+O(1), Summatory functions and average orders now says that the constant function π is an average order of r2.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

27 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