Skip to content

[Merged by Bors] - feat: interval version of parametric integral lemmas - #10004

Closed
grunweg wants to merge 20 commits into
masterfrom
MR-sphere-eversion-parametric-integral1
Closed

grunweg wants to merge 20 commits into
masterfrom
MR-sphere-eversion-parametric-integral1

Conversation

@grunweg

@grunweg grunweg commented Jan 25, 2024 •

Copy link
Copy Markdown
Contributor

Based on code from the sphere eversion project.


Open in Gitpod

@grunweg grunweg added awaiting-review t-analysis Analysis (normed *, calculus) labels Jan 25, 2024
@ghost ghost added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) and removed blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) labels Jan 25, 2024
@ghost

ghost commented Jan 26, 2024

Copy link
Copy Markdown

This PR/issue depends on:

@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 26, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 26, 2024

@mcdoll mcdoll left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I have only a few comments.

Comment on lines +179 to +180
IntervalIntegrable F' μ a b ∧
HasFDerivAt (fun x ↦ ∫ t in a..b, F x t ∂μ) (∫ t in a..b, F' t ∂μ) x₀ := by

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would split these into two lemmas.

@grunweg grunweg Feb 11, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I can do this - but since this matches the existing lemmas in this file, I would perform the same split to hasFDerivAt_integral_of_dominated_loc_of_lip and hasFDerivAt_integral_of_dominated_loc_of_lip'.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just pushed a commit doing so. (Sorry for the force push. Only the last five commits are new.)
I'm out of Lean time for today; I can write docstrings for the new lemmas when I return to this (not before next weekend).

@grunweg
grunweg force-pushed the MR-sphere-eversion-parametric-integral1 branch from 55aa142 to 98da04b Compare February 11, 2024 15:37
@grunweg

grunweg commented Feb 11, 2024

Copy link
Copy Markdown
Contributor Author

Thank you for the comments; I have addressed them.

@grunweg

grunweg commented Feb 11, 2024

Copy link
Copy Markdown
Contributor Author

@loefflerd One proof in MellinTransform broke, on line 419. I pushed a commit sorry-ing this; I can't fix this quickly.
If you think the commit with the split is a good idea, can you help me fix that proof?

@loefflerd

Copy link
Copy Markdown
Contributor

If you think the commit with the split is a good idea, can you help me fix that proof?

I don't think this split is a good idea.

@loefflerd

loefflerd commented Feb 11, 2024 •

Copy link
Copy Markdown
Contributor

The existing lemma bundles stuff together for exactly the same reason that the various hasXXX structures (hasSum, hasDerivAt etc) bundle stuff together – it's pretty much useless to have a formula for deriv f without knowing that f is differentiable, because it might just be a formula for a null value. Likewise, in the case at hand, it's pretty useless to have a lemma "some deriv equals some integral" without knowing that both numbers are actually meaningful.

(IMHO the absence of hasIntegral, bundling together integrability & value of the integral, is a significant shortcoming in the library as it stands.)

@loefflerd

Copy link
Copy Markdown
Contributor

In the interests of debate, I have pushed a commit to this branch showing how the results in MellinTransform can be fixed, if the consensus of the community is that these lemmas should be split. However, I reiterate that I do not support the proposal to split.

@grunweg

grunweg commented Feb 11, 2024

Copy link
Copy Markdown
Contributor Author

@loefflerd Thank you for the prompt fix! Your arguments make sense to me; thank you for elaborating (I certainly learned something).

I personally don't have a horse in this race; I'm happy to implement whatever consensus arises.

@jcommelin
jcommelin requested a review from mcdoll February 13, 2024 10:48
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Feb 18, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Feb 18, 2024

@loefflerd loefflerd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@Ruben-VandeVelde

Copy link
Copy Markdown
Contributor

Please update the PR summary to reflect the current state of the changes

@grunweg

grunweg commented Feb 28, 2024 •

Copy link
Copy Markdown
Contributor Author

Sure, done. And merged master, which contained the drive-by syntax changes.

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Mar 1, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Mar 1, 2024
Based on code from the sphere eversion project.



Co-authored-by: David Loeffler <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Mar 1, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: interval version of parametric integral lemmas [Merged by Bors] - feat: interval version of parametric integral lemmas Mar 1, 2024
@mathlib-bors mathlib-bors Bot closed this Mar 1, 2024
@mathlib-bors
mathlib-bors Bot deleted the MR-sphere-eversion-parametric-integral1 branch March 1, 2024 15:31
riccardobrasca pushed a commit that referenced this pull request Mar 1, 2024
Based on code from the sphere eversion project.



Co-authored-by: David Loeffler <[email protected]>
kbuzzard pushed a commit that referenced this pull request Mar 12, 2024
Based on code from the sphere eversion project.



Co-authored-by: David Loeffler <[email protected]>
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
Based on code from the sphere eversion project.



Co-authored-by: David Loeffler <[email protected]>
utensil pushed a commit that referenced this pull request Mar 26, 2024
Based on code from the sphere eversion project.



Co-authored-by: David Loeffler <[email protected]>
xgenereux pushed a commit that referenced this pull request Apr 15, 2024
Based on code from the sphere eversion project.



Co-authored-by: David Loeffler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants