The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V13. General topology

Mathlib.Topology.Filter

40 declarations and 1 deprecated aliases. Mathlib docs · Source

Topology on the set of filters on a type

This file introduces a topology on Filter α. It is generated by the sets Set.Iic (𝓟 s) = {l : Filter α | s ∈ l}, s : Set α. A set s : Set (Filter α) is open if and only if it is a union of a family of these basic open sets, see Filter.isOpen_iff.

This topology has the following important properties.

  • If X is a topological space, then the map 𝓝 : X → Filter X is a topology inducing map.

  • In particular, it is a continuous map, so 𝓝 ∘ f tends to 𝓝 (𝓝 a) whenever f tends to 𝓝 a.

  • If X is an ordered topological space with order topology and no max element, then 𝓝 ∘ f tends to 𝓝 Filter.atTop whenever f tends to Filter.atTop.

  • It turns Filter X into a T₀ space and the order on Filter X is the dual of the specializationOrder (Filter X).

Tags

filter, topological space

instance Filter.instTopologicalSpace E0 #

{α : Type u_2} → TopologicalSpace (Filter α)

The topology on Filter α is generated by the sets Set.Iic (𝓟 s) = {l : Filter α | s ∈ l}, s : Set α. A set s : Set (Filter α) is open if and only if it is a union of a family of these basic open sets, see Filter.isOpen_iff.

theorem Filter.isOpen_Iic_principal E1 #

∀ {α : Type u_2} {s : Set α}, IsOpen (Set.Iic (Filter.principal s))

theorem Filter.isOpen_setOfPred_mem E1 #

∀ {α : Type u_2} {s : Set α}, IsOpen {l | s ∈ l}

theorem Filter.isTopologicalBasis_Iic_principal E1 #

∀ {α : Type u_2}, TopologicalSpace.IsTopologicalBasis (Set.range (Set.Iic ∘ Filter.principal))

theorem Filter.isOpen_iff E0 #

∀ {α : Type u_2} {s : Set (Filter α)}, IsOpen s ↔ ∃ T, s = ⋃ t ∈ T, Set.Iic (Filter.principal t)

theorem Filter.nhds_eq E0 #

∀ {α : Type u_2} (l : Filter α), nhds l = l.lift' (Set.Iic ∘ Filter.principal)

theorem Filter.nhds_eq' E1 #

∀ {α : Type u_2} (l : Filter α), nhds l = l.lift' fun s ↦ {l' | s ∈ l'}

theorem Filter.tendsto_nhds E1 #

∀ {α : Type u_2} {β : Type u_3} {la : Filter α} {lb : Filter β} {f : α → Filter β},
  Filter.Tendsto f la (nhds lb) ↔ ∀ s ∈ lb, ∀ᶠ (a : α) in la, s ∈ f a

theorem Filter.HasBasis.nhds E1 #

∀ {ι : Sort u_1} {α : Type u_2} {l : Filter α} {p : ι → Prop} {s : ι → Set α},
  l.HasBasis p s → (nhds l).HasBasis p fun i ↦ Set.Iic (Filter.principal (s i))

theorem Filter.tendsto_pure_self E1 #

∀ {X : Type u_4} (l : Filter X), Filter.Tendsto pure l (nhds l)

instance Filter.instIsCountablyGeneratedNhds E0 #

∀ {α : Type u_2} {l : Filter α} [l.IsCountablyGenerated], (nhds l).IsCountablyGenerated

Neighborhoods of a countably generated filter is a countably generated filter.

theorem Filter.HasBasis.nhds' E1 #

∀ {ι : Sort u_1} {α : Type u_2} {l : Filter α} {p : ι → Prop} {s : ι → Set α},
  l.HasBasis p s → (nhds l).HasBasis p fun i ↦ {l' | s i ∈ l'}

theorem Filter.mem_nhds_iff E0 #

∀ {α : Type u_2} {l : Filter α} {S : Set (Filter α)}, S ∈ nhds l ↔ ∃ t ∈ l, Set.Iic (Filter.principal t) ⊆ S

theorem Filter.mem_nhds_iff' E0 #

∀ {α : Type u_2} {l : Filter α} {S : Set (Filter α)}, S ∈ nhds l ↔ ∃ t ∈ l, ∀ ⦃l' : Filter α⦄, t ∈ l' → l' ∈ S

theorem Filter.nhds_bot E0 #

∀ {α : Type u_2}, nhds ⊥ = pure ⊥

theorem Filter.nhds_top E0 #

∀ {α : Type u_2}, nhds ⊤ = ⊤

theorem Filter.nhds_principal E0 #

∀ {α : Type u_2} (s : Set α), nhds (Filter.principal s) = Filter.principal (Set.Iic (Filter.principal s))

theorem Filter.nhds_pure E0 #

∀ {α : Type u_2} (x : α), nhds (pure x) = Filter.principal {⊥, pure x}

theorem Filter.nhds_iInf E0 #

∀ {ι : Sort u_1} {α : Type u_2} (f : ι → Filter α), nhds (⨅ i, f i) = ⨅ i, nhds (f i)

theorem Filter.nhds_inf E0 #

∀ {α : Type u_2} (l₁ l₂ : Filter α), nhds (l₁ ⊓ l₂) = nhds l₁ ⊓ nhds l₂

theorem Filter.monotone_nhds E1 #

∀ {α : Type u_2}, Monotone nhds

theorem Filter.sInter_nhds E1 #

∀ {α : Type u_2} (l : Filter α), ⋂₀ {s | s ∈ nhds l} = Set.Iic l

theorem Filter.nhds_mono E0 #

∀ {α : Type u_2} {l₁ l₂ : Filter α}, nhds l₁ ≤ nhds l₂ ↔ l₁ ≤ l₂

theorem Filter.mem_interior E0 #

∀ {α : Type u_2} {s : Set (Filter α)} {l : Filter α}, l ∈ interior s ↔ ∃ t ∈ l, Set.Iic (Filter.principal t) ⊆ s

theorem Filter.mem_closure E0 #

∀ {α : Type u_2} {s : Set (Filter α)} {l : Filter α}, l ∈ closure s ↔ ∀ t ∈ l, ∃ l' ∈ s, t ∈ l'

theorem Filter.closure_singleton E0 #

∀ {α : Type u_2} (l : Filter α), closure {l} = Set.Ici l

theorem Filter.specializes_iff_le E0 #

∀ {α : Type u_2} {l₁ l₂ : Filter α}, l₁ ⤳ l₂ ↔ l₁ ≤ l₂

instance Filter.instT0Space E0 #

∀ {α : Type u_2}, T0Space (Filter α)

theorem Filter.nhds_atTop E1 #

∀ {α : Type u_2} [inst : Preorder α], nhds Filter.atTop = ⨅ x, Filter.principal (Set.Iic (Filter.principal (Set.Ici x)))

theorem Filter.tendsto_nhds_atTop_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder β] {l : Filter α} {f : α → Filter β},
  Filter.Tendsto f l (nhds Filter.atTop) ↔ ∀ (y : β), ∀ᶠ (a : α) in l, Set.Ici y ∈ f a

theorem Filter.nhds_atBot E1 #

∀ {α : Type u_2} [inst : Preorder α], nhds Filter.atBot = ⨅ x, Filter.principal (Set.Iic (Filter.principal (Set.Iic x)))

theorem Filter.tendsto_nhds_atBot_iff E0 #

∀ {α : Type u_2} {β : Type u_3} [inst : Preorder β] {l : Filter α} {f : α → Filter β},
  Filter.Tendsto f l (nhds Filter.atBot) ↔ ∀ (y : β), ∀ᶠ (a : α) in l, Set.Iic y ∈ f a

theorem Filter.nhds_nhds E1 #

∀ {X : Type u_4} [inst : TopologicalSpace X] (x : X),
  nhds (nhds x) = ⨅ s, ⨅ (_ : IsOpen s), ⨅ (_ : x ∈ s), Filter.principal (Set.Iic (Filter.principal s))

theorem Filter.isInducing_nhds E1 #

∀ {X : Type u_4} [inst : TopologicalSpace X], Topology.IsInducing nhds

theorem Filter.continuous_nhds E1 #

∀ {X : Type u_4} [inst : TopologicalSpace X], Continuous nhds

theorem Filter.Tendsto.nhds E1 #

∀ {α : Type u_2} {X : Type u_4} [inst : TopologicalSpace X] {f : α → X} {l : Filter α} {x : X},
  Filter.Tendsto f l (nhds x) → Filter.Tendsto (nhds ∘ f) l (nhds (nhds x))

theorem ContinuousWithinAt.nhds E1 #

∀ {X : Type u_4} {Y : Type u_5} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y} {x : X}
  {s : Set X}, ContinuousWithinAt f s x → ContinuousWithinAt (nhds ∘ f) s x

theorem ContinuousAt.nhds E1 #

∀ {X : Type u_4} {Y : Type u_5} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y} {x : X},
  ContinuousAt f x → ContinuousAt (nhds ∘ f) x

theorem ContinuousOn.nhds E1 #

∀ {X : Type u_4} {Y : Type u_5} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y} {s : Set X},
  ContinuousOn f s → ContinuousOn (nhds ∘ f) s

theorem Continuous.nhds E1 #

∀ {X : Type u_4} {Y : Type u_5} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
  Continuous f → Continuous (nhds ∘ f)

Deprecated aliases

NameNew nameSince
Filter.isOpen_setOf_memFilter.isOpen_setOfPred_mem2026-07-09