The areas / V25. Higher structures in categories
Mathlib.CategoryTheory.Preadditive.Basic
102 declarations. Mathlib docs · Source
Preadditive categories
A preadditive category is a category in which X ⟶ Y is an abelian group in such a way that
composition of morphisms is linear in both variables.
This file contains a definition of preadditive category that directly encodes the definition given above. The definition could also be phrased as follows: A preadditive category is a category enriched over the category of Abelian groups. Once the general framework to state this in Lean is available, the contents of this file should become obsolete.
Main results
- Definition of preadditive categories and basic properties
- In a preadditive category,
f : Q ⟶ Ris mono if and only ifg ≫ f = 0 → g = 0for all composableg. - A preadditive category with kernels has equalizers.
Implementation notes
The simp normal form for negation and composition is to push negations as far as possible to
the outside. For example, f ≫ (-g) and (-f) ≫ g both become -(f ≫ g), and (-f) ≫ (-g)
is simplified to f ≫ g.
References
- [F. Borceux, Handbook of Categorical Algebra 2][borceux-vol2]
Tags
additive, preadditive, Hom group, Ab-category, Ab-enriched
def CategoryTheory.Preadditive.ctorIdx E1 #
{C : Type u} → {inst : CategoryTheory.Category.{v, u} C} → CategoryTheory.Preadditive C → ℕ
class CategoryTheory.Preadditive E3 #
(C : Type u) → [CategoryTheory.Category.{v, u} C] → Type (max u v)
A category is called preadditive if P ⟶ Q is an abelian group such that composition is
linear in both variables.
ctor CategoryTheory.Preadditive.mk E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
(homGroup : autoParam ((P Q : C) → AddCommGroup (P ⟶ Q)) CategoryTheory.Preadditive.homGroup._autoParam) →
autoParam
(∀ (P Q R : C) (f f' : P ⟶ Q) (g : Q ⟶ R),
CategoryTheory.CategoryStruct.comp (f + f') g =
CategoryTheory.CategoryStruct.comp f g + CategoryTheory.CategoryStruct.comp f' g)
CategoryTheory.Preadditive.add_comp._autoParam →
autoParam
(∀ (P Q R : C) (f : P ⟶ Q) (g g' : Q ⟶ R),
CategoryTheory.CategoryStruct.comp f (g + g') =
CategoryTheory.CategoryStruct.comp f g + CategoryTheory.CategoryStruct.comp f g')
CategoryTheory.Preadditive.comp_add._autoParam →
CategoryTheory.Preadditive C
instance CategoryTheory.Preadditive.homGroup E0 #
{C : Type u} →
{inst : CategoryTheory.Category.{v, u} C} → [self : CategoryTheory.Preadditive C] → (P Q : C) → AddCommGroup (P ⟶ Q)
A category is called preadditive if P ⟶ Q is an abelian group such that composition is
linear in both variables.
theorem CategoryTheory.Preadditive.add_comp E0 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.Preadditive C] (P Q R : C)
(f f' : P ⟶ Q) (g : Q ⟶ R),
CategoryTheory.CategoryStruct.comp (f + f') g =
CategoryTheory.CategoryStruct.comp f g + CategoryTheory.CategoryStruct.comp f' g
A category is called preadditive if P ⟶ Q is an abelian group such that composition is
linear in both variables.
theorem CategoryTheory.Preadditive.comp_add E0 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.Preadditive C] (P Q R : C) (f : P ⟶ Q)
(g g' : Q ⟶ R),
CategoryTheory.CategoryStruct.comp f (g + g') =
CategoryTheory.CategoryStruct.comp f g + CategoryTheory.CategoryStruct.comp f g'
A category is called preadditive if P ⟶ Q is an abelian group such that composition is
linear in both variables.
theorem CategoryTheory.Preadditive.add_comp_assoc E1 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.Preadditive C] (P Q R : C)
(f f' : P ⟶ Q) (g : Q ⟶ R) {Z : C} (h : R ⟶ Z),
CategoryTheory.CategoryStruct.comp (f + f') (CategoryTheory.CategoryStruct.comp g h) =
CategoryTheory.CategoryStruct.comp
(CategoryTheory.CategoryStruct.comp f g + CategoryTheory.CategoryStruct.comp f' g) h
A category is called preadditive if P ⟶ Q is an abelian group such that composition is
linear in both variables.
theorem CategoryTheory.Preadditive.comp_add_assoc E1 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.Preadditive C] (P Q R : C) (f : P ⟶ Q)
(g g' : Q ⟶ R) {Z : C} (h : R ⟶ Z),
CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp (g + g') h) =
CategoryTheory.CategoryStruct.comp
(CategoryTheory.CategoryStruct.comp f g + CategoryTheory.CategoryStruct.comp f g') h
A category is called preadditive if P ⟶ Q is an abelian group such that composition is
linear in both variables.
instance CategoryTheory.End.instAddCommGroup E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Preadditive C] → (X : C) → AddCommGroup (CategoryTheory.End X)
theorem CategoryTheory.End.add_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (X : C)
(x y : CategoryTheory.End X), (x + y).asHom = x.asHom + y.asHom
theorem CategoryTheory.End.zsmul_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (X : C) (n : ℤ)
(x : CategoryTheory.End X), (n • x).asHom = n • x.asHom
theorem CategoryTheory.End.neg_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (X : C)
(x : CategoryTheory.End X), (-x).asHom = -x.asHom
theorem CategoryTheory.End.sub_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (X : C)
(x y : CategoryTheory.End X), (x - y).asHom = x.asHom - y.asHom
theorem CategoryTheory.End.zero_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (X : C),
CategoryTheory.End.asHom 0 = 0
theorem CategoryTheory.End.nsmul_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] (X : C) (n : ℕ)
(x : CategoryTheory.End X), (n • x).asHom = n • x.asHom
def CategoryTheory.End.addEquiv E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] → {X : C} → CategoryTheory.End X ≃+ (X ⟶ X)
The additive bijection End X ≃+ (X ⟶ X)
when X is an object in a preadditive category.
theorem CategoryTheory.End.addEquiv_symm_apply_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X : C}
(asHom : X ⟶ X), (CategoryTheory.End.addEquiv.symm asHom).asHom = asHom
theorem CategoryTheory.End.addEquiv_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X : C}
(self : CategoryTheory.End X), CategoryTheory.End.addEquiv self = self.asHom
theorem CategoryTheory.End.sum_asHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X : C} {ι : Type u_1}
(s : Finset ι) (f : ι → CategoryTheory.End X), (∑ i ∈ s, f i).asHom = ∑ i ∈ s, (f i).asHom
instance CategoryTheory.Preadditive.inducedCategory E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Preadditive C] →
{D : Type u'} → (F : D → C) → CategoryTheory.Preadditive (CategoryTheory.InducedCategory C F)
def CategoryTheory.InducedCategory.homAddEquiv E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{D : Type u'} → {F : D → C} → {X Y : CategoryTheory.InducedCategory C F} → (X ⟶ Y) ≃+ (F X ⟶ F Y)
The additive equivalence (X ⟶ Y) ≃+ (F X ⟶ F Y) when F : D → C and
C is a preadditive category.
theorem CategoryTheory.InducedCategory.homAddEquiv_symm_apply_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {D : Type u'}
{F : D → C} {X Y : CategoryTheory.InducedCategory C F} (f : F X ⟶ F Y),
(CategoryTheory.InducedCategory.homAddEquiv.symm f).hom = f
theorem CategoryTheory.InducedCategory.homAddEquiv_apply E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {D : Type u'}
{F : D → C} {X Y : CategoryTheory.InducedCategory C F} (f : X ⟶ Y),
CategoryTheory.InducedCategory.homAddEquiv f = f.hom
instance CategoryTheory.Preadditive.fullSubcategory E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[CategoryTheory.Preadditive C] →
(Z : CategoryTheory.ObjectProperty C) → CategoryTheory.Preadditive Z.FullSubcategory
def CategoryTheory.Preadditive.leftComp E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] → {P Q : C} → (R : C) → (P ⟶ Q) → (Q ⟶ R) →+ (P ⟶ R)
Composition by a fixed left argument as a group homomorphism
def CategoryTheory.Preadditive.rightComp E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] → {P Q : C} → (R : C) → (Q ⟶ P) → (R ⟶ Q) →+ (R ⟶ P)
Composition by a fixed right argument as a group homomorphism
def CategoryTheory.Preadditive.compHom E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] → {P Q R : C} → (P ⟶ Q) →+ (Q ⟶ R) →+ (P ⟶ R)
Composition as a bilinear group homomorphism
theorem CategoryTheory.Preadditive.sub_comp_assoc E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C}
(f f' : P ⟶ Q) (g : Q ⟶ R) {Z : C} (h : R ⟶ Z),
CategoryTheory.CategoryStruct.comp (f - f') (CategoryTheory.CategoryStruct.comp g h) =
CategoryTheory.CategoryStruct.comp
(CategoryTheory.CategoryStruct.comp f g - CategoryTheory.CategoryStruct.comp f' g) h
theorem CategoryTheory.Preadditive.comp_sub_assoc E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (g : R ⟶ Q)
(f f' : Q ⟶ P) {Z : C} (h : P ⟶ Z),
CategoryTheory.CategoryStruct.comp g (CategoryTheory.CategoryStruct.comp (f - f') h) =
CategoryTheory.CategoryStruct.comp
(CategoryTheory.CategoryStruct.comp g f - CategoryTheory.CategoryStruct.comp g f') h
theorem CategoryTheory.Preadditive.comp_sub E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (g : R ⟶ Q)
(f f' : Q ⟶ P),
CategoryTheory.CategoryStruct.comp g (f - f') =
CategoryTheory.CategoryStruct.comp g f - CategoryTheory.CategoryStruct.comp g f'
theorem CategoryTheory.Preadditive.sub_comp E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C}
(f f' : P ⟶ Q) (g : Q ⟶ R),
CategoryTheory.CategoryStruct.comp (f - f') g =
CategoryTheory.CategoryStruct.comp f g - CategoryTheory.CategoryStruct.comp f' g
theorem CategoryTheory.Preadditive.comp_neg E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (g : R ⟶ Q)
(f : Q ⟶ P), CategoryTheory.CategoryStruct.comp g (-f) = -CategoryTheory.CategoryStruct.comp g f
theorem CategoryTheory.Preadditive.comp_neg_assoc E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (g : R ⟶ Q)
(f : Q ⟶ P) {Z : C} (h : P ⟶ Z),
CategoryTheory.CategoryStruct.comp g (CategoryTheory.CategoryStruct.comp (-f) h) =
CategoryTheory.CategoryStruct.comp (-CategoryTheory.CategoryStruct.comp g f) h
theorem CategoryTheory.Preadditive.neg_comp E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (f : P ⟶ Q)
(g : Q ⟶ R), CategoryTheory.CategoryStruct.comp (-f) g = -CategoryTheory.CategoryStruct.comp f g
theorem CategoryTheory.Preadditive.neg_comp_assoc E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (f : P ⟶ Q)
(g : Q ⟶ R) {Z : C} (h : R ⟶ Z),
CategoryTheory.CategoryStruct.comp (-f) (CategoryTheory.CategoryStruct.comp g h) =
CategoryTheory.CategoryStruct.comp (-CategoryTheory.CategoryStruct.comp f g) h
theorem CategoryTheory.Preadditive.neg_comp_neg_assoc E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (f : P ⟶ Q)
(g : Q ⟶ R) {Z : C} (h : R ⟶ Z),
CategoryTheory.CategoryStruct.comp (-f) (CategoryTheory.CategoryStruct.comp (-g) h) =
CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp g h)
theorem CategoryTheory.Preadditive.neg_comp_neg E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (f : P ⟶ Q)
(g : Q ⟶ R), CategoryTheory.CategoryStruct.comp (-f) (-g) = CategoryTheory.CategoryStruct.comp f g
theorem CategoryTheory.Preadditive.nsmul_comp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (f : P ⟶ Q)
(g : Q ⟶ R) (n : ℕ), CategoryTheory.CategoryStruct.comp (n • f) g = n • CategoryTheory.CategoryStruct.comp f g
theorem CategoryTheory.Preadditive.comp_nsmul E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (g : R ⟶ Q)
(f : Q ⟶ P) (n : ℕ), CategoryTheory.CategoryStruct.comp g (n • f) = n • CategoryTheory.CategoryStruct.comp g f
theorem CategoryTheory.Preadditive.comp_zsmul E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (g : R ⟶ Q)
(f : Q ⟶ P) (n : ℤ), CategoryTheory.CategoryStruct.comp g (n • f) = n • CategoryTheory.CategoryStruct.comp g f
theorem CategoryTheory.Preadditive.zsmul_comp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (f : P ⟶ Q)
(g : Q ⟶ R) (n : ℤ), CategoryTheory.CategoryStruct.comp (n • f) g = n • CategoryTheory.CategoryStruct.comp f g
theorem CategoryTheory.Preadditive.comp_sum_assoc E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C}
{J : Type u_1} (s : Finset J) (g : R ⟶ Q) (f : J → (Q ⟶ P)) {Z : C} (h : P ⟶ Z),
CategoryTheory.CategoryStruct.comp g (CategoryTheory.CategoryStruct.comp (∑ j ∈ s, f j) h) =
CategoryTheory.CategoryStruct.comp (∑ j ∈ s, CategoryTheory.CategoryStruct.comp g (f j)) h
theorem CategoryTheory.Preadditive.sum_comp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C}
{J : Type u_1} (s : Finset J) (f : J → (P ⟶ Q)) (g : Q ⟶ R),
CategoryTheory.CategoryStruct.comp (∑ j ∈ s, f j) g = ∑ j ∈ s, CategoryTheory.CategoryStruct.comp (f j) g
theorem CategoryTheory.Preadditive.comp_sum E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C}
{J : Type u_1} (s : Finset J) (g : R ⟶ Q) (f : J → (Q ⟶ P)),
CategoryTheory.CategoryStruct.comp g (∑ j ∈ s, f j) = ∑ j ∈ s, CategoryTheory.CategoryStruct.comp g (f j)
theorem CategoryTheory.Preadditive.sum_comp_assoc E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C}
{J : Type u_1} (s : Finset J) (f : J → (P ⟶ Q)) (g : Q ⟶ R) {Z : C} (h : R ⟶ Z),
CategoryTheory.CategoryStruct.comp (∑ j ∈ s, f j) (CategoryTheory.CategoryStruct.comp g h) =
CategoryTheory.CategoryStruct.comp (∑ j ∈ s, CategoryTheory.CategoryStruct.comp (f j) g) h
theorem CategoryTheory.Preadditive.sum_comp'_assoc E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R S : C}
{J : Type u_1} (s : Finset J) (f : J → (P ⟶ Q)) (g : J → (Q ⟶ R)) (h : R ⟶ S) {Z : C} (h_1 : S ⟶ Z),
CategoryTheory.CategoryStruct.comp (∑ j ∈ s, CategoryTheory.CategoryStruct.comp (f j) (g j))
(CategoryTheory.CategoryStruct.comp h h_1) =
CategoryTheory.CategoryStruct.comp
(∑ j ∈ s, CategoryTheory.CategoryStruct.comp (f j) (CategoryTheory.CategoryStruct.comp (g j) h)) h_1
theorem CategoryTheory.Preadditive.sum_comp' E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R S : C}
{J : Type u_1} (s : Finset J) (f : J → (P ⟶ Q)) (g : J → (Q ⟶ R)) (h : R ⟶ S),
CategoryTheory.CategoryStruct.comp (∑ j ∈ s, CategoryTheory.CategoryStruct.comp (f j) (g j)) h =
∑ j ∈ s, CategoryTheory.CategoryStruct.comp (f j) (CategoryTheory.CategoryStruct.comp (g j) h)
instance CategoryTheory.Preadditive.instMonoNegHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q : C} {f : Q ⟶ P}
[CategoryTheory.Mono f], CategoryTheory.Mono (-f)
instance CategoryTheory.Preadditive.instEpiNegHom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q : C} {f : P ⟶ Q}
[CategoryTheory.Epi f], CategoryTheory.Epi (-f)
instance CategoryTheory.Preadditive.preadditiveHasZeroMorphisms E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.Preadditive C] → CategoryTheory.Limits.HasZeroMorphisms C
theorem CategoryTheory.Preadditive.hasZeroObject_of_hasCoproduct E1 #
∀ (C : Type u) [inst : CategoryTheory.Category.{v, u} C] [CategoryTheory.Preadditive C]
[CategoryTheory.Limits.HasCoproduct PEmpty.elim], CategoryTheory.Limits.HasZeroObject C
instance CategoryTheory.Preadditive.instSemiringEnd E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.Preadditive C] → {X : C} → Semiring (CategoryTheory.End X)
This instance is split off from the Ring (End X) instance to speed up instance search.
instance CategoryTheory.Preadditive.instRingEnd E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.Preadditive C] → {X : C} → Ring (CategoryTheory.End X)
instance CategoryTheory.Preadditive.moduleEndRight E0 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] → {X Y : C} → Module (CategoryTheory.End Y) (X ⟶ Y)
theorem CategoryTheory.Preadditive.mono_of_cancel_zero E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {Q R : C} (f : Q ⟶ R),
(∀ {P : C} (g : P ⟶ Q), CategoryTheory.CategoryStruct.comp g f = 0 → g = 0) → CategoryTheory.Mono f
theorem CategoryTheory.Preadditive.epi_of_cancel_zero E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {Q R : C} (f : R ⟶ Q),
(∀ {P : C} (g : Q ⟶ P), CategoryTheory.CategoryStruct.comp f g = 0 → g = 0) → CategoryTheory.Epi f
theorem CategoryTheory.Preadditive.epi_iff_cancel_zero E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {Q R : C} (f : R ⟶ Q),
CategoryTheory.Epi f ↔ ∀ (P : C) (g : Q ⟶ P), CategoryTheory.CategoryStruct.comp f g = 0 → g = 0
theorem CategoryTheory.Preadditive.mono_iff_cancel_zero E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {Q R : C} (f : Q ⟶ R),
CategoryTheory.Mono f ↔ ∀ (P : C) (g : P ⟶ Q), CategoryTheory.CategoryStruct.comp g f = 0 → g = 0
theorem CategoryTheory.Preadditive.epi_of_cokernel_zero E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f : Y ⟶ X}
[inst_2 : CategoryTheory.Limits.HasColimit (CategoryTheory.Limits.parallelPair f 0)],
CategoryTheory.Limits.cokernel.π f = 0 → CategoryTheory.Epi f
theorem CategoryTheory.Preadditive.mono_of_kernel_zero E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f : X ⟶ Y}
[inst_2 : CategoryTheory.Limits.HasLimit (CategoryTheory.Limits.parallelPair f 0)],
CategoryTheory.Limits.kernel.ι f = 0 → CategoryTheory.Mono f
theorem CategoryTheory.Preadditive.epi_of_isZero_cokernel' E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f : Y ⟶ X}
(c : CategoryTheory.Limits.CokernelCofork f) (hc : CategoryTheory.Limits.IsColimit c),
CategoryTheory.Limits.IsZero c.pt → CategoryTheory.Epi f
theorem CategoryTheory.Preadditive.mono_of_isZero_kernel' E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f : X ⟶ Y}
(c : CategoryTheory.Limits.KernelFork f) (hc : CategoryTheory.Limits.IsLimit c),
CategoryTheory.Limits.IsZero c.pt → CategoryTheory.Mono f
theorem CategoryTheory.Preadditive.mono_iff_isZero_kernel' E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f : X ⟶ Y}
(c : CategoryTheory.Limits.KernelFork f) (hc : CategoryTheory.Limits.IsLimit c),
CategoryTheory.Mono f ↔ CategoryTheory.Limits.IsZero c.pt
theorem CategoryTheory.Preadditive.epi_iff_isZero_cokernel' E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f : Y ⟶ X}
(c : CategoryTheory.Limits.CokernelCofork f) (hc : CategoryTheory.Limits.IsColimit c),
CategoryTheory.Epi f ↔ CategoryTheory.Limits.IsZero c.pt
theorem CategoryTheory.Preadditive.mono_of_isZero_kernel E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (f : X ⟶ Y)
[inst_2 : CategoryTheory.Limits.HasKernel f],
CategoryTheory.Limits.IsZero (CategoryTheory.Limits.kernel f) → CategoryTheory.Mono f
theorem CategoryTheory.Preadditive.epi_of_isZero_cokernel E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (f : Y ⟶ X)
[inst_2 : CategoryTheory.Limits.HasCokernel f],
CategoryTheory.Limits.IsZero (CategoryTheory.Limits.cokernel f) → CategoryTheory.Epi f
theorem CategoryTheory.Preadditive.epi_iff_isZero_cokernel E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (f : Y ⟶ X)
[inst_2 : CategoryTheory.Limits.HasCokernel f],
CategoryTheory.Epi f ↔ CategoryTheory.Limits.IsZero (CategoryTheory.Limits.cokernel f)
theorem CategoryTheory.Preadditive.mono_iff_isZero_kernel E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (f : X ⟶ Y)
[inst_2 : CategoryTheory.Limits.HasKernel f],
CategoryTheory.Mono f ↔ CategoryTheory.Limits.IsZero (CategoryTheory.Limits.kernel f)
theorem CategoryTheory.Preadditive.IsIso.comp_left_eq_zero E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (f : P ⟶ Q)
(g : Q ⟶ R) [CategoryTheory.IsIso f], CategoryTheory.CategoryStruct.comp f g = 0 ↔ g = 0
theorem CategoryTheory.Preadditive.IsIso.comp_right_eq_zero E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {P Q R : C} (g : R ⟶ Q)
(f : Q ⟶ P) [CategoryTheory.IsIso f], CategoryTheory.CategoryStruct.comp g f = 0 ↔ g = 0
theorem CategoryTheory.Preadditive.epi_of_cokernel_iso_zero E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C]
[inst_2 : CategoryTheory.Limits.HasZeroObject C] {X Y : C} {f : Y ⟶ X}
[inst_3 : CategoryTheory.Limits.HasColimit (CategoryTheory.Limits.parallelPair f 0)]
(w : CategoryTheory.Limits.cokernel f ≅ 0), CategoryTheory.Epi f
theorem CategoryTheory.Preadditive.mono_of_kernel_iso_zero E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C]
[inst_2 : CategoryTheory.Limits.HasZeroObject C] {X Y : C} {f : X ⟶ Y}
[inst_3 : CategoryTheory.Limits.HasLimit (CategoryTheory.Limits.parallelPair f 0)]
(w : CategoryTheory.Limits.kernel f ≅ 0), CategoryTheory.Mono f
def CategoryTheory.Preadditive.forkOfKernelFork E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{X Y : C} → {f g : X ⟶ Y} → CategoryTheory.Limits.KernelFork (f - g) → CategoryTheory.Limits.Fork f g
Map a kernel cone on the difference of two morphisms to the equalizer fork.
theorem CategoryTheory.Preadditive.forkOfKernelFork_pt E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : X ⟶ Y}
(c : CategoryTheory.Limits.KernelFork (f - g)), (CategoryTheory.Preadditive.forkOfKernelFork c).pt = c.pt
def CategoryTheory.Preadditive.coforkOfCokernelCofork E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{X Y : C} → {f g : Y ⟶ X} → CategoryTheory.Limits.CokernelCofork (f - g) → CategoryTheory.Limits.Cofork f g
Map a cokernel cocone on the difference of two morphisms to the coequalizer cofork.
theorem CategoryTheory.Preadditive.coforkOfCokernelCofork_pt E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : Y ⟶ X}
(c : CategoryTheory.Limits.CokernelCofork (f - g)), (CategoryTheory.Preadditive.coforkOfCokernelCofork c).pt = c.pt
theorem CategoryTheory.Preadditive.coforkOfCokernelCofork_π E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : Y ⟶ X}
(c : CategoryTheory.Limits.CokernelCofork (f - g)),
(CategoryTheory.Preadditive.coforkOfCokernelCofork c).π = CategoryTheory.Limits.Cofork.π c
theorem CategoryTheory.Preadditive.forkOfKernelFork_ι E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : X ⟶ Y}
(c : CategoryTheory.Limits.KernelFork (f - g)),
(CategoryTheory.Preadditive.forkOfKernelFork c).ι = CategoryTheory.Limits.Fork.ι c
def CategoryTheory.Preadditive.kernelForkOfFork E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{X Y : C} → {f g : X ⟶ Y} → CategoryTheory.Limits.Fork f g → CategoryTheory.Limits.KernelFork (f - g)
Map any equalizer fork to a cone on the difference of the two morphisms.
def CategoryTheory.Preadditive.cokernelCoforkOfCofork E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{X Y : C} → {f g : Y ⟶ X} → CategoryTheory.Limits.Cofork f g → CategoryTheory.Limits.CokernelCofork (f - g)
Map any coequalizer cofork to a cocone on the difference of the two morphisms.
theorem CategoryTheory.Preadditive.cokernelCoforkOfCofork_π E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : Y ⟶ X}
(c : CategoryTheory.Limits.Cofork f g),
CategoryTheory.Limits.Cofork.π (CategoryTheory.Preadditive.cokernelCoforkOfCofork c) = c.π
theorem CategoryTheory.Preadditive.kernelForkOfFork_ι E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : X ⟶ Y}
(c : CategoryTheory.Limits.Fork f g),
CategoryTheory.Limits.Fork.ι (CategoryTheory.Preadditive.kernelForkOfFork c) = c.ι
theorem CategoryTheory.Preadditive.cokernelCoforkOfCofork_ofπ E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : Y ⟶ X}
{P : C} (π : X ⟶ P) (w : CategoryTheory.CategoryStruct.comp f π = CategoryTheory.CategoryStruct.comp g π),
CategoryTheory.Preadditive.cokernelCoforkOfCofork (CategoryTheory.Limits.Cofork.ofπ π w) =
CategoryTheory.Limits.CokernelCofork.ofπ π ⋯
theorem CategoryTheory.Preadditive.kernelForkOfFork_ofι E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : X ⟶ Y}
{P : C} (ι : P ⟶ X) (w : CategoryTheory.CategoryStruct.comp ι f = CategoryTheory.CategoryStruct.comp ι g),
CategoryTheory.Preadditive.kernelForkOfFork (CategoryTheory.Limits.Fork.ofι ι w) =
CategoryTheory.Limits.KernelFork.ofι ι ⋯
def CategoryTheory.Preadditive.isLimitForkOfKernelFork E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{X Y : C} →
{f g : X ⟶ Y} →
{c : CategoryTheory.Limits.KernelFork (f - g)} →
CategoryTheory.Limits.IsLimit c →
CategoryTheory.Limits.IsLimit (CategoryTheory.Preadditive.forkOfKernelFork c)
A kernel of f - g is an equalizer of f and g.
def CategoryTheory.Preadditive.isColimitCoforkOfCokernelCofork E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{X Y : C} →
{f g : Y ⟶ X} →
{c : CategoryTheory.Limits.CokernelCofork (f - g)} →
CategoryTheory.Limits.IsColimit c →
CategoryTheory.Limits.IsColimit (CategoryTheory.Preadditive.coforkOfCokernelCofork c)
A cokernel of f - g is a coequalizer of f and g.
theorem CategoryTheory.Preadditive.isColimitCoforkOfCokernelCofork_desc E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : Y ⟶ X}
{c : CategoryTheory.Limits.CokernelCofork (f - g)} (i : CategoryTheory.Limits.IsColimit c)
(s : CategoryTheory.Limits.Cofork f g),
(CategoryTheory.Preadditive.isColimitCoforkOfCokernelCofork i).desc s =
i.desc (CategoryTheory.Preadditive.cokernelCoforkOfCofork s)
theorem CategoryTheory.Preadditive.isLimitForkOfKernelFork_lift E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} {f g : X ⟶ Y}
{c : CategoryTheory.Limits.KernelFork (f - g)} (i : CategoryTheory.Limits.IsLimit c)
(s : CategoryTheory.Limits.Fork f g),
(CategoryTheory.Preadditive.isLimitForkOfKernelFork i).lift s = i.lift (CategoryTheory.Preadditive.kernelForkOfFork s)
def CategoryTheory.Preadditive.isLimitKernelForkOfFork E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{X Y : C} →
{f g : X ⟶ Y} →
{c : CategoryTheory.Limits.Fork f g} →
CategoryTheory.Limits.IsLimit c →
CategoryTheory.Limits.IsLimit (CategoryTheory.Preadditive.kernelForkOfFork c)
An equalizer of f and g is a kernel of f - g.
def CategoryTheory.Preadditive.isColimitCokernelCoforkOfCofork E1 #
{C : Type u} →
[inst : CategoryTheory.Category.{v, u} C] →
[inst_1 : CategoryTheory.Preadditive C] →
{X Y : C} →
{f g : Y ⟶ X} →
{c : CategoryTheory.Limits.Cofork f g} →
CategoryTheory.Limits.IsColimit c →
CategoryTheory.Limits.IsColimit (CategoryTheory.Preadditive.cokernelCoforkOfCofork c)
A coequalizer of f and g is a cokernel of f - g.
theorem CategoryTheory.Preadditive.hasEqualizer_of_hasKernel E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (f g : X ⟶ Y)
[CategoryTheory.Limits.HasKernel (f - g)], CategoryTheory.Limits.HasEqualizer f g
A preadditive category has an equalizer for f and g if it has a kernel for f - g.
theorem CategoryTheory.Preadditive.hasCoequalizer_of_hasCokernel E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (f g : Y ⟶ X)
[CategoryTheory.Limits.HasCokernel (f - g)], CategoryTheory.Limits.HasCoequalizer f g
A preadditive category has a coequalizer for f and g if it has a cokernel for f - g.
theorem CategoryTheory.Preadditive.hasKernel_of_hasEqualizer E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (f g : X ⟶ Y)
[CategoryTheory.Limits.HasEqualizer f g], CategoryTheory.Limits.HasKernel (f - g)
A preadditive category has a kernel for f - g if it has an equalizer for f and g.
theorem CategoryTheory.Preadditive.hasCokernel_of_hasCoequalizer E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (f g : Y ⟶ X)
[CategoryTheory.Limits.HasCoequalizer f g], CategoryTheory.Limits.HasCokernel (f - g)
A preadditive category has a cokernel for f - g if it has a coequalizer for f and g.
theorem CategoryTheory.Preadditive.hasEqualizers_of_hasKernels E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C]
[CategoryTheory.Limits.HasKernels C], CategoryTheory.Limits.HasEqualizers C
If a preadditive category has all kernels, then it also has all equalizers.
theorem CategoryTheory.Preadditive.hasCoequalizers_of_hasCokernels E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C]
[CategoryTheory.Limits.HasCokernels C], CategoryTheory.Limits.HasCoequalizers C
If a preadditive category has all cokernels, then it also has all coequalizers.
instance CategoryTheory.Preadditive.instSMulUnitsIntIso E0 #
{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.Preadditive C] → {X Y : C} → SMul ℤˣ (X ≅ Y)
theorem CategoryTheory.Preadditive.smul_iso_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (a : ℤˣ)
(e : X ≅ Y), (a • e).hom = a • e.hom
theorem CategoryTheory.Preadditive.smul_iso_inv E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (a : ℤˣ)
(e : X ≅ Y), (a • e).inv = a⁻¹ • e.inv
instance CategoryTheory.Preadditive.instNegIso E0 #
{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.Preadditive C] → {X Y : C} → Neg (X ≅ Y)
theorem CategoryTheory.Preadditive.neg_iso_hom E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (e : X ≅ Y),
(-e).hom = -e.hom
theorem CategoryTheory.Preadditive.neg_iso_inv E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Preadditive C] {X Y : C} (e : X ≅ Y),
(-e).inv = -e.inv