PhysLean Documentation

Mathlib.CategoryTheory.FintypeCat

The category of finite types. #

We define the category of finite types, denoted FintypeCat as (bundled) types with a Fintype instance.

We also define FintypeCat.Skeleton, the standard skeleton of FintypeCat whose objects are Fin n for n : ℕ. We prove that the obvious inclusion functor FintypeCat.SkeletonFintypeCat is an equivalence of categories in FintypeCat.Skeleton.equivalence. We prove that FintypeCat.Skeleton is a skeleton of FintypeCat in FintypeCat.isSkeleton.

structure FintypeCat :
Type (u_1 + 1)

The category of finite types.

Instances For
    @[reducible, inline]
    abbrev FintypeCat.of (X : Type u_1) [Fintype X] :

    Construct a bundled FintypeCat from the underlying type and typeclass.

    Equations
    Instances For

      The fully faithful embedding of FintypeCat into the category of types.

      Equations
      Instances For
        @[simp]
        theorem FintypeCat.incl_map {X✝ Y✝ : CategoryTheory.InducedCategory (Type u_1) carrier} (f : X✝ Y✝) (a✝ : X✝.carrier) :
        incl.map f a✝ = f a✝
        @[simp]
        theorem FintypeCat.incl_obj (self : FintypeCat) :
        incl.obj self = self.carrier
        Equations
        Equations
        • One or more equations did not get rendered due to their size.
        @[simp]
        theorem FintypeCat.comp_apply {X Y Z : FintypeCat} (f : X Y) (g : Y Z) (x : X.carrier) :
        theorem FintypeCat.hom_inv_id_apply {X Y : FintypeCat} (f : X Y) (x : X.carrier) :
        f.inv (f.hom x) = x
        theorem FintypeCat.inv_hom_id_apply {X Y : FintypeCat} (f : X Y) (y : Y.carrier) :
        f.hom (f.inv y) = y
        theorem FintypeCat.hom_ext {X Y : FintypeCat} (f g : X Y) (h : ∀ (x : X.carrier), f x = g x) :
        f = g

        Equivalences between finite types are the same as isomorphisms in FintypeCat.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[simp]
          @[simp]
          theorem FintypeCat.equivEquivIso_symm_apply_apply {A B : FintypeCat} (i : A B) (a✝ : A.carrier) :
          (equivEquivIso.symm i) a✝ = i.hom a✝
          @[simp]
          theorem FintypeCat.equivEquivIso_symm_apply_symm_apply {A B : FintypeCat} (i : A B) (a✝ : B.carrier) :
          (equivEquivIso.symm i).symm a✝ = i.inv a✝

          The "standard" skeleton for FintypeCat. This is the full subcategory of FintypeCat spanned by objects of the form ULift (Fin n) for n : ℕ. We parameterize the objects of Fintype.Skeleton directly as ULift, as the type ULift (Fin m) ≃ ULift (Fin n) is nonempty if and only if n = m. Specifying universes, Skeleton : Type u is a small skeletal category equivalent to Fintype.{u}.

          Equations
          Instances For

            Given any natural number n, this creates the associated object of Fintype.Skeleton.

            Equations
            Instances For

              Given any object of Fintype.Skeleton, this returns the associated natural number.

              Equations
              Instances For
                theorem FintypeCat.Skeleton.ext (X Y : Skeleton) :
                X.len = Y.lenX = Y
                Equations
                • One or more equations did not get rendered due to their size.

                The canonical fully faithful embedding of Fintype.Skeleton into FintypeCat.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  If u and v are two arbitrary universes, we may construct a functor uSwitch.{u, v} : FintypeCat.{u} ⥤ FintypeCat.{v} by sending X : FintypeCat.{u} to ULift.{v} (Fin (Fintype.card X)).

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    Switching the universe of an object X : FintypeCat.{u} does not change X up to equivalence of types. This is natural in the sense that it commutes with uSwitch.map f for any f : X ⟶ Y in FintypeCat.{u}.

                    Equations
                    Instances For

                      uSwitch.{u, v} is an equivalence of categories with quasi-inverse uSwitch.{v, u}.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem FunctorToFintypeCat.naturality {C : Type u} [CategoryTheory.Category.{v, u} C] (F G : CategoryTheory.Functor C FintypeCat) {X Y : C} (σ : F G) (f : X Y) (x : (F.obj X).carrier) :
                        σ.app Y (F.map f x) = G.map f (σ.app X x)