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.
Every nonzero residue modulo an odd prime is a sum of two squares
Statement
Let be an odd prime and let with . Then there are integers such that
Facts & Assumptions
Given: An odd prime and a nonzero class .
For an odd prime , exactly nonzero classes are quadratic residues modulo (An odd prime has nonzero quadratic residues and as many nonresidues).
The quotient has elements (For , every class in has one representative with , so ; while is in bijection with ).
If finite sets and are disjoint, then (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition).
A subset of a finite set is finite and has cardinality at most that of the ambient set (A subset of a finite set is finite, with , and equality holds if and only if ).
For every , is an abelian group, and multiplication distributes over addition on both sides (For every natural , is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold).
Proof
Let be the set of all square classes in , including zero. By [L1], .
Translation and negation are bijections of the additive group, so also has elements.
Suppose, for contradiction, that and are disjoint. Then [L3] gives .
But , so [L2] and [L4] give , contradicting step 3.1.
Choose . Write and for integers . Then by [L5], which is the required congruence.
Depends on
- An odd prime has $(p-1)/2$ nonzero quadratic residues and as many nonresidues
- For $n\ge 1$, every class in $\mathbb{Z}/n$ has one representative $r$ with $0\le r<n$, so $\lvert\mathbb{Z}/n\rvert=n$; while $\mathbb{Z}/0$ is in bijection with $\mathbb{Z}$
- The sum rule: a finite disjoint union is finite with $\lvert A \cup B\rvert = \lvert A\rvert + \lvert B\rvert$ and $\lvert\bigcup_{i \in I} A_i\rvert = \sum_{i \in I}\lvert A_i\rvert$, and a sum over a finite index set splits along a partition
- A subset of a finite set is finite, with $\lvert B\rvert \le \lvert A\rvert$, and equality holds if and only if $B = A$
- For every natural $n$, $(\mathbb{Z}/n,+)$ is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold
Used by
Nothing in the library uses this result yet.
Dependency tree · two levels
39 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, §E.II, Exercise 4 (standard reference, not scraped)