Skip to content

Commit

Permalink
Standardised the binary relation hierarchy (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewDaggitt authored Sep 22, 2019
1 parent a9b3af3 commit 7e00c92
Show file tree
Hide file tree
Showing 16 changed files with 786 additions and 699 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ match the one for `Vec`:
```


#### Other

* The proofs `isPreorder` and `preorder` have been moved from the `Setoid`
record to the module `Relation.Binary.Properties.Setoid`.

New modules
-----------
The following new modules have been added to the library:
Expand Down
2 changes: 1 addition & 1 deletion src/Algebra/Solver/Ring.agda
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

open import Algebra
open import Algebra.Solver.Ring.AlmostCommutativeRing
open import Relation.Binary.Core using (WeaklyDecidable)
open import Relation.Binary.Definitions using (WeaklyDecidable)

module Algebra.Solver.Ring
{r₁ r₂ r₃}
Expand Down
1 change: 1 addition & 0 deletions src/Axiom/UniquenessOfIdentityProofs.agda
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module Axiom.UniquenessOfIdentityProofs where
open import Data.Empty
open import Relation.Nullary hiding (Irrelevant)
open import Relation.Binary.Core
open import Relation.Binary.Definitions
open import Relation.Binary.PropositionalEquality.Core

------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion src/Category/Monad/Partiality.agda
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ open import Function.Core
open import Function.Equivalence using (_⇔_; equivalence)
open import Level using (_⊔_)
open import Relation.Binary as B hiding (Rel)
import Relation.Binary.Properties.Setoid as SetoidProperties
open import Relation.Binary.PropositionalEquality as P using (_≡_)
open import Relation.Nullary
open import Relation.Nullary.Decidable hiding (map)
Expand Down Expand Up @@ -280,7 +281,7 @@ module _ {a ℓ} {A : Set a} {_∼_ : A → A → Set ℓ} where
private
preorder′ : IsEquivalence _∼_ Kind Preorder _ _ _
preorder′ equiv =
preorder (Setoid.isPreorder (record { isEquivalence = equiv }))
preorder (SetoidProperties.isPreorder (record { isEquivalence = equiv }))

-- The two equalities are equivalence relations.

Expand Down
2 changes: 1 addition & 1 deletion src/Data/Rational/Properties.agda
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ mkℚ n₁ d₁ _ ≟ mkℚ n₂ d₂ _ with n₁ ℤ.≟ n₂ | d₁ ℕ.≟ d
≡⇒≃ refl = refl

≃⇒≡ : _≃_ ⇒ _≡_
≃⇒≡ {i = mkℚ n₁ d₁ c₁} {j = mkℚ n₂ d₂ c₂} eq = helper
≃⇒≡ {x = mkℚ n₁ d₁ c₁} {y = mkℚ n₂ d₂ c₂} eq = helper
where
open ≡-Reasoning

Expand Down
Loading

0 comments on commit 7e00c92

Please sign in to comment.