The areas / V24. Category theory
Mathlib.Combinatorics.Quiver.Prefunctor
28 declarations. Mathlib docs · Source
def Prefunctor.ctorIdx E1 #
{V : Type u₁} → {inst : Quiver V} → {W : Type u₂} → {inst_1 : Quiver W} → V ⥤q W → ℕ
theorem Prefunctor.mk.inj E1 #
∀ {V : Type u₁} {inst : Quiver V} {W : Type u₂} {inst_1 : Quiver W} {obj : V → W}
{map : {X Y : V} → (X ⟶ Y) → (obj X ⟶ obj Y)} {obj_1 : V → W} {map_1 : {X Y : V} → (X ⟶ Y) → (obj_1 X ⟶ obj_1 Y)},
{ obj := obj, map := map } = { obj := obj_1, map := map_1 } → obj = obj_1 ∧ map ≍ map_1
theorem Prefunctor.mk.injEq E0 #
∀ {V : Type u₁} [inst : Quiver V] {W : Type u₂} [inst_1 : Quiver W] (obj : V → W)
(map : {X Y : V} → (X ⟶ Y) → (obj X ⟶ obj Y)) (obj_1 : V → W) (map_1 : {X Y : V} → (X ⟶ Y) → (obj_1 X ⟶ obj_1 Y)),
({ obj := obj, map := map } = { obj := obj_1, map := map_1 }) = (obj = obj_1 ∧ map ≍ map_1)
structure Prefunctor E1 #
(V : Type u₁) → [Quiver V] → (W : Type u₂) → [Quiver W] → Type (max (max (max u₁ u₂) v₁) v₂)
A morphism of quivers. As we will later have categorical functors extend this structure,
we call it a Prefunctor.
ctor Prefunctor.mk E0 #
{V : Type u₁} →
[inst : Quiver V] →
{W : Type u₂} → [inst_1 : Quiver W] → (obj : V → W) → ({X Y : V} → (X ⟶ Y) → (obj X ⟶ obj Y)) → V ⥤q W
abbrev Prefunctor.obj E1 #
{V : Type u₁} → [inst : Quiver V] → {W : Type u₂} → [inst_1 : Quiver W] → V ⥤q W → V → W
The action of a (pre)functor on vertices/objects.
abbrev Prefunctor.map E1 #
{V : Type u₁} →
[inst : Quiver V] →
{W : Type u₂} → [inst_1 : Quiver W] → (self : V ⥤q W) → {X Y : V} → (X ⟶ Y) → (self.obj X ⟶ self.obj Y)
The action of a (pre)functor on edges/arrows/morphisms.
theorem Prefunctor.mk_obj E1 #
∀ {V : Type u_1} {W : Type u_2} [inst : Quiver V] [inst_1 : Quiver 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 Prefunctor.mk_map E1 #
∀ {V : Type u_1} {W : Type u_2} [inst : Quiver V] [inst_1 : Quiver 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 Prefunctor.ext E1 #
∀ {V : Type u} [inst : Quiver V] {W : Type u₂} [inst_1 : Quiver W] {F G : V ⥤q 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
theorem Prefunctor.ext' E1 #
∀ {V W : Type u} [inst : Quiver V] [inst_1 : Quiver W] {F G : V ⥤q 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 Prefunctor.ext.
def Prefunctor.id E1 #
(V : Type u_1) → [inst : Quiver V] → V ⥤q V
The identity morphism between quivers.
theorem Prefunctor.id_obj E0 #
∀ (V : Type u_1) [inst : Quiver V] (X : V), (𝟭q V).obj X = X
theorem Prefunctor.id_map E0 #
∀ (V : Type u_1) [inst : Quiver V] {X Y : V} (f : X ⟶ Y), (𝟭q V).map f = f
instance Prefunctor.instInhabited E0 #
(V : Type u_1) → [inst : Quiver V] → Inhabited (V ⥤q V)
def Prefunctor.comp E1 #
{U : Type u_1} →
[inst : Quiver U] →
{V : Type u_2} → [inst_1 : Quiver V] → {W : Type u_3} → [inst_2 : Quiver W] → U ⥤q V → V ⥤q W → U ⥤q W
Composition of morphisms between quivers.
theorem Prefunctor.comp_map E0 #
∀ {U : Type u_1} [inst : Quiver U] {V : Type u_2} [inst_1 : Quiver V] {W : Type u_3} [inst_2 : Quiver W] (F : U ⥤q V)
(G : V ⥤q W) {X Y : U} (f : X ⟶ Y), (F ⋙q G).map f = G.map (F.map f)
theorem Prefunctor.comp_obj E0 #
∀ {U : Type u_1} [inst : Quiver U] {V : Type u_2} [inst_1 : Quiver V] {W : Type u_3} [inst_2 : Quiver W] (F : U ⥤q V)
(G : V ⥤q W) (X : U), (F ⋙q G).obj X = G.obj (F.obj X)
theorem Prefunctor.comp_id E0 #
∀ {U : Type u_1} {V : Type u_2} [inst : Quiver U] [inst_1 : Quiver V] (F : U ⥤q V), F ⋙q 𝟭q V = F
theorem Prefunctor.id_comp E0 #
∀ {U : Type u_1} {V : Type u_2} [inst : Quiver U] [inst_1 : Quiver V] (F : U ⥤q V), 𝟭q U ⋙q F = F
theorem Prefunctor.comp_assoc E0 #
∀ {U : Type u_1} {V : Type u_2} {W : Type u_3} {Z : Type u_4} [inst : Quiver U] [inst_1 : Quiver V] [inst_2 : Quiver W]
[inst_3 : Quiver Z] (F : U ⥤q V) (G : V ⥤q W) (H : W ⥤q Z), F ⋙q G ⋙q H = F ⋙q (G ⋙q H)
def Prefunctor.«term_⥤q_» E1 #
Lean.TrailingParserDescr
Notation for a prefunctor between quivers.
def Prefunctor.«term_⋙q_» E1 #
Lean.TrailingParserDescr
Notation for composition of prefunctors.
def Prefunctor.«term𝟭q» E1 #
Lean.ParserDescr
Notation for the identity prefunctor on a quiver.
theorem Prefunctor.congr_map E1 #
∀ {U : Type u_1} {V : Type u_2} [inst : Quiver U] [inst_1 : Quiver V] (F : U ⥤q V) {X Y : U} {f g : X ⟶ Y},
f = g → F.map f = F.map g
theorem Prefunctor.congr_obj E1 #
∀ {U : Type u_1} {V : Type u_2} [inst : Quiver U] [inst_1 : Quiver V] {F G : U ⥤q V},
F = G → ∀ (X : U), F.obj X = G.obj X
An equality of prefunctors gives an equality on objects.
theorem Prefunctor.congr_hom E1 #
∀ {U : Type u_1} {V : Type u_2} [inst : Quiver U] [inst_1 : Quiver V] {F G : U ⥤q V} (e : F = G) {X Y : U} (f : X ⟶ Y),
Quiver.homOfEq (F.map f) ⋯ ⋯ = G.map f
An equality of prefunctors gives an equality on homs.
theorem Prefunctor.homOfEq_map E0 #
∀ {U : Type u_1} {V : Type u_2} [inst : Quiver U] [inst_1 : Quiver V] (F : U ⥤q V) {X Y : U} (f : X ⟶ Y) {X' Y' : U}
(hX : X = X') (hY : Y = Y'), F.map (Quiver.homOfEq f hX hY) = Quiver.homOfEq (F.map f) ⋯ ⋯
Prefunctors commute with homOfEq.