diff options
author | Greg Brown <greg.brown@cl.cam.ac.uk> | 2022-01-07 13:36:42 +0000 |
---|---|---|
committer | Greg Brown <greg.brown@cl.cam.ac.uk> | 2022-01-07 13:36:42 +0000 |
commit | 1f718c9dbe48934edf115aef285c5aeaa2dfb20d (patch) | |
tree | ea48b7503bc2e7a7b2e431816a2d3adb2cbd1de4 /src/Helium/Algebra/Core.agda | |
parent | d84082ef65e311626e73af8e860723dd9d1e6b4f (diff) |
Add some required algebraic types.
Diffstat (limited to 'src/Helium/Algebra/Core.agda')
-rw-r--r-- | src/Helium/Algebra/Core.agda | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Helium/Algebra/Core.agda b/src/Helium/Algebra/Core.agda new file mode 100644 index 0000000..afe7053 --- /dev/null +++ b/src/Helium/Algebra/Core.agda @@ -0,0 +1,19 @@ +------------------------------------------------------------------------ +-- Agda Helium +-- +-- More core algebraic definitions +------------------------------------------------------------------------ + +{-# OPTIONS --safe --without-K #-} + +module Helium.Algebra.Core where + +open import Level using (_⊔_) +open import Relation.Binary.Core using (Rel) +open import Relation.Nullary using (¬_) + +AlmostOp₁ : ∀ {a ℓ} {A : Set a} → Rel A ℓ → A → Set (a ⊔ ℓ) +AlmostOp₁ {A = A} _≈_ ε = ∀ {x} → ¬ x ≈ ε → A + +AlmostOp₂ : ∀ {a ℓ} {A : Set a} → Rel A ℓ → A → Set (a ⊔ ℓ) +AlmostOp₂ {A = A} _≈_ ε = ∀ (x : A) {y} → ¬ y ≈ ε → A |