Current library: Alpha v34, 4,223 checked-use theorems; Stable remains 432. Historical first admissions, original proof editions, and non-admitted aliases are preserved. Exact original first-admission records.
The natural-code carrier consists of genuine pairs of the existing signed integers; no new primitive arithmetic is trusted. The theorem constructs quotient, remainder, and actual norm witnesses. Gaussian gcd, unique factorization, and prime classification are separate targets.
Exact theorem in conservative defined notation
∀ h. ¬h = 0 → Lt(h · h + h · h,(h + h) · (h + h))
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 29 original proof lines are preserved. Only local proposition formulas are abbreviated; every abbreviation has an exact binder-safe expansion check. The linked exact edition contains the unchanged replay script.
Read the argument
Proof checkpoints
This is a reading aid, not a new proof or a proof-tree certificate. Checkpoint groups are consecutive commands, not inferred branch boundaries. Every step links to the preserved script.
01Fix variables and assumptionsL1–2
02Establish hsquareL3–10
03Establish hsumL11–17
04Establish hdoubleL18–20
05Establish hexpansionL21–29
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply four square descent double square four sum.
- L21
have hexpansion : (h + h) * (h + h) = (h * h + h * h) + (h * h + h * h) - L22
rewrite hdouble - L23
rewrite hdouble - L24
apply four_square_descent_double_square_four_sum - L25
rewrite hexpansion - L26
specialize fermat_four_lt_add_positive h * h + h * h - L27
specialize fermat_four_lt_add_positive h * h + h * h - L28
apply fermat_four_lt_add_positive - L29
exact hsum
Original defined command ledger · 29 lines
- 0001
intro h - 0002
intro hh - 0003
have hsquare : ~(h * h = 0) - 0004
intro hsquarezero - 0005
specialize mul_ne_zero h - 0006
specialize mul_ne_zero h - 0007
apply mul_ne_zero - 0008
exact hh - 0009
exact hh - 0010
exact hsquarezero - 0011
have hsum : ~(h * h + h * h = 0) - 0012
intro hzero - 0013
apply hsquare - 0014
specialize add_eq_zero_left h * h - 0015
specialize add_eq_zero_left h * h - 0016
apply add_eq_zero_left - 0017
exact hzero - 0018
have hdouble : h + h = 2 * h - 0019
specialize pairing_double_equals_two_mul h - 0020
apply pairing_double_equals_two_mul - 0021
have hexpansion : (h + h) * (h + h) = (h * h + h * h) + (h * h + h * h) - 0022
rewrite hdouble - 0023
rewrite hdouble - 0024
apply four_square_descent_double_square_four_sum - 0025
rewrite hexpansion - 0026
specialize fermat_four_lt_add_positive h * h + h * h - 0027
specialize fermat_four_lt_add_positive h * h + h * h - 0028
apply fermat_four_lt_add_positive - 0029
exact hsum