Main derivation
S01 · theorem_application
Before
\tau=\{\varnothing,\{1\},\{1,2\},\{3,4\},\{1,3,4\},X\}After
(X,\tau)\ \text{is a topological space}Conditions: \tau\ \text{finite}; \varnothing,X\in\tau
Rule: L_finite_family · Uses: G1, G2
Leaf basis: topology_def + set_operations_def + nat_induction
All six members of τ are subsets of X, and ∅∈τ, X∈τ. τ is a finite family, so by Lemma L_finite_family (proved in S01.1 and S01.2) it suffices to check that the union and intersection of any two members lie in τ to get closure under unions of every subfamily and intersections of every finite subfamily; this pairwise check is done in S01.3. So (X,τ) is a topological space, and only then can open and closed be discussed.
S02 · equivalent
Before
C\subseteq X\ \text{closed}\iff X\setminus C\in\tauAfter
C\ \text{closed}\iff C=X\setminus U\ \text{for some}\ U\in\tauConditions: C\subseteq X
Rule: L_double_complement · Uses: S01, G3
Leaf basis: def_unfold + set_operations_def + set_extensionality
By the MKO definition, C is closed exactly when X∖C∈τ. (⇒) Let U=X∖C∈τ; by L_double_complement, C=X∖(X∖C)=X∖U. (⇐) If C=X∖U with U∈τ, then X∖C=X∖(X∖U)=U∈τ. So the closed sets are exactly the complements of open sets, and the closed family can be computed by taking complements one by one.
S03 · implies
Before
\{X\setminus U\mid U\in\tau\}After
\mathcal{C}=\{X,\{2,3,4\},\{3,4\},\{1,2\},\{2\},\varnothing\}Conditions: none
Rule: set_operations_def · Uses: S02, G2
Leaf basis: set_operations_def + injective_surjective_def
Take complements one by one: X∖∅=X, X∖{1}={2,3,4}, X∖{1,2}={3,4}, X∖{3,4}={1,2}, X∖{1,3,4}={2}, X∖X=∅. By S02 these six sets are all the closed sets. Since taking complements undoes itself (L_double_complement), distinct open sets give distinct closed sets, so there are exactly 6 closed sets.
S04 · implies
Before
\tau,\ \mathcal{C}After
\tau\cap\mathcal{C}=\{\varnothing,\{1,2\},\{3,4\},X\}Conditions: none
Rule: set_operations_def · Uses: G2, S03
Leaf basis: set_operations_def
Comparing the two lists, the sets in both τ and 𝒞 are ∅, {1,2}, {3,4} and X; these four are clopen. Besides the inevitable ∅ and X, {1,2} and {3,4} are clopen too: they are complements of each other and both are open.
S05 · implies
Before
\tau,\ \mathcal{C}After
\tau\setminus\mathcal{C}=\{\{1\},\{1,3,4\}\}Conditions: none
Rule: set_operations_def · Uses: G2, S03
Leaf basis: set_operations_def + mko_open_closed_def
The members of τ not in 𝒞 are {1} and {1,3,4}: they are open, but their complements {2,3,4} and {2} are not in τ, so they are not closed.
S06 · implies
Before
\tau,\ \mathcal{C}After
\mathcal{C}\setminus\tau=\{\{2\},\{2,3,4\}\}Conditions: none
Rule: set_operations_def · Uses: G2, S03
Leaf basis: set_operations_def + mko_open_closed_def
The members of 𝒞 not in τ are {2} and {2,3,4}: they are closed but not open.
S07 · implies
Before
|\mathcal{P}(X)|=2^4=16,\ |\tau\cup\mathcal{C}|=6+6-4=8After
\mathcal{P}(X)\setminus(\tau\cup\mathcal{C})=\{\{3\},\{4\},\{1,3\},\{1,4\},\{2,3\},\{2,4\},\{1,2,3\},\{1,2,4\}\}Conditions: none
Rule: finite_counting_basics · Uses: S04, S05, S06
Leaf basis: finite_counting_basics + numeric_evaluation + set_operations_def
X has 2^4=16 subsets. τ∪𝒞 has 6+6−4=8 members (the overlap is the 4 clopen sets of S04), so exactly 16−8=8 subsets are neither open nor closed, listed above. Check: 4 clopen, 2 open only, 2 closed only, 8 neither, total 16. Sub-step S07.1 checks {3} item by item.
S08 · implies
Before
(Y,\sigma)\ \text{any topological space}After
\varnothing\ \text{and}\ Y\ \text{are clopen in}\ (Y,\sigma)Conditions: none
Rule: forall_intro · Uses: mko_topological_space_def, mko_open_closed_def
Leaf basis: forall_intro + set_operations_def + mko_topological_space_def
Take any topological space (Y,σ). By the definition of a topology, ∅∈σ and Y∈σ, so both are open. Also Y∖∅=Y∈σ, so ∅ is closed; Y∖Y=∅∈σ, so Y is closed. The proof uses no special property of Y or σ, so by generalization it holds for every topological space; in our example these are ∅ and X in S04.
S09 · theorem_application
Before
C_1,C_2\in\mathcal{C}After
X\setminus(C_1\cup C_2)=(X\setminus C_1)\cap(X\setminus C_2)\in\tau,\ \text{so}\ C_1\cup C_2\in\mathcal{C}Conditions: C_1,C_2\subseteq X
Rule: L_demorgan · Uses: S01, S02
Leaf basis: set_operations_def + de_morgan_logic + topology_def
Let C1 and C2 be closed, so X∖C1 and X∖C2 are in τ. By the De Morgan lemma L_demorgan (proved in S09.1 and S09.2), X∖(C1∪C2)=(X∖C1)∩(X∖C2), an intersection of two open sets, which is in τ by the definition of a topology. So C1∪C2 is closed. The argument works in any topological space, and induction on the number of sets extends it to finitely many closed sets.
S10 · implies
Before
\{2\},\ \{3,4\}\in\mathcal{C}After
\{2\}\cup\{3,4\}=\{2,3,4\}\in\mathcal{C},\quad X\setminus\{2,3,4\}=\{1\}=\{1,3,4\}\cap\{1,2\}Conditions: none
Rule: forall_elim · Uses: S09, S03
Leaf basis: forall_elim + set_operations_def
Apply S09 to C1={2} and C2={3,4}: the union {2,3,4} should be closed. Direct check: X∖{2,3,4}={1}∈τ; by De Morgan it also equals (X∖{2})∩(X∖{3,4})={1,3,4}∩{1,2}={1}. The two computations agree.
S11 · implies
Before
\text{claim:}\ C\ \text{closed}\iff C\notin\tauAfter
\{1,2\}\in\tau\cap\mathcal{C},\ \{3\}\notin\tau\cup\mathcal{C}\ \Rightarrow\ \text{claim false in both directions}Conditions: none
Rule: quantifier_negation · Uses: S04, S07.1
Leaf basis: quantifier_negation + iff_intro
Test the misconception identified in the MKO 'closed means not open'. Counterexample to (⇒): {1,2} is closed and also open. Counterexample to (⇐): {3} is not open, and it is not closed either (S07.1). Both directions have counterexamples, so open and closed are independent properties and all four classes can occur.
Substeps and lemmas
S01.1 · induction_step
Before
F\subseteq\tau,\ |F|=k
After
\textstyle\bigcup F\in\tau\ \text{for every}\ kConditions: \varnothing\in\tau; U,V\in\tau\Rightarrow U\cup V\in\tau
Rule: nat_induction · Uses: nat_induction, set_operations_def, finite_counting_basics
Leaf basis: nat_induction + set_operations_def + finite_counting_basics
τ is finite, so every subfamily F is finite; induct on its number of members k. k=0: the union of the empty family is ∅, and ∅∈τ. k→k+1: pick a member U of F and let F′=F∖{U}, so |F′|=k and ∪F=(∪F′)∪U; by the induction hypothesis ∪F′∈τ, and closure under pairwise unions gives ∪F∈τ. This proves the union part of the lemma.
S01.2 · induction_step
Before
F\subseteq\tau,\ |F|=k
After
\textstyle\bigcap F\in\tau\ \text{for every}\ k\ (\bigcap\varnothing=X)Conditions: X\in\tau; U,V\in\tau\Rightarrow U\cap V\in\tau
Rule: nat_induction · Uses: nat_induction, set_operations_def, finite_counting_basics
Leaf basis: nat_induction + set_operations_def
Induct on k in the same way. k=0: the intersection of the empty family is read as X, and X∈τ. k→k+1: ∩F=(∩F′)∩U, and the induction hypothesis with closure under pairwise intersections gives ∩F∈τ. S01.1 and S01.2 together prove L_finite_family.
S01.3 · implies
Before
U,V\in\tau
After
U\cup V\in\tau,\ U\cap V\in\tau
Conditions: none
Rule: set_operations_def · Uses: G2
Leaf basis: set_operations_def + finite_counting_basics
Any pair involving ∅ or X returns to τ directly (∅∪A=A, ∅∩A=∅, X∪A=X, X∩A=A). The remaining six pairs: {1}∪{1,2}={1,2} with intersection {1}; {1}∪{3,4}={1,3,4} with intersection ∅; {1}∪{1,3,4}={1,3,4} with intersection {1}; {1,2}∪{3,4}=X with intersection ∅; {1,2}∪{1,3,4}=X with intersection {1}; {3,4}∪{1,3,4}={1,3,4} with intersection {3,4}. Every result is in τ.
S02.1 · equivalent
Before
x\in X\setminus(X\setminus C)
After
x\in C
Conditions: C\subseteq X
Rule: set_operations_def · Uses: set_operations_def, set_extensionality
Leaf basis: set_operations_def + de_morgan_logic + set_extensionality
x∈X∖(X∖C) ⇔ x∈X and not (x∈X and x∉C) ⇔ x∈X and x∈C ⇔ x∈C; the last step uses C⊆X. By extensionality, X∖(X∖C)=C, proving L_double_complement.
S07.1 · implies
Before
\{3\}After
\{3\}\notin\tau,\ X\setminus\{3\}=\{1,2,4\}\notin\tauConditions: none
Rule: mko_open_closed_def · Uses: G2, S03
Leaf basis: mko_open_closed_def + set_operations_def
{3} is not among the six members of τ, so it is not open; its complement {1,2,4} is not in τ either, so {3} is not closed. {3} is neither open nor closed, which directly refutes 'not open means closed'.
S09.1 · implies
Before
x\in X\setminus(A\cup B)
After
x\in(X\setminus A)\cap(X\setminus B)
Conditions: none
Rule: set_operations_def · Uses: set_operations_def, de_morgan_logic
Leaf basis: set_operations_def + de_morgan_logic
(⊆) x∈X∖(A∪B) means x∈X and not (x∈A or x∈B); by De Morgan in logic this is x∈X, x∉A and x∉B, so x∈X∖A and x∈X∖B.
S09.2 · implies
Before
x\in(X\setminus A)\cap(X\setminus B)
After
x\in X\setminus(A\cup B);\ \text{hence}\ X\setminus(A\cup B)=(X\setminus A)\cap(X\setminus B)Conditions: none
Rule: set_extensionality · Uses: S09.1, set_extensionality
Leaf basis: set_operations_def + set_extensionality
(⊇) If x∈X, x∉A and x∉B, then x is not in A∪B, so x∈X∖(A∪B). The two inclusions together give the equality by extensionality, proving L_demorgan.
Error controls and negative controls
Closed does not mean 'not open'
The misconception identified in the MKO is reading 'closed' as 'not open'. Here {1,2} is both open and closed, and {3} is neither (S11). Closedness can only be decided by the definition: is the complement in τ?
Complements must be taken in the same X
If the complement of {1,2} is wrongly taken in {1,2,3}, one gets {3}∉τ and wrongly concludes {1,2} is not closed; the correct X∖{1,2}={3,4}∈τ. If the complement of {3,4} is taken in {1,2,3,4,5}, one gets {1,2,5}, not even a subset of X, so comparing with τ is meaningless (MKO assumption a2).
Pairwise closure suffices only for finite families
S01 could check only pairwise unions because τ is finite (L_finite_family). Counterexample: the family of all finite subsets of ℕ together with ℕ itself contains ∅ and ℕ and is closed under pairwise unions and intersections, but the union of all {2k} is the set of even numbers, which is infinite and not equal to ℕ, so it is not in the family and the family is not a topology.
- {3} is not open, so {3} is closed →
reject — X∖{3}={1,2,4}∉τ, so {3} is not closed; it is neither open nor closed. - {1,2} is closed, so it is not open →
reject — {1,2}∈τ, so it is both open and closed. - In {1,2,3,4,5} the complement of {3,4} is {1,2,5}∉τ, so {3,4} is not closed →
reject — The complement must be taken in X: X∖{3,4}={1,2}∈τ, so {3,4} is closed. - The closed sets are exactly the 10 subsets not in τ →
reject — There are only 6 closed sets (S03), and 4 of them are in τ; of the 10 subsets not in τ, 8 are not closed.