metavariables in rw
are instantiated at the first match, even if this is disallowed by occs
.
#2538
Closed
1 task done
Prerequisites
Description
When using
rw
orkabstract
with theoccs
parameter, metavariables in the lemma that we are rewriting by (or the expression we are abstracting) are instantiated by the first match found, even if this match is disallowed by occurrences.Steps to Reproduce
Note this behaviour makes it impossible to achieve some rewrites. (Of course there are usually workarounds with
conv
, or by specifying arguments, but it is more difficult if automation wants to know about all possible rewrites.)Expected behavior:
Actual behavior:
Versions
The
config := {occs := ...}
option has only just landed in Lean, so you will need to either test this on master or on nightly-2023-09-14 when it arrives or later.The text was updated successfully, but these errors were encountered: