The Karoubi envelope of a category #
In this file, we define the Karoubi envelope Karoubi C of a category C.
Main constructions and definitions #
Karoubi Cis the Karoubi envelope of a categoryC: it is an idempotent complete category. It is also preadditive whenCis preadditive.toKaroubi C : C ⥤ Karoubi Cis a fully faithful functor, which is an equivalence (toKaroubiIsEquivalence) whenCis idempotent complete.
In a preadditive category C, when an object X decomposes as X ≅ P ⨿ Q, one may
consider P as a direct factor of X and up to unique isomorphism, it is determined by the
obvious idempotent X ⟶ P ⟶ X which is the projection onto P with kernel Q. More generally,
one may define a formal direct factor of an object X : C : it consists of an idempotent
p : X ⟶ X which is thought as the "formal image" of p. The type Karoubi C shall be the
type of the objects of the karoubi envelope of C. It makes sense for any category C.
- X : C
an object of the underlying category
- p : self.X ⟶ self.X
an endomorphism of the object
- idem : CategoryTheory.CategoryStruct.comp self.p self.p = self.p
the condition that the given endomorphism is an idempotent
Instances For
A morphism P ⟶ Q in the category Karoubi C is a morphism in the underlying category
C which satisfies a relation, which in the preadditive case, expresses that it induces a
map between the corresponding "formal direct factors" and that it vanishes on the complement
formal direct factor.
- f : P.X ⟶ Q.X
a morphism between the underlying objects
- comm : self.f = CategoryTheory.CategoryStruct.comp P.p (CategoryTheory.CategoryStruct.comp self.f Q.p)
compatibility of the given morphism with the given idempotents
Instances For
Equations
- CategoryTheory.Idempotents.Karoubi.instInhabitedHom P Q = { default := { f := 0, comm := ⋯ } }
The category structure on the karoubi envelope of a category.
Equations
- CategoryTheory.Idempotents.Karoubi.instCategoryKaroubi = CategoryTheory.Category.mk ⋯ ⋯ ⋯
It is possible to coerce an object of C into an object of Karoubi C.
See also the functor toKaroubi.
Equations
- CategoryTheory.Idempotents.Karoubi.coe = { coe := fun (X : C) => { X := X, p := CategoryTheory.CategoryStruct.id X, idem := ⋯ } }
The obvious fully faithful functor toKaroubi sends an object X : C to the obvious
formal direct factor of X given by 𝟙 X.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- ⋯ = ⋯
Equations
- CategoryTheory.Idempotents.instAddCommGroupHom = AddCommGroup.mk ⋯
The map sending f : P ⟶ Q to f.f : P.X ⟶ Q.X is additive.
Equations
- CategoryTheory.Idempotents.Karoubi.inclusionHom P Q = { toZeroHom := { toFun := fun (f : P ⟶ Q) => f.f, map_zero' := ⋯ }, map_add' := ⋯ }
Instances For
The category Karoubi C is preadditive if C is.
Equations
- CategoryTheory.Idempotents.instPreadditiveKaroubiInstCategoryKaroubi = { homGroup := fun (P Q : CategoryTheory.Idempotents.Karoubi C) => inferInstance, add_comp := ⋯, comp_add := ⋯ }
Equations
- ⋯ = ⋯
If C is idempotent complete, the functor toKaroubi : C ⥤ Karoubi C is an equivalence.
Equations
Instances For
The equivalence C ≅ Karoubi C when C is idempotent complete.
Equations
Instances For
Equations
- ⋯ = ⋯
The split mono which appears in the factorisation decompId P.
Equations
- CategoryTheory.Idempotents.Karoubi.decompId_i P = { f := P.p, comm := ⋯ }
Instances For
The split epi which appears in the factorisation decompId P.
Equations
- CategoryTheory.Idempotents.Karoubi.decompId_p P = { f := P.p, comm := ⋯ }
Instances For
The formal direct factor of P.X given by the idempotent P.p in the category C
is actually a direct factor in the category Karoubi C.