Documentation

CvxLean.Tactic.Arith.Arith

Arithmetic tactics #

This file defines the positivity! and arith tactics, which are slight extensions of the existing arithmetic tactics in mathlib (positivity and linarith).

Positivity can only work with goals and hypotheses of the form 0 R x, where R ∈ {<, ≤, ≠}. Our positivity extension is designed to admit hypotheses of the form a R x and x R a where a ≠ 0. For example, 1 ≤ x → 0 ≤ log x. To be able to use positivity, we rewrite 1 ≤ x into 0 ≤ x - 1. This procedure does exactly that, changing goals and hypotheses to make them compatible with positivity.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Call positivity but if the expression has no free variables, we try to apply norm_num first.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      Instances For

        Extension of positivity with some pre-processing and the option to call norm_num.

        Equations
        Instances For

          Combination of tactics. We try positivity!, then linarith, then norm_num, then simp.

          Equations
          Instances For