Skip to content

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

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

[Merged by Bors] - feat: interval version of parametric integral lemmas#10004
grunweg wants to merge 20 commits intomasterfrom
MR-sphere-eversion-parametric-integral1

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Jan 25, 2024

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
Copy link
Copy Markdown

ghost commented Jan 26, 2024

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
Copy link
Copy Markdown
Member

@mcdoll mcdoll left a comment

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.

Copy link
Copy Markdown
Contributor Author

@grunweg grunweg Feb 11, 2024

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
Copy link
Copy Markdown
Contributor Author

grunweg commented Feb 11, 2024

Thank you for the comments; I have addressed them.

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Feb 11, 2024

@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
Copy link
Copy Markdown
Contributor

loefflerd commented Feb 11, 2024

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
Copy link
Copy Markdown
Contributor Author

grunweg commented Feb 11, 2024

@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
Copy link
Copy Markdown
Contributor

@loefflerd loefflerd left a comment

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
Copy link
Copy Markdown
Contributor Author

grunweg commented Feb 28, 2024

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

Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

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 <d.loeffler.01@cantab.net>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 1, 2024

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 <d.loeffler.01@cantab.net>
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 <d.loeffler.01@cantab.net>
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 <d.loeffler.01@cantab.net>
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 <d.loeffler.01@cantab.net>
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 <d.loeffler.01@cantab.net>
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