Category instance for topological spaces #
We introduce the bundled category TopCat of topological spaces together with the functors
TopCat.discrete and TopCat.trivial from the category of types to TopCat which equip a type
with the corresponding discrete, resp. trivial, topology. For a proof that these functors are left,
resp. right adjoint to the forgetful functor, see
Mathlib/Topology/Category/TopCat/Adjunctions.lean.
The category of topological spaces.
- of :: (
- carrier : Type u
The underlying type.
- str : TopologicalSpace ↑self
- )
Instances For
Equations
- TopCat.instCoeSortType = { coe := TopCat.carrier }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
Morphisms in TopCat are equivalent to continuous maps.
Equations
- TopCat.Hom.equivContinuousMap X Y = { toFun := fun (f : X ⟶ Y) => TopCat.Hom.hom f, invFun := fun (f : C(↑X, ↑Y)) => TopCat.ofHom f, left_inv := ⋯, right_inv := ⋯ }
Instances For
Replace a function coercion for a morphism TopCat.of X ⟶ TopCat.of Y with the definitionally
equal function coercion for a continuous map C(X, Y).
Equations
- TopCat.inhabited = { default := ↧Empty }
The discrete topology on any type.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The trivial topology on any type.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Any homeomorphisms induces an isomorphism in Top.
Equations
- TopCat.isoOfHomeo f = { hom := TopCat.ofHom ↑f, inv := TopCat.ofHom ↑f.symm, hom_inv_id := ⋯, inv_hom_id := ⋯ }
Instances For
The MorphismProperty in TopCat of a morphism being an embedding.
Equations
Instances For
The constant morphism X ⟶ Y in TopCat given by y : Y.
Equations
- TopCat.const y = TopCat.ofHom { toFun := fun (x : ↑X) => y, continuous_toFun := ⋯ }