Debian Codegraph @

src/Algebra/Lattice/Morphism/Construct/Identity.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- The identity morphism for algebraic lattice structures
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --safe --cubical-compatible #-}
8
9 module Algebra.Lattice.Morphism.Construct.Identity where
10
11 open import Algebra.Lattice.Bundles using (RawLattice)
12 open import Algebra.Lattice.Morphism.Structures
13 using ( module LatticeMorphisms )
14 open import Data.Product.Base using (_,_)
15 open import Function.Base using (id)
16 import Function.Construct.Identity as Id
17 open import Level using (Level)
18 open import Relation.Binary.Morphism.Construct.Identity using (isRelHomomorphism)
19 open import Relation.Binary.Definitions using (Reflexive)
20
21 private
22 variable
23 c ℓ : Level
24
25 module _ (L : RawLattice c ℓ) (open RawLattice L) (refl : Reflexive _≈_) where
26 open LatticeMorphisms L L
27
28 isLatticeHomomorphism : IsLatticeHomomorphism id
29 isLatticeHomomorphism = record
30 { isRelHomomorphism = isRelHomomorphism _
31 ; ∧-homo = λ _ _ → refl
32 ; ∨-homo = λ _ _ → refl
33 }
34
35 isLatticeMonomorphism : IsLatticeMonomorphism id
36 isLatticeMonomorphism = record
37 { isLatticeHomomorphism = isLatticeHomomorphism
38 ; injective = id
39 }
40
41 isLatticeIsomorphism : IsLatticeIsomorphism id
42 isLatticeIsomorphism = record
43 { isLatticeMonomorphism = isLatticeMonomorphism
44 ; surjective = Id.surjective _
45 }