-
Notifications
You must be signed in to change notification settings - Fork 268
[ refactor ] introduce revised notation for decidability of Lexicographic orderings, plus knock-ons
#2963
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?
[ refactor ] introduce revised notation for decidability of Lexicographic orderings, plus knock-ons
#2963
Changes from 1 commit
b06a7bb
2ebbf83
e0edba7
affaa2f
059f5c9
09327cd
6b09802
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 |
|---|---|---|
|
|
@@ -86,8 +86,8 @@ module _ {a ℓ₁ ℓ₂} {A : Set a} where | |
| <-compare sym _≟_ antisym tot = | ||
| Strict.<-compare sym (Conv.<-trichotomous _ _ sym _≟_ antisym tot) | ||
|
|
||
| <-decidable : Decidable _≈_ → Decidable _≼_ → Decidable _<_ | ||
| <-decidable _≟_ _≼?_ = | ||
| _<?_ : Decidable _≈_ → Decidable _≼_ → Decidable _<_ | ||
|
Member
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. Is it not perverse to have a binary infix notation that takes 4 arguments?
Collaborator
Author
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. Hmmm, perhaps you're right, except that two of the arguments are implicit?
Member
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. I think |
||
| _<?_ _≟_ _≼?_ = | ||
| Core.decidable (no id) _≟_ (Conv.<-decidable _ _ _≟_ _≼?_) | ||
|
|
||
| <-isStrictPartialOrder : IsPartialOrder _≈_ _≼_ → | ||
|
|
@@ -149,9 +149,9 @@ module _ {a ℓ₁ ℓ₂} {A : Set a} where | |
| ≤-resp₂ : IsEquivalence _≈_ → _≼_ Respects₂ _≈_ → _≤_ Respects₂ _≋_ | ||
| ≤-resp₂ eq resp = Core.respects₂ eq (Conv.<-resp-≈ _ _ eq resp) | ||
|
|
||
| ≤-decidable : Decidable _≈_ → Decidable _≼_ → Decidable _≤_ | ||
| ≤-decidable _≟_ _≼?_ = | ||
| Core.decidable (yes tt) _≟_ (Conv.<-decidable _ _ _≟_ _≼?_) | ||
| _≤?_ : Decidable _≈_ → Decidable _≼_ → Decidable _≤_ | ||
| _≤?_ _≟_ _≼?_ = | ||
| Core.decidable (yes _) _≟_ (Conv.<-decidable _ _ _≟_ _≼?_) | ||
|
|
||
| ≤-total : Symmetric _≈_ → Decidable _≈_ → Antisymmetric _≈_ _≼_ → | ||
| Total _≼_ → Total _≤_ | ||
|
|
@@ -197,3 +197,24 @@ module _ {a ℓ₁ ℓ₂} {A : Set a} where | |
| ≤-decTotalOrder dtot = record | ||
| { isDecTotalOrder = ≤-isDecTotalOrder isDecTotalOrder | ||
| } where open DecTotalOrder dtot | ||
|
|
||
|
|
||
| ------------------------------------------------------------------------ | ||
| -- DEPRECATED NAMES | ||
| ------------------------------------------------------------------------ | ||
| -- Please use the new names as continuing support for the old names is | ||
| -- not guaranteed. | ||
|
|
||
| -- Version 2.4 | ||
|
|
||
| <-decidable = _<?_ | ||
| {-# WARNING_ON_USAGE <-decidable | ||
| "Warning: <-decidable was deprecated in v2.4. | ||
| Please use _<?_ instead." | ||
| #-} | ||
|
|
||
| ≤-decidable = _≤?_ | ||
| {-# WARNING_ON_USAGE ≤-decidable | ||
| "Warning: ≤-decidable was deprecated in v2.4. | ||
| Please use _≤?_ instead." | ||
| #-} | ||
Uh oh!
There was an error while loading. Please reload this page.