| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- The composition of morphisms between module-like algebraic structures. |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --safe --cubical-compatible #-} |
| 8 |
|
| 9 |
module Algebra.Module.Morphism.Construct.Composition where |
| 10 |
|
| 11 |
open import Algebra.Module.Bundles.Raw |
| 12 |
using (RawLeftSemimodule; RawLeftModule; RawRightSemimodule; RawRightModule; |
| 13 |
RawBisemimodule; RawBimodule; RawSemimodule; RawModule) |
| 14 |
open import Algebra.Module.Morphism.Structures |
| 15 |
open import Algebra.Morphism.Construct.Composition using (isMonoidHomomorphism; isGroupHomomorphism) |
| 16 |
open import Function.Base using (_∘_) |
| 17 |
import Function.Construct.Composition as Func using (surjective) |
| 18 |
open import Level using (Level) |
| 19 |
open import Relation.Binary.Definitions using (Transitive) |
| 20 |
|
| 21 |
private |
| 22 |
variable |
| 23 |
r s m₁ ℓm₁ m₂ ℓm₂ m₃ ℓm₃ : Level |
| 24 |
|
| 25 |
module _ |
| 26 |
{R : Set r} |
| 27 |
{M₁ : RawLeftSemimodule R m₁ ℓm₁} |
| 28 |
{M₂ : RawLeftSemimodule R m₂ ℓm₂} |
| 29 |
{M₃ : RawLeftSemimodule R m₃ ℓm₃} |
| 30 |
(open RawLeftSemimodule) |
| 31 |
(≈ᴹ₃-trans : Transitive (_≈ᴹ_ M₃)) |
| 32 |
{f : Carrierᴹ M₁ → Carrierᴹ M₂} |
| 33 |
{g : Carrierᴹ M₂ → Carrierᴹ M₃} |
| 34 |
where |
| 35 |
|
| 36 |
isLeftSemimoduleHomomorphism : IsLeftSemimoduleHomomorphism M₁ M₂ f → |
| 37 |
IsLeftSemimoduleHomomorphism M₂ M₃ g → |
| 38 |
IsLeftSemimoduleHomomorphism M₁ M₃ (g ∘ f) |
| 39 |
isLeftSemimoduleHomomorphism f-homo g-homo = record |
| 40 |
{ +ᴹ-isMonoidHomomorphism = isMonoidHomomorphism ≈ᴹ₃-trans F.+ᴹ-isMonoidHomomorphism G.+ᴹ-isMonoidHomomorphism |
| 41 |
; *ₗ-homo = λ r x → ≈ᴹ₃-trans (G.⟦⟧-cong (F.*ₗ-homo r x)) (G.*ₗ-homo r (f x)) |
| 42 |
} where module F = IsLeftSemimoduleHomomorphism f-homo; module G = IsLeftSemimoduleHomomorphism g-homo |
| 43 |
|
| 44 |
isLeftSemimoduleMonomorphism : IsLeftSemimoduleMonomorphism M₁ M₂ f → |
| 45 |
IsLeftSemimoduleMonomorphism M₂ M₃ g → |
| 46 |
IsLeftSemimoduleMonomorphism M₁ M₃ (g ∘ f) |
| 47 |
isLeftSemimoduleMonomorphism f-mono g-mono = record |
| 48 |
{ isLeftSemimoduleHomomorphism = isLeftSemimoduleHomomorphism F.isLeftSemimoduleHomomorphism G.isLeftSemimoduleHomomorphism |
| 49 |
; injective = F.injective ∘ G.injective |
| 50 |
} where module F = IsLeftSemimoduleMonomorphism f-mono; module G = IsLeftSemimoduleMonomorphism g-mono |
| 51 |
|
| 52 |
isLeftSemimoduleIsomorphism : IsLeftSemimoduleIsomorphism M₁ M₂ f → |
| 53 |
IsLeftSemimoduleIsomorphism M₂ M₃ g → |
| 54 |
IsLeftSemimoduleIsomorphism M₁ M₃ (g ∘ f) |
| 55 |
isLeftSemimoduleIsomorphism f-iso g-iso = record |
| 56 |
{ isLeftSemimoduleMonomorphism = isLeftSemimoduleMonomorphism F.isLeftSemimoduleMonomorphism G.isLeftSemimoduleMonomorphism |
| 57 |
; surjective = Func.surjective _ _ (_≈ᴹ_ M₃) F.surjective G.surjective |
| 58 |
} where module F = IsLeftSemimoduleIsomorphism f-iso; module G = IsLeftSemimoduleIsomorphism g-iso |
| 59 |
|
| 60 |
module _ |
| 61 |
{R : Set r} |
| 62 |
{M₁ : RawLeftModule R m₁ ℓm₁} |
| 63 |
{M₂ : RawLeftModule R m₂ ℓm₂} |
| 64 |
{M₃ : RawLeftModule R m₃ ℓm₃} |
| 65 |
(open RawLeftModule) |
| 66 |
(≈ᴹ₃-trans : Transitive (_≈ᴹ_ M₃)) |
| 67 |
{f : Carrierᴹ M₁ → Carrierᴹ M₂} |
| 68 |
{g : Carrierᴹ M₂ → Carrierᴹ M₃} |
| 69 |
where |
| 70 |
|
| 71 |
isLeftModuleHomomorphism : IsLeftModuleHomomorphism M₁ M₂ f → |
| 72 |
IsLeftModuleHomomorphism M₂ M₃ g → |
| 73 |
IsLeftModuleHomomorphism M₁ M₃ (g ∘ f) |
| 74 |
isLeftModuleHomomorphism f-homo g-homo = record |
| 75 |
{ +ᴹ-isGroupHomomorphism = isGroupHomomorphism ≈ᴹ₃-trans F.+ᴹ-isGroupHomomorphism G.+ᴹ-isGroupHomomorphism |
| 76 |
; *ₗ-homo = λ r x → ≈ᴹ₃-trans (G.⟦⟧-cong (F.*ₗ-homo r x)) (G.*ₗ-homo r (f x)) |
| 77 |
} where module F = IsLeftModuleHomomorphism f-homo; module G = IsLeftModuleHomomorphism g-homo |
| 78 |
|
| 79 |
isLeftModuleMonomorphism : IsLeftModuleMonomorphism M₁ M₂ f → |
| 80 |
IsLeftModuleMonomorphism M₂ M₃ g → |
| 81 |
IsLeftModuleMonomorphism M₁ M₃ (g ∘ f) |
| 82 |
isLeftModuleMonomorphism f-mono g-mono = record |
| 83 |
{ isLeftModuleHomomorphism = isLeftModuleHomomorphism F.isLeftModuleHomomorphism G.isLeftModuleHomomorphism |
| 84 |
; injective = F.injective ∘ G.injective |
| 85 |
} where module F = IsLeftModuleMonomorphism f-mono; module G = IsLeftModuleMonomorphism g-mono |
| 86 |
|
| 87 |
isLeftModuleIsomorphism : IsLeftModuleIsomorphism M₁ M₂ f → |
| 88 |
IsLeftModuleIsomorphism M₂ M₃ g → |
| 89 |
IsLeftModuleIsomorphism M₁ M₃ (g ∘ f) |
| 90 |
isLeftModuleIsomorphism f-iso g-iso = record |
| 91 |
{ isLeftModuleMonomorphism = isLeftModuleMonomorphism F.isLeftModuleMonomorphism G.isLeftModuleMonomorphism |
| 92 |
; surjective = Func.surjective _ _ (_≈ᴹ_ M₃) F.surjective G.surjective |
| 93 |
} where module F = IsLeftModuleIsomorphism f-iso; module G = IsLeftModuleIsomorphism g-iso |
| 94 |
|
| 95 |
module _ |
| 96 |
{R : Set r} |
| 97 |
{M₁ : RawRightSemimodule R m₁ ℓm₁} |
| 98 |
{M₂ : RawRightSemimodule R m₂ ℓm₂} |
| 99 |
{M₃ : RawRightSemimodule R m₃ ℓm₃} |
| 100 |
(open RawRightSemimodule) |
| 101 |
(≈ᴹ₃-trans : Transitive (_≈ᴹ_ M₃)) |
| 102 |
{f : Carrierᴹ M₁ → Carrierᴹ M₂} |
| 103 |
{g : Carrierᴹ M₂ → Carrierᴹ M₃} |
| 104 |
where |
| 105 |
|
| 106 |
isRightSemimoduleHomomorphism : IsRightSemimoduleHomomorphism M₁ M₂ f → |
| 107 |
IsRightSemimoduleHomomorphism M₂ M₃ g → |
| 108 |
IsRightSemimoduleHomomorphism M₁ M₃ (g ∘ f) |
| 109 |
isRightSemimoduleHomomorphism f-homo g-homo = record |
| 110 |
{ +ᴹ-isMonoidHomomorphism = isMonoidHomomorphism ≈ᴹ₃-trans F.+ᴹ-isMonoidHomomorphism G.+ᴹ-isMonoidHomomorphism |
| 111 |
; *ᵣ-homo = λ r x → ≈ᴹ₃-trans (G.⟦⟧-cong (F.*ᵣ-homo r x)) (G.*ᵣ-homo r (f x)) |
| 112 |
} where module F = IsRightSemimoduleHomomorphism f-homo; module G = IsRightSemimoduleHomomorphism g-homo |
| 113 |
|
| 114 |
isRightSemimoduleMonomorphism : IsRightSemimoduleMonomorphism M₁ M₂ f → |
| 115 |
IsRightSemimoduleMonomorphism M₂ M₃ g → |
| 116 |
IsRightSemimoduleMonomorphism M₁ M₃ (g ∘ f) |
| 117 |
isRightSemimoduleMonomorphism f-mono g-mono = record |
| 118 |
{ isRightSemimoduleHomomorphism = isRightSemimoduleHomomorphism F.isRightSemimoduleHomomorphism G.isRightSemimoduleHomomorphism |
| 119 |
; injective = F.injective ∘ G.injective |
| 120 |
} where module F = IsRightSemimoduleMonomorphism f-mono; module G = IsRightSemimoduleMonomorphism g-mono |
| 121 |
|
| 122 |
isRightSemimoduleIsomorphism : IsRightSemimoduleIsomorphism M₁ M₂ f → |
| 123 |
IsRightSemimoduleIsomorphism M₂ M₃ g → |
| 124 |
IsRightSemimoduleIsomorphism M₁ M₃ (g ∘ f) |
| 125 |
isRightSemimoduleIsomorphism f-iso g-iso = record |
| 126 |
{ isRightSemimoduleMonomorphism = isRightSemimoduleMonomorphism F.isRightSemimoduleMonomorphism G.isRightSemimoduleMonomorphism |
| 127 |
; surjective = Func.surjective _ _ (_≈ᴹ_ M₃) F.surjective G.surjective |
| 128 |
} where module F = IsRightSemimoduleIsomorphism f-iso; module G = IsRightSemimoduleIsomorphism g-iso |
| 129 |
|
| 130 |
module _ |
| 131 |
{R : Set r} |
| 132 |
{M₁ : RawRightModule R m₁ ℓm₁} |
| 133 |
{M₂ : RawRightModule R m₂ ℓm₂} |
| 134 |
{M₃ : RawRightModule R m₃ ℓm₃} |
| 135 |
(open RawRightModule) |
| 136 |
(≈ᴹ₃-trans : Transitive (_≈ᴹ_ M₃)) |
| 137 |
{f : Carrierᴹ M₁ → Carrierᴹ M₂} |
| 138 |
{g : Carrierᴹ M₂ → Carrierᴹ M₃} |
| 139 |
where |
| 140 |
|
| 141 |
isRightModuleHomomorphism : IsRightModuleHomomorphism M₁ M₂ f → |
| 142 |
IsRightModuleHomomorphism M₂ M₃ g → |
| 143 |
IsRightModuleHomomorphism M₁ M₃ (g ∘ f) |
| 144 |
isRightModuleHomomorphism f-homo g-homo = record |
| 145 |
{ +ᴹ-isGroupHomomorphism = isGroupHomomorphism ≈ᴹ₃-trans F.+ᴹ-isGroupHomomorphism G.+ᴹ-isGroupHomomorphism |
| 146 |
; *ᵣ-homo = λ r x → ≈ᴹ₃-trans (G.⟦⟧-cong (F.*ᵣ-homo r x)) (G.*ᵣ-homo r (f x)) |
| 147 |
} where module F = IsRightModuleHomomorphism f-homo; module G = IsRightModuleHomomorphism g-homo |
| 148 |
|
| 149 |
isRightModuleMonomorphism : IsRightModuleMonomorphism M₁ M₂ f → |
| 150 |
IsRightModuleMonomorphism M₂ M₃ g → |
| 151 |
IsRightModuleMonomorphism M₁ M₃ (g ∘ f) |
| 152 |
isRightModuleMonomorphism f-mono g-mono = record |
| 153 |
{ isRightModuleHomomorphism = isRightModuleHomomorphism F.isRightModuleHomomorphism G.isRightModuleHomomorphism |
| 154 |
; injective = F.injective ∘ G.injective |
| 155 |
} where module F = IsRightModuleMonomorphism f-mono; module G = IsRightModuleMonomorphism g-mono |
| 156 |
|
| 157 |
isRightModuleIsomorphism : IsRightModuleIsomorphism M₁ M₂ f → |
| 158 |
IsRightModuleIsomorphism M₂ M₃ g → |
| 159 |
IsRightModuleIsomorphism M₁ M₃ (g ∘ f) |
| 160 |
isRightModuleIsomorphism f-iso g-iso = record |
| 161 |
{ isRightModuleMonomorphism = isRightModuleMonomorphism F.isRightModuleMonomorphism G.isRightModuleMonomorphism |
| 162 |
; surjective = Func.surjective _ _ (_≈ᴹ_ M₃) F.surjective G.surjective |
| 163 |
} where module F = IsRightModuleIsomorphism f-iso; module G = IsRightModuleIsomorphism g-iso |
| 164 |
|
| 165 |
module _ |
| 166 |
{R : Set r} |
| 167 |
{S : Set s} |
| 168 |
{M₁ : RawBisemimodule R S m₁ ℓm₁} |
| 169 |
{M₂ : RawBisemimodule R S m₂ ℓm₂} |
| 170 |
{M₃ : RawBisemimodule R S m₃ ℓm₃} |
| 171 |
(open RawBisemimodule) |
| 172 |
(≈ᴹ₃-trans : Transitive (_≈ᴹ_ M₃)) |
| 173 |
{f : Carrierᴹ M₁ → Carrierᴹ M₂} |
| 174 |
{g : Carrierᴹ M₂ → Carrierᴹ M₃} |
| 175 |
where |
| 176 |
|
| 177 |
isBisemimoduleHomomorphism : IsBisemimoduleHomomorphism M₁ M₂ f → |
| 178 |
IsBisemimoduleHomomorphism M₂ M₃ g → |
| 179 |
IsBisemimoduleHomomorphism M₁ M₃ (g ∘ f) |
| 180 |
isBisemimoduleHomomorphism f-homo g-homo = record |
| 181 |
{ +ᴹ-isMonoidHomomorphism = isMonoidHomomorphism ≈ᴹ₃-trans F.+ᴹ-isMonoidHomomorphism G.+ᴹ-isMonoidHomomorphism |
| 182 |
; *ₗ-homo = λ r x → ≈ᴹ₃-trans (G.⟦⟧-cong (F.*ₗ-homo r x)) (G.*ₗ-homo r (f x)) |
| 183 |
; *ᵣ-homo = λ r x → ≈ᴹ₃-trans (G.⟦⟧-cong (F.*ᵣ-homo r x)) (G.*ᵣ-homo r (f x)) |
| 184 |
} where module F = IsBisemimoduleHomomorphism f-homo; module G = IsBisemimoduleHomomorphism g-homo |
| 185 |
|
| 186 |
isBisemimoduleMonomorphism : IsBisemimoduleMonomorphism M₁ M₂ f → |
| 187 |
IsBisemimoduleMonomorphism M₂ M₃ g → |
| 188 |
IsBisemimoduleMonomorphism M₁ M₃ (g ∘ f) |
| 189 |
isBisemimoduleMonomorphism f-mono g-mono = record |
| 190 |
{ isBisemimoduleHomomorphism = isBisemimoduleHomomorphism F.isBisemimoduleHomomorphism G.isBisemimoduleHomomorphism |
| 191 |
; injective = F.injective ∘ G.injective |
| 192 |
} where module F = IsBisemimoduleMonomorphism f-mono; module G = IsBisemimoduleMonomorphism g-mono |
| 193 |
|
| 194 |
isBisemimoduleIsomorphism : IsBisemimoduleIsomorphism M₁ M₂ f → |
| 195 |
IsBisemimoduleIsomorphism M₂ M₃ g → |
| 196 |
IsBisemimoduleIsomorphism M₁ M₃ (g ∘ f) |
| 197 |
isBisemimoduleIsomorphism f-iso g-iso = record |
| 198 |
{ isBisemimoduleMonomorphism = isBisemimoduleMonomorphism F.isBisemimoduleMonomorphism G.isBisemimoduleMonomorphism |
| 199 |
; surjective = Func.surjective _ _ (_≈ᴹ_ M₃) F.surjective G.surjective |
| 200 |
} where module F = IsBisemimoduleIsomorphism f-iso; module G = IsBisemimoduleIsomorphism g-iso |
| 201 |
|
| 202 |
module _ |
| 203 |
{R : Set r} |
| 204 |
{S : Set s} |
| 205 |
{M₁ : RawBimodule R S m₁ ℓm₁} |
| 206 |
{M₂ : RawBimodule R S m₂ ℓm₂} |
| 207 |
{M₃ : RawBimodule R S m₃ ℓm₃} |
| 208 |
(open RawBimodule) |
| 209 |
(≈ᴹ₃-trans : Transitive (_≈ᴹ_ M₃)) |
| 210 |
{f : Carrierᴹ M₁ → Carrierᴹ M₂} |
| 211 |
{g : Carrierᴹ M₂ → Carrierᴹ M₃} |
| 212 |
where |
| 213 |
|
| 214 |
isBimoduleHomomorphism : IsBimoduleHomomorphism M₁ M₂ f → |
| 215 |
IsBimoduleHomomorphism M₂ M₃ g → |
| 216 |
IsBimoduleHomomorphism M₁ M₃ (g ∘ f) |
| 217 |
isBimoduleHomomorphism f-homo g-homo = record |
| 218 |
{ +ᴹ-isGroupHomomorphism = isGroupHomomorphism ≈ᴹ₃-trans F.+ᴹ-isGroupHomomorphism G.+ᴹ-isGroupHomomorphism |
| 219 |
; *ₗ-homo = λ r x → ≈ᴹ₃-trans (G.⟦⟧-cong (F.*ₗ-homo r x)) (G.*ₗ-homo r (f x)) |
| 220 |
; *ᵣ-homo = λ r x → ≈ᴹ₃-trans (G.⟦⟧-cong (F.*ᵣ-homo r x)) (G.*ᵣ-homo r (f x)) |
| 221 |
} where module F = IsBimoduleHomomorphism f-homo; module G = IsBimoduleHomomorphism g-homo |
| 222 |
|
| 223 |
isBimoduleMonomorphism : IsBimoduleMonomorphism M₁ M₂ f → |
| 224 |
IsBimoduleMonomorphism M₂ M₃ g → |
| 225 |
IsBimoduleMonomorphism M₁ M₃ (g ∘ f) |
| 226 |
isBimoduleMonomorphism f-mono g-mono = record |
| 227 |
{ isBimoduleHomomorphism = isBimoduleHomomorphism F.isBimoduleHomomorphism G.isBimoduleHomomorphism |
| 228 |
; injective = F.injective ∘ G.injective |
| 229 |
} where module F = IsBimoduleMonomorphism f-mono; module G = IsBimoduleMonomorphism g-mono |
| 230 |
|
| 231 |
isBimoduleIsomorphism : IsBimoduleIsomorphism M₁ M₂ f → |
| 232 |
IsBimoduleIsomorphism M₂ M₃ g → |
| 233 |
IsBimoduleIsomorphism M₁ M₃ (g ∘ f) |
| 234 |
isBimoduleIsomorphism f-iso g-iso = record |
| 235 |
{ isBimoduleMonomorphism = isBimoduleMonomorphism F.isBimoduleMonomorphism G.isBimoduleMonomorphism |
| 236 |
; surjective = Func.surjective _ _ (_≈ᴹ_ M₃) F.surjective G.surjective |
| 237 |
} where module F = IsBimoduleIsomorphism f-iso; module G = IsBimoduleIsomorphism g-iso |
| 238 |
|
| 239 |
module _ |
| 240 |
{R : Set r} |
| 241 |
{M₁ : RawSemimodule R m₁ ℓm₁} |
| 242 |
{M₂ : RawSemimodule R m₂ ℓm₂} |
| 243 |
{M₃ : RawSemimodule R m₃ ℓm₃} |
| 244 |
(open RawSemimodule) |
| 245 |
(≈ᴹ₃-trans : Transitive (_≈ᴹ_ M₃)) |
| 246 |
{f : Carrierᴹ M₁ → Carrierᴹ M₂} |
| 247 |
{g : Carrierᴹ M₂ → Carrierᴹ M₃} |
| 248 |
where |
| 249 |
|
| 250 |
isSemimoduleHomomorphism : IsSemimoduleHomomorphism M₁ M₂ f → |
| 251 |
IsSemimoduleHomomorphism M₂ M₃ g → |
| 252 |
IsSemimoduleHomomorphism M₁ M₃ (g ∘ f) |
| 253 |
isSemimoduleHomomorphism f-homo g-homo = record |
| 254 |
{ isBisemimoduleHomomorphism = isBisemimoduleHomomorphism ≈ᴹ₃-trans F.isBisemimoduleHomomorphism G.isBisemimoduleHomomorphism |
| 255 |
} where module F = IsSemimoduleHomomorphism f-homo; module G = IsSemimoduleHomomorphism g-homo |
| 256 |
|
| 257 |
isSemimoduleMonomorphism : IsSemimoduleMonomorphism M₁ M₂ f → |
| 258 |
IsSemimoduleMonomorphism M₂ M₃ g → |
| 259 |
IsSemimoduleMonomorphism M₁ M₃ (g ∘ f) |
| 260 |
isSemimoduleMonomorphism f-mono g-mono = record |
| 261 |
{ isSemimoduleHomomorphism = isSemimoduleHomomorphism F.isSemimoduleHomomorphism G.isSemimoduleHomomorphism |
| 262 |
; injective = F.injective ∘ G.injective |
| 263 |
} where module F = IsSemimoduleMonomorphism f-mono; module G = IsSemimoduleMonomorphism g-mono |
| 264 |
|
| 265 |
isSemimoduleIsomorphism : IsSemimoduleIsomorphism M₁ M₂ f → |
| 266 |
IsSemimoduleIsomorphism M₂ M₃ g → |
| 267 |
IsSemimoduleIsomorphism M₁ M₃ (g ∘ f) |
| 268 |
isSemimoduleIsomorphism f-iso g-iso = record |
| 269 |
{ isSemimoduleMonomorphism = isSemimoduleMonomorphism F.isSemimoduleMonomorphism G.isSemimoduleMonomorphism |
| 270 |
; surjective = Func.surjective _ _ (_≈ᴹ_ M₃) F.surjective G.surjective |
| 271 |
} where module F = IsSemimoduleIsomorphism f-iso; module G = IsSemimoduleIsomorphism g-iso |
| 272 |
|
| 273 |
module _ |
| 274 |
{R : Set r} |
| 275 |
{M₁ : RawModule R m₁ ℓm₁} |
| 276 |
{M₂ : RawModule R m₂ ℓm₂} |
| 277 |
{M₃ : RawModule R m₃ ℓm₃} |
| 278 |
(open RawModule) |
| 279 |
(≈ᴹ₃-trans : Transitive (_≈ᴹ_ M₃)) |
| 280 |
{f : Carrierᴹ M₁ → Carrierᴹ M₂} |
| 281 |
{g : Carrierᴹ M₂ → Carrierᴹ M₃} |
| 282 |
where |
| 283 |
|
| 284 |
isModuleHomomorphism : IsModuleHomomorphism M₁ M₂ f → |
| 285 |
IsModuleHomomorphism M₂ M₃ g → |
| 286 |
IsModuleHomomorphism M₁ M₃ (g ∘ f) |
| 287 |
isModuleHomomorphism f-homo g-homo = record |
| 288 |
{ isBimoduleHomomorphism = isBimoduleHomomorphism ≈ᴹ₃-trans F.isBimoduleHomomorphism G.isBimoduleHomomorphism |
| 289 |
} where module F = IsModuleHomomorphism f-homo; module G = IsModuleHomomorphism g-homo |
| 290 |
|
| 291 |
isModuleMonomorphism : IsModuleMonomorphism M₁ M₂ f → |
| 292 |
IsModuleMonomorphism M₂ M₃ g → |
| 293 |
IsModuleMonomorphism M₁ M₃ (g ∘ f) |
| 294 |
isModuleMonomorphism f-mono g-mono = record |
| 295 |
{ isModuleHomomorphism = isModuleHomomorphism F.isModuleHomomorphism G.isModuleHomomorphism |
| 296 |
; injective = F.injective ∘ G.injective |
| 297 |
} where module F = IsModuleMonomorphism f-mono; module G = IsModuleMonomorphism g-mono |
| 298 |
|
| 299 |
isModuleIsomorphism : IsModuleIsomorphism M₁ M₂ f → |
| 300 |
IsModuleIsomorphism M₂ M₃ g → |
| 301 |
IsModuleIsomorphism M₁ M₃ (g ∘ f) |
| 302 |
isModuleIsomorphism f-iso g-iso = record |
| 303 |
{ isModuleMonomorphism = isModuleMonomorphism F.isModuleMonomorphism G.isModuleMonomorphism |
| 304 |
; surjective = Func.surjective _ _ (_≈ᴹ_ M₃) F.surjective G.surjective |
| 305 |
} where module F = IsModuleIsomorphism f-iso; module G = IsModuleIsomorphism g-iso |