The areas / V13. General topology
Mathlib.Topology.Order.Basic
120 declarations and 2 deprecated aliases. Mathlib docs · Source
Theory of topology on ordered spaces
Main definitions
The order topology on an ordered space is the topology generated by all open intervals (or
equivalently by those of the form (-∞, a) and (b, +∞)). We define it as Preorder.topology α.
However, we do not register it as an instance (as many existing ordered types already have
topologies, which would be equal but not definitionally equal to Preorder.topology α). Instead,
we introduce a class OrderTopology α (which is a Prop, also known as a mixin) saying that on
the type α having already a topological space structure and a preorder structure, the topological
structure is equal to the order topology.
We prove many basic properties of such topologies.
Main statements
This file contains the proofs of the following facts. For exact requirements
(OrderClosedTopology vs OrderTopology, Preorder vs PartialOrder vs LinearOrder etc)
see their statements.
exists_Ioc_subset_of_mem_nhds,exists_Ico_subset_of_mem_nhds: ifx < y, then any neighborhood ofxincludes an interval[x, z)for somez ∈ (x, y], and any neighborhood ofyincludes an interval(z, y]for somez ∈ [x, y).tendsto_of_tendsto_of_tendsto_of_le_of_le: theorem known as squeeze theorem, sandwich theorem, theorem of Carabinieri, and two policemen (and a drunk) theorem; ifgandhboth converge toa, and eventuallyg x ≤ f x ≤ h x, thenfconverges toa.
Implementation notes
We do not register the order topology as an instance on a preorder (or even on a linear order).
Indeed, on many such spaces, a topology has already been constructed in a different way (think
of the discrete spaces ℕ or ℤ, or ℝ that could inherit a topology as the completion of ℚ),
and is in general not defeq to the one generated by the intervals. We make it available as a
definition Preorder.topology α though, that can be registered as an instance when necessary, or
for specific types.
Intervals in Π i, X i belong to 𝓝 x
For each lemma pi_Ixx_mem_nhds we add a non-dependent version pi_Ixx_mem_nhds' because
sometimes Lean fails to unify different instances while trying to apply the dependent version to,
e.g., ι → ℝ.
theorem Function.invFunOn.congr_simp E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Nonempty α] (f f_1 : α → β),
f = f_1 →
∀ (s s_1 : Set α), s = s_1 → ∀ (b b_1 : β), b = b_1 → Function.invFunOn f s b = Function.invFunOn f_1 s_1 b_1
def Preorder.topology E1 #
(α : Type u_1) → [Preorder α] → TopologicalSpace α
(Order) topology on a partial order α generated by the subbase of open intervals
(a, ∞) = { x ∣ a < x }, (-∞, b) = {x ∣ x < b} for all a, b in α. We do not register it as an
instance as many ordered sets are already endowed with the same topology, most often in a non-defeq
way though. Register as a local instance when necessary.
class OrderTopology E3 #
(α : Type u_1) → [t : TopologicalSpace α] → [Preorder α] → Prop
The order topology on an ordered type is the topology generated by open intervals. We register
it on a preorder, but it is mostly interesting in linear orders, where it is also order-closed.
We define it as a mixin. If you want to introduce the order topology on a preorder, use
Preorder.topology.
ctor OrderTopology.mk E0 #
∀ {α : Type u_1} [t : TopologicalSpace α] [inst : Preorder α], t = Preorder.topology α → OrderTopology α
theorem OrderTopology.topology_eq_generate_intervals E1 #
∀ {α : Type u_1} {t : TopologicalSpace α} {inst : Preorder α} [self : OrderTopology α], t = Preorder.topology α
The topology is generated by open intervals Set.Ioi _ and Set.Iio _.
instance instSecondCountableTopologyOfOrderTopologyOfCountable E0 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] [Countable α], SecondCountableTopology α
A countable preordered set equipped with the order topology is second countable.
instance instOrderTopologyOrderDual E0 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [t : OrderTopology α], OrderTopology αᵒᵈ
theorem OrderTopology.continuous_iff E0 #
∀ {α : Type u} {β : Type v} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α]
[inst_2 : TopologicalSpace β] {f : β → α},
Continuous f ↔ ∀ (a : α), IsOpen (f ⁻¹' Set.Ioi a) ∧ IsOpen (f ⁻¹' Set.Iio a)
theorem isOpen_iff_generate_intervals E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [t : OrderTopology α] {s : Set α},
IsOpen s ↔ TopologicalSpace.GenerateOpen {s | ∃ a, s = Set.Ioi a ∨ s = Set.Iio a} s
theorem isOpen_gt' E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a : α), IsOpen {b | b < a}
theorem isOpen_lt' E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a : α), IsOpen {b | a < b}
theorem isOpen_Ioi' E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a : α), IsOpen (Set.Ioi a)
A version of isOpen_Ioi that doesn't require a LinearOrder.
theorem isOpen_Iio' E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a : α), IsOpen (Set.Iio a)
A version of isOpen_Iio that doesn't require a LinearOrder.
theorem isOpen_Ioo' E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a b : α), IsOpen (Set.Ioo a b)
A version of isOpen_Ioo that doesn't require a LinearOrder.
theorem gt_mem_nhds E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {a b : α},
b < a → ∀ᶠ (x : α) in nhds b, x < a
theorem lt_mem_nhds E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {a b : α},
a < b → ∀ᶠ (x : α) in nhds b, a < x
theorem ge_mem_nhds E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {a b : α},
b < a → ∀ᶠ (x : α) in nhds b, x ≤ a
theorem le_mem_nhds E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {a b : α},
a < b → ∀ᶠ (x : α) in nhds b, a ≤ x
theorem nhds_eq_order E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a : α),
nhds a = (⨅ b ∈ Set.Iio a, Filter.principal (Set.Ioi b)) ⊓ ⨅ b ∈ Set.Ioi a, Filter.principal (Set.Iio b)
theorem tendsto_order E1 #
∀ {α : Type u} {β : Type v} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {f : β → α} {a : α}
{x : Filter β},
Filter.Tendsto f x (nhds a) ↔ (∀ a' < a, ∀ᶠ (b : β) in x, a' < f b) ∧ ∀ a' > a, ∀ᶠ (b : β) in x, f b < a'
instance tendstoIccClassNhds E0 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a : α),
Filter.TendstoIxxClass Set.Icc (nhds a) (nhds a)
instance tendstoIcoClassNhds E0 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a : α),
Filter.TendstoIxxClass Set.Ico (nhds a) (nhds a)
instance tendstoIocClassNhds E0 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a : α),
Filter.TendstoIxxClass Set.Ioc (nhds a) (nhds a)
instance tendstoIooClassNhds E0 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] (a : α),
Filter.TendstoIxxClass Set.Ioo (nhds a) (nhds a)
theorem exists_countable_generateFrom_Ioi_Iio E1 #
∀ (α : Type u) [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] [SecondCountableTopology α],
∃ c, c.Countable ∧ ts = TopologicalSpace.generateFrom {s | ∃ a ∈ c, s = Set.Ioi a ∨ s = Set.Iio a}
In a second countable topological space with the order topology, the topology is generated by half-infinite open intervals with endpoints in a countable set.
theorem isTopologicalBasis_biInter_Ioi_Iio_of_generateFrom E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] (c : Set α),
ts = TopologicalSpace.generateFrom {s | ∃ a ∈ c, s = Set.Ioi a ∨ s = Set.Iio a} →
TopologicalSpace.IsTopologicalBasis
{s | ∃ f g, f ⊆ c ∧ g ⊆ c ∧ f.Finite ∧ g.Finite ∧ s = (⋂ a ∈ f, Set.Ioi a) ∩ ⋂ a ∈ g, Set.Iio a}
If a topology is generated by half-open intervals with endpoints in a set c, then the sets
formed by intersecting finitely many of these intervals form a topological basis.
theorem tendsto_of_tendsto_of_tendsto_of_le_of_le' E2 #
∀ {α : Type u} {β : Type v} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {f g h : β → α}
{b : Filter β} {a : α},
Filter.Tendsto g b (nhds a) →
Filter.Tendsto h b (nhds a) →
(∀ᶠ (b : β) in b, g b ≤ f b) → (∀ᶠ (b : β) in b, f b ≤ h b) → Filter.Tendsto f b (nhds a)
Squeeze theorem (also known as sandwich theorem). This version assumes that inequalities hold eventually for the filter.
theorem Filter.Tendsto.squeeze' E2 #
∀ {α : Type u} {β : Type v} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {f g h : β → α}
{b : Filter β} {a : α},
Filter.Tendsto g b (nhds a) →
Filter.Tendsto h b (nhds a) →
(∀ᶠ (b : β) in b, g b ≤ f b) → (∀ᶠ (b : β) in b, f b ≤ h b) → Filter.Tendsto f b (nhds a)
Alias of tendsto_of_tendsto_of_tendsto_of_le_of_le'.
Squeeze theorem (also known as sandwich theorem). This version assumes that inequalities hold eventually for the filter.
theorem tendsto_of_tendsto_of_tendsto_of_le_of_le E3 #
∀ {α : Type u} {β : Type v} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {f g h : β → α}
{b : Filter β} {a : α},
Filter.Tendsto g b (nhds a) → Filter.Tendsto h b (nhds a) → g ≤ f → f ≤ h → Filter.Tendsto f b (nhds a)
Squeeze theorem (also known as sandwich theorem). This version assumes that inequalities hold everywhere.
theorem Filter.Tendsto.squeeze E2 #
∀ {α : Type u} {β : Type v} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {f g h : β → α}
{b : Filter β} {a : α},
Filter.Tendsto g b (nhds a) → Filter.Tendsto h b (nhds a) → g ≤ f → f ≤ h → Filter.Tendsto f b (nhds a)
Alias of tendsto_of_tendsto_of_tendsto_of_le_of_le.
Squeeze theorem (also known as sandwich theorem). This version assumes that inequalities hold everywhere.
theorem nhds_order_unbounded E1 #
∀ {α : Type u} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {a : α},
(∃ u, a < u) → (∃ l, l < a) → nhds a = ⨅ l, ⨅ (_ : l < a), ⨅ u, ⨅ (_ : a < u), Filter.principal (Set.Ioo l u)
theorem tendsto_order_unbounded E1 #
∀ {α : Type u} {β : Type v} [ts : TopologicalSpace α] [inst : Preorder α] [OrderTopology α] {f : β → α} {a : α}
{x : Filter β},
(∃ u, a < u) →
(∃ l, l < a) → (∀ (l u : α), l < a → a < u → ∀ᶠ (b : β) in x, l < f b ∧ f b < u) → Filter.Tendsto f x (nhds a)
instance tendstoIxxNhdsWithin E0 #
∀ {α : Type u_1} [inst : TopologicalSpace α] (a : α) {s t : Set α} {Ixx : α → α → Set α}
[Filter.TendstoIxxClass Ixx (nhds a) (nhds a)] [Filter.TendstoIxxClass Ixx (Filter.principal s) (Filter.principal t)],
Filter.TendstoIxxClass Ixx (nhdsWithin a s) (nhdsWithin a t)
instance tendstoIccClassNhdsPi E0 #
∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Preorder (α i)] [inst_1 : (i : ι) → TopologicalSpace (α i)]
[∀ (i : ι), OrderTopology (α i)] (f : (i : ι) → α i), Filter.TendstoIxxClass Set.Icc (nhds f) (nhds f)
theorem induced_topology_le_preorder E1 #
∀ {α : Type u} {β : Type v} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : TopologicalSpace β] [OrderTopology β]
{f : α → β}, (∀ {x y : α}, f x < f y ↔ x < y) → TopologicalSpace.induced f inst_2 ≤ Preorder.topology α
theorem induced_topology_eq_preorder E1 #
∀ {α : Type u} {β : Type v} [inst : Preorder α] [inst_1 : Preorder β] [inst_2 : TopologicalSpace β] [OrderTopology β]
{f : α → β},
(∀ {x y : α}, f x < f y ↔ x < y) →
(∀ {a : α} {b : β} {x : α}, b < f a → ¬b < f x → ∃ y < a, b ≤ f y) →
(∀ {a : α} {b : β} {x : α}, f a < b → ¬f x < b → ∃ y, a < y ∧ f y ≤ b) →
TopologicalSpace.induced f inst_2 = Preorder.topology α
theorem induced_orderTopology' E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [ta : TopologicalSpace β] [inst_1 : Preorder β] [OrderTopology β]
(f : α → β),
(∀ {x y : α}, f x < f y ↔ x < y) →
(∀ {a : α} {x : β}, x < f a → ∃ b < a, x ≤ f b) → (∀ {a : α} {x : β}, f a < x → ∃ b > a, f b ≤ x) → OrderTopology α
theorem induced_orderTopology E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [ta : TopologicalSpace β] [inst_1 : Preorder β] [OrderTopology β]
(f : α → β), (∀ {x y : α}, f x < f y ↔ x < y) → (∀ {x y : β}, x < y → ∃ a, f a ∈ Set.Ioo x y) → OrderTopology α
theorem StrictMono.induced_topology_eq_preorder E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] [t : TopologicalSpace β]
[OrderTopology β] {f : α → β},
StrictMono f → (Set.range f).OrdConnected → TopologicalSpace.induced f t = Preorder.topology α
The topology induced by a strictly monotone function with order-connected range is the preorder topology.
theorem StrictMono.isEmbedding_of_ordConnected E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] [inst_2 : TopologicalSpace α]
[h : OrderTopology α] [inst_3 : TopologicalSpace β] [OrderTopology β] {f : α → β},
StrictMono f → (Set.range f).OrdConnected → Topology.IsEmbedding f
A strictly monotone function between linear orders with order topology is a topological
embedding provided that the range of f is order-connected.
theorem OrderEmbedding.isEmbedding_of_ordConnected E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] [inst_2 : TopologicalSpace α]
[OrderTopology α] [inst_4 : TopologicalSpace β] [OrderTopology β] (f : α ↪o β),
(Set.range ⇑f).OrdConnected → Topology.IsEmbedding ⇑f
An OrderEmbedding is a topological embedding provided that the range of f is
order-connected
instance orderTopology_of_ordConnected E0 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {t : Set α} [ht : t.OrdConnected],
OrderTopology ↑t
On a Set.OrdConnected subset of a linear order, the order topology for the restriction of the
order is the same as the restriction to the subset of the order topology.
theorem nhdsLE_eq_iInf_inf_principal E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : Preorder α] [OrderTopology α] (a : α),
nhdsWithin a (Set.Iic a) = (⨅ u, ⨅ (_ : u < a), Filter.principal (Set.Ioi u)) ⊓ Filter.principal (Set.Iic a)
theorem nhdsGE_eq_iInf_inf_principal E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : Preorder α] [OrderTopology α] (a : α),
nhdsWithin a (Set.Ici a) = (⨅ u, ⨅ (_ : a < u), Filter.principal (Set.Iio u)) ⊓ Filter.principal (Set.Ici a)
theorem nhdsLE_eq_iInf_principal E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : Preorder α] [OrderTopology α] {a : α},
(∃ u, u < a) → nhdsWithin a (Set.Iic a) = ⨅ u, ⨅ (_ : u < a), Filter.principal (Set.Ioc u a)
theorem nhdsGE_eq_iInf_principal E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : Preorder α] [OrderTopology α] {a : α},
(∃ u, a < u) → nhdsWithin a (Set.Ici a) = ⨅ u, ⨅ (_ : a < u), Filter.principal (Set.Ico a u)
theorem nhdsLE_basis_of_exists_lt E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α},
(∃ u, u < a) → (nhdsWithin a (Set.Iic a)).HasBasis (fun u ↦ u < a) fun u ↦ Set.Ioc u a
theorem nhdsGE_basis_of_exists_gt E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α},
(∃ u, a < u) → (nhdsWithin a (Set.Ici a)).HasBasis (fun u ↦ a < u) fun u ↦ Set.Ico a u
theorem nhdsGE_basis E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [NoMaxOrder α] (a : α),
(nhdsWithin a (Set.Ici a)).HasBasis (fun u ↦ a < u) fun u ↦ Set.Ico a u
theorem nhdsLE_basis E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [NoMinOrder α] (a : α),
(nhdsWithin a (Set.Iic a)).HasBasis (fun u ↦ u < a) fun u ↦ Set.Ioc u a
theorem nhds_top_order E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : Preorder α] [inst_2 : OrderTop α] [OrderTopology α],
nhds ⊤ = ⨅ l, ⨅ (_ : l < ⊤), Filter.principal (Set.Ioi l)
theorem nhds_bot_order E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : Preorder α] [inst_2 : OrderBot α] [OrderTopology α],
nhds ⊥ = ⨅ l, ⨅ (_ : ⊥ < l), Filter.principal (Set.Iio l)
theorem nhds_bot_basis E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [inst_2 : OrderBot α] [OrderTopology α]
[Nontrivial α], (nhds ⊥).HasBasis (fun a ↦ ⊥ < a) fun a ↦ Set.Iio a
theorem nhds_top_basis E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [inst_2 : OrderTop α] [OrderTopology α]
[Nontrivial α], (nhds ⊤).HasBasis (fun a ↦ a < ⊤) fun a ↦ Set.Ioi a
theorem nhds_top_basis_Ici E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [inst_2 : OrderTop α] [OrderTopology α]
[Nontrivial α] [DenselyOrdered α], (nhds ⊤).HasBasis (fun a ↦ a < ⊤) Set.Ici
theorem nhds_bot_basis_Iic E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [inst_2 : OrderBot α] [OrderTopology α]
[Nontrivial α] [DenselyOrdered α], (nhds ⊥).HasBasis (fun a ↦ ⊥ < a) Set.Iic
theorem tendsto_nhds_top_mono E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace β] [inst_1 : Preorder β] [inst_2 : OrderTop β] [OrderTopology β]
{l : Filter α} {f g : α → β}, Filter.Tendsto f l (nhds ⊤) → f ≤ᶠ[l] g → Filter.Tendsto g l (nhds ⊤)
theorem tendsto_nhds_bot_mono E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace β] [inst_1 : Preorder β] [inst_2 : OrderBot β] [OrderTopology β]
{l : Filter α} {f g : α → β}, Filter.Tendsto f l (nhds ⊥) → g ≤ᶠ[l] f → Filter.Tendsto g l (nhds ⊥)
theorem tendsto_nhds_bot_mono' E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace β] [inst_1 : Preorder β] [inst_2 : OrderBot β] [OrderTopology β]
{l : Filter α} {f g : α → β}, Filter.Tendsto f l (nhds ⊥) → g ≤ f → Filter.Tendsto g l (nhds ⊥)
theorem tendsto_nhds_top_mono' E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace β] [inst_1 : Preorder β] [inst_2 : OrderTop β] [OrderTopology β]
{l : Filter α} {f g : α → β}, Filter.Tendsto f l (nhds ⊤) → f ≤ g → Filter.Tendsto g l (nhds ⊤)
theorem order_separated E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a₁ a₂ : α},
a₁ < a₂ → ∃ u v, IsOpen u ∧ IsOpen v ∧ a₁ ∈ u ∧ a₂ ∈ v ∧ ∀ b₁ ∈ u, ∀ b₂ ∈ v, b₁ < b₂
instance OrderTopology.to_orderClosedTopology E0 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α], OrderClosedTopology α
theorem exists_Ioc_subset_of_mem_nhds E3 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α} {s : Set α},
s ∈ nhds a → (∃ l, l < a) → ∃ l < a, Set.Ioc l a ⊆ s
theorem exists_Ico_subset_of_mem_nhds E3 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α} {s : Set α},
s ∈ nhds a → (∃ l, a < l) → ∃ l, a < l ∧ Set.Ico a l ⊆ s
theorem exists_Ico_subset_of_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α} {s : Set α},
s ∈ nhds a → ∀ {l : α}, a < l → ∃ l' ∈ Set.Ioc a l, Set.Ico a l' ⊆ s
theorem exists_Ioc_subset_of_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α} {s : Set α},
s ∈ nhds a → ∀ {l : α}, l < a → ∃ l' ∈ Set.Ico l a, Set.Ioc l' a ⊆ s
theorem exists_Icc_mem_subset_of_mem_nhdsGE E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α} {s : Set α},
s ∈ nhdsWithin a (Set.Ici a) → ∃ b, a ≤ b ∧ Set.Icc a b ∈ nhdsWithin a (Set.Ici a) ∧ Set.Icc a b ⊆ s
theorem exists_Icc_mem_subset_of_mem_nhdsLE E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α} {s : Set α},
s ∈ nhdsWithin a (Set.Iic a) → ∃ b ≤ a, Set.Icc b a ∈ nhdsWithin a (Set.Iic a) ∧ Set.Icc b a ⊆ s
theorem exists_Icc_mem_subset_of_mem_nhds E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α} {s : Set α},
s ∈ nhds a → ∃ b c, a ∈ Set.Icc b c ∧ Set.Icc b c ∈ nhds a ∧ Set.Icc b c ⊆ s
theorem IsOpen.exists_Ioo_subset E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [Nontrivial α] {s : Set α},
IsOpen s → s.Nonempty → ∃ a b, a < b ∧ Set.Ioo a b ⊆ s
theorem dense_of_exists_between E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [Nontrivial α] {s : Set α},
(∀ ⦃a b : α⦄, a < b → ∃ c ∈ s, c ∈ Set.Ioo a b) → Dense s
theorem IsLowerSet.isClosed E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [WellFoundedGT α] {s : Set α},
IsLowerSet s → IsClosed s
theorem IsUpperSet.isClosed E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [WellFoundedLT α] {s : Set α},
IsUpperSet s → IsClosed s
theorem IsLowerSet.isOpen E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [WellFoundedLT α] {s : Set α},
IsLowerSet s → IsOpen s
theorem IsUpperSet.isOpen E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [WellFoundedGT α] {s : Set α},
IsUpperSet s → IsOpen s
theorem dense_iff_exists_between E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [DenselyOrdered α] [Nontrivial α]
{s : Set α}, Dense s ↔ ∀ (a b : α), a < b → ∃ c ∈ s, a < c ∧ c < b
A set in a nontrivial densely linear ordered type is dense in the sense of topology if and only
if for any a < b there exists c ∈ s, a < c < b. Each implication requires less typeclass
assumptions.
theorem mem_nhds_iff_exists_Ioo_subset' E0 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α} {s : Set α},
(∃ l, l < a) → (∃ u, a < u) → (s ∈ nhds a ↔ ∃ l u, a ∈ Set.Ioo l u ∧ Set.Ioo l u ⊆ s)
A set is a neighborhood of a if and only if it contains an interval (l, u) containing a,
provided a is neither a bottom element nor a top element.
theorem mem_nhds_iff_exists_Ioo_subset E0 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [NoMaxOrder α] [NoMinOrder α]
{a : α} {s : Set α}, s ∈ nhds a ↔ ∃ l u, a ∈ Set.Ioo l u ∧ Set.Ioo l u ⊆ s
A set is a neighborhood of a if and only if it contains an interval (l, u) containing a.
theorem nhds_basis_Ioo' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {a : α},
(∃ l, l < a) → (∃ u, a < u) → (nhds a).HasBasis (fun b ↦ b.1 < a ∧ a < b.2) fun b ↦ Set.Ioo b.1 b.2
theorem nhds_basis_Ioo E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [NoMaxOrder α] [NoMinOrder α]
(a : α), (nhds a).HasBasis (fun b ↦ b.1 < a ∧ a < b.2) fun b ↦ Set.Ioo b.1 b.2
theorem Filter.Eventually.exists_Ioo_subset E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [NoMaxOrder α] [NoMinOrder α]
{a : α} {p : α → Prop}, (∀ᶠ (x : α) in nhds a, p x) → ∃ l u, a ∈ Set.Ioo l u ∧ Set.Ioo l u ⊆ {x | p x}
theorem Dense.topology_eq_generateFrom E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [DenselyOrdered α] {s : Set α},
Dense s → inst = TopologicalSpace.generateFrom (Set.Ioi '' s ∪ Set.Iio '' s)
theorem PredOrder.hasBasis_nhds_Ico_of_exists_gt E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [PredOrder α] {a : α},
(∃ l, a < l) → (nhds a).HasBasis (fun x ↦ a < x) fun x ↦ Set.Ico a x
theorem SuccOrder.hasBasis_nhds_Ioc_of_exists_lt E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [SuccOrder α] {a : α},
(∃ l, l < a) → (nhds a).HasBasis (fun x ↦ x < a) fun x ↦ Set.Ioc x a
theorem SuccOrder.hasBasis_nhds_Ioc E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [SuccOrder α] {a : α}
[NoMinOrder α], (nhds a).HasBasis (fun x ↦ x < a) fun x ↦ Set.Ioc x a
theorem PredOrder.hasBasis_nhds_Ico E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [PredOrder α] {a : α}
[NoMaxOrder α], (nhds a).HasBasis (fun x ↦ a < x) fun x ↦ Set.Ico a x
theorem SecondCountableTopology.of_separableSpace_orderTopology E1 #
∀ (α : Type u) [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [DenselyOrdered α]
[TopologicalSpace.SeparableSpace α], SecondCountableTopology α
Let α be a densely ordered linear order with order topology. If α is a separable space, then
it has second countable topology. Note that the "densely ordered" assumption cannot be dropped, see
double arrow space for a counterexample.
theorem countable_setOfPred_covBy_right E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [SecondCountableTopology α],
{x | ∃ y, x ⋖ y}.Countable
The set of points which are isolated on the right is countable when the space is second-countable.
theorem countable_setOfPred_covBy_left E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [SecondCountableTopology α],
{x | ∃ y, y ⋖ x}.Countable
The set of points which are isolated on the left is countable when the space is second-countable.
theorem countable_of_isolated_left' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [SecondCountableTopology α],
{x | ∃ y < x, Set.Ioo y x = ∅}.Countable
The set of points which are isolated on the left is countable when the space is second-countable.
theorem Set.PairwiseDisjoint.countable_of_Ioo E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] [SecondCountableTopology α]
{y : α → α} {s : Set α}, (s.PairwiseDisjoint fun x ↦ Set.Ioo x (y x)) → (∀ x ∈ s, x < y x) → s.Countable
Consider a disjoint family of intervals (x, y) with x < y in a second-countable space.
Then the family is countable.
This is not a straightforward consequence of second-countability as some of these intervals might be
empty (but in fact this can happen only for countably many of them).
theorem countable_image_lt_image_Ioi_within E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[inst_3 : LinearOrder β] [SecondCountableTopology α] (t : Set β) (f : β → α),
{x | x ∈ t ∧ ∃ z, f x < z ∧ ∀ y ∈ t, x < y → z ≤ f y}.Countable
For a function taking values in a second countable space, the set of points x for
which the image under f of (x, ∞) is separated above from f x is countable. We give
here a version relative to a set t.
theorem countable_image_lt_image_Iio_within E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[inst_3 : LinearOrder β] [SecondCountableTopology α] (t : Set β) (f : β → α),
{x | x ∈ t ∧ ∃ z < f x, ∀ y ∈ t, y < x → f y ≤ z}.Countable
For a function taking values in a second countable space, the set of points x for
which the image under f of (-∞, x) is separated below from f x is countable. We give
here a version relative to a set t.
theorem countable_image_lt_image_Ioi E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[inst_3 : LinearOrder β] (f : β → α) [SecondCountableTopology α],
{x | ∃ z, f x < z ∧ ∀ (y : β), x < y → z ≤ f y}.Countable
For a function taking values in a second countable space, the set of points x for
which the image under f of (x, ∞) is separated above from f x is countable.
theorem countable_image_lt_image_Iio E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[inst_3 : LinearOrder β] (f : β → α) [SecondCountableTopology α], {x | ∃ z < f x, ∀ y < x, f y ≤ z}.Countable
For a function taking values in a second countable space, the set of points x for
which the image under f of (-∞, x) is separated below from f x is countable.
theorem countable_image_gt_image_Ioi_within E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[inst_3 : LinearOrder β] [SecondCountableTopology α] (t : Set β) (f : β → α),
{x | x ∈ t ∧ ∃ z < f x, ∀ y ∈ t, x < y → f y ≤ z}.Countable
For a function taking values in a second countable space, the set of points x for
which the image under f of (x, ∞) is separated below from f x is countable. We give
here a version relative to a set t.
theorem countable_image_gt_image_Iio_within E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[inst_3 : LinearOrder β] [SecondCountableTopology α] (t : Set β) (f : β → α),
{x | x ∈ t ∧ ∃ z, f x < z ∧ ∀ y ∈ t, y < x → z ≤ f y}.Countable
For a function taking values in a second countable space, the set of points x for
which the image under f of (-∞, x) is separated above from f x is countable. We give
here a version relative to a set t.
theorem countable_image_gt_image_Ioi E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[inst_3 : LinearOrder β] (f : β → α) [SecondCountableTopology α],
{x | ∃ z < f x, ∀ (y : β), x < y → f y ≤ z}.Countable
For a function taking values in a second countable space, the set of points x for
which the image under f of (x, ∞) is separated below from f x is countable.
theorem countable_image_gt_image_Iio E1 #
∀ {α : Type u} {β : Type v} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[inst_3 : LinearOrder β] (f : β → α) [SecondCountableTopology α], {x | ∃ z, f x < z ∧ ∀ y < x, z ≤ f y}.Countable
For a function taking values in a second countable space, the set of points x for
which the image under f of (-∞, x) is separated above from f x is countable.
instance instIsCountablyGenerated_atBot E0 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[TopologicalSpace.SeparableSpace α], Filter.atBot.IsCountablyGenerated
instance instIsCountablyGenerated_atTop E0 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α]
[TopologicalSpace.SeparableSpace α], Filter.atTop.IsCountablyGenerated
theorem pi_Iic_mem_nhds E1 #
∀ {ι : Type u_1} {X : ι → Type u_2} [Finite ι] [inst : (i : ι) → LinearOrder (X i)]
[inst_1 : (i : ι) → TopologicalSpace (X i)] [∀ (i : ι), OrderTopology (X i)] {a x : (i : ι) → X i},
(∀ (i : ι), x i < a i) → Set.Iic a ∈ nhds x
theorem pi_Ici_mem_nhds E1 #
∀ {ι : Type u_1} {X : ι → Type u_2} [Finite ι] [inst : (i : ι) → LinearOrder (X i)]
[inst_1 : (i : ι) → TopologicalSpace (X i)] [∀ (i : ι), OrderTopology (X i)] {a x : (i : ι) → X i},
(∀ (i : ι), a i < x i) → Set.Ici a ∈ nhds x
theorem pi_Iic_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {ι : Type u_1} [Finite ι]
{a' x' : ι → α}, (∀ (i : ι), x' i < a' i) → Set.Iic a' ∈ nhds x'
theorem pi_Ici_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {ι : Type u_1} [Finite ι]
{a' x' : ι → α}, (∀ (i : ι), a' i < x' i) → Set.Ici a' ∈ nhds x'
theorem pi_Icc_mem_nhds E1 #
∀ {ι : Type u_1} {X : ι → Type u_2} [Finite ι] [inst : (i : ι) → LinearOrder (X i)]
[inst_1 : (i : ι) → TopologicalSpace (X i)] [∀ (i : ι), OrderTopology (X i)] {a b x : (i : ι) → X i},
(∀ (i : ι), a i < x i) → (∀ (i : ι), x i < b i) → Set.Icc a b ∈ nhds x
theorem pi_Icc_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {ι : Type u_1} [Finite ι]
{a' b' x' : ι → α}, (∀ (i : ι), a' i < x' i) → (∀ (i : ι), x' i < b' i) → Set.Icc a' b' ∈ nhds x'
theorem pi_Iio_mem_nhds E1 #
∀ {ι : Type u_1} {X : ι → Type u_2} [Finite ι] [inst : (i : ι) → LinearOrder (X i)]
[inst_1 : (i : ι) → TopologicalSpace (X i)] [∀ (i : ι), OrderTopology (X i)] {a x : (i : ι) → X i} [Nonempty ι],
(∀ (i : ι), x i < a i) → Set.Iio a ∈ nhds x
theorem pi_Ioi_mem_nhds E1 #
∀ {ι : Type u_1} {X : ι → Type u_2} [Finite ι] [inst : (i : ι) → LinearOrder (X i)]
[inst_1 : (i : ι) → TopologicalSpace (X i)] [∀ (i : ι), OrderTopology (X i)] {a x : (i : ι) → X i} [Nonempty ι],
(∀ (i : ι), a i < x i) → Set.Ioi a ∈ nhds x
theorem pi_Ioi_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {ι : Type u_1} [Finite ι]
{a' x' : ι → α} [Nonempty ι], (∀ (i : ι), a' i < x' i) → Set.Ioi a' ∈ nhds x'
theorem pi_Iio_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {ι : Type u_1} [Finite ι]
{a' x' : ι → α} [Nonempty ι], (∀ (i : ι), x' i < a' i) → Set.Iio a' ∈ nhds x'
theorem pi_Ico_mem_nhds E1 #
∀ {ι : Type u_1} {X : ι → Type u_2} [Finite ι] [inst : (i : ι) → LinearOrder (X i)]
[inst_1 : (i : ι) → TopologicalSpace (X i)] [∀ (i : ι), OrderTopology (X i)] {a b x : (i : ι) → X i} [Nonempty ι],
(∀ (i : ι), x i < a i) → (∀ (i : ι), b i < x i) → Set.Ico b a ∈ nhds x
theorem pi_Ioc_mem_nhds E1 #
∀ {ι : Type u_1} {X : ι → Type u_2} [Finite ι] [inst : (i : ι) → LinearOrder (X i)]
[inst_1 : (i : ι) → TopologicalSpace (X i)] [∀ (i : ι), OrderTopology (X i)] {a b x : (i : ι) → X i} [Nonempty ι],
(∀ (i : ι), a i < x i) → (∀ (i : ι), x i < b i) → Set.Ioc a b ∈ nhds x
theorem pi_Ico_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {ι : Type u_1} [Finite ι]
{a' b' x' : ι → α} [Nonempty ι], (∀ (i : ι), x' i < a' i) → (∀ (i : ι), b' i < x' i) → Set.Ico b' a' ∈ nhds x'
theorem pi_Ioc_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {ι : Type u_1} [Finite ι]
{a' b' x' : ι → α} [Nonempty ι], (∀ (i : ι), a' i < x' i) → (∀ (i : ι), x' i < b' i) → Set.Ioc a' b' ∈ nhds x'
theorem pi_Ioo_mem_nhds E1 #
∀ {ι : Type u_1} {X : ι → Type u_2} [Finite ι] [inst : (i : ι) → LinearOrder (X i)]
[inst_1 : (i : ι) → TopologicalSpace (X i)] [∀ (i : ι), OrderTopology (X i)] {a b x : (i : ι) → X i} [Nonempty ι],
(∀ (i : ι), a i < x i) → (∀ (i : ι), x i < b i) → Set.Ioo a b ∈ nhds x
theorem pi_Ioo_mem_nhds' E1 #
∀ {α : Type u} [inst : TopologicalSpace α] [inst_1 : LinearOrder α] [OrderTopology α] {ι : Type u_1} [Finite ι]
{a' b' x' : ι → α} [Nonempty ι], (∀ (i : ι), a' i < x' i) → (∀ (i : ι), x' i < b' i) → Set.Ioo a' b' ∈ nhds x'
theorem LeftOrdContinuous.continuousWithinAt_Iic E1 #
∀ {X : Type u_1} [inst : ConditionallyCompleteLinearOrder X] [inst_1 : TopologicalSpace X] [OrderTopology X]
{Y : Type u_2} [inst_3 : ConditionallyCompleteLinearOrder Y] [inst_4 : TopologicalSpace Y] [OrderTopology Y]
{f : X → Y} {x : X}, LeftOrdContinuous f → ContinuousWithinAt f (Set.Iic x) x
An order-theoretically left-continuous function is topologically left-continuous, assuming the function is between conditionally complete linear orders with order topologies.
theorem RightOrdContinuous.continuousWithinAt_Ici E1 #
∀ {X : Type u_1} [inst : ConditionallyCompleteLinearOrder X] [inst_1 : TopologicalSpace X] [OrderTopology X]
{Y : Type u_2} [inst_3 : ConditionallyCompleteLinearOrder Y] [inst_4 : TopologicalSpace Y] [OrderTopology Y]
{f : X → Y} {x : X}, RightOrdContinuous f → ContinuousWithinAt f (Set.Ici x) x
An order-theoretically right-continuous function is topologically right-continuous, assuming the function is between conditionally complete linear orders with order topologies.
theorem Continuous.of_ordContinuous E1 #
∀ {X : Type u_1} [inst : ConditionallyCompleteLinearOrder X] [inst_1 : TopologicalSpace X] [OrderTopology X]
{Y : Type u_2} [inst_3 : ConditionallyCompleteLinearOrder Y] [inst_4 : TopologicalSpace Y] [OrderTopology Y]
{f : X → Y}, LeftOrdContinuous f → RightOrdContinuous f → Continuous f
A function that is order-theoretically both left- and right-continuous is continuous, assuming the function is between conditionally complete linear orders with order topologies.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
countable_setOf_covBy_left | countable_setOfPred_covBy_left | 2026-07-09 |
countable_setOf_covBy_right | countable_setOfPred_covBy_right | 2026-07-09 |