Goal and scope
On X={0,1,2,3,4} the relation R is listed completely as 13 ordered pairs: (0,0), (1,1), (2,2), (3,3), (4,4), (0,2), (2,0), (1,3), (3,1), (1,4), (4,1), (3,4), (4,3). Check reflexivity, symmetry and transitivity item by item, prove that R is an equivalence relation and emit its classes; then show that R′, obtained by removing (3,4) and (4,3), is reflexive and symmetric but not an equivalence relation.
Stays inside the MKO: carrier labelled 0 to n−1 and the relation listed completely as distinct ordered pairs (assumption a1); classes are emitted only after all three checks pass, and one counterexample refutes the corresponding axiom (assumption a2). Transitivity is settled for all composable pairs at once by a block-relation lemma, not by sampling. Quotient sets and cardinality comparison are not treated, and the canonical MKO and its English edition are not changed.
Main derivation
S01 · definition
Before
R\ \text{is an equivalence relation on}\ XAfter
\forall x\,(xRx)\ \land\ \forall x,y\,(xRy\Rightarrow yRx)\ \land\ \forall x,y,z\,(xRy\land yRz\Rightarrow xRz)
Conditions: none
Rule: mko_equiv_def · Uses: G1, relation_def
Leaf basis: mko_equiv_def + def_unfold
Unfold the definition of the MKO: all three axioms, reflexivity, symmetry and transitivity, must hold. Each is a universal statement over a finite set and can be checked completely; one counterexample to any of them means R is not an equivalence relation.
S02 · equivalent
Before
\forall x\in X:\ (x,x)\in R
After
(0,0),(1,1),(2,2),(3,3),(4,4)\in R
Conditions: none
Rule: finite_forall · Uses: S01, G1, finite_forall
Leaf basis: finite_forall + relation_def
X has five elements, so reflexivity is equivalent to all five diagonal pairs lying in R. Look each one up in the list of G1: all five are there. Reflexivity holds.
S03 · equivalent
Before
\forall (x,y)\in R:\ (y,x)\in R
After
(0,2)\leftrightarrow(2,0),\ (1,3)\leftrightarrow(3,1),\ (1,4)\leftrightarrow(4,1),\ (3,4)\leftrightarrow(4,3);\ (x,x)\ \text{self-reverse}Conditions: none
Rule: finite_forall · Uses: S01, G1, finite_forall
Leaf basis: finite_forall + relation_def + numeric_evaluation
Symmetry needs checking only on the pairs of R (when xRy is false the implication holds automatically). Of the 13 pairs, the 5 diagonal pairs are their own reverses; the other 8 form 4 pairs of mutually reversed ordered pairs, with both members of each pair listed. Symmetry holds.
S04 · definition
Before
X=\{0,1,2,3,4\}After
B_1=\{0,2\},\ B_2=\{1,3,4\},\ T=(B_1\times B_1)\cup(B_2\times B_2)Conditions: none
Rule: def_intro · Uses: G1
Leaf basis: def_intro + set_operations_def
To treat all composable pairs at once, introduce two candidate blocks and the block relation T. B_1 and B_2 are disjoint with union X. This is only naming; whether T equals R must be proved in S05 to S07, not guessed from a picture.
S05 · equivalent
Before
(B_1\times B_1)\cup(B_2\times B_2)
After
\{(0,0),(0,2),(2,0),(2,2)\}\cup\{(1,1),(1,3),(1,4),(3,1),(3,3),(3,4),(4,1),(4,3),(4,4)\}Conditions: none
Rule: cartesian_product_def · Uses: S04, cartesian_product_def
Leaf basis: cartesian_product_def + finite_counting_basics
List by the definition of the Cartesian product: B_1×B_1 has 2·2=4 pairs and B_2×B_2 has 3·3=9 pairs. The two products are disjoint (the blocks are disjoint), so |T|=4+9=13.
S06 · implies
Before
(x,y)\in R
After
R\subseteq T
Conditions: none
Rule: subset_def · Uses: G1, S05
Leaf basis: subset_def + finite_forall
Check the 13 pairs of R one by one: each diagonal pair lies in its own block product; (0,2) and (2,0) have both ends in B_1; (1,3), (3,1), (1,4), (4,1), (3,4), (4,3) have both ends in B_2. Every pair lies in T.
S07 · implies
Before
R\subseteq T,\ (x,y)\in T
After
T\subseteq R,\ \text{hence}\ R=TConditions: none
Rule: set_extensionality · Uses: S05, S06, G1
Leaf basis: set_extensionality + subset_def + finite_counting_basics
Each of the 13 pairs of T listed in S05 appears in the list of R in G1, so T⊆R. With R⊆T from S06, set extensionality gives R=T. (A further check: both have exactly 13 distinct elements.)
S08 · theorem_application
Before
R=T=(B_1\times B_1)\cup(B_2\times B_2),\ B_1\cap B_2=\varnothing
After
xRy\land yRz\Rightarrow xRz\ \text{for all}\ x,y,z\in XConditions: B_1\cap B_2=\varnothing
Rule: L_block_trans · Uses: S04, S07
Leaf basis: L_block_trans + eq_replace
By Lemma L_block_trans (proved in S08.1 to S08.3), T is transitive; since R=T, R is transitive too. This covers all 35 composable chains (x,y), (y,z) at once, not a sample.
S09 · implies
Before
\text{reflexive, symmetric, transitive}After
R\ \text{is an equivalence relation on}\ XConditions: none
Rule: and_intro_elim · Uses: S01, S02, S03, S08
Leaf basis: mko_equiv_def + and_intro_elim
Reflexivity (S02), symmetry (S03) and transitivity (S08) all pass, so by the definition in S01, R is an equivalence relation. Only now may the classes be emitted.
S10 · implies
Before
[x]=\{y\in X: xRy\}After
[0]=[2]=\{0,2\},\ [1]=[3]=[4]=\{1,3,4\}Conditions: R\ \text{equivalence relation (S09)}
Rule: eq_class_def · Uses: S09, G1, eq_class_def
Leaf basis: eq_class_def + set_builder + relation_def
Read off the row of each x: the pairs starting with 0 are (0,0), (0,2), so [0]={0,2}; with 2, (2,2), (2,0), so [2]={0,2}; with 1, (1,1), (1,3), (1,4), so [1]={1,3,4}; with 3, (3,3), (3,1), (3,4); with 4, (4,4), (4,1), (4,3); so [3]=[4]={1,3,4}.
S11 · implies
Before
\{0,2\},\ \{1,3,4\}After
\{0,2\}\cap\{1,3,4\}=\varnothing,\ \{0,2\}\cup\{1,3,4\}=XConditions: none
Rule: set_operations_def · Uses: S10
Leaf basis: set_operations_def + finite_counting_basics
The two distinct classes are disjoint with union X, and 2+3=5=|X|. They are exactly the blocks of S04: the blocks come out of the verified relation, not from a guess based on a picture.
S12 · implies
Before
R'=R\setminus\{(3,4),(4,3)\}After
R'\ \text{reflexive and symmetric}Conditions: none
Rule: finite_forall · Uses: G2, S02, S03
Leaf basis: finite_forall + relation_def + numeric_evaluation
R′ keeps all five diagonal pairs, so it is still reflexive; the two removed pairs are mutual reverses, and the remaining 3 pairs of mutually reversed ordered pairs (0,2)/(2,0), (1,3)/(3,1), (1,4)/(4,1) are kept whole, so it is still symmetric.
S13 · implies
Before
(3,1)\in R',\ (1,4)\in R'
After
(3,4)\notin R'\Rightarrow R'\ \text{not transitive}Conditions: none
Rule: contradiction · Uses: G2, S12
Leaf basis: contradiction + quantifier_negation + relation_def
Take x=3, y=1, z=4: 3R′1 and 1R′4, but (3,4) was removed, so 3R′4 fails. Transitivity is a universal statement, and one counterexample refutes it.
S14 · implies
Before
R'\ \text{reflexive, symmetric, not transitive}After
R'\ \text{not an equivalence relation; no classes emitted}Conditions: none
Rule: mko_equiv_def · Uses: S01, S12, S13, eq_class_def
Leaf basis: mko_equiv_def + de_morgan_logic
Without transitivity, R′ is not an equivalence relation by S01, and no classes are emitted. Forcing the computation of {y : xR′y} gives {1,3} for x=3 and {1,4} for x=4, which meet in 1 without being equal, so they do not form a partition. This shows that reflexive plus symmetric is not enough, and that grouping by eye is unreliable.