Lean library · module TopologyByExample.Operators.OpenExtension

The open extension of a space

Source file

The open extension of a topological space X is X with one new point p adjoined, whose open sets are the open sets of X together with the whole space. Equivalently, a set is open if its trace on X is open and it is the whole space as soon as it contains p.

So the only neighbourhood of the new point is the whole space, and the new point is closed. X sits inside the open extension as an open subspace, dense when X is nonempty, and the closed sets are the empty set and the sets containing the new point whose trace on X is closed. Every point specialises to the new point, so the new point lies in the closure of every nonempty set: the open extension is compact and ultraconnected, whatever X is.

The name records that X is an open subspace of its open extension, and that the open sets other than the whole space are exactly the open sets of X. The companion construction is TopologyByExample.ClosedExtension, where the new point is open and lies in every nonempty open set, and X is a closed subspace. The excluded point topologies are the open extensions of discrete spaces.

Main definitions

Main statements

Transfer theorems

How the properties of the open extension X* depend on those of X:

  • Whatever X is, X* is compact (so Lindelöf, σ-compact, countably compact, weakly locally compact, locally relatively compact, paracompact and countably paracompact), sequentially compact and limit point compact, and ultraconnected (so path connected, connected, strongly connected, pseudocompact and normal).
  • X* is first countable, second countable, separable, satisfies the countable chain condition, or is locally connected, locally path connected, hyperconnected, scattered, completely normal or hereditarily connected, exactly when X is. If X is nonempty, X* is of second category exactly when X is. X* is extremally disconnected exactly when X is hyperconnected.
  • If X is nonempty, X* is not R₀ (so not T₁, Hausdorff, Urysohn, functionally Hausdorff, regular, completely regular, perfectly normal, metrizable, completely metrizable or discrete), not totally disconnected, totally separated, zero-dimensional or totally path disconnected, and not indiscrete.
  • Semiregularity: if X* is semiregular so is X; if X is regular and not hyperconnected then X* is semiregular; if X is nonempty and hyperconnected then X* is not semiregular.

References

The construction is the open extension of Steen and Seebach, Counterexamples in Topology, Example 16, item 8.

Tags

open extension, excluded point, adjoining a point

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

definition OpenExtension

TopologyByExample.OpenExtension

The open extension of X: X with one new point adjoined, whose open sets are the open sets of X and the whole space. The topology is the instance OpenExtension.instTopologicalSpace.

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

definition point

TopologyByExample.OpenExtension.point

The new point of the open extension.

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

definition some

TopologyByExample.OpenExtension.some

The inclusion of X in its open extension.

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

instance

The points of X are points of its open extension.

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

instance

The open extension always has a point, the new one.

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

definition rec

TopologyByExample.OpenExtension.rec

Recursor for OpenExtension using the forms point and ↑x.

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

theorem some_injective

TopologyByExample.OpenExtension.some_injective

The inclusion of X in its open extension is injective.

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

theorem some_inj

TopologyByExample.OpenExtension.some_inj

Two points of X are equal in the open extension if and only if they are equal.

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

theorem some_ne_point

TopologyByExample.OpenExtension.some_ne_point

A point of X is not the new point.

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

theorem point_ne_some

TopologyByExample.OpenExtension.point_ne_some

The new point is not a point of X.

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

theorem range_some

TopologyByExample.OpenExtension.range_some

The points of X are exactly the points other than the new one.

theorem range_some : range (some : X → OpenExtension X) = {point}ᶜ
Proof
:= by
  ext z
  cases z with
  | point => simp
  | coe x => simp

theorem preimage_some_image_some

TopologyByExample.OpenExtension.preimage_some_image_some

The trace on X of the image of a set of X is the set.

@[simp]
theorem preimage_some_image_some (s : Set X) :
    some ⁻¹' (some '' s : Set (OpenExtension X)) = s
Proof
:=
  some_injective.preimage_image s

theorem image_some_preimage_some

TopologyByExample.OpenExtension.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 (OpenExtension X)} (hs : point ∉ s) :
    some '' (some ⁻¹' s) = s
Proof
:= by
  rw [image_preimage_eq_inter_range, range_some, inter_eq_left]
  exact fun z hz hzp ↦ hs (mem_singleton_iff.1 hzp ▸ hz)

instance

The open extension of a countable type is countable.

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

instance

The open extension of an uncountable type is uncountable.

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

instance

The open extension of a nonempty type has two points.

instance [Nonempty X] : Nontrivial (OpenExtension X)
Proof
:=
  ⟨⟨point, some (Classical.arbitrary X), point_ne_some _⟩⟩

theorem countable_iff

TopologyByExample.OpenExtension.countable_iff

The open extension of X is countable if and only if X is.

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

On this site: Theorem: An open extension is countable iff the space is

variable [TopologicalSpace X]

instance instTopologicalSpace

TopologyByExample.OpenExtension.instTopologicalSpace

The topology of the open extension: a set is open if its trace on X is open and it is the whole space whenever it contains the new point.

instance instTopologicalSpace : TopologicalSpace (OpenExtension X)
Proof
where
  IsOpen s := IsOpen (some ⁻¹' s) ∧ (point ∈ s → s = univ)
  isOpen_univ := ⟨isOpen_univ, fun _ ↦ rfl⟩
  isOpen_inter s t hs ht :=
    ⟨hs.1.inter ht.1, fun ⟨hps, hpt⟩ ↦ by rw [hs.2 hps, ht.2 hpt, inter_univ]⟩
  isOpen_sUnion S hS := by
    refine ⟨?_, fun ⟨s, hs, hp⟩ ↦ eq_univ_of_univ_subset ((hS s hs).2 hp ▸ subset_sUnion_of_mem hs)⟩
    rw [preimage_sUnion]
    exact isOpen_biUnion fun s hs ↦ (hS s hs).1

theorem isOpen_iff

TopologyByExample.OpenExtension.isOpen_iff

A set is open if and only if its trace on X is open and, if it contains the new point, it is the whole space.

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

theorem isOpen_iff_of_point_notMem

TopologyByExample.OpenExtension.isOpen_iff_of_point_notMem

A set not containing the new point is open if and only if its trace on X is open.

theorem isOpen_iff_of_point_notMem {s : Set (OpenExtension X)} (hs : point ∉ s) :
    IsOpen s ↔ IsOpen (some ⁻¹' s)
Proof
:=
  ⟨And.left, fun h ↦ ⟨h, fun hp ↦ absurd hp hs⟩⟩

theorem eq_univ_of_isOpen_of_point_mem

TopologyByExample.OpenExtension.eq_univ_of_isOpen_of_point_mem

An open set containing the new point is the whole space.

theorem eq_univ_of_isOpen_of_point_mem {s : Set (OpenExtension X)} (hs : IsOpen s)
    (hp : point ∈ s) : s = univ
Proof
:=
  hs.2 hp

theorem isOpen_image_some

TopologyByExample.OpenExtension.isOpen_image_some

The image of an open set of X is open.

theorem isOpen_image_some {U : Set X} (hU : IsOpen U) :
    IsOpen (some '' U : Set (OpenExtension X))
Proof
:=
  (isOpen_iff_of_point_notMem (by simp)).2 (by simpa using hU)

theorem isOpen_range_some

TopologyByExample.OpenExtension.isOpen_range_some

The points of X form an open set.

theorem isOpen_range_some : IsOpen (range (some : X → OpenExtension X))
Proof
:= by
  simpa using isOpen_image_some (X := X) isOpen_univ

theorem isClosed_singleton_point

TopologyByExample.OpenExtension.isClosed_singleton_point

The new point is closed.

theorem isClosed_singleton_point : IsClosed ({point} : Set (OpenExtension X))
Proof
:= by
  rw [← isOpen_compl_iff, ← range_some]
  exact isOpen_range_some

theorem isClosed_iff

TopologyByExample.OpenExtension.isClosed_iff

A set is closed if and only if its trace on X is closed and, if it is nonempty, it contains the new point.

theorem isClosed_iff {s : Set (OpenExtension X)} :
    IsClosed s ↔ IsClosed (some ⁻¹' s) ∧ (s.Nonempty → point ∈ s)
Proof
:= by
  rw [← isOpen_compl_iff, isOpen_iff, preimage_compl, isOpen_compl_iff, mem_compl_iff,
    compl_eq_univ_sdiff, sdiff_eq_left, univ_disjoint, ← not_imp_not, not_not,
    ← not_nonempty_iff_eq_empty, not_not]

theorem point_mem_of_isClosed

TopologyByExample.OpenExtension.point_mem_of_isClosed

A nonempty closed set contains the new point.

theorem point_mem_of_isClosed {s : Set (OpenExtension X)} (hs : IsClosed s) (hne : s.Nonempty) :
    point ∈ s
Proof
:=
  (isClosed_iff.1 hs).2 hne

theorem continuous_some

TopologyByExample.OpenExtension.continuous_some

The inclusion of X in its open extension is continuous.

theorem continuous_some : Continuous (some : X → OpenExtension X)
Proof
:=
  ⟨fun _ hs ↦ hs.1⟩

theorem isOpenMap_some

TopologyByExample.OpenExtension.isOpenMap_some

The inclusion of X in its open extension is an open map.

theorem isOpenMap_some : IsOpenMap (some : X → OpenExtension X)
Proof
:=
  fun _ hU ↦ isOpen_image_some hU

theorem isOpenEmbedding_some

TopologyByExample.OpenExtension.isOpenEmbedding_some

X is an open subspace of its open extension.

theorem isOpenEmbedding_some : IsOpenEmbedding (some : X → OpenExtension X)
Proof
:=
  .of_continuous_injective_isOpenMap continuous_some some_injective isOpenMap_some

On this site: Theorem: A space is an open subspace of its open extension

theorem isEmbedding_some

TopologyByExample.OpenExtension.isEmbedding_some

X is a subspace of its open extension.

theorem isEmbedding_some : IsEmbedding (some : X → OpenExtension X)
Proof
:=
  isOpenEmbedding_some.isEmbedding

theorem mem_nhds_point

TopologyByExample.OpenExtension.mem_nhds_point

A set is a neighbourhood of the new point if and only if it is the whole space.

theorem mem_nhds_point {s : Set (OpenExtension X)} :
    s ∈ 𝓝 (point : OpenExtension X) ↔ s = univ
Proof
:=
  ⟨fun hs ↦ let ⟨_, hts, ht, hpt⟩ := mem_nhds_iff.1 hs; eq_univ_of_univ_subset (ht.2 hpt ▸ hts),
    fun hs ↦ hs ▸ univ_mem⟩

theorem nhds_point

TopologyByExample.OpenExtension.nhds_point

The only neighbourhood of the new point is the whole space.

theorem nhds_point : 𝓝 (point : OpenExtension X) = ⊤
Proof
:=
  Filter.ext fun _ ↦ mem_nhds_point.trans mem_top.symm

theorem tendsto_nhds_point

TopologyByExample.OpenExtension.tendsto_nhds_point

Every map converges to the new point, along any filter.

theorem tendsto_nhds_point {α : Type*} (f : Filter α) (u : α → OpenExtension X) :
    Tendsto u f (𝓝 point)
Proof
:= by
  rw [nhds_point]
  exact le_top

theorem nhds_some

TopologyByExample.OpenExtension.nhds_some

The neighbourhoods of a point of X in the open extension are the images of its neighbourhoods in X.

theorem nhds_some (x : X) : 𝓝 (x : OpenExtension X) = map some (𝓝 x)
Proof
:=
  (isOpenEmbedding_some.map_nhds_eq x).symm

theorem point_mem_closure

TopologyByExample.OpenExtension.point_mem_closure

The new point lies in the closure of every nonempty set.

theorem point_mem_closure {s : Set (OpenExtension X)} (hs : s.Nonempty) :
    point ∈ closure s
Proof
:=
  mem_closure_iff.2 fun _ ho hp ↦ by rwa [eq_univ_of_isOpen_of_point_mem ho hp, univ_inter]

theorem closure_singleton_point

TopologyByExample.OpenExtension.closure_singleton_point

The closure of the new point is the new point.

theorem closure_singleton_point : closure ({point} : Set (OpenExtension X)) = {point}
Proof
:=
  isClosed_singleton_point.closure_eq

theorem specializes_point

TopologyByExample.OpenExtension.specializes_point

Every point specialises to the new point.

theorem specializes_point (z : OpenExtension X) : z ⤳ point
Proof
:=
  specializes_iff_mem_closure.2 (point_mem_closure (singleton_nonempty z))

theorem point_specializes_iff

TopologyByExample.OpenExtension.point_specializes_iff

The new point specialises only to itself.

theorem point_specializes_iff {z : OpenExtension X} : point ⤳ z ↔ z = point
Proof
:= by
  rw [specializes_iff_mem_closure, closure_singleton_point, mem_singleton_iff]

theorem some_specializes_some_iff

TopologyByExample.OpenExtension.some_specializes_some_iff

Two points of X are related by specialisation in the open extension exactly as in X.

theorem some_specializes_some_iff {x y : X} : (x : OpenExtension X) ⤳ y ↔ x ⤳ y
Proof
:=
  isEmbedding_some.isInducing.specializes_iff

theorem denseRange_some

TopologyByExample.OpenExtension.denseRange_some

If X is nonempty, its points are dense in the open extension.

theorem denseRange_some [Nonempty X] : DenseRange (some : X → OpenExtension X)
Proof
:= by
  refine dense_iff_closure_eq.2 (eq_univ_of_forall fun z ↦ ?_)
  cases z with
  | point => exact point_mem_closure (range_nonempty _)
  | coe x => exact subset_closure (mem_range_self x)

theorem not_t1Space

TopologyByExample.OpenExtension.not_t1Space

The open extension of a nonempty space is not T₁: a point of X specialises to the new point.

theorem not_t1Space [Nonempty X] : ¬T1Space (OpenExtension X)
Proof
:= fun _ ↦
  some_ne_point (Classical.arbitrary X) (specializes_point _).eq

On this site: Theorem: The open extension of a nonempty space is not T₁

instance instCompactSpace

TopologyByExample.OpenExtension.instCompactSpace

The open extension of any space is compact: the only open set containing the new point is the whole space.

instance instCompactSpace : CompactSpace (OpenExtension X)
Proof
:=
  ⟨fun f hf _ ↦ ⟨point, mem_univ _, by rw [ClusterPt, nhds_point, top_inf_eq]; exact hf⟩⟩

On this site: Theorem: An open extension is compact

instance instUltraconnectedSpace

TopologyByExample.OpenExtension.instUltraconnectedSpace

The open extension of any space is ultraconnected: the new point lies in the closure of every point.

instance instUltraconnectedSpace : UltraconnectedSpace (OpenExtension X)
Proof
:=
  ⟨fun x y ↦ ⟨point, point_mem_closure (singleton_nonempty x),
    point_mem_closure (singleton_nonempty y)⟩⟩

On this site: Theorem: An open extension is ultraconnected

instance

The open extension is T₀ if X is.

instance [T0Space X] : T0Space (OpenExtension X)
Proof
:= by
  refine (t0Space_iff_inseparable _).2 fun a b h ↦ ?_
  cases a with
  | point => exact (point_specializes_iff.1 h.specializes).symm
  | coe x =>
    cases b with
    | point => exact point_specializes_iff.1 h.specializes'
    | coe y => exact congrArg some (isEmbedding_some.isInducing.inseparable_iff.1 h).eq

theorem t0Space_iff

TopologyByExample.OpenExtension.t0Space_iff

The open extension is T₀ if and only if X is.

theorem t0Space_iff : T0Space (OpenExtension X) ↔ T0Space X
Proof
:=
  ⟨fun _ ↦ isEmbedding_some.t0Space, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is T₀ iff the space is

instance

The open extension of an Alexandrov space is Alexandrov: an intersection of open sets is the whole space if they all are, and otherwise misses the new point and has open trace on X.

instance [AlexandrovDiscrete X] : AlexandrovDiscrete (OpenExtension X)
Proof
where
  isOpen_sInter S hS := by
    refine ⟨?_, fun hp ↦ sInter_eq_univ.2 fun s hs ↦
      eq_univ_of_isOpen_of_point_mem (hS s hs) (hp s hs)⟩
    rw [preimage_sInter]
    exact isOpen_iInter₂ fun s hs ↦ (hS s hs).1

theorem alexandrovDiscrete_iff

TopologyByExample.OpenExtension.alexandrovDiscrete_iff

The open extension is Alexandrov if and only if X is.

theorem alexandrovDiscrete_iff : AlexandrovDiscrete (OpenExtension X) ↔ AlexandrovDiscrete X
Proof
:=
  ⟨fun _ ↦ isEmbedding_some.isInducing.alexandrovDiscrete, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is Alexandrov iff the space is

Properties every open extension has

theorem lindelofSpace

TopologyByExample.OpenExtension.lindelofSpace

The open extension of any space is Lindelöf.

theorem lindelofSpace : LindelofSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is Lindelöf

theorem sigmaCompactSpace

TopologyByExample.OpenExtension.sigmaCompactSpace

The open extension of any space is σ-compact.

theorem sigmaCompactSpace : SigmaCompactSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is σ-compact

theorem countablyCompactSpace

TopologyByExample.OpenExtension.countablyCompactSpace

The open extension of any space is countably compact.

theorem countablyCompactSpace : CountablyCompactSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is countably compact

theorem seqCompactSpace

TopologyByExample.OpenExtension.seqCompactSpace

The open extension of any space is sequentially compact: every sequence converges to the new point.

theorem seqCompactSpace : SeqCompactSpace (OpenExtension X)
Proof
:=
  ⟨fun _ _ ↦ ⟨point, mem_univ _, id, strictMono_id, tendsto_nhds_point _ _⟩⟩

On this site: Theorem: An open extension is sequentially compact

theorem limitPointCompact

TopologyByExample.OpenExtension.limitPointCompact

The open extension of any space is limit point compact: the new point is an accumulation point of every set with two points.

theorem limitPointCompact :
    ∀ s : Set (OpenExtension X), s.Infinite → ∃ x, AccPt x (𝓟 s)
Proof
:=
  limitPointCompact_of_ultraconnectedSpace

On this site: Theorem: An open extension is limit point compact

theorem pseudocompactSpace

TopologyByExample.OpenExtension.pseudocompactSpace

The open extension of any space is pseudocompact.

theorem pseudocompactSpace : PseudocompactSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is pseudocompact

theorem weaklyLocallyCompactSpace

TopologyByExample.OpenExtension.weaklyLocallyCompactSpace

The open extension of any space is weakly locally compact.

theorem weaklyLocallyCompactSpace : WeaklyLocallyCompactSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is weakly locally compact

theorem locallyRelativelyCompactSpace

TopologyByExample.OpenExtension.locallyRelativelyCompactSpace

The open extension of any space is locally relatively compact.

theorem locallyRelativelyCompactSpace : LocallyRelativelyCompactSpace (OpenExtension X)
Proof
:=
  inferInstance

On this site: Theorem: An open extension is locally relatively compact

theorem sigmaCompactSpace_and_weaklyLocallyCompactSpace

TopologyByExample.OpenExtension.sigmaCompactSpace_and_weaklyLocallyCompactSpace

The open extension of any space is σ-compact and weakly locally compact.

theorem sigmaCompactSpace_and_weaklyLocallyCompactSpace :
    SigmaCompactSpace (OpenExtension X) ∧ WeaklyLocallyCompactSpace (OpenExtension X)
Proof
:=
  ⟨inferInstance, inferInstance⟩

On this site: Theorem: An open extension is σ-locally compact

theorem paracompactSpace

TopologyByExample.OpenExtension.paracompactSpace

The open extension of any space is paracompact.

theorem paracompactSpace : ParacompactSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is paracompact

theorem countablyParacompactSpace

TopologyByExample.OpenExtension.countablyParacompactSpace

The open extension of any space is countably paracompact.

theorem countablyParacompactSpace : CountablyParacompactSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is countably paracompact

theorem preconnectedSpace

TopologyByExample.OpenExtension.preconnectedSpace

The open extension of any space is connected.

theorem preconnectedSpace : PreconnectedSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is connected

theorem pathPreconnectedSpace

TopologyByExample.OpenExtension.pathPreconnectedSpace

The open extension of any space is path connected: every point specialises to the new point.

theorem pathPreconnectedSpace : PathPreconnectedSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is path connected

theorem stronglyConnectedSpace

TopologyByExample.OpenExtension.stronglyConnectedSpace

The open extension of any space is strongly connected.

theorem stronglyConnectedSpace : StronglyConnectedSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is strongly connected

theorem normalSpace

TopologyByExample.OpenExtension.normalSpace

The open extension of any space is normal: two nonempty closed sets meet at the new point.

theorem normalSpace : NormalSpace (OpenExtension X)
Proof
:= inferInstance

On this site: Theorem: An open extension is normal

Properties shared with X

instance

The open extension of a first countable space is first countable.

instance [FirstCountableTopology X] : FirstCountableTopology (OpenExtension X)
Proof
where
  nhds_generated_countable
    | .point => by rw [nhds_point]; exact isCountablyGenerated_top
    | (x : X) => by rw [nhds_some]; infer_instance

theorem firstCountableTopology_iff

TopologyByExample.OpenExtension.firstCountableTopology_iff

The open extension of X is first countable if and only if X is.

theorem firstCountableTopology_iff :
    FirstCountableTopology (OpenExtension X) ↔ FirstCountableTopology X
Proof
:=
  ⟨fun _ ↦ isEmbedding_some.firstCountableTopology, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is first countable iff the space is

instance

The open extension of a second countable space is second countable.

instance [SecondCountableTopology X] : SecondCountableTopology (OpenExtension X)
Proof
:= by
  refine IsTopologicalBasis.secondCountableTopology
    (b := insert univ ((fun U ↦ some '' U) '' countableBasis X)) ?_
    (((countable_countableBasis X).image _).insert _)
  refine isTopologicalBasis_of_isOpen_of_nhds ?_ fun z u hzu hu ↦ ?_
  · rintro _ (rfl | ⟨U, hU, rfl⟩)
    exacts [isOpen_univ, isOpen_image_some (isOpen_of_mem_countableBasis hU)]
  · cases z with
    | point => exact ⟨univ, mem_insert _ _, mem_univ _, (eq_univ_of_isOpen_of_point_mem hu hzu).ge⟩
    | coe x =>
      obtain ⟨U, hU, hxU, hUu⟩ :=
        (isBasis_countableBasis X).exists_subset_of_mem_open (mem_preimage.2 hzu) hu.1
      exact ⟨_, mem_insert_of_mem _ ⟨U, hU, rfl⟩, ⟨x, hxU, rfl⟩, image_subset_iff.2 hUu⟩

theorem secondCountableTopology_iff

TopologyByExample.OpenExtension.secondCountableTopology_iff

The open extension of X is second countable if and only if X is.

theorem secondCountableTopology_iff :
    SecondCountableTopology (OpenExtension X) ↔ SecondCountableTopology X
Proof
:=
  ⟨fun _ ↦ isEmbedding_some.isInducing.secondCountableTopology, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is second countable iff the space is

instance

The open extension of a separable space is separable: a countable dense set of X with the new point added is dense.

instance [SeparableSpace X] : SeparableSpace (OpenExtension X)
Proof
:= by
  obtain ⟨D, hDc, hD⟩ := exists_countable_dense X
  refine ⟨⟨insert point (some '' D), (hDc.image _).insert _, dense_iff_inter_open.2 ?_⟩⟩
  rintro U hU ⟨z, hz⟩
  by_cases hp : point ∈ U
  · exact ⟨point, hp, mem_insert _ _⟩
  · cases z with
    | point => exact absurd hz hp
    | coe x =>
      obtain ⟨y, hyU, hyD⟩ := hD.inter_open_nonempty _ hU.1 ⟨x, hz⟩
      exact ⟨y, hyU, mem_insert_of_mem _ ⟨y, hyD, rfl⟩⟩

theorem separableSpace_iff

TopologyByExample.OpenExtension.separableSpace_iff

The open extension of X is separable if and only if X is.

theorem separableSpace_iff : SeparableSpace (OpenExtension X) ↔ SeparableSpace X
Proof
:=
  ⟨fun _ ↦ isOpenEmbedding_some.separableSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is separable iff the space is

theorem countableChainCondition_iff

TopologyByExample.OpenExtension.countableChainCondition_iff

The open extension of X satisfies the countable chain condition if and only if X does: a family of disjoint nonempty open sets either is the whole space alone or lies in X.

theorem countableChainCondition_iff :
    (∀ S : Set (Set (OpenExtension X)), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) →
      S.PairwiseDisjoint id → S.Countable) ↔
    (∀ S : Set (Set X), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
      S.Countable)
Proof
:= by
  refine ⟨ccc_of_isOpenEmbedding isOpenEmbedding_some, fun h S hS hd ↦ ?_⟩
  by_cases hu : univ ∈ S
  · refine (countable_singleton univ).mono fun s hs ↦ ?_
    by_contra hne
    obtain ⟨z, hz⟩ := (hS s hs).2
    exact disjoint_left.1 (hd hs hu hne) hz (mem_univ z)
  have hp : ∀ s ∈ S, point ∉ s := fun s hs hps ↦
    hu (eq_univ_of_isOpen_of_point_mem (hS s hs).1 hps ▸ hs)
  have hS' : (∀ t ∈ {t : Set X | some '' t ∈ S}, IsOpen t ∧ t.Nonempty) := fun t ht ↦
    ⟨by simpa using (hS _ ht).1.1, (image_nonempty).1 (hS _ ht).2⟩
  have hd' : ({t : Set X | some '' t ∈ S}).PairwiseDisjoint id := fun t ht t' ht' hne ↦
    (disjoint_image_iff some_injective).1
      (hd ht ht' fun h ↦ hne (some_injective.image_injective h))
  refine ((h _ hS' hd').image (image some)).mono fun s hs ↦ ?_
  refine ⟨some ⁻¹' s, ?_, image_some_preimage_some (hp s hs)⟩
  change some '' (some ⁻¹' s) ∈ S
  rwa [image_some_preimage_some (hp s hs)]

On this site: Theorem: An open extension satisfies the countable chain condition iff the space does

instance

The open extension of a locally connected space is locally connected.

instance [LocallyConnectedSpace X] : LocallyConnectedSpace (OpenExtension X)
Proof
:= by
  refine locallyConnectedSpace_iff_subsets_isOpen_isConnected.2 fun z u hu ↦ ?_
  cases z with
  | point =>
    rw [mem_nhds_point.1 hu]
    have : ConnectedSpace (OpenExtension X) :=
      { toPreconnectedSpace := preconnectedSpace, toNonempty := ⟨point⟩ }
    exact ⟨univ, subset_rfl, isOpen_univ, mem_univ _, isConnected_univ⟩
  | coe x =>
    rw [nhds_some, mem_map] at hu
    obtain ⟨V, hVu, hV, hxV, hVc⟩ :=
      locallyConnectedSpace_iff_subsets_isOpen_isConnected.1 ‹_› x _ hu
    exact ⟨some '' V, image_subset_iff.2 hVu, isOpen_image_some hV, ⟨x, hxV, rfl⟩,
      hVc.image _ continuous_some.continuousOn⟩

theorem locallyConnectedSpace_iff

TopologyByExample.OpenExtension.locallyConnectedSpace_iff

The open extension of X is locally connected if and only if X is.

theorem locallyConnectedSpace_iff :
    LocallyConnectedSpace (OpenExtension X) ↔ LocallyConnectedSpace X
Proof
:=
  ⟨fun _ ↦ isOpenEmbedding_some.locallyConnectedSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is locally connected iff the space is

instance

The open extension of a locally path connected space is locally path connected.

instance [LocallyPathConnectedSpace X] : LocallyPathConnectedSpace (OpenExtension X)
Proof
:= by
  refine ⟨fun z ↦ hasBasis_self.2 fun u hu ↦ ?_⟩
  cases z with
  | point =>
    have : PathConnectedSpace (OpenExtension X) := PathPreconnectedSpace.pathConnectedSpace
    exact ⟨univ, univ_mem, isPathConnected_univ, (mem_nhds_point.1 hu).ge⟩
  | coe x =>
    rw [nhds_some, mem_map] at hu
    obtain ⟨V, ⟨hVx, hVc⟩, hVu⟩ := (path_connected_basis x).mem_iff.1 hu
    exact ⟨some '' V, by rw [nhds_some]; exact image_mem_map hVx, hVc.image continuous_some,
      image_subset_iff.2 hVu⟩

theorem locallyPathConnectedSpace_iff

TopologyByExample.OpenExtension.locallyPathConnectedSpace_iff

The open extension of X is locally path connected if and only if X is.

theorem locallyPathConnectedSpace_iff :
    LocallyPathConnectedSpace (OpenExtension X) ↔ LocallyPathConnectedSpace X
Proof
:=
  ⟨fun _ ↦ isOpenEmbedding_some.locallyPathConnectedSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is locally path connected iff the space is

instance

The open extension of a hyperconnected space is hyperconnected: an open set containing the new point is the whole space, and two nonempty open sets of X meet.

instance [PreirreducibleSpace X] : PreirreducibleSpace (OpenExtension X)
Proof
:= by
  refine .of_forall_nonempty_inter fun U V hU hV hUne hVne ↦ ?_
  by_cases hpU : point ∈ U
  · rwa [eq_univ_of_isOpen_of_point_mem hU hpU, univ_inter]
  by_cases hpV : point ∈ V
  · rwa [eq_univ_of_isOpen_of_point_mem hV hpV, inter_univ]
  have h' (W : Set (OpenExtension X)) (hpW : point ∉ W) (hW : W.Nonempty) :
      (some ⁻¹' W).Nonempty := by
    obtain ⟨z, hz⟩ := hW
    cases z with
    | point => exact absurd hz hpW
    | coe x => exact ⟨x, hz⟩
  obtain ⟨x, hx⟩ := nonempty_preirreducible_inter hU.1 hV.1 (h' U hpU hUne) (h' V hpV hVne)
  exact ⟨x, hx⟩

theorem preirreducibleSpace_iff

TopologyByExample.OpenExtension.preirreducibleSpace_iff

The open extension of X is hyperconnected if and only if X is.

theorem preirreducibleSpace_iff :
    PreirreducibleSpace (OpenExtension X) ↔ PreirreducibleSpace X
Proof
:= by
  refine ⟨fun _ ↦ .of_forall_nonempty_inter fun U V hU hV hUne hVne ↦ ?_, fun _ ↦ inferInstance⟩
  obtain ⟨_, ⟨x, hxU, rfl⟩, ⟨y, hyV, hxy⟩⟩ := nonempty_preirreducible_inter
    (isOpen_image_some hU) (isOpen_image_some hV) (hUne.image some) (hVne.image some)
  exact ⟨x, hxU, some_injective hxy ▸ hyV⟩

On this site: Theorem: An open extension is hyperconnected iff the space is

instance

The open extension of a scattered space is scattered: a set containing a point of X has a point isolated in it within the open set X, and otherwise it is the new point alone.

instance [ScatteredSpace X] : ScatteredSpace (OpenExtension X)
Proof
:= by
  refine scatteredSpace_iff_exists_isolated.2 fun s hs ↦ ?_
  by_cases hX : (s ∩ range some).Nonempty
  · obtain ⟨y, ⟨hys, hyr⟩, U, hU, hUs⟩ :=
      ScatteredSpace.exists_isolated_of_isEmbedding isEmbedding_some inter_subset_right hX
    refine ⟨y, hys, U ∩ range some, inter_mem hU (isOpen_range_some.mem_nhds hyr), ?_⟩
    rintro z ⟨⟨hzU, hzr⟩, hzs⟩
    exact hUs ⟨hzU, hzs, hzr⟩
  · obtain ⟨z, hz⟩ := hs
    refine ⟨z, hz, univ, univ_mem, fun w ⟨_, hw⟩ ↦ ?_⟩
    have hnr (v) (hv : v ∈ s) : v = point := by
      by_contra hne
      rw [← mem_singleton_iff, ← mem_compl_iff, ← range_some] at hne
      exact hX ⟨v, hv, hne⟩
    rw [mem_singleton_iff, hnr w hw, hnr z hz]

theorem scatteredSpace_iff

TopologyByExample.OpenExtension.scatteredSpace_iff

The open extension of X is scattered if and only if X is.

theorem scatteredSpace_iff : ScatteredSpace (OpenExtension X) ↔ ScatteredSpace X
Proof
:=
  ⟨fun _ ↦ ScatteredSpace.of_injective some_injective continuous_some, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is scattered iff the space is

instance

The open extension of a completely normal space is completely normal: two nonempty separated sets both miss the new point, which lies in the closure of each, so they are separated in X.

instance [CompletelyNormalSpace X] : CompletelyNormalSpace (OpenExtension X)
Proof
:= by
  refine ⟨fun s t hst hts ↦ ?_⟩
  rcases s.eq_empty_or_nonempty with rfl | hs
  · simp
  rcases t.eq_empty_or_nonempty with rfl | ht
  · simp
  have hps : point ∉ s := fun h ↦ disjoint_left.1 hts h (point_mem_closure ht)
  have hpt : point ∉ t := fun h ↦ disjoint_left.1 hst (point_mem_closure hs) h
  have hcl (u : Set (OpenExtension X)) : closure (some ⁻¹' u) = some ⁻¹' closure u :=
    (isOpenMap_some.preimage_closure_eq_closure_preimage continuous_some u).symm
  have h1 : Disjoint (closure (some ⁻¹' s)) (some ⁻¹' t) := by
    rw [hcl]; exact hst.preimage some
  have h2 : Disjoint (some ⁻¹' s) (closure (some ⁻¹' t)) := by
    rw [hcl]; exact hts.preimage some
  obtain ⟨U, V, hU, hV, hsU, htV, hUV⟩ := separatedNhds_iff_disjoint.2 (completely_normal h1 h2)
  rw [← image_some_preimage_some hps, ← image_some_preimage_some hpt]
  exact separatedNhds_iff_disjoint.1 ⟨_, _, isOpen_image_some hU, isOpen_image_some hV,
    image_mono hsU, image_mono htV, (disjoint_image_iff some_injective).2 hUV⟩

theorem completelyNormalSpace_iff

TopologyByExample.OpenExtension.completelyNormalSpace_iff

The open extension of X is completely normal if and only if X is.

theorem completelyNormalSpace_iff :
    CompletelyNormalSpace (OpenExtension X) ↔ CompletelyNormalSpace X
Proof
:=
  ⟨fun _ ↦ isEmbedding_some.isInducing.completelyNormalSpace, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is completely normal iff the space is

instance

The open extension of a hereditarily connected space is hereditarily connected: a set containing the new point is connected, since the only open set containing it is the whole space.

instance [HereditarilyConnectedSpace X] : HereditarilyConnectedSpace (OpenExtension X)
Proof
:= by
  refine ⟨fun s ↦ ?_⟩
  by_cases hp : point ∈ s
  · intro u v hu hv hsuv hsu hsv
    rcases hsuv hp with hpu | hpv
    · rwa [eq_univ_of_isOpen_of_point_mem hu hpu, univ_inter]
    · rwa [eq_univ_of_isOpen_of_point_mem hv hpv, inter_univ]
  · rw [← image_some_preimage_some hp]
    exact (HereditarilyConnectedSpace.isPreconnected _).image _ continuous_some.continuousOn

theorem hereditarilyConnectedSpace_iff

TopologyByExample.OpenExtension.hereditarilyConnectedSpace_iff

The open extension of X is hereditarily connected if and only if X is.

theorem hereditarilyConnectedSpace_iff :
    HereditarilyConnectedSpace (OpenExtension X) ↔ HereditarilyConnectedSpace X
Proof
:=
  ⟨fun _ ↦ ⟨fun s ↦ isEmbedding_some.isInducing.isPreconnected_image.1
    (HereditarilyConnectedSpace.isPreconnected (some '' s))⟩, fun _ ↦ inferInstance⟩

On this site: Theorem: An open extension is hereditarily connected iff the space is

theorem isNowhereDense_singleton_point

TopologyByExample.OpenExtension.isNowhereDense_singleton_point

The new point of the open extension of a nonempty space is nowhere dense: it is closed, and the only open set containing it is the whole space.

theorem isNowhereDense_singleton_point [Nonempty X] :
    IsNowhereDense ({point} : Set (OpenExtension X))
Proof
:= by
  rw [IsNowhereDense, closure_singleton_point, eq_empty_iff_forall_notMem]
  intro z hz
  have hp : point ∈ interior ({point} : Set (OpenExtension X)) :=
    (interior_subset hz : z = point) ▸ hz
  have := eq_univ_of_isOpen_of_point_mem isOpen_interior hp
  exact some_ne_point (Classical.arbitrary X)
    (interior_subset (this ▸ mem_univ (some (Classical.arbitrary X))))

theorem not_isMeagre_univ_iff

TopologyByExample.OpenExtension.not_isMeagre_univ_iff

The open extension of a nonempty space is of second category in itself if and only if X is: X is an open subspace, and the new point is nowhere dense.

theorem not_isMeagre_univ_iff [Nonempty X] :
    ¬IsMeagre (univ : Set (OpenExtension X)) ↔ ¬IsMeagre (univ : Set X)
Proof
:= by
  refine not_congr ⟨fun h ↦ by simpa using h.preimage_of_isOpenMap continuous_some isOpenMap_some,
    fun h ↦ ?_⟩
  have h₁ := isEmbedding_some.isInducing.isMeagre_image h
  rw [image_univ, range_some] at h₁
  simpa using isNowhereDense_singleton_point.isMeagre.union h₁

On this site: Theorem: The open extension of a nonempty space is of second category iff the space is

theorem not_isMeagre_univ

TopologyByExample.OpenExtension.not_isMeagre_univ

If X is of second category in itself, so is its open extension: X is then nonempty, since the empty set is meagre.

theorem not_isMeagre_univ (h : ¬IsMeagre (univ : Set X)) :
    ¬IsMeagre (univ : Set (OpenExtension X))
Proof
:= by
  have : Nonempty X := by
    by_contra hX
    rw [not_nonempty_iff, ← univ_eq_empty_iff] at hX
    exact h (hX ▸ IsMeagre.empty)
  exact not_isMeagre_univ_iff.2 h

theorem extremallyDisconnected_iff

TopologyByExample.OpenExtension.extremallyDisconnected_iff

The open extension of X is extremally disconnected if and only if X is hyperconnected.

theorem extremallyDisconnected_iff :
    ExtremallyDisconnected (OpenExtension X) ↔ PreirreducibleSpace X
Proof
:= by
  refine ⟨fun _ ↦ preirreducibleSpace_iff.1 ?_,
    fun _ ↦ extremallyDisconnected_of_preirreducibleSpace⟩
  exact preirreducibleSpace_of_extremallyDisconnected_of_preconnectedSpace

On this site: Theorem: An open extension is extremally disconnected iff the space is hyperconnected

Separation axioms

theorem not_r0Space

TopologyByExample.OpenExtension.not_r0Space

The open extension of a nonempty space is not R₀: a point of X specialises to the new point, but the new point specialises only to itself.

theorem not_r0Space [Nonempty X] : ¬R0Space (OpenExtension X)
Proof
:= fun _ ↦
  some_ne_point (Classical.arbitrary X)
    (point_specializes_iff.1 (specializes_point (some (Classical.arbitrary X))).symm)

On this site: Theorem: The open extension of a nonempty space is not R₀

theorem not_t2Space

TopologyByExample.OpenExtension.not_t2Space

The open extension of a nonempty space is not Hausdorff.

theorem not_t2Space [Nonempty X] : ¬T2Space (OpenExtension X)
Proof
:= fun _ ↦
  not_t1Space (X := X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not Hausdorff

theorem not_t25Space

TopologyByExample.OpenExtension.not_t25Space

The open extension of a nonempty space is not Urysohn (in Mathlib's sense, T25Space).

theorem not_t25Space [Nonempty X] : ¬T25Space (OpenExtension X)
Proof
:= fun _ ↦
  not_t1Space (X := X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not Urysohn

theorem not_functionallyHausdorffSpace

TopologyByExample.OpenExtension.not_functionallyHausdorffSpace

The open extension of a nonempty space is not functionally Hausdorff.

theorem not_functionallyHausdorffSpace [Nonempty X] :
    ¬FunctionallyHausdorffSpace (OpenExtension X)
Proof
:= fun _ ↦
  not_t1Space (X := X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not functionally Hausdorff

theorem not_regularSpace

TopologyByExample.OpenExtension.not_regularSpace

The open extension of a nonempty space is not regular.

theorem not_regularSpace [Nonempty X] : ¬RegularSpace (OpenExtension X)
Proof
:= fun _ ↦
  not_r0Space (X := X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not regular

theorem not_completelyRegularSpace

TopologyByExample.OpenExtension.not_completelyRegularSpace

The open extension of a nonempty space is not completely regular.

theorem not_completelyRegularSpace [Nonempty X] : ¬CompletelyRegularSpace (OpenExtension X)
Proof
:=
  fun _ ↦ not_r0Space (X := X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not completely regular

theorem not_perfectlyNormalSpace

TopologyByExample.OpenExtension.not_perfectlyNormalSpace

The open extension of a nonempty space is not perfectly normal.

theorem not_perfectlyNormalSpace [Nonempty X] : ¬PerfectlyNormalSpace (OpenExtension X)
Proof
:=
  fun _ ↦ not_r0Space (X := X) (r0Space_of_perfectlyNormalSpace)

On this site: Theorem: The open extension of a nonempty space is not perfectly normal

theorem not_metrizableSpace

TopologyByExample.OpenExtension.not_metrizableSpace

The open extension of a nonempty space is not metrizable.

theorem not_metrizableSpace [Nonempty X] : ¬MetrizableSpace (OpenExtension X)
Proof
:= fun _ ↦
  not_t1Space (X := X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not metrizable

theorem not_isCompletelyMetrizableSpace

TopologyByExample.OpenExtension.not_isCompletelyMetrizableSpace

The open extension of a nonempty space is not completely metrizable.

theorem not_isCompletelyMetrizableSpace [Nonempty X] :
    ¬IsCompletelyMetrizableSpace (OpenExtension X)
Proof
:= fun _ ↦
  not_metrizableSpace (X := X) metrizableSpace_of_isCompletelyMetrizableSpace

On this site: Theorem: The open extension of a nonempty space is not completely metrizable

theorem not_discreteTopology

TopologyByExample.OpenExtension.not_discreteTopology

The open extension of a nonempty space is not discrete.

theorem not_discreteTopology [Nonempty X] : ¬DiscreteTopology (OpenExtension X)
Proof
:= fun _ ↦
  not_t1Space (X := X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not discrete

theorem not_indiscreteTopology

TopologyByExample.OpenExtension.not_indiscreteTopology

The open extension of a nonempty space is not indiscrete: X is a nonempty open set that is not the whole space.

theorem not_indiscreteTopology [Nonempty X] : ¬IndiscreteTopology (OpenExtension X)
Proof
:= fun _ ↦ by
  rcases (IndiscreteTopology.isOpen_iff _).1 (isOpen_range_some (X := X)) with h | h
  · exact (range_nonempty _).ne_empty h
  · rw [range_some] at h
    exact (h ▸ mem_univ point : point ∈ ({point}ᶜ : Set (OpenExtension X))) rfl

On this site: Theorem: The open extension of a nonempty space is not indiscrete

Disconnectedness

theorem not_totallyDisconnectedSpace

TopologyByExample.OpenExtension.not_totallyDisconnectedSpace

The open extension of a nonempty space is not totally disconnected: it is connected and has two points.

theorem not_totallyDisconnectedSpace [Nonempty X] :
    ¬TotallyDisconnectedSpace (OpenExtension X)
Proof
:= fun _ ↦
  not_preconnectedSpace_of_nontrivial (X := OpenExtension X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not totally disconnected

theorem not_totallySeparatedSpace

TopologyByExample.OpenExtension.not_totallySeparatedSpace

The open extension of a nonempty space is not totally separated.

theorem not_totallySeparatedSpace [Nonempty X] : ¬TotallySeparatedSpace (OpenExtension X)
Proof
:=
  fun _ ↦ not_totallyDisconnectedSpace (X := X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not totally separated

theorem not_zeroDimensionalSpace

TopologyByExample.OpenExtension.not_zeroDimensionalSpace

The open extension of a nonempty space is not zero-dimensional: being connected, it would be indiscrete.

theorem not_zeroDimensionalSpace [Nonempty X] : ¬ZeroDimensionalSpace (OpenExtension X)
Proof
:=
  fun _ ↦ not_indiscreteTopology (X := X) indiscreteTopology_of_preconnectedSpace

On this site: Theorem: The open extension of a nonempty space is not zero-dimensional

theorem not_totallyPathDisconnectedSpace

TopologyByExample.OpenExtension.not_totallyPathDisconnectedSpace

The open extension of a nonempty space is not totally path disconnected: it is path connected and has two points.

theorem not_totallyPathDisconnectedSpace [Nonempty X] :
    ¬TotallyPathDisconnectedSpace (OpenExtension X)
Proof
:= fun _ ↦
  not_t1Space (X := X) inferInstance

On this site: Theorem: The open extension of a nonempty space is not totally path disconnected

Semiregularity

theorem semiregularSpace_of_semiregularSpace

TopologyByExample.OpenExtension.semiregularSpace_of_semiregularSpace

If the open extension of X is semiregular, so is X, an open subspace.

theorem semiregularSpace_of_semiregularSpace [SemiregularSpace (OpenExtension X)] :
    SemiregularSpace X
Proof
:=
  SemiregularSpace.of_isOpenEmbedding isOpenEmbedding_some

On this site: Theorem: If an open extension is semiregular, so is the space

theorem isRegularOpen_image_some

TopologyByExample.OpenExtension.isRegularOpen_image_some

A regular open set of X that is not dense in X is regular open in the open extension.

theorem isRegularOpen_image_some {R : Set X} (hR : IsRegularOpen R) (hd : closure R ≠ univ) :
    IsRegularOpen (some '' R : Set (OpenExtension X))
Proof
:= by
  have hcl : some ⁻¹' interior (closure (some '' R : Set (OpenExtension X))) =
      interior (closure R) := by
    rw [isOpenMap_some.preimage_interior_eq_interior_preimage continuous_some,
      isOpenMap_some.preimage_closure_eq_closure_preimage continuous_some, preimage_some_image_some]
  rw [isRegularOpen_iff]
  ext z
  cases z with
  | point =>
    refine iff_of_false (fun hp ↦ ?_) (by simp)
    have hu := eq_univ_of_isOpen_of_point_mem isOpen_interior hp
    rw [hu, preimage_univ] at hcl
    exact hd (eq_univ_of_univ_subset (hcl.trans_subset interior_subset).ge)
  | coe x =>
    rw [← mem_preimage, hcl, (isRegularOpen_iff.1 hR), ← mem_preimage, preimage_some_image_some]

theorem semiregularSpace_of_not_preirreducibleSpace

TopologyByExample.OpenExtension.semiregularSpace_of_not_preirreducibleSpace

If X is regular and not hyperconnected, its open extension is semiregular: every point of X has a neighbourhood other than the whole space, and inside it regular open sets of X with closure other than X, which stay regular open in the open extension.

theorem semiregularSpace_of_not_preirreducibleSpace [RegularSpace X]
    (h : ¬PreirreducibleSpace X) : SemiregularSpace (OpenExtension X)
Proof
:= by
  have key (x : X) : ∃ W, IsOpen W ∧ x ∈ W ∧ W ≠ univ := by
    by_contra! H
    have hx {U : Set X} (hU : IsOpen U) (hne : U.Nonempty) : x ∈ U := by
      obtain ⟨y, hy⟩ := hne
      have hyx : y ⤳ x := specializes_iff_forall_open.2 fun s hs hxs ↦ H s hs hxs ▸ mem_univ y
      exact hyx.symm.mem_open hU hy
    exact h (.of_forall_nonempty_inter fun U V hU hV hUne hVne ↦ ⟨x, hx hU hUne, hx hV hVne⟩)
  refine ⟨isTopologicalBasis_of_isOpen_of_nhds (fun s hs ↦ IsRegularOpen.isOpen hs)
    fun z u hzu hu ↦ ?_⟩
  cases z with
  | point =>
    exact ⟨univ, isRegularOpen_univ, mem_univ _, (eq_univ_of_isOpen_of_point_mem hu hzu).ge⟩
  | coe x =>
    obtain ⟨W, hW, hxW, hWne⟩ := key x
    obtain ⟨V, hVx, hVc, hVsub⟩ :=
      exists_mem_nhds_isClosed_subset ((hW.inter hu.1).mem_nhds ⟨hxW, hzu⟩)
    set R := interior (closure (interior V))
    have hxR : x ∈ R :=
      interior_mono subset_closure (mem_interior_iff_mem_nhds.2 (interior_mem_nhds.2 hVx))
    have hRV : closure R ⊆ V :=
      closure_minimal (interior_subset.trans (closure_minimal interior_subset hVc)) hVc
    refine ⟨some '' R, isRegularOpen_image_some (isRegularOpen_interior_closure _) ?_,
      ⟨x, hxR, rfl⟩, image_subset_iff.2 fun y hy ↦ (hVsub (hRV (subset_closure hy))).2⟩
    exact fun hR ↦ hWne (eq_univ_of_univ_subset (hR ▸ hRV.trans fun y hy ↦ (hVsub hy).1))

On this site: Theorem: The open extension of a regular space that is not hyperconnected is semiregular

theorem not_semiregularSpace

TopologyByExample.OpenExtension.not_semiregularSpace

The open extension of a nonempty hyperconnected space is not semiregular: it is hyperconnected, and a semiregular hyperconnected space is indiscrete.

theorem not_semiregularSpace [Nonempty X] [PreirreducibleSpace X] :
    ¬SemiregularSpace (OpenExtension X)
Proof
:= fun _ ↦
  not_indiscreteTopology (X := X) indiscreteTopology_of_preirreducibleSpace_of_semiregularSpace

On this site: Theorem: The open extension of a nonempty hyperconnected space is not semiregular

On this site: Space: Three-point space with open sets ∅, {0, 1} and the whole space; Space: Rationals with a focal point