fix: Lean.MVarId.deltaLocalDecl (#8955)

This PR fixes `Lean.MVarId.deltaLocalDecl`, which previously replaced
the local definition with the target.
This commit is contained in:
Kyle Miller 2025-06-23 18:37:18 -07:00 committed by GitHub
parent 71cf266cd7
commit 32f8a95437
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,6 +38,6 @@ Delta expand declarations that satisfy `p` at `fvarId` type.
def _root_.Lean.MVarId.deltaLocalDecl (mvarId : MVarId) (fvarId : FVarId) (p : Name → Bool) : MetaM MVarId :=
mvarId.withContext do
mvarId.checkNotAssigned `delta
mvarId.changeLocalDecl fvarId (← deltaExpand (← mvarId.getType) p) (checkDefEq := false)
mvarId.changeLocalDecl fvarId (← deltaExpand (← fvarId.getType) p) (checkDefEq := false)
end Lean.Meta