fix: use instantiateMVars before invoking pure function findIfToSplit
This commit is contained in:
parent
a1366fcb3b
commit
3e0ea7fbae
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ partial def findIfToSplit? (e : Expr) : Option Expr :=
|
|||
none
|
||||
|
||||
def splitIfAt? (mvarId : MVarId) (e : Expr) (hName? : Option Name) : MetaM (Option (ByCasesSubgoal × ByCasesSubgoal)) := do
|
||||
let e ← instantiateMVars e
|
||||
if let some cond := findIfToSplit? e then
|
||||
let hName ← match hName? with
|
||||
| none => mkFreshUserName `h
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue