-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(Analysis/Calculus): define absolutely monotone functions #38026
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mrdouglasny
wants to merge
5
commits into
leanprover-community:master
Choose a base branch
from
mrdouglasny:absolutely-monotone-def
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+93
−0
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
48fe70a
feat(Analysis/Calculus): define absolutely monotone functions
mrdouglasny 00db980
refactor: address review comments
mrdouglasny f7ded8d
refactor: address j-loreaux review comments
mrdouglasny 6ad343f
fix: move widder1941 to correct alphabetical position
mrdouglasny fb78495
style: wrap all lines to ≤100 characters in AbsolutelyMonotone
mrdouglasny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| /- | ||
| Copyright (c) 2025 Michael R. Douglas. All rights reserved. | ||
| Released under Apache 2.0 license as described in the file LICENSE. | ||
| Authors: Michael R. Douglas | ||
| -/ | ||
| module | ||
|
|
||
| public import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas | ||
|
|
||
| /-! | ||
| # 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 nonnegative on `s`. | ||
|
|
||
| ## Main definitions | ||
|
|
||
| * `AbsolutelyMonotoneOn` — smooth on `s` with nonnegative iterated derivatives within `s` | ||
|
|
||
| ## Main results | ||
|
|
||
| * Closure under `add`, `smul`, `mul` | ||
|
|
||
| ## References | ||
|
|
||
| * [D. V. Widder, *The Laplace Transform*][widder1941] | ||
| -/ | ||
|
|
||
| public section | ||
|
|
||
| open Set Filter | ||
| open scoped ENNReal NNReal Topology ContDiff | ||
|
|
||
| /-- A function `f : ℝ → ℝ` is absolutely monotone on a set `s` if it is smooth on `s` and all | ||
| iterated derivatives within `s` are nonnegative. -/ | ||
| structure AbsolutelyMonotoneOn (f : ℝ → ℝ) (s : Set ℝ) : Prop where | ||
| contDiffOn : ContDiffOn ℝ ∞ f s | ||
| nonneg : ∀ n : ℕ, ∀ x ∈ s, 0 ≤ iteratedDerivWithin n f s x | ||
|
|
||
| namespace AbsolutelyMonotoneOn | ||
|
|
||
| /-- A globally smooth function all of whose iterated derivatives are nonnegative on a set `s` | ||
| satisfying `UniqueDiffOn` is absolutely monotone on `s`. Such sets `s` include open sets, | ||
| `Set.Ici`, and convex sets with nonempty interior. -/ | ||
| theorem of_contDiff {f : ℝ → ℝ} {s : Set ℝ} (hs : UniqueDiffOn ℝ s) | ||
| (hf : ContDiff ℝ ∞ f) (h : ∀ n : ℕ, ∀ x ∈ s, 0 ≤ iteratedDeriv n f x) : | ||
| AbsolutelyMonotoneOn f s where | ||
| contDiffOn := hf.contDiffOn | ||
| nonneg n x hx := by | ||
| rw [iteratedDerivWithin_eq_iteratedDeriv hs (hf.contDiffAt.of_le (by exact_mod_cast le_top)) | ||
| hx] | ||
| exact h n x hx | ||
|
|
||
| /-! ### Basic closure properties -/ | ||
|
|
||
| theorem add {f g : ℝ → ℝ} {s : Set ℝ} (hs : UniqueDiffOn ℝ s) | ||
| (hf : AbsolutelyMonotoneOn f s) (hg : AbsolutelyMonotoneOn g s) : | ||
| AbsolutelyMonotoneOn (f + g) s where | ||
| contDiffOn := hf.contDiffOn.add hg.contDiffOn | ||
| nonneg n x hx := by | ||
| rw [iteratedDerivWithin_add hx hs ((hf.contDiffOn x hx).of_le (by exact_mod_cast le_top)) | ||
| ((hg.contDiffOn x hx).of_le (by exact_mod_cast le_top))] | ||
| exact add_nonneg (hf.nonneg n x hx) (hg.nonneg n x hx) | ||
|
|
||
| theorem smul {f : ℝ → ℝ} {s : Set ℝ} {c : ℝ} | ||
| (hf : AbsolutelyMonotoneOn f s) (hc : 0 ≤ c) : | ||
| AbsolutelyMonotoneOn (c • f) s where | ||
| contDiffOn := hf.contDiffOn.const_smul c | ||
| nonneg n x hx := by | ||
| rw [iteratedDerivWithin_const_smul_field c f] | ||
| exact smul_nonneg hc (hf.nonneg n x hx) | ||
|
|
||
| theorem mul {f g : ℝ → ℝ} {s : Set ℝ} (hs : UniqueDiffOn ℝ s) | ||
| (hf : AbsolutelyMonotoneOn f s) (hg : AbsolutelyMonotoneOn g s) : | ||
| AbsolutelyMonotoneOn (f * g) s where | ||
| contDiffOn := hf.contDiffOn.mul hg.contDiffOn | ||
| nonneg n x hx := by | ||
| rw [iteratedDerivWithin_mul hx hs ((hf.contDiffOn x hx).of_le (by exact_mod_cast le_top)) | ||
| ((hg.contDiffOn x hx).of_le (by exact_mod_cast le_top))] | ||
| exact Finset.sum_nonneg fun i _ => | ||
| mul_nonneg (mul_nonneg (Nat.cast_nonneg _) (hf.nonneg i x hx)) (hg.nonneg (n - i) x hx) | ||
|
|
||
| end AbsolutelyMonotoneOn | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This definition is not very good, because it forces you to have
UniqueDiffOnassumptions in most statements. You should rather phrase it as: there exists a Taylor series forfonswhose terms are all nonnegative.