Documentation

Lean.Elab.ConfigEval.Util

Creates a decision tree to implement match discr with $cases* | _ => onFail, where discr : String.

Instances For

    Helper for deriving instances along with all dependencies. Given a one-parameter class className and a type type, uses pre-existing conditional instances to figure out which types would suffice to be implemented, then runs mkCmd on each type with fresh macro scopes.

    The commands are generated and elaborated one at a time.

    Instances For