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