| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Some derivable properties |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Algebra.Lattice.Bundles using (DistributiveLattice) |
| 10 |
|
| 11 |
module Algebra.Lattice.Properties.DistributiveLattice |
| 12 |
{dl₁ dl₂} (DL : DistributiveLattice dl₁ dl₂) |
| 13 |
where |
| 14 |
|
| 15 |
import Algebra.Lattice.Properties.Lattice as LatticeProperties |
| 16 |
open DistributiveLattice DL |
| 17 |
open import Algebra.Definitions _≈_ |
| 18 |
open import Algebra.Lattice.Structures _≈_ |
| 19 |
open import Relation.Binary.Reasoning.Setoid setoid |
| 20 |
|
| 21 |
------------------------------------------------------------------------ |
| 22 |
-- Export properties of lattices |
| 23 |
|
| 24 |
open LatticeProperties lattice public |
| 25 |
|
| 26 |
------------------------------------------------------------------------ |
| 27 |
-- The dual construction is also a distributive lattice. |
| 28 |
|
| 29 |
∧-∨-isDistributiveLattice : IsDistributiveLattice _∧_ _∨_ |
| 30 |
∧-∨-isDistributiveLattice = record |
| 31 |
{ isLattice = ∧-∨-isLattice |
| 32 |
; ∨-distrib-∧ = ∧-distrib-∨ |
| 33 |
; ∧-distrib-∨ = ∨-distrib-∧ |
| 34 |
} |
| 35 |
|
| 36 |
∧-∨-distributiveLattice : DistributiveLattice _ _ |
| 37 |
∧-∨-distributiveLattice = record |
| 38 |
{ isDistributiveLattice = ∧-∨-isDistributiveLattice |
| 39 |
} |