Open eric-wieser opened 8 months ago
Replacing the inner match with match (generalizing := false) o with
or match id o with
is sufficient as a workaround, though of course this disables generalization.
(And with https://github.com/leanprover/lean4/pull/3060, this obviously also affects let some x := o
which must be written as let some x := id o
)
My initial thought was that these lines are missing a let argLvlExpr ← instantiateMVarsQ argLvlExpr
:
but this doesn't seem to make any difference.
The following example:
gives the error:
Indeed, the type of
match_eq✝
in the goal inhas a metavariable for the
Level
argument.