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
∀ a. ∀ b. ∀ c. ∀ d. ∀ N. GaussianSignedNorm(a,b,c,d,N) → a · a + b · b + (c · c + d · d) = N + (a · b + b · a + (c · d + d · c))
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 14 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–6
02Separate the logical casesL7–10
03Calculate and transport equalitiesL11–14
Original defined command ledger · 14 lines
- 0001
intro a - 0002
intro b - 0003
intro c - 0004
intro d - 0005
intro N - 0006
intro hnorm - 0007
cases hnorm - 0008
cases hnorm_witness - 0009
cases hnorm_witness_witness - 0010
cases hnorm_witness_witness_right - 0011
rewrite hnorm_witness_witness_left - 0012
rewrite hnorm_witness_witness_right_left - 0013
rewrite hnorm_witness_witness_right_right - 0014
simp [add_assoc, add_comm, four_square_add_swap_right_tail]