Lean library · module TopologyByExample.Theorems.OrderEndpoints
Countably many one-sided endpoints of a set
Let O be a subset of a separable, densely ordered linear order with the order topology. Only
countably many points x ∉ O are the right end of an open interval (a, x) ⊆ O with a < x:
for two such points x < y the point x cannot lie in the interval of y, so the intervals are
disjoint, and each contains a point of a fixed countable dense set. The same holds for left ends.
These are used to show that the double arrow space is hereditarily Lindelöf.
Main statements
TopologyByExample.countable_setOf_notMem_Ioo_subset_left: countably many pointsx ∉ Ohave an interval(a, x) ⊆ Owitha < x.TopologyByExample.countable_setOf_notMem_Ioo_subset_right: countably many pointsx ∉ Ohave an interval(x, b) ⊆ Owithx < b.
Tags
order topology, separable, countable, endpoints
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.
variable {α : Type*} [LinearOrder α] [TopologicalSpace α] [OrderTopology α] [DenselyOrdered α]
[SeparableSpace α]
theorem countable_setOf_notMem_Ioo_subset_left
TopologyByExample.countable_setOf_notMem_Ioo_subset_left
In a separable, densely ordered linear order with the order topology, only countably many
points x outside a set O have an open interval (a, x), a < x, contained in O.
theorem countable_setOf_notMem_Ioo_subset_left (O : Set α) :
{x | x ∉ O ∧ ∃ a < x, Ioo a x ⊆ O}.Countable
Proof
:= by
obtain ⟨D, hDc, hD⟩ := exists_countable_dense α
have h : ∀ x ∈ {x | x ∉ O ∧ ∃ a < x, Ioo a x ⊆ O}, ∃ d ∈ D, ∃ a < d, d < x ∧ Ioo a x ⊆ O := by
rintro x ⟨-, a, hax, haO⟩
obtain ⟨d, hdD, had, hdx⟩ := hD.exists_between hax
exact ⟨d, hdD, a, had, hdx, haO⟩
choose! d hdD a had hdx haO using h
refine MapsTo.countable_of_injOn hdD (fun x hx y hy hxy ↦ ?_) hDc
by_contra hne
rcases lt_or_gt_of_ne hne with hlt | hlt
· exact hx.1 (haO y hy ⟨(had y hy).trans (hxy ▸ hdx x hx), hlt⟩)
· exact hy.1 (haO x hx ⟨(had x hx).trans (hxy.symm ▸ hdx y hy), hlt⟩)
On this site: Theorem: Only countably many points outside a set end an interval inside it
theorem countable_setOf_notMem_Ioo_subset_right
TopologyByExample.countable_setOf_notMem_Ioo_subset_right
In a separable, densely ordered linear order with the order topology, only countably many
points x outside a set O have an open interval (x, b), x < b, contained in O.
theorem countable_setOf_notMem_Ioo_subset_right (O : Set α) :
{x | x ∉ O ∧ ∃ b > x, Ioo x b ⊆ O}.Countable
Proof
:= by
obtain ⟨D, hDc, hD⟩ := exists_countable_dense α
have h : ∀ x ∈ {x | x ∉ O ∧ ∃ b > x, Ioo x b ⊆ O}, ∃ d ∈ D, ∃ b > d, x < d ∧ Ioo x b ⊆ O := by
rintro x ⟨-, b, hxb, hbO⟩
obtain ⟨d, hdD, hxd, hdb⟩ := hD.exists_between hxb
exact ⟨d, hdD, b, hdb, hxd, hbO⟩
choose! d hdD b hdb hxd hbO using h
refine MapsTo.countable_of_injOn hdD (fun x hx y hy hxy ↦ ?_) hDc
by_contra hne
rcases lt_or_gt_of_ne hne with hlt | hlt
· exact hy.1 (hbO x hx ⟨hlt, (hxy ▸ hxd y hy).trans (hdb x hx)⟩)
· exact hx.1 (hbO y hy ⟨hlt, (hxy.symm ▸ hxd x hx).trans (hdb y hy)⟩)