Lean library · module TopologyByExample.Theorems.FortissimoSpaces

Fortissimo spaces

Source file

The fortissimo space on a set X is X with one new point p adjoined: every point of X is isolated, and the open sets containing p are the sets containing p whose complement is countable. It is the one-point Lindelöfication of the discrete space X, as the Fort space is its one-point compactification: the cocountable sets play the part of the cofinite ones.

Every set containing p is closed, so an open set containing p is clopen, and the space is zero-dimensional; a set not containing p is closed exactly when it is countable. One member of an open cover containing p leaves out countably many points, so the space is Lindelöf. A countably infinite subset of X is closed and discrete, so the space is anticompact: its compact sets are its finite sets. For countable X every subset is open and the space is discrete. For uncountable X, p is the only point that is not isolated, so the space is almost discrete; and splitting X into two uncountable sets A and B, the closure of the open set A is A ∪ {p}, which is not open, so the space is not extremally disconnected.

Main definitions

Main statements

References

  • L. A. Steen and J. A. Seebach, Counterexamples in Topology, Example 25.

Tags

fortissimo space, one-point Lindelöfication, cocountable, almost discrete, anticompact

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 nonempty_sum_self_equiv

TopologyByExample.nonempty_sum_self_equiv

An infinite type is in bijection with the sum of two copies of itself.

theorem nonempty_sum_self_equiv (X : Type*) [Infinite X] : Nonempty (X ⊕ X ≃ X)
Proof
:=
  Cardinal.eq.1 <| by
    rw [Cardinal.mk_sum, Cardinal.lift_id, Cardinal.add_eq_self (Cardinal.aleph0_le_mk X)]

definition Fortissimo

TopologyByExample.Fortissimo

The fortissimo space on X: X with one new point adjoined, the points of X isolated and the open sets containing the new point those with countable complement. The topology is the instance Fortissimo.instTopologicalSpace.

def Fortissimo (X : Type*) : Type _
:= Option X
variable {X : Type*}

definition point

TopologyByExample.Fortissimo.point

The new point of the fortissimo space.

@[match_pattern] def point : Fortissimo X
:= Option.none

definition some

TopologyByExample.Fortissimo.some

The inclusion of X in the fortissimo space.

@[coe, match_pattern] def some : X → Fortissimo X
:= Option.some

instance

The points of X are points of the fortissimo space.

instance : CoeTC X (Fortissimo X)
Proof
:= ⟨some⟩

instance

The fortissimo space always has a point, the new one.

instance : Inhabited (Fortissimo X)
Proof
:= ⟨point⟩

definition rec

TopologyByExample.Fortissimo.rec

Recursor for Fortissimo using the forms point and ↑x.

@[elab_as_elim, induction_eliminator, cases_eliminator]
protected def rec {C : Fortissimo X → Sort*} (point : C point) (coe : ∀ x : X, C x) :
    ∀ z : Fortissimo X, C z
  | Option.none => point
  | Option.some x => coe x

theorem some_injective

TopologyByExample.Fortissimo.some_injective

The inclusion of X in the fortissimo space is injective.

theorem some_injective : Function.Injective (some : X → Fortissimo X)
Proof
:=
  Option.some_injective X

theorem some_inj

TopologyByExample.Fortissimo.some_inj

Two points of X are equal in the fortissimo space if and only if they are equal.

@[simp, norm_cast]
theorem some_inj {x y : X} : (x : Fortissimo X) = y ↔ x = y
Proof
:=
  some_injective.eq_iff

theorem some_ne_point

TopologyByExample.Fortissimo.some_ne_point

A point of X is not the new point.

@[simp]
theorem some_ne_point (x : X) : (x : Fortissimo X) ≠ point
Proof
:=
  nofun

theorem point_ne_some

TopologyByExample.Fortissimo.point_ne_some

The new point is not a point of X.

@[simp]
theorem point_ne_some (x : X) : point ≠ (x : Fortissimo X)
Proof
:=
  nofun

theorem preimage_some_singleton_some

TopologyByExample.Fortissimo.preimage_some_singleton_some

The trace on X of a singleton of a point of X.

@[simp]
theorem preimage_some_singleton_some (x : X) : some ⁻¹' {(x : Fortissimo X)} = {x}
Proof
:= by
  ext
  simp

theorem preimage_some_singleton_point

TopologyByExample.Fortissimo.preimage_some_singleton_point

The trace on X of the new point is empty.

@[simp]
theorem preimage_some_singleton_point : some ⁻¹' {(point : Fortissimo X)} = ∅
Proof
:= by
  ext
  simp

theorem image_some_preimage_some

TopologyByExample.Fortissimo.image_some_preimage_some

A set not containing the new point is the image of its trace on X.

theorem image_some_preimage_some {s : Set (Fortissimo X)} (hs : point ∉ s) :
    some '' (some ⁻¹' s) = s
Proof
:= by
  ext z
  cases z with
  | point => simp [hs]
  | coe x => simp

instance

The fortissimo space on a countable type is countable.

instance [Countable X] : Countable (Fortissimo X)
Proof
:=
  inferInstanceAs (Countable (Option X))

instance

The fortissimo space on an uncountable type is uncountable.

instance [Uncountable X] : Uncountable (Fortissimo X)
Proof
:=
  some_injective.uncountable

theorem countable_iff

TopologyByExample.Fortissimo.countable_iff

The fortissimo space on X is countable if and only if X is.

theorem countable_iff : Countable (Fortissimo X) ↔ Countable X
Proof
:=
  ⟨fun _ ↦ some_injective.countable, fun _ ↦ inferInstance⟩

theorem not_countable

TopologyByExample.Fortissimo.not_countable

The fortissimo space on an uncountable set is not countable.

theorem not_countable [Uncountable X] : ¬Countable (Fortissimo X)
Proof
:=
  _root_.not_countable

On this site: Fortissimo spaces: the space is not countable: the condition that \(X\) is uncountable

instance instTopologicalSpace

TopologyByExample.Fortissimo.instTopologicalSpace

The topology of the fortissimo space: a set is open if, when it contains the new point, its complement is countable.

instance instTopologicalSpace : TopologicalSpace (Fortissimo X)
Proof
where
  IsOpen s := point ∈ s → (some ⁻¹' s)ᶜ.Countable
  isOpen_univ _ := by simp
  isOpen_inter s t hs ht := fun ⟨hps, hpt⟩ ↦ by
    rw [preimage_inter, compl_inter]
    exact (hs hps).union (ht hpt)
  isOpen_sUnion S hS := fun hp ↦ by
    obtain ⟨s, hsS, hps⟩ := mem_sUnion.1 hp
    exact (hS s hsS hps).mono (compl_subset_compl.2 (preimage_mono (subset_sUnion_of_mem hsS)))

theorem isOpen_iff

TopologyByExample.Fortissimo.isOpen_iff

A set is open if and only if, when it contains the new point, its trace on X has countable complement.

theorem isOpen_iff {s : Set (Fortissimo X)} :
    IsOpen s ↔ (point ∈ s → (some ⁻¹' s)ᶜ.Countable)
Proof
:=
  Iff.rfl

theorem isOpen_of_point_notMem

TopologyByExample.Fortissimo.isOpen_of_point_notMem

A set not containing the new point is open.

theorem isOpen_of_point_notMem {s : Set (Fortissimo X)} (hs : point ∉ s) : IsOpen s
Proof
:=
  fun h ↦ absurd h hs

theorem isClosed_of_point_mem

TopologyByExample.Fortissimo.isClosed_of_point_mem

A set containing the new point is closed.

theorem isClosed_of_point_mem {s : Set (Fortissimo X)} (hs : point ∈ s) : IsClosed s
Proof
:=
  isOpen_compl_iff.1 (isOpen_of_point_notMem (by simpa using hs))

theorem isClosed_iff

TopologyByExample.Fortissimo.isClosed_iff

A set is closed if and only if, when it does not contain the new point, its trace on X is countable.

theorem isClosed_iff {s : Set (Fortissimo X)} :
    IsClosed s ↔ (point ∉ s → (some ⁻¹' s).Countable)
Proof
:= by
  rw [← isOpen_compl_iff, isOpen_iff, preimage_compl, compl_compl, mem_compl_iff]

theorem isClosed_of_countable

TopologyByExample.Fortissimo.isClosed_of_countable

A set whose trace on X is countable is closed.

theorem isClosed_of_countable {s : Set (Fortissimo X)} (hs : (some ⁻¹' s).Countable) :
    IsClosed s
Proof
:=
  isClosed_iff.2 fun _ ↦ hs

theorem isOpen_singleton_some

TopologyByExample.Fortissimo.isOpen_singleton_some

Every point of X is isolated.

theorem isOpen_singleton_some (x : X) : IsOpen ({(x : Fortissimo X)} : Set (Fortissimo X))
Proof
:=
  isOpen_of_point_notMem (by simp)

theorem nhds_some

TopologyByExample.Fortissimo.nhds_some

The neighbourhoods of a point of X are the sets containing it.

theorem nhds_some (x : X) : 𝓝 (x : Fortissimo X) = pure (x : Fortissimo X)
Proof
:=
  (isOpen_singleton_iff_nhds_eq_pure _).1 (isOpen_singleton_some x)

theorem isClopen_singleton_some

TopologyByExample.Fortissimo.isClopen_singleton_some

Every singleton of a point of X is clopen.

theorem isClopen_singleton_some (x : X) : IsClopen ({(x : Fortissimo X)} : Set (Fortissimo X))
Proof
:=
  ⟨isClosed_of_countable (by simp), isOpen_singleton_some x⟩

theorem mem_nhds_point_iff

TopologyByExample.Fortissimo.mem_nhds_point_iff

The neighbourhoods of the new point are the sets containing it whose trace on X has countable complement; all of them are open.

theorem mem_nhds_point_iff {s : Set (Fortissimo X)} :
    s ∈ 𝓝 (point : Fortissimo X) ↔ point ∈ s ∧ (some ⁻¹' s)ᶜ.Countable
Proof
:= by
  refine ⟨fun hs ↦ ?_, fun ⟨hp, hc⟩ ↦ IsOpen.mem_nhds (fun _ ↦ hc) hp⟩
  obtain ⟨t, hts, ht, hpt⟩ := mem_nhds_iff.1 hs
  exact ⟨hts hpt, (ht hpt).mono (compl_subset_compl.2 (preimage_mono hts))⟩

theorem discreteTopology

TopologyByExample.Fortissimo.discreteTopology

For countable X the fortissimo space is discrete: every set is open.

theorem discreteTopology [Countable X] : DiscreteTopology (Fortissimo X)
Proof
:=
  discreteTopology_iff_forall_isOpen.2 fun _ _ ↦ Set.to_countable _

On this site: Fortissimo spaces: Countable sets give the discrete space

instance t1Space

TopologyByExample.Fortissimo.t1Space

The fortissimo space is T₁: a singleton of a point of X has countable trace, and the singleton of the new point contains it.

instance t1Space : T1Space (Fortissimo X)
Proof
:=
  ⟨fun z ↦ by
    cases z with
    | point => exact isClosed_of_point_mem rfl
    | coe x => exact (isClopen_singleton_some x).isClosed⟩

instance t2Space

TopologyByExample.Fortissimo.t2Space

The fortissimo space is Hausdorff: a point of X and any other point are separated by the singleton of the first and its complement.

instance t2Space : T2Space (Fortissimo X)
Proof
:= by
  have key (x : X) (z : Fortissimo X) (h : (x : Fortissimo X) ≠ z) :
      ∃ u v : Set (Fortissimo X), IsOpen u ∧ IsOpen v ∧ (x : Fortissimo X) ∈ u ∧ z ∈ v ∧
        Disjoint u v :=
    ⟨{(x : Fortissimo X)}, {(x : Fortissimo X)}ᶜ, isOpen_singleton_some x,
      (isClopen_singleton_some x).isClosed.isOpen_compl, rfl, mem_compl_singleton_iff.2 h.symm,
      disjoint_compl_right⟩
  refine ⟨fun y z hyz ↦ ?_⟩
  cases y with
  | coe x => exact key x z hyz
  | point =>
    cases z with
    | point => exact absurd rfl hyz
    | coe x =>
      obtain ⟨u, v, hu, hv, hxu, hzv, huv⟩ := key x point hyz.symm
      exact ⟨v, u, hv, hu, hzv, hxu, huv.symm⟩

instance lindelofSpace

TopologyByExample.Fortissimo.lindelofSpace

The fortissimo space is Lindelöf: a member of an open cover containing the new point leaves out only countably many points, and a countable set is Lindelöf.

instance lindelofSpace : LindelofSpace (Fortissimo X)
Proof
:= by
  refine ⟨isLindelof_iff_countable_subcover.2 fun {ι} U hU hcover ↦ ?_⟩
  obtain ⟨i, hi⟩ := mem_iUnion.1 (hcover (mem_univ point))
  have hc : ((U i)ᶜ).Countable := by
    refine ((hU i hi).image some).mono fun z hz ↦ ?_
    cases z with
    | point => exact absurd hi hz
    | coe x => exact ⟨x, hz, rfl⟩
  obtain ⟨r, hr, hrU⟩ := hc.isLindelof.elim_countable_subcover U hU fun z _ ↦ hcover (mem_univ z)
  refine ⟨insert i r, hr.insert i, fun z _ ↦ ?_⟩
  by_cases hz : z ∈ U i
  · exact mem_iUnion₂.2 ⟨i, mem_insert _ _, hz⟩
  · obtain ⟨j, hj, hzj⟩ := mem_iUnion₂.1 (hrU hz)
    exact mem_iUnion₂.2 ⟨j, mem_insert_of_mem _ hj, hzj⟩

On this site: Fortissimo spaces: the space is Lindelöf

theorem isClosed_and_isDiscrete_of_countable

TopologyByExample.Fortissimo.isClosed_and_isDiscrete_of_countable

Countable sets are closed and discrete. A countable set of points of X is closed in the fortissimo space, and discrete as a subspace.

theorem isClosed_and_isDiscrete_of_countable {A : Set X} (hA : A.Countable) :
    IsClosed (some '' A : Set (Fortissimo X)) ∧ IsDiscrete (some '' A : Set (Fortissimo X))
Proof
:= by
  refine ⟨isClosed_of_countable (by rwa [some_injective.preimage_image]),
    isDiscrete_iff_forall_mem_exists_isOpen.2 ?_⟩
  rintro _ ⟨x, hx, rfl⟩
  refine ⟨{(x : Fortissimo X)}, isOpen_singleton_some x, ?_⟩
  ext z
  simp only [mem_inter_iff, mem_singleton_iff, mem_image, and_iff_left_iff_imp]
  rintro rfl
  exact ⟨x, hx, rfl⟩

On this site: Fortissimo spaces: Countable sets are closed and discrete

instance anticompactSpace

TopologyByExample.Fortissimo.anticompactSpace

The fortissimo space is anticompact: if a compact set were infinite, it would contain a countably infinite set of points of X, which is closed and discrete, hence compact and finite.

instance anticompactSpace : AnticompactSpace (Fortissimo X)
Proof
:= by
  refine ⟨fun K hK ↦ ?_⟩
  by_contra hinf
  obtain ⟨T, hTK, hTc, hTi⟩ :=
    (show K.Infinite from hinf).sdiff (finite_singleton point) |>.exists_subset_countable_infinite
  have hT : some '' (some ⁻¹' T) = T :=
    image_some_preimage_some fun h ↦ (hTK h).2 rfl
  obtain ⟨hcl, hdisc⟩ := isClosed_and_isDiscrete_of_countable (X := X) (hTc.preimage some_injective)
  rw [hT] at hcl hdisc
  exact hTi ((hK.of_isClosed_subset hcl (hTK.trans sdiff_subset)).finite hdisc)

On this site: Fortissimo spaces: the space is anticompact

theorem isCompact_iff_finite

TopologyByExample.Fortissimo.isCompact_iff_finite

Compact sets are finite. In the fortissimo space, the compact sets are exactly the finite sets.

theorem isCompact_iff_finite {s : Set (Fortissimo X)} : IsCompact s ↔ s.Finite
Proof
:=
  ⟨AnticompactSpace.finite_of_isCompact s, Set.Finite.isCompact⟩

On this site: Fortissimo spaces: Compact sets are finite

theorem tendsto_nhds_iff

TopologyByExample.Fortissimo.tendsto_nhds_iff

Convergent sequences are eventually constant. In the fortissimo space, a sequence converges to a point if and only if it is eventually equal to it.

theorem tendsto_nhds_iff {u : ℕ → Fortissimo X} {z : Fortissimo X} :
    Tendsto u atTop (𝓝 z) ↔ ∀ᶠ n in atTop, u n = z
Proof
:=
  ⟨AnticompactSpace.sequentiallyDiscreteSpace.eventually_eq_of_tendsto u z,
    tendsto_nhds_of_eventually_eq⟩

On this site: Fortissimo spaces: Convergent sequences are eventually constant

instance zeroDimensionalSpace

TopologyByExample.Fortissimo.zeroDimensionalSpace

The fortissimo space is zero-dimensional: the singletons of points of X are clopen, and so is every open set containing the new point, since every set containing it is closed.

instance zeroDimensionalSpace : ZeroDimensionalSpace (Fortissimo X)
Proof
:= by
  refine ZeroDimensionalSpace.of_isTopologicalBasis (u := {s | IsClopen s}) (fun _ h ↦ h) ?_
  refine TopologicalSpace.isTopologicalBasis_of_isOpen_of_nhds (fun _ h ↦ h.isOpen)
    fun z U hz hU ↦ ?_
  cases z with
  | point => exact ⟨U, ⟨isClosed_of_point_mem hz, hU⟩, hz, subset_rfl⟩
  | coe x =>
    exact ⟨{(x : Fortissimo X)}, isClopen_singleton_some x, rfl, singleton_subset_iff.2 hz⟩

On this site: Fortissimo spaces: the space is zero-dimensional

theorem point_mem_closure

TopologyByExample.Fortissimo.point_mem_closure

The new point lies in the closure of every uncountable set of points of X: a neighbourhood of it leaves out only countably many of them.

theorem point_mem_closure {A : Set X} (hA : ¬A.Countable) :
    (point : Fortissimo X) ∈ closure (some '' A)
Proof
:= by
  refine mem_closure_iff.2 fun U hU hp ↦ ?_
  obtain ⟨x, hxA, hxU⟩ : (A \ (some ⁻¹' U)ᶜ).Nonempty :=
    nonempty_of_not_subset fun h ↦ hA ((hU hp).mono h)
  exact ⟨x, not_not.1 hxU, x, hxA, rfl⟩
variable [Uncountable X]

theorem not_isOpen_singleton_point

TopologyByExample.Fortissimo.not_isOpen_singleton_point

For uncountable X the new point is not isolated: the complement of its singleton is the whole of X.

theorem not_isOpen_singleton_point : ¬IsOpen ({point} : Set (Fortissimo X))
Proof
:= fun h ↦ by
  have hc := h rfl
  rw [preimage_some_singleton_point, compl_empty, countable_univ_iff] at hc
  exact _root_.not_countable hc

theorem almostDiscreteSpace

TopologyByExample.Fortissimo.almostDiscreteSpace

For uncountable X the fortissimo space is almost discrete: the new point is its only point that is not isolated.

theorem almostDiscreteSpace : AlmostDiscreteSpace (Fortissimo X)
Proof
:=
  ⟨⟨point, not_isOpen_singleton_point, fun z hz ↦ by
    cases z with
    | point => exact absurd rfl hz
    | coe x => exact isOpen_singleton_some x⟩⟩

On this site: Fortissimo spaces: the space is almost discrete when \(X\) is uncountable

theorem not_extremallyDisconnected

TopologyByExample.Fortissimo.not_extremallyDisconnected

For uncountable X the fortissimo space is not extremally disconnected: if X is the union of two disjoint uncountable sets A and B, the closure of the open set A contains the new point but no point of B, so its complement is not countable, and it is not open.

theorem not_extremallyDisconnected : ¬ExtremallyDisconnected (Fortissimo X)
Proof
:= by
  intro h
  obtain ⟨e⟩ := nonempty_sum_self_equiv X
  have hinj : (e ∘ Sum.inl).Injective := e.injective.comp Sum.inl_injective
  have hinj' : (e ∘ Sum.inr).Injective := e.injective.comp Sum.inr_injective
  have hunc {f : X → X} (hf : f.Injective) : ¬(range f).Countable := fun hc ↦ by
    have := hc.preimage hf
    rw [preimage_range, countable_univ_iff] at this
    exact _root_.not_countable this
  set A := range (e ∘ Sum.inl)
  have hclosed := h.open_closure (some '' A) (isOpen_of_point_notMem (by simp))
  have hc := hclosed (point_mem_closure (hunc hinj))
  refine hunc hinj' (hc.mono ?_)
  rintro _ ⟨y, rfl⟩ hy
  have hmem : (some (e (Sum.inr y)) : Fortissimo X) ∈ closure (some '' A) := hy
  obtain ⟨_, hxo, x, ⟨w, hw⟩, rfl⟩ := mem_closure_iff.1 hmem _
    (isOpen_singleton_some (e (Sum.inr y))) rfl
  rw [mem_singleton_iff, some_inj, ← hw] at hxo
  exact Sum.inl_ne_inr (e.injective hxo)

On this site: Fortissimo spaces: the space is not extremally disconnected when \(X\) is uncountable

On this site: Space: Fortissimo space on an uncountable set; Family: Fortissimo spaces