-
Notifications
You must be signed in to change notification settings - Fork 246
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
[ refactor ] Simplify Data.List.Relation.Binary.Lex.NonStrict.<-asymmetric
#2679
Comments
I tried to make the change, but it actually requires a deeper modification since This is absolutely necessary in the function:
We could change IsEquivalence to PartialEquivalence, but I don’t think we would gain anything from it. |
Thanks @jmougeot for the fine-grained analysis! Not only that, but the artificial bundling of |
IsPartialEquivalence isn’t used a lot. Would it be worth changing the dependency? |
I think that that is a separate question, and... perhaps a case of PR-creep, if I understand you correctly. But that doesn't mean that But this PR is really more about trying to identify a 'common' API for the lexicographic ordering(s) on |
Closing now in favour of the wider scope of #2687 |
Current version:
only uses the
sym : Symmetric _≈_
property fromIsEquivalence
, so this lemma is unnecessarily restrictive.Suggest: refactor to streamline the type (
breaking
), unless we regard the above as abug
?More generally, it seems as though the
List
andVec
versions ofLex
might benefit from a more thorough reorganisation/refactoring to simplify their (common, but different!) structure and dependencies, but I'm still looking at this cf. #2671The text was updated successfully, but these errors were encountered: