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.Groupoid.FreeGroupoid

21 declarations. Mathlib docs · Source

Free groupoid on a quiver

This file defines the free groupoid on a quiver, the lifting of a prefunctor to its unique extension as a functor from the free groupoid, and proves uniqueness of this extension.

Main results

Given the type V and a quiver instance on V:

  • Quiver.FreeGroupoid V: a type synonym for V.
  • Quiver.FreeGroupoid.instGroupoid: the Groupoid instance on Quiver.FreeGroupoid V.
  • lift: the lifting of a prefunctor from V to V' where V' is a groupoid, to a functor. Quiver.FreeGroupoid V ⥤ V'.
  • lift_spec and lift_unique: the proofs that, respectively, lift indeed is a lifting and is the unique one.

Implementation notes

The free groupoid is first defined by symmetrifying the quiver, taking the induced path category and finally quotienting by the reducibility relation.

abbrev Quiver.Hom.toPosPath E1 #

{V : Type u} → [inst : Quiver V] → {X Y : V} → (X ⟶ Y) → (X ⟶ Y)

Shorthand for the "forward" arrow corresponding to f in paths <| symmetrify V

abbrev Quiver.Hom.toNegPath E1 #

{V : Type u} → [inst : Quiver V] → {X Y : V} → (X ⟶ Y) → (Y ⟶ X)

Shorthand for the "forward" arrow corresponding to f in paths <| symmetrify V

inductive Quiver.FreeGroupoid.redStep E1 #

{V : Type u} → [inst : Quiver V] → HomRel (CategoryTheory.Paths (Quiver.Symmetrify V))

The "reduction" relation

ctor Quiver.FreeGroupoid.redStep.step E0 #

∀ {V : Type u} [inst : Quiver V] (X Z : Quiver.Symmetrify V) (f : X ⟶ Z),
  Quiver.FreeGroupoid.redStep (CategoryTheory.CategoryStruct.id ((CategoryTheory.Paths.of (Quiver.Symmetrify V)).obj X))
    (CategoryTheory.CategoryStruct.comp f.toPath (Quiver.reverse f).toPath)

def Quiver.FreeGroupoid E1 #

(V : Type u_1) → [Q : Quiver V] → Type u_1

The underlying vertices of the free groupoid

instance Quiver.FreeGroupoid.instNonempty E0 #

∀ {V : Type u_1} [inst : Quiver V] [Nonempty V], Nonempty (Quiver.FreeGroupoid V)

theorem Quiver.FreeGroupoid.congr_reverse E1 #

∀ {V : Type u} [inst : Quiver V] {X Y : CategoryTheory.Paths (Quiver.Symmetrify V)} (p q : X ⟶ Y),
  CategoryTheory.HomRel.CompClosure Quiver.FreeGroupoid.redStep p q →
    CategoryTheory.HomRel.CompClosure Quiver.FreeGroupoid.redStep (Quiver.Path.reverse p) (Quiver.Path.reverse q)

theorem Quiver.FreeGroupoid.congr_comp_reverse E1 #

∀ {V : Type u} [inst : Quiver V] {X Y : CategoryTheory.Paths (Quiver.Symmetrify V)} (p : X ⟶ Y),
  Quot.mk (CategoryTheory.HomRel.CompClosure Quiver.FreeGroupoid.redStep)
      (CategoryTheory.CategoryStruct.comp p (Quiver.Path.reverse p)) =
    Quot.mk (CategoryTheory.HomRel.CompClosure Quiver.FreeGroupoid.redStep) (CategoryTheory.CategoryStruct.id X)

theorem Quiver.FreeGroupoid.congr_reverse_comp E1 #

∀ {V : Type u} [inst : Quiver V] {X Y : CategoryTheory.Paths (Quiver.Symmetrify V)} (p : X ⟶ Y),
  Quot.mk (CategoryTheory.HomRel.CompClosure Quiver.FreeGroupoid.redStep)
      (CategoryTheory.CategoryStruct.comp (Quiver.Path.reverse p) p) =
    Quot.mk (CategoryTheory.HomRel.CompClosure Quiver.FreeGroupoid.redStep) (CategoryTheory.CategoryStruct.id Y)

instance Quiver.FreeGroupoid.instCategory E0 #

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

def Quiver.FreeGroupoid.quotInv E1 #

{V : Type u} → [inst : Quiver V] → {X Y : Quiver.FreeGroupoid V} → (X ⟶ Y) → (Y ⟶ X)

The inverse of an arrow in the free groupoid

instance Quiver.FreeGroupoid.instGroupoid E3 #

{V : Type u} → [inst : Quiver V] → CategoryTheory.Groupoid (Quiver.FreeGroupoid V)

def Quiver.FreeGroupoid.of E1 #

(V : Type u_1) → [inst : Quiver V] → V ⥤q Quiver.FreeGroupoid V

The inclusion of the quiver on V to the underlying quiver on FreeGroupoid V

theorem Quiver.FreeGroupoid.of_eq E0 #

∀ {V : Type u} [inst : Quiver V],
  Quiver.FreeGroupoid.of V =
    Quiver.Symmetrify.of ⋙q CategoryTheory.Paths.of (Quiver.Symmetrify V) ⋙q
      (CategoryTheory.Quotient.functor Quiver.FreeGroupoid.redStep).toPrefunctor

theorem Quiver.FreeGroupoid.hom_rec E2 #

∀ {V : Type u} [inst : Quiver V] {motive : {x y : Quiver.FreeGroupoid V} → (x ⟶ y) → Prop},
  (∀ {x y : V} (f : x ⟶ y), motive ((Quiver.FreeGroupoid.of V).map f)) →
    (∀ {x y : V} (f : x ⟶ y), motive (CategoryTheory.inv ((Quiver.FreeGroupoid.of V).map f))) →
      (∀ (x : V), motive (CategoryTheory.CategoryStruct.id ((Quiver.FreeGroupoid.of V).obj x))) →
        (∀ {x y z : Quiver.FreeGroupoid V} (f : x ⟶ y) (g : y ⟶ z),
            motive f → motive g → motive (CategoryTheory.CategoryStruct.comp f g)) →
          ∀ {x y : Quiver.FreeGroupoid V} (f : x ⟶ y), motive f

Induction principle for proving a property for all the morphisms in the free groupoid of a quiver V: it suffices to prove the property for morphisms (of V).map f coming for the quiver V and their inverses, and that the property is multiplicative (i.e. stable under composition and satisfied by identities).

def Quiver.FreeGroupoid.lift E1 #

{V : Type u} →
  [inst : Quiver V] →
    {V' : Type u'} → [inst_1 : CategoryTheory.Groupoid V'] → V ⥤q V' → CategoryTheory.Functor (Quiver.FreeGroupoid V) V'

The lift of a prefunctor to a groupoid, to a functor from FreeGroupoid V

theorem Quiver.FreeGroupoid.lift_spec E3 #

∀ {V : Type u} [inst : Quiver V] {V' : Type u'} [inst_1 : CategoryTheory.Groupoid V'] (φ : V ⥤q V'),
  Quiver.FreeGroupoid.of V ⋙q (Quiver.FreeGroupoid.lift φ).toPrefunctor = φ

theorem Quiver.FreeGroupoid.lift_unique E3 #

∀ {V : Type u} [inst : Quiver V] {V' : Type u'} [inst_1 : CategoryTheory.Groupoid V'] (φ : V ⥤q V')
  (Φ : CategoryTheory.Functor (Quiver.FreeGroupoid V) V'),
  Quiver.FreeGroupoid.of V ⋙q Φ.toPrefunctor = φ → Φ = Quiver.FreeGroupoid.lift φ

def Quiver.freeGroupoidFunctor E1 #

{V : Type u} →
  [inst : Quiver V] →
    {V' : Type u'} →
      [inst_1 : Quiver V'] → V ⥤q V' → CategoryTheory.Functor (Quiver.FreeGroupoid V) (Quiver.FreeGroupoid V')

The functor of free groupoid induced by a prefunctor of quivers

theorem Quiver.freeGroupoidFunctor_id E1 #

∀ {V : Type u} [inst : Quiver V], Quiver.freeGroupoidFunctor (𝟭q V) = CategoryTheory.Functor.id (Quiver.FreeGroupoid V)

theorem Quiver.freeGroupoidFunctor_comp E1 #

∀ {V : Type u} [inst : Quiver V] {V' : Type u'} [inst_1 : Quiver V'] {V'' : Type u''} [inst_2 : Quiver V'']
  (φ : V ⥤q V') (φ' : V' ⥤q V''),
  Quiver.freeGroupoidFunctor (φ ⋙q φ') = (Quiver.freeGroupoidFunctor φ).comp (Quiver.freeGroupoidFunctor φ')