| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Basic definitions for morphisms between module-like algebraic |
| 5 |
-- structures |
| 6 |
------------------------------------------------------------------------ |
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Relation.Binary.Core using (Rel) |
| 10 |
|
| 11 |
module Algebra.Module.Morphism.Definitions |
| 12 |
{r} (R : Set r) -- The underlying ring |
| 13 |
{a} (A : Set a) -- The domain of the morphism |
| 14 |
{b} (B : Set b) -- The codomain of the morphism |
| 15 |
{ℓ} (_≈_ : Rel B ℓ) -- The equality relation over the codomain |
| 16 |
where |
| 17 |
|
| 18 |
open import Algebra.Module.Core using (Opₗ; Opᵣ) |
| 19 |
open import Algebra.Morphism.Definitions A B _≈_ public |
| 20 |
|
| 21 |
Homomorphicₗ : (A → B) → Opₗ R A → Opₗ R B → Set _ |
| 22 |
Homomorphicₗ ⟦_⟧ _∙_ _∘_ = ∀ r x → ⟦ r ∙ x ⟧ ≈ (r ∘ ⟦ x ⟧) |
| 23 |
|
| 24 |
Homomorphicᵣ : (A → B) → Opᵣ R A → Opᵣ R B → Set _ |
| 25 |
Homomorphicᵣ ⟦_⟧ _∙_ _∘_ = ∀ r x → ⟦ x ∙ r ⟧ ≈ (⟦ x ⟧ ∘ r) |