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 original division, gcd, cancellation, and factor-existence foundations are exposed through checked wrappers. Unordered uniqueness adds an actual bounded, injective, surjective index map matching repeated prime occurrences. The empty factor list represents one, not zero.
Exact theorem in conservative defined notation
∀ n. ∀ d. ¬d = 0 → ∃ x. ∃ y. DivRem(n,d,x,y) ∧ (∀ z. ∀ m. DivRem(n,d,z,m) → z = x ∧ m = y)
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–3
02Establish hdivisionL4–8
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply division remainder exists.
- L4
have hdivision : ∃ q. ∃ r. DivRem(n,d,q,r)Definitions: DivRem(n,d,q,r)Original native command in the exact edition - L5
specialize division_remainder_exists (d) - L6
specialize division_remainder_exists (n) - L7
apply division_remainder_exists - L8
exact hd
03Separate the logical casesL9–10
04Construct an explicit witnessL11–12
05Separate the logical casesL13–13
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L13
split
06Use earlier factsL14–14
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L14
exact hdivision_witness_witness
07Fix variables and assumptionsL15–17
08Separate the logical casesL18–19
09Use earlier factsL20–29
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L20
specialize division_remainder_unique (d) - L21
specialize division_remainder_unique (n) - L22
specialize division_remainder_unique (u) - L23
specialize division_remainder_unique (v) - L24
specialize division_remainder_unique (x) - L25
specialize division_remainder_unique (x1) - L26
apply division_remainder_unique - L27
exact hother_left - L28
exact hother_right - L29
exact hdivision_witness_witness_left
10Use earlier factsL30–30
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L30
exact hdivision_witness_witness_right
Original defined command ledger · 30 lines
- 0001
intro n - 0002
intro d - 0003
intro hd - 0004
have hdivision : ∃ q. ∃ r. DivRem(n,d,q,r) - 0005
specialize division_remainder_exists (d) - 0006
specialize division_remainder_exists (n) - 0007
apply division_remainder_exists - 0008
exact hd - 0009
cases hdivision - 0010
cases hdivision_witness - 0011
exists x - 0012
exists x1 - 0013
split - 0014
exact hdivision_witness_witness - 0015
intro u - 0016
intro v - 0017
intro hother - 0018
cases hdivision_witness_witness - 0019
cases hother - 0020
specialize division_remainder_unique (d) - 0021
specialize division_remainder_unique (n) - 0022
specialize division_remainder_unique (u) - 0023
specialize division_remainder_unique (v) - 0024
specialize division_remainder_unique (x) - 0025
specialize division_remainder_unique (x1) - 0026
apply division_remainder_unique - 0027
exact hother_left - 0028
exact hother_right - 0029
exact hdivision_witness_witness_left - 0030
exact hdivision_witness_witness_right