Lean.ToExpr
source
Convert a value a : α into an expression that denotes a
a : α
a
Expression representing the type α
α
We use the ToExpr type class to convert values of type α into expressions that denote these values in Lean. Example:
ToExpr
toExpr true = .const ``Bool.true []