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.
Statement with defined notation
∀ p. ∀ n. ∀ q. ∀ d. Prime(p) → ¬q = 0 → n = p · q + d → Lt(q,n)Every purple notation token opens its conservative definition. This reading surface never changes the unchanged intuitionistic kernel or confers checked-use authority.
Definitions used by this theorem
In the theorem statement
In local proof propositions
Exact expanded first-order statement
forall p n q d. ((~(p = 1) /\ forall frm_prime_left_lmd_strict_prime frm_prime_right_lmd_strict_prime. p = frm_prime_left_lmd_strict_prime * frm_prime_right_lmd_strict_prime -> frm_prime_left_lmd_strict_prime = 1 \/ frm_prime_right_lmd_strict_prime = 1)) -> ~(q = 0) -> n = p * q + d -> (exists lmd_gap_strict_result. lmd_gap_strict_result + S (q) = (n))Proof neighborhood
Direct theorem prerequisites
Direct theorem dependents
Definition-aware tactic body
Only propositions whose conservative expansion has been checked for exact first-order equivalence are compacted. Every changed line retains its immutable exact replay command.
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
02Establish htwoL8–11
03Establish hscaledL12–17
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply succ le mul of two le right.
04Establish horderedL18–23
05Establish hupperL24–33
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply le trans.
06Use earlier factsL34–34
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L34
exact hupper
Original defined command ledger · 34 lines
- 0001
intro p - 0002
intro n - 0003
intro q - 0004
intro d - 0005
intro hprime - 0006
intro hnonzero - 0007
intro hdivision - 0008
have htwo : Lt(1,p)Exact native replay line
have htwo : exists gap. gap + 2 = p - 0009
specialize prime_two_le p - 0010
apply prime_two_le - 0011
exact hprime - 0012
have hscaled : Lt(q,q · p)Exact native replay line
have hscaled : exists gap. gap + S q = q * p - 0013
specialize succ_le_mul_of_two_le_right q - 0014
specialize succ_le_mul_of_two_le_right p - 0015
apply succ_le_mul_of_two_le_right - 0016
exact hnonzero - 0017
exact htwo - 0018
have hordered : n = q * p + d - 0019
trans p * q + d - 0020
exact hdivision - 0021
congr - 0022
apply mul_comm - 0023
refl - 0024
have hupper : Le(q · p,n)Exact native replay line
have hupper : exists gap. gap + (q * p) = n - 0025
specialize le_add_right (q * p) - 0026
specialize le_add_right d - 0027
rewrite <- hordered at le_add_right - 0028
exact le_add_right - 0029
specialize le_trans (S q) - 0030
specialize le_trans (q * p) - 0031
specialize le_trans n - 0032
apply le_trans - 0033
exact hscaled - 0034
exact hupper