Lean library · module TopologyByExample.Theorems.LowerSetTopology
The lower set topology
Mathlib's lower set topology on a preorder (Topology.IsLowerSet) has as open sets exactly the
lower sets. This file adds some of its countability, compactness and separation properties.
For a preorder α with the lower set topology (Topology.IsLowerSet α):
Topology.IsLowerSet.tendsto_nhds_iff:ftends toaiff eventuallyf ≤ a;Topology.IsLowerSet.lindelofSpace_iff,Topology.IsLowerSet.compactSpace_iff: the space is Lindelöf (compact) iff it has a countable (finite) cofinal subset;Topology.IsLowerSet.seqCompactSpace_of_bddAbove: if every sequence is bounded above, the space is sequentially compact;Topology.IsLowerSet.not_t1Space_of_lt: ifa < bfor someaandb, it is not T₁;Topology.IsLowerSet.inter_nonempty_of_isClosed,Topology.IsLowerSet.normalSpace: in an upward directed preorder any two nonempty closed sets meet, so the space is normal;Topology.IsLowerSet.irreducibleSpace: a nonempty downward directed preorder is irreducible (every two nonempty open sets meet);Topology.IsLowerSet.dense_of_isOpen,Topology.IsLowerSet.separableSpace: with a least element, every nonempty open set is dense, and the space is separable;Topology.IsLowerSet.t0Space: for a partial order the space is T₀;Topology.IsLowerSet.completelyNormalSpace: for a linear order the space is completely normal (of two nonempty sets, one meets the closure of the other).
(Mathlib supplies first countability and local compactness, through AlexandrovDiscrete, the
closure of a point closure {a} = Set.Ici a and the specialization order a ⤳ b ↔ a ≤ b.)
Tags
lower set topology, Alexandrov topology, left ray topology
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*} [TopologicalSpace α]
variable [Preorder α] [Topology.IsLowerSet α]
theorem tendsto_nhds_iff
Topology.IsLowerSet.tendsto_nhds_iff
In the lower set topology, f tends to a if and only if eventually f ≤ a: the smallest
neighbourhood of a is Set.Iic a.
theorem tendsto_nhds_iff {β : Type*} {l : Filter β} {f : β → α} {a : α} :
Tendsto f l (𝓝 a) ↔ ∀ᶠ b in l, f b ≤ a
Proof
:= by
rw [nhds_eq_principal_Iic, tendsto_principal]
rfl
theorem lindelofSpace_iff
Topology.IsLowerSet.lindelofSpace_iff
In the lower set topology the space is Lindelöf if and only if it has a countable cofinal subset.
theorem lindelofSpace_iff :
LindelofSpace α ↔ ∃ s : Set α, s.Countable ∧ ∀ b, ∃ a ∈ s, b ≤ a
Proof
:= by
constructor
· intro h
obtain ⟨s, hs, hcov⟩ := h.isLindelof_univ.elim_countable_subcover (fun a : α ↦ Iic a)
(fun _ ↦ isOpen_iff_isLowerSet.2 (_root_.IsLowerSet.Iic _))
(fun b _ ↦ mem_iUnion.2 ⟨b, le_rfl⟩)
refine ⟨s, hs, fun b ↦ ?_⟩
obtain ⟨a, ha, hba⟩ := mem_iUnion₂.1 (hcov (mem_univ b))
exact ⟨a, ha, hba⟩
· rintro ⟨s, hs, hcof⟩
refine ⟨isLindelof_of_countable_subcover fun U hUo hU ↦ ?_⟩
choose i hi using fun a : α ↦ mem_iUnion.1 (hU (mem_univ a))
refine ⟨i '' s, hs.image i, fun b _ ↦ ?_⟩
obtain ⟨a, ha, hba⟩ := hcof b
exact mem_iUnion₂.2 ⟨i a, mem_image_of_mem i ha, isOpen_iff_isLowerSet.1 (hUo _) hba (hi a)⟩
On this site: Theorem: A lower set topology is Lindelöf iff the preorder has a countable cofinal subset
theorem compactSpace_iff
Topology.IsLowerSet.compactSpace_iff
In the lower set topology the space is compact if and only if it has a finite cofinal subset.
theorem compactSpace_iff :
CompactSpace α ↔ ∃ s : Set α, s.Finite ∧ ∀ b, ∃ a ∈ s, b ≤ a
Proof
:= by
constructor
· intro h
obtain ⟨s, hcov⟩ := h.isCompact_univ.elim_finite_subcover (fun a : α ↦ Iic a)
(fun _ ↦ isOpen_iff_isLowerSet.2 (_root_.IsLowerSet.Iic _))
(fun b _ ↦ mem_iUnion.2 ⟨b, le_rfl⟩)
refine ⟨s, s.finite_toSet, fun b ↦ ?_⟩
obtain ⟨a, ha, hba⟩ := mem_iUnion₂.1 (hcov (mem_univ b))
exact ⟨a, ha, hba⟩
· rintro ⟨s, hs, hcof⟩
refine ⟨isCompact_of_finite_subcover fun U hUo hU ↦ ?_⟩
choose i hi using fun a : α ↦ mem_iUnion.1 (hU (mem_univ a))
refine ⟨(hs.image i).toFinset, fun b _ ↦ ?_⟩
obtain ⟨a, ha, hba⟩ := hcof b
exact mem_iUnion₂.2 ⟨i a, (hs.image i).mem_toFinset.2 (mem_image_of_mem i ha),
isOpen_iff_isLowerSet.1 (hUo _) hba (hi a)⟩
On this site: Theorem: A lower set topology is compact iff the preorder has a finite cofinal subset
theorem seqCompactSpace_of_bddAbove
Topology.IsLowerSet.seqCompactSpace_of_bddAbove
In the lower set topology, if every sequence is bounded above then the space is sequentially compact: a sequence converges to every upper bound of its terms.
theorem seqCompactSpace_of_bddAbove (h : ∀ x : ℕ → α, BddAbove (range x)) :
SeqCompactSpace α
Proof
:=
⟨fun x _ ↦
let ⟨a, ha⟩ := h x
⟨a, mem_univ a, id, strictMono_id,
tendsto_nhds_iff.2 (Eventually.of_forall fun n ↦ ha (mem_range_self n))⟩⟩
On this site: Theorem: A lower set topology in which every sequence is bounded above is sequentially compact
theorem not_t1Space_of_lt
Topology.IsLowerSet.not_t1Space_of_lt
In the lower set topology a point specializes to every larger point, so if a < b for some
a and b the space is not T₁.
theorem not_t1Space_of_lt {a b : α} (h : a < b) : ¬T1Space α
Proof
:= fun _ ↦
h.ne (specializes_iff_le.2 h.le).eq
theorem inter_nonempty_of_isClosed
Topology.IsLowerSet.inter_nonempty_of_isClosed
In the lower set topology on an upward directed preorder, any two nonempty closed sets meet: closed sets are upper sets.
theorem inter_nonempty_of_isClosed [IsDirected α (· ≤ ·)] {s t : Set α} (hs : IsClosed s)
(ht : IsClosed t) (hs' : s.Nonempty) (ht' : t.Nonempty) : (s ∩ t).Nonempty
Proof
:= by
obtain ⟨a, ha⟩ := hs'
obtain ⟨b, hb⟩ := ht'
obtain ⟨c, hac, hbc⟩ := directed_of (· ≤ ·) a b
exact ⟨c, isClosed_iff_isUpper.1 hs hac ha, isClosed_iff_isUpper.1 ht hbc hb⟩
instance normalSpace
Topology.IsLowerSet.normalSpace
The lower set topology on an upward directed preorder is normal: of two disjoint closed sets, one is empty.
instance (priority := 100) normalSpace [IsDirected α (· ≤ ·)] : NormalSpace α
Proof
where
normal s t hs ht hst := by
rcases s.eq_empty_or_nonempty with rfl | hs'
· exact SeparatedNhds.empty_left t
rcases t.eq_empty_or_nonempty with rfl | ht'
· exact SeparatedNhds.empty_right s
exact absurd hst (not_disjoint_iff_nonempty_inter.2 (inter_nonempty_of_isClosed hs ht hs' ht'))
On this site: Theorem: A lower set topology on an upward directed preorder is normal
instance irreducibleSpace
Topology.IsLowerSet.irreducibleSpace
The lower set topology on a nonempty downward directed preorder is irreducible: any two nonempty open sets meet, since open sets are lower sets.
instance (priority := 100) irreducibleSpace [IsDirected α (· ≥ ·)] [Nonempty α] :
IrreducibleSpace α
Proof
where
isPreirreducible_univ u v hu hv := by
rintro ⟨a, -, ha⟩ ⟨b, -, hb⟩
obtain ⟨c, hac, hbc⟩ := directed_of (· ≥ ·) a b
exact ⟨c, mem_univ c, isOpen_iff_isLowerSet.1 hu hac ha, isOpen_iff_isLowerSet.1 hv hbc hb⟩
toNonempty := ‹_›
On this site: Theorem: In a lower set topology on a downward directed preorder, any two nonempty open sets meet
theorem dense_of_isOpen
Topology.IsLowerSet.dense_of_isOpen
In the lower set topology on a preorder with a least element, every nonempty open set is
dense: it contains ⊥, whose closure is the whole space.
theorem dense_of_isOpen [OrderBot α] {s : Set α} (hs : IsOpen s) (hne : s.Nonempty) : Dense s
Proof
:=
fun b ↦ by
obtain ⟨a, ha⟩ := hne
rw [closure_eq_upperClosure]
exact mem_upperClosure.2 ⟨⊥, isOpen_iff_isLowerSet.1 hs bot_le ha, bot_le⟩
instance separableSpace
Topology.IsLowerSet.separableSpace
The lower set topology on a preorder with a least element is separable: {⊥} is dense.
instance (priority := 100) separableSpace [OrderBot α] : SeparableSpace α
Proof
:=
⟨⟨{⊥}, countable_singleton _, fun b ↦ by rw [closure_singleton]; exact bot_le⟩⟩
instance t0Space
Topology.IsLowerSet.t0Space
The lower set topology on a partial order is T₀: the specialization order is the order.
instance (priority := 100) t0Space [PartialOrder α] [Topology.IsLowerSet α] : T0Space α
Proof
:=
⟨fun _ _ h ↦ le_antisymm (specializes_iff_le.1 h.specializes)
(specializes_iff_le.1 h.specializes')⟩
instance completelyNormalSpace
Topology.IsLowerSet.completelyNormalSpace
The lower set topology on a linear order is completely normal: of two nonempty sets, one meets the closure of the other, so two separated sets cannot both be nonempty.
instance (priority := 100) completelyNormalSpace [LinearOrder α] [Topology.IsLowerSet α] :
CompletelyNormalSpace α
Proof
where
completely_normal s t hst hst' := by
rcases s.eq_empty_or_nonempty with rfl | ⟨a, ha⟩
· simp
rcases t.eq_empty_or_nonempty with rfl | ⟨b, hb⟩
· simp
rw [closure_eq_upperClosure] at hst hst'
rcases le_total a b with hab | hba
· exact absurd hst (not_disjoint_iff.2 ⟨b, mem_upperClosure.2 ⟨a, ha, hab⟩, hb⟩)
· exact absurd hst' (not_disjoint_iff.2 ⟨a, ha, mem_upperClosure.2 ⟨b, hb, hba⟩⟩)
On this site: Theorem: A lower set topology on a linear order is completely normal