Main derivation
S01 · definition
Before
a,b\ \text{and an operation, system not yet stated}After
S\in\{\mathbb{N},\mathbb{Z},\mathbb{Q}\};\ a-b=c\iff b+c=a\ (\text{unique }c\in S);\ a\div b=q\iff bq=a\ (\text{unique }q\in S)Conditions: none
Rule: mko_arith · Uses: G1, G2
Leaf basis: mko_arith + def_intro
The MKO requires operations to be specified together with the number system and the division-by-zero boundary, so these are fixed first: the three systems ℕ⊂ℤ⊂ℚ share one addition and one multiplication (G1); subtraction and division are defined by solving equations: a−b is the unique c with b+c=a, and a÷b is the unique q with b·q=a, where the solution must lie in the system S under discussion (G2). From here on 'defined' always has this meaning.
S02 · implies
Before
3,5\in\mathbb{N}After
3+5=8\in\mathbb{N},\quad 3\cdot 5=15\in\mathbb{N}Conditions: 3\ge 0; 5\ge 0
Rule: nat_closed · Uses: G1, G3, nat_closed
Leaf basis: nat_closed + numeric_evaluation
3 and 5 are nonnegative integers, so they lie in ℕ. By nat_closed their sum and product stay in ℕ; computing gives 3+5=8 and 3·5=15, both ≥0. Addition and multiplication are defined in ℕ for these inputs and the results stay in ℕ. Since the three systems share one set of operations (G1), the sum and product in ℤ and ℚ are also 8 and 15.
S03 · implies
Before
c\in\mathbb{N}After
5+c\ge 5
Conditions: c\ge 0
Rule: order_basics · Uses: G1
Leaf basis: order_basics + add_zero
To decide whether 3−5 is defined in ℕ, first see which values 5+c can take for c in ℕ. Take any c∈ℕ, so c≥0. If c>0, order_basics (u<v gives u+w<v+w, with u=0, v=c, w=5) gives 5+0<5+c; if c=0 then 5+c=5. In both cases 5+c≥5+0=5.
S04 · implies
Before
\forall c\in\mathbb{N}:\ 5+c\ge 5>3After
\neg\exists c\in\mathbb{N}:\ 5+c=3Conditions: none
Rule: quantifier_negation · Uses: S03
Leaf basis: quantifier_negation + order_basics
By S03 every c∈ℕ has 5+c≥5, and 5>3, so by transitivity of order 5+c>3; by trichotomy 5+c>3 rules out 5+c=3. So 5+c≠3 for every c∈ℕ, which by negation of quantifiers is the same as 'there is no c∈ℕ with 5+c=3'.
S05 · implies
Before
\neg\exists c\in\mathbb{N}:\ 5+c=3After
3-5\ \text{is undefined in}\ \mathbb{N}Conditions: none
Rule: def_unfold · Uses: S04, G2
Leaf basis: def_unfold
By G2, 3−5 is defined in ℕ only if exactly one c∈ℕ satisfies 5+c=3; S04 says there is none at all, so 3−5 is undefined in ℕ. This shows that ℕ is not closed under subtraction.
S06 · equivalent
Before
5+c=3,\ c\in\mathbb{Z}After
c=3+(-5)=-2
Conditions: none
Rule: L_sub · Uses: G1, G3
Leaf basis: eq_congruence + add_assoc + add_comm + add_inverse + add_zero + numeric_evaluation
In ℤ, by Lemma L_sub (a=3, b=5): 5+c=3 ⇔ c=3+(−5), and 3+(−5)=−2. So in ℤ the equation 5+c=3 has exactly one solution, c=−2. The same argument works in ℚ, where the only solution is also −2.
S07 · implies
Before
c=-2\ \text{is the only solution in}\ \mathbb{Z}After
3-5=-2\ \text{in}\ \mathbb{Z},\quad -2\notin\mathbb{N}Conditions: -2<0
Rule: def_unfold · Uses: S06, G1, G2
Leaf basis: def_unfold + order_basics
S06 gives exactly one solution in ℤ, so by G2, 3−5 is defined in ℤ (and in ℚ) and equals −2. Also −2<0, so by ℕ={n∈ℤ ∣ n≥0} in G1, −2∉ℕ. This agrees with S05: the only solution in ℤ is not in ℕ, so ℕ has none. The same inputs get a different verdict in a different system.
S08 · case_split
Before
q\in\mathbb{Z}\ \text{with}\ 5q=3\ ?After
q\le 0\ \lor\ q\ge 1
Conditions: q\in\mathbb{Z}
Rule: int_no_gap · Uses: G1, G2
Leaf basis: int_no_gap + case_analysis
To decide whether 3÷5 is defined in ℤ, ask whether some integer q has 5q=3. By int_no_gap (m=0), every integer q satisfies q≤0 or q≥1; the two cases cover all integers and are handled in S08.1 and S08.2.
S09 · implies
Before
q\le 0\Rightarrow 5q\neq 3,\quad q\ge 1\Rightarrow 5q\neq 3
After
\neg\exists q\in\mathbb{Z}:\ 5q=3;\ 3\div 5\ \text{undefined in}\ \mathbb{Z}\ \text{and in}\ \mathbb{N}Conditions: none
Rule: case_analysis · Uses: S08, S08.1, S08.2, G1, G2
Leaf basis: case_analysis + quantifier_negation + def_unfold
Both cases give 5q≠3, so by proof by cases every integer q has 5q≠3: there is no solution in ℤ, and by G2, 3÷5 is undefined in ℤ. Since ℕ⊂ℤ with the same operations, a solution in ℕ would also be a solution in ℤ, so 3÷5 is undefined in ℕ as well. ℤ is not closed under division.
S10 · equivalent
Before
5q=3,\ q\in\mathbb{Q}After
q=3\cdot\tfrac{1}{5}=\tfrac{3}{5}Conditions: 5\neq 0
Rule: L_div · Uses: G1, G3
Leaf basis: eq_congruence + mul_inverse_nonzero + mul_assoc + mul_comm + mul_one + numeric_evaluation
In ℚ, by Lemma L_div (a=3, b=5, with 5≠0): 5q=3 ⇔ q=3·(1/5)=3/5. So in ℚ the equation 5q=3 has exactly one solution.
S11 · implies
Before
q=\tfrac{3}{5}\ \text{is the only solution in}\ \mathbb{Q}After
3\div 5=\tfrac{3}{5}\ \text{in}\ \mathbb{Q},\quad 0<\tfrac{3}{5}<1,\ \tfrac{3}{5}\notin\mathbb{Z}Conditions: none
Rule: def_unfold · Uses: S10, G2, int_no_gap
Leaf basis: def_unfold + int_no_gap + order_basics + numeric_evaluation
By G2 and S10, 3÷5 is defined in ℚ and equals 3/5. Also 1/5>0 (because 5>0), and multiplying 0<3<5 by 1/5 gives 0<3/5<1; by int_no_gap no integer lies strictly between 0 and 1, so 3/5∉ℤ. This agrees with S09: the only solution in ℚ is not an integer.
S12 · implies
Before
q\in\mathbb{Q}After
0\cdot q=0
Conditions: none
Rule: mul_zero · Uses: G1
Leaf basis: mul_zero + mul_comm
Turn to division with a divisor equal to zero. By mul_zero, q·0=0, and by commutativity 0·q=q·0=0. This holds for every q∈ℚ, hence also for q in ℤ or ℕ.
S13 · implies
Before
\forall q\in\mathbb{Q}:\ 0\cdot q=0\neq 3After
\neg\exists q\in\mathbb{Q}:\ 0\cdot q=3;\ 3\div 0\ \text{undefined in}\ \mathbb{Q},\mathbb{Z},\mathbb{N}Conditions: none
Rule: contradiction · Uses: S12, G1, G2
Leaf basis: contradiction + mul_zero + numeric_evaluation
If some q∈ℚ had 0·q=3, then S12 would give 3=0·q=0, contradicting 3≠0. So no q∈ℚ satisfies 0·q=3, and by G2, 3÷0 is undefined in ℚ; a solution in ℤ or ℕ would also be one in ℚ, so 3÷0 is undefined in all three systems. This is division by zero of the 'no candidate' kind.
S14 · implies
Before
\forall q:\ 0\cdot q=0
After
0\cdot 0=0,\ 0\cdot 1=0,\ 0\neq 1;\ 0\div 0\ \text{undefined in}\ \mathbb{N},\mathbb{Z},\mathbb{Q}Conditions: none
Rule: def_unfold · Uses: S12, G2
Leaf basis: def_unfold + mul_zero
By S12 every q satisfies 0·q=0, for example q=0 and q=1; both lie in ℕ (hence in ℤ and ℚ), and 0≠1. So in each system the equation 0·q=0 has more than one solution; G2 requires exactly one, so 0÷0 is undefined in all three systems. This is division by zero of the 'too many candidates' kind.
S15 · implies
Before
\text{verdicts of S02, S05, S07, S09, S11, S13, S14}After
3+5=8,\ 3\cdot 5=15\ (\mathbb{N});\ 3-5=-2\ (\mathbb{Z});\ 3\div 5=\tfrac{3}{5}\ (\mathbb{Q});\ 3\div 0,\ 0\div 0\ \text{undefined}Conditions: none
Rule: and_intro_elim · Uses: S02, S05, S07, S09, S11, S13, S14
Leaf basis: and_intro_elim
Put the conclusions together: in ℕ, 3+5=8 and 3·5=15 are defined while 3−5 and 3÷5 are not; in ℤ, 3−5=−2 is defined while 3÷5 still is not; in ℚ, 3÷5=3/5 is defined; 3÷0 and 0÷0 are undefined in all three systems.
Substeps and lemmas
S06.1 · equivalent
Before
b+c=a
After
(-b)+(b+c)=(-b)+a
Conditions: none
Rule: eq_congruence · Uses: eq_congruence, add_inverse
Leaf basis: eq_congruence + add_inverse
In ℤ (or ℚ) every b has a −b; add −b on the left of both sides. The backward move is to add b to both sides and simplify as in S06.2.
S06.2 · equivalent
Before
(-b)+(b+c)=(-b)+a
After
c=a+(-b)
Conditions: none
Rule: eq_replace · Uses: S06.1
Leaf basis: add_assoc + add_comm + add_inverse + add_zero + eq_replace
Simplify the left side: (−b)+(b+c)=((−b)+b)+c=0+c=c (associativity, inverses, commutativity and identity for addition); on the right, commutativity gives (−b)+a=a+(−b). S06.1 and S06.2 together prove Lemma L_sub.
S08.1 · implies
Before
q\le 0
After
5q\le 0<3,\ \text{so}\ 5q\neq 3Conditions: 5>0
Rule: order_basics · Uses: S08
Leaf basis: order_basics + mul_zero
If q<0, multiplying by the positive number 5 preserves order, so 5q<5·0=0; if q=0 then 5q=0. So 5q≤0<3, and therefore 5q≠3.
S08.2 · implies
Before
q\ge 1
After
5q\ge 5>3,\ \text{so}\ 5q\neq 3Conditions: 5>0
Rule: order_basics · Uses: S08
Leaf basis: order_basics + mul_one
If q>1, multiplying by 5>0 gives 5q>5·1=5; if q=1 then 5q=5. So 5q≥5>3, and therefore 5q≠3.
S10.1 · equivalent
Before
bq=a
After
\tfrac{1}{b}(bq)=\tfrac{1}{b}aConditions: b\neq 0
Rule: mul_inverse_nonzero · Uses: eq_congruence, mul_inverse_nonzero
Leaf basis: eq_congruence + mul_inverse_nonzero
Since b≠0 the reciprocal 1/b exists; multiply both sides by 1/b. The backward move is to multiply both sides by b and simplify as in S10.2. If b=0 there is no 1/b and the step cannot be taken.
S10.2 · equivalent
Before
\tfrac{1}{b}(bq)=\tfrac{1}{b}aAfter
q=a\cdot\tfrac{1}{b}Conditions: b\neq 0
Rule: eq_replace · Uses: S10.1
Leaf basis: mul_assoc + mul_comm + mul_one + mul_inverse_nonzero + eq_replace
Simplify the left side: (1/b)(bq)=((1/b)b)q=1·q=q (associativity, reciprocal, identity); on the right, commutativity gives (1/b)a=a·(1/b). S10.1 and S10.2 together prove Lemma L_div.