Documentation

Lean.Elab.Tactic.Monotonicity

Finds tagged monotonicity theorems of the form monotone (fun x => e).

Equations
    Instances For
      def Lean.Meta.Monotonicity.defaultFailK {α : Type} (f : Expr) (monoThms : Array Name) :
      Equations
        Instances For

          Base case for solveMonoStep: Handles goals of the form

          monotone (fun f => f.1.2 x y)
          

          It's tricky to solve them compositionally from the outside in, so here we construct the proof from the inside out.

          def Lean.Meta.Monotonicity.solveMonoStep (failK : {α : Type} → ExprArray NameMetaM α := @defaultFailK) (goal : MVarId) :
          Equations
            Instances For
              partial def Lean.Meta.Monotonicity.solveMono (failK : {α : Type} → ExprArray NameMetaM α := fun {α : Type} => defaultFailK) (goal : MVarId) :