| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Consequences of a monomorphism between right modules |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Algebra.Module.Bundles.Raw using (RawRightModule) |
| 10 |
open import Algebra.Module.Morphism.Structures using (IsRightModuleMonomorphism) |
| 11 |
|
| 12 |
module Algebra.Module.Morphism.RightModuleMonomorphism |
| 13 |
{r a b ℓ₁ ℓ₂} {R : Set r} {M : RawRightModule R a ℓ₁} {N : RawRightModule R b ℓ₂} {⟦_⟧} |
| 14 |
(isRightModuleMonomorphism : IsRightModuleMonomorphism M N ⟦_⟧) |
| 15 |
where |
| 16 |
|
| 17 |
open IsRightModuleMonomorphism isRightModuleMonomorphism |
| 18 |
module M = RawRightModule M |
| 19 |
module N = RawRightModule N |
| 20 |
|
| 21 |
open import Algebra.Bundles using (Ring) |
| 22 |
open import Algebra.Core using (Op₂) |
| 23 |
open import Algebra.Module.Structures using (IsRightModule) |
| 24 |
open import Algebra.Structures using (IsRing) |
| 25 |
open import Relation.Binary.Core using (Rel) |
| 26 |
|
| 27 |
------------------------------------------------------------------------ |
| 28 |
-- Re-exports |
| 29 |
|
| 30 |
open import Algebra.Morphism.GroupMonomorphism +ᴹ-isGroupMonomorphism public |
| 31 |
using () renaming |
| 32 |
( inverseˡ to -ᴹ‿inverseˡ |
| 33 |
; inverseʳ to -ᴹ‿inverseʳ |
| 34 |
; inverse to -ᴹ‿inverse |
| 35 |
; ⁻¹-cong to -ᴹ‿cong |
| 36 |
; ⁻¹-distrib-∙ to -ᴹ‿distrib-+ᴹ |
| 37 |
; isGroup to +ᴹ-isGroup |
| 38 |
; isAbelianGroup to +ᴹ-isAbelianGroup |
| 39 |
) |
| 40 |
open import Algebra.Module.Morphism.RightSemimoduleMonomorphism isRightSemimoduleMonomorphism public |
| 41 |
|
| 42 |
------------------------------------------------------------------------ |
| 43 |
-- Structures |
| 44 |
|
| 45 |
module _ {ℓr} {_≈_ : Rel R ℓr} {_+_ _*_ -_ 0# 1#} (R-isRing : IsRing _≈_ _+_ _*_ -_ 0# 1#) where |
| 46 |
|
| 47 |
private |
| 48 |
R-ring : Ring _ _ |
| 49 |
R-ring = record { isRing = R-isRing} |
| 50 |
open IsRing R-isRing |
| 51 |
|
| 52 |
isRightModule |
| 53 |
: IsRightModule R-ring N._≈ᴹ_ N._+ᴹ_ N.0ᴹ N.-ᴹ_ N._*ᵣ_ |
| 54 |
→ IsRightModule R-ring M._≈ᴹ_ M._+ᴹ_ M.0ᴹ M.-ᴹ_ M._*ᵣ_ |
| 55 |
isRightModule isRightModule = record |
| 56 |
{ isRightSemimodule = isRightSemimodule isSemiring NN.isRightSemimodule |
| 57 |
; -ᴹ‿cong = -ᴹ‿cong NN.+ᴹ-isMagma NN.-ᴹ‿cong |
| 58 |
; -ᴹ‿inverse = -ᴹ‿inverse NN.+ᴹ-isMagma NN.-ᴹ‿inverse |
| 59 |
} |
| 60 |
where |
| 61 |
module NN = IsRightModule isRightModule |