Debian Codegraph @

src/Relation/Binary/Morphism/Definitions.agda

raw
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 Relation.Binary.Morphism.Definitions
12 {a} (A : Set a) -- The domain of the morphism
13 {b} (B : Set b) -- The codomain of the morphism
14 where
15
16 open import Level using (Level)
17
18 private
19 variable
20 ℓ₁ ℓ₂ : Level
21
22 ------------------------------------------------------------------------
23 -- Morphism definition in Function.Core
24
25 open import Function.Core public
26 using (Morphism)
27
28 ------------------------------------------------------------------------
29 -- Basic definitions
30
31 Homomorphic₂ : Rel A ℓ₁ → Rel B ℓ₂ → (A → B) → Set _
32 Homomorphic₂ _∼₁_ _∼₂_ ⟦_⟧ = ∀ {x y} → x ∼₁ y → ⟦ x ⟧ ∼₂ ⟦ y ⟧