| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- The identity morphism for module-like algebraic structures |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --safe --cubical-compatible #-} |
| 8 |
|
| 9 |
module Algebra.Module.Morphism.Construct.Identity where |
| 10 |
|
| 11 |
open import Algebra.Module.Bundles.Raw |
| 12 |
open import Algebra.Module.Morphism.Structures |
| 13 |
using ( module LeftSemimoduleMorphisms |
| 14 |
; module LeftModuleMorphisms |
| 15 |
; module RightSemimoduleMorphisms |
| 16 |
; module RightModuleMorphisms |
| 17 |
; module BisemimoduleMorphisms |
| 18 |
; module BimoduleMorphisms |
| 19 |
; module SemimoduleMorphisms |
| 20 |
; module ModuleMorphisms |
| 21 |
) |
| 22 |
open import Algebra.Morphism.Construct.Identity using ( isMonoidHomomorphism; isGroupHomomorphism) |
| 23 |
open import Data.Product.Base using (_,_) |
| 24 |
open import Function.Base using (id) |
| 25 |
import Function.Construct.Identity as Id |
| 26 |
open import Level using (Level) |
| 27 |
open import Relation.Binary.Definitions using (Reflexive) |
| 28 |
|
| 29 |
private |
| 30 |
variable |
| 31 |
r s m ℓm : Level |
| 32 |
|
| 33 |
module _ {R : Set r} (M : RawLeftSemimodule R m ℓm) (open RawLeftSemimodule M) (≈ᴹ-refl : Reflexive _≈ᴹ_) where |
| 34 |
open LeftSemimoduleMorphisms M M |
| 35 |
|
| 36 |
isLeftSemimoduleHomomorphism : IsLeftSemimoduleHomomorphism id |
| 37 |
isLeftSemimoduleHomomorphism = record |
| 38 |
{ +ᴹ-isMonoidHomomorphism = isMonoidHomomorphism _ ≈ᴹ-refl |
| 39 |
; *ₗ-homo = λ _ _ → ≈ᴹ-refl |
| 40 |
} |
| 41 |
|
| 42 |
isLeftSemimoduleMonomorphism : IsLeftSemimoduleMonomorphism id |
| 43 |
isLeftSemimoduleMonomorphism = record |
| 44 |
{ isLeftSemimoduleHomomorphism = isLeftSemimoduleHomomorphism |
| 45 |
; injective = id |
| 46 |
} |
| 47 |
|
| 48 |
isLeftSemimoduleIsomorphism : IsLeftSemimoduleIsomorphism id |
| 49 |
isLeftSemimoduleIsomorphism = record |
| 50 |
{ isLeftSemimoduleMonomorphism = isLeftSemimoduleMonomorphism |
| 51 |
; surjective = Id.surjective _ |
| 52 |
} |
| 53 |
|
| 54 |
module _ {R : Set r} (M : RawLeftModule R m ℓm) (open RawLeftModule M) (≈ᴹ-refl : Reflexive _≈ᴹ_) where |
| 55 |
open LeftModuleMorphisms M M |
| 56 |
|
| 57 |
isLeftModuleHomomorphism : IsLeftModuleHomomorphism id |
| 58 |
isLeftModuleHomomorphism = record |
| 59 |
{ +ᴹ-isGroupHomomorphism = isGroupHomomorphism _ ≈ᴹ-refl |
| 60 |
; *ₗ-homo = λ _ _ → ≈ᴹ-refl |
| 61 |
} |
| 62 |
|
| 63 |
isLeftModuleMonomorphism : IsLeftModuleMonomorphism id |
| 64 |
isLeftModuleMonomorphism = record |
| 65 |
{ isLeftModuleHomomorphism = isLeftModuleHomomorphism |
| 66 |
; injective = id |
| 67 |
} |
| 68 |
|
| 69 |
isLeftModuleIsomorphism : IsLeftModuleIsomorphism id |
| 70 |
isLeftModuleIsomorphism = record |
| 71 |
{ isLeftModuleMonomorphism = isLeftModuleMonomorphism |
| 72 |
; surjective = Id.surjective _ |
| 73 |
} |
| 74 |
|
| 75 |
module _ {R : Set r} (M : RawRightSemimodule R m ℓm) (open RawRightSemimodule M) (≈ᴹ-refl : Reflexive _≈ᴹ_) where |
| 76 |
open RightSemimoduleMorphisms M M |
| 77 |
|
| 78 |
isRightSemimoduleHomomorphism : IsRightSemimoduleHomomorphism id |
| 79 |
isRightSemimoduleHomomorphism = record |
| 80 |
{ +ᴹ-isMonoidHomomorphism = isMonoidHomomorphism _ ≈ᴹ-refl |
| 81 |
; *ᵣ-homo = λ _ _ → ≈ᴹ-refl |
| 82 |
} |
| 83 |
|
| 84 |
isRightSemimoduleMonomorphism : IsRightSemimoduleMonomorphism id |
| 85 |
isRightSemimoduleMonomorphism = record |
| 86 |
{ isRightSemimoduleHomomorphism = isRightSemimoduleHomomorphism |
| 87 |
; injective = id |
| 88 |
} |
| 89 |
|
| 90 |
isRightSemimoduleIsomorphism : IsRightSemimoduleIsomorphism id |
| 91 |
isRightSemimoduleIsomorphism = record |
| 92 |
{ isRightSemimoduleMonomorphism = isRightSemimoduleMonomorphism |
| 93 |
; surjective = Id.surjective _ |
| 94 |
} |
| 95 |
|
| 96 |
module _ {R : Set r} (M : RawRightModule R m ℓm) (open RawRightModule M) (≈ᴹ-refl : Reflexive _≈ᴹ_) where |
| 97 |
open RightModuleMorphisms M M |
| 98 |
|
| 99 |
isRightModuleHomomorphism : IsRightModuleHomomorphism id |
| 100 |
isRightModuleHomomorphism = record |
| 101 |
{ +ᴹ-isGroupHomomorphism = isGroupHomomorphism _ ≈ᴹ-refl |
| 102 |
; *ᵣ-homo = λ _ _ → ≈ᴹ-refl |
| 103 |
} |
| 104 |
|
| 105 |
isRightModuleMonomorphism : IsRightModuleMonomorphism id |
| 106 |
isRightModuleMonomorphism = record |
| 107 |
{ isRightModuleHomomorphism = isRightModuleHomomorphism |
| 108 |
; injective = id |
| 109 |
} |
| 110 |
|
| 111 |
isRightModuleIsomorphism : IsRightModuleIsomorphism id |
| 112 |
isRightModuleIsomorphism = record |
| 113 |
{ isRightModuleMonomorphism = isRightModuleMonomorphism |
| 114 |
; surjective = Id.surjective _ |
| 115 |
} |
| 116 |
|
| 117 |
module _ {R : Set r} {S : Set s} (M : RawBisemimodule R S m ℓm) (open RawBisemimodule M) (≈ᴹ-refl : Reflexive _≈ᴹ_) where |
| 118 |
open BisemimoduleMorphisms M M |
| 119 |
|
| 120 |
isBisemimoduleHomomorphism : IsBisemimoduleHomomorphism id |
| 121 |
isBisemimoduleHomomorphism = record |
| 122 |
{ +ᴹ-isMonoidHomomorphism = isMonoidHomomorphism _ ≈ᴹ-refl |
| 123 |
; *ₗ-homo = λ _ _ → ≈ᴹ-refl |
| 124 |
; *ᵣ-homo = λ _ _ → ≈ᴹ-refl |
| 125 |
} |
| 126 |
|
| 127 |
isBisemimoduleMonomorphism : IsBisemimoduleMonomorphism id |
| 128 |
isBisemimoduleMonomorphism = record |
| 129 |
{ isBisemimoduleHomomorphism = isBisemimoduleHomomorphism |
| 130 |
; injective = id |
| 131 |
} |
| 132 |
|
| 133 |
isBisemimoduleIsomorphism : IsBisemimoduleIsomorphism id |
| 134 |
isBisemimoduleIsomorphism = record |
| 135 |
{ isBisemimoduleMonomorphism = isBisemimoduleMonomorphism |
| 136 |
; surjective = Id.surjective _ |
| 137 |
} |
| 138 |
|
| 139 |
module _ {R : Set r} {S : Set s} (M : RawBimodule R S m ℓm) (open RawBimodule M) (≈ᴹ-refl : Reflexive _≈ᴹ_) where |
| 140 |
open BimoduleMorphisms M M |
| 141 |
|
| 142 |
isBimoduleHomomorphism : IsBimoduleHomomorphism id |
| 143 |
isBimoduleHomomorphism = record |
| 144 |
{ +ᴹ-isGroupHomomorphism = isGroupHomomorphism _ ≈ᴹ-refl |
| 145 |
; *ₗ-homo = λ _ _ → ≈ᴹ-refl |
| 146 |
; *ᵣ-homo = λ _ _ → ≈ᴹ-refl |
| 147 |
} |
| 148 |
|
| 149 |
isBimoduleMonomorphism : IsBimoduleMonomorphism id |
| 150 |
isBimoduleMonomorphism = record |
| 151 |
{ isBimoduleHomomorphism = isBimoduleHomomorphism |
| 152 |
; injective = id |
| 153 |
} |
| 154 |
|
| 155 |
isBimoduleIsomorphism : IsBimoduleIsomorphism id |
| 156 |
isBimoduleIsomorphism = record |
| 157 |
{ isBimoduleMonomorphism = isBimoduleMonomorphism |
| 158 |
; surjective = Id.surjective _ |
| 159 |
} |
| 160 |
|
| 161 |
module _ {R : Set r} (M : RawSemimodule R m ℓm) (open RawSemimodule M) (≈ᴹ-refl : Reflexive _≈ᴹ_) where |
| 162 |
open SemimoduleMorphisms M M |
| 163 |
|
| 164 |
isSemimoduleHomomorphism : IsSemimoduleHomomorphism id |
| 165 |
isSemimoduleHomomorphism = record |
| 166 |
{ isBisemimoduleHomomorphism = isBisemimoduleHomomorphism _ ≈ᴹ-refl |
| 167 |
} |
| 168 |
|
| 169 |
isSemimoduleMonomorphism : IsSemimoduleMonomorphism id |
| 170 |
isSemimoduleMonomorphism = record |
| 171 |
{ isSemimoduleHomomorphism = isSemimoduleHomomorphism |
| 172 |
; injective = id |
| 173 |
} |
| 174 |
|
| 175 |
isSemimoduleIsomorphism : IsSemimoduleIsomorphism id |
| 176 |
isSemimoduleIsomorphism = record |
| 177 |
{ isSemimoduleMonomorphism = isSemimoduleMonomorphism |
| 178 |
; surjective = Id.surjective _ |
| 179 |
} |
| 180 |
|
| 181 |
module _ {R : Set r} (M : RawModule R m ℓm) (open RawModule M) (≈ᴹ-refl : Reflexive _≈ᴹ_) where |
| 182 |
open ModuleMorphisms M M |
| 183 |
|
| 184 |
isModuleHomomorphism : IsModuleHomomorphism id |
| 185 |
isModuleHomomorphism = record |
| 186 |
{ isBimoduleHomomorphism = isBimoduleHomomorphism _ ≈ᴹ-refl |
| 187 |
} |
| 188 |
|
| 189 |
isModuleMonomorphism : IsModuleMonomorphism id |
| 190 |
isModuleMonomorphism = record |
| 191 |
{ isModuleHomomorphism = isModuleHomomorphism |
| 192 |
; injective = id |
| 193 |
} |
| 194 |
|
| 195 |
isModuleIsomorphism : IsModuleIsomorphism id |
| 196 |
isModuleIsomorphism = record |
| 197 |
{ isModuleMonomorphism = isModuleMonomorphism |
| 198 |
; surjective = Id.surjective _ |
| 199 |
} |