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 forV.Quiver.FreeGroupoid.instGroupoid: theGroupoidinstance onQuiver.FreeGroupoid V.lift: the lifting of a prefunctor fromVtoV'whereV'is a groupoid, to a functor.Quiver.FreeGroupoid V ⥤ V'.lift_specandlift_unique: the proofs that, respectively,liftindeed 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.
The "reduction" relation
- step {V : Type u} [Quiver V] (X Z : Symmetrify V) (f : X ⟶ Z) : redStep (CategoryTheory.CategoryStruct.id ((CategoryTheory.Paths.of (Symmetrify V)).obj X)) (CategoryTheory.CategoryStruct.comp f.toPath (reverse f).toPath)
Instances For
The underlying vertices of the free groupoid
Instances For
The inverse of an arrow in the free groupoid
Equations
- Quiver.FreeGroupoid.quotInv f = Quot.liftOn f (fun (pp : X.as ⟶ Y.as) => Quot.mk (CategoryTheory.HomRel.CompClosure Quiver.FreeGroupoid.redStep) (Quiver.Path.reverse pp)) ⋯
Instances For
Equations
- Quiver.FreeGroupoid.instGroupoid = { toCategory := Quiver.FreeGroupoid.instCategory, inv := fun {X Y : Quiver.FreeGroupoid V} => Quiver.FreeGroupoid.quotInv, inv_comp := ⋯, comp_inv := ⋯ }
The inclusion of the quiver on V to the underlying quiver on FreeGroupoid V
Equations
- Quiver.FreeGroupoid.of V = { obj := fun (X : V) => { as := X }, map := fun {X Y : V} (f : X ⟶ Y) => Quot.mk (CategoryTheory.HomRel.CompClosure Quiver.FreeGroupoid.redStep) f.toPosPath }
Instances For
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).
The lift of a prefunctor to a groupoid, to a functor from FreeGroupoid V