-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: category of $R$-modules has enough injectives (#7392)
Co-authored-by: Junyan Xu <junyanxumath@gmail.com>
- Loading branch information
1 parent
0622d7e
commit 7ba6897
Showing
5 changed files
with
77 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/- | ||
Copyright (c) 2023 Jujian Zhang. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Jujian Zhang | ||
-/ | ||
import Mathlib.Algebra.Category.ModuleCat.Abelian | ||
import Mathlib.Algebra.Category.ModuleCat.ChangeOfRings | ||
import Mathlib.Algebra.Category.GroupCat.Abelian | ||
import Mathlib.Algebra.Category.GroupCat.Injective | ||
import Mathlib.Algebra.Category.GroupCat.ZModuleEquivalence | ||
|
||
/-! | ||
# Category of $R$-modules has enough injectives | ||
we lift enough injectives of abelian groups to arbitrary $R$-modules by adjoint functors | ||
`restrictScalars ⊣ coextendScalars` | ||
## Implementation notes | ||
This file is not part of `Algebra/Module/Injective.lean` to prevent import loop: enough-injectives | ||
of abelian groups needs `Algebra/Module/Injective.lean` and this file needs enough-injectives of | ||
abelian groups. | ||
-/ | ||
|
||
open CategoryTheory | ||
|
||
universe u v | ||
variable (R : Type u) [Ring R] | ||
|
||
instance : EnoughInjectives (ModuleCat.{v} ℤ) := | ||
EnoughInjectives.of_equivalence (forget₂ (ModuleCat ℤ) AddCommGroupCat) | ||
|
||
lemma ModuleCat.enoughInjectives : EnoughInjectives (ModuleCat.{max v u} R) := | ||
EnoughInjectives.of_adjunction (ModuleCat.restrictCoextendScalarsAdj.{max v u} (algebraMap ℤ R)) |
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