| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Morphisms between module-like algebraic structures |
| 5 |
------------------------------------------------------------------------ |
| 6 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 7 |
|
| 8 |
module Algebra.Module.Morphism.Structures where |
| 9 |
|
| 10 |
open import Algebra.Module.Bundles.Raw |
| 11 |
import Algebra.Module.Morphism.Definitions as MorphismDefinitions |
| 12 |
import Algebra.Morphism.Structures as MorphismStructures |
| 13 |
open import Function.Definitions using (Injective; Surjective) |
| 14 |
open import Level using (Level; _⊔_) |
| 15 |
|
| 16 |
private |
| 17 |
variable |
| 18 |
r s m₁ m₂ ℓm₁ ℓm₂ : Level |
| 19 |
|
| 20 |
module LeftSemimoduleMorphisms |
| 21 |
{R : Set r} |
| 22 |
(M₁ : RawLeftSemimodule R m₁ ℓm₁) |
| 23 |
(M₂ : RawLeftSemimodule R m₂ ℓm₂) |
| 24 |
where |
| 25 |
|
| 26 |
open RawLeftSemimodule M₁ renaming (Carrierᴹ to A; _*ₗ_ to _*ₗ₁_; _≈ᴹ_ to _≈ᴹ₁_) |
| 27 |
open RawLeftSemimodule M₂ renaming (Carrierᴹ to B; _*ₗ_ to _*ₗ₂_; _≈ᴹ_ to _≈ᴹ₂_) |
| 28 |
open MorphismDefinitions R A B _≈ᴹ₂_ |
| 29 |
open MorphismStructures.MonoidMorphisms (RawLeftSemimodule.+ᴹ-rawMonoid M₁) (RawLeftSemimodule.+ᴹ-rawMonoid M₂) |
| 30 |
|
| 31 |
record IsLeftSemimoduleHomomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 32 |
field |
| 33 |
+ᴹ-isMonoidHomomorphism : IsMonoidHomomorphism ⟦_⟧ |
| 34 |
*ₗ-homo : Homomorphicₗ ⟦_⟧ _*ₗ₁_ _*ₗ₂_ |
| 35 |
|
| 36 |
open IsMonoidHomomorphism +ᴹ-isMonoidHomomorphism public |
| 37 |
using (isRelHomomorphism; ⟦⟧-cong) |
| 38 |
renaming (isMagmaHomomorphism to +ᴹ-isMagmaHomomorphism; homo to +ᴹ-homo; ε-homo to 0ᴹ-homo) |
| 39 |
|
| 40 |
record IsLeftSemimoduleMonomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 41 |
field |
| 42 |
isLeftSemimoduleHomomorphism : IsLeftSemimoduleHomomorphism ⟦_⟧ |
| 43 |
injective : Injective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 44 |
|
| 45 |
open IsLeftSemimoduleHomomorphism isLeftSemimoduleHomomorphism public |
| 46 |
|
| 47 |
+ᴹ-isMonoidMonomorphism : IsMonoidMonomorphism ⟦_⟧ |
| 48 |
+ᴹ-isMonoidMonomorphism = record |
| 49 |
{ isMonoidHomomorphism = +ᴹ-isMonoidHomomorphism |
| 50 |
; injective = injective |
| 51 |
} |
| 52 |
|
| 53 |
open IsMonoidMonomorphism +ᴹ-isMonoidMonomorphism public |
| 54 |
using (isRelMonomorphism) |
| 55 |
renaming (isMagmaMonomorphism to +ᴹ-isMagmaMonomorphism) |
| 56 |
|
| 57 |
record IsLeftSemimoduleIsomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ m₂ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 58 |
field |
| 59 |
isLeftSemimoduleMonomorphism : IsLeftSemimoduleMonomorphism ⟦_⟧ |
| 60 |
surjective : Surjective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 61 |
|
| 62 |
open IsLeftSemimoduleMonomorphism isLeftSemimoduleMonomorphism public |
| 63 |
|
| 64 |
+ᴹ-isMonoidIsomorphism : IsMonoidIsomorphism ⟦_⟧ |
| 65 |
+ᴹ-isMonoidIsomorphism = record |
| 66 |
{ isMonoidMonomorphism = +ᴹ-isMonoidMonomorphism |
| 67 |
; surjective = surjective |
| 68 |
} |
| 69 |
|
| 70 |
open IsMonoidIsomorphism +ᴹ-isMonoidIsomorphism public |
| 71 |
using (isRelIsomorphism) |
| 72 |
renaming (isMagmaIsomorphism to +ᴹ-isMagmaIsomorphism) |
| 73 |
|
| 74 |
module LeftModuleMorphisms |
| 75 |
{R : Set r} |
| 76 |
(M₁ : RawLeftModule R m₁ ℓm₁) |
| 77 |
(M₂ : RawLeftModule R m₂ ℓm₂) |
| 78 |
where |
| 79 |
|
| 80 |
open RawLeftModule M₁ renaming (Carrierᴹ to A; _*ₗ_ to _*ₗ₁_; _≈ᴹ_ to _≈ᴹ₁_) |
| 81 |
open RawLeftModule M₂ renaming (Carrierᴹ to B; _*ₗ_ to _*ₗ₂_; _≈ᴹ_ to _≈ᴹ₂_) |
| 82 |
open MorphismDefinitions R A B _≈ᴹ₂_ |
| 83 |
open MorphismStructures.GroupMorphisms (RawLeftModule.+ᴹ-rawGroup M₁) (RawLeftModule.+ᴹ-rawGroup M₂) |
| 84 |
open LeftSemimoduleMorphisms (RawLeftModule.rawLeftSemimodule M₁) (RawLeftModule.rawLeftSemimodule M₂) |
| 85 |
|
| 86 |
record IsLeftModuleHomomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 87 |
field |
| 88 |
+ᴹ-isGroupHomomorphism : IsGroupHomomorphism ⟦_⟧ |
| 89 |
*ₗ-homo : Homomorphicₗ ⟦_⟧ _*ₗ₁_ _*ₗ₂_ |
| 90 |
|
| 91 |
open IsGroupHomomorphism +ᴹ-isGroupHomomorphism public |
| 92 |
using (isRelHomomorphism; ⟦⟧-cong) |
| 93 |
renaming ( isMagmaHomomorphism to +ᴹ-isMagmaHomomorphism; isMonoidHomomorphism to +ᴹ-isMonoidHomomorphism |
| 94 |
; homo to +ᴹ-homo; ε-homo to 0ᴹ-homo; ⁻¹-homo to -ᴹ-homo |
| 95 |
) |
| 96 |
|
| 97 |
isLeftSemimoduleHomomorphism : IsLeftSemimoduleHomomorphism ⟦_⟧ |
| 98 |
isLeftSemimoduleHomomorphism = record |
| 99 |
{ +ᴹ-isMonoidHomomorphism = +ᴹ-isMonoidHomomorphism |
| 100 |
; *ₗ-homo = *ₗ-homo |
| 101 |
} |
| 102 |
|
| 103 |
record IsLeftModuleMonomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 104 |
field |
| 105 |
isLeftModuleHomomorphism : IsLeftModuleHomomorphism ⟦_⟧ |
| 106 |
injective : Injective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 107 |
|
| 108 |
open IsLeftModuleHomomorphism isLeftModuleHomomorphism public |
| 109 |
|
| 110 |
isLeftSemimoduleMonomorphism : IsLeftSemimoduleMonomorphism ⟦_⟧ |
| 111 |
isLeftSemimoduleMonomorphism = record |
| 112 |
{ isLeftSemimoduleHomomorphism = isLeftSemimoduleHomomorphism |
| 113 |
; injective = injective |
| 114 |
} |
| 115 |
|
| 116 |
open IsLeftSemimoduleMonomorphism isLeftSemimoduleMonomorphism public |
| 117 |
using (isRelMonomorphism; +ᴹ-isMagmaMonomorphism; +ᴹ-isMonoidMonomorphism) |
| 118 |
|
| 119 |
+ᴹ-isGroupMonomorphism : IsGroupMonomorphism ⟦_⟧ |
| 120 |
+ᴹ-isGroupMonomorphism = record |
| 121 |
{ isGroupHomomorphism = +ᴹ-isGroupHomomorphism |
| 122 |
; injective = injective |
| 123 |
} |
| 124 |
|
| 125 |
record IsLeftModuleIsomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ m₂ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 126 |
field |
| 127 |
isLeftModuleMonomorphism : IsLeftModuleMonomorphism ⟦_⟧ |
| 128 |
surjective : Surjective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 129 |
|
| 130 |
open IsLeftModuleMonomorphism isLeftModuleMonomorphism public |
| 131 |
|
| 132 |
isLeftSemimoduleIsomorphism : IsLeftSemimoduleIsomorphism ⟦_⟧ |
| 133 |
isLeftSemimoduleIsomorphism = record |
| 134 |
{ isLeftSemimoduleMonomorphism = isLeftSemimoduleMonomorphism |
| 135 |
; surjective = surjective |
| 136 |
} |
| 137 |
|
| 138 |
open IsLeftSemimoduleIsomorphism isLeftSemimoduleIsomorphism public |
| 139 |
using (isRelIsomorphism; +ᴹ-isMagmaIsomorphism; +ᴹ-isMonoidIsomorphism) |
| 140 |
|
| 141 |
+ᴹ-isGroupIsomorphism : IsGroupIsomorphism ⟦_⟧ |
| 142 |
+ᴹ-isGroupIsomorphism = record |
| 143 |
{ isGroupMonomorphism = +ᴹ-isGroupMonomorphism |
| 144 |
; surjective = surjective |
| 145 |
} |
| 146 |
|
| 147 |
module RightSemimoduleMorphisms |
| 148 |
{R : Set r} |
| 149 |
(M₁ : RawRightSemimodule R m₁ ℓm₁) |
| 150 |
(M₂ : RawRightSemimodule R m₂ ℓm₂) |
| 151 |
where |
| 152 |
|
| 153 |
open RawRightSemimodule M₁ renaming (Carrierᴹ to A; _*ᵣ_ to _*ᵣ₁_; _≈ᴹ_ to _≈ᴹ₁_) |
| 154 |
open RawRightSemimodule M₂ renaming (Carrierᴹ to B; _*ᵣ_ to _*ᵣ₂_; _≈ᴹ_ to _≈ᴹ₂_) |
| 155 |
open MorphismDefinitions R A B _≈ᴹ₂_ |
| 156 |
open MorphismStructures.MonoidMorphisms (RawRightSemimodule.+ᴹ-rawMonoid M₁) (RawRightSemimodule.+ᴹ-rawMonoid M₂) |
| 157 |
|
| 158 |
record IsRightSemimoduleHomomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 159 |
field |
| 160 |
+ᴹ-isMonoidHomomorphism : IsMonoidHomomorphism ⟦_⟧ |
| 161 |
*ᵣ-homo : Homomorphicᵣ ⟦_⟧ _*ᵣ₁_ _*ᵣ₂_ |
| 162 |
|
| 163 |
open IsMonoidHomomorphism +ᴹ-isMonoidHomomorphism public |
| 164 |
using (isRelHomomorphism; ⟦⟧-cong) |
| 165 |
renaming (isMagmaHomomorphism to +ᴹ-isMagmaHomomorphism; homo to +ᴹ-homo; ε-homo to 0ᴹ-homo) |
| 166 |
|
| 167 |
record IsRightSemimoduleMonomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 168 |
field |
| 169 |
isRightSemimoduleHomomorphism : IsRightSemimoduleHomomorphism ⟦_⟧ |
| 170 |
injective : Injective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 171 |
|
| 172 |
open IsRightSemimoduleHomomorphism isRightSemimoduleHomomorphism public |
| 173 |
|
| 174 |
+ᴹ-isMonoidMonomorphism : IsMonoidMonomorphism ⟦_⟧ |
| 175 |
+ᴹ-isMonoidMonomorphism = record |
| 176 |
{ isMonoidHomomorphism = +ᴹ-isMonoidHomomorphism |
| 177 |
; injective = injective |
| 178 |
} |
| 179 |
|
| 180 |
open IsMonoidMonomorphism +ᴹ-isMonoidMonomorphism public |
| 181 |
using (isRelMonomorphism) |
| 182 |
renaming (isMagmaMonomorphism to +ᴹ-isMagmaMonomorphism) |
| 183 |
|
| 184 |
record IsRightSemimoduleIsomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ m₂ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 185 |
field |
| 186 |
isRightSemimoduleMonomorphism : IsRightSemimoduleMonomorphism ⟦_⟧ |
| 187 |
surjective : Surjective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 188 |
|
| 189 |
open IsRightSemimoduleMonomorphism isRightSemimoduleMonomorphism public |
| 190 |
|
| 191 |
+ᴹ-isMonoidIsomorphism : IsMonoidIsomorphism ⟦_⟧ |
| 192 |
+ᴹ-isMonoidIsomorphism = record |
| 193 |
{ isMonoidMonomorphism = +ᴹ-isMonoidMonomorphism |
| 194 |
; surjective = surjective |
| 195 |
} |
| 196 |
|
| 197 |
open IsMonoidIsomorphism +ᴹ-isMonoidIsomorphism public |
| 198 |
using (isRelIsomorphism) |
| 199 |
renaming (isMagmaIsomorphism to +ᴹ-isMagmaIsomorphism) |
| 200 |
|
| 201 |
module RightModuleMorphisms |
| 202 |
{R : Set r} |
| 203 |
(M₁ : RawRightModule R m₁ ℓm₁) |
| 204 |
(M₂ : RawRightModule R m₂ ℓm₂) |
| 205 |
where |
| 206 |
|
| 207 |
open RawRightModule M₁ renaming (Carrierᴹ to A; _*ᵣ_ to _*ᵣ₁_; _≈ᴹ_ to _≈ᴹ₁_) |
| 208 |
open RawRightModule M₂ renaming (Carrierᴹ to B; _*ᵣ_ to _*ᵣ₂_; _≈ᴹ_ to _≈ᴹ₂_) |
| 209 |
open MorphismDefinitions R A B _≈ᴹ₂_ |
| 210 |
open MorphismStructures.GroupMorphisms (RawRightModule.+ᴹ-rawGroup M₁) (RawRightModule.+ᴹ-rawGroup M₂) |
| 211 |
open RightSemimoduleMorphisms (RawRightModule.rawRightSemimodule M₁) (RawRightModule.rawRightSemimodule M₂) |
| 212 |
|
| 213 |
record IsRightModuleHomomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 214 |
field |
| 215 |
+ᴹ-isGroupHomomorphism : IsGroupHomomorphism ⟦_⟧ |
| 216 |
*ᵣ-homo : Homomorphicᵣ ⟦_⟧ _*ᵣ₁_ _*ᵣ₂_ |
| 217 |
|
| 218 |
open IsGroupHomomorphism +ᴹ-isGroupHomomorphism public |
| 219 |
using (isRelHomomorphism; ⟦⟧-cong) |
| 220 |
renaming ( isMagmaHomomorphism to +ᴹ-isMagmaHomomorphism; isMonoidHomomorphism to +ᴹ-isMonoidHomomorphism |
| 221 |
; homo to +ᴹ-homo; ε-homo to 0ᴹ-homo; ⁻¹-homo to -ᴹ-homo |
| 222 |
) |
| 223 |
isRightSemimoduleHomomorphism : IsRightSemimoduleHomomorphism ⟦_⟧ |
| 224 |
isRightSemimoduleHomomorphism = record |
| 225 |
{ +ᴹ-isMonoidHomomorphism = +ᴹ-isMonoidHomomorphism |
| 226 |
; *ᵣ-homo = *ᵣ-homo |
| 227 |
} |
| 228 |
|
| 229 |
record IsRightModuleMonomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 230 |
field |
| 231 |
isRightModuleHomomorphism : IsRightModuleHomomorphism ⟦_⟧ |
| 232 |
injective : Injective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 233 |
|
| 234 |
open IsRightModuleHomomorphism isRightModuleHomomorphism public |
| 235 |
|
| 236 |
isRightSemimoduleMonomorphism : IsRightSemimoduleMonomorphism ⟦_⟧ |
| 237 |
isRightSemimoduleMonomorphism = record |
| 238 |
{ isRightSemimoduleHomomorphism = isRightSemimoduleHomomorphism |
| 239 |
; injective = injective |
| 240 |
} |
| 241 |
|
| 242 |
open IsRightSemimoduleMonomorphism isRightSemimoduleMonomorphism public |
| 243 |
using (isRelMonomorphism; +ᴹ-isMagmaMonomorphism; +ᴹ-isMonoidMonomorphism) |
| 244 |
|
| 245 |
+ᴹ-isGroupMonomorphism : IsGroupMonomorphism ⟦_⟧ |
| 246 |
+ᴹ-isGroupMonomorphism = record |
| 247 |
{ isGroupHomomorphism = +ᴹ-isGroupHomomorphism |
| 248 |
; injective = injective |
| 249 |
} |
| 250 |
|
| 251 |
record IsRightModuleIsomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ m₂ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 252 |
field |
| 253 |
isRightModuleMonomorphism : IsRightModuleMonomorphism ⟦_⟧ |
| 254 |
surjective : Surjective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 255 |
|
| 256 |
open IsRightModuleMonomorphism isRightModuleMonomorphism public |
| 257 |
|
| 258 |
isRightSemimoduleIsomorphism : IsRightSemimoduleIsomorphism ⟦_⟧ |
| 259 |
isRightSemimoduleIsomorphism = record |
| 260 |
{ isRightSemimoduleMonomorphism = isRightSemimoduleMonomorphism |
| 261 |
; surjective = surjective |
| 262 |
} |
| 263 |
|
| 264 |
open IsRightSemimoduleIsomorphism isRightSemimoduleIsomorphism public |
| 265 |
using (isRelIsomorphism; +ᴹ-isMagmaIsomorphism; +ᴹ-isMonoidIsomorphism) |
| 266 |
|
| 267 |
+ᴹ-isGroupIsomorphism : IsGroupIsomorphism ⟦_⟧ |
| 268 |
+ᴹ-isGroupIsomorphism = record |
| 269 |
{ isGroupMonomorphism = +ᴹ-isGroupMonomorphism |
| 270 |
; surjective = surjective |
| 271 |
} |
| 272 |
|
| 273 |
module BisemimoduleMorphisms |
| 274 |
{R : Set r} |
| 275 |
{S : Set s} |
| 276 |
(M₁ : RawBisemimodule R S m₁ ℓm₁) |
| 277 |
(M₂ : RawBisemimodule R S m₂ ℓm₂) |
| 278 |
where |
| 279 |
|
| 280 |
open RawBisemimodule M₁ renaming (Carrierᴹ to A; _*ₗ_ to _*ₗ₁_; _*ᵣ_ to _*ᵣ₁_; _≈ᴹ_ to _≈ᴹ₁_) |
| 281 |
open RawBisemimodule M₂ renaming (Carrierᴹ to B; _*ₗ_ to _*ₗ₂_; _*ᵣ_ to _*ᵣ₂_; _≈ᴹ_ to _≈ᴹ₂_) |
| 282 |
open MorphismDefinitions R A B _≈ᴹ₂_ using (Homomorphicₗ) |
| 283 |
open MorphismDefinitions S A B _≈ᴹ₂_ using (Homomorphicᵣ) |
| 284 |
open MorphismStructures.MonoidMorphisms (RawBisemimodule.+ᴹ-rawMonoid M₁) (RawBisemimodule.+ᴹ-rawMonoid M₂) |
| 285 |
open LeftSemimoduleMorphisms (RawBisemimodule.rawLeftSemimodule M₁) (RawBisemimodule.rawLeftSemimodule M₂) |
| 286 |
open RightSemimoduleMorphisms (RawBisemimodule.rawRightSemimodule M₁) (RawBisemimodule.rawRightSemimodule M₂) |
| 287 |
|
| 288 |
record IsBisemimoduleHomomorphism (⟦_⟧ : A → B) : Set (r ⊔ s ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 289 |
field |
| 290 |
+ᴹ-isMonoidHomomorphism : IsMonoidHomomorphism ⟦_⟧ |
| 291 |
*ₗ-homo : Homomorphicₗ ⟦_⟧ _*ₗ₁_ _*ₗ₂_ |
| 292 |
*ᵣ-homo : Homomorphicᵣ ⟦_⟧ _*ᵣ₁_ _*ᵣ₂_ |
| 293 |
|
| 294 |
isLeftSemimoduleHomomorphism : IsLeftSemimoduleHomomorphism ⟦_⟧ |
| 295 |
isLeftSemimoduleHomomorphism = record |
| 296 |
{ +ᴹ-isMonoidHomomorphism = +ᴹ-isMonoidHomomorphism |
| 297 |
; *ₗ-homo = *ₗ-homo |
| 298 |
} |
| 299 |
|
| 300 |
open IsLeftSemimoduleHomomorphism isLeftSemimoduleHomomorphism public |
| 301 |
using (isRelHomomorphism; ⟦⟧-cong; +ᴹ-isMagmaHomomorphism; +ᴹ-homo; 0ᴹ-homo) |
| 302 |
|
| 303 |
isRightSemimoduleHomomorphism : IsRightSemimoduleHomomorphism ⟦_⟧ |
| 304 |
isRightSemimoduleHomomorphism = record |
| 305 |
{ +ᴹ-isMonoidHomomorphism = +ᴹ-isMonoidHomomorphism |
| 306 |
; *ᵣ-homo = *ᵣ-homo |
| 307 |
} |
| 308 |
|
| 309 |
record IsBisemimoduleMonomorphism (⟦_⟧ : A → B) : Set (r ⊔ s ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 310 |
field |
| 311 |
isBisemimoduleHomomorphism : IsBisemimoduleHomomorphism ⟦_⟧ |
| 312 |
injective : Injective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 313 |
|
| 314 |
open IsBisemimoduleHomomorphism isBisemimoduleHomomorphism public |
| 315 |
|
| 316 |
isLeftSemimoduleMonomorphism : IsLeftSemimoduleMonomorphism ⟦_⟧ |
| 317 |
isLeftSemimoduleMonomorphism = record |
| 318 |
{ isLeftSemimoduleHomomorphism = isLeftSemimoduleHomomorphism |
| 319 |
; injective = injective |
| 320 |
} |
| 321 |
|
| 322 |
open IsLeftSemimoduleMonomorphism isLeftSemimoduleMonomorphism public |
| 323 |
using (isRelMonomorphism; +ᴹ-isMagmaMonomorphism; +ᴹ-isMonoidMonomorphism) |
| 324 |
|
| 325 |
isRightSemimoduleMonomorphism : IsRightSemimoduleMonomorphism ⟦_⟧ |
| 326 |
isRightSemimoduleMonomorphism = record |
| 327 |
{ isRightSemimoduleHomomorphism = isRightSemimoduleHomomorphism |
| 328 |
; injective = injective |
| 329 |
} |
| 330 |
|
| 331 |
record IsBisemimoduleIsomorphism (⟦_⟧ : A → B) : Set (r ⊔ s ⊔ m₁ ⊔ m₂ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 332 |
field |
| 333 |
isBisemimoduleMonomorphism : IsBisemimoduleMonomorphism ⟦_⟧ |
| 334 |
surjective : Surjective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 335 |
|
| 336 |
open IsBisemimoduleMonomorphism isBisemimoduleMonomorphism public |
| 337 |
|
| 338 |
isLeftSemimoduleIsomorphism : IsLeftSemimoduleIsomorphism ⟦_⟧ |
| 339 |
isLeftSemimoduleIsomorphism = record |
| 340 |
{ isLeftSemimoduleMonomorphism = isLeftSemimoduleMonomorphism |
| 341 |
; surjective = surjective |
| 342 |
} |
| 343 |
|
| 344 |
open IsLeftSemimoduleIsomorphism isLeftSemimoduleIsomorphism public |
| 345 |
using (isRelIsomorphism; +ᴹ-isMagmaIsomorphism; +ᴹ-isMonoidIsomorphism) |
| 346 |
|
| 347 |
isRightSemimoduleIsomorphism : IsRightSemimoduleIsomorphism ⟦_⟧ |
| 348 |
isRightSemimoduleIsomorphism = record |
| 349 |
{ isRightSemimoduleMonomorphism = isRightSemimoduleMonomorphism |
| 350 |
; surjective = surjective |
| 351 |
} |
| 352 |
|
| 353 |
module BimoduleMorphisms |
| 354 |
{R : Set r} |
| 355 |
{S : Set s} |
| 356 |
(M₁ : RawBimodule R S m₁ ℓm₁) |
| 357 |
(M₂ : RawBimodule R S m₂ ℓm₂) |
| 358 |
where |
| 359 |
|
| 360 |
open RawBimodule M₁ renaming (Carrierᴹ to A; _*ₗ_ to _*ₗ₁_; _*ᵣ_ to _*ᵣ₁_; _≈ᴹ_ to _≈ᴹ₁_) |
| 361 |
open RawBimodule M₂ renaming (Carrierᴹ to B; _*ₗ_ to _*ₗ₂_; _*ᵣ_ to _*ᵣ₂_; _≈ᴹ_ to _≈ᴹ₂_) |
| 362 |
open MorphismDefinitions R A B _≈ᴹ₂_ using (Homomorphicₗ) |
| 363 |
open MorphismDefinitions S A B _≈ᴹ₂_ using (Homomorphicᵣ) |
| 364 |
open MorphismStructures.GroupMorphisms (RawBimodule.+ᴹ-rawGroup M₁) (RawBimodule.+ᴹ-rawGroup M₂) |
| 365 |
open LeftModuleMorphisms (RawBimodule.rawLeftModule M₁) (RawBimodule.rawLeftModule M₂) |
| 366 |
open RightModuleMorphisms (RawBimodule.rawRightModule M₁) (RawBimodule.rawRightModule M₂) |
| 367 |
open BisemimoduleMorphisms (RawBimodule.rawBisemimodule M₁) (RawBimodule.rawBisemimodule M₂) |
| 368 |
|
| 369 |
record IsBimoduleHomomorphism (⟦_⟧ : A → B) : Set (r ⊔ s ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 370 |
field |
| 371 |
+ᴹ-isGroupHomomorphism : IsGroupHomomorphism ⟦_⟧ |
| 372 |
*ₗ-homo : Homomorphicₗ ⟦_⟧ _*ₗ₁_ _*ₗ₂_ |
| 373 |
*ᵣ-homo : Homomorphicᵣ ⟦_⟧ _*ᵣ₁_ _*ᵣ₂_ |
| 374 |
|
| 375 |
open IsGroupHomomorphism +ᴹ-isGroupHomomorphism public |
| 376 |
using (isRelHomomorphism; ⟦⟧-cong) |
| 377 |
renaming ( isMagmaHomomorphism to +ᴹ-isMagmaHomomorphism; isMonoidHomomorphism to +ᴹ-isMonoidHomomorphism |
| 378 |
; homo to +ᴹ-homo; ε-homo to 0ᴹ-homo; ⁻¹-homo to -ᴹ-homo |
| 379 |
) |
| 380 |
|
| 381 |
isBisemimoduleHomomorphism : IsBisemimoduleHomomorphism ⟦_⟧ |
| 382 |
isBisemimoduleHomomorphism = record |
| 383 |
{ +ᴹ-isMonoidHomomorphism = +ᴹ-isMonoidHomomorphism |
| 384 |
; *ₗ-homo = *ₗ-homo |
| 385 |
; *ᵣ-homo = *ᵣ-homo |
| 386 |
} |
| 387 |
|
| 388 |
open IsBisemimoduleHomomorphism isBisemimoduleHomomorphism public |
| 389 |
using (isLeftSemimoduleHomomorphism; isRightSemimoduleHomomorphism) |
| 390 |
|
| 391 |
isLeftModuleHomomorphism : IsLeftModuleHomomorphism ⟦_⟧ |
| 392 |
isLeftModuleHomomorphism = record |
| 393 |
{ +ᴹ-isGroupHomomorphism = +ᴹ-isGroupHomomorphism |
| 394 |
; *ₗ-homo = *ₗ-homo |
| 395 |
} |
| 396 |
|
| 397 |
isRightModuleHomomorphism : IsRightModuleHomomorphism ⟦_⟧ |
| 398 |
isRightModuleHomomorphism = record |
| 399 |
{ +ᴹ-isGroupHomomorphism = +ᴹ-isGroupHomomorphism |
| 400 |
; *ᵣ-homo = *ᵣ-homo |
| 401 |
} |
| 402 |
|
| 403 |
record IsBimoduleMonomorphism (⟦_⟧ : A → B) : Set (r ⊔ s ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 404 |
field |
| 405 |
isBimoduleHomomorphism : IsBimoduleHomomorphism ⟦_⟧ |
| 406 |
injective : Injective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 407 |
|
| 408 |
open IsBimoduleHomomorphism isBimoduleHomomorphism public |
| 409 |
|
| 410 |
+ᴹ-isGroupMonomorphism : IsGroupMonomorphism ⟦_⟧ |
| 411 |
+ᴹ-isGroupMonomorphism = record |
| 412 |
{ isGroupHomomorphism = +ᴹ-isGroupHomomorphism |
| 413 |
; injective = injective |
| 414 |
} |
| 415 |
|
| 416 |
open IsGroupMonomorphism +ᴹ-isGroupMonomorphism public |
| 417 |
using (isRelMonomorphism) |
| 418 |
renaming (isMagmaMonomorphism to +ᴹ-isMagmaMonomorphism; isMonoidMonomorphism to +ᴹ-isMonoidMonomorphism) |
| 419 |
|
| 420 |
isLeftModuleMonomorphism : IsLeftModuleMonomorphism ⟦_⟧ |
| 421 |
isLeftModuleMonomorphism = record |
| 422 |
{ isLeftModuleHomomorphism = isLeftModuleHomomorphism |
| 423 |
; injective = injective |
| 424 |
} |
| 425 |
|
| 426 |
open IsLeftModuleMonomorphism isLeftModuleMonomorphism public |
| 427 |
using (isLeftSemimoduleMonomorphism) |
| 428 |
|
| 429 |
isRightModuleMonomorphism : IsRightModuleMonomorphism ⟦_⟧ |
| 430 |
isRightModuleMonomorphism = record |
| 431 |
{ isRightModuleHomomorphism = isRightModuleHomomorphism |
| 432 |
; injective = injective |
| 433 |
} |
| 434 |
|
| 435 |
open IsRightModuleMonomorphism isRightModuleMonomorphism public |
| 436 |
using (isRightSemimoduleMonomorphism) |
| 437 |
|
| 438 |
isBisemimoduleMonomorphism : IsBisemimoduleMonomorphism ⟦_⟧ |
| 439 |
isBisemimoduleMonomorphism = record |
| 440 |
{ isBisemimoduleHomomorphism = isBisemimoduleHomomorphism |
| 441 |
; injective = injective |
| 442 |
} |
| 443 |
|
| 444 |
record IsBimoduleIsomorphism (⟦_⟧ : A → B) : Set (r ⊔ s ⊔ m₁ ⊔ m₂ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 445 |
field |
| 446 |
isBimoduleMonomorphism : IsBimoduleMonomorphism ⟦_⟧ |
| 447 |
surjective : Surjective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 448 |
|
| 449 |
open IsBimoduleMonomorphism isBimoduleMonomorphism public |
| 450 |
|
| 451 |
+ᴹ-isGroupIsomorphism : IsGroupIsomorphism ⟦_⟧ |
| 452 |
+ᴹ-isGroupIsomorphism = record |
| 453 |
{ isGroupMonomorphism = +ᴹ-isGroupMonomorphism |
| 454 |
; surjective = surjective |
| 455 |
} |
| 456 |
|
| 457 |
open IsGroupIsomorphism +ᴹ-isGroupIsomorphism public |
| 458 |
using (isRelIsomorphism) |
| 459 |
renaming (isMagmaIsomorphism to +ᴹ-isMagmaIsomorphism; isMonoidIsomorphism to +ᴹ-isMonoidIsomorphism) |
| 460 |
|
| 461 |
isLeftModuleIsomorphism : IsLeftModuleIsomorphism ⟦_⟧ |
| 462 |
isLeftModuleIsomorphism = record |
| 463 |
{ isLeftModuleMonomorphism = isLeftModuleMonomorphism |
| 464 |
; surjective = surjective |
| 465 |
} |
| 466 |
|
| 467 |
open IsLeftModuleIsomorphism isLeftModuleIsomorphism public |
| 468 |
using (isLeftSemimoduleIsomorphism) |
| 469 |
|
| 470 |
isRightModuleIsomorphism : IsRightModuleIsomorphism ⟦_⟧ |
| 471 |
isRightModuleIsomorphism = record |
| 472 |
{ isRightModuleMonomorphism = isRightModuleMonomorphism |
| 473 |
; surjective = surjective |
| 474 |
} |
| 475 |
|
| 476 |
open IsRightModuleIsomorphism isRightModuleIsomorphism public |
| 477 |
using (isRightSemimoduleIsomorphism) |
| 478 |
|
| 479 |
isBisemimoduleIsomorphism : IsBisemimoduleIsomorphism ⟦_⟧ |
| 480 |
isBisemimoduleIsomorphism = record |
| 481 |
{ isBisemimoduleMonomorphism = isBisemimoduleMonomorphism |
| 482 |
; surjective = surjective |
| 483 |
} |
| 484 |
|
| 485 |
module SemimoduleMorphisms |
| 486 |
{R : Set r} |
| 487 |
(M₁ : RawSemimodule R m₁ ℓm₁) |
| 488 |
(M₂ : RawSemimodule R m₂ ℓm₂) |
| 489 |
where |
| 490 |
|
| 491 |
open RawSemimodule M₁ renaming (Carrierᴹ to A; _≈ᴹ_ to _≈ᴹ₁_) |
| 492 |
open RawSemimodule M₂ renaming (Carrierᴹ to B; _≈ᴹ_ to _≈ᴹ₂_) |
| 493 |
open BisemimoduleMorphisms (RawSemimodule.rawBisemimodule M₁) (RawSemimodule.rawBisemimodule M₂) |
| 494 |
|
| 495 |
record IsSemimoduleHomomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 496 |
field |
| 497 |
isBisemimoduleHomomorphism : IsBisemimoduleHomomorphism ⟦_⟧ |
| 498 |
|
| 499 |
open IsBisemimoduleHomomorphism isBisemimoduleHomomorphism public |
| 500 |
|
| 501 |
record IsSemimoduleMonomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 502 |
field |
| 503 |
isSemimoduleHomomorphism : IsSemimoduleHomomorphism ⟦_⟧ |
| 504 |
injective : Injective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 505 |
|
| 506 |
open IsSemimoduleHomomorphism isSemimoduleHomomorphism public |
| 507 |
|
| 508 |
isBisemimoduleMonomorphism : IsBisemimoduleMonomorphism ⟦_⟧ |
| 509 |
isBisemimoduleMonomorphism = record |
| 510 |
{ isBisemimoduleHomomorphism = isBisemimoduleHomomorphism |
| 511 |
; injective = injective |
| 512 |
} |
| 513 |
|
| 514 |
open IsBisemimoduleMonomorphism isBisemimoduleMonomorphism public |
| 515 |
using ( isRelMonomorphism; +ᴹ-isMagmaMonomorphism; +ᴹ-isMonoidMonomorphism |
| 516 |
; isLeftSemimoduleMonomorphism; isRightSemimoduleMonomorphism |
| 517 |
) |
| 518 |
|
| 519 |
record IsSemimoduleIsomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ m₂ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 520 |
field |
| 521 |
isSemimoduleMonomorphism : IsSemimoduleMonomorphism ⟦_⟧ |
| 522 |
surjective : Surjective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 523 |
|
| 524 |
open IsSemimoduleMonomorphism isSemimoduleMonomorphism public |
| 525 |
|
| 526 |
isBisemimoduleIsomorphism : IsBisemimoduleIsomorphism ⟦_⟧ |
| 527 |
isBisemimoduleIsomorphism = record |
| 528 |
{ isBisemimoduleMonomorphism = isBisemimoduleMonomorphism |
| 529 |
; surjective = surjective |
| 530 |
} |
| 531 |
|
| 532 |
open IsBisemimoduleIsomorphism isBisemimoduleIsomorphism public |
| 533 |
using ( isRelIsomorphism; +ᴹ-isMagmaIsomorphism; +ᴹ-isMonoidIsomorphism |
| 534 |
; isLeftSemimoduleIsomorphism; isRightSemimoduleIsomorphism |
| 535 |
) |
| 536 |
|
| 537 |
module ModuleMorphisms |
| 538 |
{R : Set r} |
| 539 |
(M₁ : RawModule R m₁ ℓm₁) |
| 540 |
(M₂ : RawModule R m₂ ℓm₂) |
| 541 |
where |
| 542 |
|
| 543 |
open RawModule M₁ renaming (Carrierᴹ to A; _≈ᴹ_ to _≈ᴹ₁_) |
| 544 |
open RawModule M₂ renaming (Carrierᴹ to B; _≈ᴹ_ to _≈ᴹ₂_) |
| 545 |
open BimoduleMorphisms (RawModule.rawBimodule M₁) (RawModule.rawBimodule M₂) |
| 546 |
open SemimoduleMorphisms (RawModule.rawBisemimodule M₁) (RawModule.rawBisemimodule M₂) |
| 547 |
|
| 548 |
record IsModuleHomomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 549 |
field |
| 550 |
isBimoduleHomomorphism : IsBimoduleHomomorphism ⟦_⟧ |
| 551 |
|
| 552 |
open IsBimoduleHomomorphism isBimoduleHomomorphism public |
| 553 |
|
| 554 |
isSemimoduleHomomorphism : IsSemimoduleHomomorphism ⟦_⟧ |
| 555 |
isSemimoduleHomomorphism = record |
| 556 |
{ isBisemimoduleHomomorphism = isBisemimoduleHomomorphism |
| 557 |
} |
| 558 |
|
| 559 |
record IsModuleMonomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 560 |
field |
| 561 |
isModuleHomomorphism : IsModuleHomomorphism ⟦_⟧ |
| 562 |
injective : Injective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 563 |
|
| 564 |
open IsModuleHomomorphism isModuleHomomorphism public |
| 565 |
|
| 566 |
isBimoduleMonomorphism : IsBimoduleMonomorphism ⟦_⟧ |
| 567 |
isBimoduleMonomorphism = record |
| 568 |
{ isBimoduleHomomorphism = isBimoduleHomomorphism |
| 569 |
; injective = injective |
| 570 |
} |
| 571 |
|
| 572 |
open IsBimoduleMonomorphism isBimoduleMonomorphism public |
| 573 |
using ( isRelMonomorphism; +ᴹ-isMagmaMonomorphism; +ᴹ-isMonoidMonomorphism; +ᴹ-isGroupMonomorphism |
| 574 |
; isLeftSemimoduleMonomorphism; isRightSemimoduleMonomorphism; isBisemimoduleMonomorphism |
| 575 |
; isLeftModuleMonomorphism; isRightModuleMonomorphism |
| 576 |
) |
| 577 |
|
| 578 |
isSemimoduleMonomorphism : IsSemimoduleMonomorphism ⟦_⟧ |
| 579 |
isSemimoduleMonomorphism = record |
| 580 |
{ isSemimoduleHomomorphism = isSemimoduleHomomorphism |
| 581 |
; injective = injective |
| 582 |
} |
| 583 |
|
| 584 |
record IsModuleIsomorphism (⟦_⟧ : A → B) : Set (r ⊔ m₁ ⊔ m₂ ⊔ ℓm₁ ⊔ ℓm₂) where |
| 585 |
field |
| 586 |
isModuleMonomorphism : IsModuleMonomorphism ⟦_⟧ |
| 587 |
surjective : Surjective _≈ᴹ₁_ _≈ᴹ₂_ ⟦_⟧ |
| 588 |
|
| 589 |
open IsModuleMonomorphism isModuleMonomorphism public |
| 590 |
|
| 591 |
isBimoduleIsomorphism : IsBimoduleIsomorphism ⟦_⟧ |
| 592 |
isBimoduleIsomorphism = record |
| 593 |
{ isBimoduleMonomorphism = isBimoduleMonomorphism |
| 594 |
; surjective = surjective |
| 595 |
} |
| 596 |
|
| 597 |
open IsBimoduleIsomorphism isBimoduleIsomorphism public |
| 598 |
using ( isRelIsomorphism; +ᴹ-isMagmaIsomorphism; +ᴹ-isMonoidIsomorphism; +ᴹ-isGroupIsomorphism |
| 599 |
; isLeftSemimoduleIsomorphism; isRightSemimoduleIsomorphism; isBisemimoduleIsomorphism |
| 600 |
; isLeftModuleIsomorphism; isRightModuleIsomorphism |
| 601 |
) |
| 602 |
|
| 603 |
isSemimoduleIsomorphism : IsSemimoduleIsomorphism ⟦_⟧ |
| 604 |
isSemimoduleIsomorphism = record |
| 605 |
{ isSemimoduleMonomorphism = isSemimoduleMonomorphism |
| 606 |
; surjective = surjective |
| 607 |
} |
| 608 |
|
| 609 |
open LeftSemimoduleMorphisms public |
| 610 |
open LeftModuleMorphisms public |
| 611 |
open RightSemimoduleMorphisms public |
| 612 |
open RightModuleMorphisms public |
| 613 |
open BisemimoduleMorphisms public |
| 614 |
open BimoduleMorphisms public |
| 615 |
open SemimoduleMorphisms public |
| 616 |
open ModuleMorphisms public |