| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Properties satisfied by bounded meet semilattices |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Relation.Binary.Lattice |
| 10 |
using (BoundedMeetSemilattice; IsBoundedJoinSemilattice; BoundedJoinSemilattice) |
| 11 |
|
| 12 |
module Relation.Binary.Lattice.Properties.BoundedMeetSemilattice |
| 13 |
{c ℓ₁ ℓ₂} (M : BoundedMeetSemilattice c ℓ₁ ℓ₂) where |
| 14 |
|
| 15 |
open import Function.Base using (_∘_; flip) |
| 16 |
|
| 17 |
open BoundedMeetSemilattice M |
| 18 |
using (⊤; _∧_; isBoundedMeetSemilattice; _≈_; poset; _≤_; infimum; maximum) |
| 19 |
|
| 20 |
open import Algebra.Definitions _≈_ |
| 21 |
using (LeftIdentity; RightIdentity; Identity) |
| 22 |
open import Relation.Binary.Properties.Poset poset using (≥-isPartialOrder) |
| 23 |
import Relation.Binary.Lattice.Properties.BoundedJoinSemilattice as J |
| 24 |
|
| 25 |
-- The dual construction is a bounded join semilattice. |
| 26 |
|
| 27 |
dualIsBoundedJoinSemilattice : IsBoundedJoinSemilattice _≈_ (flip _≤_) _∧_ ⊤ |
| 28 |
dualIsBoundedJoinSemilattice = record |
| 29 |
{ isJoinSemilattice = record |
| 30 |
{ isPartialOrder = ≥-isPartialOrder |
| 31 |
; supremum = infimum |
| 32 |
} |
| 33 |
; minimum = maximum |
| 34 |
} |
| 35 |
|
| 36 |
dualBoundedJoinSemilattice : BoundedJoinSemilattice c ℓ₁ ℓ₂ |
| 37 |
dualBoundedJoinSemilattice = record |
| 38 |
{ ⊥ = ⊤ |
| 39 |
; isBoundedJoinSemilattice = dualIsBoundedJoinSemilattice |
| 40 |
} |
| 41 |
|
| 42 |
open J dualBoundedJoinSemilattice |
| 43 |
hiding (dualIsBoundedMeetSemilattice; dualBoundedMeetSemilattice) public |
| 44 |
|