The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Linarith.NNRealPreprocessor
4 declarations and 2 deprecated aliases. Mathlib docs · Source
def Mathlib.Tactic.Linarith.isNNRealProp E1 #
Lean.Expr → Lean.MetaM Bool
isNNRealProp tp is true iff tp is an inequality or equality between nonnegative real numbers
or the negation thereof.
def Mathlib.Tactic.Linarith.getNNRealToRealArg? E1 #
Lean.Expr → Option Lean.Expr
If e is of the form ((x : ℝ≥0) : ℝ), NNReal.toReal e returns x.
opaque Mathlib.Tactic.Linarith.getNNRealCoes E1 #
Lean.Expr → List Lean.Expr
getNNRealComparisons e returns a list of all subexpressions of e of the form (x : ℝ).
def Mathlib.Tactic.Linarith.mkToRealNonnegProof? E1 #
Lean.Expr → Lean.MetaM (Option Lean.Expr)
If e : ℝ≥0, returns a proof of 0 ≤ (e : ℝ).
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Mathlib.Tactic.Linarith.isNNRealtoReal | Mathlib.Tactic.Linarith.getNNRealToRealArg? | 2026-05-27 |
Mathlib.Tactic.Linarith.mk_toReal_nonneg_prf | Mathlib.Tactic.Linarith.mkToRealNonnegProof? | 2026-05-27 |