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
∀ code. ∀ p. ∀ n. ∀ q. ∀ m. p + m = q + n → SignedBalance(code,p,n) → SignedBalance(code,q,m)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 30 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–7
02Separate the logical casesL8–10
03Establish htransportL11–20
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply integer span pair equal transitive.
- L11
have htransport : q + x1 = x + m - L12
specialize integer_span_pair_equal_transitive q - L13
specialize integer_span_pair_equal_transitive m - L14
specialize integer_span_pair_equal_transitive p - L15
specialize integer_span_pair_equal_transitive n - L16
specialize integer_span_pair_equal_transitive x - L17
specialize integer_span_pair_equal_transitive x1 - L18
apply integer_span_pair_equal_transitive - L19
symm - L20
exact hequal
04Calculate and transport equalitiesL21–21
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L21
trans n + x
05Use earlier factsL22–23
06Construct an explicit witnessL24–25
07Separate the logical casesL26–26
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L26
split
08Use earlier factsL27–27
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L27
exact hbalance_witness_witness_left
09Calculate and transport equalitiesL28–28
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L28
trans x + m
Original defined command ledger · 30 lines
- 0001
intro code - 0002
intro p - 0003
intro n - 0004
intro q - 0005
intro m - 0006
intro hequal - 0007
intro hbalance - 0008
cases hbalance - 0009
cases hbalance_witness - 0010
cases hbalance_witness_witness - 0011
have htransport : q + x1 = x + m - 0012
specialize integer_span_pair_equal_transitive q - 0013
specialize integer_span_pair_equal_transitive m - 0014
specialize integer_span_pair_equal_transitive p - 0015
specialize integer_span_pair_equal_transitive n - 0016
specialize integer_span_pair_equal_transitive x - 0017
specialize integer_span_pair_equal_transitive x1 - 0018
apply integer_span_pair_equal_transitive - 0019
symm - 0020
exact hequal - 0021
trans n + x - 0022
exact hbalance_witness_witness_right - 0023
apply add_comm - 0024
exists x - 0025
exists x1 - 0026
split - 0027
exact hbalance_witness_witness_left - 0028
trans x + m - 0029
exact htransport - 0030
apply add_comm