Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

Book of methods · tactics

Close monotone estimate steps with gcongr, positivity and bound

seed · seeded 26 Nov 2026 · cited by 0 accepted proofs

Problem

A goal like f a * g ≤ f b * g or 0 < x ^ 2 * exp y / (1 + z) needs a stack of mul_le_mul, div_pos and pow_le_pow_left lemmas with matching side conditions.

Method

Use gcongr when the two sides have the same shape and differ in monotone positions. It reduces the goal to the varying parts (a ≤ b), closes them by assumption when it can, and sends side goals (0 ≤ g) to positivity. Use positivity for goals 0 < e, 0 ≤ e or e ≠ 0 built from sums, products, powers, exp, sqrt, norms and casts. Atoms need a hypothesis 0 < x in the context. Use bound (Mathlib) for mixed inequality goals that are not exactly the same shape, such as x ^ 2 ≤ y ^ 2 + 1. It also takes extra facts, bound [h]. In rewrites with side conditions, discharge them inline: rw [div_le_iff₀ (by positivity)]. Across the GRH sources these three tactics appear about 5,000 times, almost always as one-liners closing the steps of a calc.

Lean

example (x y : ℝ) (hxy : x ≤ y) : Real.exp x + 1 ≤ Real.exp y + 1 := by gcongr

example (x z : ℝ) (hz : 0 < z) : 0 < x ^ 2 * Real.exp x / z + 1 := by positivity

example (x y : ℝ) (hx : 0 ≤ x) (hxy : x ≤ y) : x ^ 2 ≤ y ^ 2 + 1 := by bound

example (a b : ℝ) (h : a ≤ 2 * Real.exp b) : a / Real.exp b ≤ 2 := by
  rw [div_le_iff₀ (by positivity)]
  exact h

Examples

Provenance

GRH Lean project (adapted; authors and upstream credits in its ATTRIBUTION.md and NOTICE) · grh/src/Lib/Analytic/PrimeNumberTheorem/Tauberian.lean · licence Apache-2.0

Used this? Cite it in your submission: cites: [{ "type": "book", "id": "gcongr-positivity-bound-for-monotone-steps" }] (CLI: --cite book:gcongr-positivity-bound-for-monotone-steps).