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 / V24. Category theory

Mathlib.CategoryTheory.Category.Quiv

54 declarations. Mathlib docs · Source

def CategoryTheory.Quiv E1 #

Type (max (u + 1) u (v + 1))

Category of quivers.

instance CategoryTheory.Quiv.instCoeSortType E0 #

CoeSort CategoryTheory.Quiv (Type u)

instance CategoryTheory.Quiv.str' E0 #

(C : CategoryTheory.Quiv) → Quiver ↑C

def CategoryTheory.Quiv.of E1 #

(C : Type u) → [Quiver C] → CategoryTheory.Quiv

Construct a bundled Quiv from the underlying type and the typeclass.

def CategoryTheory.Quiv.delabOf E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prints CategoryTheory.Quiv.of X as ↧X.

instance CategoryTheory.Quiv.instInhabited E0 #

Inhabited CategoryTheory.Quiv

instance CategoryTheory.Quiv.category E0 #

CategoryTheory.LargeCategory CategoryTheory.Quiv

Category structure on Quiv

def CategoryTheory.Quiv.forget E1 #

CategoryTheory.Functor CategoryTheory.Cat CategoryTheory.Quiv

The forgetful functor from categories to quivers.

theorem CategoryTheory.Quiv.forget_map E0 #

∀ {X Y : CategoryTheory.Cat} (F : X ⟶ Y), CategoryTheory.Quiv.forget.map F = F.toFunctor.toPrefunctor

theorem CategoryTheory.Quiv.forget_obj E0 #

∀ (C : CategoryTheory.Cat), CategoryTheory.Quiv.forget.obj C = ↧↑C

theorem CategoryTheory.Quiv.id_eq_id E2 #

∀ (X : CategoryTheory.Quiv), CategoryTheory.CategoryStruct.id X = 𝟭q ↑X

The identity in the category of quivers equals the identity prefunctor.

theorem CategoryTheory.Quiv.comp_eq_comp E1 #

∀ {X Y Z : CategoryTheory.Quiv} (F : X ⟶ Y) (G : Y ⟶ Z), CategoryTheory.CategoryStruct.comp F G = F ⋙q G

Composition in the category of quivers equals prefunctor composition.

def CategoryTheory.Prefunctor.toQuivHom E1 #

{C D : Type u} → [inst : Quiver C] → [inst_1 : Quiver D] → C ⥤q D → (↧C ⟶ ↧D)

Prefunctors between quivers define arrows in Quiv.

def CategoryTheory.Prefunctor.ofQuivHom E1 #

{C D : CategoryTheory.Quiv} → (C ⟶ D) → ↑C ⥤q ↑D

Arrows in Quiv define prefunctors.

theorem CategoryTheory.Prefunctor.to_ofQuivHom E0 #

∀ {C D : CategoryTheory.Quiv} (F : C ⟶ D),
  CategoryTheory.Prefunctor.toQuivHom (CategoryTheory.Prefunctor.ofQuivHom F) = F

theorem CategoryTheory.Prefunctor.of_toQuivHom E0 #

∀ {C D : Type} [inst : Quiver C] [inst_1 : Quiver D] (F : C ⥤q D),
  CategoryTheory.Prefunctor.ofQuivHom (CategoryTheory.Prefunctor.toQuivHom F) = F

def CategoryTheory.Cat.freeMap E1 #

{V : Type u_1} →
  {W : Type u_2} →
    [inst : Quiver V] →
      [inst_1 : Quiver W] → V ⥤q W → CategoryTheory.Functor (CategoryTheory.Paths V) (CategoryTheory.Paths W)

A prefunctor V ⥤q W induces a functor between the path categories defined by F.mapPath.

theorem CategoryTheory.Cat.freeMap_map E0 #

∀ {V : Type u_1} {W : Type u_2} [inst : Quiver V] [inst_1 : Quiver W] (F : V ⥤q W) {X Y : CategoryTheory.Paths V}
  (a : Quiver.Path X Y), (CategoryTheory.Cat.freeMap F).map a = F.mapPath a

theorem CategoryTheory.Cat.freeMap_obj E0 #

∀ {V : Type u_1} {W : Type u_2} [inst : Quiver V] [inst_1 : Quiver W] (F : V ⥤q W) (a : V),
  (CategoryTheory.Cat.freeMap F).obj a = F.obj a

def CategoryTheory.Cat.freeMapIdIso E1 #

(V : Type u_1) →
  [inst : Quiver V] → CategoryTheory.Cat.freeMap (𝟭q V) ≅ CategoryTheory.Functor.id (CategoryTheory.Paths V)

The functor free : Quiv ⥤ Cat preserves identities up to natural isomorphism and in fact up to equality.

theorem CategoryTheory.Cat.freeMapIdIso_hom_app E0 #

∀ (V : Type u_1) [inst : Quiver V] (X : CategoryTheory.Paths V),
  (CategoryTheory.Cat.freeMapIdIso V).hom.app X = CategoryTheory.CategoryStruct.id X

theorem CategoryTheory.Cat.freeMapIdIso_inv_app E0 #

∀ (V : Type u_1) [inst : Quiver V] (X : CategoryTheory.Paths V),
  (CategoryTheory.Cat.freeMapIdIso V).inv.app X = CategoryTheory.CategoryStruct.id X

theorem CategoryTheory.Cat.freeMap_id E1 #

∀ (V : Type u_1) [inst : Quiver V],
  CategoryTheory.Cat.freeMap (𝟭q V) = CategoryTheory.Functor.id (CategoryTheory.Paths V)

def CategoryTheory.Cat.freeMapCompIso E1 #

{V₁ : Type u₁} →
  {V₂ : Type u₂} →
    {V₃ : Type u₃} →
      [inst : Quiver V₁] →
        [inst_1 : Quiver V₂] →
          [inst_2 : Quiver V₃] →
            (F : V₁ ⥤q V₂) →
              (G : V₂ ⥤q V₃) →
                CategoryTheory.Cat.freeMap (F ⋙q G) ≅ (CategoryTheory.Cat.freeMap F).comp (CategoryTheory.Cat.freeMap G)

The functor free : Quiv ⥤ Cat preserves composition up to natural isomorphism and in fact up to equality.

theorem CategoryTheory.Cat.freeMapCompIso_hom_app E0 #

∀ {V₁ : Type u₁} {V₂ : Type u₂} {V₃ : Type u₃} [inst : Quiver V₁] [inst_1 : Quiver V₂] [inst_2 : Quiver V₃]
  (F : V₁ ⥤q V₂) (G : V₂ ⥤q V₃) (X : CategoryTheory.Paths V₁),
  (CategoryTheory.Cat.freeMapCompIso F G).hom.app X = CategoryTheory.CategoryStruct.id (G.obj (F.obj X))

theorem CategoryTheory.Cat.freeMapCompIso_inv_app E0 #

∀ {V₁ : Type u₁} {V₂ : Type u₂} {V₃ : Type u₃} [inst : Quiver V₁] [inst_1 : Quiver V₂] [inst_2 : Quiver V₃]
  (F : V₁ ⥤q V₂) (G : V₂ ⥤q V₃) (X : CategoryTheory.Paths V₁),
  (CategoryTheory.Cat.freeMapCompIso F G).inv.app X = CategoryTheory.CategoryStruct.id (G.obj (F.obj X))

theorem CategoryTheory.Cat.freeMap_comp E1 #

∀ {V₁ : Type u₁} {V₂ : Type u₂} {V₃ : Type u₃} [inst : Quiver V₁] [inst_1 : Quiver V₂] [inst_2 : Quiver V₃]
  (F : V₁ ⥤q V₂) (G : V₂ ⥤q V₃),
  CategoryTheory.Cat.freeMap (F ⋙q G) = (CategoryTheory.Cat.freeMap F).comp (CategoryTheory.Cat.freeMap G)

def CategoryTheory.Cat.free E1 #

CategoryTheory.Functor CategoryTheory.Quiv CategoryTheory.Cat

The functor sending each quiver to its path category.

theorem CategoryTheory.Cat.free_map E0 #

∀ {X Y : CategoryTheory.Quiv} (F : X ⟶ Y),
  CategoryTheory.Cat.free.map F = (CategoryTheory.Cat.freeMap (CategoryTheory.Prefunctor.ofQuivHom F)).toCatHom

theorem CategoryTheory.Cat.free_obj E0 #

∀ (V : CategoryTheory.Quiv), CategoryTheory.Cat.free.obj V = ↧(CategoryTheory.Paths ↑V)

def CategoryTheory.Quiv.equivOfIso E1 #

{V W : CategoryTheory.Quiv} → (V ≅ W) → ↑V ≃ ↑W

An isomorphism of quivers defines an equivalence on carrier types.

theorem CategoryTheory.Quiv.equivOfIso_symm_apply E0 #

∀ {V W : CategoryTheory.Quiv} (e : V ≅ W) (a : ↑W), (CategoryTheory.Quiv.equivOfIso e).symm a = e.inv.obj a

theorem CategoryTheory.Quiv.equivOfIso_apply E0 #

∀ {V W : CategoryTheory.Quiv} (e : V ≅ W) (a : ↑V), (CategoryTheory.Quiv.equivOfIso e) a = e.hom.obj a

theorem CategoryTheory.Quiv.inv_obj_hom_obj_of_iso E0 #

∀ {V W : CategoryTheory.Quiv} (e : V ≅ W) (X : ↑V), e.inv.obj (e.hom.obj X) = X

theorem CategoryTheory.Quiv.hom_obj_inv_obj_of_iso E0 #

∀ {V W : CategoryTheory.Quiv} (e : V ≅ W) (Y : ↑W), e.hom.obj (e.inv.obj Y) = Y

theorem CategoryTheory.Quiv.hom_map_inv_map_of_iso E1 #

∀ {V W : CategoryTheory.Quiv} (e : V ≅ W) {X Y : ↑W} (f : X ⟶ Y), e.hom.map (e.inv.map f) = Quiver.homOfEq f ⋯ ⋯

theorem CategoryTheory.Quiv.inv_map_hom_map_of_iso E1 #

∀ {V W : CategoryTheory.Quiv} (e : V ≅ W) {X Y : ↑V} (f : X ⟶ Y), e.inv.map (e.hom.map f) = Quiver.homOfEq f ⋯ ⋯

def CategoryTheory.Quiv.homEquivOfIso E1 #

{V W : CategoryTheory.Quiv} → (e : V ≅ W) → {X Y : ↑V} → (X ⟶ Y) ≃ (e.hom.obj X ⟶ e.hom.obj Y)

An isomorphism of quivers defines an equivalence on hom types.

theorem CategoryTheory.Quiv.homEquivOfIso_symm_apply E0 #

∀ {V W : CategoryTheory.Quiv} (e : V ≅ W) {X Y : ↑V} (g : e.hom.obj X ⟶ e.hom.obj Y),
  (CategoryTheory.Quiv.homEquivOfIso e).symm g = Quiver.homOfEq (e.inv.map g) ⋯ ⋯

theorem CategoryTheory.Quiv.homEquivOfIso_apply E0 #

∀ {V W : CategoryTheory.Quiv} (e : V ≅ W) {X Y : ↑V} (f : X ⟶ Y), (CategoryTheory.Quiv.homEquivOfIso e) f = e.hom.map f

theorem CategoryTheory.Quiv.homOfEq_map_homOfEq E0 #

∀ {V W : Type u} [inst : Quiver V] [inst_1 : Quiver W] (e : V ≃ W) (he : (X Y : V) → (X ⟶ Y) ≃ (e X ⟶ e Y)) {X Y : V}
  (f : X ⟶ Y) {X' Y' : V} (hX : X = X') (hY : Y = Y') {X'' Y'' : W} (hX' : e X' = X'') (hY' : e Y' = Y''),
  Quiver.homOfEq ((he X' Y') (Quiver.homOfEq f hX hY)) hX' hY' = Quiver.homOfEq ((he X Y) f) ⋯ ⋯

def CategoryTheory.Quiv.isoOfEquiv E1 #

{V W : Type u} → [inst : Quiver V] → [inst_1 : Quiver W] → (e : V ≃ W) → ((X Y : V) → (X ⟶ Y) ≃ (e X ⟶ e Y)) → (↧V ≅ ↧W)

Compatible equivalences of types and hom-types induce an isomorphism of quivers.

def CategoryTheory.Quiv.lift E1 #

{V : Type u} →
  [inst : Quiver V] →
    {C : Type u₁} →
      [inst_1 : CategoryTheory.Category.{v₁, u₁} C] → V ⥤q C → CategoryTheory.Functor (CategoryTheory.Paths V) C

Any prefunctor into a category lifts to a functor from the path category.

theorem CategoryTheory.Quiv.lift_obj E0 #

∀ {V : Type u} [inst : Quiver V] {C : Type u₁} [inst_1 : CategoryTheory.Category.{v₁, u₁} C] (F : V ⥤q C)
  (X : CategoryTheory.Paths V), (CategoryTheory.Quiv.lift F).obj X = F.obj X

theorem CategoryTheory.Quiv.lift_map E0 #

∀ {V : Type u} [inst : Quiver V] {C : Type u₁} [inst_1 : CategoryTheory.Category.{v₁, u₁} C] (F : V ⥤q C)
  {X Y : CategoryTheory.Paths V} (f : X ⟶ Y),
  (CategoryTheory.Quiv.lift F).map f = CategoryTheory.composePath (F.mapPath f)

def CategoryTheory.Quiv.pathCompositionNaturality E1 #

{C : Type u} →
  {D : Type u₁} →
    [inst : CategoryTheory.Category.{v, u} C] →
      [inst_1 : CategoryTheory.Category.{v₁, u₁} D] →
        (F : CategoryTheory.Functor C D) →
          (CategoryTheory.Cat.freeMap F.toPrefunctor).comp (CategoryTheory.pathComposition D) ≅
            (CategoryTheory.pathComposition C).comp F

Naturality of pathComposition.

theorem CategoryTheory.Quiv.pathComposition_naturality E1 #

∀ {C : Type u} {D : Type u₁} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Category.{v₁, u₁} D]
  (F : CategoryTheory.Functor C D),
  (CategoryTheory.Cat.freeMap F.toPrefunctor).comp (CategoryTheory.pathComposition D) =
    (CategoryTheory.pathComposition C).comp F

Naturality of pathComposition, which defines a natural transformation Quiv.forget ⋙ Cat.free ⟶ 𝟭 _.

theorem CategoryTheory.Quiv.pathsOf_freeMap_toPrefunctor E1 #

∀ {V : Type u} {W : Type u₁} [inst : Quiver V] [inst_1 : Quiver W] (F : V ⥤q W),
  CategoryTheory.Paths.of V ⋙q (CategoryTheory.Cat.freeMap F).toPrefunctor = F ⋙q CategoryTheory.Paths.of W

Naturality of Paths.of, which defines a natural transformation 𝟭 _⟶ Cat.free ⋙ Quiv.forget.

def CategoryTheory.Quiv.freeMapPathsOfCompPathCompositionIso E1 #

(V : Type u) →
  [inst : Quiver V] →
    (CategoryTheory.Cat.freeMap (CategoryTheory.Paths.of V)).comp
        (CategoryTheory.pathComposition (CategoryTheory.Paths V)) ≅
      CategoryTheory.Functor.id (CategoryTheory.Paths V)

The left triangle identity of Cat.free ⊣ Quiv.forget as a natural isomorphism

theorem CategoryTheory.Quiv.freeMap_pathsOf_pathComposition E1 #

∀ (V : Type u) [inst : Quiver V],
  (CategoryTheory.Cat.freeMap (CategoryTheory.Paths.of V)).comp
      (CategoryTheory.pathComposition (CategoryTheory.Paths V)) =
    CategoryTheory.Functor.id (CategoryTheory.Paths V)

theorem CategoryTheory.Quiv.pathsOf_pathComposition_toPrefunctor E1 #

∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C],
  CategoryTheory.Paths.of C ⋙q (CategoryTheory.pathComposition C).toPrefunctor = 𝟭q C

An unbundled version of the right triangle equality.

def CategoryTheory.Quiv.adj E1 #

CategoryTheory.Cat.free ⊣ CategoryTheory.Quiv.forget

The adjunction between forming the free category on a quiver, and forgetting a category to a quiver.

def CategoryTheory.Quiv.pathsEquiv E1 #

{V : Type u} →
  {C : Type u₁} →
    [inst : Quiver V] →
      [inst_1 : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Functor (CategoryTheory.Paths V) C ≃ V ⥤q C

The universal property of the path category of a quiver.

theorem CategoryTheory.Quiv.adj_homEquiv E0 #

∀ {V C : Type u} [inst : Quiver V] [inst_1 : CategoryTheory.Category.{max u v, u} C],
  CategoryTheory.Quiv.adj.homEquiv ↧V ↧C =
    (CategoryTheory.Cat.Hom.equivFunctor ↧(CategoryTheory.Paths V) ↧C).trans CategoryTheory.Quiv.pathsEquiv