Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(algebra/category/Module): R-mod has enough projectives (#7113)
Another piece of @TwoFX's `projective` branch, lightly edited. Co-authored-by: Markus Himmel <markus@himmel-villmar.de> Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
- Loading branch information
1 parent
bbf6150
commit a617d0a
Showing
2 changed files
with
92 additions
and
9 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,55 @@ | ||
/- | ||
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.abelian.projective | ||
import algebra.category.Module.abelian | ||
import linear_algebra.finsupp_vector_space | ||
import algebra.module.projective | ||
|
||
/-! | ||
# The category of `R`-modules has enough projectives. | ||
-/ | ||
|
||
universes v u | ||
|
||
open category_theory | ||
open category_theory.limits | ||
open linear_map | ||
|
||
open_locale Module | ||
|
||
/-- The categorical notion of projective object agrees with the explicit module-theoretic notion. -/ | ||
theorem is_projective.iff_projective {R : Type u} [ring R] | ||
{P : Type (max u v)} [add_comm_group P] [module R P] : | ||
is_projective R P ↔ projective (Module.of R P) := | ||
⟨λ h, { factors := λ E X f e epi, h.lifting_property _ _ ((Module.epi_iff_surjective _).mp epi), }, | ||
λ h, is_projective.of_lifting_property (λ E X mE mX sE sX f g s, | ||
begin | ||
resetI, | ||
haveI : epi ↟f := (Module.epi_iff_surjective ↟f).mpr s, | ||
exact ⟨projective.factor_thru ↟g ↟f, projective.factor_thru_comp ↟g ↟f⟩, | ||
end)⟩ | ||
|
||
namespace Module | ||
variables {R : Type u} [ring R] {M : Module.{(max u v)} R} | ||
|
||
/-- Modules that have a basis are projective. -/ | ||
-- We transport the corresponding result from `is_projective`. | ||
lemma projective_of_free {ι : Type*} (b : basis ι R M) : projective M := | ||
projective.of_iso (Module.of_self_iso _) | ||
((is_projective.iff_projective).mp (is_projective.of_free b)) | ||
|
||
/-- The category of modules has enough projectives, since every module is a quotient of a free | ||
module. -/ | ||
instance Module_enough_projectives : enough_projectives (Module.{max u v} R) := | ||
{ presentation := | ||
λ M, | ||
⟨{ P := Module.of R (M →₀ R), | ||
projective := projective_of_free finsupp.basis_single_one, | ||
f := finsupp.basis_single_one.constr ℕ id, | ||
epi := (epi_iff_range_eq_top _).mpr | ||
(range_eq_top.2 (λ m, ⟨finsupp.single m (1 : R), by simp [basis.constr]⟩)) }⟩, } | ||
|
||
end Module |
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