Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck passaudited 2026-08-24
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.

Characterisation of positive integers that are sums of two squares

Statement

A positive integer n is a sum of two squares if and only if every prime q3(mod4) occurs to an even exponent in its canonical prime factorisation.

Facts & Assumptions

Given: A positive integer n.

[F1]

A representation of a nonnegative integer n as a sum of two squares is an ordered pair (x,y)Z2 such that n=x2+y2 (Representations and primitive representations as sums of two squares).

[L1]

The product of two nonnegative integers representable as sums of two squares is again representable as a sum of two squares (Sums of two squares are closed under products).

[L2]

If q3(mod4) is prime and qx2+y2, then qx and qy (A prime congruent to 3 modulo 4 divides both coordinates of a divisible two-square sum).

[L3]

Every power of 2 and every power of a prime p1(mod4) is a sum of two squares; a power of q3(mod4) is representable exactly when its exponent is even (Prime powers represented as sums of two squares).

[L7]

If a property holds at 0 and passes from j to j+1, it holds for every jN (The principle of mathematical induction).

Proof

technique · direct
1.1

For the reverse direction at n=1, the canonical factorisation is empty and (1,0) represents 1.

givenF1L4algebra
1.2

For the reverse direction at n>1, assume every three-mod-four prime has even valuation. By [L3], every prime-power factor in [L4] is representable.

givenL3L4
1.3

For the forward direction, suppose n=x2+y2 and let q3(mod4) divide n. By [L2], x=qx1 and y=qy1, so n=q2n1 with n1=x12+y12.

givenF1L2algebra
2.1

Repeatedly applying [L1] to the finite list of factors from step 1.2 gives a representation of their product n; step 1.1 supplies the empty-list case.

step 1.1step 1.2L1F1algebra
2.2

By [L5] and [L6], step 1.3 lowers the q-adic valuation by exactly two: vq(n1)=vq(n)2.

step 1.3L5L6algebra
3.1

If vq(n) were odd, induction on the number of two-step reductions in steps 1.3 and 2.2 would eventually give a represented integer of q-valuation one. Applying step 1.3 once more would make its valuation at least two, a contradiction. Thus vq(n) is even.

step 1.3step 2.2L7discharge-induction
4.1

Steps 2.1 and 3.1 prove the reverse and forward directions, respectively.

step 2.1step 3.1

Depends on

Used by

Dependency tree · two levels

44 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