Skip to content

[ refactor ] add rawSetoid manifest fields to Algebra.Bundles.Raw #2536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ Additions to existing modules
rawKleeneAlgebra : RawKleeneAlgebra _ _
```

* In `Algebra.Bundles.Raw.*`
```agda
rawSetoid : RawSetoid c ℓ
```

* In `Algebra.Bundles.Raw.RawRingWithoutOne`
```agda
rawNearSemiring : RawNearSemiring c ℓ
Expand Down
14 changes: 11 additions & 3 deletions src/Algebra/Bundles/Raw.agda
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module Algebra.Bundles.Raw where

open import Algebra.Core
open import Relation.Binary.Core using (Rel)
open import Relation.Binary.Bundles.Raw using (RawSetoid)
open import Level using (suc; _⊔_)
open import Relation.Nullary.Negation.Core using (¬_)

Expand All @@ -27,6 +28,11 @@ record RawSuccessorSet c ℓ : Set (suc (c ⊔ ℓ)) where
suc# : Op₁ Carrier
zero# : Carrier

rawSetoid : RawSetoid c ℓ
rawSetoid = record { _≈_ = _≈_ }

open RawSetoid rawSetoid public using (_≉_)

------------------------------------------------------------------------
-- Raw bundles with 1 binary operation
------------------------------------------------------------------------
Expand All @@ -39,9 +45,11 @@ record RawMagma c ℓ : Set (suc (c ⊔ ℓ)) where
_≈_ : Rel Carrier ℓ
_∙_ : Op₂ Carrier

infix 4 _≉_
_≉_ : Rel Carrier _
x ≉ y = ¬ (x ≈ y)
rawSetoid : RawSetoid c ℓ
rawSetoid = record { _≈_ = _≈_ }

open RawSetoid rawSetoid public using (_≉_)


------------------------------------------------------------------------
-- Raw bundles with 1 binary operation & 1 element
Expand Down
Loading