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
      def Lean.Environment.findConstValOfKind? (env : Environment) (p : ConstantKind → Bool) (decl : Name) (skipRealize : Bool := false) :

      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
            Instances For