feat: add unfoldDefinition
This commit is contained in:
parent
54168b9070
commit
0da83dc4ae
1 changed files with 4 additions and 0 deletions
|
|
@ -421,6 +421,10 @@ mutual
|
|||
| _ => return none
|
||||
end
|
||||
|
||||
def unfoldDefinition (e : Expr) : MetaM Expr := do
|
||||
let some e ← unfoldDefinition? e | throwError! "failed to unfold definition{indentExpr e}"
|
||||
return e
|
||||
|
||||
@[specialize] partial def whnfHeadPred (e : Expr) (pred : Expr → MetaM Bool) : MetaM Expr :=
|
||||
whnfEasyCases e fun e => do
|
||||
let e ← whnfCore e
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue