-
Notifications
You must be signed in to change notification settings - Fork 249
[ refactor ] Data.Fin.Properties
of decidable equality, plus knock-ons
#2740
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
base: master
Are you sure you want to change the base?
Changes from all commits
5619f17
84c9420
8ad7b41
c781fc1
5279af1
61da9a6
5c1c29e
1df6eef
4f4be18
842a3bb
5373f2f
e966871
d7cffe0
1ddd742
075efe3
c4fe994
30ccfa9
8a54c1c
2639359
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,12 @@ m ≟ n = map′ (≡ᵇ⇒≡ m n) (≡⇒≡ᵇ m n) (T? (m ≡ᵇ n)) | |
≟-diag : (eq : m ≡ n) → (m ≟ n) ≡ yes eq | ||
≟-diag = ≡-≟-identity _≟_ | ||
|
||
≟-diag-refl : ∀ n → (n ≟ n) ≡ yes refl | ||
≟-diag-refl _ = ≟-diag refl | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one, on the other hand, seems to fail the Fairbairn test. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, the reflexive case us what I use for Fin, and I dislike having the APIs for |
||
|
||
≟-off-diag : (m≢n : m ≢ n) → (m ≟ n) ≡ no m≢n | ||
≟-off-diag = ≢-≟-identity _≟_ | ||
|
||
≡-isDecEquivalence : IsDecEquivalence (_≡_ {A = ℕ}) | ||
≡-isDecEquivalence = record | ||
{ isEquivalence = isEquivalence | ||
|
Uh oh!
There was an error while loading. Please reload this page.