Alphabeta Math
CorollaryStatement: AI-adaptedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck passjudge 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.

Positive integers 4am with m7(mod8) need four nonzero squares

Statement

Let aN, let m be a positive integer with m7(mod8) (Congruence modulo an integer: ab(modn) when n(ab), including the moduli 0 and 1), and put n=4am, the power being the natural power in the commutative monoid (Z,,1) (Powers gn: natural exponents in a monoid and integer exponents in a group, with g0=e, (Z,,1) is a commutative monoid whose group of units is {1,1}; equivalently u1 holds exactly for u=1 and u=1). Then n is a sum of four integer squares, and in every representation (x1,x2,x3,x4)Z4 of n (Representations as sums of four squares) all four coordinates are nonzero.

Facts & Assumptions

Given: A natural number a, a positive integer m with m7(mod8), and n=4am.

[F1]

A representation of a nonnegative integer n as a sum of four squares is an ordered quadruple (a,b,c,d)Z4 with n=a2+b2+c2+d2 (Representations as sums of four squares).

[L1]

Every nonnegative integer is a sum of four integer squares (Lagrange's four-square theorem: every nonnegative integer is a sum of four integer squares).

[L2]

For aN and a positive integer m with m7(mod8), there are no integers x,y,z with 4am=x2+y2+z2 (Positive integers 4am with m7(mod8) are not sums of three integer squares).

[L3]

In a monoid (M,,e) the natural powers of gM satisfy g0=e and gσ(n)=gng for nN, where σ is the successor on N (Powers gn: natural exponents in a monoid and integer exponents in a group, with g0=e).

[L5]

The order on Z is total, xy implies x+zy+z, and 0<x, 0<y imply 0<xy (The integers form a totally ordered ring).

[L6]

The embedding of N into Z is injective, preserves order, and has image exactly the nonnegative integers (The naturals embed in the integers).

[L7]

On N, the strict order is membership and 0n whenever n0 (On N the order is membership: m<n    mn).

[L8]

One has m<n exactly when σ(m)n (Discreteness: σ(n) is the immediate successor), and 1=σ(0) (The natural numbers N (von Neumann)).

[L9]

Let SN. If 0S and σ(n)S whenever nS, then S=N (The principle of mathematical induction).

Proof

technique · contradiction
1.1

The integers satisfy 0<1, and every positive integer is at least 1: the first because the embedded natural number 1 is nonnegative and differs from the embedded natural number 0, which is the integer 0, by injectivity in [L6]; and if y>0 then [L6] writes y as the image of a unique natural t, with t0, so [L7] gives 0t, hence 0<t, and [L8] turns this into 1=σ(0)t, which order preservation in [L6] carries to 1y.

L6L7L8
1.2

Suppose, for contradiction, that some quadruple (x1,x2,x3,x4)Z4 satisfies n=x12+x22+x32+x42 with xj=0 for at least one index j.

assume-contra
2.1

Let U={aN:4a1}. Since 40=1 by [L3] in the monoid of [L4], the set U contains 0. If aU, then 4σ(a)=4a4 by [L3], and both factors are at least 1: 4a1 by the hypothesis aU, and step 1.1 gives 41 because 4 is a positive integer. Thus both factors are positive, so [L5] gives 4σ(a)>0, and step 1.1 then gives 4σ(a)1. Hence σ(a)U, and [L9] yields U=N.

step 1.1L3L4L5L9
3.1

Since m is positive, step 1.1 gives m1; and step 2.1 gives 4a1. So both factors in n=4am are positive, [L5] gives n>0, and in particular n is nonnegative.

step 1.1step 2.1L5
4.1

By [L1] applied to the nonnegative integer n of step 3.1, n is a sum of four integer squares, so a representation in the sense of [F1] exists.

step 3.1L1F1
5.1

Under the assumption of step 1.2, deleting the coordinate xj leaves three integers y1,y2,y3, the other coordinates in any order, with y12+y22+y32=x12+x22+x32+x42xj2=n=4am, which [L2] excludes; the assumption therefore fails, so every representation of n has all four coordinates nonzero, and by step 4.1 at least one representation exists.

step 4.1step 1.2L2F1algebradischarge-contradiction

Remarks

What the two clauses say together. Four squares suffice for n, by Lagrange's four-square theorem: every nonnegative integer is a sum of four integer squares, and three do not, by Positive integers 4am with m7(mod8) are not sums of three integer squares; the second clause is the sharper form of the latter, since a representation with a zero coordinate is exactly a representation of n by three squares with a fourth coordinate added. So for these n the number four in Lagrange's theorem cannot be lowered.

The smallest instances. Taking a=0 and m=7 gives n=7; taking a=1 and m=7 gives n=28; and taking a=0 and m=15 gives n=15, so the statement is not about 7 alone.

Depends on

Used by

Dependency tree · two levels

60 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