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.PathCategory.Basic

39 declarations. Mathlib docs · Source

theorem CategoryTheory.composePath.match_1.congr_eq_2 E1 #

∀ {C : Type u_2} [inst : CategoryTheory.Category.{u_1, u_2} C] {X : C} (motive : (x : C) → Quiver.Path X x → Sort u_3)
  (x : C) (x_1 : Quiver.Path X x) (h_1 : Unit → motive X Quiver.Path.nil)
  (h_2 : (x b : C) → (p : Quiver.Path X b) → (e : b ⟶ x) → motive x (p.cons e)) (x_2 b : C) (p : Quiver.Path X b)
  (e : b ⟶ x_2),
  x = x_2 →
    x_1 ≍ p.cons e →
      (match x, x_1 with
        | .(X), Quiver.Path.nil => h_1 ()
        | x, p.cons e => h_2 x b p e) ≍
        h_2 x_2 b p e

theorem CategoryTheory.composePath.match_1.congr_eq_1 E1 #

∀ {C : Type u_2} [inst : CategoryTheory.Category.{u_1, u_2} C] {X : C} (motive : (x : C) → Quiver.Path X x → Sort u_3)
  (x : C) (x_1 : Quiver.Path X x) (h_1 : Unit → motive X Quiver.Path.nil)
  (h_2 : (x b : C) → (p : Quiver.Path X b) → (e : b ⟶ x) → motive x (p.cons e)),
  x = X →
    x_1 ≍ Quiver.Path.nil →
      (match x, x_1 with
        | .(X), Quiver.Path.nil => h_1 ()
        | x, p.cons e => h_2 x b p e) ≍
        h_1 ()

def CategoryTheory.Paths E1 #

Type u₁ → Type u₁

A type synonym for the category of paths in a quiver.

instance CategoryTheory.instInhabitedPaths E0 #

(V : Type u₁) → [Inhabited V] → Inhabited (CategoryTheory.Paths V)

instance CategoryTheory.instUniquePaths E0 #

(V : Type u₁) → [Unique V] → Unique (CategoryTheory.Paths V)

instance CategoryTheory.Paths.categoryPaths E0 #

(V : Type u₁) → [Quiver V] → CategoryTheory.Category.{max u₁ v₁, u₁} (CategoryTheory.Paths V)

def CategoryTheory.Paths.of E1 #

(V : Type u₁) → [inst : Quiver V] → V ⥤q CategoryTheory.Paths V

The inclusion of a quiver V into its path category, as a prefunctor.

theorem CategoryTheory.Paths.of_map E0 #

∀ (V : Type u₁) [inst : Quiver V] {X Y : V} (f : X ⟶ Y), (CategoryTheory.Paths.of V).map f = f.toPath

theorem CategoryTheory.Paths.of_obj E0 #

∀ (V : Type u₁) [inst : Quiver V] (X : V), (CategoryTheory.Paths.of V).obj X = X

theorem CategoryTheory.Paths.induction_fixed_source E1 #

∀ {V : Type u₁} [inst : Quiver V] {a : CategoryTheory.Paths V} (P : {b : CategoryTheory.Paths V} → (a ⟶ b) → Prop),
  P (CategoryTheory.CategoryStruct.id a) →
    (∀ {u v : V} (p : a ⟶ (CategoryTheory.Paths.of V).obj u) (q : u ⟶ v),
        P p → P (CategoryTheory.CategoryStruct.comp p ((CategoryTheory.Paths.of V).map q))) →
      ∀ {b : CategoryTheory.Paths V} (f : a ⟶ b), P f

To prove a property on morphisms of a path category with given source a, it suffices to prove it for the identity and prove that the property is preserved under composition on the right with length 1 paths.

theorem CategoryTheory.Paths.induction_fixed_target E1 #

∀ {V : Type u₁} [inst : Quiver V] {b : CategoryTheory.Paths V} (P : {a : CategoryTheory.Paths V} → (a ⟶ b) → Prop),
  P (CategoryTheory.CategoryStruct.id b) →
    (∀ {u v : V} (p : (CategoryTheory.Paths.of V).obj v ⟶ b) (q : u ⟶ v),
        P p → P (CategoryTheory.CategoryStruct.comp ((CategoryTheory.Paths.of V).map q) p)) →
      ∀ {a : CategoryTheory.Paths V} (f : a ⟶ b), P f

To prove a property on morphisms of a path category with given target b, it suffices to prove it for the identity and prove that the property is preserved under composition on the left with length 1 paths.

theorem CategoryTheory.Paths.induction E1 #

∀ {V : Type u₁} [inst : Quiver V] (P : {a b : CategoryTheory.Paths V} → (a ⟶ b) → Prop),
  (∀ {v : V}, P (CategoryTheory.CategoryStruct.id ((CategoryTheory.Paths.of V).obj v))) →
    (∀ {u v w : V} (p : (CategoryTheory.Paths.of V).obj u ⟶ (CategoryTheory.Paths.of V).obj v) (q : v ⟶ w),
        P p → P (CategoryTheory.CategoryStruct.comp p ((CategoryTheory.Paths.of V).map q))) →
      ∀ {a b : CategoryTheory.Paths V} (f : a ⟶ b), P f

To prove a property on morphisms of a path category, it suffices to prove it for the identity and prove that the property is preserved under composition on the right with length 1 paths.

theorem CategoryTheory.Paths.induction' E1 #

∀ {V : Type u₁} [inst : Quiver V] (P : {a b : CategoryTheory.Paths V} → (a ⟶ b) → Prop),
  (∀ {v : V}, P (CategoryTheory.CategoryStruct.id ((CategoryTheory.Paths.of V).obj v))) →
    (∀ {u v w : V} (p : u ⟶ v) (q : (CategoryTheory.Paths.of V).obj v ⟶ (CategoryTheory.Paths.of V).obj w),
        P q → P (CategoryTheory.CategoryStruct.comp ((CategoryTheory.Paths.of V).map p) q)) →
      ∀ {a b : CategoryTheory.Paths V} (f : a ⟶ b), P f

To prove a property on morphisms of a path category, it suffices to prove it for the identity and prove that the property is preserved under composition on the left with length 1 paths.

def CategoryTheory.Paths.lift E1 #

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

Any prefunctor from V lifts to a functor from paths V

theorem CategoryTheory.Paths.lift_nil E0 #

∀ {V : Type u₁} [inst : Quiver V] {C : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} C] (φ : V ⥤q C) (X : V),
  (CategoryTheory.Paths.lift φ).map Quiver.Path.nil = CategoryTheory.CategoryStruct.id (φ.obj X)

theorem CategoryTheory.Paths.lift_cons E0 #

∀ {V : Type u₁} [inst : Quiver V] {C : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} C] (φ : V ⥤q C)
  {X Y Z : V} (p : Quiver.Path X Y) (f : Y ⟶ Z),
  (CategoryTheory.Paths.lift φ).map (p.cons f) =
    CategoryTheory.CategoryStruct.comp ((CategoryTheory.Paths.lift φ).map p) (φ.map f)

theorem CategoryTheory.Paths.lift_toPath E0 #

∀ {V : Type u₁} [inst : Quiver V] {C : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} C] (φ : V ⥤q C) {X Y : V}
  (f : X ⟶ Y), (CategoryTheory.Paths.lift φ).map f.toPath = φ.map f

theorem CategoryTheory.Paths.lift_spec E1 #

∀ {V : Type u₁} [inst : Quiver V] {C : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} C] (φ : V ⥤q C),
  CategoryTheory.Paths.of V ⋙q (CategoryTheory.Paths.lift φ).toPrefunctor = φ

theorem CategoryTheory.Paths.lift_unique E1 #

∀ {V : Type u₁} [inst : Quiver V] {C : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} C] (φ : V ⥤q C)
  (Φ : CategoryTheory.Functor (CategoryTheory.Paths V) C),
  CategoryTheory.Paths.of V ⋙q Φ.toPrefunctor = φ → Φ = CategoryTheory.Paths.lift φ

theorem CategoryTheory.Paths.ext_functor E1 #

∀ {V : Type u₁} [inst : Quiver V] {C : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} C]
  {F G : CategoryTheory.Functor (CategoryTheory.Paths V) C} (h_obj : F.obj = G.obj),
  (∀ (a b : V) (e : a ⟶ b),
      F.map e.toPath =
        CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom ⋯)
          (CategoryTheory.CategoryStruct.comp (G.map e.toPath) (CategoryTheory.eqToHom ⋯))) →
    F = G

Two functors out of a path category are equal when they agree on singleton paths.

theorem CategoryTheory.Prefunctor.mapPath_comp' E0 #

∀ (V : Type u₁) [inst : Quiver V] (W : Type u₂) [inst_1 : Quiver W] (F : V ⥤q W) {X Y Z : CategoryTheory.Paths V}
  (f : X ⟶ Y) (g : Y ⟶ Z), F.mapPath (CategoryTheory.CategoryStruct.comp f g) = (F.mapPath f).comp (F.mapPath g)

def CategoryTheory.composePath E1 #

{C : Type u₁} → [inst : CategoryTheory.Category.{v₁, u₁} C] → {X Y : C} → Quiver.Path X Y → (X ⟶ Y)

A path in a category can be composed to a single morphism.

theorem CategoryTheory.composePath_nil E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : C},
  CategoryTheory.composePath Quiver.Path.nil = CategoryTheory.CategoryStruct.id X

theorem CategoryTheory.composePath_cons E1 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} (p : Quiver.Path X Y) (e : Y ⟶ Z),
  CategoryTheory.composePath (p.cons e) = CategoryTheory.CategoryStruct.comp (CategoryTheory.composePath p) e

theorem CategoryTheory.composePath_toPath E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y),
  CategoryTheory.composePath f.toPath = f

theorem CategoryTheory.composePath_comp E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : C} (f : Quiver.Path X Y) (g : Quiver.Path Y Z),
  CategoryTheory.composePath (f.comp g) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.composePath f) (CategoryTheory.composePath g)

theorem CategoryTheory.composePath_id E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X : CategoryTheory.Paths C},
  CategoryTheory.composePath (CategoryTheory.CategoryStruct.id X) =
    CategoryTheory.CategoryStruct.id
      (have this := X;
      this)

theorem CategoryTheory.composePath_comp' E0 #

∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y Z : CategoryTheory.Paths C} (f : X ⟶ Y) (g : Y ⟶ Z),
  CategoryTheory.composePath (CategoryTheory.CategoryStruct.comp f g) =
    CategoryTheory.CategoryStruct.comp (CategoryTheory.composePath f) (CategoryTheory.composePath g)

def CategoryTheory.pathComposition E1 #

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

Composition of paths as functor from the path category of a category to the category.

theorem CategoryTheory.pathComposition_obj E0 #

∀ (C : Type u₁) [inst : CategoryTheory.Category.{v₁, u₁} C] (X : CategoryTheory.Paths C),
  (CategoryTheory.pathComposition C).obj X = X

theorem CategoryTheory.pathComposition_map E0 #

∀ (C : Type u₁) [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : CategoryTheory.Paths C} (f : X ⟶ Y),
  (CategoryTheory.pathComposition C).map f = CategoryTheory.composePath f

def CategoryTheory.pathsHomRel E1 #

(C : Type u₁) → [inst : CategoryTheory.Category.{v₁, u₁} C] → HomRel (CategoryTheory.Paths C)

The canonical relation on the path category of a category: two paths are related if they compose to the same morphism.

def CategoryTheory.toQuotientPaths E1 #

(C : Type u₁) →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    CategoryTheory.Functor C (CategoryTheory.Quotient (CategoryTheory.pathsHomRel C))

The functor from a category to the canonical quotient of its path category.

theorem CategoryTheory.toQuotientPaths_obj_as E0 #

∀ (C : Type u₁) [inst : CategoryTheory.Category.{v₁, u₁} C] (X : C), ((CategoryTheory.toQuotientPaths C).obj X).as = X

theorem CategoryTheory.toQuotientPaths_map E0 #

∀ (C : Type u₁) [inst : CategoryTheory.Category.{v₁, u₁} C] {X Y : C} (f : X ⟶ Y),
  (CategoryTheory.toQuotientPaths C).map f =
    Quot.mk (CategoryTheory.HomRel.CompClosure (CategoryTheory.pathsHomRel C)) f.toPath

def CategoryTheory.quotientPathsTo E1 #

(C : Type u₁) →
  [inst : CategoryTheory.Category.{v₁, u₁} C] →
    CategoryTheory.Functor (CategoryTheory.Quotient (CategoryTheory.pathsHomRel C)) C

The functor from the canonical quotient of a path category of a category to the original category.

theorem CategoryTheory.quotientPathsTo_obj E0 #

∀ (C : Type u₁) [inst : CategoryTheory.Category.{v₁, u₁} C]
  (a : CategoryTheory.Quotient (CategoryTheory.pathsHomRel C)), (CategoryTheory.quotientPathsTo C).obj a = a.as

theorem CategoryTheory.quotientPathsTo_map E0 #

∀ (C : Type u₁) [inst : CategoryTheory.Category.{v₁, u₁} C]
  {X Y : CategoryTheory.Quotient (CategoryTheory.pathsHomRel C)} (hf : X ⟶ Y),
  (CategoryTheory.quotientPathsTo C).map hf = Quot.liftOn hf (fun f ↦ CategoryTheory.composePath f) ⋯

def CategoryTheory.quotientPathsEquiv E1 #

(C : Type u₁) → [inst : CategoryTheory.Category.{v₁, u₁} C] → CategoryTheory.Quotient (CategoryTheory.pathsHomRel C) ≌ C

The canonical quotient of the path category of a category is equivalent to the original category.