def
Lean.MVarId.assertAfter
(mvarId : MVarId)
(fvarId : FVarId)
(userName : Name)
(type val : Expr)
:
Convert the given goal Ctx |- target
into a goal containing (userName : type)
after the local declaration with if fvarId
.
It assumes val
has type type
, and that type
is well-formed after fvarId
.
Note that val
does not need to be well-formed after fvarId
. That is, it may contain variables that are defined after fvarId
.
Equations
Instances For
- userName : Name
- type : Expr
- value : Expr
- binderInfo : BinderInfo
The hypothesis'
BinderInfo
- kind : LocalDeclKind
The hypothesis'
LocalDeclKind
Instances For
def
Lean.MVarId.replace
(g : MVarId)
(hyp : FVarId)
(proof : Expr)
(typeNew : Option Expr := none)
:
Replace hypothesis hyp
in goal g
with proof : typeNew
.
The new hypothesis is given the same user name as the original,
it attempts to avoid reordering hypotheses, and the original is cleared if possible.
Equations
Instances For
Finds the LocalDecl
for the FVar in e
with the highest index.