Alphabeta Math
DefinitionDefinition: Literature-sourcedProof: Not applicableSession-authored (Fable 5 assisted)judge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26
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.

Representations as sums of four squares

Definition

Let n be a nonnegative integer. A representation of n as a sum of four squares is an ordered quadruple (a,b,c,d)Z4 with n=a2+b2+c2+d2. The integer n is a sum of four integer squares when at least one such quadruple exists.

Two representations (a,b,c,d) and (a,b,c,d) of the same n are equivalent up to signs and order when one is obtained from the other by permuting the four coordinates and independently changing the sign of any of them, and essentially different when they are not so equivalent. Since changing a sign does not change an absolute value and permuting the coordinates permutes them, two representations are equivalent exactly when the multisets {a,b,c,d} and {a,b,c,d} coincide.

Remarks

The coordinates range over all of Z. They may be zero, they may be negative, and they may repeat. So an integer written as a sum of one, two or three squares is a sum of four squares as well, its remaining coordinates being 0; and 1 is an admissible coordinate wherever 1 is, with the same square. This matters where the identity of Euler's four-square product identity is applied, since its output coordinates are frequently negative or zero even when its inputs are not.

Only nonnegative n is defined. A square is nonnegative and a sum of four nonnegative integers is nonnegative, so no negative integer admits a quadruple and the definition would be vacuous there.

The value 0. A sum of four squares vanishes exactly when each square vanishes, so 0=02+02+02+02 and (0,0,0,0) is the only representation of 0. Every representation of a positive integer therefore has at least one nonzero coordinate.

Agreement with the two-square convention. The convention here is the one Representations and primitive representations as sums of two squares uses for pairs: a representation is an ordered tuple, so order and sign are recorded, and equivalence up to signs and order is what quotients them out. The only change is the number of coordinates. That every nonnegative integer has at least one representation is Lagrange's four-square theorem: every nonnegative integer is a sum of four integer squares; the definition itself asserts nothing about existence.

Used by

Dependency tree · 0 levels

Nothing. This result depends on no other item in the library.

Sources