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. SignedDifferenceSquare(p,n,s) → SignedDifferenceSquare(q,m,t) → SignedDifferenceSquare(p · q + n · m,p · m + n · q,s · t)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 18 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 (3)
01Fix variables and assumptionsL1–8
02Calculate and transport equalitiesL9–9
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L9
trans ((((((((p) * (p))) + (((n) * (n))))) * (((((q) * (q))) + (((m) * (m))))))) + (((((((p) * (n))) + (((n) * (p))))) * (((((q) * (m))) + (((m) * (q))))))))
03Use earlier factsL10–10
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L10
apply gaussian_signed_product_square_positive
04Calculate and transport equalitiesL11–11
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L11
trans ((s * t) + (((((((((p) * (p))) + (((n) * (n))))) * (((((q) * (m))) + (((m) * (q))))))) + (((((((p) * (n))) + (((n) * (p))))) * (((((q) * (q))) + (((m) * (m))))))))))
05Use earlier factsL12–14
06Calculate and transport equalitiesL15–17
07Use earlier factsL18–18
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L18
apply gaussian_signed_product_square_negative
Original defined command ledger · 18 lines
- 0001
intro p - 0002
intro n - 0003
intro q - 0004
intro m - 0005
intro s - 0006
intro t - 0007
intro hfirst - 0008
intro hsecond - 0009
trans ((((((((p) * (p))) + (((n) * (n))))) * (((((q) * (q))) + (((m) * (m))))))) + (((((((p) * (n))) + (((n) * (p))))) * (((((q) * (m))) + (((m) * (q)))))))) - 0010
apply gaussian_signed_product_square_positive - 0011
trans ((s * t) + (((((((((p) * (p))) + (((n) * (n))))) * (((((q) * (m))) + (((m) * (q))))))) + (((((((p) * (n))) + (((n) * (p))))) * (((((q) * (q))) + (((m) * (m)))))))))) - 0012
apply gaussian_signed_product_square_compensation - 0013
exact hfirst - 0014
exact hsecond - 0015
congr - 0016
refl - 0017
symm - 0018
apply gaussian_signed_product_square_negative