Lean library · module TopologyByExample.Theorems.OrdConnectedCofinal

Countable cofinal sets in order-connected subsets

Source file

TopologyByExample.firstCountableTopology_of_countable_cofinal shows that a linear order is first countable in its order topology when every Set.Iio a has a countable cofinal subset and every Set.Ioi a has a countable coinitial subset. This file shows that these hypotheses are inherited by order-connected subsets, and that they hold trivially in a countable linear order.

Main statements

Tags

order topology, first countable, cofinal, order-connected

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
variable {α : Type*} [LinearOrder α]

theorem exists_countable_cofinal_Iio_of_countable

TopologyByExample.exists_countable_cofinal_Iio_of_countable

In a countable linear order, each Set.Iio a is a countable cofinal subset of itself.

theorem exists_countable_cofinal_Iio_of_countable [Countable α] (a : α) :
    ∃ s ⊆ Iio a, s.Countable ∧ ∀ b < a, ∃ c ∈ s, b ≤ c
Proof
:=
  ⟨Iio a, subset_rfl, to_countable _, fun b hb ↦ ⟨b, hb, le_rfl⟩⟩

theorem exists_countable_coinitial_Ioi_of_countable

TopologyByExample.exists_countable_coinitial_Ioi_of_countable

In a countable linear order, each Set.Ioi a is a countable coinitial subset of itself.

theorem exists_countable_coinitial_Ioi_of_countable [Countable α] (a : α) :
    ∃ s ⊆ Ioi a, s.Countable ∧ ∀ b > a, ∃ c ∈ s, c ≤ b
Proof
:=
  ⟨Ioi a, subset_rfl, to_countable _, fun b hb ↦ ⟨b, hb, le_rfl⟩⟩
variable {s : Set α} [s.OrdConnected]

theorem exists_countable_cofinal_Iio

TopologyByExample.OrdConnected.exists_countable_cofinal_Iio

If every Set.Iio a in α has a countable cofinal subset, then so does every Set.Iio a in an order-connected subset of α.

theorem exists_countable_cofinal_Iio
    (h : ∀ a : α, ∃ t ⊆ Iio a, t.Countable ∧ ∀ b < a, ∃ c ∈ t, b ≤ c) (a : s) :
    ∃ t ⊆ Iio a, t.Countable ∧ ∀ b < a, ∃ c ∈ t, b ≤ c
Proof
:= by
  obtain ⟨t, hta, htc, ht⟩ := h a
  refine ⟨Subtype.val ⁻¹' t, fun c hc ↦ hta hc, htc.preimage Subtype.val_injective,
    fun b hb ↦ ?_⟩
  obtain ⟨c, hct, hbc⟩ := ht b hb
  exact ⟨⟨c, Set.OrdConnected.out ‹_› b.property a.property ⟨hbc, (hta hct).le⟩⟩, hct, hbc⟩

theorem exists_countable_coinitial_Ioi

TopologyByExample.OrdConnected.exists_countable_coinitial_Ioi

If every Set.Ioi a in α has a countable coinitial subset, then so does every Set.Ioi a in an order-connected subset of α.

theorem exists_countable_coinitial_Ioi
    (h : ∀ a : α, ∃ t ⊆ Ioi a, t.Countable ∧ ∀ b > a, ∃ c ∈ t, c ≤ b) (a : s) :
    ∃ t ⊆ Ioi a, t.Countable ∧ ∀ b > a, ∃ c ∈ t, c ≤ b
Proof
:= by
  obtain ⟨t, hta, htc, ht⟩ := h a
  refine ⟨Subtype.val ⁻¹' t, fun c hc ↦ hta hc, htc.preimage Subtype.val_injective,
    fun b hb ↦ ?_⟩
  obtain ⟨c, hct, hcb⟩ := ht b hb
  exact ⟨⟨c, Set.OrdConnected.out ‹_› a.property b.property ⟨(hta hct).le, hcb⟩⟩, hct, hcb⟩

theorem firstCountableTopology

TopologyByExample.OrdConnected.firstCountableTopology

An order-connected subset s of a linear order in which every Set.Iio a has a countable cofinal subset and every Set.Ioi a a countable coinitial subset is first countable in its own order topology.

theorem firstCountableTopology [TopologicalSpace s] [OrderTopology s]
    (hl : ∀ a : α, ∃ t ⊆ Iio a, t.Countable ∧ ∀ b < a, ∃ c ∈ t, b ≤ c)
    (hr : ∀ a : α, ∃ t ⊆ Ioi a, t.Countable ∧ ∀ b > a, ∃ c ∈ t, c ≤ b) :
    FirstCountableTopology s
Proof
:=
  firstCountableTopology_of_countable_cofinal (exists_countable_cofinal_Iio hl)
    (exists_countable_coinitial_Ioi hr)

On this site: Theorem: Order-connected subsets inherit the criterion for first countability