The areas / V24. Category theory
Mathlib.Combinatorics.Quiver.ReflQuiver
41 declarations. Mathlib docs · Source
def CategoryTheory.ReflQuiver.ctorIdx E1 #
{obj : Type u} → CategoryTheory.ReflQuiver obj → ℕ
theorem CategoryTheory.ReflPrefunctor.mk.inj E1 #
∀ {V : Type u₁} {inst : CategoryTheory.ReflQuiver V} {W : Type u₂} {inst_1 : CategoryTheory.ReflQuiver W}
{toPrefunctor : V ⥤q W}
{map_id :
autoParam
(∀ (X : V), toPrefunctor.map (CategoryTheory.ReflQuiver.id X) = CategoryTheory.ReflQuiver.id (toPrefunctor.obj X))
CategoryTheory.ReflPrefunctor.map_id._autoParam}
{toPrefunctor_1 : V ⥤q W}
{map_id_1 :
autoParam
(∀ (X : V),
toPrefunctor_1.map (CategoryTheory.ReflQuiver.id X) = CategoryTheory.ReflQuiver.id (toPrefunctor_1.obj X))
CategoryTheory.ReflPrefunctor.map_id._autoParam},
{ toPrefunctor := toPrefunctor, map_id := map_id } = { toPrefunctor := toPrefunctor_1, map_id := map_id_1 } →
toPrefunctor = toPrefunctor_1
def CategoryTheory.ReflPrefunctor.ctorIdx E1 #
{V : Type u₁} →
{inst : CategoryTheory.ReflQuiver V} → {W : Type u₂} → {inst_1 : CategoryTheory.ReflQuiver W} → V ⥤rq W → ℕ
theorem CategoryTheory.ReflPrefunctor.mk.injEq E0 #
∀ {V : Type u₁} [inst : CategoryTheory.ReflQuiver V] {W : Type u₂} [inst_1 : CategoryTheory.ReflQuiver W]
(toPrefunctor : V ⥤q W)
(map_id :
autoParam
(∀ (X : V), toPrefunctor.map (CategoryTheory.ReflQuiver.id X) = CategoryTheory.ReflQuiver.id (toPrefunctor.obj X))
CategoryTheory.ReflPrefunctor.map_id._autoParam)
(toPrefunctor_1 : V ⥤q W)
(map_id_1 :
autoParam
(∀ (X : V),
toPrefunctor_1.map (CategoryTheory.ReflQuiver.id X) = CategoryTheory.ReflQuiver.id (toPrefunctor_1.obj X))
CategoryTheory.ReflPrefunctor.map_id._autoParam),
({ toPrefunctor := toPrefunctor, map_id := map_id } = { toPrefunctor := toPrefunctor_1, map_id := map_id_1 }) =
(toPrefunctor = toPrefunctor_1)
class CategoryTheory.ReflQuiver E1 #
Type u → Type (max u (v + 1))
A reflexive quiver extends a quiver with a specified arrow id X : X ⟶ X for each X in its
type of objects. We denote these arrows by id since categories can be understood as an extension
of refl quivers.
instance CategoryTheory.ReflQuiver.toQuiver E0 #
{obj : Type u} → [self : CategoryTheory.ReflQuiver obj] → Quiver obj
ctor CategoryTheory.ReflQuiver.mk E0 #
{obj : Type u} → [toQuiver : Quiver obj] → ((X : obj) → X ⟶ X) → CategoryTheory.ReflQuiver obj
abbrev CategoryTheory.ReflQuiver.id E1 #
{obj : Type u} → [self : CategoryTheory.ReflQuiver obj] → (X : obj) → X ⟶ X
The identity morphism on an object.
def CategoryTheory.«term𝟙rq» E1 #
Lean.ParserDescr
Notation for the identity morphism in a category.
theorem CategoryTheory.ReflQuiver.homOfEq_id E0 #
∀ {V : Type u_1} [inst : CategoryTheory.ReflQuiver V] {X X' : V} (hX : X = X'),
Quiver.homOfEq (CategoryTheory.ReflQuiver.id X) hX hX = CategoryTheory.ReflQuiver.id X'
instance CategoryTheory.catToReflQuiver E0 #
{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.ReflQuiver C
theorem CategoryTheory.ReflQuiver.id_eq_id E0 #
∀ {C : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} C] (X : C),
CategoryTheory.ReflQuiver.id X = CategoryTheory.CategoryStruct.id X
structure CategoryTheory.ReflPrefunctor E1 #
(V : Type u₁) →
[CategoryTheory.ReflQuiver V] → (W : Type u₂) → [CategoryTheory.ReflQuiver W] → Type (max (max (max u₁ u₂) v₁) v₂)
A morphism of reflexive quivers called a ReflPrefunctor.
ctor CategoryTheory.ReflPrefunctor.mk E0 #
{V : Type u₁} →
[inst : CategoryTheory.ReflQuiver V] →
{W : Type u₂} →
[inst_1 : CategoryTheory.ReflQuiver W] →
(toPrefunctor : V ⥤q W) →
autoParam
(∀ (X : V),
toPrefunctor.map (CategoryTheory.ReflQuiver.id X) = CategoryTheory.ReflQuiver.id (toPrefunctor.obj X))
CategoryTheory.ReflPrefunctor.map_id._autoParam →
V ⥤rq W
abbrev CategoryTheory.ReflPrefunctor.toPrefunctor E1 #
{V : Type u₁} →
[inst : CategoryTheory.ReflQuiver V] → {W : Type u₂} → [inst_1 : CategoryTheory.ReflQuiver W] → V ⥤rq W → V ⥤q W
theorem CategoryTheory.ReflPrefunctor.map_id E0 #
∀ {V : Type u₁} [inst : CategoryTheory.ReflQuiver V] {W : Type u₂} [inst_1 : CategoryTheory.ReflQuiver W]
(self : V ⥤rq W) (X : V), self.map (CategoryTheory.ReflQuiver.id X) = CategoryTheory.ReflQuiver.id (self.obj X)
A functor preserves identity morphisms.
theorem CategoryTheory.ReflPrefunctor.mk_obj E1 #
∀ {V : Type u_1} {W : Type u_2} [inst : CategoryTheory.ReflQuiver V] [inst_1 : CategoryTheory.ReflQuiver W]
{obj : V → W} {map : {X Y : V} → (X ⟶ Y) → (obj X ⟶ obj Y)} {X : V}, { obj := obj, map := map }.obj X = obj X
theorem CategoryTheory.ReflPrefunctor.mk_map E1 #
∀ {V : Type u_1} {W : Type u_2} [inst : CategoryTheory.ReflQuiver V] [inst_1 : CategoryTheory.ReflQuiver W]
{obj : V → W} {map : {X Y : V} → (X ⟶ Y) → (obj X ⟶ obj Y)} {X Y : V} {f : X ⟶ Y},
{ obj := obj, map := map }.map f = map f
theorem CategoryTheory.ReflPrefunctor.ext E1 #
∀ {V : Type u} [inst : CategoryTheory.ReflQuiver V] {W : Type u₂} [inst_1 : CategoryTheory.ReflQuiver W] {F G : V ⥤rq W}
(h_obj : ∀ (X : V), F.obj X = G.obj X), (∀ (X Y : V) (f : X ⟶ Y), F.map f = Eq.recOn ⋯ (Eq.recOn ⋯ (G.map f))) → F = G
Proving equality between reflexive prefunctors. This isn't an extensionality lemma, because usually you don't really want to do this.
theorem CategoryTheory.ReflPrefunctor.ext' E1 #
∀ {V W : Type u} [inst : CategoryTheory.ReflQuiver V] [inst_1 : CategoryTheory.ReflQuiver W] {F G : V ⥤rq W}
(h_obj : ∀ (X : V), F.obj X = G.obj X), (∀ (X Y : V) (f : X ⟶ Y), F.map f = Quiver.homOfEq (G.map f) ⋯ ⋯) → F = G
This may be a more useful form of ReflPrefunctor.ext.
def CategoryTheory.ReflPrefunctor.id E1 #
(V : Type u_1) → [inst : CategoryTheory.ReflQuiver V] → V ⥤rq V
The identity morphism between reflexive quivers.
theorem CategoryTheory.ReflPrefunctor.id_map E0 #
∀ (V : Type u_1) [inst : CategoryTheory.ReflQuiver V] {X Y : V} (f : X ⟶ Y), (𝟭rq V).map f = f
theorem CategoryTheory.ReflPrefunctor.id_obj E0 #
∀ (V : Type u_1) [inst : CategoryTheory.ReflQuiver V] (X : V), (𝟭rq V).obj X = X
instance CategoryTheory.ReflPrefunctor.instInhabited E0 #
(V : Type u_1) → [inst : CategoryTheory.ReflQuiver V] → Inhabited (V ⥤rq V)
def CategoryTheory.ReflPrefunctor.comp E1 #
{U : Type u_1} →
[inst : CategoryTheory.ReflQuiver U] →
{V : Type u_2} →
[inst_1 : CategoryTheory.ReflQuiver V] →
{W : Type u_3} → [inst_2 : CategoryTheory.ReflQuiver W] → U ⥤rq V → V ⥤rq W → U ⥤rq W
Composition of morphisms between reflexive quivers.
theorem CategoryTheory.ReflPrefunctor.comp_map E0 #
∀ {U : Type u_1} [inst : CategoryTheory.ReflQuiver U] {V : Type u_2} [inst_1 : CategoryTheory.ReflQuiver V]
{W : Type u_3} [inst_2 : CategoryTheory.ReflQuiver W] (F : U ⥤rq V) (G : V ⥤rq W) {X Y : U} (f : X ⟶ Y),
(F ⋙rq G).map f = G.map (F.map f)
theorem CategoryTheory.ReflPrefunctor.comp_obj E0 #
∀ {U : Type u_1} [inst : CategoryTheory.ReflQuiver U] {V : Type u_2} [inst_1 : CategoryTheory.ReflQuiver V]
{W : Type u_3} [inst_2 : CategoryTheory.ReflQuiver W] (F : U ⥤rq V) (G : V ⥤rq W) (X : U),
(F ⋙rq G).obj X = G.obj (F.obj X)
theorem CategoryTheory.ReflPrefunctor.comp_id E0 #
∀ {U : Type u_1} {V : Type u_2} [inst : CategoryTheory.ReflQuiver U] [inst_1 : CategoryTheory.ReflQuiver V]
(F : U ⥤rq V), F ⋙rq 𝟭rq V = F
theorem CategoryTheory.ReflPrefunctor.id_comp E0 #
∀ {U : Type u_1} {V : Type u_2} [inst : CategoryTheory.ReflQuiver U] [inst_1 : CategoryTheory.ReflQuiver V]
(F : U ⥤rq V), 𝟭rq U ⋙rq F = F
theorem CategoryTheory.ReflPrefunctor.comp_assoc E0 #
∀ {U : Type u_1} {V : Type u_2} {W : Type u_3} {Z : Type u_4} [inst : CategoryTheory.ReflQuiver U]
[inst_1 : CategoryTheory.ReflQuiver V] [inst_2 : CategoryTheory.ReflQuiver W] [inst_3 : CategoryTheory.ReflQuiver Z]
(F : U ⥤rq V) (G : V ⥤rq W) (H : W ⥤rq Z), F ⋙rq G ⋙rq H = F ⋙rq (G ⋙rq H)
def CategoryTheory.ReflPrefunctor.«term_⥤rq_» E1 #
Lean.TrailingParserDescr
Notation for a prefunctor between reflexive quivers.
def CategoryTheory.ReflPrefunctor.«term_⋙rq_» E1 #
Lean.TrailingParserDescr
Notation for composition of reflexive prefunctors.
def CategoryTheory.ReflPrefunctor.«term𝟭rq» E1 #
Lean.ParserDescr
Notation for the identity prefunctor on a reflexive quiver.
theorem CategoryTheory.ReflPrefunctor.congr_map E1 #
∀ {U : Type u_1} {V : Type u_2} [inst : CategoryTheory.ReflQuiver U] [inst_1 : CategoryTheory.ReflQuiver V]
(F : U ⥤rq V) {X Y : U} {f g : X ⟶ Y}, f = g → F.map f = F.map g
theorem CategoryTheory.ReflPrefunctor.congr_obj E1 #
∀ {U : Type u_1} {V : Type u_2} [inst : CategoryTheory.ReflQuiver U] [inst_1 : CategoryTheory.ReflQuiver V]
{F G : U ⥤rq V}, F = G → ∀ (X : U), F.obj X = G.obj X
An equality of refl prefunctors gives an equality on objects.
theorem CategoryTheory.ReflPrefunctor.congr_hom E1 #
∀ {U : Type u_1} {V : Type u_2} [inst : CategoryTheory.ReflQuiver U] [inst_1 : CategoryTheory.ReflQuiver V]
{F G : U ⥤rq V} (e : F = G) {X Y : U} (f : X ⟶ Y), Quiver.homOfEq (F.map f) ⋯ ⋯ = G.map f
An equality of refl prefunctors gives an equality on homs.
def CategoryTheory.Functor.toReflPrefunctor E1 #
{C : Type u_1} →
{D : Type u_2} →
[inst : CategoryTheory.Category.{v_1, u_1} C] →
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] → CategoryTheory.Functor C D → C ⥤rq D
A functor has an underlying refl prefunctor.
theorem CategoryTheory.Functor.toReflPrefunctor.map_comp E0 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(F : CategoryTheory.Functor C D) (G : CategoryTheory.Functor D E),
(F.comp G).toReflPrefunctor = F.toReflPrefunctor ⋙rq G.toReflPrefunctor
theorem CategoryTheory.Functor.toReflPrefunctor_toPrefunctor E0 #
∀ {C : CategoryTheory.Cat} {D : CategoryTheory.Cat} (F : CategoryTheory.Functor ↑C ↑D),
F.toReflPrefunctor.toPrefunctor = F.toPrefunctor
instance CategoryTheory.ReflQuiver.opposite E0 #
{V : Type u_1} → [CategoryTheory.ReflQuiver V] → CategoryTheory.ReflQuiver Vᵒᵖ
Vᵒᵖ reverses the direction of all arrows of V.
instance CategoryTheory.ReflQuiver.discreteReflQuiver E0 #
(V : Type u) → CategoryTheory.ReflQuiver (CategoryTheory.Discrete V)