The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Ineq
2 declarations. Mathlib docs · Source
Parsing inequalities in expressions
This file provides expression recognizers returning the Mathlib.Ineq comparison type.
def Lean.Expr.ineq? E1 #
Lean.Expr → Lean.MetaM (Mathlib.Ineq × Lean.Expr × Lean.Expr × Lean.Expr)
Given an expression e, parse it as a =, ≤ or <, and return this relation (as a
Mathlib.Ineq) together with the type in which the (in)equality occurs and the two sides of the
(in)equality.
This function is more naturally in the Option monad, but it is convenient to put in MetaM
for compositionality.
def Lean.Expr.ineqOrNotIneq? E1 #
Lean.Expr → Lean.MetaM (Bool × Mathlib.Ineq × Lean.Expr × Lean.Expr × Lean.Expr)
Given an expression e, parse it as a =, ≤ or <, or the negation of such, and return this
relation (as a Mathlib.Ineq) together with the type in which the (in)equality occurs, the two
sides of the (in)equality, and a Boolean flag indicating the presence or absence of the ¬.
This function is more naturally in the Option monad, but it is convenient to put in MetaM
for compositionality.