Let Lagrange’s four-square theorem says that every positive integer
can be written as
for some integers
. Equivalently, every positive integer is the squared length of an integer vector in
.
At first this looks like a direct equation-solving problem: given , find four integers whose squares add to it. The classical descent proof instead takes an indirect route. For a prime
, it first finds some representable multiple
. It then shows that whenever
, that representation can be converted into one of a strictly smaller multiple
, with
. Since a positive integer cannot decrease forever, the smallest possible multiplier must be
. The proof has three ingredients: Euler’s four-square identity, a short modular construction producing one multiple of
, and a descent based on choosing centered residues modulo the least multiplier. A smallest positive multiplier
would produce an even smaller one. That is the entire contradiction.
The four-square composition law
The quadratic form has an exceptional multiplicative property. For
define
Euler’s four-square identity is
A direct expansion verifies the formula: the pure terms occur once and the mixed terms cancel. Its importance is not merely that products of sums of four squares remain sums of four squares. The signs have also been arranged to interact with congruences. If coordinatewise, then
by cancellation, while
. This is exactly the divisibility mechanism that will carry the prime factor through the descent.
The identity immediately reduces the theorem to primes: once every prime is a sum of four squares, their powers and products are as well. The prime is immediate,
Fix from now on an odd prime
.
Congruence
We do not yet know how to represent itself. We first seek integers
with
Then for some positive integer
, giving a representation of the multiple
. The congruence is guaranteed by a simple counting argument. Put
, and consider the two sets of residues
The elements in each set are distinct modulo . Indeed, if
with
, then
; unless
, neither factor can be divisible by
, because both have absolute value less than
. Thus both sets have
elements, hence together have
elements in a set of only
residues. They must meet. Consequently there are
with
Thus Moreover,
so
. We have found at least one positive multiplier less than
.
Descent
Before the descent, note that an even multiplier can always be halved. Suppose
with even. An even number of the
are odd, so after rearranging them, we may pair
with the same parity and likewise
. Whenever
have the same parity,
Applying this identity to the two pairs shows that is again a sum of four squares.
Now choose the least positive integer for which
is a sum of four squares. The construction above gives
, and the halving observation shows that
is odd. We will prove that
.
Assume , and choose integers
such that
Write . For each
, let
be the unique centered representative of
, so that
and
. This is possible and unique because
is odd. Put
. The vector
lies in the same residue class as
, but each coordinate has been made as small as possible in absolute value. In particular,
for some . But
for all
, so
The case is impossible. It would imply
for every
, hence
for all
. Writing
in the equation for
would give
, contradicting
and primality of
. Thus
The short vector represents
, not the desired smaller multiple of
. The four-square identity is precisely what transfers the factor
from
to
.
Apply Euler’s identity to and
. Set
Then
Every is divisible by
. Since
,
and the other three expressions become alternating sums that cancel modulo . Thus
for some integers
. Dividing the preceding norm identity by
gives
But , contradicting the choice of
as the least positive multiplier for which
is a sum of four squares. Hence
, and so
Every prime is therefore a sum of four squares. Euler’s identity then extends the result to every positive integer.
The descent combines three ideas. The original vector has squared length
. Reducing it modulo
and choosing centered residues produces a vector
in the same coset of
with
. Because its squared length is still divisible by
, it has the form
with
. This gives smallness, but it loses the factor
. Euler’s identity restores that factor: the congruence
forces all four composition coordinates to be divisible by
, and after dividing by
their squared norm is exactly
. Thus centered residues give smallness, congruence gives divisibility, and the four-square identity transports the prime factor through the descent.
This is closely analogous to the classical descent proof of the two-square theorem: there too, one begins with a representable multiple of a prime, reduces coordinates modulo the multiplier to obtain a smaller one, and uses the two-square composition identity to carry the prime factor through the descent.
Example: For ,
so
. Halving the even multiplier gives
Take . Its centered residue vector modulo
is
, with
. Applying Euler’s identity gives
After division by ,
Here the descent reaches multiplier immediately. In general the same strictly decreasing multiplier argument guarantees that it must eventually do so.