The areas / V24. Category theory
Mathlib.Combinatorics.Quiver.Basic
27 declarations. Mathlib docs · Source
Quivers
This module defines quivers. A quiver on a type V of vertices assigns to every
pair a b : V of vertices a type a ⟶ b of arrows from a to b. This
is a generalization of Digraph V, which can be thought of as "a proposition a ⟶ b of arrows".
theorem Quiver.homOfEq.congr_simp E1 #
∀ {V : Type u_1} [inst : Quiver V] {X Y X' Y' : V} (f f_1 : X ⟶ Y),
f = f_1 → ∀ (hX : X = X') (hY : Y = Y'), Quiver.homOfEq f hX hY = Quiver.homOfEq f_1 hX hY
def Quiver.ctorIdx E1 #
{V : Type u} → Quiver V → ℕ
class Quiver E1 #
Type u → Type (max u (v + 1))
A quiver G on a type V of vertices assigns to every pair a b : V of vertices
a type a ⟶ b of arrows from a to b. This is hence a form of directed multigraphs.
For graphs with no repeated edges, one can either use Quiver.IsThin to demand
that the hom sets are subsingletons, or Digraph V (where the hom sets
are Prop-valued).
Because Category will later extend this class, we call the field Hom.
Except when constructing instances, you should rarely see this, and use the ⟶ notation instead.
ctor Quiver.mk E0 #
{V : Type u} → (V → V → Type v) → Quiver V
abbrev Quiver.Hom E1 #
{V : Type u} → [self : Quiver V] → V → V → Type v
The type of edges/arrows/morphisms between a given source and target.
def «term_⟶_» E1 #
Lean.TrailingParserDescr
Notation for the type of edges/arrows/morphisms between a given source and target in a quiver or category.
instance Quiver.opposite E0 #
{V : Type u_1} → [Quiver V] → Quiver Vᵒᵖ
Vᵒᵖ reverses the direction of all arrows of V.
def Quiver.Hom.op E1 #
{V : Type u_1} → [inst : Quiver V] → {X Y : V} → (X ⟶ Y) → (Opposite.op Y ⟶ Opposite.op X)
The opposite of an arrow in V.
def Quiver.Hom.unop E1 #
{V : Type u_1} → [inst : Quiver V] → {X Y : Vᵒᵖ} → (X ⟶ Y) → (Opposite.unop Y ⟶ Opposite.unop X)
Given an arrow in Vᵒᵖ, we can take the "unopposite" back in V.
def Quiver.Hom.opEquiv E1 #
{V : Type u_1} → [inst : Quiver V] → {X Y : V} → (X ⟶ Y) ≃ (Opposite.op Y ⟶ Opposite.op X)
The bijection (X ⟶ Y) ≃ (op Y ⟶ op X).
theorem Quiver.Hom.opEquiv_apply E0 #
∀ {V : Type u_1} [inst : Quiver V] {X Y : V} (f : X ⟶ Y), Quiver.Hom.opEquiv f = f.op
theorem Quiver.Hom.opEquiv_symm_apply E0 #
∀ {V : Type u_1} [inst : Quiver V] {X Y : V} (f : Opposite.op Y ⟶ Opposite.op X), Quiver.Hom.opEquiv.symm f = f.unop
theorem Quiver.Hom.unop_ext E1 #
∀ {V : Type u_1} [inst : Quiver V] {X Y : Vᵒᵖ} {f g : X ⟶ Y}, f.unop = g.unop → f = g
To show that two Homs from the opposite category agree, it suffices to show they agree in the original category.
theorem Quiver.Hom.unop_ext_iff E0 #
∀ {V : Type u_1} [inst : Quiver V] {X Y : Vᵒᵖ} {f g : X ⟶ Y}, f = g ↔ f.unop = g.unop
def Quiver.Empty E1 #
Type u → Type u
A type synonym for a quiver with no arrows.
instance Quiver.emptyQuiver E0 #
(V : Type u) → Quiver (Quiver.Empty V)
theorem Quiver.empty_arrow E0 #
∀ {V : Type u} (a b : Quiver.Empty V), (a ⟶ b) = PEmpty.{u + 1}
abbrev Quiver.IsThin E1 #
(V : Type u) → [Quiver V] → Prop
A quiver is thin if it has no parallel arrows.
def Quiver.homOfEq E1 #
{V : Type u_1} → [inst : Quiver V] → {X Y X' Y' : V} → (X ⟶ Y) → X = X' → Y = Y' → (X' ⟶ Y')
An arrow in a quiver can be transported across equalities between the source and target objects.
theorem Quiver.homOfEq_trans E0 #
∀ {V : Type u_1} [inst : Quiver V] {X Y X' Y' : V} (f : X ⟶ Y) (hX : X = X') (hY : Y = Y') {X'' Y'' : V}
(hX' : X' = X'') (hY' : Y' = Y''), Quiver.homOfEq (Quiver.homOfEq f hX hY) hX' hY' = Quiver.homOfEq f ⋯ ⋯
theorem Quiver.homOfEq_injective E1 #
∀ {V : Type u_1} [inst : Quiver V] {X Y X' Y' : V} (hX : X = X') (hY : Y = Y') {f g : X ⟶ Y},
Quiver.homOfEq f hX hY = Quiver.homOfEq g hX hY → f = g
theorem Quiver.homOfEq_rfl E0 #
∀ {V : Type u_1} [inst : Quiver V] {X Y : V} (f : X ⟶ Y), Quiver.homOfEq f ⋯ ⋯ = f
theorem Quiver.heq_of_homOfEq_ext E1 #
∀ {V : Type u_1} [inst : Quiver V] {X Y X' Y' : V} (hX : X = X') (hY : Y = Y') {f : X ⟶ Y} {f' : X' ⟶ Y'},
Quiver.homOfEq f hX hY = f' → f ≍ f'
theorem Quiver.homOfEq_eq_iff E0 #
∀ {V : Type u_1} [inst : Quiver V] {X Y X' Y' : V} (f : X ⟶ Y) (g : X' ⟶ Y') (hX : X = X') (hY : Y = Y'),
Quiver.homOfEq f hX hY = g ↔ f = Quiver.homOfEq g ⋯ ⋯
theorem Quiver.homOfEq_heq E1 #
∀ {V : Type u_1} [inst : Quiver V] {X Y X' Y' : V} (hX : X = X') (hY : Y = Y') (f : X ⟶ Y), Quiver.homOfEq f hX hY ≍ f
theorem Quiver.homOfEq_heq_left_iff E0 #
∀ {V : Type u_1} [inst : Quiver V] {X Y X' Y' : V} (f : X ⟶ Y) (g : X' ⟶ Y') (hX : X = X') (hY : Y = Y'),
Quiver.homOfEq f hX hY ≍ g ↔ f ≍ g
theorem Quiver.homOfEq_heq_right_iff E0 #
∀ {V : Type u_1} [inst : Quiver V] {X Y X' Y' : V} (f : X ⟶ Y) (g : X' ⟶ Y') (hX : X' = X) (hY : Y' = Y),
f ≍ Quiver.homOfEq g hX hY ↔ f ≍ g