The areas / V01. The language of Mathlib
Mathlib.Lean.Environment
3 declarations. Mathlib docs · Source
def Lean.Environment.findConstValWithKind? E1 #
Lean.Environment → Lean.Name → optParam Bool false → Option (Lean.ConstantVal × Lean.ConstantKind)
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.
def Lean.Environment.findConstValOfKind? E1 #
Lean.Environment → (Lean.ConstantKind → Bool) → Lean.Name → optParam Bool false → Option Lean.ConstantVal
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.
def Lean.Environment.findTheoremConstVal? E1 #
Lean.Environment → Lean.Name → optParam Bool false → Option Lean.ConstantVal
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.