Skip to content

[Merged by Bors] - feat(LpSeminorm/Basic): generalise a few more lemmas to enorms - #24355

Closed
grunweg wants to merge 13 commits into
masterfrom
MR-enorm-lpseminormbasic
Closed

grunweg wants to merge 13 commits into
masterfrom
MR-enorm-lpseminormbasic

Conversation

@grunweg

@grunweg grunweg commented Apr 24, 2025 •

Copy link
Copy Markdown
Contributor
  • For some lemmas, this was as easy as changing the co-domain.
  • Weaken a few enorm typeclasses: make shadowing explicit by using named sections.
  • For other lemmas, the enorm version requires a new explicit hypothesis (typically, around some constant being non-zero). For those, we add a new enorm version, and golf the existing result in terms of that.

For the Carleson project.


Open in Gitpod

@grunweg grunweg added the carleson part of the ongoing formalization of Carleson's theorem label Apr 24, 2025
@github-actions

github-actions Bot commented Apr 24, 2025 •

Copy link
Copy Markdown

PR summary ea098d4489

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ eLpNorm_const_lt_top_iff_enorm
+ memLp_const_enorm
+ memLp_const_iff_enorm
+ memLp_top_const_enorm

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


Increase in tech debt: (relative, absolute) = (1.00, 1.00)
Current number Change Type
1 1 large files

Current commit ea098d4489
Reference commit 3a0bc63f0f

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions Bot added the t-measure-probability Measure theory / Probability theory label Apr 24, 2025
@grunweg

grunweg commented Apr 29, 2025

Copy link
Copy Markdown
Contributor Author

@fpvandoorn This is one of the PRs we talked about earlier today. This should be quick to review: all changes are either

  • trivial generalisations (replace \beta by \epsilon)
  • copy-paste a lemma about norms, and make very minor modifications for enorms
  • generalise typeclass hypotheses (some lemmas are weakened from ENormedAddMonoid to ContinuousENorm)

@fpvandoorn fpvandoorn 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.

Two global comments:

  • For the new enorm-results: move them above the NormedAddCommGroup results and prove the existing results as a corollary.
  • Optional: the amount of times you declare ε shadowing the previous variable is not so nice. Maybe reorder lemmas so that results with weaker typeclasses come first?

@fpvandoorn fpvandoorn added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Apr 29, 2025

@grunweg grunweg left a comment

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 two commits cleaning up the shadowing a little - more to come.

@grunweg

grunweg commented Apr 29, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for the review feedback! I have addressed all comments.

@grunweg grunweg removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Apr 29, 2025
@fpvandoorn

Copy link
Copy Markdown
Member

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Apr 29, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Apr 29, 2025
- For some lemmas, this was as easy as changing the co-domain.
- Weaken a few enorm typeclasses: make shadowing explicit by using named sections.
- For other lemmas, the enorm version requires a new explicit hypothesis (typically, around some constant being non-zero). For those, we add a new enorm version, and golf the existing result in terms of that.

For the Carleson project.



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

mathlib-bors Bot commented Apr 29, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(LpSeminorm/Basic): generalise a few more lemmas to enorms [Merged by Bors] - feat(LpSeminorm/Basic): generalise a few more lemmas to enorms Apr 29, 2025
@mathlib-bors mathlib-bors Bot closed this Apr 29, 2025
@mathlib-bors
mathlib-bors Bot deleted the MR-enorm-lpseminormbasic branch April 29, 2025 15:24
mathlib-bors Bot pushed a commit that referenced this pull request May 6, 2025
Continuation of #24355. In passing, we slightly tweak some typeclass assumptions:
- a few lemmas (which accidentally had stronger than necessary assumptions) get weaker assumptions,
- a few other lemmas have hypotheses strengthened from `[ENorm E] [TopologicalSpace E]` to `[TopologicalSpace E] [ContinuousENorm E]`. I believe this to be inconsequential, as I know no example where this distinction would matter.
riccardobrasca pushed a commit that referenced this pull request May 7, 2025
Continuation of #24355. In passing, we slightly tweak some typeclass assumptions:
- a few lemmas (which accidentally had stronger than necessary assumptions) get weaker assumptions,
- a few other lemmas have hypotheses strengthened from `[ENorm E] [TopologicalSpace E]` to `[TopologicalSpace E] [ContinuousENorm E]`. I believe this to be inconsequential, as I know no example where this distinction would matter.
tannerduve pushed a commit that referenced this pull request May 13, 2025
- For some lemmas, this was as easy as changing the co-domain.
- Weaken a few enorm typeclasses: make shadowing explicit by using named sections.
- For other lemmas, the enorm version requires a new explicit hypothesis (typically, around some constant being non-zero). For those, we add a new enorm version, and golf the existing result in terms of that.

For the Carleson project.



Co-authored-by: grunweg <[email protected]>
tannerduve pushed a commit that referenced this pull request May 13, 2025
Continuation of #24355. In passing, we slightly tweak some typeclass assumptions:
- a few lemmas (which accidentally had stronger than necessary assumptions) get weaker assumptions,
- a few other lemmas have hypotheses strengthened from `[ENorm E] [TopologicalSpace E]` to `[TopologicalSpace E] [ContinuousENorm E]`. I believe this to be inconsequential, as I know no example where this distinction would matter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

carleson part of the ongoing formalization of Carleson's theorem ready-to-merge This PR has been sent to bors. t-measure-probability Measure theory / Probability theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants