Debian Codegraph @

src/Algebra/Properties/BooleanAlgebra.agda

raw
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
14 module Algebra.Properties.BooleanAlgebra
15 {b₁ b₂} (B : BooleanAlgebra b₁ b₂)
16 where
17
18 {-# WARNING_ON_IMPORT
19 "Algebra.Properties.BooleanAlgebra was deprecated in v2.0.
20 Use Algebra.Lattice.Properties.BooleanAlgebra instead."
21 #-}
22
23 open import Algebra.Lattice.Properties.BooleanAlgebra B public
24
25 open BooleanAlgebra B
26
27 import Algebra.Properties.DistributiveLattice as DistribLatticeProperties
28
29 open import Algebra.Structures _≈_
30 open import Relation.Binary
31 open import Function.Bundles using (module Equivalence; _⇔_)
32 open import Data.Product.Base using (_,_)
33
34 ------------------------------------------------------------------------
35 -- DEPRECATED NAMES
36 ------------------------------------------------------------------------
37 -- Please use the new names as continuing support for the old names is
38 -- not guaranteed.
39
40 -- Version 1.4
41
42 replace-equality : {_≈′_ : Rel Carrier b₂} →
43 (∀ {x y} → x ≈ y ⇔ (x ≈′ y)) →
44 BooleanAlgebra _ _
45 replace-equality {_≈′_} ≈⇔≈′ = record
46 { isBooleanAlgebra = record
47 { isDistributiveLattice = DistributiveLattice.isDistributiveLattice
48 (DistribLatticeProperties.replace-equality distributiveLattice ≈⇔≈′)
49 ; ∨-complement = ((λ x → to (∨-complementˡ x)) , λ x → to (∨-complementʳ x))
50 ; ∧-complement = ((λ x → to (∧-complementˡ x)) , λ x → to (∧-complementʳ x))
51 ; ¬-cong = λ i≈j → to (¬-cong (from i≈j))
52 }
53 } where open module E {x y} = Equivalence (≈⇔≈′ {x} {y})
54 {-# WARNING_ON_USAGE replace-equality
55 "Warning: replace-equality was deprecated in v1.4.
56 Please use isBooleanAlgebra from `Algebra.Construct.Subst.Equality` instead."
57 #-}