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 / V27. Algebraic topology and condensed mathematics

Mathlib.Topology.Category.CompHausLike.Basic

55 declarations. Mathlib docs · Source

Categories of Compact Hausdorff Spaces

We construct the category of compact Hausdorff spaces satisfying an additional property P.

Implementation

We define a structure CompHausLike which takes as an argument a predicate P on topological spaces. It consists of the data of a topological space, satisfying the additional properties of being compact and Hausdorff, and satisfying P. We give a category structure to CompHausLike P induced by the forgetful functor to topological spaces.

It used to be the case (before https://github.com/leanprover-community/mathlib4/pull/12930 was merged) that several different categories of compact Hausdorff spaces, possibly satisfying some extra property, were defined from scratch in this way. For example, one would define a structure CompHaus as follows:

structure CompHaus where
  toTop : TopCat
  [is_compact : CompactSpace toTop]
  [is_hausdorff : T2Space toTop]

and give it the category structure induced from topological spaces. Then the category of profinite spaces was defined as follows:

structure Profinite where
  toCompHaus : CompHaus
  [isTotallyDisconnected : TotallyDisconnectedSpace toCompHaus]

The categories Stonean consisting of extremally disconnected compact Hausdorff spaces and LightProfinite consisting of totally disconnected, second countable compact Hausdorff spaces were defined in a similar way. This resulted in code duplication, and reducing this duplication was part of the motivation for introducing CompHausLike.

Using CompHausLike, we can now define CompHaus := CompHausLike (fun _ ↦ True) Profinite := CompHausLike (fun X ↦ TotallyDisconnectedSpace X). Stonean := CompHausLike (fun X ↦ ExtremallyDisconnected X). LightProfinite := CompHausLike (fun X ↦ TotallyDisconnectedSpace X ∧ SecondCountableTopology X).

These four categories are important building blocks of condensed objects (see the files Condensed.Basic and Condensed.Light.Basic). These categories share many properties and often, one wants to argue about several of them simultaneously. This is the other part of the motivation for introducing CompHausLike. On paper, one would say "let C be on of the categories CompHaus or Profinite, then the following holds: ...". This was not possible in Lean using the old definitions. Using the new definitions, this becomes a matter of identifying what common property of CompHaus and Profinite is used in the proof in question, and then proving the theorem for CompHausLike P satisfying that property, and it will automatically apply to both CompHaus and Profinite.

theorem CompHausLike.mk.injEq E0 #

∀ {P : TopCat → Prop} (toTop : TopCat) [is_compact : CompactSpace ↑toTop] [is_hausdorff : T2Space ↑toTop]
  (prop : P toTop) (toTop_1 : TopCat) (is_compact_1 : CompactSpace ↑toTop_1) (is_hausdorff_1 : T2Space ↑toTop_1)
  (prop_1 : P toTop_1),
  ({ toTop := toTop, is_compact := is_compact, is_hausdorff := is_hausdorff, prop := prop } =
      { toTop := toTop_1, is_compact := is_compact_1, is_hausdorff := is_hausdorff_1, prop := prop_1 }) =
    (toTop = toTop_1)

theorem CompHausLike.mk.inj E1 #

∀ {P : TopCat → Prop} {toTop : TopCat} {is_compact : CompactSpace ↑toTop} {is_hausdorff : T2Space ↑toTop}
  {prop : P toTop} {toTop_1 : TopCat} {is_compact_1 : CompactSpace ↑toTop_1} {is_hausdorff_1 : T2Space ↑toTop_1}
  {prop_1 : P toTop_1},
  { toTop := toTop, is_compact := is_compact, is_hausdorff := is_hausdorff, prop := prop } =
      { toTop := toTop_1, is_compact := is_compact_1, is_hausdorff := is_hausdorff_1, prop := prop_1 } →
    toTop = toTop_1

def CompHausLike.ctorIdx E1 #

{P : TopCat → Prop} → CompHausLike P → ℕ

structure CompHausLike E1 #

(TopCat → Prop) → Type (u + 1)

The type of Compact Hausdorff topological spaces satisfying an additional property P.

ctor CompHausLike.mk E0 #

{P : TopCat → Prop} →
  (toTop : TopCat) → [is_compact : CompactSpace ↑toTop] → [is_hausdorff : T2Space ↑toTop] → P toTop → CompHausLike P

abbrev CompHausLike.toTop E1 #

{P : TopCat → Prop} → CompHausLike P → TopCat

The underlying topological space of an object of CompHausLike P.

instance CompHausLike.is_compact E0 #

∀ {P : TopCat → Prop} (self : CompHausLike P), CompactSpace ↑self.toTop

The underlying topological space is compact.

instance CompHausLike.is_hausdorff E0 #

∀ {P : TopCat → Prop} (self : CompHausLike P), T2Space ↑self.toTop

The underlying topological space is T2.

theorem CompHausLike.prop E1 #

∀ {P : TopCat → Prop} (self : CompHausLike P), P self.toTop

The underlying topological space satisfies P.

instance CompHausLike.instCoeSortType E0 #

(P : TopCat → Prop) → CoeSort (CompHausLike P) (Type u)

instance CompHausLike.category E0 #

(P : TopCat → Prop) → CategoryTheory.Category.{u, u + 1} (CompHausLike P)

instance CompHausLike.concreteCategory E0 #

(P : TopCat → Prop) → CategoryTheory.ConcreteCategory (CompHausLike P) fun x1 x2 ↦ C(↑x1.toTop, ↑x2.toTop)

instance CompHausLike.hasForget₂ E0 #

(P : TopCat → Prop) → CategoryTheory.HasForget₂ (CompHausLike P) TopCat

class CompHausLike.HasProp E1 #

(TopCat → Prop) → (X : Type u) → [TopologicalSpace X] → Prop

This wraps the predicate P : TopCat → Prop in a typeclass.

ctor CompHausLike.HasProp.mk E0 #

∀ {P : TopCat → Prop} {X : Type u} [inst : TopologicalSpace X], P ↧X → CompHausLike.HasProp P X

theorem CompHausLike.HasProp.hasProp E1 #

∀ {P : TopCat → Prop} {X : Type u} {inst : TopologicalSpace X} [self : CompHausLike.HasProp P X], P ↧X

instance CompHausLike.instHasPropCarrierToTop E0 #

∀ (P : TopCat → Prop) (X : CompHausLike P), CompHausLike.HasProp P ↑X.toTop

abbrev CompHausLike.of E1 #

(P : TopCat → Prop) →
  (X : Type u) →
    [inst : TopologicalSpace X] → [CompactSpace X] → [T2Space X] → [CompHausLike.HasProp P X] → CompHausLike P

A constructor for objects of the category CompHausLike P, taking a type, and bundling the compact Hausdorff topology found by typeclass inference.

def CompHausLike.delabOf E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prints CompHausLike.of R X as ↧X.

theorem CompHausLike.coe_of E0 #

∀ (P : TopCat → Prop) (X : Type u) [inst : TopologicalSpace X] [inst_1 : CompactSpace X] [inst_2 : T2Space X]
  [inst_3 : CompHausLike.HasProp P X], ↑(↧X).toTop = X

theorem CompHausLike.coe_id E0 #

∀ (P : TopCat → Prop) (X : CompHausLike P),
  ⇑(CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.id X)) = id

theorem CompHausLike.coe_comp E0 #

∀ (P : TopCat → Prop) {X Y Z : CompHausLike P} (f : X ⟶ Y) (g : Y ⟶ Z),
  ⇑(CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.comp f g)) =
    ⇑(CategoryTheory.ConcreteCategory.hom g) ∘ ⇑(CategoryTheory.ConcreteCategory.hom f)

abbrev CompHausLike.ofHom E1 #

(P : TopCat → Prop) →
  {X : Type u} →
    [inst : TopologicalSpace X] →
      [inst_1 : CompactSpace X] →
        [inst_2 : T2Space X] →
          [inst_3 : CompHausLike.HasProp P X] →
            {Y : Type u} →
              [inst_4 : TopologicalSpace Y] →
                [inst_5 : CompactSpace Y] →
                  [inst_6 : T2Space Y] → [inst_7 : CompHausLike.HasProp P Y] → C(X, Y) → (↧X ⟶ ↧Y)

Typecheck a continuous map as a morphism in the category CompHausLike P.

theorem CompHausLike.hom_ofHom E0 #

∀ (P : TopCat → Prop) {X : Type u} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] [inst_2 : T2Space X]
  [inst_3 : CompHausLike.HasProp P X] {Y : Type u} [inst_4 : TopologicalSpace Y] [inst_5 : CompactSpace Y]
  [inst_6 : T2Space Y] [inst_7 : CompHausLike.HasProp P Y] (f : C(X, Y)),
  CategoryTheory.ConcreteCategory.hom (CompHausLike.ofHom P f) = f

theorem CompHausLike.ofHom_id E0 #

∀ (P : TopCat → Prop) {X : Type u} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] [inst_2 : T2Space X]
  [inst_3 : CompHausLike.HasProp P X], CompHausLike.ofHom P (ContinuousMap.id X) = CategoryTheory.CategoryStruct.id ↧X

theorem CompHausLike.ofHom_comp E0 #

∀ (P : TopCat → Prop) {X : Type u} [inst : TopologicalSpace X] [inst_1 : CompactSpace X] [inst_2 : T2Space X]
  [inst_3 : CompHausLike.HasProp P X] {Y : Type u} [inst_4 : TopologicalSpace Y] [inst_5 : CompactSpace Y]
  [inst_6 : T2Space Y] [inst_7 : CompHausLike.HasProp P Y] {Z : Type u} [inst_8 : TopologicalSpace Z]
  [inst_9 : CompactSpace Z] [inst_10 : T2Space Z] [inst_11 : CompHausLike.HasProp P Z] (f : C(X, Y)) (g : C(Y, Z)),
  CompHausLike.ofHom P (g.comp f) = CategoryTheory.CategoryStruct.comp (CompHausLike.ofHom P f) (CompHausLike.ofHom P g)

def CompHausLike.toCompHausLike E1 #

{P P' : TopCat → Prop} →
  (∀ (X : CompHausLike P), P X.toTop → P' X.toTop) → CategoryTheory.Functor (CompHausLike P) (CompHausLike P')

If P implies P', then there is a functor from CompHausLike P to CompHausLike P'.

theorem CompHausLike.toCompHausLike_map E0 #

∀ {P P' : TopCat → Prop} (h : ∀ (X : CompHausLike P), P X.toTop → P' X.toTop) {X Y : CompHausLike P} (f : X ⟶ Y),
  (CompHausLike.toCompHausLike h).map f = CategoryTheory.ConcreteCategory.ofHom (TopCat.Hom.hom f.hom)

def CompHausLike.fullyFaithfulToCompHausLike E1 #

{P P' : TopCat → Prop} →
  (h : ∀ (X : CompHausLike P), P X.toTop → P' X.toTop) → (CompHausLike.toCompHausLike h).FullyFaithful

If P implies P', then the functor from CompHausLike P to CompHausLike P' is fully faithful.

instance CompHausLike.instFullToCompHausLike E0 #

∀ {P P' : TopCat → Prop} (h : ∀ (X : CompHausLike P), P X.toTop → P' X.toTop), (CompHausLike.toCompHausLike h).Full

instance CompHausLike.instFaithfulToCompHausLike E0 #

∀ {P P' : TopCat → Prop} (h : ∀ (X : CompHausLike P), P X.toTop → P' X.toTop), (CompHausLike.toCompHausLike h).Faithful

def CompHausLike.compHausLikeToTop E1 #

(P : TopCat → Prop) → CategoryTheory.Functor (CompHausLike P) TopCat

The fully faithful embedding of CompHausLike P in TopCat.

theorem CompHausLike.compHausLikeToTop_map E0 #

∀ (P : TopCat → Prop) {X Y : CategoryTheory.InducedCategory TopCat CompHausLike.toTop} (f : X ⟶ Y),
  (CompHausLike.compHausLikeToTop P).map f = f.hom

def CompHausLike.fullyFaithfulCompHausLikeToTop E1 #

(P : TopCat → Prop) → (CompHausLike.compHausLikeToTop P).FullyFaithful

The functor from CompHausLike P to TopCat is fully faithful.

instance CompHausLike.instFullTopCatCompHausLikeToTop E0 #

∀ (P : TopCat → Prop), (CompHausLike.compHausLikeToTop P).Full

instance CompHausLike.instFaithfulTopCatCompHausLikeToTop E0 #

∀ (P : TopCat → Prop), (CompHausLike.compHausLikeToTop P).Faithful

instance CompHausLike.instCompactSpaceCarrierObjTopCatCompHausLikeToTop E0 #

∀ (P : TopCat → Prop) (X : CompHausLike P), CompactSpace ↑((CompHausLike.compHausLikeToTop P).obj X)

instance CompHausLike.instT2SpaceCarrierObjTopCatCompHausLikeToTop E0 #

∀ (P : TopCat → Prop) (X : CompHausLike P), T2Space ↑((CompHausLike.compHausLikeToTop P).obj X)

theorem CompHausLike.epi_of_surjective E1 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : X ⟶ Y),
  Function.Surjective ⇑(CategoryTheory.ConcreteCategory.hom f) → CategoryTheory.Epi f

theorem CompHausLike.mono_iff_injective E1 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : X ⟶ Y),
  CategoryTheory.Mono f ↔ Function.Injective ⇑(CategoryTheory.ConcreteCategory.hom f)

theorem CompHausLike.isClosedMap E1 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : X ⟶ Y), IsClosedMap ⇑(CategoryTheory.ConcreteCategory.hom f)

Any continuous function on compact Hausdorff spaces is a closed map.

theorem CompHausLike.isIso_of_bijective E1 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : X ⟶ Y),
  Function.Bijective ⇑(CategoryTheory.ConcreteCategory.hom f) → CategoryTheory.IsIso f

Any continuous bijection of compact Hausdorff spaces is an isomorphism.

instance CompHausLike.forget_reflectsIsomorphisms E0 #

∀ {P : TopCat → Prop}, (CategoryTheory.forget (CompHausLike P)).ReflectsIsomorphisms

def CompHausLike.isoOfBijective E1 #

{P : TopCat → Prop} →
  {X Y : CompHausLike P} → (f : X ⟶ Y) → Function.Bijective ⇑(CategoryTheory.ConcreteCategory.hom f) → (X ≅ Y)

Any continuous bijection of compact Hausdorff spaces induces an isomorphism.

def CompHausLike.isoOfHomeo E1 #

{P : TopCat → Prop} → {X Y : CompHausLike P} → ↑X.toTop ≃ₜ ↑Y.toTop → (X ≅ Y)

Construct an isomorphism from a homeomorphism.

theorem CompHausLike.isoOfHomeo_inv_hom_hom_apply E0 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : ↑X.toTop ≃ₜ ↑Y.toTop)
  (a : ↑((CompHausLike.compHausLikeToTop P).obj Y)), (TopCat.Hom.hom (CompHausLike.isoOfHomeo f).inv.hom) a = f.symm a

theorem CompHausLike.isoOfHomeo_hom_hom_hom_apply E0 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : ↑X.toTop ≃ₜ ↑Y.toTop)
  (a : ↑((CompHausLike.compHausLikeToTop P).obj X)), (TopCat.Hom.hom (CompHausLike.isoOfHomeo f).hom.hom) a = f a

def CompHausLike.homeoOfIso E1 #

{P : TopCat → Prop} → {X Y : CompHausLike P} → (X ≅ Y) → ↑X.toTop ≃ₜ ↑Y.toTop

Construct a homeomorphism from an isomorphism.

theorem CompHausLike.homeoOfIso_symm_apply E0 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : X ≅ Y) (a : ↑Y.toTop),
  (CompHausLike.homeoOfIso f).symm a = (CategoryTheory.ConcreteCategory.hom f.inv.hom) a

theorem CompHausLike.homeoOfIso_apply E0 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : X ≅ Y) (a : ↑X.toTop),
  (CompHausLike.homeoOfIso f) a = (CategoryTheory.ConcreteCategory.hom f.hom.hom) a

def CompHausLike.isoEquivHomeo E1 #

{P : TopCat → Prop} → {X Y : CompHausLike P} → (X ≅ Y) ≃ (↑X.toTop ≃ₜ ↑Y.toTop)

The equivalence between isomorphisms in CompHaus and homeomorphisms of topological spaces.

theorem CompHausLike.isoEquivHomeo_symm_apply E0 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : ↑X.toTop ≃ₜ ↑Y.toTop),
  CompHausLike.isoEquivHomeo.symm f = CompHausLike.isoOfHomeo f

theorem CompHausLike.isoEquivHomeo_apply E0 #

∀ {P : TopCat → Prop} {X Y : CompHausLike P} (f : X ≅ Y), CompHausLike.isoEquivHomeo f = CompHausLike.homeoOfIso f

def CompHausLike.const E1 #

{P : TopCat → Prop} → (T : CompHausLike P) → {S : CompHausLike P} → ↑S.toTop → (T ⟶ S)

A constant map as a morphism in CompHausLike

theorem CompHausLike.const_comp E1 #

∀ {P : TopCat → Prop} {S T U : CompHausLike P} (s : ↑S.toTop) (g : S ⟶ U),
  CategoryTheory.CategoryStruct.comp (T.const s) g = T.const ((CategoryTheory.ConcreteCategory.hom g) s)