The areas / V13. General topology
Mathlib.Topology.Defs.Basic
56 declarations. Mathlib docs · Source
Basic definitions about topological spaces
This file contains definitions about topology that do not require imports
other than Mathlib/Data/Set/Lattice.lean.
Main definitions
-
TopologicalSpace X: a typeclass endowingXwith a topology. By definition, a topology is a collection of sets called open sets such thatisOpen_univ: the whole space is open;IsOpen.inter: the intersection of two open sets is an open set;isOpen_sUnion: the union of a family of open sets is an open set.
-
IsOpen s: predicate saying thatsis an open set, same asTopologicalSpace.IsOpen. -
IsClosed s: a set is called closed, if its complement is an open set. For technical reasons, this is a typeclass. -
IsClopen s: a set is clopen if it is both closed and open. -
interior s: the interior of a setsis the maximal open set that is included ins. -
closure s: the closure of a setsis the minimal closed set that includess. -
frontier s: the frontier of a set is the set differenceclosure s \ interior s. A pointxbelongs tofrontier s, if any neighborhood ofxcontains points both fromsandsᶜ. -
Dense s: a set is dense if its closure is the whole space. We define it as∀ x, x ∈ closure sso that one can write(h : Dense s) x. -
DenseRange f: a function has dense range, ifSet.range fis a dense set. -
Continuous f: a map is continuous, if the preimage of any open set is an open set. -
IsOpenMap f: a map is an open map, if the image of any open set is an open set. -
IsClosedMap f: a map is a closed map, if the image of any closed set is a closed set.
** Notation
We introduce notation IsOpen[t], IsClosed[t], closure[t], Continuous[t₁, t₂]
that allow passing custom topologies to these predicates and functions without using @.
Predicates on sets
Notation for non-standard topologies
def WithTopology.ctorIdx E1 #
{X : Type u_1} → {t : TopologicalSpace X} → WithTopology X t → ℕ
theorem WithTopology.toTopology.inj E1 #
∀ {X : Type u_1} {t : TopologicalSpace X} {ofTopology ofTopology_1 : X},
WithTopology.toTopology t ofTopology = WithTopology.toTopology t ofTopology_1 → ofTopology = ofTopology_1
def TopologicalSpace.ctorIdx E1 #
{X : Type u} → TopologicalSpace X → ℕ
theorem WithTopology.toTopology.injEq E0 #
∀ {X : Type u_1} (t : TopologicalSpace X) (ofTopology ofTopology_1 : X),
(WithTopology.toTopology t ofTopology = WithTopology.toTopology t ofTopology_1) = (ofTopology = ofTopology_1)
class TopologicalSpace E3 #
Type u → Type u
A topology on X.
ctor TopologicalSpace.mk E0 #
{X : Type u} →
(IsOpen : Set X → Prop) →
IsOpen Set.univ →
(∀ (s t : Set X), IsOpen s → IsOpen t → IsOpen (s ∩ t)) →
(∀ (s : Set (Set X)), (∀ t ∈ s, IsOpen t) → IsOpen (⋃₀ s)) → TopologicalSpace X
abbrev TopologicalSpace.IsOpen E3 #
{X : Type u} → [self : TopologicalSpace X] → Set X → Prop
A predicate saying that a set is an open set. Use IsOpen in the root namespace instead.
theorem TopologicalSpace.isOpen_univ E3 #
∀ {X : Type u} [self : TopologicalSpace X], TopologicalSpace.IsOpen Set.univ
The set representing the whole space is an open set.
Use isOpen_univ in the root namespace instead.
theorem TopologicalSpace.isOpen_inter E1 #
∀ {X : Type u} [self : TopologicalSpace X] (s t : Set X),
TopologicalSpace.IsOpen s → TopologicalSpace.IsOpen t → TopologicalSpace.IsOpen (s ∩ t)
The intersection of two open sets is an open set. Use IsOpen.inter instead.
theorem TopologicalSpace.isOpen_sUnion E3 #
∀ {X : Type u} [self : TopologicalSpace X] (s : Set (Set X)),
(∀ t ∈ s, TopologicalSpace.IsOpen t) → TopologicalSpace.IsOpen (⋃₀ s)
The union of a family of open sets is an open set.
Use isOpen_sUnion in the root namespace instead.
def IsOpen E1 #
{X : Type u} → [TopologicalSpace X] → Set X → Prop
IsOpen s means that s is open in the ambient topological space on X
theorem isOpen_univ E3 #
∀ {X : Type u} [inst : TopologicalSpace X], IsOpen Set.univ
theorem IsOpen.inter E3 #
∀ {X : Type u} [inst : TopologicalSpace X] {s t : Set X}, IsOpen s → IsOpen t → IsOpen (s ∩ t)
theorem isOpen_sUnion E3 #
∀ {X : Type u} [inst : TopologicalSpace X] {s : Set (Set X)}, (∀ t ∈ s, IsOpen t) → IsOpen (⋃₀ s)
class IsClosed E1 #
{X : Type u} → [TopologicalSpace X] → Set X → Prop
A set is closed if its complement is open
ctor IsClosed.mk E0 #
∀ {X : Type u} [inst : TopologicalSpace X] {s : Set X}, IsOpen sᶜ → IsClosed s
theorem IsClosed.isOpen_compl E1 #
∀ {X : Type u} {inst : TopologicalSpace X} {s : Set X} [self : IsClosed s], IsOpen sᶜ
The complement of a closed set is an open set.
def IsClopen E1 #
{X : Type u} → [TopologicalSpace X] → Set X → Prop
A set is clopen if it is both closed and open.
def IsLocallyClosed E1 #
{X : Type u} → [TopologicalSpace X] → Set X → Prop
A set is locally closed if it is the intersection of some open set and some closed set.
Also see isLocallyClosed_tfae and other lemmas in Mathlib/Topology/LocallyClosed.lean.
def interior E1 #
{X : Type u} → [TopologicalSpace X] → Set X → Set X
The interior of a set s is the largest open subset of s.
def closure E3 #
{X : Type u} → [TopologicalSpace X] → Set X → Set X
The closure of s is the smallest closed set containing s.
def frontier E1 #
{X : Type u} → [TopologicalSpace X] → Set X → Set X
The frontier of a set is the set of points between the closure and interior.
def coborder E1 #
{X : Type u} → [TopologicalSpace X] → Set X → Set X
The coborder is defined as the complement of closure s \ s,
or the union of s and the complement of ∂(s).
This is the largest set in which s is closed, and s is locally closed if and only if
coborder s is open.
This is unnamed in the literature, and this name is due to the fact that coborder s = (border sᶜ)ᶜ
where border s = s \ interior s is the border in the sense of Hausdorff.
def Dense E1 #
{X : Type u} → [TopologicalSpace X] → Set X → Prop
A set is dense in a topological space if every point belongs to its closure.
def DenseRange E1 #
{X : Type u} → [TopologicalSpace X] → {α : Type u_1} → (α → X) → Prop
f : α → X has dense range if its range (image) is a dense subset of X.
structure Continuous E3 #
{X : Type u} → {Y : Type v} → [TopologicalSpace X] → [TopologicalSpace Y] → (X → Y) → Prop
A function between topological spaces is continuous if the preimage of every open set is open. Registered as a structure to make sure it is not unfolded by Lean.
ctor Continuous.mk E0 #
∀ {X : Type u} {Y : Type v} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
(∀ (s : Set Y), IsOpen s → IsOpen (f ⁻¹' s)) → Continuous f
theorem Continuous.isOpen_preimage E1 #
∀ {X : Type u} {Y : Type v} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
Continuous f → ∀ (s : Set Y), IsOpen s → IsOpen (f ⁻¹' s)
The preimage of an open set under a continuous function is an open set. Use IsOpen.preimage
instead.
def IsOpenMap E3 #
{X : Type u} → {Y : Type v} → [TopologicalSpace X] → [TopologicalSpace Y] → (X → Y) → Prop
A map f : X → Y is said to be an open map,
if the image of any open U : Set X is open in Y.
def IsClosedMap E3 #
{X : Type u} → {Y : Type v} → [TopologicalSpace X] → [TopologicalSpace Y] → (X → Y) → Prop
A map f : X → Y is said to be a closed map,
if the image of any closed U : Set X is closed in Y.
structure IsOpenQuotientMap E1 #
{X : Type u} → {Y : Type v} → [TopologicalSpace X] → [TopologicalSpace Y] → (X → Y) → Prop
An open quotient map is an open map f : X → Y which is both an open map and a quotient map.
Equivalently, it is a surjective continuous open map.
We use the latter characterization as a definition.
Many important quotient maps are open quotient maps, including
- the quotient map from a topological space to its quotient by the action of a group;
- the quotient map from a topological group to its quotient by a normal subgroup;
- the quotient map from a topological space to its separation quotient.
Contrary to general quotient maps,
the category of open quotient maps is closed under Prod.map.
theorem isOpenQuotientMap_iff E0 #
∀ {X : Type u} {Y : Type v} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] (f : X → Y),
IsOpenQuotientMap f ↔ Function.Surjective f ∧ Continuous f ∧ IsOpenMap f
ctor IsOpenQuotientMap.mk E0 #
∀ {X : Type u} {Y : Type v} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
Function.Surjective f → Continuous f → IsOpenMap f → IsOpenQuotientMap f
theorem IsOpenQuotientMap.surjective E1 #
∀ {X : Type u} {Y : Type v} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
IsOpenQuotientMap f → Function.Surjective f
An open quotient map is surjective.
theorem IsOpenQuotientMap.continuous E1 #
∀ {X : Type u} {Y : Type v} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
IsOpenQuotientMap f → Continuous f
An open quotient map is continuous.
theorem IsOpenQuotientMap.isOpenMap E1 #
∀ {X : Type u} {Y : Type v} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace Y] {f : X → Y},
IsOpenQuotientMap f → IsOpenMap f
An open quotient map is an open map.
def Topology.IsOpen_of E1 #
Lean.ParserDescr
Notation for IsOpen with respect to a non-standard topology.
def Topology.IsClosed_of E1 #
Lean.ParserDescr
Notation for IsClosed with respect to a non-standard topology.
def Topology.IsClopen_of E1 #
Lean.ParserDescr
Notation for IsClopen with respect to a non-standard topology.
def Topology.closure_of E1 #
Lean.ParserDescr
Notation for closure with respect to a non-standard topology.
def Topology.Continuous_of E1 #
Lean.ParserDescr
Notation for Continuous with respect to non-standard topologies.
def Topology.delabIsOpen E1 #
Lean.PrettyPrinter.Delaborator.Delab
Delaborator for IsOpen[_].
def Topology.delabIsClosed E1 #
Lean.PrettyPrinter.Delaborator.Delab
Delaborator for IsClosed[_].
def Topology.delabIsClopen E1 #
Lean.PrettyPrinter.Delaborator.Delab
Delaborator for IsClopen[_].
def Topology.delabClosure E1 #
Lean.PrettyPrinter.Delaborator.Delab
Delaborator for closure[_].
def Topology.delabContinuous E1 #
Lean.PrettyPrinter.Delaborator.Delab
Delaborator for Continuous[_, _].
class BaireSpace E3 #
(X : Type u_1) → [TopologicalSpace X] → Prop
The property BaireSpace α means that the topological space α has the Baire property:
any countable intersection of open dense subsets is dense.
Formulated here when the source space is ℕ.
Use dense_iInter_of_isOpen which works for any countable index type instead.
theorem baireSpace_iff E0 #
∀ (X : Type u_1) [inst : TopologicalSpace X],
BaireSpace X ↔ ∀ (f : ℕ → Set X), (∀ (n : ℕ), IsOpen (f n)) → (∀ (n : ℕ), Dense (f n)) → Dense (⋂ n, f n)
ctor BaireSpace.mk E0 #
∀ {X : Type u_1} [inst : TopologicalSpace X],
(∀ (f : ℕ → Set X), (∀ (n : ℕ), IsOpen (f n)) → (∀ (n : ℕ), Dense (f n)) → Dense (⋂ n, f n)) → BaireSpace X
theorem BaireSpace.baire_property E1 #
∀ {X : Type u_1} {inst : TopologicalSpace X} [self : BaireSpace X] (f : ℕ → Set X),
(∀ (n : ℕ), IsOpen (f n)) → (∀ (n : ℕ), Dense (f n)) → Dense (⋂ n, f n)
structure WithTopology E1 #
(X : Type u_1) → TopologicalSpace X → Type u_1
A one-field structure wrapper for X with the topology coinduced from t.
theorem WithTopology.ext_iff E0 #
∀ {X : Type u_1} {t : TopologicalSpace X} {x y : WithTopology X t}, x = y ↔ x.ofTopology = y.ofTopology
theorem WithTopology.ext E1 #
∀ {X : Type u_1} {t : TopologicalSpace X} {x y : WithTopology X t}, x.ofTopology = y.ofTopology → x = y
ctor WithTopology.toTopology E0 #
{X : Type u_1} → (t : TopologicalSpace X) → X → WithTopology X t
Converts an element of X to an element of WithTopology X t.
abbrev WithTopology.ofTopology E1 #
{X : Type u_1} → {t : TopologicalSpace X} → WithTopology X t → X
Converts an element of WithTopology X t to an element of X.
def WithTopology.delabToTopology E1 #
Lean.PrettyPrinter.Delaborator.Delab
This prevents toTopology t x being printed as { ofTopology := x }
by delabStructureInstance.