Proof of Lagrange's four-square theorem by descent
Builds on Euler's four-square identityExistence of prime factorizationPigeonhole principleWell-ordering principleEuclid's lemmaDivision algorithmCongruence modulo nPrime numberProof by infinite descentMathematical induction
Proof
Call an integer a 4-sum if it is with integers .
Reduction to odd primes.
- By Euler's four-square identity, the product of two 4-sums is a 4-sum.
- We have , and .
- Each is a product of primes, by existence of prime factorization. By step 1 and induction on the number of factors, it suffices to show that each odd prime is a 4-sum.
A multiple of that is a 4-sum. Fix an odd prime and put .
- If and , then . But and , against Euclid's lemma.
- So the numbers with are distinct modulo . Likewise the numbers with are distinct modulo .
- Together these are numbers, with only residues. By the pigeonhole principle and step 5, some .
- So for an integer . Also , so .
Descent.
- By the well-ordering principle, let be the least positive integer with a 4-sum. By step 7, . Write . We show , arguing by descent.
- Suppose is even. Then is even, so an even number of the are odd. Renumber so that and .
- Then , with integer terms. This contradicts the minimality of . So is odd.
- Suppose , so . By the division algorithm, choose with . This is possible as is odd.
- Then . Write with . Since each , we get , so .
- If , every , so for each . Then , so . This is impossible for . So .
- Apply Euler's identity with and . Then with
- Modulo , replace each by . Then . In , , the terms cancel in pairs, for example .
- So divides each . Dividing step 14 by gives , a 4-sum.
- Since , this contradicts the minimality of . So , and is a 4-sum.
- By step 3, every natural number is a sum of four squares.
Idea
Euler's identity reduces the problem to primes. The pigeonhole principle gives a multiple of that is a sum of four squares. If , reducing the modulo and using the identity again gives a smaller multiple, so the least such is .
Reading path
To understand this page from the ground up, read these 81 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof that a composition of injections is injective, Proof of Euclid's lemma, Proof that a function is bijective iff it has a two-sided inverse, Proof of Euler's four-square identity by expansion, Proof of strong induction from ordinary induction, Proof of the complement principle, Proof of the pigeonhole principle, Proof that a composition of surjections is surjective, Proof of the existence of prime factorization, Proof of the rule of sum, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the bijection principle, Proof of the existence of a prime divisor.
- Cardinality of a finite set definition
- Definition by recursion concept
- Divisibility definition
- Element definition
- Group concept
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Proof by infinite descent concept
- Proposition concept
- Congruence modulo n definition
- Greatest common divisor definition
- Prime number definition
- Set definition
- Ring definition
- Successor function definition
- Conjunction definition
- Implication definition
- Predicate definition
- Coprime integers definition
- Prime factorization definition
- Empty set object
- Ordered pair definition
- Addition of natural numbers definition
- Commutative ring definition
- Intersection definition
- The successor function is injective statement
- Zero is not a successor statement
- Existential quantifier definition
- Universal quantifier definition
- Cartesian product definition
- Disjoint sets definition
- Proof of the commutativity of addition by induction proof
- Order on the natural numbers definition
- Proof of Euler's four-square identity by expansion proof
- Subset definition
- Uniqueness quantifier definition
- Binary relation definition
- Commutativity of addition statement
- Euler's four-square identity statement
- Proof of strong induction from ordinary induction proof
- Function definition
- Strong induction statement
- Codomain definition
- Function composition definition
- Identity function definition
- Injective function definition
- Image of a set definition
- Proof of the well-ordering principle from strong induction proof
- Surjective function definition
- Left inverse definition
- Right inverse definition
- Proof that a composition of injections is injective proof
- Well-ordering principle statement
- Proof that a composition of surjections is surjective proof
- Bijective function definition
- Composition of injections is injective statement
- Proof of the existence of a prime divisor proof
- Proof of the division algorithm proof
- Composition of surjections is surjective statement
- Proof of the rule of sum proof
- Proof that a function is bijective iff it has a two-sided inverse proof
- Existence of a prime divisor statement
- Division algorithm statement
- Rule of sum statement
- Bijective iff it has a two-sided inverse statement
- Proof of the existence of prime factorization proof
- Proof of Bézout's identity proof
- Proof of the complement principle proof
- Proof of the bijection principle proof
- Bézout's identity statement
- Existence of prime factorization statement
- Complement principle statement
- Bijection principle statement
- Proof of the generalized Euclid's lemma proof
- Generalized Euclid's lemma statement
- Proof of the pigeonhole principle proof
- Pigeonhole principle statement
- Proof of Euclid's lemma proof
- Euclid's lemma statement
- Proof of Lagrange's four-square theorem by descent proof
Where this leads
4 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Lagrange%27s_four-square_theorem, The classical proof
About this page
| Tag | GBQDYYA8SE |
|---|---|
| URI | m2://GBQDYYA8SE |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11E25 |
| Proves | Lagrange's four-square theorem |
| Uses | Euler's four-square identity, Existence of prime factorization, Pigeonhole principle, Well-ordering principle, Euclid's lemma, Division algorithm, Congruence modulo n, Prime number, Proof by infinite descent, Mathematical induction |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.