Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck passjudge pass (deepseek-v4-pro + claude-opus-5[1m])audited 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 primitive sums of two squares

Statement

A positive integer n has a primitive two-square representation if and only if v2(n)1 and no prime q3(mod4) divides n.

Facts & Assumptions

Given: A positive integer n.

[F1]

A two-square representation is primitive when its coordinate gcd is 1 (Representations and primitive representations as sums of two squares).

[L1]

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).

[L2]

If P=a2+b2 and Q=c2+d2 are primitive representations with gcd(P,Q)=1, then the Brahmagupta–Fibonacci construction gives a primitive representation of PQ (Coprime primitively represented factors have a primitive product representation).

[L3]

Every natural power of a prime congruent to 1 modulo 4 has a primitive two-square representation (Powers of primes congruent to 1 modulo 4 have primitive two-square representations).

[L5]

For a prime p and a nonzero integer n, and every kN: pkn if and only if kvp(n); in particular vp(n)1 if and only if pn (For a prime p and a nonzero integer a: pvp(a)a and pvp(a)+1a; pka holds exactly for kvp(a); vp(a)1 exactly when pa; vp(1)=vp(1)=0; and vp(p)=1).

[L6]

For a finite pairwise-coprime list with partial products Pk, one has gcd(Pk,nj)=1 whenever kj (For a finite pairwise-coprime list of positive integers, the product divides every common multiple, and each initial product is coprime to every remaining modulus).

[L7]

If a prime p divides ab, then pa or pb (Euclid's lemma: if p is prime and pab then pa or pb).

[L8]

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 forward direction, if n=x2+y2 primitively and a prime q3(mod4) divided n, [L1] would make q divide both coordinates, contrary to [F1].

givenF1L1
1.2

Squares modulo 4 show that 4x2+y2 forces both x and y even. Thus a primitive representation has 4n, and the divisibility clause of [L5] at p=2, k=2 makes that equivalent to v2(n)1.

F1L5algebra
1.3

For the reverse direction, assume the two stated prime conditions. In [L4], no three-mod-four prime occurs, the factor 2 occurs with exponent at most one, and all remaining nontrivial factors are powers of distinct primes congruent to one modulo four. The factors are pairwise coprime by uniqueness and [L7].

givenL4L5L7algebra
2.1

The possible factor 2 has the primitive representation (1,1), and every one-mod-four prime power has a primitive representation by [L3].

step 1.3L3F1construct
3.1

Combine these pairwise-coprime primitive representations one at a time using [L2]. The partial product is coprime to the next factor by [L6], so [L8] completes the finite induction. If the factor list is empty, n=1 and (1,0) is primitive.

step 1.3step 2.1L2L6L8F1discharge-induction
4.1

Steps 1.1 and 1.2 prove necessity, while step 3.1 proves sufficiency.

step 1.1step 1.2step 3.1

Depends on

Used by

Dependency tree · two levels

50 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