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.Defs.Filter

50 declarations. Mathlib docs Β· Source

Definitions about filters in topological spaces

In this file we define filters in topological spaces, as well as other definitions that rely on Filters.

Main Definitions

Neighborhoods filter

  • nhds x: the filter of neighborhoods of a point in a topological space, denoted by 𝓝 x in the Topology scope. A set is called a neighborhood of x, if it includes an open set around x.

  • nhdsWithin x s: the filter of neighborhoods of a point within a set, defined as 𝓝 x βŠ“ π“Ÿ s and denoted by 𝓝[s] x. We also introduce notation for some special sets s, see below.

  • nhdsSet s: the filter of neighborhoods of a set in a topological space, denoted by 𝓝˒ s in the Topology scope. A set t is called a neighborhood of s, if it includes an open set that includes s.

  • nhdsSetWithin s t: the filter of neighborhoods of a set s within another set t, defined as 𝓝˒ s βŠ“ π“Ÿ t and denoted by 𝓝˒[t] s in the Topology scope.

  • nhdsKer s: The neighborhoods kernel of a set is the intersection of all its neighborhoods. In an Alexandrov-discrete space, this is the smallest neighborhood of the set.

    Note that this construction is unnamed in the literature. We choose the name in analogy to interior.

Continuity at a point

  • ContinuousAt f x: a function f is continuous at a point x, if it tends to 𝓝 (f x) along 𝓝 x.

  • ContinuousWithinAt f s x: a function f is continuous within a set s at a point x, if it tends to 𝓝 (f x) along 𝓝[s] x.

  • ContinuousOn f s: a function f : X β†’ Y is continuous on a set s, if it is continuous within s at every point of s.

Limits

  • lim f: a limit of a filter f in a nonempty topological space. If there exists x such that f ≀ 𝓝 x, then lim f is one of such points, otherwise it is Classical.choice _.

    In a Hausdorff topological space, the limit is unique if it exists.

  • Ultrafilter.lim f: a limit of an ultrafilter f, defined as the limit of (f : Filter X) with a proof of Nonempty X deduced from existence of an ultrafilter on X.

  • limUnder f g: a limit of a filter f along a function g, defined as lim (Filter.map g f).

Cluster points and accumulation points

  • ClusterPt x F: a point x is a cluster point of a filter F, if 𝓝 x is not disjoint with F.

  • MapClusterPt x F u: a point x is a cluster point of a function u along a filter F, if it is a cluster point of the filter Filter.map u F.

  • AccPt x F: a point x is an accumulation point of a filter F, if 𝓝[β‰ ] x is not disjoint with F. Every accumulation point of a filter is its cluster point, but not vice versa.

  • IsCompact s: a set s is compact if for every nontrivial filter f that contains s, there exists a ∈ s such that every set of f meets every neighborhood of a. Equivalently, a set s is compact if for any cover of s by open sets, there exists a finite subcover.

  • CompactSpace, NoncompactSpace: typeclasses saying that the whole space is a compact set / is not a compact set, respectively.

  • WeaklyLocallyCompactSpace X: typeclass saying that every point of X has a compact neighborhood.

  • LocallyCompactSpace X: typeclass saying that every point of X has a basis of compact neighborhoods. Every locally compact space is a weakly locally compact space. The reverse implication is true for R₁ (preregular) spaces.

  • LocallyCompactPair X Y: an auxiliary typeclass saying that for any continuous function f : X β†’ Y, a point x, and a neighborhood s of f x, there exists a compact neighborhood K of x such that f maps K to s.

  • Filter.cocompact, Filter.coclosedCompact: filters generated by complements to compact and closed compact sets, respectively.

Notation

  • 𝓝 x: the filter nhds x of neighborhoods of a point x;
  • π“Ÿ s: the principal filter of a set s, defined elsewhere;
  • 𝓝[s] x: the filter nhdsWithin x s of neighborhoods of a point x within a set s;
  • 𝓝[≀] x: the filter nhdsWithin x (Set.Iic x) of left-neighborhoods of x;
  • 𝓝[β‰₯] x: the filter nhdsWithin x (Set.Ici x) of right-neighborhoods of x;
  • 𝓝[<] x: the filter nhdsWithin x (Set.Iio x) of punctured left-neighborhoods of x;
  • 𝓝[>] x: the filter nhdsWithin x (Set.Ioi x) of punctured right-neighborhoods of x;
  • 𝓝[β‰ ] x: the filter nhdsWithin x {x}ᢜ of punctured neighborhoods of x;
  • 𝓝˒ s: the filter nhdsSet s of neighborhoods of a set.

def nhds E3 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ X β†’ Filter X

A set is called a neighborhood of x if it contains an open set around x. The set of all neighborhoods of x forms a filter, the neighborhood filter at x, is here defined as the infimum over the principal filters of all open sets containing x.

theorem nhds_def E0 #

βˆ€ {X : Type u_1} [inst : TopologicalSpace X] (x : X), nhds x = β¨… s ∈ {s | x ∈ s ∧ IsOpen s}, Filter.principal s

Alias of _private.Mathlib.Topology.Defs.Filter.0.nhds.eq_def.

def Topology.term𝓝 E1 #

Lean.ParserDescr

A set is called a neighborhood of x if it contains an open set around x. The set of all neighborhoods of x forms a filter, the neighborhood filter at x, is here defined as the infimum over the principal filters of all open sets containing x.

def nhdsWithin E3 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ X β†’ Set X β†’ Filter X

The "neighborhood within" filter. Elements of 𝓝[s] x are sets containing the intersection of s and a neighborhood of x.

def Topology.Β«term𝓝[_]_Β» E1 #

Lean.ParserDescr

The "neighborhood within" filter. Elements of 𝓝[s] x are sets containing the intersection of s and a neighborhood of x.

def Topology.nhdsNE E1 #

Lean.ParserDescr

Notation for the filter of punctured neighborhoods of a point.

def Topology.nhdsGE E1 #

Lean.ParserDescr

Notation for the filter of right neighborhoods of a point.

def Topology.nhdsLE E1 #

Lean.ParserDescr

Notation for the filter of left neighborhoods of a point.

def Topology.nhdsGT E1 #

Lean.ParserDescr

Notation for the filter of punctured right neighborhoods of a point.

def Topology.nhdsLT E1 #

Lean.ParserDescr

Notation for the filter of punctured left neighborhoods of a point.

def nhdsSet E1 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ Set X β†’ Filter X

The filter of neighborhoods of a set in a topological space.

def Topology.Β«term𝓝˒» E1 #

Lean.ParserDescr

The filter of neighborhoods of a set in a topological space.

def nhdsSetWithin E1 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ Set X β†’ Set X β†’ Filter X

The "neighbourhood within" filter for sets. Elements of 𝓝[t] s are sets containing the intersection of t and a neighbourhood of s.

def Topology.Β«term𝓝˒[_]_Β» E1 #

Lean.ParserDescr

The "neighbourhood within" filter for sets. Elements of 𝓝[t] s are sets containing the intersection of t and a neighbourhood of s.

def nhdsKer E1 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ Set X β†’ Set X

The neighborhoods kernel of a set is the intersection of all its neighborhoods. In an Alexandrov-discrete space, this is the smallest neighborhood of the set.

def ContinuousAt E1 #

{X : Type u_1} β†’ {Y : Type u_2} β†’ [TopologicalSpace X] β†’ [TopologicalSpace Y] β†’ (X β†’ Y) β†’ X β†’ Prop

A function between topological spaces is continuous at a point xβ‚€ if f x tends to f xβ‚€ when x tends to xβ‚€.

def ContinuousWithinAt E3 #

{X : Type u_1} β†’ {Y : Type u_2} β†’ [TopologicalSpace X] β†’ [TopologicalSpace Y] β†’ (X β†’ Y) β†’ Set X β†’ X β†’ Prop

A function between topological spaces is continuous at a point xβ‚€ within a subset s if f x tends to f xβ‚€ when x tends to xβ‚€ while staying within s.

def ContinuousOn E3 #

{X : Type u_1} β†’ {Y : Type u_2} β†’ [TopologicalSpace X] β†’ [TopologicalSpace Y] β†’ (X β†’ Y) β†’ Set X β†’ Prop

A function between topological spaces is continuous on a subset s when it's continuous at every point of s within s.

def Specializes E3 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ X β†’ X β†’ Prop

x specializes to y (notation: x β€³ y) if either of the following equivalent properties hold:

  • 𝓝 x ≀ 𝓝 y; this property is used as the definition;
  • pure x ≀ 𝓝 y; in other words, any neighbourhood of y contains x;
  • y ∈ closure {x};
  • closure {y} βŠ† closure {x};
  • for any closed set s we have x ∈ s β†’ y ∈ s;
  • for any open set s we have y ∈ s β†’ x ∈ s;
  • y is a cluster point of the filter pure x = π“Ÿ {x}.

This relation defines a Preorder on X. If X is a Tβ‚€ space, then this Preorder is a PartialOrder. If X is a T₁ space, then this PartialOrder is trivial: x β€³ y ↔ x = y.

def Β«term_β€³_Β» E1 #

Lean.TrailingParserDescr

x specializes to y (notation: x β€³ y) if either of the following equivalent properties hold:

  • 𝓝 x ≀ 𝓝 y; this property is used as the definition;
  • pure x ≀ 𝓝 y; in other words, any neighbourhood of y contains x;
  • y ∈ closure {x};
  • closure {y} βŠ† closure {x};
  • for any closed set s we have x ∈ s β†’ y ∈ s;
  • for any open set s we have y ∈ s β†’ x ∈ s;
  • y is a cluster point of the filter pure x = π“Ÿ {x}.

This relation defines a Preorder on X. If X is a Tβ‚€ space, then this Preorder is a PartialOrder. If X is a T₁ space, then this PartialOrder is trivial: x β€³ y ↔ x = y.

def Inseparable E1 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ X β†’ X β†’ Prop

Two points x and y in a topological space are Inseparable, or topologically indistinguishable, if any of the following equivalent properties hold:

  • 𝓝 x = 𝓝 y; we use this property as the definition;
  • for any open set s, x ∈ s ↔ y ∈ s, see inseparable_iff_forall_isOpen;
  • for any closed set s, x ∈ s ↔ y ∈ s, see inseparable_iff_forall_isClosed;
  • x ∈ closure {y} and y ∈ closure {x}, see inseparable_iff_mem_closure;
  • closure {x} = closure {y}, see inseparable_iff_closure_eq.

instance instIsPreorderSpecializes E0 #

βˆ€ (X : Type u_1) [inst : TopologicalSpace X], IsPreorder X Specializes

def specializationPreorder E1 #

(X : Type u_1) β†’ [TopologicalSpace X] β†’ Preorder X

Specialization forms a preorder on the topological space.

instance instIsEquivInseparable E0 #

βˆ€ (X : Type u_1) [inst : TopologicalSpace X], IsEquiv X Inseparable

def inseparableSetoid E1 #

(X : Type u_1) β†’ [TopologicalSpace X] β†’ Setoid X

A setoid version of Inseparable, used to define the SeparationQuotient.

def SeparationQuotient E3 #

(X : Type u_1) β†’ [TopologicalSpace X] β†’ Type u_1

The quotient of a topological space by its inseparableSetoid. Also called the Kolmogorov quotient. This quotient is guaranteed to be a Tβ‚€ space.

def IsLocallyClosedAt E1 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ Set X β†’ X β†’ Prop

A set s is locally closed at a point x if there is a neighborhood U of x and a closed set Z such that U ∩ s = U ∩ Z. Also see isLocallyClosedAt_tfae and other lemmas in Mathlib/Topology/LocallyClosed.lean.

def Filter.lim E1 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ [Nonempty X] β†’ Filter X β†’ X

If f is a filter, then Filter.lim f is a limit of the filter, if it exists.

def Filter.limUnder E1 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ {Ξ± : Type u_3} β†’ [Nonempty X] β†’ Filter Ξ± β†’ (Ξ± β†’ X) β†’ X

If f is a filter in Ξ± and g : Ξ± β†’ X is a function, then Filter.limUnder f g is a limit of g at f, if it exists.

def ClusterPt E3 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ X β†’ Filter X β†’ Prop

A point x is a cluster point of a filter F if 𝓝 x βŠ“ F β‰  βŠ₯. Also known as an accumulation point or a limit point, but beware that terminology varies. This is not the same as asking 𝓝[β‰ ] x βŠ“ F β‰  βŠ₯, which is called AccPt in Mathlib. See mem_closure_iff_clusterPt in particular.

def MapClusterPt E3 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ {ΞΉ : Type u_3} β†’ X β†’ Filter ΞΉ β†’ (ΞΉ β†’ X) β†’ Prop

A point x is a cluster point of a sequence u along a filter F if it is a cluster point of map u F.

def AccPt E1 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ X β†’ Filter X β†’ Prop

A point x is an accumulation point of a filter F if 𝓝[β‰ ] x βŠ“ F β‰  βŠ₯. See also ClusterPt.

def IsCompact E3 #

{X : Type u_1} β†’ [TopologicalSpace X] β†’ Set X β†’ Prop

A set s is compact if for every nontrivial filter f that contains s, there exists a ∈ s such that every set of f meets every neighborhood of a.

class CompactSpace E1 #

(X : Type u_1) β†’ [TopologicalSpace X] β†’ Prop

Type class for compact spaces. Separation is sometimes included in the definition, especially in the French literature, but we do not include it here.

ctor CompactSpace.mk E0 #

βˆ€ {X : Type u_1} [inst : TopologicalSpace X], IsCompact Set.univ β†’ CompactSpace X

theorem CompactSpace.isCompact_univ E1 #

βˆ€ {X : Type u_1} {inst : TopologicalSpace X} [self : CompactSpace X], IsCompact Set.univ

In a compact space, Set.univ is a compact set.

class NoncompactSpace E1 #

(X : Type u_1) β†’ [TopologicalSpace X] β†’ Prop

X is a noncompact topological space if it is not a compact space.

ctor NoncompactSpace.mk E0 #

βˆ€ {X : Type u_1} [inst : TopologicalSpace X], Β¬IsCompact Set.univ β†’ NoncompactSpace X

theorem NoncompactSpace.noncompact_univ E1 #

βˆ€ {X : Type u_1} {inst : TopologicalSpace X} [self : NoncompactSpace X], Β¬IsCompact Set.univ

In a noncompact space, Set.univ is not a compact set.

class WeaklyLocallyCompactSpace E1 #

(X : Type u_3) β†’ [TopologicalSpace X] β†’ Prop

We say that a topological space is a weakly locally compact space, if each point of this space admits a compact neighborhood.

ctor WeaklyLocallyCompactSpace.mk E0 #

βˆ€ {X : Type u_3} [inst : TopologicalSpace X], (βˆ€ (x : X), βˆƒ s, IsCompact s ∧ s ∈ nhds x) β†’ WeaklyLocallyCompactSpace X

theorem WeaklyLocallyCompactSpace.exists_compact_mem_nhds E1 #

βˆ€ {X : Type u_3} {inst : TopologicalSpace X} [self : WeaklyLocallyCompactSpace X] (x : X), βˆƒ s, IsCompact s ∧ s ∈ nhds x

Every point of a weakly locally compact space admits a compact neighborhood.

class LocallyCompactSpace E1 #

(X : Type u_3) β†’ [TopologicalSpace X] β†’ Prop

There are various definitions of "locally compact space" in the literature, which agree for Hausdorff spaces but not in general. This one is the precise condition on X needed for the evaluation map C(X, Y) Γ— X β†’ Y to be continuous for all Y when C(X, Y) is given the compact-open topology.

See also WeaklyLocallyCompactSpace, a typeclass that only assumes that each point has a compact neighborhood.

ctor LocallyCompactSpace.mk E0 #

βˆ€ {X : Type u_3} [inst : TopologicalSpace X],
  (βˆ€ (x : X), βˆ€ n ∈ nhds x, βˆƒ s ∈ nhds x, s βŠ† n ∧ IsCompact s) β†’ LocallyCompactSpace X

theorem LocallyCompactSpace.local_compact_nhds E1 #

βˆ€ {X : Type u_3} {inst : TopologicalSpace X} [self : LocallyCompactSpace X] (x : X),
  βˆ€ n ∈ nhds x, βˆƒ s ∈ nhds x, s βŠ† n ∧ IsCompact s

In a locally compact space, every neighbourhood of every point contains a compact neighbourhood of that same point.

class LocallyCompactPair E1 #

(X : Type u_3) β†’ (Y : Type u_4) β†’ [TopologicalSpace X] β†’ [TopologicalSpace Y] β†’ Prop

We say that X and Y are a locally compact pair of topological spaces, if for any continuous map f : X β†’ Y, a point x : X, and a neighbourhood s ∈ 𝓝 (f x), there exists a compact neighbourhood K ∈ 𝓝 x such that f maps K to s.

This is a technical assumption that appears in several theorems, most notably in ContinuousMap.continuous_comp' and ContinuousMap.continuous_eval. It is satisfied in two cases:

  • if X is a locally compact topological space, for obvious reasons;
  • if X is a weakly locally compact topological space and Y is an R₁ space; this fact is a simple generalization of the theorem saying that a weakly locally compact R₁ topological space is locally compact.

ctor LocallyCompactPair.mk E0 #

βˆ€ {X : Type u_3} {Y : Type u_4} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y],
  (βˆ€ {f : X β†’ Y} {x : X} {s : Set Y}, Continuous f β†’ s ∈ nhds (f x) β†’ βˆƒ K ∈ nhds x, IsCompact K ∧ Set.MapsTo f K s) β†’
    LocallyCompactPair X Y

theorem LocallyCompactPair.exists_mem_nhds_isCompact_mapsTo E1 #

βˆ€ {X : Type u_3} {Y : Type u_4} {inst : TopologicalSpace X} {inst_1 : TopologicalSpace Y}
  [self : LocallyCompactPair X Y] {f : X β†’ Y} {x : X} {s : Set Y},
  Continuous f β†’ s ∈ nhds (f x) β†’ βˆƒ K ∈ nhds x, IsCompact K ∧ Set.MapsTo f K s

If f : X β†’ Y is a continuous map in a locally compact pair of topological spaces and s : Set Y is a neighbourhood of f x, x : X, then there exists a compact neighbourhood K of x such that f maps K to s.

def Filter.cocompact E1 #

(X : Type u_1) β†’ [TopologicalSpace X] β†’ Filter X

Filter.cocompact is the filter generated by complements to compact sets.

def Filter.coclosedCompact E1 #

(X : Type u_1) β†’ [TopologicalSpace X] β†’ Filter X

Filter.coclosedCompact is the filter generated by complements to closed compact sets. In a Hausdorff space, this is the same as Filter.cocompact.