feat(Analysis/Calculus): define absolutely monotone functions#38026
feat(Analysis/Calculus): define absolutely monotone functions#38026mrdouglasny wants to merge 2 commits intoleanprover-community:masterfrom
Conversation
Define `AbsolutelyMonotoneOn f s` for functions with nonneg iterated derivatives within a set. Prove closure under addition, scalar multiplication, and multiplication, plus show exp, cosh, constants, and powers are absolutely monotone on appropriate domains. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR. Thank you again for joining our community. |
PR summary 2ff88851d5Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| # Absolutely Monotone Functions | ||
|
|
||
| A function `f : ℝ → ℝ` is absolutely monotone on a set `s` if it is smooth | ||
| on `s` and all its iterated derivatives within `s` are nonneg on `s`. |
There was a problem hiding this comment.
| on `s` and all its iterated derivatives within `s` are nonneg on `s`. | |
| on `s` and all its iterated derivatives within `s` are nonnegative on `s`. |
| exact h n x hx | ||
|
|
||
| /-- Nonneg Taylor coefficients at any point in `s`. -/ | ||
| theorem nonneg_taylor_coeffs {f : ℝ → ℝ} {s : Set ℝ} |
There was a problem hiding this comment.
This seems redundant to me, since it follows immediately from 0 ≤ iteratedDerivWithin n f s x.
|
|
||
| end AbsolutelyMonotoneOn | ||
|
|
||
| /-! ### Examples -/ |
There was a problem hiding this comment.
I think these examples should go in separate files. This definition shouldn't require Real.cosh in order to be imported, for instance.
| simp only [iteratedDeriv_const] | ||
| split | ||
| · exact hc | ||
| · exact le_refl 0 |
There was a problem hiding this comment.
| · exact le_refl 0 | |
| · rfl |
|
Could you format the code to fill up the 100-character limit per line? |
- "nonneg" → "nonnegative" in docstrings - Remove redundant `nonneg_taylor_coeffs` - Move examples (exp, cosh, const, pow) out to avoid pulling heavy imports — they will go in a follow-up file - Fill lines to 100-char limit - Trim unused imports (only IteratedDeriv.Lemmas needed for def + closure) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
AbsolutelyMonotoneOn f sfor functionsf : ℝ → ℝthat are smooth onswith all iterated derivatives withinsnonnegadd,smul,mulexp,cosh, constants, and powers are absolutely monotone on appropriate domainsThis is the first part of a split of #37879. Follow-up PRs will add:
Test plan
AbsolutelyMonotoneOnstructure and examples type-check🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com