Goal and scope
Let X={1,2,3,4} and τ={∅,{1},{1,2},{3,4},{1,3,4},X}. Decide whether N1={1,2,3} and N2={2,3,4} are neighborhoods of the point 2; prove that in a finite topology the neighborhoods of x are exactly the subsets containing O_x (the intersection of all open sets containing x), and use this to list all neighborhoods of the points 1, 2, 3 and 4; prove that neighborhoods are closed upwards; and show that the verdict for the same set can change under the discrete topology.
Works inside the MKO's scope: X, τ, the point and the candidate sets are explicit (assumption a1), and a neighborhood means a set containing an open set that contains the point, with no distance, radius or assumed least neighborhood (assumption a2); the least neighborhood O_x in this example is derived from τ being finite, not assumed. It does not formalize the neighborhood filter and does not change the canonical MKO or its English edition.
Main derivation
S01 · implies
Before
\tau=\{\varnothing,\{1\},\{1,2\},\{3,4\},\{1,3,4\},X\}After
(X,\tau)\ \text{is a topological space}Conditions: \tau\ \text{finite}
Rule: topology_def · Uses: G1
Leaf basis: topology_def + set_operations_def + nat_induction
Confirm the premise: the six members are subsets of X, and ∅, X∈τ. The unions and intersections of the four nontrivial members in pairs are: {1},{1,2} give {1,2} and {1}; {1},{3,4} give {1,3,4} and ∅; {1},{1,3,4} give {1,3,4} and {1}; {1,2},{3,4} give X and ∅; {1,2},{1,3,4} give X and {1}; {3,4},{1,3,4} give {1,3,4} and {3,4}; all are in τ. τ is finite, so every subfamily is finite, and induction on the number of members turns pairwise closure together with ∅, X∈τ into closure under unions of all subfamilies and finite intersections.
S02 · equivalent
Before
N\in\mathcal{N}(x)After
\exists U\in\tau,\ x\in U\ \wedge\ U\subseteq N
Conditions: x\in X,\ N\subseteq X
Rule: def_unfold · Uses: S01, mko_neighborhood_def
Leaf basis: def_unfold + mko_neighborhood_def
Unfold the MKO definition: N is a neighborhood of x exactly when some open witness U contains x and is contained in N. τ has only six members, so the existential search is finite: an affirmative answer needs one witness, while a negative answer must rule out all six members (finite_witness_search).
S03 · implies
Before
\tau_2=\{U\in\tau\mid 2\in U\}After
\tau_2=\{\{1,2\},X\}Conditions: none
Rule: set_builder · Uses: G1
Leaf basis: set_builder + finite_witness_search
Check each member of τ for the point 2: ∅ no, {1} no, {1,2} yes, {3,4} no, {1,3,4} no, X yes. So the only candidate witnesses for the point 2 are {1,2} and X.
S04 · implies
Before
N_1=\{1,2,3\}After
U=\{1,2\}:\ 2\in U,\ U\subseteq N_1\ \Rightarrow\ N_1\in\mathcal{N}(2)Conditions: none
Rule: exists_intro · Uses: S02, S03, G2
Leaf basis: exists_intro + subset_def
Take the witness U={1,2}∈τ: 2∈U, and both elements 1 and 2 of U lie in N1, so U⊆N1. By S02 and ∃-introduction, N1 is a neighborhood of 2.
S05 · implies
Before
N_1=\{1,2,3\}After
N_1\notin\tau
Conditions: none
Rule: finite_witness_search · Uses: G1, G2
Leaf basis: finite_witness_search + set_extensionality
Compare N1 with each of the six members of τ; none equals {1,2,3}, so N1 is not open. Together with S04: N1 is a neighborhood of 2 but is not open. A neighborhood need not be open.
S06 · implies
Before
N_2=\{2,3,4\},\ 2\in N_2After
\{1,2\}\not\subseteq N_2,\ X\not\subseteq N_2\ \Rightarrow\ N_2\notin\mathcal{N}(2)Conditions: none
Rule: quantifier_negation · Uses: S02, S03, G2
Leaf basis: quantifier_negation + finite_witness_search + subset_def
Although 2∈N2, a witness is still needed. By S03 only {1,2} and X contain 2; both contain 1, and 1∉N2, so neither is contained in N2. The other four open sets do not contain 2 and cannot serve. With no witness, quantifier negation gives that N2 is not a neighborhood of 2.
S07 · theorem_application
Before
O_x=\textstyle\bigcap\{U\in\tau\mid x\in U\}After
O_x\in\tau,\ x\in O_x,\ (N\in\mathcal{N}(x)\iff O_x\subseteq N)Conditions: \tau\ \text{finite}
Rule: L_least_open · Uses: S01
Leaf basis: topology_def + set_operations_def + subset_def
To list all neighborhoods, apply Lemma L_least_open (proved in S07.1 to S07.3): when τ is finite, the intersection O_x of all open sets containing x is itself open and contains x, and N is a neighborhood of x exactly when O_x⊆N. So 'search for a witness' becomes 'check one inclusion'. This least open neighborhood is derived from finiteness; it is not the kind of default that MKO assumption a2 rules out.
S08 · implies
Before
O_2=\{1,2\}\cap XAfter
O_2=\{1,2\},\ \mathcal{N}(2)=\{\{1,2\},\{1,2,3\},\{1,2,4\},X\}Conditions: none
Rule: L_least_open · Uses: S03, S07
Leaf basis: L_least_open + finite_counting_basics
By S03, O_2={1,2}∩X={1,2}. By S07 the neighborhoods of 2 are exactly the subsets containing {1,2}; the elements 3 and 4 may be added freely, giving 2^2=4 sets: {1,2}, {1,2,3}, {1,2,4}, X. This agrees with S04 (N1 contains {1,2}) and S06 (N2 lacks 1).
S09 · implies
Before
\tau_1=\{\{1\},\{1,2\},\{1,3,4\},X\}After
O_1=\{1\},\ \mathcal{N}(1)=\{N\subseteq X\mid 1\in N\}Conditions: none
Rule: L_least_open · Uses: G1, S07
Leaf basis: L_least_open + set_builder + finite_counting_basics
The open sets containing 1 are {1}, {1,2}, {1,3,4} and X, with intersection O_1={1}. So the neighborhoods of 1 are exactly the subsets containing 1; each of 2, 3, 4 may be included or not, giving 2^3=8 sets. The point 1 has more neighborhoods than the point 2 because {1} itself is open.
S10 · implies
Before
\tau_3=\tau_4=\{\{3,4\},\{1,3,4\},X\}After
O_3=O_4=\{3,4\},\ \mathcal{N}(3)=\mathcal{N}(4)=\{\{3,4\},\{1,3,4\},\{2,3,4\},X\}Conditions: none
Rule: L_least_open · Uses: G1, S07
Leaf basis: L_least_open + set_builder
The open sets containing 3 and those containing 4 form the same family: {3,4}, {1,3,4}, X, with intersection {3,4}. So 3 and 4 have exactly the same 4 neighborhoods. Note that N2={2,3,4} is a neighborhood of 3 and of 4 but not of 2 (S06): whether a set is a neighborhood depends on the point.
S11 · theorem_application
Before
N\in\mathcal{N}(x),\ N\subseteq M\subseteq XAfter
M\in\mathcal{N}(x)Conditions: N\subseteq M\subseteq X
Rule: L_upward · Uses: S04
Leaf basis: subset_def + mko_neighborhood_def
Apply the upward-closure lemma L_upward (proved in S11.1, valid in every topological space). Example: N1={1,2,3} is a neighborhood of 2 and N1⊆X, so X is a neighborhood of 2 as well, matching the list in S08.
S12 · implies
Before
\{2\}\ \text{under}\ \tau\ \text{and under}\ \deltaAfter
\{2\}\notin\mathcal{N}_\tau(2),\quad \{2\}\in\mathcal{N}_\delta(2)Conditions: none
Rule: mko_neighborhood_def · Uses: G3, S08
Leaf basis: mko_neighborhood_def + exists_intro + quantifier_negation
Under τ, O_2={1,2}⊄{2}, so {2} is not a neighborhood of 2 (S08). Under the discrete topology δ, {2}∈δ is itself an open set containing 2 and serves as its own witness, so {2} is a neighborhood of 2. Same underlying set, same point, same candidate, yet the verdict changes with the topology: the list of neighborhoods depends on the topology and the point, not only on the underlying set (MKO paragraph 3).
Substeps and lemmas
S07.1 · implies
Before
\tau_x=\{U\in\tau\mid x\in U\}After
O_x\in\tau,\ x\in O_x
Conditions: \tau\ \text{finite}
Rule: mko_topological_space_def · Uses: mko_topological_space_def, set_operations_def
Leaf basis: mko_topological_space_def + set_operations_def
τ_x is a subfamily of τ, finite because τ is finite, and nonempty because X∈τ_x. By the axiom on finite intersections, O_x∈τ. Every member of τ_x contains x, so x lies in their intersection.
S07.2 · implies
Before
O_x\subseteq N
After
N\in\mathcal{N}(x)Conditions: none
Rule: exists_intro · Uses: S07.1, mko_neighborhood_def
Leaf basis: exists_intro + mko_neighborhood_def
(⇐) If O_x⊆N, take the witness U=O_x: by S07.1, U∈τ and x∈U, and U⊆N, so N is a neighborhood of x.
S07.3 · implies
Before
N\in\mathcal{N}(x)After
O_x\subseteq N
Conditions: none
Rule: exists_elim · Uses: S07.1, mko_neighborhood_def
Leaf basis: exists_elim + set_operations_def + subset_def
(⇒) If N is a neighborhood of x, take a witness U: U∈τ, x∈U, U⊆N. Then U∈τ_x, and the intersection O_x is contained in each member, so O_x⊆U⊆N. S07.1 to S07.3 together prove L_least_open.
S11.1 · implies
Before
x\in U\subseteq N\subseteq M,\ U\in\tau
After
x\in U\subseteq M\ \Rightarrow\ M\in\mathcal{N}(x)Conditions: none
Rule: subset_def · Uses: mko_neighborhood_def, subset_def
Leaf basis: subset_def + mko_neighborhood_def + forall_intro
Let U be a witness for N. From U⊆N and N⊆M, transitivity of ⊆ gives U⊆M; U is still an open set containing x, so the same U witnesses M, and M is a neighborhood of x. Since x, N and M were arbitrary, this proves L_upward.