Variant of repeat match! goal
(and maybe repeat match goal
) that processes hypotheses in a more efficient ordering
#18780
Labels
kind: design discussion
Discussion about the design of a feature.
kind: question
Issues seeking an answer to a question. Consider asking on zulip instead.
kind: wish
Feature or enhancement requests.
needs: discussion
Further discussion is needed.
part: ltac2
Issues and PRs related to the (in development) Ltac2 tactic langauge.
Is your feature request related to a problem?
In light of #18770, I think the default semantics of
repeat match goal
is asymptotically suboptimal, because it rescans all hypotheses any time a branch succeeds.Proposed solution
I think a useful alternative semantics would be to have variants that replace
coq/user-contrib/Ltac2/Pattern.v
Line 99 in cbc9fab
with something like
Control.plus p (fun _ => ()); next ()
incoq/user-contrib/Ltac2/Pattern.v
Lines 82 to 101 in cbc9fab
That is, I want to be able to get all the matches from a match statement, and then execute all the branches that succeed. Is there some version of this that would be generally useful to have in the standard library?
Alternative solutions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: