[Merged by Bors] - feat(Analysis/ODE): add discrete Grönwall inequality#34709
[Merged by Bors] - feat(Analysis/ODE): add discrete Grönwall inequality#34709dennj wants to merge 2 commits intoleanprover-community:masterfrom
Conversation
PR summary 977f84bd6eImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
Hello from triage! My impression is that this PR was generated with substantial help from LLM. Can you comment on this, please? Per our AI policy, also mention this in the PR description. |
j-loreaux
left a comment
There was a problem hiding this comment.
Long story short: grind is your friend.
Can you please answer the question about whether this PR is generated or assisted by AI?
|
This pull request has conflicts, please merge |
|
Are you familiar with the I'm not a Mathlib reviewer or maintainer, so I don't speak for the project, but I thought I'd mention it as a potentially interesting place for work like this (independently of how this PR is evaluated here). |
5439f72 to
1015cc2
Compare
1015cc2 to
099dcf6
Compare
|
-awaiting-author I applied the suggestions in the comments and did some golfing |
| add_le_add le_rfl <| sum_le_sum fun j hj ↦ mul_le_mul_of_nonneg_left | ||
| (prod_le_prod_of_subset_of_one_le | ||
| (Ico_subset_Ico_left (by have := mem_Ico.mp hj; omega)) | ||
| (fun i hi ↦ by | ||
| have := mem_Ico.mp hj; have := mem_Ico.mp hi; linarith [hc i (by omega)]) | ||
| (fun i hi _ ↦ by linarith [hc i (mem_Ico.mp hi).1])) | ||
| (hb j (mem_Ico.mp hj).1) |
There was a problem hiding this comment.
This proof is really unpleasant. There is a good reason I factored out this step in an earlier comment (which I now can't easily reference since you force-pushed to this branch, please don't do that). Please implement the suggestion I had before.
There was a problem hiding this comment.
Thanks for the feedback.
I think I fixed the problem in the new commit.
|
bors merge |
## Summary Add discrete Grönwall inequality to `Mathlib/Analysis/ODE/DiscreteGronwall.lean` Provides bounds for recurrence inequalities of the form `u(n+1) ≤ c(n) * u(n) + b(n)` ### Main results - `discrete_gronwall_prod_general`: Product form working over any linearly ordered commutative ring - `discrete_gronwall`: Classical exponential bound `u(n) ≤ (u(n₀) + ∑ b(k)) * exp(∑ c(i))` (ℝ-specific) - `discrete_gronwall_Ico`: Uniform bound over a finite interval (ℝ-specific) ## Related work Complements the continuous Grönwall inequality in `Mathlib.Analysis.ODE.Gronwall` ## References * Grönwall, T. H. (1919). "Note on the derivatives with respect to a parameter of the solutions of a system of differential equations". *Annals of Mathematics*, 20(4), 292–296. This is human-made PR with AI help in golfing proof and documenting the code.
|
Build failed (retrying...): |
## Summary Add discrete Grönwall inequality to `Mathlib/Analysis/ODE/DiscreteGronwall.lean` Provides bounds for recurrence inequalities of the form `u(n+1) ≤ c(n) * u(n) + b(n)` ### Main results - `discrete_gronwall_prod_general`: Product form working over any linearly ordered commutative ring - `discrete_gronwall`: Classical exponential bound `u(n) ≤ (u(n₀) + ∑ b(k)) * exp(∑ c(i))` (ℝ-specific) - `discrete_gronwall_Ico`: Uniform bound over a finite interval (ℝ-specific) ## Related work Complements the continuous Grönwall inequality in `Mathlib.Analysis.ODE.Gronwall` ## References * Grönwall, T. H. (1919). "Note on the derivatives with respect to a parameter of the solutions of a system of differential equations". *Annals of Mathematics*, 20(4), 292–296. This is human-made PR with AI help in golfing proof and documenting the code.
|
Pull request successfully merged into master. Build succeeded: |
Summary
Add discrete Grönwall inequality to
Mathlib/Analysis/ODE/DiscreteGronwall.leanProvides bounds for recurrence inequalities of the form
u(n+1) ≤ c(n) * u(n) + b(n)Main results
discrete_gronwall_prod_general: Product form working over any linearly ordered commutative ringdiscrete_gronwall: Classical exponential boundu(n) ≤ (u(n₀) + ∑ b(k)) * exp(∑ c(i))(ℝ-specific)discrete_gronwall_Ico: Uniform bound over a finite interval (ℝ-specific)Related work
Complements the continuous Grönwall inequality in
Mathlib.Analysis.ODE.GronwallReferences
This is human-made PR with AI help in golfing proof and documenting the code.