You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#2939 is yet another refactoring for one special case (plus knock-ons), but we should probably try to go through and systematically strengthen lemmas to take definitionally proof-irrelevant arguments of the form m ≤ n etc. where possible.
Issues:
probably v3.0/breaking for such a large-scale overhaul?
a lot of this (unfortunately; you live and learn ;-)) involves reverting changes previously made by me to insist on pattern matching on such proofs, even where unnecessary (and expensive: see comments on Why we should revert stdlib to --without-K instead of using --cubical-compatible #2792 about suppressing noUnsupportedIndexedMatch warnings)
knock-on cost in eg. need for eta-expansion to ensure irrelevant arguments are consumed by functions presuming relevance
@JacquesCarette 's comment about the pattern of matching-on-implicits which seems to be the only sensible way to do this