Lean library · module TopologyByExample.Theorems.ExcludedPointTopologies

Excluded point topologies

Source file

The excluded point topology on a set X ∪ {p} has as open sets the whole space and every set not containing the excluded point p. It is the open extension of the discrete space X (TopologyByExample.OpenExtension X with [DiscreteTopology X]), and this file proves what the family of these spaces needs, for every discrete X or under conditions on its size.

Whatever X is, the space is compact and ultraconnected (instances of OpenExtension), and Alexandrov (since a discrete space is). If X is nonempty it is almost discrete, and if X has at least two points it is semiregular. (When X has one point the space is the Sierpiński space, which is not semiregular: the closure of the isolated point is everything.)

Main statements

References

Steen and Seebach, Counterexamples in Topology, Examples 13–15.

This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

theorem nontrivial_of_uncountable

TopologyByExample.nontrivial_of_uncountable

An uncountable type has two distinct elements.

theorem nontrivial_of_uncountable (X : Type*) [Uncountable X] : Nontrivial X
Proof
:=
  not_subsingleton_iff_nontrivial.1 fun _ ↦ not_countable (α := X) inferInstance
variable {X : Type*} [TopologicalSpace X] [DiscreteTopology X]

theorem isOpen_iff_of_discrete

TopologyByExample.OpenExtension.isOpen_iff_of_discrete

In the excluded point topology, a set is open if and only if it misses the new point or is the whole space.

theorem isOpen_iff_of_discrete {s : Set (OpenExtension X)} :
    IsOpen s ↔ point ∉ s ∨ s = univ
Proof
:= by
  rw [isOpen_iff, ← imp_iff_not_or]
  exact and_iff_right (isOpen_discrete _)

theorem isClosed_iff_of_discrete

TopologyByExample.OpenExtension.isClosed_iff_of_discrete

In the excluded point topology, a set is closed if and only if it is empty or contains the new point.

theorem isClosed_iff_of_discrete {s : Set (OpenExtension X)} :
    IsClosed s ↔ s = ∅ ∨ point ∈ s
Proof
:= by
  rw [isClosed_iff, ← not_nonempty_iff_eq_empty, ← imp_iff_not_or]
  exact and_iff_right (isClosed_discrete _)

On this site: Excluded point topologies: The closed sets are the empty set and the sets containing the excluded point

theorem closure_eq_insert_point

TopologyByExample.OpenExtension.closure_eq_insert_point

In the excluded point topology, the closure of a nonempty set is the set with the new point added.

theorem closure_eq_insert_point {s : Set (OpenExtension X)} (hs : s.Nonempty) :
    closure s = insert point s
Proof
:=
  (closure_minimal (subset_insert _ _)
    (isClosed_iff_of_discrete.2 (Or.inr (mem_insert _ _)))).antisymm
    (insert_subset (point_mem_closure hs) subset_closure)

On this site: Excluded point topologies: The closure of a nonempty set is the set with the excluded point added

theorem isOpen_singleton_some

TopologyByExample.OpenExtension.isOpen_singleton_some

In the excluded point topology, every point other than the new one is isolated.

theorem isOpen_singleton_some (x : X) : IsOpen ({(x : OpenExtension X)} : Set _)
Proof
:= by
  simpa using isOpen_image_some (X := X) (isOpen_discrete {x})

theorem tendsto_nhds_some_iff

TopologyByExample.OpenExtension.tendsto_nhds_some_iff

In the excluded point topology, a map converges along a filter to a point other than the new one exactly when it eventually takes that value.

theorem tendsto_nhds_some_iff {α : Type*} {f : Filter α} {u : α → OpenExtension X} {x : X} :
    Tendsto u f (𝓝 (x : OpenExtension X)) ↔ ∀ᶠ a in f, u a = x
Proof
:= by
  rw [nhds_some, nhds_discrete, map_pure, tendsto_pure]

theorem tendsto_atTop_nhds_iff

TopologyByExample.OpenExtension.tendsto_atTop_nhds_iff

In the excluded point topology, a sequence converges to a point if and only if the point is the new one or the sequence is eventually equal to it.

theorem tendsto_atTop_nhds_iff (u : ℕ → OpenExtension X) (z : OpenExtension X) :
    Tendsto u atTop (𝓝 z) ↔ z = point ∨ ∀ᶠ n in atTop, u n = z
Proof
:= by
  cases z with
  | point => exact iff_of_true (tendsto_nhds_point _ _) (Or.inl rfl)
  | coe x => rw [tendsto_nhds_some_iff, or_iff_right (some_ne_point x)]

On this site: Excluded point topologies: Every sequence converges to the excluded point

instance almostDiscreteSpace

TopologyByExample.OpenExtension.almostDiscreteSpace

In the excluded point topology on a nonempty set, the new point is the only point that is not isolated.

instance almostDiscreteSpace [Nonempty X] : AlmostDiscreteSpace (OpenExtension X)
Proof
:= by
  refine ⟨⟨point, fun h ↦ ?_, fun z hz ↦ ?_⟩⟩
  · rcases isOpen_iff_of_discrete.1 h with h | h
    · exact h rfl
    · exact some_ne_point (Classical.arbitrary X)
        (mem_singleton_iff.1 (h ▸ mem_univ (some (Classical.arbitrary X))))
  · cases z with
    | point => exact absurd rfl hz
    | coe x => exact isOpen_singleton_some x

theorem interior_closure_singleton_some

TopologyByExample.OpenExtension.interior_closure_singleton_some

In the excluded point topology on a set with two points, every point other than the new one is regular open: the interior of its closure, which is the point with the new point added, is the point itself.

theorem interior_closure_singleton_some [Nontrivial X] (x : X) :
    interior (closure ({(x : OpenExtension X)} : Set _)) = {(x : OpenExtension X)}
Proof
:= by
  rw [closure_eq_insert_point (singleton_nonempty _)]
  refine Subset.antisymm (fun z hz ↦ ?_)
    (interior_maximal (subset_insert _ _) (isOpen_singleton_some x))
  obtain ⟨t, hts, ht, hzt⟩ := mem_interior.1 hz
  obtain ⟨y, hy⟩ := exists_ne x
  have hp : point ∉ t := fun hp ↦ by
    have := hts (eq_univ_of_isOpen_of_point_mem ht hp ▸ mem_univ (y : OpenExtension X))
    simp [hy] at this
  rcases hts hzt with rfl | h
  · exact absurd hzt hp
  · exact h

instance semiregularSpace

TopologyByExample.OpenExtension.semiregularSpace

The excluded point topology on a set with two points is semiregular: the whole space and the points other than the new one are regular open, and they form a base.

instance semiregularSpace [Nontrivial X] : SemiregularSpace (OpenExtension X)
Proof
:= by
  refine ⟨isTopologicalBasis_of_isOpen_of_nhds (fun s hs ↦ hs ▸ isOpen_interior)
    fun z u hzu hu ↦ ?_⟩
  cases z with
  | point =>
    exact ⟨univ, by simp, mem_univ _, (eq_univ_of_isOpen_of_point_mem hu hzu).symm ▸ subset_rfl⟩
  | coe x =>
    exact ⟨_, interior_closure_singleton_some x, rfl, singleton_subset_iff.2 hzu⟩

On this site: Space: Excluded point topology on a countable set; Family: Excluded point topologies