| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- This module is DEPRECATED. |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
-- Disabled to prevent warnings from deprecated names |
| 10 |
{-# OPTIONS --warning=noUserWarning #-} |
| 11 |
|
| 12 |
open import Algebra.Lattice.Bundles |
| 13 |
open import Algebra.Lattice.Structures.Biased |
| 14 |
open import Relation.Binary |
| 15 |
open import Function.Bundles using (module Equivalence; _⇔_) |
| 16 |
import Algebra.Construct.Subst.Equality as SubstEq |
| 17 |
|
| 18 |
module Algebra.Properties.DistributiveLattice |
| 19 |
{ℓ₁ ℓ₂} (DL : DistributiveLattice ℓ₁ ℓ₂) |
| 20 |
where |
| 21 |
|
| 22 |
{-# WARNING_ON_IMPORT |
| 23 |
"Algebra.Properties.DistributiveLattice was deprecated in v2.0. |
| 24 |
Use Algebra.Lattice.Properties.DistributiveLattice instead." |
| 25 |
#-} |
| 26 |
|
| 27 |
open DistributiveLattice DL |
| 28 |
open import Algebra.Lattice.Properties.DistributiveLattice DL public |
| 29 |
import Algebra.Properties.Lattice as LatticeProperties |
| 30 |
|
| 31 |
------------------------------------------------------------------------ |
| 32 |
-- DEPRECATED NAMES |
| 33 |
------------------------------------------------------------------------ |
| 34 |
-- Please use the new names as continuing support for the old names is |
| 35 |
-- not guaranteed. |
| 36 |
|
| 37 |
-- Version 1.4 |
| 38 |
|
| 39 |
replace-equality : {_≈′_ : Rel Carrier ℓ₂} → |
| 40 |
(∀ {x y} → x ≈ y ⇔ (x ≈′ y)) → |
| 41 |
DistributiveLattice _ _ |
| 42 |
replace-equality {_≈′_} ≈⇔≈′ = record |
| 43 |
{ isDistributiveLattice = isDistributiveLatticeʳʲᵐ (record |
| 44 |
{ isLattice = Lattice.isLattice |
| 45 |
(LatticeProperties.replace-equality lattice ≈⇔≈′) |
| 46 |
; ∨-distribʳ-∧ = λ x y z → to (∨-distribʳ-∧ x y z) |
| 47 |
}) |
| 48 |
} where open module E {x y} = Equivalence (≈⇔≈′ {x} {y}) |
| 49 |
{-# WARNING_ON_USAGE replace-equality |
| 50 |
"Warning: replace-equality was deprecated in v1.4. |
| 51 |
Please use isDistributiveLattice from `Algebra.Construct.Subst.Equality` instead." |
| 52 |
#-} |