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
∀ z. ∀ w. ∀ a. ∀ b. ∀ c. ∀ d. ZPairRep(z,a,b,c,d) → ZPairRep(w,a,b,c,d) → z = w
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 42 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–8
02Separate the logical casesL9–16
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
03Establish hrealL17–24
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply signed balance functional.
- L17
have hreal : x = x2 - L18
specialize signed_balance_functional a - L19
specialize signed_balance_functional b - L20
specialize signed_balance_functional x - L21
specialize signed_balance_functional x2 - L22
apply signed_balance_functional - L23
exact hfirst_witness_witness_right_left - L24
exact hsecond_witness_witness_right_left
04Establish himaginaryL25–34
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply signed balance functional.
- L25
have himaginary : x1 = x3 - L26
specialize signed_balance_functional c - L27
specialize signed_balance_functional d - L28
specialize signed_balance_functional x1 - L29
specialize signed_balance_functional x3 - L30
apply signed_balance_functional - L31
exact hfirst_witness_witness_right_right - L32
exact hsecond_witness_witness_right_right - L33
rewrite hreal at hfirst_witness_witness_left - L34
rewrite hreal at hfirst_witness_witness_left
05Calculate and transport equalitiesL35–39
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
06Use earlier factsL40–40
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L40
exact hfirst_witness_witness_left
07Calculate and transport equalitiesL41–41
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L41
symm
08Use earlier factsL42–42
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L42
exact hsecond_witness_witness_left
Original defined command ledger · 42 lines
- 0001
intro z - 0002
intro w - 0003
intro a - 0004
intro b - 0005
intro c - 0006
intro d - 0007
intro hfirst - 0008
intro hsecond - 0009
cases hfirst - 0010
cases hfirst_witness - 0011
cases hfirst_witness_witness - 0012
cases hfirst_witness_witness_right - 0013
cases hsecond - 0014
cases hsecond_witness - 0015
cases hsecond_witness_witness - 0016
cases hsecond_witness_witness_right - 0017
have hreal : x = x2 - 0018
specialize signed_balance_functional a - 0019
specialize signed_balance_functional b - 0020
specialize signed_balance_functional x - 0021
specialize signed_balance_functional x2 - 0022
apply signed_balance_functional - 0023
exact hfirst_witness_witness_right_left - 0024
exact hsecond_witness_witness_right_left - 0025
have himaginary : x1 = x3 - 0026
specialize signed_balance_functional c - 0027
specialize signed_balance_functional d - 0028
specialize signed_balance_functional x1 - 0029
specialize signed_balance_functional x3 - 0030
apply signed_balance_functional - 0031
exact hfirst_witness_witness_right_right - 0032
exact hsecond_witness_witness_right_right - 0033
rewrite hreal at hfirst_witness_witness_left - 0034
rewrite hreal at hfirst_witness_witness_left - 0035
rewrite himaginary at hfirst_witness_witness_left - 0036
rewrite himaginary at hfirst_witness_witness_left - 0037
rewrite himaginary at hfirst_witness_witness_left - 0038
rewrite himaginary at hfirst_witness_witness_left - 0039
trans ((x2) + (x3)) * S ((x2) + (x3)) + ((x3) + (x3)) - 0040
exact hfirst_witness_witness_left - 0041
symm - 0042
exact hsecond_witness_witness_left