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.Combinatorics.Quiver.Cast

16 declarations. Mathlib docs · Source

Rewriting arrows and paths along vertex equalities

This file defines Hom.cast and Path.cast (and associated lemmas) in order to allow rewriting arrows and paths along equalities of their endpoints.

Rewriting arrows along equalities of vertices

Rewriting paths along equalities of vertices

def Quiver.Hom.cast E1 #

{U : Type u_1} → [inst : Quiver U] → {u v u' v' : U} → u = u' → v = v' → (u ⟶ v) → (u' ⟶ v')

Change the endpoints of an arrow using equalities.

theorem Quiver.Hom.cast_eq_cast E1 #

∀ {U : Type u_1} [inst : Quiver U] {u v u' v' : U} (hu : u = u') (hv : v = v') (e : u ⟶ v),
  Quiver.Hom.cast hu hv e = cast ⋯ e

theorem Quiver.Hom.cast_rfl_rfl E0 #

∀ {U : Type u_1} [inst : Quiver U] {u v : U} (e : u ⟶ v), Quiver.Hom.cast ⋯ ⋯ e = e

theorem Quiver.Hom.cast_cast E0 #

∀ {U : Type u_1} [inst : Quiver U] {u v u' v' u'' v'' : U} (e : u ⟶ v) (hu : u = u') (hv : v = v') (hu' : u' = u'')
  (hv' : v' = v''), Quiver.Hom.cast hu' hv' (Quiver.Hom.cast hu hv e) = Quiver.Hom.cast ⋯ ⋯ e

theorem Quiver.Hom.cast_heq E1 #

∀ {U : Type u_1} [inst : Quiver U] {u v u' v' : U} (hu : u = u') (hv : v = v') (e : u ⟶ v), Quiver.Hom.cast hu hv e ≍ e

theorem Quiver.Hom.cast_eq_iff_heq E1 #

∀ {U : Type u_1} [inst : Quiver U] {u v u' v' : U} (hu : u = u') (hv : v = v') (e : u ⟶ v) (e' : u' ⟶ v'),
  Quiver.Hom.cast hu hv e = e' ↔ e ≍ e'

def Quiver.Path.cast E1 #

{U : Type u_1} → [inst : Quiver U] → {u v u' v' : U} → u = u' → v = v' → Quiver.Path u v → Quiver.Path u' v'

Change the endpoints of a path using equalities.

theorem Quiver.Path.cast_eq_cast E1 #

∀ {U : Type u_1} [inst : Quiver U] {u v u' v' : U} (hu : u = u') (hv : v = v') (p : Quiver.Path u v),
  Quiver.Path.cast hu hv p = cast ⋯ p

theorem Quiver.Path.cast_rfl_rfl E0 #

∀ {U : Type u_1} [inst : Quiver U] {u v : U} (p : Quiver.Path u v), Quiver.Path.cast ⋯ ⋯ p = p

theorem Quiver.Path.cast_cast E0 #

∀ {U : Type u_1} [inst : Quiver U] {u v u' v' u'' v'' : U} (p : Quiver.Path u v) (hu : u = u') (hv : v = v')
  (hu' : u' = u'') (hv' : v' = v''), Quiver.Path.cast hu' hv' (Quiver.Path.cast hu hv p) = Quiver.Path.cast ⋯ ⋯ p

theorem Quiver.Path.cast_nil E0 #

∀ {U : Type u_1} [inst : Quiver U] {u u' : U} (hu : u = u'), Quiver.Path.cast hu hu Quiver.Path.nil = Quiver.Path.nil

theorem Quiver.Path.cast_heq E1 #

∀ {U : Type u_1} [inst : Quiver U] {u v u' v' : U} (hu : u = u') (hv : v = v') (p : Quiver.Path u v),
  Quiver.Path.cast hu hv p ≍ p

theorem Quiver.Path.cast_eq_iff_heq E1 #

∀ {U : Type u_1} [inst : Quiver U] {u v u' v' : U} (hu : u = u') (hv : v = v') (p : Quiver.Path u v)
  (p' : Quiver.Path u' v'), Quiver.Path.cast hu hv p = p' ↔ p ≍ p'

theorem Quiver.Path.cast_cons E1 #

∀ {U : Type u_1} [inst : Quiver U] {u v w u' w' : U} (p : Quiver.Path u v) (e : v ⟶ w) (hu : u = u') (hw : w = w'),
  Quiver.Path.cast hu hw (p.cons e) = (Quiver.Path.cast hu ⋯ p).cons (Quiver.Hom.cast ⋯ hw e)

theorem Quiver.cast_eq_of_cons_eq_cons E1 #

∀ {U : Type u_1} [inst : Quiver U] {u v v' w : U} {p : Quiver.Path u v} {p' : Quiver.Path u v'} {e : v ⟶ w}
  {e' : v' ⟶ w} (h : p.cons e = p'.cons e'), Quiver.Path.cast ⋯ ⋯ p = p'

theorem Quiver.hom_cast_eq_of_cons_eq_cons E1 #

∀ {U : Type u_1} [inst : Quiver U] {u v v' w : U} {p : Quiver.Path u v} {p' : Quiver.Path u v'} {e : v ⟶ w}
  {e' : v' ⟶ w} (h : p.cons e = p'.cons e'), Quiver.Hom.cast ⋯ ⋯ e = e'