feat: extend public Meta API
This commit is contained in:
parent
01bd502db1
commit
9cdaf79cfc
1 changed files with 9 additions and 0 deletions
|
|
@ -53,5 +53,14 @@ exprToBool <$> auxFixpoint isDefEqOp e₁ e₂
|
|||
/- END OF BIG HACK -/
|
||||
/- =========================================== -/
|
||||
|
||||
def isProp (e : Expr) : MetaM Bool :=
|
||||
isPropAux whnf e
|
||||
|
||||
def getFunInfo (fn : Expr) : MetaM FunInfo :=
|
||||
getFunInfoAux whnf fn
|
||||
|
||||
def getFunInfoNArgs (fn : Expr) (nargs : Nat) : MetaM FunInfo :=
|
||||
getFunInfoNArgsAux whnf fn nargs
|
||||
|
||||
end Meta
|
||||
end Lean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue