Goal and scope
Let X={1,2,3} with τX={∅,{1},{1,2},X}, and Y={a,b} with τY={∅,{a},Y}. For three maps given by complete tables, f (1↦a, 2↦a, 3↦b), g (1↦a, 2↦b, 3↦a) and c (everything ↦b), decide continuity by the preimage condition and decide whether each is an open map; prove that a composite of continuous maps is continuous and check it with q:Y→Z; finally count all continuous maps X→Y.
Works inside the MKO's scope: both underlying sets and topologies are fixed (assumption a1), maps are given by complete total tables, and a preimage collects every source element mapping into the target subset (assumption a2). The concrete map classification and count use the stated finite topologies; the general composition-continuity theorem is proved for arbitrary topological spaces without finiteness; the ε-δ continuity of real functions, subspaces and the isolated-point bridge are not, and the canonical MKO and its English edition are not changed.
Main derivation
S01 · theorem_application
Before
\tau_X,\ \tau_Y,\ \tau_Z
After
\text{each is a topology on}\ X,\ Y,\ ZConditions: \varnothing\subseteq\{1\}\subseteq\{1,2\}\subseteq X; \varnothing\subseteq\{a\}\subseteq Y; \varnothing\subseteq\{0\}\subseteq Z
Rule: L_chain · Uses: G1, G2, G4
Leaf basis: topology_def + subset_def
All three families are finite, contain the empty set and the whole set, and their members form an inclusion chain: ∅⊆{1}⊆{1,2}⊆X, ∅⊆{a}⊆Y, ∅⊆{0}⊆Z. By Lemma L_chain (proved in S01.1) all three are topologies. The definition of continuity needs topological spaces at both ends, so this is checked first.
S02 · equivalent
Before
h:X\to Y\ \text{continuous}After
h^{-1}[\varnothing]\in\tau_X\ \wedge\ h^{-1}[\{a\}]\in\tau_X\ \wedge\ h^{-1}[Y]\in\tau_XConditions: \tau_Y=\{\varnothing,\{a\},Y\}
Rule: finite_exhaustion · Uses: S01, G2, mko_topological_continuity_def
Leaf basis: def_unfold + finite_exhaustion
Unfold the MKO definition: h is continuous exactly when h⁻¹[V]∈τX for every V∈τY. τY has only three members, so the universal condition is equivalent to the conjunction of three membership conditions. Deciding continuity requires checking every open set of the target, not a sample.
S03 · equivalent
Before
h^{-1}[\varnothing]\in\tau_X\wedge h^{-1}[\{a\}]\in\tau_X\wedge h^{-1}[Y]\in\tau_XAfter
h\ \text{continuous}\iff h^{-1}[\{a\}]\in\tau_XConditions: h\ \text{total}
Rule: L_trivial_preimage · Uses: S02, G1
Leaf basis: and_intro_elim + image_preimage_def + topology_def
By Lemma L_trivial_preimage (proved in S03.1), every total map has h⁻¹[∅]=∅∈τX and h⁻¹[Y]=X∈τX, so these two conditions hold automatically. The only informative one is V={a}: h is continuous exactly when h⁻¹[{a}]∈τX. This also explains why checking only ∅ or Y can never detect discontinuity.
S04 · implies
Before
f^{-1}[\{a\}]=\{x\in X\mid f(x)=a\}After
f^{-1}[\{a\}]=\{1,2\}Conditions: none
Rule: image_preimage_def · Uses: G3
Leaf basis: image_preimage_def + set_builder
Scan every row of f's complete table: f(1)=a is collected, f(2)=a is collected, f(3)=b is not. The preimage must collect every source element mapping to a, not just one.
S05 · implies
Before
f^{-1}[\{a\}]=\{1,2\}After
\{1,2\}\in\tau_X\ \Rightarrow\ f\ \text{continuous};\quad f\ \text{is an open map}Conditions: none
Rule: mko_topological_continuity_def · Uses: S03, S04, G1, G3, open_map_def
Leaf basis: mko_topological_continuity_def + and_intro_elim + open_map_def
{1,2} is a member of τX, so by the equivalence of S03, f is continuous. The preimages of the three open sets are ∅, {1,2} and X, all in τX. Also take images of all four source open sets: f[∅]=∅, f[{1}]={a}, f[{1,2}]={a}, and f[X]=Y. All four images belong to τY, so f is also an open map by definition.
S06 · implies
Before
g^{-1}[\{a\}]=\{x\in X\mid g(x)=a\}After
g^{-1}[\{a\}]=\{1,3\}Conditions: none
Rule: image_preimage_def · Uses: G3
Leaf basis: image_preimage_def + set_builder
Scan g's table: g(1)=a collected, g(2)=b not, g(3)=a collected, giving {1,3}.
S07 · implies
Before
g^{-1}[\{a\}]=\{1,3\}After
\{1,3\}\notin\tau_X\ \Rightarrow\ g\ \text{not continuous}Conditions: none
Rule: quantifier_negation · Uses: S03, S06, G1
Leaf basis: quantifier_negation + finite_exhaustion
{1,3} equals none of the four members of τX, so it is not open. The open set {a} has a non-open preimage, so by quantifier negation 'every V∈τY has an open preimage' fails, and g is not continuous.
S08 · implies
Before
g[U]\ \text{for}\ U\in\tau_XAfter
g[\varnothing]=\varnothing,\ g[\{1\}]=\{a\},\ g[\{1,2\}]=Y,\ g[X]=Y\ \in\tau_YConditions: none
Rule: open_map_def · Uses: G1, G2, G3
Leaf basis: open_map_def + image_preimage_def + finite_exhaustion
Compute the image under g of every open set of the source: the image of ∅ is ∅; of {1} is {a}; of {1,2} is {a,b}=Y; of X is {a,b}=Y. All four images are in τY, so g is an open map. But S07 showed g is not continuous: open sets having open images is not continuity (MKO paragraph 3).
S09 · implies
Before
c^{-1}[\{a\}]=\{x\mid c(x)=a\}After
c^{-1}[\{a\}]=\varnothing\in\tau_X\ \Rightarrow\ c\ \text{continuous}Conditions: none
Rule: mko_topological_continuity_def · Uses: S03, G3, G1
Leaf basis: image_preimage_def + mko_topological_continuity_def
c sends every point to b and no point to a, so c⁻¹[{a}]=∅∈τX. By S03, c is continuous. A preimage does not need c to have an inverse: c is not injective, yet c⁻¹[{a}] is a well-defined set.
S10 · implies
Before
c[X]
After
c[X]=\{b\}\notin\tau_Y\ \Rightarrow\ c\ \text{not open}Conditions: none
Rule: quantifier_negation · Uses: G1, G2, G3
Leaf basis: quantifier_negation + open_map_def + image_preimage_def
X is open, and its image c[X]={b} is not in τY={∅,{a},Y}, so c is not an open map. c is continuous but not open; together with g from S07 and S08, neither of continuity and openness implies the other.
S11 · theorem_application
Before
h:X\to Y,\ k:Y\to Z\ \text{continuous},\ W\in\tau_ZAfter
(k\circ h)^{-1}[W]=h^{-1}[k^{-1}[W]]\in\tau_X\ \Rightarrow\ k\circ h\ \text{continuous}Conditions: none
Rule: L_comp_preimage · Uses: mko_topological_continuity_def
Leaf basis: composition_def + image_preimage_def + forall_intro
Let h and k be continuous and W∈τZ. By Lemma L_comp_preimage (proved in S11.1), (k∘h)⁻¹[W]=h⁻¹[k⁻¹[W]]. Continuity of k gives k⁻¹[W]∈τY, and continuity of h then gives h⁻¹[k⁻¹[W]]∈τX. W was an arbitrary open set, so k∘h is continuous. This holds for all topological spaces, not only finite ones.
S12 · implies
Before
q^{-1}[\{0\}]=\{a\}\in\tau_Y,\ f\ \text{continuous}After
(q\circ f)^{-1}[\{0\}]=f^{-1}[\{a\}]=\{1,2\}\in\tau_XConditions: none
Rule: forall_elim · Uses: S11, S05, G4, G3
Leaf basis: forall_elim + composition_def + image_preimage_def
q is continuous: q⁻¹[{0}]={a}∈τY, and the other two preimages are open automatically by L_trivial_preimage. By S11, q∘f is continuous, and (q∘f)⁻¹[{0}]=f⁻¹[q⁻¹[{0}]]=f⁻¹[{a}]={1,2}. Recomputing directly: q∘f sends 1 and 2 to 0 and 3 to 1, so (q∘f)⁻¹[{0}]={1,2}∈τX. The two computations agree.
S13 · implies
Before
h\mapsto A_h=h^{-1}[\{a\}]\ \text{for}\ h:X\to YAfter
\#\{h:X\to Y\}=2^3=8,\ \#\{h\ \text{continuous}\}=|\tau_X|=4Conditions: none
Rule: injective_surjective_def · Uses: S03, G1
Leaf basis: injective_surjective_def + finite_counting_basics + numeric_evaluation
Each map h:X→Y is determined by the set A_h=h⁻¹[{a}] (h(x)=a when x∈A_h and h(x)=b otherwise), and every subset A⊆X gives a map, so h↦A_h is a bijection between maps and subsets, giving 2^3=8 maps. By S03, h is continuous exactly when A_h∈τX, so there are exactly |τX|=4 continuous maps: A=∅ (that is c), A={1}, A={1,2} (that is f), A=X (constant a). g corresponds to A={1,3}, which is not among them.
Substeps and lemmas
S01.1 · implies
Before
\mathcal{F}\ \text{a finite chain},\ \varnothing,S\in\mathcal{F},\ F\subseteq\mathcal{F}After
\textstyle\bigcup F\in\mathcal{F},\ \bigcap F\in\mathcal{F}Conditions: none
Rule: nat_induction · Uses: nat_induction, set_operations_def, subset_def
Leaf basis: nat_induction + set_operations_def + subset_def
The family is finite, so every subfamily F is finite. If F is empty, ∪F=∅ and ∩F=S are in the family. If F is nonempty, induction on the number of members shows a finite chain has a largest member M and a smallest member m (a newly added member is comparable with the old largest and smallest). Every member is contained in M and contains m, so ∪F=M and ∩F=m, both in the family. Hence the family is closed under unions and intersections of every subfamily and is a topology, proving L_chain.
S03.1 · implies
Before
x\in h^{-1}[\varnothing],\ x\in h^{-1}[Y]After
h^{-1}[\varnothing]=\varnothing,\ h^{-1}[Y]=XConditions: h\ \text{total}
Rule: image_preimage_def · Uses: image_preimage_def, function_def
Leaf basis: image_preimage_def + function_def + set_extensionality
x∈h⁻¹[∅] means h(x)∈∅, which holds for no x, so h⁻¹[∅]=∅. x∈h⁻¹[Y] means h(x)∈Y; since h is total, every x∈X has h(x)∈Y, so h⁻¹[Y]=X. This proves L_trivial_preimage.
S11.1 · equivalent
Before
x\in(k\circ h)^{-1}[W]After
x\in h^{-1}[k^{-1}[W]]Conditions: none
Rule: image_preimage_def · Uses: composition_def, image_preimage_def
Leaf basis: composition_def + image_preimage_def + set_extensionality
x∈(k∘h)⁻¹[W] ⇔ (k∘h)(x)∈W ⇔ k(h(x))∈W ⇔ h(x)∈k⁻¹[W] ⇔ x∈h⁻¹[k⁻¹[W]]. Each move unfolds a definition, so by extensionality the two sets are equal, proving L_comp_preimage.