Main derivation
S01 · implies
Before
T
After
|T|=|D|,\ D=\{(d_1,d_2,d_3)\mid d_1\in W^{+},\ d_2,d_3\in W,\ 100d_1+10d_2+d_3\ \text{even},\ d_1,d_2,d_3\ \text{pairwise distinct}\}Conditions: none
Rule: decimal_rep · Uses: G1, G2, decimal_rep
Leaf basis: decimal_rep + injective_surjective_def + finite_counting_basics
Send each n∈T to its digit triple (d₁,d₂,d₃). By decimal_rep this triple exists and is unique, so the assignment is a function; the map (d₁,d₂,d₃)↦100d₁+10d₂+d₃ recovers n, so it is a bijection from T onto D. The conditions 'even' and 'distinct digits' carry over unchanged to D. By finite_counting_basics, finite sets joined by a bijection have the same number of elements, so |T|=|D|.
S02 · equivalent
Before
100d_1+10d_2+d_3\ \text{even}After
d_3\in E=\{0,2,4,6,8\}Conditions: d_3\in W
Rule: divides_def · Uses: S01, even_def, divides_def
Leaf basis: divides_def + even_def + distributive
Let n=100d₁+10d₂+d₃. Since 100d₁+10d₂=2(50d₁+5d₂) by distributivity, n−d₃ is a multiple of 2. If n=2k then d₃=2(k−50d₁−5d₂) is even; conversely, if d₃=2j then n=2(50d₁+5d₂+j) is even. So n is even ⇔ d₃ is even, and the even digits from 0 to 9 are exactly 0, 2, 4, 6 and 8.
S03 · equivalent
Before
D
After
D=\{(d_1,d_2,d_3)\mid d_1\in W^{+},\ d_2\in W,\ d_3\in E,\ d_1\neq d_2,\ d_1\neq d_3,\ d_2\neq d_3\}Conditions: none
Rule: set_extensionality · Uses: S01, S02
Leaf basis: set_extensionality + set_builder
Replace the condition 'even' in S01 by the equivalent condition d₃∈E from S02, and spell out 'pairwise distinct' as three inequalities. Each triple satisfies the old and new conditions together, so the set is unchanged.
S04 · case_split
Before
D
After
D=D_0\cup D_+,\ D_0\cap D_+=\varnothing,\ D_0=\{t\in D\mid d_3=0\},\ D_+=\{t\in D\mid d_3\in\{2,4,6,8\}\}Conditions: none
Rule: set_operations_def · Uses: S03, set_operations_def
Leaf basis: set_operations_def + case_analysis
Why branch: if the units digit d₃ is chosen first, the number of options for the hundreds digit d₁ depends on d₃. When d₃=0, 0 is not in W⁺ anyway and d₁ has 9 options; when d₃∈{2,4,6,8}, d₃ is a nonzero digit that must be removed from W⁺, leaving 8. MKO assumption a3 requires the number of options at each stage to be stated relative to earlier choices; when it is not constant we must branch. The classes are disjoint because d₃ cannot be both 0 and in {2,4,6,8}; together they cover D because E={0}∪{2,4,6,8}.
S05 · theorem_application
Before
D=D_0\cup D_+,\ D_0\cap D_+=\varnothing
After
|D|=|D_0|+|D_+|
Conditions: D_0\cap D_+=\varnothing
Rule: finite_counting_basics · Uses: S04, finite_counting_basics, mko_counting
Leaf basis: finite_counting_basics + finite_subset + mko_counting
The addition principle (first sentence of the MKO, finite_counting_basics): the number of elements in the union of two disjoint finite sets is the sum of their individual sizes. D₀ and D₊ are subsets of the finite set D, hence finite.
S06 · implies
Before
d_3=0
After
|W^{+}\setminus\{0\}|=9,\ \ |W\setminus\{0,d_1\}|=8\ \text{for every}\ d_1\in W^{+}Conditions: d_1\neq 0
Rule: L_remove · Uses: S04, L_remove
Leaf basis: L_remove + finite_counting_basics + numeric_evaluation
In D₀ we have d₃=0. Stage one chooses d₁ from W⁺∖{0}; since 0∉W⁺ this is W⁺ itself, with 9 elements. Stage two chooses d₂, which must differ from d₁ and d₃, from W∖{0,d₁}. Since d₁≥1 we have d₁≠0, so {0,d₁}⊆W has exactly 2 elements, and by Lemma L_remove |W∖{0,d₁}|=10−2=8, the same 8 for every d₁.
S07 · theorem_application
Before
D_0
After
|D_0|=9\cdot 8=72
Conditions: |W\setminus\{0,d_1\}|=8\ \text{for every}\ d_1\in W^{+}
Rule: L_stage · Uses: S04, S06, L_stage
Leaf basis: L_stage + finite_counting_basics + numeric_evaluation
The map (d₁,d₂,0)↦(d₁,d₂) is a bijection from D₀ onto P₀={(d₁,d₂) ∣ d₁∈W⁺, d₂∈W∖{0,d₁}}: with d₃=0, the condition d₁≠d₃ holds automatically, d₂≠d₃ says d₂≠0, and d₂≠d₁ remains. Take X=W⁺ (m=9) and Y_{d₁}=W∖{0,d₁}, each with n=8 elements by S06; Lemma L_stage gives |D₀|=|P₀|=9·8=72. Note that the set Y_{d₁} changes with d₁ (Y₁ omits 0 and 1, Y₂ omits 0 and 2) while its size does not, which is exactly what the lemma requires.
S08 · implies
Before
d_3\in\{2,4,6,8\}After
|W^{+}\setminus\{d_3\}|=8,\ \ |W\setminus\{d_1,d_3\}|=8\ \text{for every}\ d_1\in W^{+}\setminus\{d_3\}Conditions: d_3\in W^{+}; d_1\neq d_3
Rule: L_remove · Uses: S04, L_remove
Leaf basis: L_remove + numeric_evaluation
In D₊, d₃∈{2,4,6,8}⊆W⁺, so {d₃}⊆W⁺ and L_remove gives |W⁺∖{d₃}|=9−1=8, the same for all four values of d₃. Since d₁ is chosen from W⁺∖{d₃}, d₁≠d₃, so {d₁,d₃}⊆W has exactly 2 elements and |W∖{d₁,d₃}|=10−2=8 for every pair (d₃,d₁).
S09 · theorem_application
Before
Q=\{(d_3,d_1)\mid d_3\in\{2,4,6,8\},\ d_1\in W^{+}\setminus\{d_3\}\}After
|Q|=4\cdot 8=32
Conditions: |W^{+}\setminus\{d_3\}|=8\ \text{for every}\ d_3\in\{2,4,6,8\}
Rule: L_stage · Uses: S08, L_stage
Leaf basis: L_stage + numeric_evaluation
The first two stages for D₊: choose d₃ (4 ways), then d₁ (8 ways each time by S08). Lemma L_stage with m=4 and n=8 gives 32 such ordered pairs.
S10 · theorem_application
Before
D_+
After
|D_+|=32\cdot 8=256
Conditions: |W\setminus\{d_1,d_3\}|=8\ \text{for every}\ (d_3,d_1)\in Q
Rule: L_stage · Uses: S03, S04, S08, S09, L_stage
Leaf basis: L_stage + injective_surjective_def + finite_counting_basics + numeric_evaluation
The map (d₁,d₂,d₃)↦((d₃,d₁),d₂) only reorders coordinates and is a bijection from D₊ onto {(q,d₂) ∣ q=(d₃,d₁)∈Q, d₂∈W∖{d₁,d₃}}; both sides impose the same conditions: d₃ a nonzero even digit, d₁∈W⁺, d₁≠d₃, d₂≠d₁, d₂≠d₃. Applying L_stage again (X=Q with m=32, and n=8 after every q by S08) gives |D₊|=32·8=256.
S11 · equivalent
Before
|D|=|D_0|+|D_+|
After
|D|=72+256=328
Conditions: none
Rule: eq_replace · Uses: S05, S07, S10
Leaf basis: eq_replace + numeric_evaluation
Substitute |D₀|=72 from S07 and |D₊|=256 from S10 into the addition of S05: |D|=72+256=328.
S12 · implies
Before
D=D'_{\mathrm{odd}}\cup D'_{\mathrm{even}}\ \text{(branch on}\ d_1)After
|D|=5\cdot 5\cdot 8+4\cdot 4\cdot 8=200+128=328
Conditions: d_1\ \text{odd: } |E\setminus\{d_1\}|=5; d_1\ \text{even: } |E\setminus\{d_1\}|=4
Rule: L_stage · Uses: S03, L_stage, L_remove, S05
Leaf basis: L_stage + L_remove + finite_counting_basics + numeric_evaluation
Independent check: choose the hundreds digit d₁ first. Then the number of choices of d₃∈E∖{d₁} depends on the parity of d₁, so split into two disjoint classes by the parity of d₁. d₁ odd (1, 3, 5, 7, 9; 5 ways): d₁∉E, so d₃ has 5 options and d₂∈W∖{d₁,d₃} has 8, giving 5·5·8=200. d₁ even (2, 4, 6, 8; 4 ways): d₁∈E, so d₃ has 4 options and d₂ has 8, giving 4·4·8=128. The sum is 328, agreeing with S11.
S13 · implies
Before
|T|=|D|,\ |D|=328
After
|T|=328
Conditions: none
Rule: eq_refl_symm_trans · Uses: S01, S11, S12
Leaf basis: eq_refl_symm_trans
From |T|=|D| in S01 and |D|=328 in S11, transitivity of equality gives |T|=328: there are 328 even numbers from 100 to 999 with pairwise distinct digits, 72 ending in 0 and 256 ending in 2, 4, 6 or 8.
Substeps and lemmas
S06.1 · implies
Before
R\subseteq S,\ |S|=s,\ |R|=r
After
|S\setminus R|=s-r
Conditions: R\subseteq S
Rule: finite_counting_basics · Uses: finite_counting_basics, set_operations_def, subset_def, finite_subset
Leaf basis: finite_counting_basics + set_operations_def + subset_def + finite_subset + eq_congruence
Every element of S lies either in R or in S∖R, never in both; and since R⊆S, every element of R lies in S. So S=(S∖R)∪R with (S∖R)∩R=∅. S∖R is a subset of S, hence finite. The addition principle gives s=|S∖R|+r, and subtracting r from both sides gives |S∖R|=s−r. This sub-step proves Lemma L_remove.
S07.1 · definition
Before
|X|=m,\ |Y_x|=n\ (x\in X)
After
\Phi:P\to X\times[n],\ \Phi(x,y)=(x,\varphi_x(y))
Conditions: |Y_x|=n\ \text{for every}\ x\in X
Rule: def_intro · Uses: G3, finite_counting_basics
Leaf basis: def_intro + function_def
By G3, |Yₓ|=n means there is a bijection φₓ:Yₓ→[n]; fix one for each of the finitely many x. Define Φ(x,y)=(x,φₓ(y)). Since x∈X and φₓ(y)∈[n], the values of Φ lie in X×[n].
S07.2 · implies
Before
\Phi(x,y)=(x,\varphi_x(y))
After
\Phi\ \text{is a bijection}Conditions: none
Rule: injective_surjective_def · Uses: S07.1, injective_surjective_def, cartesian_product_def
Leaf basis: injective_surjective_def + cartesian_product_def
Injective: if Φ(x,y)=Φ(x′,y′), equality of ordered pairs gives x=x′ and φₓ(y)=φₓ(y′), and since φₓ is injective, y=y′. Surjective: for any (x,k)∈X×[n], φₓ is surjective, so some y∈Yₓ has φₓ(y)=k; then (x,y)∈P and Φ(x,y)=(x,k). What may depend on x is the bijection φₓ; what may not is the target [n].
S07.3 · implies
Before
\Phi:P\to X\times[n]\ \text{bijective}After
|P|=|X\times[n]|=m\cdot n
Conditions: none
Rule: finite_counting_basics · Uses: S07.2, finite_counting_basics
Leaf basis: finite_counting_basics
By finite_counting_basics, finite sets joined by a bijection have the same size, and |X×[n]|=|X|·|[n]|=m·n. S07.1 to S07.3 together prove Lemma L_stage.