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/closed/functor_category): the functor category f…
…rom a groupoid to a monoidal closed category is monoidal closed (#15643) Co-authored-by: antoinelab01 <66086247+antoinelab01@users.noreply.github.com>
- Loading branch information
1 parent
619fd4d
commit c0e00a8
Showing
3 changed files
with
88 additions
and
0 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,73 @@ | ||
/- | ||
Copyright (c) 2022 Antoine Labelle. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Antoine Labelle | ||
-/ | ||
import category_theory.closed.monoidal | ||
import category_theory.monoidal.functor_category | ||
|
||
/-! | ||
# Functors from a groupoid into a monoidal closed category form a monoidal closed category. | ||
(Using the pointwise monoidal structure on the functor category.) | ||
-/ | ||
|
||
noncomputable theory | ||
|
||
open category_theory | ||
open category_theory.monoidal_category | ||
open category_theory.monoidal_closed | ||
|
||
namespace category_theory.functor | ||
|
||
variables {C D : Type*} [groupoid D] [category C] [monoidal_category C] [monoidal_closed C] | ||
|
||
/-- Auxiliary definition for `category_theory.monoidal_closed.functor_closed`. | ||
The internal hom functor `F ⟶[C] -` -/ | ||
@[simps] def closed_ihom (F : D ⥤ C) : (D ⥤ C) ⥤ (D ⥤ C) := | ||
((whiskering_right₂ D Cᵒᵖ C C).obj internal_hom).obj (groupoid.inv_functor D ⋙ F.op) | ||
|
||
/-- Auxiliary definition for `category_theory.monoidal_closed.functor_closed`. | ||
The unit for the adjunction `(tensor_left F) ⊣ (ihom F)`. -/ | ||
@[simps] | ||
def closed_unit (F : D ⥤ C) : 𝟭 (D ⥤ C) ⟶ (tensor_left F) ⋙ (closed_ihom F) := | ||
{ app := λ G, | ||
{ app := λ X, (ihom.coev (F.obj X)).app (G.obj X), | ||
naturality' := begin | ||
intros X Y f, | ||
dsimp, | ||
simp only [ihom.coev_naturality, closed_ihom_obj_map, monoidal.tensor_obj_map], | ||
dsimp, | ||
rw [coev_app_comp_pre_app_assoc, ←functor.map_comp], | ||
simp, | ||
end } } | ||
|
||
/-- Auxiliary definition for `category_theory.monoidal_closed.functor_closed`. | ||
The counit for the adjunction `(tensor_left F) ⊣ (ihom F)`. -/ | ||
@[simps] | ||
def closed_counit (F : D ⥤ C) : (closed_ihom F) ⋙ (tensor_left F) ⟶ 𝟭 (D ⥤ C) := | ||
{ app := λ G, | ||
{ app := λ X, (ihom.ev (F.obj X)).app (G.obj X), | ||
naturality' := begin | ||
intros X Y f, | ||
dsimp, | ||
simp only [closed_ihom_obj_map, pre_comm_ihom_map], | ||
rw [←tensor_id_comp_id_tensor, id_tensor_comp], | ||
simp, | ||
end } } | ||
|
||
/-- If `C` is a monoidal closed category and `D` is groupoid, then every functor `F : D ⥤ C` is | ||
closed in the functor category `F : D ⥤ C` with the pointwise monoidal structure. -/ | ||
@[simps] instance closed (F : D ⥤ C) : closed F := | ||
{ is_adj := | ||
{ right := closed_ihom F, | ||
adj := adjunction.mk_of_unit_counit | ||
{ unit := closed_unit F, | ||
counit := closed_counit F } } } | ||
|
||
/-- If `C` is a monoidal closed category and `D` is groupoid, then the functor category `D ⥤ C`, | ||
with the pointwise monoidal structure, is monoidal closed. -/ | ||
@[simps] instance monoidal_closed : monoidal_closed (D ⥤ C) := | ||
{ closed' := by apply_instance } | ||
|
||
end category_theory.functor |
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