The category of R-modules #
If R is a semiring, SemimoduleCat.{v} R is the category of bundled R-semimodules with carrier
in the universe v. We show that it is preadditive and show that being an isomorphism and
monomorphism are equivalent to being a linear equivalence and an injective linear map respectively.
Implementation details #
To construct an object in the category of R-semimodules from a type M with an instance of the
Module typeclass, write of R M. There is a coercion in the other direction.
The roundtrip ↑(of R M) is definitionally equal to M itself (when M is a type with Module
instance), and so is of R ↑M (when M : SemimoduleCat R M).
The morphisms are given their own type, not identified with LinearMap.
There is a cast from morphisms in Module R to linear maps,
written f.hom (SemimoduleCat.Hom.hom).
To go from linear maps to morphisms in Module R, use SemimoduleCat.ofHom.
Similarly, given an isomorphism f : M ≅ N use f.toLinearEquiv and given a linear equiv
f : M ≃ₗ[R] N, use f.toModuleIso.
The category of R-semimodules and their morphisms.
Note that in the case of R = ℕ, we can not
impose here that the ℕ-multiplication field from the module structure is defeq to the one coming
from the isAddCommMonoid structure (contrary to what we do for all module structures in
mathlib), which creates some difficulties down the road.
- carrier : Type v
the underlying type of an object in
SemimoduleCat R - isAddCommMonoid : AddCommMonoid ↑self
- isModule : Module R ↑self
Instances For
The object in the category of R-algebras associated to a type equipped with the appropriate
typeclasses. This is the preferred way to construct a term of SemimoduleCat R.
Instances For
Turn a morphism in SemimoduleCat back into a LinearMap.
Instances For
Typecheck a LinearMap as a morphism in SemimoduleCat.
Instances For
Use the ConcreteCategory.hom projection for @[simps] lemmas.
Instances For
The results below duplicate the ConcreteCategory simp lemmas, but we can keep them for dsimp.
Convenience shortcut for SemimoduleCat.hom_bijective.injective.
Convenience shortcut for SemimoduleCat.hom_bijective.surjective.
SemimoduleCat.Hom.hom bundled as an Equiv.
Instances For
Reinterpreting a linear map in the category of R-modules
Instances For
Build an isomorphism in the category Module R from a LinearEquiv between Modules.
Instances For
Build a LinearEquiv from an isomorphism in the category SemimoduleCat R.
Instances For
linear equivalences between Modules are the same as (isomorphic to) isomorphisms
in SemimoduleCat
Instances For
Alias of SemimoduleCat.hom_nsmul.
SemimoduleCat.Hom.hom bundled as an additive equivalence.
Instances For
SemimoduleCat.Hom.hom bundled as a linear equivalence.
Instances For
Let S be an S₀-algebra. Then S-modules are modules over S₀.
Instances For
Turn a bilinear map into a homomorphism.
Instances For
Turn a homomorphism into a bilinear map.
Instances For
@[simp] lemmas for LinearMap.comp and categorical identities.