Debian Codegraph @

src/Relation/Binary/Lattice/Definitions.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Definitions for order-theoretic lattices
5 ------------------------------------------------------------------------
6
7 -- The contents of this module should be accessed via
8 -- `Relation.Binary.Lattice`.
9
10 {-# OPTIONS --cubical-compatible --safe #-}
11
12 module Relation.Binary.Lattice.Definitions where
13
14 open import Algebra.Core using (Op₁; Op₂)
15 open import Data.Product.Base using (_×_; _,_)
16 open import Function.Base using (flip)
17 open import Level using (Level)
18 open import Relation.Binary.Core using (Rel)
19
20 private
21 variable
22 a ℓ : Level
23 A : Set a
24
25 ------------------------------------------------------------------------
26 -- Relationships between orders and operators
27
28 Supremum : Rel A ℓ → Op₂ A → Set _
29 Supremum _≤_ _∨_ =
30 ∀ x y → x ≤ (x ∨ y) × y ≤ (x ∨ y) × ∀ z → x ≤ z → y ≤ z → (x ∨ y) ≤ z
31
32 Infimum : Rel A ℓ → Op₂ A → Set _
33 Infimum _≤_ = Supremum (flip _≤_)
34
35 Exponential : Rel A ℓ → Op₂ A → Op₂ A → Set _
36 Exponential _≤_ _∧_ _⇨_ =
37 ∀ w x y → ((w ∧ x) ≤ y → w ≤ (x ⇨ y)) × (w ≤ (x ⇨ y) → (w ∧ x) ≤ y)