From d7f832be441d7f86504ce5e0becbd449d79458a9 Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Fri, 7 Jan 2022 17:49:55 +0000 Subject: Add a missing raw algebra. --- src/Helium/Algebra/Bundles.agda | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/Helium/Algebra/Bundles.agda b/src/Helium/Algebra/Bundles.agda index 06a0bf2..1fa3634 100644 --- a/src/Helium/Algebra/Bundles.agda +++ b/src/Helium/Algebra/Bundles.agda @@ -248,3 +248,37 @@ record Field c ℓ : Set (suc (c ⊔ ℓ)) where ( *-commutativeMagma; *-commutativeSemigroup; *-commutativeMonoid ; commutativeSemiringWithoutOne; commutativeSemiring ) + +-- Missing from standard library + +record RawBooleanAlgebra c ℓ : Set (suc (c ⊔ ℓ)) where + infix 8 ¬_ + infixr 7 _∧_ + infixr 6 _∨_ + infix 4 _≈_ + field + Carrier : Set c + _≈_ : Rel Carrier ℓ + _∨_ : Op₂ Carrier + _∧_ : Op₂ Carrier + ¬_ : Op₁ Carrier + ⊤ : Carrier + ⊥ : Carrier + + rawLattice : RawLattice _ _ + rawLattice = record { _≈_ = _≈_ ; _∧_ = _∧_ ; _∨_ = _∨_ } + + ∨-rawGroup : RawGroup _ _ + ∨-rawGroup = record { _≈_ = _≈_ ; _∙_ = _∨_ ; ε = ⊥ ; _⁻¹ = ¬_ } + + ∧-rawGroup : RawGroup _ _ + ∧-rawGroup = record { _≈_ = _≈_ ; _∙_ = _∧_ ; ε = ⊤ ; _⁻¹ = ¬_ } + + open RawLattice rawLattice public + using (_≉_; ∨-rawMagma; ∧-rawMagma) + + open RawGroup ∨-rawGroup public + using () renaming (rawMonoid to ∨-rawMonoid) + + open RawGroup ∧-rawGroup public + using () renaming (rawMonoid to ∧-rawMonoid) -- cgit v1.2.3