@[inline]
Equations
- Lean.Meta.testHelper e p = do let __do_lift ← p e if __do_lift = true then pure true else do let __do_lift ← Lean.Meta.whnf e p __do_lift
Instances For
@[inline]
Equations
- Lean.Meta.matchHelper? e p? = do let __do_lift ← p? e match __do_lift with | none => do let __do_lift ← Lean.Meta.whnf e p? __do_lift | s => pure s
Instances For
Matches e
with lhs = (rhs : α)
and returns (α, lhs, rhs)
.
Equations
- Lean.Meta.matchEq? e = Lean.Meta.matchHelper? e fun (e : Lean.Expr) => pure e.eq?
Instances For
Equations
- Lean.Meta.matchFalse e = Lean.Meta.testHelper e fun (e : Lean.Expr) => pure e.isFalse