Documentation

Mathlib.Lean.Environment

Additional utilities for Lean.Environment #

Like findConstVal?, but also returns the declarations ConstantKind, which is known immediately.

Blocks on everything but the constant's body (if any), which is not accessible through the result.

Equations
Instances For

    Like findConstVal?, but only finds the ConstantVal for decl in env if its kind satisfies p. Otherwise, returns none.

    Blocks on everything but the constant's body (if any), which is not accessible through the result.

    Equations
    Instances For

      Like findConstVal?, but only finds the ConstantVal for decl in env if it is a theorem.

      Blocks on everything but the constant's body (if any), which is not accessible through the result.

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