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
∀ ac. ∀ bc. ∀ cc. ∀ p. ∀ n. ∀ q. ∀ m. SignedBalance(ac,p,n) → SignedBalance(bc,q,m) → SignedAdd(ac,bc,cc) → SignedBalance(cc,p + q,n + m)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 36 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 (1)
01Fix variables and assumptionsL1–10
02Establish houtputL11–14
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply signed balance total.
- L11
have houtput : ∃ output. SignedBalance(output,p + q,n + m)Definitions: SignedBalance(output,p + q,n + m)Original native command in the exact edition - L12
specialize signed_balance_total ((p) + (q)) - L13
specialize signed_balance_total ((n) + (m)) - L14
apply signed_balance_total
03Separate the logical casesL15–15
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L15
cases houtput
04Establish hequalL16–25
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply signed add functional.
- L16
have hequal : cc = x - L17
specialize signed_add_functional ac - L18
specialize signed_add_functional bc - L19
specialize signed_add_functional cc - L20
specialize signed_add_functional x - L21
apply signed_add_functional - L22
exact hoperation - L23
specialize gaussian_signed_add_of_balances ac - L24
specialize gaussian_signed_add_of_balances bc - L25
specialize gaussian_signed_add_of_balances x
05Use earlier factsL26–33
Instantiate or apply named facts and discharge the corresponding proof obligations.
06Calculate and transport equalitiesL34–35
07Use earlier factsL36–36
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L36
exact houtput_witness
Original defined command ledger · 36 lines
- 0001
intro ac - 0002
intro bc - 0003
intro cc - 0004
intro p - 0005
intro n - 0006
intro q - 0007
intro m - 0008
intro hfirst - 0009
intro hsecond - 0010
intro hoperation - 0011
have houtput : ∃ output. SignedBalance(output,p + q,n + m) - 0012
specialize signed_balance_total ((p) + (q)) - 0013
specialize signed_balance_total ((n) + (m)) - 0014
apply signed_balance_total - 0015
cases houtput - 0016
have hequal : cc = x - 0017
specialize signed_add_functional ac - 0018
specialize signed_add_functional bc - 0019
specialize signed_add_functional cc - 0020
specialize signed_add_functional x - 0021
apply signed_add_functional - 0022
exact hoperation - 0023
specialize gaussian_signed_add_of_balances ac - 0024
specialize gaussian_signed_add_of_balances bc - 0025
specialize gaussian_signed_add_of_balances x - 0026
specialize gaussian_signed_add_of_balances p - 0027
specialize gaussian_signed_add_of_balances n - 0028
specialize gaussian_signed_add_of_balances q - 0029
specialize gaussian_signed_add_of_balances m - 0030
apply gaussian_signed_add_of_balances - 0031
exact hfirst - 0032
exact hsecond - 0033
exact houtput_witness - 0034
rewrite hequal - 0035
rewrite hequal - 0036
exact houtput_witness