The areas / V13. General topology
Mathlib.Topology.Basic
50 declarations. Mathlib docs · Source
Openness and closedness of a set
This file provides lemmas relating to the predicates IsOpen and IsClosed of a set endowed with
a topology.
Implementation notes
Topology in mathlib heavily uses filters (even more than in Bourbaki). See explanations in https://leanprover-community.github.io/theories/topology.html.
References
- [N. Bourbaki, General Topology][bourbaki1966]
- [I. M. James, Topologies and Uniformities][james1999]
Tags
topological space
Limits of filters in topological spaces
In this section we define functions that return a limit of a filter (or of a function along a
filter), if it exists, and a random point otherwise. These functions are rarely used in Mathlib,
most of the theorems are written using Filter.Tendsto. One of the reasons is that
Filter.limUnder f g = x is not equivalent to Filter.Tendsto g f (𝓝 x) unless the codomain is a
Hausdorff space and g has a limit along f.
theorem Filter.limUnder.congr_simp E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] {α : Type u_3} [inst_1 : Nonempty X] (f f_1 : Filter α),
f = f_1 → ∀ (g g_1 : α → X), g = g_1 → f.limUnder g = f_1.limUnder g_1
theorem Classical.strongIndefiniteDescription.congr_simp E1 #
∀ {α : Sort u} (p : α → Prop) (h : Nonempty α),
Classical.strongIndefiniteDescription p h = Classical.strongIndefiniteDescription p h
theorem Classical.epsilon.congr_simp E1 #
∀ {α : Sort u} [h : Nonempty α] (p p_1 : α → Prop), p = p_1 → Classical.epsilon p = Classical.epsilon p_1
theorem Classical.indefiniteDescription.congr_simp E1 #
∀ {α : Sort u} (p : α → Prop) (h : ∃ x, p x), Classical.indefiniteDescription p h = Classical.indefiniteDescription p h
theorem Filter.lim.congr_simp E1 #
∀ {X : Type u_1} [inst : TopologicalSpace X] [inst_1 : Nonempty X] (f f_1 : Filter X), f = f_1 → f.lim = f_1.lim
def TopologicalSpace.ofClosed E1 #
{X : Type u} → (T : Set (Set X)) → ∅ ∈ T → (∀ A ⊆ T, ⋂₀ A ∈ T) → (∀ A ∈ T, ∀ B ∈ T, A ∪ B ∈ T) → TopologicalSpace X
A constructor for topologies by specifying the closed sets, and showing that they satisfy the appropriate conditions.
theorem isOpen_mk E0 #
∀ {X : Type u} {s : Set X} {p : Set X → Prop} {h₁ : p Set.univ} {h₂ : ∀ (s t : Set X), p s → p t → p (s ∩ t)}
{h₃ : ∀ (s : Set (Set X)), (∀ t ∈ s, p t) → p (⋃₀ s)}, IsOpen s ↔ p s
theorem TopologicalSpace.ext E1 #
∀ {X : Type u} {f g : TopologicalSpace X}, IsOpen = IsOpen → f = g
theorem TopologicalSpace.ext_iff E0 #
∀ {X : Type u} {t t' : TopologicalSpace X}, t = t' ↔ ∀ (s : Set X), IsOpen s ↔ IsOpen s
theorem isOpen_fold E1 #
∀ {X : Type u} {s : Set X} {t : TopologicalSpace X}, TopologicalSpace.IsOpen s = IsOpen s
theorem isOpen_iUnion E1 #
∀ {X : Type u} {ι : Sort v} [inst : TopologicalSpace X] {f : ι → Set X}, (∀ (i : ι), IsOpen (f i)) → IsOpen (⋃ i, f i)
theorem isOpen_biUnion E1 #
∀ {X : Type u} {α : Type u_1} [inst : TopologicalSpace X] {s : Set α} {f : α → Set X},
(∀ i ∈ s, IsOpen (f i)) → IsOpen (⋃ i ∈ s, f i)
theorem IsOpen.union E1 #
∀ {X : Type u} {s₁ s₂ : Set X} [inst : TopologicalSpace X], IsOpen s₁ → IsOpen s₂ → IsOpen (s₁ ∪ s₂)
theorem isOpen_iff_of_cover E1 #
∀ {X : Type u} {α : Type u_1} {s : Set X} [inst : TopologicalSpace X] {f : α → Set X},
(∀ (i : α), IsOpen (f i)) → ⋃ i, f i = Set.univ → (IsOpen s ↔ ∀ (i : α), IsOpen (f i ∩ s))
theorem isOpen_empty E0 #
∀ {X : Type u} [inst : TopologicalSpace X], IsOpen ∅
theorem Set.Finite.isOpen_sInter E1 #
∀ {X : Type u} [inst : TopologicalSpace X] {s : Set (Set X)}, s.Finite → (∀ t ∈ s, IsOpen t) → IsOpen (⋂₀ s)
theorem Set.Finite.isOpen_biInter E1 #
∀ {X : Type u} {α : Type u_1} [inst : TopologicalSpace X] {s : Set α} {f : α → Set X},
s.Finite → (∀ i ∈ s, IsOpen (f i)) → IsOpen (⋂ i ∈ s, f i)
theorem isOpen_iInter_of_finite E1 #
∀ {X : Type u} {ι : Sort v} [inst : TopologicalSpace X] [Finite ι] {s : ι → Set X},
(∀ (i : ι), IsOpen (s i)) → IsOpen (⋂ i, s i)
theorem IsOpen.iInter_of_finite_ne_univ E1 #
∀ {X : Type u} [inst : TopologicalSpace X] {ι : Type u_2} {s : ι → Set X},
(∀ (i : ι), IsOpen (s i)) → {i | s i ≠ Set.univ}.Finite → IsOpen (⋂ i, s i)
theorem isOpen_biInter_finset E1 #
∀ {X : Type u} {α : Type u_1} [inst : TopologicalSpace X] {s : Finset α} {f : α → Set X},
(∀ i ∈ s, IsOpen (f i)) → IsOpen (⋂ i ∈ s, f i)
theorem isOpen_const E0 #
∀ {X : Type u} [inst : TopologicalSpace X] {p : Prop}, IsOpen {_x | p}
theorem IsOpen.and E1 #
∀ {X : Type u} {p₁ p₂ : X → Prop} [inst : TopologicalSpace X],
IsOpen {x | p₁ x} → IsOpen {x | p₂ x} → IsOpen {x | p₁ x ∧ p₂ x}
theorem isOpen_compl_iff E0 #
∀ {X : Type u} {s : Set X} [inst : TopologicalSpace X], IsOpen sᶜ ↔ IsClosed s
theorem TopologicalSpace.ext_iff_isClosed E1 #
∀ {X : Type u_2} {t₁ t₂ : TopologicalSpace X}, t₁ = t₂ ↔ ∀ (s : Set X), IsClosed s ↔ IsClosed s
theorem TopologicalSpace.ext_isClosed E1 #
∀ {X : Type u_2} {t₁ t₂ : TopologicalSpace X}, (∀ (s : Set X), IsClosed s ↔ IsClosed s) → t₁ = t₂
Alias of the reverse direction of TopologicalSpace.ext_iff_isClosed.
theorem isClosed_const E1 #
∀ {X : Type u} [inst : TopologicalSpace X] {p : Prop}, IsClosed {_x | p}
theorem isClosed_empty E0 #
∀ {X : Type u} [inst : TopologicalSpace X], IsClosed ∅
theorem isClosed_univ E0 #
∀ {X : Type u} [inst : TopologicalSpace X], IsClosed Set.univ
theorem IsOpen.isLocallyClosed E1 #
∀ {X : Type u} {s : Set X} [inst : TopologicalSpace X], IsOpen s → IsLocallyClosed s
theorem IsClosed.isLocallyClosed E1 #
∀ {X : Type u} {s : Set X} [inst : TopologicalSpace X], IsClosed s → IsLocallyClosed s
theorem IsClosed.union E1 #
∀ {X : Type u} {s₁ s₂ : Set X} [inst : TopologicalSpace X], IsClosed s₁ → IsClosed s₂ → IsClosed (s₁ ∪ s₂)
theorem isClosed_sInter E1 #
∀ {X : Type u} [inst : TopologicalSpace X] {s : Set (Set X)}, (∀ t ∈ s, IsClosed t) → IsClosed (⋂₀ s)
theorem isClosed_iInter E1 #
∀ {X : Type u} {ι : Sort v} [inst : TopologicalSpace X] {f : ι → Set X},
(∀ (i : ι), IsClosed (f i)) → IsClosed (⋂ i, f i)
theorem isClosed_biInter E1 #
∀ {X : Type u} {α : Type u_1} [inst : TopologicalSpace X] {s : Set α} {f : α → Set X},
(∀ i ∈ s, IsClosed (f i)) → IsClosed (⋂ i ∈ s, f i)
theorem isClosed_compl_iff E0 #
∀ {X : Type u} [inst : TopologicalSpace X] {s : Set X}, IsClosed sᶜ ↔ IsOpen s
theorem IsOpen.isClosed_compl E1 #
∀ {X : Type u} [inst : TopologicalSpace X] {s : Set X}, IsOpen s → IsClosed sᶜ
Alias of the reverse direction of isClosed_compl_iff.
theorem IsOpen.sdiff E1 #
∀ {X : Type u} {s t : Set X} [inst : TopologicalSpace X], IsOpen s → IsClosed t → IsOpen (s \ t)
theorem IsClosed.inter E1 #
∀ {X : Type u} {s₁ s₂ : Set X} [inst : TopologicalSpace X], IsClosed s₁ → IsClosed s₂ → IsClosed (s₁ ∩ s₂)
theorem IsClosed.sdiff E1 #
∀ {X : Type u} {s t : Set X} [inst : TopologicalSpace X], IsClosed s → IsOpen t → IsClosed (s \ t)
theorem Set.Finite.isClosed_biUnion E1 #
∀ {X : Type u} {α : Type u_1} [inst : TopologicalSpace X] {s : Set α} {f : α → Set X},
s.Finite → (∀ i ∈ s, IsClosed (f i)) → IsClosed (⋃ i ∈ s, f i)
theorem Set.Finite.isClosed_sUnion E1 #
∀ {X : Type u} [inst : TopologicalSpace X] {s : Set (Set X)}, s.Finite → (∀ t ∈ s, IsClosed t) → IsClosed (⋃₀ s)
theorem isClosed_biUnion_finset E1 #
∀ {X : Type u} {α : Type u_1} [inst : TopologicalSpace X] {s : Finset α} {f : α → Set X},
(∀ i ∈ s, IsClosed (f i)) → IsClosed (⋃ i ∈ s, f i)
theorem isClosed_iUnion_of_finite E1 #
∀ {X : Type u} {ι : Sort v} [inst : TopologicalSpace X] [Finite ι] {s : ι → Set X},
(∀ (i : ι), IsClosed (s i)) → IsClosed (⋃ i, s i)
theorem IsClosed.iUnion_of_finite_nonempty E1 #
∀ {X : Type u} [inst : TopologicalSpace X] {ι : Type u_2} {s : ι → Set X},
(∀ (i : ι), IsClosed (s i)) → {i | (s i).Nonempty}.Finite → IsClosed (⋃ i, s i)
theorem isClosed_imp E1 #
∀ {X : Type u} [inst : TopologicalSpace X] {p q : X → Prop},
IsOpen {x | p x} → IsClosed {x | q x} → IsClosed {x | p x → q x}
theorem IsClosed.not E1 #
∀ {X : Type u} {p : X → Prop} [inst : TopologicalSpace X], IsClosed {a | p a} → IsOpen {a | ¬p a}
theorem IsClosed.and E1 #
∀ {X : Type u} {p₁ p₂ : X → Prop} [inst : TopologicalSpace X],
IsClosed {x | p₁ x} → IsClosed {x | p₂ x} → IsClosed {x | p₁ x ∧ p₂ x}
theorem le_nhds_lim E1 #
∀ {X : Type u} [inst : TopologicalSpace X] {f : Filter X} (h : ∃ x, f ≤ nhds x), f ≤ nhds f.lim
If a filter f is majorated by some 𝓝 x, then it is majorated by 𝓝 (Filter.lim f). We
formulate this lemma with a [Nonempty X] argument of lim derived from h to make it useful for
types without a [Nonempty X] instance. Because of the built-in proof irrelevance, Lean will unify
this instance with any other instance.
theorem tendsto_nhds_limUnder E1 #
∀ {X : Type u} {α : Type u_1} [inst : TopologicalSpace X] {f : Filter α} {g : α → X}
(h : ∃ x, Filter.Tendsto g f (nhds x)), Filter.Tendsto g f (nhds (f.limUnder g))
If g tends to some 𝓝 x along f, then it tends to 𝓝 (Filter.limUnder f g). We formulate
this lemma with a [Nonempty X] argument of lim derived from h to make it useful for types
without a [Nonempty X] instance. Because of the built-in proof irrelevance, Lean will unify this
instance with any other instance.
theorem limUnder_of_not_tendsto E1 #
∀ {X : Type u} {α : Type u_1} [inst : TopologicalSpace X] [hX : Nonempty X] {f : Filter α} {g : α → X},
(¬∃ x, Filter.Tendsto g f (nhds x)) → f.limUnder g = Classical.choice hX