The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

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

NameNew nameSince
Mathlib.Tactic.Linarith.isNNRealtoRealMathlib.Tactic.Linarith.getNNRealToRealArg?2026-05-27
Mathlib.Tactic.Linarith.mk_toReal_nonneg_prfMathlib.Tactic.Linarith.mkToRealNonnegProof?2026-05-27