Main derivation
S01 · definition
Before
a\mid b
After
\exists k\in\mathbb{N}:\ b=a\cdot kConditions: a,b\in\mathbb{N}
Rule: mko_dvd_def · Uses: G1, G2, mko_dvd_def
Leaf basis: mko_dvd_def + def_unfold
By the MKO's definition, a∣b means there is a natural number k (a multiplier witness) with b=a·k. To prove a∣b one must exhibit such a k; to prove a∤b one must show that no natural k works.
S02 · implies
Before
84=6\cdot 14,\ 14\in\mathbb{N}After
6\mid 84
Conditions: none
Rule: exists_intro · Uses: S01, G3
Leaf basis: exists_intro + numeric_evaluation
6·14=84 (N1) and 14 is natural, so k=14 is a witness and 6∣84.
S03 · equivalent
Before
a\mid b\quad(a>0)
After
b\bmod a=0
Conditions: a>0
Rule: L_rem_test · Uses: S01, L_rem_test
Leaf basis: division_algorithm + exists_intro + order_basics
For a>0, divisibility can be decided by the remainder: by Lemma L_rem_test (proved in S03.1 to S03.3), a∣b exactly when the remainder of b on division by a is 0. This replaces 'search for a witness' by one recomputable division with remainder.
S04 · implies
Before
87=6\cdot 14+3,\ 0\le 3<6
After
6\nmid 87
Conditions: 6>0
Rule: L_rem_test · Uses: S03, G3
Leaf basis: division_algorithm + nat_discrete + order_basics + numeric_evaluation
The remainder of 87 on division by 6 is 3≠0 (N2, N3), so by the equivalence of S03, 6∤87. A direct check agrees: 6·14=84<87<90=6·15, and every natural k has k≤14 (then 6k≤84) or k≥15 (then 6k≥90), so no k gives 6k=87. In the rationals 87/6=29/2=14.5, which is not natural.
S05 · implies
Before
10=4k,\ k\in\mathbb{N}\ ?After
4\nmid 10
Conditions: 4\neq 0
Rule: mul_inverse_nonzero · Uses: S01, S03, G2
Leaf basis: mul_inverse_nonzero + frac_rules + numeric_evaluation
In the rationals the only solution of 4k=10 is k=10/4=5/2 (division is allowed since 4≠0). 5/2 is not natural, so by G2 it is not a witness; there is no natural witness, and 4∤10. Check with S03: 10=4·2+2 with remainder 2≠0, the same conclusion.
S06 · implies
Before
a\in\mathbb{N}After
0=a\cdot 0,\ \text{so}\ a\mid 0Conditions: none
Rule: exists_intro · Uses: S01, mul_zero
Leaf basis: mul_zero + exists_intro + forall_intro
For any natural a, a·0=0 and 0 is natural, so k=0 is a witness and a∣0. a was arbitrary, including a=0.
S07 · equivalent
Before
0\mid b
After
b=0
Conditions: none
Rule: mul_zero · Uses: S01, mul_zero
Leaf basis: mul_zero + mul_comm + exists_intro
0∣b means there is a natural k with b=0·k. But 0·k=0 for every k, so this says exactly that b=0.
S08 · implies
Before
0=0\cdot 0=0\cdot 5,\quad 5\neq 0
After
0\mid 0\ \text{with non-unique witness};\ 0\nmid 5Conditions: none
Rule: mul_zero · Uses: S07, G3
Leaf basis: mul_zero + numeric_evaluation
0∣0 holds, and both k=0 and k=5 are witnesses (0·5=0, N9), so the witness is not unique. Since 5≠0, S07 gives 0∤5. So 'zero never divides any number' is wrong: 0∣0 is true.
S09 · implies
Before
b=a k=a k',\ a>0,\ k,k'\in\mathbb{N}After
k=k'
Conditions: a>0
Rule: order_basics · Uses: S01, order_basics
Leaf basis: order_basics + case_analysis + contradiction
By trichotomy exactly one of k<k′, k=k′, k>k′ holds. If k<k′, then a>0 gives ak<ak′, contradicting ak=ak′; likewise for k>k′. So k=k′: an existing witness is unique, or equivalently there is at most one witness when a>0. This contrasts with the case a=0 in S08.
S10 · implies
Before
a\in\mathbb{N}After
a=a\cdot 1,\ \text{so}\ a\mid aConditions: none
Rule: exists_intro · Uses: S01, mul_one
Leaf basis: mul_one + mul_comm + exists_intro
Reflexivity: a·1=a and 1 is natural, so a∣a; this includes 0∣0 (0=0·1).
S11 · implies
Before
a\mid b,\ b\mid c
After
a\mid c
Conditions: none
Rule: exists_elim · Uses: S01
Leaf basis: exists_elim + mul_assoc + exists_intro
Transitivity: from a∣b take a witness k with b=ak; from b∣c take a witness l with c=bl (S11.1). Substituting and using associativity gives c=a(kl), with kl natural (S11.2), so a∣c with witness kl.
S12 · implies
Before
6=3\cdot 2,\ 84=6\cdot 14
After
84=3\cdot 28,\ 3\mid 84
Conditions: none
Rule: forall_elim · Uses: S11, G3
Leaf basis: forall_elim + numeric_evaluation
3∣6 has witness k=2 and 6∣84 has witness l=14; by S11, 3∣84 has witness kl=28. Check: 3·28=84 and 84 leaves remainder 0 on division by 3 (N10 to N12).
S13 · case_split
Before
(a,b)\in\mathbb{N}^2After
a=0:\ a\mid b\iff b=0;\quad a>0:\ a\mid b\iff b\bmod a=0
Conditions: none
Rule: case_analysis · Uses: S03, S07, S02, S04, S05, S08
Leaf basis: case_analysis + order_basics
Decision procedure: first check a=0, where a∣b ⇔ b=0 (S07); otherwise a>0 and a∣b ⇔ the remainder is 0 (S03). The two cases cover every natural a. Applied: (6,84) remainder 0, divides; (6,87) remainder 3, does not; (4,10) remainder 2, does not; (0,0) divides; (0,5) does not.
Substeps and lemmas
S03.1 · implies
Before
b=aq+r,\ 0\le r<a,\ q\in\mathbb{Z},\ b\ge 0After
q\ge 0,\ \text{so}\ q\in\mathbb{N}Conditions: a>0
Rule: order_basics · Uses: division_algorithm, order_basics
Leaf basis: division_algorithm + order_basics + contradiction
The division algorithm gives integers q and r. If q≤−1, then aq≤−a, so b=aq+r≤−a+r<−a+a=0, contradicting b≥0. Hence q≥0 and q is natural.
S03.2 · implies
Before
b=aq+0,\ q\in\mathbb{N}After
a\mid b
Conditions: r=0
Rule: exists_intro · Uses: S03.1, S01
Leaf basis: exists_intro + add_zero
(The ⇐ direction) If the remainder r=0, then b=aq with q natural (S03.1), so q is a witness and a∣b.
S03.3 · implies
Before
b=a\cdot k,\ k\in\mathbb{N}After
b\bmod a=0
Conditions: a>0
Rule: division_algorithm · Uses: S01, division_algorithm
Leaf basis: division_algorithm + add_zero
(The ⇒ direction) If b=ak, then b=a·k+0 with 0≤0<a. The quotient and remainder of the division algorithm are unique, so the remainder of b on division by a is 0 (and the quotient is k). S03.1 to S03.3 together prove Lemma L_rem_test.
S11.1 · implies
Before
b=ak,\ c=bl
After
c=(ak)l
Conditions: none
Rule: eq_replace · Uses: S01, exists_elim
Leaf basis: eq_replace
Replace b in c=bl by the equal expression ak.
S11.2 · implies
Before
c=(ak)l
After
c=a(kl),\ kl\in\mathbb{N}Conditions: none
Rule: mul_assoc · Uses: S11.1, G1
Leaf basis: mul_assoc
Associativity gives (ak)l=a(kl); a product of naturals is natural (G1), so kl is a legitimate witness.