Lean library · module TopologyByExample.Spaces.AlteredLongRay

The altered long ray

Source file

The altered long ray is the long ray L = ω₁ × [0, 1) with one more point ∞. The long ray is an open subspace with its own topology, and the neighbourhoods of ∞ are the sets containing some

U α = {∞} ∪ {(β, t) : β ≥ α, t > 0}, α < ω₁.

So ∞ is approached along the long end of L, but only through the open intervals {β} × (0, 1), never through the points (β, 0).

Choice of type

TopologyByExample.AlteredLongRay is Option LongRay, with none the point ∞, and the topology in which a set s is open when its trace on the long ray is open and, if ∞ ∈ s, s contains some U α.

Main statements

References

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

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 upper

TopologyByExample.LongRay.upper

The points (β, t) of the long ray with β ≥ α and t > 0.

def upper (α : OmegaOne) : Set LongRay
:= {p | α ≤ (ofLex p).1 ∧ icoZero < (ofLex p).2}

theorem upper_anti

TopologyByExample.LongRay.upper_anti

theorem upper_anti {α β : OmegaOne} (h : α ≤ β) : upper β ⊆ upper α
Proof
:=
  fun _ hp ↦ ⟨h.trans hp.1, hp.2⟩

theorem icoZero_lt_icoHalf

TopologyByExample.LongRay.icoZero_lt_icoHalf

0 < 1/2 in [0, 1).

theorem icoZero_lt_icoHalf : icoZero < icoHalf
Proof
:= show (0 : ℝ) < 1 / 2 by norm_num

theorem toLex_half_mem_upper

TopologyByExample.LongRay.toLex_half_mem_upper

The point (α, 1/2) lies in TopologyByExample.LongRay.upper α.

theorem toLex_half_mem_upper (α : OmegaOne) : toLex (α, icoHalf) ∈ upper α
Proof
:=
  ⟨le_rfl, icoZero_lt_icoHalf⟩

theorem isOpen_upper

TopologyByExample.LongRay.isOpen_upper

The set TopologyByExample.LongRay.upper α is open: each of its points (β, t) lies in the open interval from (β, 0) to (β + 1, 0), which lies in it.

theorem isOpen_upper (α : OmegaOne) : IsOpen (upper α)
Proof
:= by
  refine isOpen_iff_forall_mem_open.2 fun p hp ↦ ?_
  obtain ⟨⟨β, t⟩, rfl⟩ := toLex.surjective p
  obtain ⟨hαβ, ht⟩ := hp
  refine ⟨Ioo (toLex (β, icoZero)) (toLex (Order.succ β, icoZero)), fun q hq ↦ ?_, isOpen_Ioo,
    toLex_lt_toLex.2 (Or.inr ⟨rfl, ht⟩), toLex_lt_toLex.2 (Or.inl (Order.lt_succ β))⟩
  obtain ⟨⟨γ, s⟩, rfl⟩ := toLex.surjective q
  obtain ⟨h₁, h₂⟩ := hq
  rcases toLex_lt_toLex.1 h₁ with h₁ | ⟨h₁, h₁'⟩
  · rcases toLex_lt_toLex.1 h₂ with h₂ | ⟨-, h₂⟩
    · exact absurd (Order.lt_succ_iff.1 h₂) (not_le.2 h₁)
    · exact absurd h₂ (not_lt.2 (icoZero_le s))
  · exact ⟨hαβ.trans h₁.le, h₁'⟩

theorem toLex_succ_mem_closure_upper

TopologyByExample.LongRay.toLex_succ_mem_closure_upper

The point (γ + 1, 0) is the least upper bound of the points (γ, t), t > 0, so it lies in the closure of TopologyByExample.LongRay.upper γ.

theorem toLex_succ_mem_closure_upper (γ : OmegaOne) :
    toLex (Order.succ γ, icoZero) ∈ closure (upper γ)
Proof
:= by
  set s : Set LongRay := upper γ ∩ Iio (toLex (Order.succ γ, icoZero))
  have hs : s.Nonempty := ⟨_, toLex_half_mem_upper γ, toLex_lt_toLex.2 (Or.inl (Order.lt_succ γ))⟩
  have hlub : IsLUB s (toLex (Order.succ γ, icoZero)) := by
    refine ⟨fun p hp ↦ hp.2.le, fun v hv ↦ ?_⟩
    by_contra! hvlt
    obtain ⟨⟨δ, r⟩, rfl⟩ := toLex.surjective v
    have hδ : δ ≤ γ := by
      rcases toLex_lt_toLex.1 hvlt with h | ⟨-, h⟩
      · exact Order.lt_succ_iff.1 h
      · exact absurd h (not_lt.2 (icoZero_le r))
    let r' : Ico (0 : ℝ) 1 := ⟨((r : ℝ) + 1) / 2, by linarith [r.property.1],
      by linarith [r.property.2]⟩
    have hrr' : r < r' := show (r : ℝ) < ((r : ℝ) + 1) / 2 by linarith [r.property.2]
    have hmem : toLex (γ, r') ∈ s :=
      ⟨⟨le_rfl, (icoZero_le r).trans_lt hrr'⟩, toLex_lt_toLex.2 (Or.inl (Order.lt_succ γ))⟩
    rcases toLex_le_toLex.1 (hv hmem) with h | ⟨h, h'⟩
    · exact absurd hδ (not_le.2 h)
    · exact absurd h' (not_le.2 hrr')
  exact closure_mono inter_subset_left (hlub.mem_closure hs)

definition AlteredLongRay

TopologyByExample.AlteredLongRay

The altered long ray: the long ray with a point ∞ (none) added, whose neighbourhoods contain the sets {∞} ∪ {(β, t) : β ≥ α, t > 0}.

def AlteredLongRay : Type
:= Option LongRay

On this site: Space: Altered long ray

definition infty

TopologyByExample.AlteredLongRay.infty

The point at infinity.

def infty : AlteredLongRay
:= none

definition ofLongRay

TopologyByExample.AlteredLongRay.ofLongRay

The inclusion of the long ray.

def ofLongRay : LongRay → AlteredLongRay
:= some

theorem ofLongRay_injective

TopologyByExample.AlteredLongRay.ofLongRay_injective

The inclusion of the long ray is injective.

theorem ofLongRay_injective : Injective ofLongRay
Proof
:= Option.some_injective _

theorem ofLongRay_ne_infty

TopologyByExample.AlteredLongRay.ofLongRay_ne_infty

No point of the long ray is the point at infinity.

theorem ofLongRay_ne_infty (x : LongRay) : ofLongRay x ≠ infty
Proof
:= Option.some_ne_none x

theorem eq_infty_or_exists

TopologyByExample.AlteredLongRay.eq_infty_or_exists

Every point is the point at infinity or a point of the long ray.

theorem eq_infty_or_exists (z : AlteredLongRay) : z = infty ∨ ∃ x, z = ofLongRay x
Proof
:= by
  cases z with
  | none => exact Or.inl rfl
  | some x => exact Or.inr ⟨x, rfl⟩

definition U

TopologyByExample.AlteredLongRay.U

The basic neighbourhood {∞} ∪ {(β, t) : β ≥ α, t > 0} of the point at infinity.

def U (α : OmegaOne) : Set AlteredLongRay
:= insert infty (ofLongRay '' upper α)

theorem U_anti

TopologyByExample.AlteredLongRay.U_anti

The basic neighbourhoods decrease.

theorem U_anti {α β : OmegaOne} (h : α ≤ β) : U β ⊆ U α
Proof
:=
  insert_subset_insert (image_mono (upper_anti h))

theorem ofLongRay_mem_U

TopologyByExample.AlteredLongRay.ofLongRay_mem_U

A point of the long ray lies in U α if and only if it lies in upper α.

theorem ofLongRay_mem_U {α : OmegaOne} {x : LongRay} : ofLongRay x ∈ U α ↔ x ∈ upper α
Proof
:= by
  refine ⟨fun h ↦ ?_, fun h ↦ mem_insert_of_mem _ (mem_image_of_mem _ h)⟩
  rcases mem_insert_iff.1 h with h | ⟨y, hy, hyx⟩
  · exact absurd h (ofLongRay_ne_infty x)
  · exact ofLongRay_injective hyx ▸ hy

instance instTopologicalSpace

TopologyByExample.AlteredLongRay.instTopologicalSpace

The topology of the altered long ray.

instance instTopologicalSpace : TopologicalSpace AlteredLongRay
Proof
where
  IsOpen s := IsOpen (ofLongRay ⁻¹' s) ∧ (infty ∈ s → ∃ α, U α ⊆ s)
  isOpen_univ := ⟨isOpen_univ, fun _ ↦ ⟨⊥, subset_univ _⟩⟩
  isOpen_inter s t hs ht := ⟨hs.1.inter ht.1, fun h ↦ by
    obtain ⟨α, hα⟩ := hs.2 h.1
    obtain ⟨β, hβ⟩ := ht.2 h.2
    exact ⟨max α β, subset_inter ((U_anti (le_max_left _ _)).trans hα)
      ((U_anti (le_max_right _ _)).trans hβ)⟩⟩
  isOpen_sUnion S hS := ⟨by
    rw [preimage_sUnion]
    exact isOpen_biUnion fun s hs ↦ (hS s hs).1, fun ⟨s, hs, h⟩ ↦ by
    obtain ⟨α, hα⟩ := (hS s hs).2 h
    exact ⟨α, hα.trans (subset_sUnion_of_mem hs)⟩⟩

theorem isOpen_iff

TopologyByExample.AlteredLongRay.isOpen_iff

The open sets of the altered long ray.

theorem isOpen_iff {s : Set AlteredLongRay} :
    IsOpen s ↔ IsOpen (ofLongRay ⁻¹' s) ∧ (infty ∈ s → ∃ α, U α ⊆ s)
Proof
:=
  Iff.rfl

theorem isOpen_U

TopologyByExample.AlteredLongRay.isOpen_U

The basic neighbourhoods of the point at infinity are open.

theorem isOpen_U (α : OmegaOne) : IsOpen (U α)
Proof
:= by
  refine isOpen_iff.2 ⟨?_, fun _ ↦ ⟨α, subset_rfl⟩⟩
  convert isOpen_upper α using 1
  ext x
  exact ofLongRay_mem_U

theorem isOpenEmbedding_ofLongRay

TopologyByExample.AlteredLongRay.isOpenEmbedding_ofLongRay

The long ray is an open subspace of the altered long ray, with its own topology.

theorem isOpenEmbedding_ofLongRay : IsOpenEmbedding ofLongRay
Proof
:= by
  refine .of_continuous_injective_isOpenMap (continuous_def.2 fun s hs ↦ hs.1)
    ofLongRay_injective fun V hV ↦ isOpen_iff.2 ⟨?_, fun ⟨x, _, hx⟩ ↦
      absurd hx (ofLongRay_ne_infty x)⟩
  rwa [preimage_image_eq _ ofLongRay_injective]

theorem continuous_ofLongRay

TopologyByExample.AlteredLongRay.continuous_ofLongRay

The inclusion of the long ray is continuous.

theorem continuous_ofLongRay : Continuous ofLongRay
Proof
:= isOpenEmbedding_ofLongRay.continuous

theorem hasBasis_nhds_infty

TopologyByExample.AlteredLongRay.hasBasis_nhds_infty

The sets U α form a neighbourhood base at the point at infinity.

theorem hasBasis_nhds_infty : (𝓝 infty).HasBasis (fun _ : OmegaOne ↦ True) U
Proof
:=
  ⟨fun s ↦ ⟨fun hs ↦ by
    obtain ⟨t, hts, ht, hit⟩ := mem_nhds_iff.1 hs
    obtain ⟨α, hα⟩ := (isOpen_iff.1 ht).2 hit
    exact ⟨α, trivial, hα.trans hts⟩,
    fun ⟨α, _, hα⟩ ↦ mem_of_superset ((isOpen_U α).mem_nhds (mem_insert _ _)) hα⟩⟩

theorem denseRange_ofLongRay

TopologyByExample.AlteredLongRay.denseRange_ofLongRay

The long ray is dense in the altered long ray: each U α contains (α, 1/2).

theorem denseRange_ofLongRay : DenseRange ofLongRay
Proof
:= by
  intro z
  rcases eq_infty_or_exists z with rfl | ⟨x, rfl⟩
  · exact (mem_closure_iff_nhds_basis hasBasis_nhds_infty).2 fun α _ ↦
      ⟨_, mem_range_self (toLex (α, icoHalf)), ofLongRay_mem_U.2 (toLex_half_mem_upper α)⟩
  · exact subset_closure (mem_range_self x)

Values

definition toClosedLongRay

TopologyByExample.AlteredLongRay.toClosedLongRay

The identity from the altered long ray to the closed long ray L ∪ {∞}.

def toClosedLongRay (z : AlteredLongRay) : OnePoint LongRay
:=
  Option.elim z OnePoint.infty fun x ↦ (x : OnePoint LongRay)

theorem toClosedLongRay_injective

TopologyByExample.AlteredLongRay.toClosedLongRay_injective

The identity onto the closed long ray is injective.

theorem toClosedLongRay_injective : Injective toClosedLongRay
Proof
:= by
  intro z w h
  rcases eq_infty_or_exists z with rfl | ⟨x, rfl⟩ <;>
    rcases eq_infty_or_exists w with rfl | ⟨y, rfl⟩
  · rfl
  · exact absurd h.symm (OnePoint.coe_ne_infty y)
  · exact absurd h (OnePoint.coe_ne_infty x)
  · exact congrArg ofLongRay (OnePoint.coe_injective h)

theorem continuous_toClosedLongRay

TopologyByExample.AlteredLongRay.continuous_toClosedLongRay

The identity onto the closed long ray is continuous: on the long ray it is the inclusion, and a neighbourhood {∞} ∪ (L ∖ K) of ∞ in the closed long ray, K compact and so bounded by some b, contains the image of U (b.1 + 1).

theorem continuous_toClosedLongRay : Continuous toClosedLongRay
Proof
:= by
  refine continuous_iff_continuousAt.2 fun z ↦ ?_
  rcases eq_infty_or_exists z with rfl | ⟨x, rfl⟩
  · refine (hasBasis_nhds_infty.tendsto_iff OnePoint.hasBasis_nhds_infty).2
      fun K ⟨_, hKk⟩ ↦ ?_
    obtain ⟨b, hb⟩ := hKk.bddAbove
    refine ⟨Order.succ (ofLex b).1, trivial, fun w hw ↦ ?_⟩
    rcases eq_infty_or_exists w with rfl | ⟨p, rfl⟩
    · exact Or.inr rfl
    · have hp := ofLongRay_mem_U.1 hw
      refine Or.inl ⟨p, fun hpK ↦ ?_, rfl⟩
      obtain ⟨⟨β, t⟩, rfl⟩ := toLex.surjective b
      obtain ⟨⟨γ, s⟩, rfl⟩ := toLex.surjective p
      have h := hb hpK
      have hp1 : Order.succ β ≤ γ := hp.1
      rcases toLex_le_toLex.1 h with h | ⟨h, -⟩
      · exact absurd hp1 (not_le.2 (h.trans (Order.lt_succ β)))
      · subst h
        exact absurd hp1 (not_le.2 (Order.lt_succ _))
  · exact isOpenEmbedding_ofLongRay.continuousAt_iff.1 OnePoint.continuous_coe.continuousAt

theorem functionallyHausdorffSpace

TopologyByExample.AlteredLongRay.functionallyHausdorffSpace

The altered long ray is functionally Hausdorff: the identity onto the closed long ray is a continuous injection, and the closed long ray, compact and Hausdorff, is functionally Hausdorff.

theorem functionallyHausdorffSpace : FunctionallyHausdorffSpace AlteredLongRay
Proof
:= by
  refine functionallyHausdorffSpace_iff_real.2 fun x y hxy ↦ ?_
  obtain ⟨f, hf⟩ := functionallyHausdorffSpace_iff_real.1
    (inferInstance : FunctionallyHausdorffSpace (OnePoint LongRay)) _ _
    (toClosedLongRay_injective.ne hxy)
  exact ⟨f.comp ⟨_, continuous_toClosedLongRay⟩, hf⟩

On this site: The altered long ray is functionally Hausdorff

theorem seqCompactSpace

TopologyByExample.AlteredLongRay.seqCompactSpace

The altered long ray is sequentially compact: a sequence takes the value ∞ infinitely often, or has a tail in the sequentially compact long ray.

theorem seqCompactSpace : SeqCompactSpace AlteredLongRay
Proof
:= by
  refine ⟨fun x _ ↦ ?_⟩
  by_cases h : ∃ᶠ n in atTop, x n = infty
  · obtain ⟨φ, hφ, hφx⟩ := extraction_of_frequently_atTop h
    refine ⟨infty, mem_univ _, φ, hφ, ?_⟩
    have : x ∘ φ = fun _ ↦ infty := funext hφx
    rw [this]
    exact tendsto_const_nhds
  · rw [not_frequently] at h
    let y : ℕ → LongRay := fun n ↦ Option.getD (x n) ⊥
    have hy : ∀ᶠ n in atTop, ofLongRay (y n) = x n := h.mono fun n hn ↦ by
      rcases eq_infty_or_exists (x n) with hx | ⟨p, hx⟩
      · exact absurd hx hn
      · simp only [y, hx]
        rfl
    obtain ⟨a, ψ, hψ, ha⟩ := SeqCompactSpace.tendsto_subseq y
    refine ⟨ofLongRay a, mem_univ _, ψ, hψ, ?_⟩
    exact ((continuous_ofLongRay.tendsto a).comp ha).congr' (hψ.tendsto_atTop.eventually hy)

On this site: The altered long ray is sequentially compact

theorem preconnectedSpace

TopologyByExample.AlteredLongRay.preconnectedSpace

The altered long ray is connected: the long ray is connected and dense.

theorem preconnectedSpace : PreconnectedSpace AlteredLongRay
Proof
:=
  ⟨by simpa [denseRange_ofLongRay.closure_range] using
    (isPreconnected_range continuous_ofLongRay).closure⟩

On this site: The altered long ray is connected

theorem isSeqClosed_range

TopologyByExample.AlteredLongRay.isSeqClosed_range

The long ray is sequentially closed in the altered long ray: the first coordinates of a sequence of the long ray are bounded by some c < ω₁, so the neighbourhood U (c + 1) of ∞ contains none of its terms.

theorem isSeqClosed_range : IsSeqClosed (range ofLongRay)
Proof
:= by
  intro x w hx hw
  choose y hy using hx
  rcases eq_infty_or_exists w with rfl | ⟨p, rfl⟩
  · obtain ⟨c, hc⟩ := OmegaOne.bddAbove_of_countable
      (countable_range fun n ↦ (ofLex (y n)).1)
    obtain ⟨n, hn⟩ := (hw.eventually
      (hasBasis_nhds_infty.mem_of_mem (i := Order.succ c) trivial)).exists
    rw [← hy n] at hn
    exact absurd (hc (mem_range_self n))
      (not_le.2 ((Order.lt_succ c).trans_le (ofLongRay_mem_U.1 hn).1))
  · exact mem_range_self p

theorem not_pathPreconnectedSpace

TopologyByExample.AlteredLongRay.not_pathPreconnectedSpace

The altered long ray is not path connected: the long ray is open and sequentially closed, so no path leaves it for ∞.

theorem not_pathPreconnectedSpace : ¬PathPreconnectedSpace AlteredLongRay
Proof
:= fun h ↦ by
  obtain ⟨x, hx⟩ := Joined.mem_of_isOpen_of_isSeqClosed isOpenEmbedding_ofLongRay.isOpen_range
    isSeqClosed_range (h.joined (ofLongRay ⊥) infty) ⟨⊥, rfl⟩
  exact ofLongRay_ne_infty x hx

On this site: The altered long ray is not path connected

theorem not_totallyPathDisconnectedSpace

TopologyByExample.AlteredLongRay.not_totallyPathDisconnectedSpace

The altered long ray is not totally path disconnected: two distinct points of the long ray are joined by a path.

theorem not_totallyPathDisconnectedSpace : ¬TotallyPathDisconnectedSpace AlteredLongRay
Proof
:=
  fun h ↦ by
  obtain ⟨x, y, hxy⟩ := exists_pair_ne LongRay
  exact hxy (ofLongRay_injective (h.eq_of_joined _ _
    ((PathPreconnectedSpace.joined x y).map continuous_ofLongRay)))

On this site: The altered long ray is not totally path disconnected

theorem not_countableChainCondition

TopologyByExample.AlteredLongRay.not_countableChainCondition

The altered long ray does not satisfy the countable chain condition, since its open subspace, the long ray, does not.

theorem not_countableChainCondition :
    ¬∀ S : Set (Set AlteredLongRay), (∀ s ∈ S, IsOpen s ∧ s.Nonempty) → S.PairwiseDisjoint id →
      S.Countable
Proof
:= fun h ↦ LongRay.not_countableChainCondition fun S hS hdisj ↦ by
  have himage : (image ofLongRay '' S).Countable := by
    refine h _ (fun t ⟨s, hs, hst⟩ ↦ hst ▸ ⟨isOpenEmbedding_ofLongRay.isOpenMap s (hS s hs).1,
      (hS s hs).2.image _⟩) ?_
    rintro _ ⟨s, hs, rfl⟩ _ ⟨t, ht, rfl⟩ hne
    have hst : s ≠ t := fun h ↦ hne (h ▸ rfl)
    exact (disjoint_image_iff ofLongRay_injective).2 (hdisj hs ht hst)
  exact (himage.preimage (image_injective.2 ofLongRay_injective)).mono
    fun s hs ↦ show image ofLongRay s ∈ image ofLongRay '' S from mem_image_of_mem _ hs

On this site: The altered long ray does not satisfy the countable chain condition

theorem not_locallyConnectedSpace

TopologyByExample.AlteredLongRay.not_locallyConnectedSpace

The altered long ray is not locally connected. A connected neighbourhood V of ∞ inside U 0 contains some U γ. It is covered by the disjoint open sets U (γ + 1) and the points of U 0 with first coordinate at most γ, and meets both, at ∞ and at (γ, 1/2).

theorem not_locallyConnectedSpace : ¬LocallyConnectedSpace AlteredLongRay
Proof
:= fun h ↦ by
  obtain ⟨V, hV, hVc, hVU⟩ := locallyConnectedSpace_iff_connected_subsets.1 h infty (U ⊥)
    ((isOpen_U ⊥).mem_nhds (mem_insert _ _))
  obtain ⟨γ, -, hγ⟩ := hasBasis_nhds_infty.mem_iff.1 hV
  set O₂ : Set AlteredLongRay :=
    ofLongRay '' (upper ⊥ ∩ Iio (toLex (Order.succ γ, icoZero)))
  have hO₂ : IsOpen O₂ :=
    isOpenEmbedding_ofLongRay.isOpenMap _ ((isOpen_upper ⊥).inter isOpen_Iio)
  have hcover : V ⊆ U (Order.succ γ) ∪ O₂ := by
    intro v hv
    rcases eq_infty_or_exists v with rfl | ⟨p, rfl⟩
    · exact Or.inl (mem_insert _ _)
    · have hp := ofLongRay_mem_U.1 (hVU hv)
      by_cases hpγ : Order.succ γ ≤ (ofLex p).1
      · exact Or.inl (ofLongRay_mem_U.2 ⟨hpγ, hp.2⟩)
      · refine Or.inr ⟨p, ⟨hp, ?_⟩, rfl⟩
        obtain ⟨⟨β, t⟩, rfl⟩ := toLex.surjective p
        exact toLex_lt_toLex.2 (Or.inl (not_le.1 hpγ))
  obtain ⟨z, hzV, hz₁, hz₂⟩ := hVc (U (Order.succ γ)) O₂ (isOpen_U _) hO₂ hcover
    ⟨infty, mem_of_mem_nhds hV, mem_insert _ _⟩
    ⟨ofLongRay (toLex (γ, icoHalf)), hγ (ofLongRay_mem_U.2 (toLex_half_mem_upper γ)),
      _, ⟨upper_anti bot_le (toLex_half_mem_upper γ), toLex_lt_toLex.2 (Or.inl (Order.lt_succ γ))⟩,
      rfl⟩
  obtain ⟨p, ⟨-, hp⟩, rfl⟩ := hz₂
  have h₁ := (ofLongRay_mem_U.1 hz₁).1
  obtain ⟨⟨β, t⟩, rfl⟩ := toLex.surjective p
  rcases toLex_lt_toLex.1 (show toLex (β, t) < toLex (Order.succ γ, icoZero) from hp) with
    h | ⟨-, h⟩
  · exact absurd h₁ (not_le.2 h)
  · exact absurd h (not_lt.2 (icoZero_le t))

On this site: The altered long ray is not locally connected

theorem baireSpace

TopologyByExample.AlteredLongRay.baireSpace

The altered long ray is a Baire space: the long ray, locally compact and Hausdorff, is a dense open Baire subspace.

theorem baireSpace : BaireSpace AlteredLongRay
Proof
:= by
  refine ⟨fun f hfo hfd ↦ ?_⟩
  have hd : Dense (⋂ n, ofLongRay ⁻¹' f n) :=
    dense_iInter_of_isOpen (fun n ↦ (hfo n).preimage continuous_ofLongRay)
      fun n ↦ (hfd n).preimage isOpenEmbedding_ofLongRay.isOpenMap
  refine (denseRange_ofLongRay.dense_image continuous_ofLongRay hd).mono ?_
  rintro _ ⟨x, hx, rfl⟩
  exact mem_iInter.2 fun n ↦ mem_iInter.1 hx n

On this site: The altered long ray is a Baire space

instance

The altered long ray is nonempty.

instance : Nonempty AlteredLongRay
Proof
:= ⟨infty⟩

theorem not_isMeagre_univ

TopologyByExample.AlteredLongRay.not_isMeagre_univ

The altered long ray is of the second category in itself: it is a nonempty Baire space.

theorem not_isMeagre_univ : ¬IsMeagre (univ : Set AlteredLongRay)
Proof
:=
  haveI := baireSpace
  not_isMeagre_univ_of_baireSpace

theorem image_Ioo_subset_closure_U

TopologyByExample.AlteredLongRay.image_Ioo_subset_closure_U

In the altered long ray, the points of the open interval from (γ, 1/2) to (γ + 1, 1/2) lie in the closure of U γ: those with positive second coordinate lie in U γ, and the remaining point (γ + 1, 0) is a limit of the points (γ, t).

theorem image_Ioo_subset_closure_U (γ : OmegaOne) :
    ofLongRay '' Ioo (toLex (γ, icoHalf)) (toLex (Order.succ γ, icoHalf)) ⊆ closure (U γ)
Proof
:= by
  rintro _ ⟨p, ⟨h₁, h₂⟩, rfl⟩
  refine closure_mono (subset_insert _ _)
    (image_closure_subset_closure_image continuous_ofLongRay (mem_image_of_mem _ ?_))
  obtain ⟨⟨δ, s⟩, rfl⟩ := toLex.surjective p
  by_cases hs : icoZero < s
  · rcases toLex_lt_toLex.1 h₁ with h | ⟨h, -⟩
    · exact subset_closure ⟨h.le, hs⟩
    · exact subset_closure ⟨h.le, hs⟩
  · have hs0 : s = icoZero := le_antisymm (not_lt.1 hs) (icoZero_le s)
    subst hs0
    have hγδ : γ < δ := by
      rcases toLex_lt_toLex.1 h₁ with h | ⟨-, h⟩
      · exact h
      · exact absurd h (not_lt.2 (icoZero_le _))
    have hδ : δ = Order.succ γ := by
      rcases toLex_lt_toLex.1 h₂ with h | ⟨h, -⟩
      · exact absurd (Order.lt_succ_iff.1 h) (not_le.2 hγδ)
      · exact h
    subst hδ
    exact toLex_succ_mem_closure_upper γ

theorem not_semiregularSpace

TopologyByExample.AlteredLongRay.not_semiregularSpace

The altered long ray is not semiregular. A regular open set W with ∞ ∈ W ⊆ U 0 contains some U γ, hence the interior of the closure of U γ, which contains the open set of the points between (γ, 1/2) and (γ + 1, 1/2), among them (γ + 1, 0) ∉ U 0.

theorem not_semiregularSpace : ¬SemiregularSpace AlteredLongRay
Proof
:= fun ⟨hB⟩ ↦ by
  obtain ⟨W, hWB, hiW, hWU⟩ := hB.exists_subset_of_mem_open (mem_insert infty _) (isOpen_U ⊥)
  obtain ⟨γ, hγ⟩ := (isOpen_iff.1 (hB.isOpen hWB)).2 hiW
  have hO : IsOpen (ofLongRay '' Ioo (toLex (γ, icoHalf)) (toLex (Order.succ γ, icoHalf))) :=
    isOpenEmbedding_ofLongRay.isOpenMap _ isOpen_Ioo
  have hmem : ofLongRay (toLex (Order.succ γ, icoZero)) ∈ W := by
    rw [← (hWB : interior (closure W) = W)]
    refine interior_maximal ((image_Ioo_subset_closure_U γ).trans (closure_mono hγ)) hO
      ⟨_, ⟨toLex_lt_toLex.2 (Or.inl (Order.lt_succ γ)),
        (show toLex (Order.succ γ, icoZero) < toLex (Order.succ γ, icoHalf) from
          toLex_lt_toLex.2 (Or.inr ⟨rfl, icoZero_lt_icoHalf⟩))⟩, rfl⟩
  exact lt_irrefl _ (ofLongRay_mem_U.1 (hWU hmem)).2

On this site: The altered long ray is not semiregular

theorem not_regular_at_infty

TopologyByExample.AlteredLongRay.not_regular_at_infty

The altered long ray is not regular at ∞: the set of the points (β, 0) is closed and does not contain ∞, but every open set containing it meets every open set containing ∞.

theorem not_regular_at_infty :
    IsClosed (ofLongRay '' {p | (ofLex p).2 = icoZero}) ∧
      infty ∉ ofLongRay '' {p | (ofLex p).2 = icoZero} ∧
      ∀ V W : Set AlteredLongRay, IsOpen V → IsOpen W →
        ofLongRay '' {p | (ofLex p).2 = icoZero} ⊆ V → infty ∈ W → (V ∩ W).Nonempty
Proof
:= by
  refine ⟨?_, fun ⟨x, _, hx⟩ ↦ ofLongRay_ne_infty x hx, fun V W hV hW hAV hiW ↦ ?_⟩
  · rw [← isOpen_compl_iff]
    convert isOpen_U ⊥ using 1
    ext z
    rcases eq_infty_or_exists z with rfl | ⟨p, rfl⟩
    · simp only [mem_compl_iff, mem_image, not_exists, not_and]
      exact ⟨fun _ ↦ mem_insert _ _, fun _ x _ hx ↦ ofLongRay_ne_infty x hx⟩
    · rw [ofLongRay_mem_U, mem_compl_iff, (ofLongRay_injective.mem_set_image)]
      simp only [upper, mem_ofPred_eq, bot_le, true_and]
      exact ⟨fun h ↦ lt_of_le_of_ne (icoZero_le _) (Ne.symm h), fun h h' ↦ h.ne' h'⟩
  · obtain ⟨γ, hγ⟩ := (isOpen_iff.1 hW).2 hiW
    have hγV : toLex (γ, icoZero) ∈ ofLongRay ⁻¹' V := hAV ⟨_, rfl, rfl⟩
    obtain ⟨u, hu, hIco⟩ := exists_Ico_subset_of_mem_nhds
      ((isOpen_iff.1 hV).1.mem_nhds hγV) (exists_gt _)
    obtain ⟨q, hq₁, hq₂⟩ := exists_between (lt_min hu (show toLex (γ, icoZero) < toLex (γ, icoHalf)
      from toLex_lt_toLex.2 (Or.inr ⟨rfl, icoZero_lt_icoHalf⟩)))
    refine ⟨ofLongRay q, hIco ⟨hq₁.le, hq₂.trans_le (min_le_left _ _)⟩, hγ ?_⟩
    refine ofLongRay_mem_U.2 ?_
    have hq₃ := hq₂.trans_le (min_le_right _ _)
    obtain ⟨⟨δ, s⟩, rfl⟩ := toLex.surjective q
    have hδ : δ = γ := ProdLex.fst_eq_of_mem_Ioo ⟨hq₁, hq₃⟩
    subst hδ
    rcases toLex_lt_toLex.1 hq₁ with h | ⟨-, h⟩
    · exact absurd h (lt_irrefl _)
    · exact ⟨le_rfl, h⟩

On this site: Altered long ray: Not regular at the added point