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.
Fermat's two-square theorem for primes
Statement
A prime is a sum of two integer squares if and only if or (Representations and primitive representations as sums of two squares).
Facts & Assumptions
Given: A prime .
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).
If is prime, , then there are nonzero integers with and (Thue's lemma on small nonzero representatives).
For an odd prime , if and only if (First supplement: ).
For an odd prime , means that and is a quadratic residue modulo (The Legendre symbol, including its zero value).
The congruence means that (Congruence modulo an integer: when , including the moduli and ).
Proof
If an odd prime satisfies , the square residues modulo show that have opposite parity and hence .
The remaining even prime has the representation .
For the converse direction, suppose . Then is odd, and [L2] and [F2] provide an integer with and .
Apply [L1] to this to obtain nonzero integers with and .
Squaring the congruence in step 2.1 and using gives . Moreover . The only positive multiple of below is , so .
Step 1.1 proves necessity for odd primes, step 1.2 handles , and step 3.1 proves sufficiency when .
Depends on
Used by
Dependency tree · two levels
16 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.I.2 (standard reference, not scraped)
- W. Stein, Elementary Number Theory: Primes, Congruences, and Secrets, Theorem 5.7.1 (standard reference, not scraped)