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.
Lagrange's four-square theorem: every nonnegative integer is a sum of four integer squares
Statement
Every nonnegative integer is a sum of four integer squares. That is, for every integer there is a quadruple with (Representations as sums of four squares).
Facts & Assumptions
Given: The nonnegative integers.
A representation of a nonnegative integer as a sum of four squares is an ordered quadruple with (Representations as sums of four squares).
For , means for some (Divisibility in : when for some integer ).
An integer is prime when and with force or (Prime and composite integers: is prime when and its only positive divisors are and ).
Every prime is a sum of four integer squares. (Every prime is a sum of four integer squares).
Let and be nonnegative integers; if each of and is a sum of four integer squares, then is a sum of four integer squares (Sums of four squares are closed under products).
Let with and put . Then is nonempty and has a least element , and is prime; in particular every integer greater than has a prime divisor (Every integer has a prime divisor; indeed the least divisor of that exceeds is prime).
Let be nonempty. If has an upper bound, it has a greatest element; if has a lower bound, it has a least element. In each case the element is unique (A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element).
Proof
Suppose, for contradiction, that not every nonnegative integer is a sum of four integer squares.
Let be the set of nonnegative integers that are not sums of four integer squares; by step 1.1 it is nonempty, and it is bounded below by , so [L4] gives it a least element .
Neither nor lies in , since and are representations in the sense of [F1]; as and , this forces .
By [L3] the integer has a prime divisor , and by [F2] there is an integer with .
Here , since would give against ; and , since step 4.1 gives prime, so [F3] gives , hence , and therefore .
Since and is least in , the integer is not in , so is a sum of four integer squares; and is a sum of four integer squares by [L1].
Both factors of are nonnegative and are sums of four integer squares, so [L2] makes one, contradicting ; the assumption of step 1.1 therefore fails, and every nonnegative integer is a sum of four integer squares.
Remarks
Why and are treated by hand. The proof factors through a prime divisor, and neither small value has one: is a product of no primes at all and is not a product of primes. Both are covered instead by the explicit quadruples in step 3.1, which the definition admits because coordinates may vanish.
Negative integers are outside the statement, not an omission. A square is nonnegative, and so is any sum of squares, so no negative integer is a sum of four integer squares, and the hypothesis is the exact range where the conclusion can hold.
Four is not improvable. Some integers admit no representation with a vanishing coordinate, so they are not sums of three squares. The proposition Positive integers with are not sums of three integer squares and its corollary Positive integers with need four nonzero squares exhibit the family with ; they do not assert the converse classification.
Depends on
- Representations as sums of four squares
- Every prime is a sum of four integer squares
- Sums of four squares are closed under products
- Every integer $n > 1$ has a prime divisor; indeed the least divisor of $n$ that exceeds $1$ is prime
- A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element
- Divisibility in $\mathbb{Z}$: $d \mid a$ when $a = dq$ for some integer $q$
- Prime and composite integers: $p$ is prime when $p > 1$ and its only positive divisors are $1$ and $p$
Used by
Dependency tree · two levels
27 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
- MIT 18.781 Theory of Numbers, Lecture 22, Theorem 80 (standard reference, not scraped)
- Karl-Dieter Crisman, Number Theory: In Context and Interactive, §14.2, Fact 14.2.2 (standard reference, not scraped)