Debian Codegraph @

src/Algebra/Lattice/Construct/Zero.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Instances of algebraic lattice structures where the carrier is ⊤.
5 -- In mathematics, this is usually called 0.
6 --
7 -- From monoids up, these are are zero-objects – i.e, both the initial
8 -- and the terminal object in the relevant category.
9 -- For structures without an identity element, we can't necessarily
10 -- produce a homomorphism out of 0, because there is an instance of such
11 -- a structure with an empty Carrier.
12 ------------------------------------------------------------------------
13
14 {-# OPTIONS --cubical-compatible --safe #-}
15
16 open import Level using (Level)
17
18 module Algebra.Lattice.Construct.Zero {c ℓ : Level} where
19
20 open import Algebra.Lattice.Bundles using (Semilattice)
21 open import Data.Unit.Polymorphic using (⊤)
22
23 ------------------------------------------------------------------------
24 -- Bundles
25
26 semilattice : Semilattice c ℓ
27 semilattice = record { Carrier = ⊤ ; _≈_ = λ _ _ → ⊤ }