-
Notifications
You must be signed in to change notification settings - Fork 240
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/deprecate Data.Nat.Base._≤‴_
and its properties
#2504
Comments
Hmm I don't really have much to add to this, except that the names of these relations are getting more and more ridiculous! I agree with @JacquesCarette that eventually we should have smaller |
As to the "ridiculous" names, these have been there already for a long time (before my time!), but I am sympathetic to your general point (and that of #1763 ) about trying to 'manage' this state of affairs. My only contribution here is to try to streamline this one better, now that someone (for better or worse) is actually using it in anger! |
Yup agreed! Sorry for the off-topic rant! |
If we were in "full maintenance" mode, then all the suggestions in the issue itself make sense. Deprecating this probably makes even more sense. |
I'm not familiar with what you intend by this term-of-art. Can you say more?
Well, I thought so, too, but I'm rethinking that ... on the basis of symmetry with And as for Matthew's comments on names, any |
What I mean by "full maintenance" is if all we were doing were point releases with bug fixes and small additions and nothing else. We're still (re)designing |
Thanks for the clarification!
Agreed, and really the only reasons to lift this issue out explicitly were:
The former as a horrible UX failure; the latter as part of a 'better' re-design philosophy? |
On the last point, agree: we shouldn't repeat parameters/indices, we should ask for a witness of that fact instead. |
Well, we do have an as-yet not-really discussed question as to whether we continue with v2.x point releases in the short-term, while planning for a great leap forward to v3.0, and, absent such discussions (#2352 hasn't been revisited for a while, nor its principal suggestion as to how to organise such discussion...), perhaps point releases are the way to go for now? For my money, the above provides 'easy' fixes to the current situation, but at the same time at the cost (in Accordingly, have changed this to v2.2, but that's up for discussion! |
The pattern is unlikely to clash with other things (name is too obscure for that), true enough. But this is |
Re: high bars I think the 'right' way to raise that bar would eventually be to break these relations out under So the 'cost'/'value' of each such increment does need to be weighed up, for sure. |
* Fixes #2504 * add missing URL * typo * remove spurious delta
@tsung-ju 's recent #2503 drew my attention to two things:
stdlib
, so is a good candidate for deprecation; cf. Deprecate_≺_
inData.Fin.Base
#1726≤‴-refl : ∀{m} → m ≤‴ m
, with its repeated occurrence of them
, in fact gives rise to unification problems for the typechecker under the ambient optionswithout-K
orcubical-compatible
, requiring in the open PR a circumlocution via a lemma which cuts in an explicit appeal to equality...If we opt to deprecate the relation, then all well and good as to the first point... but the second suggests a wider
library-design
issue/pattern that we might wish to more systematically deploy: avoid repeated arguments indata
constructors... unlesswith-K
is in operation?Eg. replacing the current definition with
(and hence a possible additional refactoring in terms of
Relation.Binary.Construct.Closure.Reflexive
etc.)UPDATED: the above definition moreover admits (much?) more direct proofs of
≤‴⇒≤
and≤⇒≤‴
(aah... but with bad complexity, cf. #2440 #2442 )But with cleaner proofs of
and from #2503
The text was updated successfully, but these errors were encountered: