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
∀ p. ∀ n. ∀ q. ∀ m. ∀ s. ∀ t. ∀ z. SignedDifferenceSquare(p,n,s) → SignedDifferenceSquare(q,m,t) → SignedDifferenceSquare(p + m,n + q,z) → z + (p · q + n · m + (p · q + n · m)) = s + t + (p · m + n · q + (p · m + n · q))
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 25 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.
Named ingredients (2)
01Fix variables and assumptionsL1–10
02Use earlier factsL11–20
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L11
specialize gaussian_signed_square_sum_compensation p - L12
specialize gaussian_signed_square_sum_compensation n - L13
specialize gaussian_signed_square_sum_compensation m - L14
specialize gaussian_signed_square_sum_compensation q - L15
specialize gaussian_signed_square_sum_compensation s - L16
specialize gaussian_signed_square_sum_compensation t - L17
specialize gaussian_signed_square_sum_compensation z - L18
apply gaussian_signed_square_sum_compensation - L19
exact hfirst - L20
specialize gaussian_signed_square_negated q
Original defined command ledger · 25 lines
- 0001
intro p - 0002
intro n - 0003
intro q - 0004
intro m - 0005
intro s - 0006
intro t - 0007
intro z - 0008
intro hfirst - 0009
intro hsecond - 0010
intro hdifference - 0011
specialize gaussian_signed_square_sum_compensation p - 0012
specialize gaussian_signed_square_sum_compensation n - 0013
specialize gaussian_signed_square_sum_compensation m - 0014
specialize gaussian_signed_square_sum_compensation q - 0015
specialize gaussian_signed_square_sum_compensation s - 0016
specialize gaussian_signed_square_sum_compensation t - 0017
specialize gaussian_signed_square_sum_compensation z - 0018
apply gaussian_signed_square_sum_compensation - 0019
exact hfirst - 0020
specialize gaussian_signed_square_negated q - 0021
specialize gaussian_signed_square_negated m - 0022
specialize gaussian_signed_square_negated t - 0023
apply gaussian_signed_square_negated - 0024
exact hsecond - 0025
exact hdifference