| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Basic definitions for morphisms between algebraic structures |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Relation.Binary.Core |
| 10 |
|
| 11 |
module Algebra.Morphism.Definitions |
| 12 |
{a} (A : Set a) -- The domain of the morphism |
| 13 |
{b} (B : Set b) -- The codomain of the morphism |
| 14 |
{ℓ} (_≈_ : Rel B ℓ) -- The equality relation over the codomain |
| 15 |
where |
| 16 |
|
| 17 |
open import Algebra.Core |
| 18 |
using (Op₁; Op₂) |
| 19 |
|
| 20 |
------------------------------------------------------------------------ |
| 21 |
-- Basic definitions |
| 22 |
|
| 23 |
Homomorphic₀ : (A → B) → A → B → Set _ |
| 24 |
Homomorphic₀ ⟦_⟧ ∙ ∘ = ⟦ ∙ ⟧ ≈ ∘ |
| 25 |
|
| 26 |
Homomorphic₁ : (A → B) → Op₁ A → Op₁ B → Set _ |
| 27 |
Homomorphic₁ ⟦_⟧ ∙_ ∘_ = ∀ x → ⟦ ∙ x ⟧ ≈ (∘ ⟦ x ⟧) |
| 28 |
|
| 29 |
Homomorphic₂ : (A → B) → Op₂ A → Op₂ B → Set _ |
| 30 |
Homomorphic₂ ⟦_⟧ _∙_ _∘_ = ∀ x y → ⟦ x ∙ y ⟧ ≈ (⟦ x ⟧ ∘ ⟦ y ⟧) |
| 31 |
|
| 32 |
------------------------------------------------------------------------ |
| 33 |
-- DEPRECATED NAMES |
| 34 |
------------------------------------------------------------------------ |
| 35 |
-- Please use the new names as continuing support for the old names is |
| 36 |
-- not guaranteed. |
| 37 |
|
| 38 |
-- Version 1.3 |
| 39 |
|
| 40 |
Morphism : Set _ |
| 41 |
Morphism = A → B |
| 42 |
|
| 43 |
{-# WARNING_ON_USAGE Morphism |
| 44 |
"Warning: Morphism was deprecated in v1.3. |
| 45 |
Please use the standard function notation (e.g. A → B) instead." |
| 46 |
#-} |