| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Consequences of a monomorphism between modules |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --safe --cubical-compatible #-} |
| 8 |
|
| 9 |
open import Algebra.Module.Bundles.Raw using (RawModule) |
| 10 |
open import Algebra.Module.Morphism.Structures using (IsModuleMonomorphism) |
| 11 |
|
| 12 |
module Algebra.Module.Morphism.ModuleMonomorphism |
| 13 |
{r a b ℓ₁ ℓ₂} {R : Set r} {M : RawModule R a ℓ₁} {N : RawModule R b ℓ₂} {⟦_⟧} |
| 14 |
(isModuleMonomorphism : IsModuleMonomorphism M N ⟦_⟧) |
| 15 |
where |
| 16 |
|
| 17 |
open IsModuleMonomorphism isModuleMonomorphism |
| 18 |
private |
| 19 |
module M = RawModule M |
| 20 |
module N = RawModule N |
| 21 |
|
| 22 |
open import Algebra.Bundles using (CommutativeRing) |
| 23 |
open import Algebra.Core using (Op₂) |
| 24 |
open import Algebra.Module.Structures using (IsModule) |
| 25 |
open import Algebra.Structures using (IsCommutativeRing) |
| 26 |
open import Relation.Binary.Core using (Rel) |
| 27 |
|
| 28 |
------------------------------------------------------------------------ |
| 29 |
-- Re-exports |
| 30 |
|
| 31 |
open import Algebra.Module.Morphism.BimoduleMonomorphism isBimoduleMonomorphism public |
| 32 |
open import Algebra.Module.Morphism.SemimoduleMonomorphism isSemimoduleMonomorphism public |
| 33 |
using (*ₗ-*ᵣ-coincident; isSemimodule) |
| 34 |
|
| 35 |
------------------------------------------------------------------------ |
| 36 |
-- Structures |
| 37 |
|
| 38 |
module _ {ℓr} {_≈_ : Rel R ℓr} {_+_ _*_ -_ 0# 1#} (R-isCommutativeRing : IsCommutativeRing _≈_ _+_ _*_ -_ 0# 1#) where |
| 39 |
|
| 40 |
private |
| 41 |
R-commutativeRing : CommutativeRing _ _ |
| 42 |
R-commutativeRing = record { isCommutativeRing = R-isCommutativeRing } |
| 43 |
|
| 44 |
open IsCommutativeRing R-isCommutativeRing |
| 45 |
|
| 46 |
isModule |
| 47 |
: IsModule R-commutativeRing N._≈ᴹ_ N._+ᴹ_ N.0ᴹ N.-ᴹ_ N._*ₗ_ N._*ᵣ_ |
| 48 |
→ IsModule R-commutativeRing M._≈ᴹ_ M._+ᴹ_ M.0ᴹ M.-ᴹ_ M._*ₗ_ M._*ᵣ_ |
| 49 |
isModule isModule = record |
| 50 |
{ isBimodule = isBimodule isRing isRing NN.isBimodule |
| 51 |
; *ₗ-*ᵣ-coincident = *ₗ-*ᵣ-coincident NN.+ᴹ-isMagma NN.*ₗ-*ᵣ-coincident |
| 52 |
} |
| 53 |
where |
| 54 |
module NN = IsModule isModule |