Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(category_theory/abelian): if D is abelian so is C ⥤ D (#13686)
Needed for LTE, and also useful to show `Rep k G` is abelian. Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
- Loading branch information
1 parent
43e84cd
commit 4e50b68
Showing
4 changed files
with
139 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/- | ||
Copyright (c) 2022 Scott Morrison. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Scott Morrison | ||
-/ | ||
import category_theory.abelian.basic | ||
import category_theory.preadditive.functor_category | ||
import category_theory.limits.shapes.functor_category | ||
import category_theory.limits.preserves.shapes.kernels | ||
|
||
/-! | ||
# If `D` is abelian, then the functor category `C ⥤ D` is also abelian. | ||
-/ | ||
|
||
noncomputable theory | ||
|
||
namespace category_theory | ||
open category_theory.limits | ||
|
||
universes w v u | ||
variables {C : Type (max v u)} [category.{v} C] | ||
variables {D : Type w} [category.{max v u} D] [abelian D] | ||
|
||
namespace abelian | ||
|
||
namespace functor_category | ||
variables {F G : C ⥤ D} (α : F ⟶ G) (X : C) | ||
|
||
/-- The evaluation of the abelian coimage in a functor category is | ||
the abelian coimage of the corresponding component. -/ | ||
@[simps] | ||
def coimage_obj_iso : (abelian.coimage α).obj X ≅ abelian.coimage (α.app X) := | ||
preserves_cokernel.iso ((evaluation C D).obj X) _ ≪≫ | ||
cokernel.map_iso _ _ (preserves_kernel.iso ((evaluation C D).obj X) _) (iso.refl _) | ||
begin | ||
dsimp, | ||
simp only [category.comp_id], | ||
exact (kernel_comparison_comp_ι _ ((evaluation C D).obj X)).symm, | ||
end | ||
|
||
/-- The evaluation of the abelian image in a functor category is | ||
the abelian image of the corresponding component. -/ | ||
@[simps] | ||
def image_obj_iso : (abelian.image α).obj X ≅ abelian.image (α.app X) := | ||
preserves_kernel.iso ((evaluation C D).obj X) _ ≪≫ | ||
kernel.map_iso _ _ (iso.refl _) (preserves_cokernel.iso ((evaluation C D).obj X) _) | ||
begin | ||
apply (cancel_mono (preserves_cokernel.iso ((evaluation C D).obj X) α).inv).1, | ||
simp only [category.assoc, iso.hom_inv_id], | ||
dsimp, | ||
simp only [category.id_comp, category.comp_id], | ||
exact (π_comp_cokernel_comparison _ ((evaluation C D).obj X)).symm, | ||
end | ||
|
||
lemma coimage_image_comparison_app : | ||
coimage_image_comparison (α.app X) = | ||
(coimage_obj_iso α X).inv ≫ (coimage_image_comparison α).app X ≫ (image_obj_iso α X).hom := | ||
begin | ||
ext, | ||
dsimp, | ||
simp only [category.comp_id, category.id_comp, category.assoc, | ||
coimage_image_factorisation, limits.cokernel.π_desc_assoc, limits.kernel.lift_ι], | ||
simp only [←evaluation_obj_map C D X], | ||
erw kernel_comparison_comp_ι _ ((evaluation C D).obj X), | ||
erw π_comp_cokernel_comparison_assoc _ ((evaluation C D).obj X), | ||
simp only [←functor.map_comp], | ||
simp only [coimage_image_factorisation, evaluation_obj_map], | ||
end | ||
|
||
lemma coimage_image_comparison_app' : | ||
(coimage_image_comparison α).app X = | ||
(coimage_obj_iso α X).hom ≫ coimage_image_comparison (α.app X) ≫ (image_obj_iso α X).inv := | ||
by simp only [coimage_image_comparison_app, iso.hom_inv_id_assoc, iso.hom_inv_id, category.assoc, | ||
category.comp_id] | ||
|
||
instance functor_category_is_iso_coimage_image_comparison : | ||
is_iso (abelian.coimage_image_comparison α) := | ||
begin | ||
haveI : ∀ X : C, is_iso ((abelian.coimage_image_comparison α).app X), | ||
{ intros, rw coimage_image_comparison_app', apply_instance, }, | ||
apply nat_iso.is_iso_of_is_iso_app, | ||
end | ||
|
||
end functor_category | ||
|
||
noncomputable instance : abelian (C ⥤ D) := | ||
abelian.of_coimage_image_comparison_is_iso | ||
|
||
end abelian | ||
|
||
end category_theory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/- | ||
Copyright (c) 2022 Scott Morrison. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Scott Morrison | ||
-/ | ||
import category_theory.limits.shapes.finite_limits | ||
import category_theory.limits.functor_category | ||
|
||
/-! | ||
# If `D` has finite (co)limits, so do the functor categories `C ⥤ D`. | ||
These are boiler-plate instances, in their own file as neither import otherwise needs the other. | ||
-/ | ||
|
||
open category_theory | ||
|
||
namespace category_theory.limits | ||
|
||
universes w v u | ||
variables {C : Type (max v u)} [category.{v} C] | ||
variables {D : Type w} [category.{max v u} D] | ||
|
||
instance functor_category_has_finite_limits [has_finite_limits D] : | ||
has_finite_limits (C ⥤ D) := | ||
{ out := λ J _ _, by exactI infer_instance, } | ||
|
||
instance functor_category_has_finite_colimits [has_finite_colimits D] : | ||
has_finite_colimits (C ⥤ D) := | ||
{ out := λ J _ _, by exactI infer_instance, } | ||
|
||
end category_theory.limits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters