Debian Codegraph @

src/Algebra/Properties/Lattice.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- This module is DEPRECATED. Please use
5 -- `Algebra.Lattice.Properties.Lattice` instead.
6 ------------------------------------------------------------------------
7
8 {-# OPTIONS --cubical-compatible --safe #-}
9
10 open import Algebra.Lattice.Bundles
11 open import Relation.Binary.Core using (Rel)
12 open import Function.Base
13 open import Function.Bundles using (module Equivalence; _⇔_)
14 open import Data.Product.Base using (_,_; swap)
15
16 module Algebra.Properties.Lattice {l₁ l₂} (L : Lattice l₁ l₂) where
17
18 open import Algebra.Lattice.Properties.Lattice L public
19
20 {-# WARNING_ON_IMPORT
21 "Algebra.Properties.Lattice was deprecated in v2.0.
22 Use Algebra.Lattice.Properties.Lattice instead."
23 #-}
24
25
26 ------------------------------------------------------------------------
27 -- DEPRECATED NAMES
28 ------------------------------------------------------------------------
29 -- Please use the new names as continuing support for the old names is
30 -- not guaranteed.
31
32 open Lattice L
33
34 -- Version 1.4
35
36 replace-equality : {_≈′_ : Rel Carrier l₂} →
37 (∀ {x y} → x ≈ y ⇔ (x ≈′ y)) → Lattice _ _
38 replace-equality {_≈′_} ≈⇔≈′ = record
39 { isLattice = record
40 { isEquivalence = record
41 { refl = to refl
42 ; sym = λ x≈y → to (sym (from x≈y))
43 ; trans = λ x≈y y≈z → to (trans (from x≈y) (from y≈z))
44 }
45 ; ∨-comm = λ x y → to (∨-comm x y)
46 ; ∨-assoc = λ x y z → to (∨-assoc x y z)
47 ; ∨-cong = λ x≈y u≈v → to (∨-cong (from x≈y) (from u≈v))
48 ; ∧-comm = λ x y → to (∧-comm x y)
49 ; ∧-assoc = λ x y z → to (∧-assoc x y z)
50 ; ∧-cong = λ x≈y u≈v → to (∧-cong (from x≈y) (from u≈v))
51 ; absorptive = (λ x y → to (∨-absorbs-∧ x y))
52 , (λ x y → to (∧-absorbs-∨ x y))
53 }
54 } where open module E {x y} = Equivalence (≈⇔≈′ {x} {y})
55 {-# WARNING_ON_USAGE replace-equality
56 "Warning: replace-equality was deprecated in v1.4.
57 Please use isLattice from `Algebra.Construct.Subst.Equality` instead."
58 #-}