The areas / V24. Category theory
Mathlib.CategoryTheory.Comma.Arrow
114 declarations. Mathlib docs · Source
The category of arrows
The category of arrows, with morphisms commutative squares.
We set this up as a specialization of the comma category Comma L R,
where L and R are both the identity functor.
Tags
comma, arrow
theorem CategoryTheory.Arrow.homMk.congr_simp E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (u u_1 : f.left ⟶ g.left)
(e_u : u = u_1) (v v_1 : f.right ⟶ g.right) (e_v : v = v_1)
(w : CategoryTheory.CategoryStruct.comp u g.hom = CategoryTheory.CategoryStruct.comp f.hom v),
CategoryTheory.Arrow.homMk u v w = CategoryTheory.Arrow.homMk u_1 v_1 ⋯
def CategoryTheory.Arrow E1 #
(T : Type u) → [CategoryTheory.Category.{v, u} T] → Type (max u v)
The arrow category of T has as objects all morphisms in T and as morphisms commutative
squares in T.
def CategoryTheory.Arrow.Hom E1 #
{T : Type u} → [inst : CategoryTheory.Category.{v, u} T] → CategoryTheory.Arrow T → CategoryTheory.Arrow T → Type v
The type of morphisms in the category Arrow T.
instance CategoryTheory.instCategoryArrow E0 #
{T : Type u} → [inst : CategoryTheory.Category.{v, u} T] → CategoryTheory.Category.{v, max u v} (CategoryTheory.Arrow T)
abbrev CategoryTheory.Arrow.left E1 #
{T : Type u} → [inst : CategoryTheory.Category.{v, u} T] → CategoryTheory.Arrow T → T
The left object of an arrow.
abbrev CategoryTheory.Arrow.right E1 #
{T : Type u} → [inst : CategoryTheory.Category.{v, u} T] → CategoryTheory.Arrow T → T
The right object of an arrow.
abbrev CategoryTheory.Arrow.hom E1 #
{T : Type u} → [inst : CategoryTheory.Category.{v, u} T] → (X : CategoryTheory.Arrow T) → X.left ⟶ X.right
Given X : Arrow T, this is the morphism X.left ⟶ X.right.
abbrev CategoryTheory.Arrow.Hom.left E1 #
{T : Type u} → [inst : CategoryTheory.Category.{v, u} T] → {X Y : CategoryTheory.Arrow T} → (X ⟶ Y) → (X.left ⟶ Y.left)
The left part of a morphism in the category of arrows.
abbrev CategoryTheory.Arrow.Hom.right E1 #
{T : Type u} →
[inst : CategoryTheory.Category.{v, u} T] → {X Y : CategoryTheory.Arrow T} → (Y ⟶ X) → (Y.right ⟶ X.right)
The right part of a morphism in the category of arrows.
theorem CategoryTheory.Arrow.hom_ext E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : CategoryTheory.Arrow T} (f g : X ⟶ Y),
CategoryTheory.Arrow.Hom.left f = CategoryTheory.Arrow.Hom.left g →
CategoryTheory.Arrow.Hom.right f = CategoryTheory.Arrow.Hom.right g → f = g
theorem CategoryTheory.Arrow.hom_ext_iff E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : CategoryTheory.Arrow T} {f g : X ⟶ Y},
f = g ↔
CategoryTheory.Arrow.Hom.left f = CategoryTheory.Arrow.Hom.left g ∧
CategoryTheory.Arrow.Hom.right f = CategoryTheory.Arrow.Hom.right g
theorem CategoryTheory.Arrow.id_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] (f : CategoryTheory.Arrow T),
CategoryTheory.Arrow.Hom.left (CategoryTheory.CategoryStruct.id f) = CategoryTheory.CategoryStruct.id f.left
theorem CategoryTheory.Arrow.id_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] (f : CategoryTheory.Arrow T),
CategoryTheory.Arrow.Hom.right (CategoryTheory.CategoryStruct.id f) = CategoryTheory.CategoryStruct.id f.right
theorem CategoryTheory.Arrow.comp_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y Z : CategoryTheory.Arrow T} (f : X ⟶ Y) (g : Y ⟶ Z),
CategoryTheory.Arrow.Hom.left (CategoryTheory.CategoryStruct.comp f g) =
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left f) (CategoryTheory.Arrow.Hom.left g)
theorem CategoryTheory.Arrow.comp_right_assoc E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y Z : CategoryTheory.Arrow T} (g : Z ⟶ Y) (f : Y ⟶ X)
{Z_1 : T} (h : X.right ⟶ Z_1),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right (CategoryTheory.CategoryStruct.comp g f)) h =
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right g)
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right f) h)
theorem CategoryTheory.Arrow.comp_left_assoc E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y Z : CategoryTheory.Arrow T} (f : X ⟶ Y) (g : Y ⟶ Z)
{Z_1 : T} (h : Z.left ⟶ Z_1),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left (CategoryTheory.CategoryStruct.comp f g)) h =
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left f)
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left g) h)
theorem CategoryTheory.Arrow.comp_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y Z : CategoryTheory.Arrow T} (g : Z ⟶ Y) (f : Y ⟶ X),
CategoryTheory.Arrow.Hom.right (CategoryTheory.CategoryStruct.comp g f) =
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right g) (CategoryTheory.Arrow.Hom.right f)
def CategoryTheory.Arrow.mk E1 #
{T : Type u} → [inst : CategoryTheory.Category.{v, u} T] → {X Y : T} → (X ⟶ Y) → CategoryTheory.Arrow T
An object in the arrow category is simply a morphism in T.
theorem CategoryTheory.Arrow.mk_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : T} (f : X ⟶ Y), (CategoryTheory.Arrow.mk f).right = Y
theorem CategoryTheory.Arrow.mk_hom E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : T} (f : X ⟶ Y), (CategoryTheory.Arrow.mk f).hom = f
theorem CategoryTheory.Arrow.mk_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : T} (f : X ⟶ Y), (CategoryTheory.Arrow.mk f).left = X
theorem CategoryTheory.Arrow.mk_eq E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] (f : CategoryTheory.Arrow T), CategoryTheory.Arrow.mk f.hom = f
theorem CategoryTheory.Arrow.mk_surjective E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] (f : CategoryTheory.Arrow T),
∃ X Y g, f = CategoryTheory.Arrow.mk g
theorem CategoryTheory.Arrow.mk_injective E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] (A B : T), Function.Injective CategoryTheory.Arrow.mk
theorem CategoryTheory.Arrow.mk_inj E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] (A B : T) {f g : A ⟶ B},
CategoryTheory.Arrow.mk f = CategoryTheory.Arrow.mk g ↔ f = g
instance CategoryTheory.Arrow.instCoeOutHom E0 #
{T : Type u} → [inst : CategoryTheory.Category.{v, u} T] → {X Y : T} → CoeOut (X ⟶ Y) (CategoryTheory.Arrow T)
theorem CategoryTheory.Arrow.w E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) g.hom =
CategoryTheory.CategoryStruct.comp f.hom (CategoryTheory.Arrow.Hom.right sq)
theorem CategoryTheory.Arrow.w_assoc E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g) {Z : T}
(h : g.right ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) (CategoryTheory.CategoryStruct.comp g.hom h) =
CategoryTheory.CategoryStruct.comp f.hom (CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right sq) h)
theorem CategoryTheory.Arrow.Hom.w E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) g.hom =
CategoryTheory.CategoryStruct.comp f.hom (CategoryTheory.Arrow.Hom.right sq)
Alias of CategoryTheory.Arrow.w.
theorem CategoryTheory.Arrow.Hom.w_assoc E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g) {Z : T}
(h : g.right ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) (CategoryTheory.CategoryStruct.comp g.hom h) =
CategoryTheory.CategoryStruct.comp f.hom (CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right sq) h)
theorem CategoryTheory.Arrow.hom.congr_right E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} {φ₁ φ₂ : g ⟶ f},
φ₁ = φ₂ → CategoryTheory.Arrow.Hom.right φ₁ = CategoryTheory.Arrow.Hom.right φ₂
theorem CategoryTheory.Arrow.hom.congr_left E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} {φ₁ φ₂ : f ⟶ g},
φ₁ = φ₂ → CategoryTheory.Arrow.Hom.left φ₁ = CategoryTheory.Arrow.Hom.left φ₂
theorem CategoryTheory.Arrow.iso_w E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (e : f ≅ g),
g.hom =
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left e.inv)
(CategoryTheory.CategoryStruct.comp f.hom (CategoryTheory.Arrow.Hom.right e.hom))
theorem CategoryTheory.Arrow.iso_w' E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {W X Y Z : T} {f : W ⟶ X} {g : Y ⟶ Z}
(e : CategoryTheory.Arrow.mk f ≅ CategoryTheory.Arrow.mk g),
g =
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left e.inv)
(CategoryTheory.CategoryStruct.comp f (CategoryTheory.Arrow.Hom.right e.hom))
theorem CategoryTheory.Arrow.eqToHom_left E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : CategoryTheory.Arrow T} (h : X = Y),
CategoryTheory.Arrow.Hom.left (CategoryTheory.eqToHom h) = CategoryTheory.eqToHom ⋯
theorem CategoryTheory.Arrow.eqToHom_right E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : CategoryTheory.Arrow T} (h : X = Y),
CategoryTheory.Arrow.Hom.right (CategoryTheory.eqToHom h) = CategoryTheory.eqToHom ⋯
theorem CategoryTheory.Arrow.mk_eq_mk_iff E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y X' Y' : T} (f : X ⟶ Y) (f' : X' ⟶ Y'),
CategoryTheory.Arrow.mk f = CategoryTheory.Arrow.mk f' ↔
∃ (hX : X = X') (hY : Y = Y'),
f =
CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom hX)
(CategoryTheory.CategoryStruct.comp f' (CategoryTheory.eqToHom ⋯))
theorem CategoryTheory.Arrow.ext E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (h₁ : f.left = g.left)
(h₂ : f.right = g.right),
f.hom =
CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom h₁)
(CategoryTheory.CategoryStruct.comp g.hom (CategoryTheory.eqToHom ⋯)) →
f = g
theorem CategoryTheory.Arrow.arrow_mk_comp_eqToHom E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y Y' : T} (f : X ⟶ Y) (h : Y = Y'),
CategoryTheory.Arrow.mk (CategoryTheory.CategoryStruct.comp f (CategoryTheory.eqToHom h)) = CategoryTheory.Arrow.mk f
theorem CategoryTheory.Arrow.arrow_mk_eqToHom_comp E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X' X Y : T} (f : X ⟶ Y) (h : X' = X),
CategoryTheory.Arrow.mk (CategoryTheory.CategoryStruct.comp (CategoryTheory.eqToHom h) f) = CategoryTheory.Arrow.mk f
def CategoryTheory.Arrow.homMk E1 #
{T : Type u} →
[inst : CategoryTheory.Category.{v, u} T] →
{f g : CategoryTheory.Arrow T} →
(u : f.left ⟶ g.left) →
(v : f.right ⟶ g.right) →
autoParam (CategoryTheory.CategoryStruct.comp u g.hom = CategoryTheory.CategoryStruct.comp f.hom v)
CategoryTheory.Arrow.homMk._auto_1 →
(f ⟶ g)
A morphism in the arrow category is a commutative square connecting two objects of the arrow category.
theorem CategoryTheory.Arrow.homMk_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (u : f.left ⟶ g.left)
(v : f.right ⟶ g.right)
(w :
autoParam (CategoryTheory.CategoryStruct.comp u g.hom = CategoryTheory.CategoryStruct.comp f.hom v)
CategoryTheory.Arrow.homMk._auto_1),
(CategoryTheory.Arrow.homMk u v w).right = v
theorem CategoryTheory.Arrow.homMk_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (u : f.left ⟶ g.left)
(v : f.right ⟶ g.right)
(w :
autoParam (CategoryTheory.CategoryStruct.comp u g.hom = CategoryTheory.CategoryStruct.comp f.hom v)
CategoryTheory.Arrow.homMk._auto_1),
(CategoryTheory.Arrow.homMk u v w).left = u
def CategoryTheory.Arrow.homMk' E1 #
{T : Type u} →
[inst : CategoryTheory.Category.{v, u} T] →
{X Y : T} →
{f : X ⟶ Y} →
{P Q : T} →
{g : P ⟶ Q} →
(u : X ⟶ P) →
(v : Y ⟶ Q) →
autoParam (CategoryTheory.CategoryStruct.comp u g = CategoryTheory.CategoryStruct.comp f v)
CategoryTheory.Arrow.homMk'._auto_1 →
(CategoryTheory.Arrow.mk f ⟶ CategoryTheory.Arrow.mk g)
We can also build a morphism in the arrow category out of any commutative square in T.
theorem CategoryTheory.Arrow.homMk'_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : T} {f : X ⟶ Y} {P Q : T} {g : P ⟶ Q} (u : X ⟶ P)
(v : Y ⟶ Q)
(w :
autoParam (CategoryTheory.CategoryStruct.comp u g = CategoryTheory.CategoryStruct.comp f v)
CategoryTheory.Arrow.homMk'._auto_1),
(CategoryTheory.Arrow.homMk' u v w).right = v
theorem CategoryTheory.Arrow.homMk'_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : T} {f : X ⟶ Y} {P Q : T} {g : P ⟶ Q} (u : X ⟶ P)
(v : Y ⟶ Q)
(w :
autoParam (CategoryTheory.CategoryStruct.comp u g = CategoryTheory.CategoryStruct.comp f v)
CategoryTheory.Arrow.homMk'._auto_1),
(CategoryTheory.Arrow.homMk' u v w).left = u
theorem CategoryTheory.Arrow.w_mk_left_assoc E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : T} {f : X ⟶ Y} {g : CategoryTheory.Arrow T}
(sq : CategoryTheory.Arrow.mk f ⟶ g) {Z : T} (h : g.right ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) (CategoryTheory.CategoryStruct.comp g.hom h) =
CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right sq) h)
theorem CategoryTheory.Arrow.w_mk_left E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : T} {f : X ⟶ Y} {g : CategoryTheory.Arrow T}
(sq : CategoryTheory.Arrow.mk f ⟶ g),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) g.hom =
CategoryTheory.CategoryStruct.comp f (CategoryTheory.Arrow.Hom.right sq)
theorem CategoryTheory.Arrow.w_mk_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f : CategoryTheory.Arrow T} {X Y : T} {g : X ⟶ Y}
(sq : f ⟶ CategoryTheory.Arrow.mk g),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) g =
CategoryTheory.CategoryStruct.comp f.hom (CategoryTheory.Arrow.Hom.right sq)
theorem CategoryTheory.Arrow.w_mk_right_assoc E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f : CategoryTheory.Arrow T} {X Y : T} {g : X ⟶ Y}
(sq : f ⟶ CategoryTheory.Arrow.mk g) {Z : T} (h : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) (CategoryTheory.CategoryStruct.comp g h) =
CategoryTheory.CategoryStruct.comp f.hom (CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right sq) h)
theorem CategoryTheory.Arrow.w_mk E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y X' Y' : T} {f : X ⟶ Y} {g : X' ⟶ Y'}
(sq : CategoryTheory.Arrow.mk f ⟶ CategoryTheory.Arrow.mk g),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) g =
CategoryTheory.CategoryStruct.comp f (CategoryTheory.Arrow.Hom.right sq)
theorem CategoryTheory.Arrow.w_mk_assoc E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y X' Y' : T} {f : X ⟶ Y} {g : X' ⟶ Y'}
(sq : CategoryTheory.Arrow.mk f ⟶ CategoryTheory.Arrow.mk g) {Z : T} (h : Y' ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) (CategoryTheory.CategoryStruct.comp g h) =
CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right sq) h)
theorem CategoryTheory.Arrow.isIso_of_isIso_left_of_isIso_right E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (ff : f ⟶ g)
[CategoryTheory.IsIso (CategoryTheory.Arrow.Hom.left ff)] [CategoryTheory.IsIso (CategoryTheory.Arrow.Hom.right ff)],
CategoryTheory.IsIso ff
def CategoryTheory.Arrow.isoMk E1 #
{T : Type u} →
[inst : CategoryTheory.Category.{v, u} T] →
{f g : CategoryTheory.Arrow T} →
(l : f.left ≅ g.left) →
(r : f.right ≅ g.right) →
autoParam (CategoryTheory.CategoryStruct.comp l.hom g.hom = CategoryTheory.CategoryStruct.comp f.hom r.hom)
CategoryTheory.Arrow.isoMk._auto_1 →
(f ≅ g)
Create an isomorphism between arrows, by providing isomorphisms between the domains and codomains, and a proof that the square commutes.
theorem CategoryTheory.Arrow.isoMk_inv_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (l : f.left ≅ g.left)
(r : f.right ≅ g.right)
(h :
autoParam (CategoryTheory.CategoryStruct.comp l.hom g.hom = CategoryTheory.CategoryStruct.comp f.hom r.hom)
CategoryTheory.Arrow.isoMk._auto_1),
(CategoryTheory.Arrow.isoMk l r h).inv.left = l.inv
theorem CategoryTheory.Arrow.isoMk_inv_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (l : f.left ≅ g.left)
(r : f.right ≅ g.right)
(h :
autoParam (CategoryTheory.CategoryStruct.comp l.hom g.hom = CategoryTheory.CategoryStruct.comp f.hom r.hom)
CategoryTheory.Arrow.isoMk._auto_1),
(CategoryTheory.Arrow.isoMk l r h).inv.right = r.inv
theorem CategoryTheory.Arrow.isoMk_hom_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (l : f.left ≅ g.left)
(r : f.right ≅ g.right)
(h :
autoParam (CategoryTheory.CategoryStruct.comp l.hom g.hom = CategoryTheory.CategoryStruct.comp f.hom r.hom)
CategoryTheory.Arrow.isoMk._auto_1),
(CategoryTheory.Arrow.isoMk l r h).hom.left = l.hom
theorem CategoryTheory.Arrow.isoMk_hom_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (l : f.left ≅ g.left)
(r : f.right ≅ g.right)
(h :
autoParam (CategoryTheory.CategoryStruct.comp l.hom g.hom = CategoryTheory.CategoryStruct.comp f.hom r.hom)
CategoryTheory.Arrow.isoMk._auto_1),
(CategoryTheory.Arrow.isoMk l r h).hom.right = r.hom
abbrev CategoryTheory.Arrow.isoMk' E1 #
{T : Type u} →
[inst : CategoryTheory.Category.{v, u} T] →
{W X Y Z : T} →
(f : W ⟶ X) →
(g : Y ⟶ Z) →
(e₁ : W ≅ Y) →
(e₂ : X ≅ Z) →
autoParam (CategoryTheory.CategoryStruct.comp e₁.hom g = CategoryTheory.CategoryStruct.comp f e₂.hom)
CategoryTheory.Arrow.isoMk'._auto_1 →
(CategoryTheory.Arrow.mk f ≅ CategoryTheory.Arrow.mk g)
A variant of Arrow.isoMk that creates an iso between two Arrow.mks with a better type
signature.
instance CategoryTheory.Arrow.isIso_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g)
[CategoryTheory.IsIso sq], CategoryTheory.IsIso (CategoryTheory.Arrow.Hom.left sq)
instance CategoryTheory.Arrow.isIso_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : g ⟶ f)
[CategoryTheory.IsIso sq], CategoryTheory.IsIso (CategoryTheory.Arrow.Hom.right sq)
theorem CategoryTheory.Arrow.isIso_hom_iff_isIso_hom_of_isIso E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g)
[CategoryTheory.IsIso sq], CategoryTheory.IsIso f.hom ↔ CategoryTheory.IsIso g.hom
theorem CategoryTheory.Arrow.isIso_iff_isIso_of_isIso E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {W X Y Z : T} {f : W ⟶ X} {g : Y ⟶ Z}
(sq : CategoryTheory.Arrow.mk f ⟶ CategoryTheory.Arrow.mk g) [CategoryTheory.IsIso sq],
CategoryTheory.IsIso f ↔ CategoryTheory.IsIso g
theorem CategoryTheory.Arrow.isIso_hom_iff_isIso_of_isIso E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {Y Z : T} {f : CategoryTheory.Arrow T} {g : Y ⟶ Z}
(sq : f ⟶ CategoryTheory.Arrow.mk g) [CategoryTheory.IsIso sq], CategoryTheory.IsIso f.hom ↔ CategoryTheory.IsIso g
theorem CategoryTheory.Arrow.inv_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g)
[inst_1 : CategoryTheory.IsIso sq],
CategoryTheory.Arrow.Hom.left (CategoryTheory.inv sq) = CategoryTheory.inv (CategoryTheory.Arrow.Hom.left sq)
theorem CategoryTheory.Arrow.inv_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : g ⟶ f)
[inst_1 : CategoryTheory.IsIso sq],
CategoryTheory.Arrow.Hom.right (CategoryTheory.inv sq) = CategoryTheory.inv (CategoryTheory.Arrow.Hom.right sq)
theorem CategoryTheory.Arrow.left_hom_inv_right E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g)
[inst_1 : CategoryTheory.IsIso sq],
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq)
(CategoryTheory.CategoryStruct.comp g.hom (CategoryTheory.inv (CategoryTheory.Arrow.Hom.right sq))) =
f.hom
theorem CategoryTheory.Arrow.inv_left_hom_right E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g)
[inst_1 : CategoryTheory.IsIso sq],
CategoryTheory.CategoryStruct.comp (CategoryTheory.inv (CategoryTheory.Arrow.Hom.left sq))
(CategoryTheory.CategoryStruct.comp f.hom (CategoryTheory.Arrow.Hom.right sq)) =
g.hom
instance CategoryTheory.Arrow.mono_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : f ⟶ g)
[CategoryTheory.Mono sq], CategoryTheory.Mono (CategoryTheory.Arrow.Hom.left sq)
instance CategoryTheory.Arrow.epi_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (sq : g ⟶ f)
[CategoryTheory.Epi sq], CategoryTheory.Epi (CategoryTheory.Arrow.Hom.right sq)
theorem CategoryTheory.Arrow.hom_inv_id_right_assoc E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (e : f ≅ g) {Z : T}
(h : f.right ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right e.hom)
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right e.inv) h) =
h
theorem CategoryTheory.Arrow.hom_inv_id_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (e : f ≅ g),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left e.hom) (CategoryTheory.Arrow.Hom.left e.inv) =
CategoryTheory.CategoryStruct.id f.left
theorem CategoryTheory.Arrow.hom_inv_id_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (e : f ≅ g),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right e.hom) (CategoryTheory.Arrow.Hom.right e.inv) =
CategoryTheory.CategoryStruct.id f.right
theorem CategoryTheory.Arrow.hom_inv_id_left_assoc E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (e : f ≅ g) {Z : T}
(h : f.left ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left e.hom)
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left e.inv) h) =
h
theorem CategoryTheory.Arrow.inv_hom_id_right E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (e : f ≅ g),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right e.inv) (CategoryTheory.Arrow.Hom.right e.hom) =
CategoryTheory.CategoryStruct.id g.right
theorem CategoryTheory.Arrow.inv_hom_id_left_assoc E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (e : f ≅ g) {Z : T}
(h : g.left ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left e.inv)
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left e.hom) h) =
h
theorem CategoryTheory.Arrow.inv_hom_id_left E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (e : f ≅ g),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left e.inv) (CategoryTheory.Arrow.Hom.left e.hom) =
CategoryTheory.CategoryStruct.id g.left
theorem CategoryTheory.Arrow.inv_hom_id_right_assoc E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {f g : CategoryTheory.Arrow T} (e : f ≅ g) {Z : T}
(h : g.right ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right e.inv)
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right e.hom) h) =
h
theorem CategoryTheory.Arrow.square_to_iso_invert E0 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] (i : CategoryTheory.Arrow T) {X Y : T} (p : X ≅ Y)
(sq : i ⟶ CategoryTheory.Arrow.mk p.hom),
CategoryTheory.CategoryStruct.comp i.hom
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.right sq) p.inv) =
CategoryTheory.Arrow.Hom.left sq
Given a square from an arrow i to an isomorphism p, express the source part of sq
in terms of the inverse of p.
theorem CategoryTheory.Arrow.square_from_iso_invert E1 #
∀ {T : Type u} [inst : CategoryTheory.Category.{v, u} T] {X Y : T} (i : X ≅ Y) (p : CategoryTheory.Arrow T)
(sq : CategoryTheory.Arrow.mk i.hom ⟶ p),
CategoryTheory.CategoryStruct.comp i.inv
(CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) p.hom) =
CategoryTheory.Arrow.Hom.right sq
Given a square from an isomorphism i to an arrow p, express the target part of sq
in terms of the inverse of i.
def CategoryTheory.Arrow.squareToSnd E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
{X Y Z : C} →
{i : CategoryTheory.Arrow C} →
{f : X ⟶ Y} →
{g : Y ⟶ Z} →
(i ⟶ CategoryTheory.Arrow.mk (CategoryTheory.CategoryStruct.comp f g)) → (i ⟶ CategoryTheory.Arrow.mk g)
A helper construction: given a square between i and f ≫ g, produce a square between
i and g, whose top leg uses f:
A → X
↓f
↓i Y --> A → Y
↓g ↓i ↓g
B → Z B → Z
theorem CategoryTheory.Arrow.squareToSnd_left E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {i : CategoryTheory.Arrow C} {f : X ⟶ Y}
{g : Y ⟶ Z} (sq : i ⟶ CategoryTheory.Arrow.mk (CategoryTheory.CategoryStruct.comp f g)),
(CategoryTheory.Arrow.squareToSnd sq).left = CategoryTheory.CategoryStruct.comp (CategoryTheory.Arrow.Hom.left sq) f
theorem CategoryTheory.Arrow.squareToSnd_right E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {i : CategoryTheory.Arrow C} {f : X ⟶ Y}
{g : Y ⟶ Z} (sq : i ⟶ CategoryTheory.Arrow.mk (CategoryTheory.CategoryStruct.comp f g)),
(CategoryTheory.Arrow.squareToSnd sq).right = CategoryTheory.Arrow.Hom.right sq
def CategoryTheory.Arrow.leftFunc E1 #
{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor (CategoryTheory.Arrow C) C
The functor sending an arrow to its source.
theorem CategoryTheory.Arrow.leftFunc_obj E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : CategoryTheory.Arrow C),
CategoryTheory.Arrow.leftFunc.obj X = X.left
theorem CategoryTheory.Arrow.rightFunc_obj E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : CategoryTheory.Arrow C),
CategoryTheory.Arrow.rightFunc.obj X = X.right
def CategoryTheory.Arrow.rightFunc E1 #
{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Functor (CategoryTheory.Arrow C) C
The functor sending an arrow to its target.
theorem CategoryTheory.Arrow.leftFunc_map E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : CategoryTheory.Arrow C} (f : X ⟶ Y),
CategoryTheory.Arrow.leftFunc.map f = CategoryTheory.Arrow.Hom.left f
theorem CategoryTheory.Arrow.rightFunc_map E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {Y X : CategoryTheory.Arrow C} (f : Y ⟶ X),
CategoryTheory.Arrow.rightFunc.map f = CategoryTheory.Arrow.Hom.right f
def CategoryTheory.Arrow.leftToRight E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.Arrow.leftFunc ⟶ CategoryTheory.Arrow.rightFunc
The natural transformation from leftFunc to rightFunc, given by the arrow itself.
theorem CategoryTheory.Arrow.leftToRight_app E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (f : CategoryTheory.Arrow C),
CategoryTheory.Arrow.leftToRight.app f = f.hom
def CategoryTheory.Functor.mapArrow E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
CategoryTheory.Functor C D → CategoryTheory.Functor (CategoryTheory.Arrow C) (CategoryTheory.Arrow D)
A functor C ⥤ D induces a functor between the corresponding arrow categories.
theorem CategoryTheory.Functor.mapArrow_obj E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) (a : CategoryTheory.Arrow C),
F.mapArrow.obj a = CategoryTheory.Arrow.mk (F.map a.hom)
theorem CategoryTheory.Functor.mapArrow_map E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) {X Y : CategoryTheory.Arrow C} (f : X ⟶ Y),
F.mapArrow.map f =
CategoryTheory.Arrow.homMk (F.map (CategoryTheory.Arrow.Hom.left f)) (F.map (CategoryTheory.Arrow.Hom.right f)) ⋯
def CategoryTheory.Functor.mapArrowFunctor E1 #
(C : Type u₁) →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
(D : Type u₂) →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
CategoryTheory.Functor (CategoryTheory.Functor C D)
(CategoryTheory.Functor (CategoryTheory.Arrow C) (CategoryTheory.Arrow D))
The functor (C ⥤ D) ⥤ (Arrow C ⥤ Arrow D) which sends
a functor F : C ⥤ D to F.mapArrow.
theorem CategoryTheory.Functor.mapArrowFunctor_map_app E0 #
∀ (C : Type u₁) [inst : CategoryTheory.Category.{v₁, u₁} C] (D : Type u₂) [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{X Y : CategoryTheory.Functor C D} (τ : X ⟶ Y) (f : CategoryTheory.Arrow C),
((CategoryTheory.Functor.mapArrowFunctor C D).map τ).app f =
CategoryTheory.Arrow.homMk (τ.app f.left) (τ.app f.right) ⋯
theorem CategoryTheory.Functor.mapArrowFunctor_obj E0 #
∀ (C : Type u₁) [inst : CategoryTheory.Category.{v₁, u₁} C] (D : Type u₂) [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D), (CategoryTheory.Functor.mapArrowFunctor C D).obj F = F.mapArrow
def CategoryTheory.Functor.mapArrowEquivalence E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] → (C ≌ D) → (CategoryTheory.Arrow C ≌ CategoryTheory.Arrow D)
The equivalence of categories Arrow C ≌ Arrow D induced by an equivalence C ≌ D.
theorem CategoryTheory.Functor.mapArrowEquivalence_counitIso E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(e : C ≌ D),
(CategoryTheory.Functor.mapArrowEquivalence e).counitIso =
(CategoryTheory.Functor.mapArrowFunctor D D).mapIso e.counitIso
theorem CategoryTheory.Functor.mapArrowEquivalence_unitIso E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(e : C ≌ D),
(CategoryTheory.Functor.mapArrowEquivalence e).unitIso = (CategoryTheory.Functor.mapArrowFunctor C C).mapIso e.unitIso
theorem CategoryTheory.Functor.mapArrowEquivalence_functor E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(e : C ≌ D), (CategoryTheory.Functor.mapArrowEquivalence e).functor = e.functor.mapArrow
theorem CategoryTheory.Functor.mapArrowEquivalence_inverse E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(e : C ≌ D), (CategoryTheory.Functor.mapArrowEquivalence e).inverse = e.inverse.mapArrow
instance CategoryTheory.Functor.essSurj_mapArrow E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [F.Full] [F.EssSurj], F.mapArrow.EssSurj
instance CategoryTheory.Functor.isEquivalence_mapArrow E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [F.IsEquivalence], F.mapArrow.IsEquivalence
def CategoryTheory.Arrow.isoOfNatIso 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] →
{F G : CategoryTheory.Functor C D} →
(F ≅ G) → (f : CategoryTheory.Arrow C) → F.mapArrow.obj f ≅ G.mapArrow.obj f
The images of f : Arrow C by two isomorphic functors F : C ⥤ D are
isomorphic arrows in D.
def CategoryTheory.Arrow.equivSigma E1 #
(T : Type u) → [inst : CategoryTheory.Category.{v, u} T] → CategoryTheory.Arrow T ≃ (X : T) × (Y : T) × (X ⟶ Y)
Arrow T is equivalent to a sigma type.
theorem CategoryTheory.Arrow.equivSigma_symm_apply_left E0 #
∀ (T : Type u) [inst : CategoryTheory.Category.{v, u} T] (x : (X : T) × (Y : T) × (X ⟶ Y)),
((CategoryTheory.Arrow.equivSigma T).symm x).left = x.fst
theorem CategoryTheory.Arrow.equivSigma_apply_snd_snd E0 #
∀ (T : Type u) [inst : CategoryTheory.Category.{v, u} T] (f : CategoryTheory.Arrow T),
((CategoryTheory.Arrow.equivSigma T) f).snd.snd = f.hom
theorem CategoryTheory.Arrow.equivSigma_apply_fst E0 #
∀ (T : Type u) [inst : CategoryTheory.Category.{v, u} T] (f : CategoryTheory.Arrow T),
((CategoryTheory.Arrow.equivSigma T) f).fst = f.left
theorem CategoryTheory.Arrow.equivSigma_symm_apply_hom E0 #
∀ (T : Type u) [inst : CategoryTheory.Category.{v, u} T] (x : (X : T) × (Y : T) × (X ⟶ Y)),
((CategoryTheory.Arrow.equivSigma T).symm x).hom = x.snd.snd
theorem CategoryTheory.Arrow.equivSigma_apply_snd_fst E0 #
∀ (T : Type u) [inst : CategoryTheory.Category.{v, u} T] (f : CategoryTheory.Arrow T),
((CategoryTheory.Arrow.equivSigma T) f).snd.fst = f.right
theorem CategoryTheory.Arrow.equivSigma_symm_apply_right E0 #
∀ (T : Type u) [inst : CategoryTheory.Category.{v, u} T] (x : (X : T) × (Y : T) × (X ⟶ Y)),
((CategoryTheory.Arrow.equivSigma T).symm x).right = x.snd.fst
def CategoryTheory.Arrow.discreteEquiv E1 #
(S : Type u) → CategoryTheory.Arrow (CategoryTheory.Discrete S) ≃ S
The equivalence Arrow (Discrete S) ≃ S.
theorem CategoryTheory.Arrow.functor_ext E2 #
∀ {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] {F G : CategoryTheory.Functor C D},
(∀ ⦃X Y : C⦄ (f : X ⟶ Y), F.mapArrow.obj (CategoryTheory.Arrow.mk f) = G.mapArrow.obj (CategoryTheory.Arrow.mk f)) →
F = G
Extensionality lemma for functors C ⥤ D which uses as an assumption
that the induced maps Arrow C → Arrow D coincide.