-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(category_theory/preadditive/projective): split out two lemmas t…
…o reduce imports (#18688) Motivated by all the unneeded imports visible in https://tqft.net/mathlib4/2023-03-29/category_theory.monoidal.tor.pdf Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
- Loading branch information
1 parent
ec1c7d8
commit f8d8465
Showing
8 changed files
with
110 additions
and
63 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
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
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
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,53 @@ | ||
/- | ||
Copyright (c) 2020 Markus Himmel. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Markus Himmel, Scott Morrison | ||
-/ | ||
import category_theory.preadditive.yoneda.basic | ||
import category_theory.preadditive.injective | ||
import algebra.category.Group.epi_mono | ||
import algebra.category.Module.epi_mono | ||
|
||
/-! | ||
An object is injective iff the preadditive yoneda functor on it preserves epimorphisms. | ||
-/ | ||
|
||
universes v u | ||
|
||
open opposite | ||
|
||
namespace category_theory | ||
variables {C : Type u} [category.{v} C] | ||
|
||
section preadditive | ||
variables [preadditive C] | ||
|
||
namespace injective | ||
|
||
lemma injective_iff_preserves_epimorphisms_preadditive_yoneda_obj (J : C) : | ||
injective J ↔ (preadditive_yoneda.obj J).preserves_epimorphisms := | ||
begin | ||
rw injective_iff_preserves_epimorphisms_yoneda_obj, | ||
refine ⟨λ (h : (preadditive_yoneda.obj J ⋙ (forget _)).preserves_epimorphisms), _, _⟩, | ||
{ exactI functor.preserves_epimorphisms_of_preserves_of_reflects (preadditive_yoneda.obj J) | ||
(forget _) }, | ||
{ introI, | ||
exact (infer_instance : (preadditive_yoneda.obj J ⋙ forget _).preserves_epimorphisms) } | ||
end | ||
|
||
lemma injective_iff_preserves_epimorphisms_preadditive_yoneda_obj' (J : C) : | ||
injective J ↔ (preadditive_yoneda_obj J).preserves_epimorphisms := | ||
begin | ||
rw injective_iff_preserves_epimorphisms_yoneda_obj, | ||
refine ⟨λ (h : (preadditive_yoneda_obj J ⋙ (forget _)).preserves_epimorphisms), _, _⟩, | ||
{ exactI functor.preserves_epimorphisms_of_preserves_of_reflects (preadditive_yoneda_obj J) | ||
(forget _) }, | ||
{ introI, | ||
exact (infer_instance : (preadditive_yoneda_obj J ⋙ forget _).preserves_epimorphisms) } | ||
end | ||
|
||
end injective | ||
|
||
end preadditive | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/- | ||
Copyright (c) 2020 Markus Himmel. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Markus Himmel, Scott Morrison | ||
-/ | ||
import category_theory.preadditive.yoneda.basic | ||
import category_theory.preadditive.projective | ||
import algebra.category.Group.epi_mono | ||
import algebra.category.Module.epi_mono | ||
|
||
/-! | ||
An object is projective iff the preadditive coyoneda functor on it preserves epimorphisms. | ||
-/ | ||
|
||
universes v u | ||
|
||
open opposite | ||
|
||
namespace category_theory | ||
variables {C : Type u} [category.{v} C] | ||
|
||
section preadditive | ||
variables [preadditive C] | ||
|
||
namespace projective | ||
|
||
lemma projective_iff_preserves_epimorphisms_preadditive_coyoneda_obj (P : C) : | ||
projective P ↔ (preadditive_coyoneda.obj (op P)).preserves_epimorphisms := | ||
begin | ||
rw projective_iff_preserves_epimorphisms_coyoneda_obj, | ||
refine ⟨λ (h : (preadditive_coyoneda.obj (op P) ⋙ (forget _)).preserves_epimorphisms), _, _⟩, | ||
{ exactI functor.preserves_epimorphisms_of_preserves_of_reflects (preadditive_coyoneda.obj (op P)) | ||
(forget _) }, | ||
{ introI, | ||
exact (infer_instance : (preadditive_coyoneda.obj (op P) ⋙ forget _).preserves_epimorphisms) } | ||
end | ||
|
||
lemma projective_iff_preserves_epimorphisms_preadditive_coyoneda_obj' (P : C) : | ||
projective P ↔ (preadditive_coyoneda_obj (op P)).preserves_epimorphisms := | ||
begin | ||
rw projective_iff_preserves_epimorphisms_coyoneda_obj, | ||
refine ⟨λ (h : (preadditive_coyoneda_obj (op P) ⋙ (forget _)).preserves_epimorphisms), _, _⟩, | ||
{ exactI functor.preserves_epimorphisms_of_preserves_of_reflects (preadditive_coyoneda_obj (op P)) | ||
(forget _) }, | ||
{ introI, | ||
exact (infer_instance : (preadditive_coyoneda_obj (op P) ⋙ forget _).preserves_epimorphisms) } | ||
end | ||
|
||
end projective | ||
|
||
end preadditive | ||
|
||
end category_theory |