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 derivative-nonzero criterion supplies no inverse or power witness: both are constructed. Roots may be arbitrary natural representatives of signed integer polynomials. Singular-root classification and p-adic completion are separate milestones.
Exact theorem in conservative defined notation
∀ p. ∀ d. ∀ e. ¬p = 0 → Coprime(d,p) → ModEq(p,d,e) → Coprime(e,p)
Every linked abbreviation expands hygienically to the identical original native formula.
Definition DAG
Actual proof prerequisites
Complete tactic proof in conservative notation
All 34 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–6
02Establish hinvL7–12
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply coprime bounded mod inverse.
- L7
have hinv : ∃ u. Lt(u,p) ∧ ModEq(p,d · u,1)Definitions: Lt(u,p)ModEq(p,d · u,1)Original native command in the exact edition - L8
specialize coprime_bounded_mod_inverse d - L9
specialize coprime_bounded_mod_inverse p - L10
apply coprime_bounded_mod_inverse - L11
exact hp - L12
exact hcop
03Separate the logical casesL13–14
04Use earlier factsL15–24
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L15
specialize mod_inverse_implies_coprime e - L16
specialize mod_inverse_implies_coprime p - L17
specialize mod_inverse_implies_coprime x - L18
apply mod_inverse_implies_coprime - L19
specialize mod_eq_trans p - L20
specialize mod_eq_trans (e * x) - L21
specialize mod_eq_trans (d * x) - L22
specialize mod_eq_trans 1 - L23
apply mod_eq_trans - L24
specialize mod_eq_mul_right p
05Use earlier factsL25–34
Instantiate or apply named facts and discharge the corresponding proof obligations.
Original defined command ledger · 34 lines
- 0001
intro p - 0002
intro d - 0003
intro e - 0004
intro hp - 0005
intro hcop - 0006
intro hmod - 0007
have hinv : ∃ u. Lt(u,p) ∧ ModEq(p,d · u,1) - 0008
specialize coprime_bounded_mod_inverse d - 0009
specialize coprime_bounded_mod_inverse p - 0010
apply coprime_bounded_mod_inverse - 0011
exact hp - 0012
exact hcop - 0013
cases hinv - 0014
cases hinv_witness - 0015
specialize mod_inverse_implies_coprime e - 0016
specialize mod_inverse_implies_coprime p - 0017
specialize mod_inverse_implies_coprime x - 0018
apply mod_inverse_implies_coprime - 0019
specialize mod_eq_trans p - 0020
specialize mod_eq_trans (e * x) - 0021
specialize mod_eq_trans (d * x) - 0022
specialize mod_eq_trans 1 - 0023
apply mod_eq_trans - 0024
specialize mod_eq_mul_right p - 0025
specialize mod_eq_mul_right e - 0026
specialize mod_eq_mul_right d - 0027
specialize mod_eq_mul_right x - 0028
apply mod_eq_mul_right - 0029
specialize mod_eq_symm p - 0030
specialize mod_eq_symm d - 0031
specialize mod_eq_symm e - 0032
apply mod_eq_symm - 0033
exact hmod - 0034
exact hinv_witness_right