Equations
- Lean.Elab.Term.synthesizeSyntheticMVarsNoPostponing ignoreStuckTC = Lean.Elab.Term.synthesizeSyntheticMVars false ignoreStuckTC
@[inline]
def
Lean.Elab.Term.withSynthesize
{m : Type → Type u_1}
{α : Type}
[inst : MonadFunctorT Lean.Elab.TermElabM m]
[inst : Monad m]
(k : m α)
(mayPostpone : optParam Bool false)
:
m α
Equations
- Lean.Elab.Term.withSynthesize k mayPostpone = monadMap (fun {β} a => Lean.Elab.Term.withSynthesizeImp a mayPostpone true) k
@[inline]
def
Lean.Elab.Term.withSynthesizeLight
{m : Type → Type u_1}
{α : Type}
[inst : MonadFunctorT Lean.Elab.TermElabM m]
[inst : Monad m]
(k : m α)
:
m α
Equations
- Lean.Elab.Term.withSynthesizeLight k = monadMap (fun {β} a => Lean.Elab.Term.withSynthesizeImp a true false) k
Equations
- Lean.Elab.Term.elabTermAndSynthesize stx expectedType? = Lean.withRef stx do let a ← Lean.Elab.Term.withSynthesize (Lean.Elab.Term.elabTerm stx expectedType? true true) liftM (Lean.Meta.instantiateMVars a)