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. ∃ s. SignedDifferenceSquare(p,n,s)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 11 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
02Use earlier factsL3–4
03Separate the logical casesL5–5
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L5
cases matrix_lattice_absolute_difference_exists
04Construct an explicit witnessL6–6
Supply the displayed value, then prove that it has the required property.
- L6
exists x * x
05Use earlier factsL7–11
Instantiate or apply named facts and discharge the corresponding proof obligations.
Original defined command ledger · 11 lines
- 0001
intro p - 0002
intro n - 0003
specialize matrix_lattice_absolute_difference_exists p - 0004
specialize matrix_lattice_absolute_difference_exists n - 0005
cases matrix_lattice_absolute_difference_exists - 0006
exists x * x - 0007
specialize four_square_absolute_square_balance p - 0008
specialize four_square_absolute_square_balance n - 0009
specialize four_square_absolute_square_balance x - 0010
apply four_square_absolute_square_balance - 0011
exact matrix_lattice_absolute_difference_exists_witness