NNReal linarith preprocessing #
This file contains a linarith preprocessor for converting (in)equalities in ℝ≥0 to ℝ.
By overriding the behaviour of the placeholder preprocessor nnrealToReal (which does nothing
unless this file is imported) linarith can still be used without importing NNReal.
isNNRealProp tp is true iff tp is an inequality or equality between nonnegative real numbers
or the negation thereof.
Instances For
If e is of the form ((x : ℝ≥0) : ℝ), NNReal.toReal e returns x.
Instances For
getNNRealComparisons e returns a list of all subexpressions of e of the form (x : ℝ).
If e : ℝ≥0, returns a proof of 0 ≤ (e : ℝ).