chore: add headBeta to avoid unnecessary applications introduced by metavariable management
This commit is contained in:
parent
732dfed8b5
commit
81d2754cd2
1 changed files with 1 additions and 0 deletions
|
|
@ -909,6 +909,7 @@ xs.size.foldRevM
|
|||
match lctx.getFVar! x with
|
||||
| LocalDecl.cdecl _ _ n type bi =>
|
||||
if !usedOnly || e.hasLooseBVar 0 then do
|
||||
let type := type.headBeta;
|
||||
type ← abstractRange xs i type;
|
||||
if isLambda then
|
||||
pure (Lean.mkLambda n bi type e, num + 1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue