Documentation

CvxLean.Meta.Util.Meta

Helper Meta-related functions.

Open lambda-expression by introducing a new local declaration. Similar to lambdaTelescope, but for only one variable.

Equations
  • One or more equations did not get rendered due to their size.
def Lean.Meta.withLocalDeclsDNondep {m : TypeType u_1} [MonadControlT Lean.MetaM m] [Monad m] {α : Type} [Inhabited α] (declInfos : Array (Lean.Name × Lean.Expr)) (k : Array Lean.Exprm α) :
m α

Add local declarations where the type constructor is trivial (non-dependant on the other declarations).

Equations
  • One or more equations did not get rendered due to their size.
def Lean.Meta.withLetDecls {m : TypeType u_1} [MonadControlT Lean.MetaM m] [Monad m] {α : Type} [Inhabited α] (declInfos : Array (Lean.Name × (Array Lean.Exprm Lean.Expr) × (Array Lean.Exprm Lean.Expr))) (k : Array Lean.Exprm α) :
m α

Introduce let declarations into the local context.

Equations
partial def Lean.Meta.withLetDecls.loop {m : TypeType u_1} [MonadControlT Lean.MetaM m] [Monad m] {α : Type} (declInfos : Array (Lean.Name × (Array Lean.Exprm Lean.Expr) × (Array Lean.Exprm Lean.Expr))) (k : Array Lean.Exprm α) [Inhabited α] (acc : Array Lean.Expr) :
m α

Run a tactic on a goal in MetaM.

Equations
  • One or more equations did not get rendered due to their size.