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 is a sum of two squares if and only if every prime occurs to an even exponent in its canonical prime factorisation.
Facts & Assumptions
Given: A positive integer .
A representation of a nonnegative integer as a sum of two squares is an ordered pair such that (Representations and primitive representations as sums of two squares).
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).
If is prime and , then and (A prime congruent to modulo divides both coordinates of a divisible two-square sum).
Every power of and every power of a prime is a sum of two squares; a power of is representable exactly when its exponent is even (Prime powers represented as sums of two squares).
A positive integer is the finite product of the powers of its prime divisors with their canonical valuations (For and any injective list of primes containing every prime divisor of , one has ; the exponents are determined by , and for every prime outside the list).
For a nonzero integer, divides it if and only if (For a prime and a nonzero integer : and ; holds exactly for ; exactly when ; ; and ).
For nonzero integers , ( for nonzero integers , and whenever , and are all nonzero).
If a property holds at and passes from to , it holds for every (The principle of mathematical induction).
Proof
For the reverse direction at , the canonical factorisation is empty and represents .
For the reverse direction at , assume every three-mod-four prime has even valuation. By [L3], every prime-power factor in [L4] is representable.
For the forward direction, suppose and let divide . By [L2], and , so with .
Repeatedly applying [L1] to the finite list of factors from step 1.2 gives a representation of their product ; step 1.1 supplies the empty-list case.
By [L5] and [L6], step 1.3 lowers the -adic valuation by exactly two: .
If were odd, induction on the number of two-step reductions in steps 1.3 and 2.2 would eventually give a represented integer of -valuation one. Applying step 1.3 once more would make its valuation at least two, a contradiction. Thus is even.
Steps 2.1 and 3.1 prove the reverse and forward directions, respectively.
Depends on
- Representations and primitive representations as sums of two squares
- Sums of two squares are closed under products
- A prime congruent to $3$ modulo $4$ divides both coordinates of a divisible two-square sum
- Prime powers represented as sums of two squares
- For $n \ge 1$ and any injective list $p : r \to \mathbb{Z}$ of primes containing every prime divisor of $n$, one has $n = \prod_{i<r} p_i^{\,v_{p_i}(n)}$; the exponents are determined by $n$, and $v_q(n) = 0$ for every prime $q$ outside the list
- For a prime $p$ and a nonzero integer $a$: $p^{v_p(a)} \mid a$ and $p^{v_p(a)+1} \nmid a$; $p^{k} \mid a$ holds exactly for $k \le v_p(a)$; $v_p(a) \ge 1$ exactly when $p \mid a$; $v_p(1) = v_p(-1) = 0$; and $v_p(p) = 1$
- $v_p(ab) = v_p(a) + v_p(b)$ for nonzero integers $a, b$, and $v_p(a+b) \ge \min\{v_p(a), v_p(b)\}$ whenever $a$, $b$ and $a+b$ are all nonzero
- The principle of mathematical induction
Used by
- Squarefree sums of two squares Corollary
- 539=7²·11 is not a sum of two squares Counterexample
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
- P. Hackman, Elementary Number Theory, Chapter E, Theorem E.II.2 (standard reference, not scraped)
- W. Stein, Elementary Number Theory: Primes, Congruences, and Secrets, Theorem 5.7.1 (standard reference, not scraped)