def
Lean.Elab.ConfigEval.ensureEvalExpr
(vis? : Option (TSyntax `Lean.Parser.Command.visibility))
(kind : TSyntax `Lean.Parser.Term.attrKind)
(cmdRef typeRef : Syntax)
(type : Expr)
:
Ensures an EvalExpr instance exists for the given type by deriving one if necessary.
Derivation can handle EvalExpr instance for nonrecursive inductive types without universes, parameters, or indices,
and which only does simple recursion.
Instances For
def
Lean.Elab.ConfigEval.deriveEvalExprUsingMetaEval
(vis? : Option (TSyntax `Lean.Parser.Command.visibility))
(kind : TSyntax `Lean.Parser.Term.attrKind)
(cmdRef typeRef : Syntax)
(type : Expr)
:
Creates an EvalExpr instance that uses Meta.evalExpr to compile and evaluate the expression.