Lean library · module TopologyByExample.Theorems.LinesWithOrigins

Spaces with several origins, and the lines with several origins

Source file

The construction

Let X be a topological space, p : X a point and I a set. The space WithOrigins X p I is X with the point p replaced by one point origin i for each i : I: it is the quotient of the disjoint union Σ _ : I, X of copies of X, one sheet for each i, by the relation identifying the copies of each point other than p. We write mk x i for the class of x on sheet i, so mk x i = mk x j for x ≠ p, and origin i = mk p i; the sheet i is the map chart i = (mk · i).

We take the quotient, the standard definition, rather than a topology on a type of points such as {x // x ≠ p} ⊕ I: the neighbourhoods are then easiest to handle through the sheets, since a set is open exactly when its preimage in every sheet is open (isOpen_iff), and degenerate parameters behave as they should (for empty I the quotient is empty, for a single origin it is X).

When X is T₁ every sheet is an open embedding (isOpenEmbedding_chart) whose range is the space without the other origins, so the space is locally homeomorphic to X, and the local properties of X pass to it: T₁, first countability, local compactness, local path connectedness. When p is not isolated, every neighbourhood of one origin has all the origins in its closure (origin_mem_closure). So two origins have no disjoint neighbourhoods, the space is not semiregular, and for infinitely many origins it is neither locally relatively compact nor countably paracompact.

The family

LineWithOrigins I is the real line with 0 replaced by the origins i : I. (The circle with two origins, TopologyByExample.CircleTwoOrigins, is in TopologyByExample.Spaces.CircleTwoOrigins.)

Main statements

Tags

line with two origins, non-Hausdorff manifold

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

The construction

variable (X : Type u) (p : X) (I : Type v)

definition setoid

TopologyByExample.WithOrigins.setoid

The relation on the sheets Σ _ : I, X identifying the copies of each point other than p.

def WithOrigins.setoid : Setoid (Σ _ : I, X)
Definition
where
  r a b := a.2 = b.2 ∧ (a.2 = p → a.1 = b.1)
  iseqv := ⟨fun _ ↦ ⟨rfl, fun _ ↦ rfl⟩,
    fun h ↦ ⟨h.1.symm, fun hb ↦ (h.2 (h.1.trans hb)).symm⟩,
    fun h h' ↦ ⟨h.1.trans h'.1, fun ha ↦ (h.2 ha).trans (h'.2 (h.1.symm.trans ha))⟩⟩

definition WithOrigins

TopologyByExample.WithOrigins

The space X with the point p replaced by one origin for each i : I: the quotient of one copy of X for each i : I identifying the copies of each point other than p.

def WithOrigins : Type (max u v)
:=
  Quotient (WithOrigins.setoid X p I)
variable {X p I}

definition mk

TopologyByExample.WithOrigins.mk

The point x of the copy (sheet) i.

def mk (x : X) (i : I) : WithOrigins X p I
:=
  Quotient.mk (WithOrigins.setoid X p I) ⟨i, x⟩

definition chart

TopologyByExample.WithOrigins.chart

The sheet i: the map sending x to its copy on sheet i.

def chart (i : I) : X → WithOrigins X p I
:=
  fun x ↦ mk x i

definition origin

TopologyByExample.WithOrigins.origin

The origin i, the copy of p on sheet i.

def origin (i : I) : WithOrigins X p I
:=
  mk p i

definition proj

TopologyByExample.WithOrigins.proj

The projection to X, forgetting the sheet.

def proj : WithOrigins X p I → X
:=
  Quotient.lift (s := WithOrigins.setoid X p I) (fun a ↦ a.2) fun _ _ h ↦ h.1

theorem chart_apply

TopologyByExample.WithOrigins.chart_apply

@[simp]
theorem chart_apply (i : I) (x : X) : chart i x = (mk x i : WithOrigins X p I)
Proof
:=
  rfl

theorem proj_mk

TopologyByExample.WithOrigins.proj_mk

@[simp]
theorem proj_mk (x : X) (i : I) : proj (mk x i : WithOrigins X p I) = x
Proof
:=
  rfl

theorem mk_eq_mk_iff

TopologyByExample.WithOrigins.mk_eq_mk_iff

Two points coincide exactly when they lie over the same point of X, on the same sheet if that point is p.

theorem mk_eq_mk_iff {x y : X} {i j : I} :
    (mk x i : WithOrigins X p I) = mk y j ↔ x = y ∧ (x = p → i = j)
Proof
:=
  Quotient.eq (r := WithOrigins.setoid X p I)

theorem mk_eq_mk_of_ne

TopologyByExample.WithOrigins.mk_eq_mk_of_ne

Away from p the sheets agree.

theorem mk_eq_mk_of_ne {x : X} (hx : x ≠ p) (i j : I) :
    (mk x i : WithOrigins X p I) = mk x j
Proof
:=
  mk_eq_mk_iff.2 ⟨rfl, fun h ↦ absurd h hx⟩

theorem origin_injective

TopologyByExample.WithOrigins.origin_injective

Distinct sheets give distinct origins.

theorem origin_injective : Function.Injective (origin : I → WithOrigins X p I)
Proof
:=
  fun _ _ h ↦ (mk_eq_mk_iff.1 h).2 rfl

theorem exists_mk

TopologyByExample.WithOrigins.exists_mk

Every point lies on some sheet.

theorem exists_mk (q : WithOrigins X p I) : ∃ x i, mk x i = q
Proof
:=
  Quotient.inductionOn (s := WithOrigins.setoid X p I) q fun a ↦ ⟨a.2, a.1, rfl⟩

theorem chart_injective

TopologyByExample.WithOrigins.chart_injective

A sheet is injective.

theorem chart_injective (i : I) : Function.Injective (chart i : X → WithOrigins X p I)
Proof
:=
  fun _ _ h ↦ (mk_eq_mk_iff.1 h).1

instance

The space is empty exactly when there are no origins (for nonempty X).

instance [IsEmpty I] : IsEmpty (WithOrigins X p I)
Proof
:=
  ⟨fun q ↦ by obtain ⟨_, i, -⟩ := exists_mk q; exact isEmptyElim i⟩

instance

instance [Nonempty I] : Nonempty (WithOrigins X p I)
Proof
:=
  ⟨origin (Classical.arbitrary I)⟩

theorem chart_preimage_chart_image

TopologyByExample.WithOrigins.chart_preimage_chart_image

The preimage in sheet j of the image of a set under sheet i.

theorem chart_preimage_chart_image (i j : I) (s : Set X) :
    chart j ⁻¹' (chart i '' s : Set (WithOrigins X p I)) = {x | x ∈ s ∧ (x = p → j = i)}
Proof
:= by
  ext x
  simp only [mem_preimage, mem_image, chart_apply, mk_eq_mk_iff, mem_ofPred_eq]
  constructor
  · rintro ⟨y, hy, rfl, h⟩
    exact ⟨hy, fun hp ↦ (h hp).symm⟩
  · rintro ⟨hx, h⟩
    exact ⟨x, hx, rfl, fun hp ↦ (h hp).symm⟩

theorem origin_mem_range_chart_iff

TopologyByExample.WithOrigins.origin_mem_range_chart_iff

The only origin on sheet i is the origin i.

theorem origin_mem_range_chart_iff {i j : I} :
    (origin j : WithOrigins X p I) ∈ range (chart i) ↔ j = i
Proof
:= by
  constructor
  · rintro ⟨x, hx⟩
    obtain ⟨rfl, h⟩ := mk_eq_mk_iff.1 hx
    exact (h rfl).symm
  · rintro rfl
    exact ⟨p, rfl⟩
variable [TopologicalSpace X]

instance

instance : TopologicalSpace (WithOrigins X p I)
Proof
:=
  inferInstanceAs (TopologicalSpace (Quotient (WithOrigins.setoid X p I)))

theorem isOpen_iff

TopologyByExample.WithOrigins.isOpen_iff

A set is open exactly when its preimage in every sheet is open.

theorem isOpen_iff {s : Set (WithOrigins X p I)} : IsOpen s ↔ ∀ i, IsOpen (chart i ⁻¹' s)
Proof
:=
  isOpen_sigma_iff (σ := fun _ : I ↦ X) (s := Quotient.mk (WithOrigins.setoid X p I) ⁻¹' s)

theorem isClosed_iff

TopologyByExample.WithOrigins.isClosed_iff

A set is closed exactly when its preimage in every sheet is closed.

theorem isClosed_iff {s : Set (WithOrigins X p I)} :
    IsClosed s ↔ ∀ i, IsClosed (chart i ⁻¹' s)
Proof
:= by
  simp only [← isOpen_compl_iff, isOpen_iff, preimage_compl]

theorem continuous_chart

TopologyByExample.WithOrigins.continuous_chart

Every sheet is continuous.

@[fun_prop]
theorem continuous_chart (i : I) : Continuous (chart i : X → WithOrigins X p I)
Proof
:=
  (continuous_quotient_mk' (s := WithOrigins.setoid X p I)).comp continuous_sigmaMk

theorem continuous_proj

TopologyByExample.WithOrigins.continuous_proj

The projection is continuous.

@[fun_prop]
theorem continuous_proj : Continuous (proj : WithOrigins X p I → X)
Proof
:= by
  exact Continuous.quotient_lift (s := WithOrigins.setoid X p I)
    (continuous_sigma fun _ ↦ continuous_id) _
variable [T1Space X]

theorem isOpenMap_chart

TopologyByExample.WithOrigins.isOpenMap_chart

Every sheet is an open map.

theorem isOpenMap_chart (i : I) : IsOpenMap (chart i : X → WithOrigins X p I)
Proof
:= by
  intro s hs
  refine isOpen_iff.2 fun j ↦ ?_
  rw [chart_preimage_chart_image]
  by_cases hji : j = i
  · simpa [hji] using hs
  · convert hs.sdiff (isClosed_singleton (x := p)) using 1
    ext x
    simp [hji]

theorem isOpenEmbedding_chart

TopologyByExample.WithOrigins.isOpenEmbedding_chart

Every sheet is an open embedding: the space is locally homeomorphic to X.

theorem isOpenEmbedding_chart (i : I) : IsOpenEmbedding (chart i : X → WithOrigins X p I)
Proof
:=
  .of_continuous_injective_isOpenMap (continuous_chart i) (chart_injective i) (isOpenMap_chart i)

theorem isOpen_range_chart

TopologyByExample.WithOrigins.isOpen_range_chart

The range of a sheet is open.

theorem isOpen_range_chart (i : I) : IsOpen (range (chart i : X → WithOrigins X p I))
Proof
:=
  (isOpenEmbedding_chart i).isOpen_range

theorem nhds_mk

TopologyByExample.WithOrigins.nhds_mk

The neighbourhoods of a point of a sheet are the images of the neighbourhoods in X.

theorem nhds_mk (x : X) (i : I) : 𝓝 (mk x i : WithOrigins X p I) = map (chart i) (𝓝 x)
Proof
:=
  ((isOpenEmbedding_chart i).map_nhds_eq x).symm

theorem isClosed_origin_image

TopologyByExample.WithOrigins.isClosed_origin_image

Every set of origins is closed.

theorem isClosed_origin_image (s : Set I) : IsClosed (origin '' s : Set (WithOrigins X p I))
Proof
:= by
  refine isClosed_iff.2 fun j ↦ Set.Subsingleton.isClosed ?_
  rintro x ⟨i, -, hi⟩ y ⟨k, -, hk⟩
  exact ((mk_eq_mk_iff.1 hi).1.symm).trans (mk_eq_mk_iff.1 hk).1

instance

instance : T1Space (WithOrigins X p I)
Proof
:= by
  refine ⟨fun q ↦ ?_⟩
  obtain ⟨x, i, rfl⟩ := exists_mk q
  refine isClosed_iff.2 fun j ↦ Set.Subsingleton.isClosed ?_
  rintro y hy z hz
  exact (mk_eq_mk_iff.1 hy).1.trans (mk_eq_mk_iff.1 hz).1.symm

instance

instance [FirstCountableTopology X] : FirstCountableTopology (WithOrigins X p I)
Proof
:= by
  refine ⟨fun q ↦ ?_⟩
  obtain ⟨x, i, rfl⟩ := exists_mk q
  rw [nhds_mk]
  infer_instance

instance

instance [LocallyCompactSpace X] : LocallyCompactSpace (WithOrigins X p I)
Proof
:= by
  refine ⟨fun q n hn ↦ ?_⟩
  obtain ⟨x, i, rfl⟩ := exists_mk q
  rw [nhds_mk] at hn ⊢
  obtain ⟨s, hs, hsn, hsc⟩ := local_compact_nhds (X := X) hn
  exact ⟨chart i '' s, image_mem_map hs, image_subset_iff.2 hsn,
    hsc.image (continuous_chart i)⟩

instance

instance [LocallyPathConnectedSpace X] : LocallyPathConnectedSpace (WithOrigins X p I)
Proof
:=
  inferInstanceAs (LocallyPathConnectedSpace (Quotient (WithOrigins.setoid X p I)))

theorem pathPreconnectedSpace

TopologyByExample.WithOrigins.pathPreconnectedSpace

If X is path connected and has a point other than p, any two points are joined by a path: on one sheet to a point other than p, which lies on every sheet, then on the other sheet.

theorem pathPreconnectedSpace [PathConnectedSpace X] [Nontrivial X] :
    PathPreconnectedSpace (WithOrigins X p I)
Proof
:= by
  refine ⟨fun q r ↦ ?_⟩
  obtain ⟨x, i, rfl⟩ := exists_mk q
  obtain ⟨y, j, rfl⟩ := exists_mk r
  obtain ⟨z, hz⟩ := exists_ne p
  have hxz : Joined (mk x i : WithOrigins X p I) (mk z i) :=
    (PathConnectedSpace.joined x z).map (continuous_chart i)
  have hzy : Joined (mk z j : WithOrigins X p I) (mk y j) :=
    (PathConnectedSpace.joined z y).map (continuous_chart j)
  rw [mk_eq_mk_of_ne hz i j] at hxz
  exact hxz.trans hzy
omit [TopologicalSpace X] in

theorem iUnion_range_chart

TopologyByExample.WithOrigins.iUnion_range_chart

The ranges of the sheets cover the space.

theorem iUnion_range_chart : ⋃ i, range (chart i : X → WithOrigins X p I) = univ
Proof
:=
  eq_univ_of_forall fun q ↦ by
    obtain ⟨x, i, rfl⟩ := exists_mk q
    exact mem_iUnion.2 ⟨i, x, rfl⟩

theorem sigmaCompactSpace

TopologyByExample.WithOrigins.sigmaCompactSpace

For countably many origins, a σ-compact X gives a σ-compact space.

theorem sigmaCompactSpace [SigmaCompactSpace X] [Countable I] :
    SigmaCompactSpace (WithOrigins X p I)
Proof
:= by
  obtain ⟨K, hK, hU⟩ := SigmaCompactSpace.exists_compact_covering (X := X)
  refine SigmaCompactSpace.of_countable (range fun a : I × ℕ ↦ chart a.1 '' K a.2)
    (countable_range _) (forall_mem_range.2 fun a ↦ (hK a.2).image (continuous_chart a.1)) ?_
  refine eq_univ_of_forall fun q ↦ ?_
  obtain ⟨x, i, rfl⟩ := exists_mk q
  obtain ⟨n, hn⟩ := mem_iUnion.1 (hU.symm ▸ mem_univ x : x ∈ ⋃ n, K n)
  exact ⟨_, ⟨(i, n), rfl⟩, x, hn, rfl⟩

theorem compactSpace

TopologyByExample.WithOrigins.compactSpace

For finitely many origins, a compact X gives a compact space.

theorem compactSpace [CompactSpace X] [Finite I] : CompactSpace (WithOrigins X p I)
Proof
:= by
  refine ⟨?_⟩
  rw [← iUnion_range_chart]
  exact isCompact_iUnion fun i ↦ isCompact_range (continuous_chart i)

definition sheets

TopologyByExample.WithOrigins.sheets

The union of the copies of a set s ⊆ X on all the sheets.

def sheets (s : Set X) : Set (WithOrigins X p I)
:=
  ⋃ k, chart k '' s
omit [TopologicalSpace X] in

theorem chart_preimage_sheets

TopologyByExample.WithOrigins.chart_preimage_sheets

The preimage of sheets s in any sheet is s.

theorem chart_preimage_sheets (j : I) (s : Set X) :
    chart j ⁻¹' (sheets s : Set (WithOrigins X p I)) = s
Proof
:= by
  ext x
  simp only [sheets, preimage_iUnion, chart_preimage_chart_image, mem_iUnion, mem_ofPred_eq]
  exact ⟨fun ⟨_, hx, _⟩ ↦ hx, fun hx ↦ ⟨j, hx, fun _ ↦ rfl⟩⟩

theorem isClosed_sheets

TopologyByExample.WithOrigins.isClosed_sheets

The copies of a closed set on all the sheets form a closed set.

theorem isClosed_sheets {s : Set X} (hs : IsClosed s) :
    IsClosed (sheets s : Set (WithOrigins X p I))
Proof
:=
  isClosed_iff.2 fun j ↦ by rwa [chart_preimage_sheets]

theorem isCompact_sheets

TopologyByExample.WithOrigins.isCompact_sheets

For finitely many origins, the copies of a compact set on all the sheets form a compact set.

theorem isCompact_sheets [Finite I] {s : Set X} (hs : IsCompact s) :
    IsCompact (sheets s : Set (WithOrigins X p I))
Proof
:=
  isCompact_iUnion fun k ↦ hs.image (continuous_chart k)
variable [T1Space X]

theorem secondCountableTopology

TopologyByExample.WithOrigins.secondCountableTopology

For countably many origins, a second countable X gives a second countable space: it is covered by countably many open sets, each homeomorphic to X.

theorem secondCountableTopology [SecondCountableTopology X] [Countable I] :
    SecondCountableTopology (WithOrigins X p I)
Proof
:= by
  have : ∀ i, SecondCountableTopology (range (chart i : X → WithOrigins X p I)) := fun i ↦
    (isOpenEmbedding_chart i).isEmbedding.toHomeomorph.symm.secondCountableTopology
  exact secondCountableTopology_of_countable_cover isOpen_range_chart iUnion_range_chart

theorem locallyRelativelyCompactSpace

TopologyByExample.WithOrigins.locallyRelativelyCompactSpace

For finitely many origins, a locally relatively compact X gives a locally relatively compact space: the image on one sheet of an open set with compact closure has its closure inside the copies of that closure on all the sheets.

theorem locallyRelativelyCompactSpace [LocallyRelativelyCompactSpace X] [Finite I] :
    LocallyRelativelyCompactSpace (WithOrigins X p I)
Proof
:= by
  refine ⟨fun q ↦ ?_⟩
  obtain ⟨x, i, rfl⟩ := exists_mk q
  obtain ⟨U, hU, hxU, hc⟩ := LocallyRelativelyCompactSpace.exists_isOpen_isCompact_closure x
  refine ⟨chart i '' U, isOpenMap_chart i U hU, ⟨x, hxU, rfl⟩,
    (isCompact_sheets hc).of_isClosed_subset isClosed_closure
      (closure_minimal ?_ (isClosed_sheets isClosed_closure))⟩
  rintro _ ⟨y, hy, rfl⟩
  exact mem_iUnion.2 ⟨i, y, subset_closure hy, rfl⟩

theorem paracompactSpace

TopologyByExample.WithOrigins.paracompactSpace

For finitely many origins, a paracompact X gives a paracompact space: refine the cover on each sheet and carry the refinements back.

theorem paracompactSpace [ParacompactSpace X] [Finite I] :
    ParacompactSpace (WithOrigins X p I)
Proof
:= by
  refine ⟨fun α s hso hsu ↦ ?_⟩
  have hcov : ∀ i, ⋃ a, chart i ⁻¹' s a = univ := fun i ↦ by
    rw [← preimage_iUnion, hsu, preimage_univ]
  choose v hvo hvu hvl hvs using fun i ↦ precise_refinement (fun a ↦ chart i ⁻¹' s a)
    (fun a ↦ (hso a).preimage (continuous_chart i)) (hcov i)
  refine ⟨I × α, fun b ↦ chart b.1 '' v b.1 b.2, fun b ↦ isOpenMap_chart _ _ (hvo _ _), ?_, ?_,
    fun b ↦ ⟨b.2, image_subset_iff.2 (hvs _ _)⟩⟩
  · refine eq_univ_of_forall fun q ↦ ?_
    obtain ⟨x, i, rfl⟩ := exists_mk q
    obtain ⟨a, ha⟩ := mem_iUnion.1 ((hvu i).symm ▸ mem_univ x : x ∈ ⋃ a, v i a)
    exact mem_iUnion.2 ⟨(i, a), x, ha, rfl⟩
  · intro q
    obtain ⟨x, i, rfl⟩ := exists_mk q
    choose t ht hfin using fun k ↦ hvl k x
    refine ⟨chart i '' ⋂ k, t k, ?_, ?_⟩
    · rw [nhds_mk]
      exact image_mem_map (iInter_mem.2 ht)
    · refine ((finite_iUnion fun k ↦ (finite_singleton k).prod (hfin k)).subset ?_)
      rintro ⟨k, a⟩ ⟨_, ⟨y, hy, rfl⟩, z, hz, hyz⟩
      obtain ⟨hzy, -⟩ := mk_eq_mk_iff.1 hyz
      exact mem_iUnion.2 ⟨k, rfl, y, hy, hzy ▸ mem_iInter.1 hz k⟩

theorem finite_setOf_origin_mem

TopologyByExample.WithOrigins.finite_setOf_origin_mem

A compact set contains only finitely many origins: the sheets are an open cover, and each contains a single origin.

theorem finite_setOf_origin_mem {K : Set (WithOrigins X p I)} (hK : IsCompact K) :
    {i | origin i ∈ K}.Finite
Proof
:= by
  obtain ⟨t, ht⟩ := hK.elim_finite_subcover (fun i ↦ range (chart i)) isOpen_range_chart
    ((subset_univ K).trans (iUnion_range_chart (p := p)).symm.subset)
  refine t.finite_toSet.subset fun i hi ↦ ?_
  obtain ⟨k, hk, hik⟩ := mem_iUnion₂.1 (ht hi)
  rwa [origin_mem_range_chart_iff.1 hik]
omit [TopologicalSpace X] [T1Space X] in

theorem mk_ne_origin

TopologyByExample.WithOrigins.mk_ne_origin

A point that is not an origin.

theorem mk_ne_origin {x : X} (hx : x ≠ p) (i j : I) : (mk x i : WithOrigins X p I) ≠ origin j
Proof
:=
  fun h ↦ hx (mk_eq_mk_iff.1 h).1

theorem not_accPt_range_origin

TopologyByExample.WithOrigins.not_accPt_range_origin

The origins have no accumulation point: the set of origins is closed and discrete.

theorem not_accPt_range_origin (q : WithOrigins X p I) : ¬AccPt q (𝓟 (range origin))
Proof
:= by
  obtain ⟨x, i, rfl⟩ := exists_mk q
  rw [accPt_iff_nhds]
  intro h
  have honly : ∀ z ∈ range (chart i) ∩ range origin, z = (origin i : WithOrigins X p I) := by
    rintro _ ⟨hz, k, rfl⟩
    rw [origin_mem_range_chart_iff.1 hz]
  obtain ⟨z, hz, hzx⟩ := h _ ((isOpen_range_chart i).mem_nhds ⟨x, rfl⟩)
  have hne : (mk x i : WithOrigins X p I) ≠ origin i := by
    rw [← honly z hz]
    exact hzx.symm
  obtain ⟨z', hz', -⟩ := h _ (inter_mem ((isOpen_range_chart i).mem_nhds ⟨x, rfl⟩)
    (isOpen_compl_singleton.mem_nhds hne))
  exact hz'.1.2 (honly z' ⟨hz'.1.1, hz'.2⟩)

theorem not_countableExtent

TopologyByExample.WithOrigins.not_countableExtent

For uncountably many origins, the set of origins is an uncountable set without accumulation points.

theorem not_countableExtent [Uncountable I] :
    ¬∀ s : Set (WithOrigins X p I), ¬s.Countable → ∃ x, AccPt x (𝓟 s)
Proof
:= by
  intro h
  have hunc : ¬(range (origin : I → WithOrigins X p I)).Countable := fun hc ↦ by
    have := hc.to_subtype
    exact not_countable (Countable.of_equiv _
      (Equiv.ofInjective (origin : I → WithOrigins X p I) origin_injective).symm)
  obtain ⟨x, hx⟩ := h _ hunc
  exact not_accPt_range_origin x hx
variable [(𝓝[≠] p).NeBot]

theorem exists_mk_mem_inter

TopologyByExample.WithOrigins.exists_mk_mem_inter

A neighbourhood of one origin and a neighbourhood of another always meet, at a point other than an origin.

theorem exists_mk_mem_inter {i j : I} {U V : Set (WithOrigins X p I)} (hU : U ∈ 𝓝 (origin i))
    (hV : V ∈ 𝓝 (origin j)) : ∃ x ≠ p, mk x i ∈ U ∩ V
Proof
:= by
  rw [origin, nhds_mk] at hU hV
  have h1 : ∀ᶠ x in 𝓝[≠] p, x ∈ chart i ⁻¹' U ∩ chart j ⁻¹' V :=
    nhdsWithin_le_nhds (inter_mem hU hV)
  have h2 : ∀ᶠ x in 𝓝[≠] p, x ≠ p := self_mem_nhdsWithin
  obtain ⟨x, ⟨hxU, hxV⟩, hxp⟩ := (h1.and h2).exists
  refine ⟨x, hxp, hxU, ?_⟩
  rw [mk_eq_mk_of_ne hxp i j]
  exact hxV

theorem origin_mem_closure

TopologyByExample.WithOrigins.origin_mem_closure

The closure of a neighbourhood of one origin contains every origin.

theorem origin_mem_closure {i : I} {U : Set (WithOrigins X p I)} (hU : U ∈ 𝓝 (origin i))
    (j : I) : origin j ∈ closure U
Proof
:=
  mem_closure_iff_nhds.2 fun _ hV ↦ by
    obtain ⟨_, -, h⟩ := exists_mk_mem_inter hU hV
    exact ⟨_, h.2, h.1⟩

theorem not_t2Space

TopologyByExample.WithOrigins.not_t2Space

With two origins or more, the space is not Hausdorff.

theorem not_t2Space [Nontrivial I] : ¬T2Space (WithOrigins X p I)
Proof
:= by
  intro _
  obtain ⟨i, j, hij⟩ := exists_pair_ne I
  obtain ⟨U, V, hU, hV, hiU, hjV, hUV⟩ :=
    t2_separation (origin_injective.ne hij : (origin i : WithOrigins X p I) ≠ origin j)
  obtain ⟨_, -, h⟩ := exists_mk_mem_inter (hU.mem_nhds hiU) (hV.mem_nhds hjV)
  exact hUV.ne_of_mem h.1 h.2 rfl

theorem denseRange_chart

TopologyByExample.WithOrigins.denseRange_chart

Each sheet has dense range.

theorem denseRange_chart (i : I) : DenseRange (chart i : X → WithOrigins X p I)
Proof
:= by
  refine fun q ↦ ?_
  obtain ⟨x, j, rfl⟩ := exists_mk q
  by_cases hx : x = p
  · subst hx
    exact origin_mem_closure ((isOpen_range_chart i).mem_nhds ⟨x, rfl⟩) j
  · exact subset_closure ⟨x, mk_eq_mk_of_ne hx i j⟩

theorem origin_mem_of_isRegularOpen

TopologyByExample.WithOrigins.origin_mem_of_isRegularOpen

A regular open set containing one origin contains them all.

theorem origin_mem_of_isRegularOpen {i : I} {V : Set (WithOrigins X p I)}
    (hV : IsRegularOpen V) (hi : origin i ∈ V) (j : I) : origin j ∈ V
Proof
:= by
  have hVo : IsOpen V := hV.isOpen
  have hsub : chart j '' (chart i ⁻¹' V) ⊆ closure V := by
    rintro _ ⟨x, hx, rfl⟩
    by_cases hxp : x = p
    · subst hxp
      exact origin_mem_closure (hVo.mem_nhds hi) j
    · rw [chart_apply, mk_eq_mk_of_ne hxp j i]
      exact subset_closure hx
  rw [← hV]
  exact interior_maximal hsub (isOpenMap_chart j _ (hVo.preimage (continuous_chart i)))
    ⟨p, hi, rfl⟩

theorem not_semiregularSpace

TopologyByExample.WithOrigins.not_semiregularSpace

With two origins or more, the space is not semiregular: the range of one sheet is an open neighbourhood of its origin containing no regular open set around it.

theorem not_semiregularSpace [Nontrivial I] : ¬SemiregularSpace (WithOrigins X p I)
Proof
:= by
  intro ⟨h⟩
  obtain ⟨i, j, hij⟩ := exists_pair_ne I
  obtain ⟨V, hVr, hiV, hVsub⟩ :=
    h.exists_subset_of_mem_open (⟨p, rfl⟩ : (origin i : WithOrigins X p I) ∈ range (chart i))
      (isOpen_range_chart i)
  exact hij.symm (origin_mem_range_chart_iff.1 (hVsub (origin_mem_of_isRegularOpen hVr hiV j)))

theorem separableSpace

TopologyByExample.WithOrigins.separableSpace

A separable X gives a separable space.

theorem separableSpace [SeparableSpace X] : SeparableSpace (WithOrigins X p I)
Proof
:= by
  cases isEmpty_or_nonempty I with
  | inl _ => infer_instance
  | inr h => exact (denseRange_chart (Classical.arbitrary I)).separableSpace (continuous_chart _)

theorem baireSpace

TopologyByExample.WithOrigins.baireSpace

A Baire space X gives a Baire space: the range of a sheet is a dense open subspace homeomorphic to X.

theorem baireSpace [BaireSpace X] : BaireSpace (WithOrigins X p I)
Proof
:= by
  cases isEmpty_or_nonempty I with
  | inl _ => exact baire_of_finite
  | inr h =>
    let i := Classical.arbitrary I
    have : BaireSpace (range (chart i : X → WithOrigins X p I)) :=
      (isOpenEmbedding_chart i).isEmbedding.toHomeomorph.baireSpace
    exact baireSpace_of_isOpen_of_dense (isOpen_range_chart i) (denseRange_chart i)

theorem not_locallyRelativelyCompactSpace

TopologyByExample.WithOrigins.not_locallyRelativelyCompactSpace

For infinitely many origins, the space is not locally relatively compact: the closure of a neighbourhood of an origin contains all the origins, and a compact set only finitely many.

theorem not_locallyRelativelyCompactSpace [Infinite I] :
    ¬LocallyRelativelyCompactSpace (WithOrigins X p I)
Proof
:= by
  intro ⟨h⟩
  obtain ⟨U, hU, hiU, hc⟩ := h (origin (Classical.arbitrary I))
  refine infinite_univ (α := I) ((finite_setOf_origin_mem hc).subset fun j _ ↦ ?_)
  exact origin_mem_closure (hU.mem_nhds hiU) j

theorem not_countablyParacompactSpace

TopologyByExample.WithOrigins.not_countablyParacompactSpace

For infinitely many origins, the space is not countably paracompact: for distinct origins 0ᵢ₀, 0ᵢ₁, …, the closed sets {0ᵢₖ : k ≥ n} decrease to the empty set, but the closure of an open set containing one of them contains every origin.

theorem not_countablyParacompactSpace [Infinite I] :
    ¬CountablyParacompactSpace (WithOrigins X p I)
Proof
:= by
  intro _
  let e := Infinite.natEmbedding I
  let F : ℕ → Set (WithOrigins X p I) := fun n ↦ origin '' (e '' Ici n)
  have hFc : ∀ n, IsClosed (F n) := fun n ↦ isClosed_origin_image _
  have hFa : Antitone F := fun m n hmn ↦ image_mono (image_mono (Ici_subset_Ici.2 hmn))
  have hF : ⋂ n, F n = ∅ := by
    refine eq_empty_of_forall_notMem fun q hq ↦ ?_
    obtain ⟨_, ⟨k, -, rfl⟩, rfl⟩ := mem_iInter.1 hq 0
    obtain ⟨_, ⟨l, hl, hkl⟩, he⟩ := mem_iInter.1 hq (k + 1)
    have : l = k := e.injective (hkl.trans (origin_injective he))
    exact absurd (this ▸ hl : k ∈ Ici (k + 1)) (by simp)
  obtain ⟨G, hGo, hFG, -, hG⟩ := CountablyParacompactSpace.exists_open_iInter_closure_eq_empty hFc
    hFa hF
  have hmem : origin (e 0) ∈ ⋂ n, closure (G n) := mem_iInter.2 fun n ↦
    origin_mem_closure ((hGo n).mem_nhds (hFG n ⟨e n, ⟨n, Set.mem_Ici.2 le_rfl, rfl⟩, rfl⟩)) (e 0)
  rw [hG] at hmem
  exact hmem
omit [TopologicalSpace X] in

theorem range_chart

TopologyByExample.WithOrigins.range_chart

The range of sheet i is the space without the origins other than i.

theorem range_chart (i : I) :
    range (chart i : X → WithOrigins X p I) = {q | ∀ j, q = origin j → j = i}
Proof
:= by
  ext q
  obtain ⟨x, k, rfl⟩ := exists_mk q
  refine ⟨fun h j hj ↦ origin_mem_range_chart_iff.1 (hj ▸ h), fun h ↦ ?_⟩
  by_cases hx : x = p
  · subst hx
    exact h k rfl ▸ ⟨x, rfl⟩
  · exact ⟨x, mk_eq_mk_of_ne hx i k⟩

theorem continuous_iff

TopologyByExample.WithOrigins.continuous_iff

A map out of the space is continuous exactly when it is continuous on every sheet.

theorem continuous_iff {Y : Type*} [TopologicalSpace Y] {f : WithOrigins X p I → Y} :
    Continuous f ↔ ∀ i, Continuous (f ∘ chart i)
Proof
:=
  (isQuotientMap_quotient_mk' (s := WithOrigins.setoid X p I)).continuous_iff.trans
    continuous_sigma_iff

definition congr

TopologyByExample.WithOrigins.congr

A homeomorphism X ≃ₜ Y taking p to q induces a homeomorphism between the spaces with origins.

def congr {Y : Type*} [TopologicalSpace Y] {q : Y} (e : X ≃ₜ Y) (h : e p = q) :
    WithOrigins X p I ≃ₜ WithOrigins Y q I
Definition
where
  toFun := Quotient.lift (s := WithOrigins.setoid X p I) (fun a ↦ mk (e a.2) a.1)
    fun _ _ hab ↦ mk_eq_mk_iff.2
      ⟨congrArg e hab.1, fun hq ↦ hab.2 (e.injective (hq.trans h.symm))⟩
  invFun := Quotient.lift (s := WithOrigins.setoid Y q I) (fun a ↦ mk (e.symm a.2) a.1)
    fun a _ hab ↦ mk_eq_mk_iff.2
      ⟨congrArg e.symm hab.1, fun hp ↦ hab.2 (by rw [← h, ← hp, e.apply_symm_apply])⟩
  left_inv r := by
    obtain ⟨x, i, rfl⟩ := exists_mk r
    change (mk (e.symm (e x)) i : WithOrigins X p I) = mk x i
    rw [e.symm_apply_apply]
  right_inv r := by
    obtain ⟨y, i, rfl⟩ := exists_mk r
    change (mk (e (e.symm y)) i : WithOrigins Y q I) = mk y i
    rw [e.apply_symm_apply]
  continuous_toFun := continuous_iff.2 fun i ↦ (continuous_chart i).comp e.continuous
  continuous_invFun := continuous_iff.2 fun i ↦ (continuous_chart i).comp e.symm.continuous

theorem tendsto_chart_coclosedCompact

TopologyByExample.WithOrigins.tendsto_chart_coclosedCompact

A sheet tends to infinity at infinity: the preimage of a closed compact set is closed, and compact as a closed subset of the compact projection of that set.

theorem tendsto_chart_coclosedCompact (i : I) :
    Tendsto (chart i : X → WithOrigins X p I) (coclosedCompact X)
      (coclosedCompact (WithOrigins X p I))
Proof
:= by
  refine hasBasis_coclosedCompact.tendsto_right_iff.2 fun K ⟨hKc, hKk⟩ ↦ ?_
  have hc : IsClosed (chart i ⁻¹' K) := hKc.preimage (continuous_chart i)
  exact hasBasis_coclosedCompact.mem_of_mem
    ⟨hc, (hKk.image continuous_proj).of_isClosed_subset hc fun x hx ↦ ⟨_, hx, rfl⟩⟩

definition onePointHomeomorph

TopologyByExample.WithOrigins.onePointHomeomorph

For finitely many (and at least one) origins, the one-point compactification of the space with origins is the space with origins over the one-point compactification of X.

noncomputable def onePointHomeomorph [T1Space X] [Finite I] [Nonempty I] :
    OnePoint (WithOrigins X p I) ≃ₜ WithOrigins (OnePoint X) (p : OnePoint X) I
Definition
where
  toFun r := r.elim (mk ∞ (Classical.arbitrary I))
    (Quotient.lift (s := WithOrigins.setoid X p I) (fun a ↦ mk (a.2 : OnePoint X) a.1)
      fun _ _ hab ↦ mk_eq_mk_iff.2
        ⟨congrArg _ hab.1, fun h ↦ hab.2 (OnePoint.coe_injective h)⟩)
  invFun := Quotient.lift (s := WithOrigins.setoid (OnePoint X) (p : OnePoint X) I)
    (fun a ↦ OnePoint.map (chart a.1) a.2) (by
      rintro ⟨i, y⟩ ⟨j, y'⟩ ⟨hy, h⟩
      dsimp only at hy h
      subst hy
      induction y using OnePoint.rec with
      | infty => rfl
      | coe x =>
        exact congrArg _ (mk_eq_mk_iff.2 ⟨rfl, fun hx ↦ h (congrArg _ hx)⟩))
  left_inv r := by
    induction r using OnePoint.rec with
    | infty => rfl
    | coe q =>
      obtain ⟨x, i, rfl⟩ := exists_mk q
      rfl
  right_inv r := by
    obtain ⟨y, i, rfl⟩ := exists_mk r
    induction y using OnePoint.rec with
    | infty => exact mk_eq_mk_of_ne (OnePoint.infty_ne_coe p) _ _
    | coe x => rfl
  continuous_toFun := by
    refine (OnePoint.continuous_iff _).2 ⟨?_, continuous_iff.2 fun i ↦
      (continuous_chart i).comp OnePoint.continuous_coe⟩
    change Tendsto _ _ (𝓝 (mk ∞ (Classical.arbitrary I)))
    rw [nhds_mk, (OnePoint.hasBasis_nhds_infty.map _).tendsto_right_iff]
    rintro K ⟨hKc, hKk⟩
    filter_upwards [hasBasis_coclosedCompact.mem_of_mem (i := (sheets (insert p K) :
      Set (WithOrigins X p I)))
        ⟨isClosed_sheets (by rw [insert_eq]; exact isClosed_singleton.union hKc),
        isCompact_sheets (hKk.insert p)⟩] with q hq
    obtain ⟨x, i, rfl⟩ := exists_mk q
    have hx : x ∉ insert p K := fun hx ↦ hq (mem_iUnion.2 ⟨i, x, hx, rfl⟩)
    refine ⟨x, Or.inl ⟨x, fun hxK ↦ hx (mem_insert_of_mem p hxK), rfl⟩, ?_⟩
    exact mk_eq_mk_of_ne (fun h ↦ hx (by rw [OnePoint.coe_injective h]; exact mem_insert p K)) _ _
  continuous_invFun := continuous_iff.2 fun i ↦
    OnePoint.continuous_map (continuous_chart i) (tendsto_chart_coclosedCompact i)

Lines with several origins

definition LineWithOrigins

TopologyByExample.LineWithOrigins

The line with several origins: the real line with 0 replaced by one origin for each i : I.

abbrev LineWithOrigins (I : Type v) : Type v
:=
  WithOrigins ℝ 0 I
variable {I : Type v}

theorem t1Space

TopologyByExample.LineWithOrigins.t1Space

Every line with several origins is T₁.

theorem t1Space : T1Space (LineWithOrigins I)
Proof
:=
  inferInstance

On this site: Lines with several origins: the space is T₁

theorem firstCountableTopology

TopologyByExample.LineWithOrigins.firstCountableTopology

Every line with several origins is first countable.

theorem firstCountableTopology : FirstCountableTopology (LineWithOrigins I)
Proof
:=
  inferInstance

On this site: Lines with several origins: the space is first countable

theorem separableSpace

TopologyByExample.LineWithOrigins.separableSpace

Every line with several origins is separable.

theorem separableSpace : SeparableSpace (LineWithOrigins I)
Proof
:=
  WithOrigins.separableSpace

On this site: Lines with several origins: the space is separable

theorem pathPreconnectedSpace

TopologyByExample.LineWithOrigins.pathPreconnectedSpace

Every line with several origins is path connected.

theorem pathPreconnectedSpace : PathPreconnectedSpace (LineWithOrigins I)
Proof
:=
  WithOrigins.pathPreconnectedSpace

On this site: Lines with several origins: the space is path connected

theorem locallyPathConnectedSpace

TopologyByExample.LineWithOrigins.locallyPathConnectedSpace

Every line with several origins is locally path connected.

theorem locallyPathConnectedSpace : LocallyPathConnectedSpace (LineWithOrigins I)
Proof
:=
  inferInstance

theorem locallyCompactSpace

TopologyByExample.LineWithOrigins.locallyCompactSpace

Every line with several origins is locally compact: each point has a neighbourhood base of compact sets.

theorem locallyCompactSpace : LocallyCompactSpace (LineWithOrigins I)
Proof
:=
  inferInstance

On this site: Lines with several origins: the space is locally compact

theorem baireSpace

TopologyByExample.LineWithOrigins.baireSpace

Every line with several origins is a Baire space.

theorem baireSpace : BaireSpace (LineWithOrigins I)
Proof
:=
  WithOrigins.baireSpace

On this site: Lines with several origins: the space is a Baire space

theorem not_pseudocompactSpace

TopologyByExample.LineWithOrigins.not_pseudocompactSpace

With at least one origin, the line is not pseudocompact: the coordinate is an unbounded continuous function.

theorem not_pseudocompactSpace [Nonempty I] : ¬PseudocompactSpace (LineWithOrigins I)
Proof
:= by
  intro ⟨h⟩
  obtain ⟨⟨b, hb⟩, -⟩ := h ⟨proj, continuous_proj⟩
  exact (lt_add_one b).not_ge (hb ⟨mk (b + 1) (Classical.arbitrary I), rfl⟩)

On this site: Lines with several origins: the space is not pseudocompact when \(I\) is nonempty

theorem not_semiregularSpace

TopologyByExample.LineWithOrigins.not_semiregularSpace

With at least two origins, the line is not semiregular.

theorem not_semiregularSpace [Nontrivial I] : ¬SemiregularSpace (LineWithOrigins I)
Proof
:=
  WithOrigins.not_semiregularSpace

On this site: Lines with several origins: the space is not semiregular when \(I\) has at least two elements

theorem secondCountableTopology

TopologyByExample.LineWithOrigins.secondCountableTopology

With countably many origins, the line is second countable.

theorem secondCountableTopology [Countable I] : SecondCountableTopology (LineWithOrigins I)
Proof
:=
  WithOrigins.secondCountableTopology

On this site: Lines with several origins: the space is second countable when \(I\) is countable

theorem paracompactSpace

TopologyByExample.LineWithOrigins.paracompactSpace

With finitely many origins, the line is paracompact.

theorem paracompactSpace [Finite I] : ParacompactSpace (LineWithOrigins I)
Proof
:=
  WithOrigins.paracompactSpace

On this site: Lines with several origins: the space is paracompact when \(I\) is finite

theorem locallyRelativelyCompactSpace

TopologyByExample.LineWithOrigins.locallyRelativelyCompactSpace

With finitely many origins, the line is locally relatively compact.

theorem locallyRelativelyCompactSpace [Finite I] :
    LocallyRelativelyCompactSpace (LineWithOrigins I)
Proof
:=
  have : LocallyRelativelyCompactSpace ℝ := ⟨fun x ↦ ⟨Ioo (x - 1) (x + 1), isOpen_Ioo,
    ⟨by linarith, by linarith⟩, by rw [closure_Ioo (by linarith)]; exact isCompact_Icc⟩⟩
  WithOrigins.locallyRelativelyCompactSpace

On this site: Lines with several origins: the space is locally relatively compact when \(I\) is finite

theorem not_locallyRelativelyCompactSpace

TopologyByExample.LineWithOrigins.not_locallyRelativelyCompactSpace

With infinitely many origins, the line is not locally relatively compact.

theorem not_locallyRelativelyCompactSpace [Infinite I] :
    ¬LocallyRelativelyCompactSpace (LineWithOrigins I)
Proof
:=
  WithOrigins.not_locallyRelativelyCompactSpace

On this site: Lines with several origins: the space is not locally relatively compact when \(I\) is infinite

theorem not_countablyParacompactSpace

TopologyByExample.LineWithOrigins.not_countablyParacompactSpace

With infinitely many origins, the line is not countably paracompact.

theorem not_countablyParacompactSpace [Infinite I] :
    ¬CountablyParacompactSpace (LineWithOrigins I)
Proof
:=
  WithOrigins.not_countablyParacompactSpace

On this site: Lines with several origins: the space is not countably paracompact when \(I\) is infinite

theorem not_countableExtent

TopologyByExample.LineWithOrigins.not_countableExtent

With uncountably many origins, the origins form an uncountable set without accumulation points.

theorem not_countableExtent [Uncountable I] :
    ¬∀ s : Set (LineWithOrigins I), ¬s.Countable → ∃ x, AccPt x (𝓟 s)
Proof
:=
  WithOrigins.not_countableExtent

On this site: Lines with several origins: the space does not have countable extent when \(I\) is uncountable

Results

theorem inter_nonempty_of_mem_nhds

TopologyByExample.LineWithOrigins.inter_nonempty_of_mem_nhds

Any neighbourhood of one origin meets any neighbourhood of another.

theorem inter_nonempty_of_mem_nhds {i j : I} {U V : Set (LineWithOrigins I)}
    (hU : U ∈ 𝓝 (origin i)) (hV : V ∈ 𝓝 (origin j)) : (U ∩ V).Nonempty
Proof
:=
  let ⟨_, _, h⟩ := exists_mk_mem_inter hU hV
  ⟨_, h⟩

On this site: Lines with several origins: Neighbourhoods of two origins meet

theorem not_t2Space

TopologyByExample.LineWithOrigins.not_t2Space

With at least two origins, the line is not Hausdorff.

theorem not_t2Space [Nontrivial I] : ¬T2Space (LineWithOrigins I)
Proof
:=
  WithOrigins.not_t2Space

theorem origin_mem_closure

TopologyByExample.LineWithOrigins.origin_mem_closure

The closure of a neighbourhood of one origin contains every origin.

theorem origin_mem_closure {i : I} {U : Set (LineWithOrigins I)} (hU : U ∈ 𝓝 (origin i))
    (j : I) : origin j ∈ closure U
Proof
:=
  WithOrigins.origin_mem_closure hU j

On this site: Lines with several origins: The closure of a neighbourhood of an origin contains every origin

theorem origin_mem_of_isRegularOpen

TopologyByExample.LineWithOrigins.origin_mem_of_isRegularOpen

A regular open set containing one origin contains every origin.

theorem origin_mem_of_isRegularOpen {i : I} {V : Set (LineWithOrigins I)}
    (hV : IsRegularOpen V) (hi : origin i ∈ V) (j : I) : origin j ∈ V
Proof
:=
  WithOrigins.origin_mem_of_isRegularOpen hV hi j

On this site: Lines with several origins: A regular open set containing one origin contains them all

theorem finite_setOf_origin_mem

TopologyByExample.LineWithOrigins.finite_setOf_origin_mem

A compact set contains only finitely many origins.

theorem finite_setOf_origin_mem {K : Set (LineWithOrigins I)} (hK : IsCompact K) :
    {i | (origin i : LineWithOrigins I) ∈ K}.Finite
Proof
:=
  WithOrigins.finite_setOf_origin_mem hK

On this site: Lines with several origins: A compact set contains only finitely many origins

theorem isClosed_range_origin_and_not_accPt

TopologyByExample.LineWithOrigins.isClosed_range_origin_and_not_accPt

The set of origins is closed and has no accumulation point.

theorem isClosed_range_origin_and_not_accPt :
    IsClosed (range (origin : I → LineWithOrigins I)) ∧
      ∀ q : LineWithOrigins I, ¬AccPt q (𝓟 (range origin))
Proof
:=
  ⟨image_univ (f := (origin : I → LineWithOrigins I)) ▸ isClosed_origin_image univ,
    not_accPt_range_origin⟩

On this site: Lines with several origins: The origins form a closed set without accumulation points

theorem isOpen_and_nonempty_homeomorph_real

TopologyByExample.LineWithOrigins.isOpen_and_nonempty_homeomorph_real

Removing every origin but one leaves an open subspace homeomorphic to the real line.

theorem isOpen_and_nonempty_homeomorph_real (i : I) :
    IsOpen {q : LineWithOrigins I | ∀ j, q = origin j → j = i} ∧
      Nonempty ({q : LineWithOrigins I | ∀ j, q = origin j → j = i} ≃ₜ ℝ)
Proof
:= by
  rw [← range_chart]
  exact ⟨isOpen_range_chart i, ⟨(isOpenEmbedding_chart i).isEmbedding.toHomeomorph.symm⟩⟩

On this site: Lines with several origins: Removing all origins but one leaves the real line

theorem exists_isOpen_homeomorph_real

TopologyByExample.LineWithOrigins.exists_isOpen_homeomorph_real

The line with several origins is locally homeomorphic to the real line: every point has an open neighbourhood homeomorphic to ℝ.

theorem exists_isOpen_homeomorph_real (q : LineWithOrigins I) :
    ∃ U : Set (LineWithOrigins I), IsOpen U ∧ q ∈ U ∧ Nonempty (U ≃ₜ ℝ)
Proof
:= by
  obtain ⟨x, i, rfl⟩ := exists_mk q
  exact ⟨range (chart i), isOpen_range_chart i, ⟨x, rfl⟩,
    ⟨(isOpenEmbedding_chart i).isEmbedding.toHomeomorph.symm⟩⟩

On this site: Lines with several origins: Locally homeomorphic to the real line

On this site: Space: Line with finitely many (at least two) origins; Space: Line with countably infinitely many origins; Space: Line with uncountably many origins; Family: Lines with several origins