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
∀ d. ∀ n. ¬d = 0 → Dvd(d,n) ∨ ¬Dvd(d,n)Every purple notation token opens its conservative definition. Expanding the displayed statement recovers the exact first-order Peano-arithmetic formula checked by the unchanged kernel.
Definitions used by this theorem
In the theorem statement
2 occurrences
In local proof propositions
2 occurrences
Exact expanded native-PA statement
forall d n. ~(d = 0) -> (exists q. n = d * q) \/ ~(exists q. n = d * q)Proof neighborhood
Direct theorem prerequisites
BT003A eq_decidable BT001P division_remainder_exists BT001W multiple_has_zero_remainder BT001U division_remainder_uniqueDirect theorem dependents
Definition-aware tactic body
Only local propositions introduced by have or suffices are compacted. Every changed line has an exact-AST conservative-expansion receipt; the kernel still receives the immutable original tactic 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 (4)
01Fix variables and assumptionsL1–3
02Establish hdivL4–6
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply division remainder exists.
- L4
have hdiv : ∃ q. ∃ r. DivRem(n,d,q,r)Definitions: DivRem(n,d,q,r)Original native command in the exact edition - L5
apply division_remainder_exists - L6
exact hd
03Separate the logical casesL7–9
04Use earlier factsL10–11
05Establish hrL12–13
06Separate the logical casesL14–15
07Construct an explicit witnessL16–16
Supply the displayed value, then prove that it has the required property.
- L16
exists x
08Calculate and transport equalitiesL17–18
09Use earlier factsL19–19
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L19
exact hdiv_witness_witness_left
10Separate the logical casesL20–20
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L20
right
11Fix variables and assumptionsL21–21
Work with arbitrary variables or the premises of the current implication.
- L21
intro hmul
12Establish hzeroL22–25
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply multiple has zero remainder.
13Separate the logical casesL26–29
14Establish huniqL30–35
Establish this local claim before using it. It is not an additional assumption. The following proof commands apply division remainder unique.
15Separate the logical casesL36–36
Follow the explicit conjunction, disjunction, witness, or contradiction step recorded below.
- L36
cases huniq
16Use earlier factsL37–37
Instantiate or apply named facts and discharge the corresponding proof obligations.
- L37
apply hr_right
17Calculate and transport equalitiesL38–38
Carry out the recorded arithmetic or equality steps; inspect the exact commands for their direction and premises.
- L38
trans x3
Original defined command ledger · 40 lines
- 0001
intro d - 0002
intro n - 0003
intro hd - 0004
have hdiv : ∃ q. ∃ r. DivRem(n,d,q,r)Exact native replay line
have hdiv : exists q r. n = d * q + r /\ S r <= d - 0005
apply division_remainder_exists - 0006
exact hd - 0007
cases hdiv - 0008
cases hdiv_witness - 0009
cases hdiv_witness_witness - 0010
specialize eq_decidable x1 - 0011
specialize eq_decidable 0 - 0012
have hr : x1 = 0 \/ ~(x1 = 0) - 0013
apply eq_decidable - 0014
cases hr - 0015
left - 0016
exists x - 0017
rewrite hr_left at hdiv_witness_witness_left - 0018
rewrite PA3 at hdiv_witness_witness_left - 0019
exact hdiv_witness_witness_left - 0020
right - 0021
intro hmul - 0022
have hzero : ∃ q. ∃ r. n = d · q + r ∧ r = 0 ∧ Lt(r,d)Exact native replay line
have hzero : exists q r. ((n = d * q + r /\ r = 0) /\ S r <= d) - 0023
apply multiple_has_zero_remainder - 0024
exact hd - 0025
exact hmul - 0026
cases hzero - 0027
cases hzero_witness - 0028
cases hzero_witness_witness - 0029
cases hzero_witness_witness_left - 0030
have huniq : x = x2 /\ x1 = x3 - 0031
apply division_remainder_unique - 0032
exact hdiv_witness_witness_left - 0033
exact hdiv_witness_witness_right - 0034
exact hzero_witness_witness_left_left - 0035
exact hzero_witness_witness_right - 0036
cases huniq - 0037
apply hr_right - 0038
trans x3 - 0039
exact huniq_right - 0040
exact hzero_witness_witness_left_right