Skip to content

[Merged by Bors] - feat: generalize measure-theoretic definitions using ENorm#20122

Closed
fpvandoorn wants to merge 20 commits intomasterfrom
fvd/use-enorm
Closed

[Merged by Bors] - feat: generalize measure-theoretic definitions using ENorm#20122
fpvandoorn wants to merge 20 commits intomasterfrom
fvd/use-enorm

Conversation

@fpvandoorn
Copy link
Copy Markdown
Member

@fpvandoorn fpvandoorn commented Dec 20, 2024

  • Lemmas are not generalized yet (some lemmas can be generalized by just weakening the typeclasses, but others require rules how enorm interacts with algebraic operations).
  • All proofs that broke unfolded the definition. Now they rewrite with a lemma giving the definition in terms of nnnorm.

Open in Gitpod

@fpvandoorn fpvandoorn added the WIP Work in progress label Dec 20, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 20, 2024

PR summary 7b7a268b60

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ eLpNorm'_eq_lintegral_nnnorm
+ eLpNormEssSup_eq_essSup_nnnorm
+ hasFiniteIntegral_iff_nnnorm

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.


No changes to technical debt.

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).

@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot 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 Dec 20, 2024
@mathlib4-dependent-issues-bot
Copy link
Copy Markdown
Collaborator

This PR/issue depends on:

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Dec 20, 2024
Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

I know this is WIP PR; I took a look anyway. I only have small comments. My biggest two are

  • would a separate PR for the two small golfs make sense (optional)
  • I wonder if splitting the rename Enorm-> ENormedSpace into a separate PR makes sense (I'll happily approve, I'll be online occasionally until the 26th)
  • should that rename have a deprecation?

/-- Auxiliary class, endowing a type `α` with a function `enorm : α → ℝ≥0∞` with notation `‖x‖ₑ`. -/
@[notation_class]
class ENorm (E : Type*) where
/-- the `ℝ≥0∞`-valued norm function. -/
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.

Suggested change
/-- the `ℝ≥0∞`-valued norm function. -/
/-- the `ℝ≥0∞`-valued norm function -/

@grunweg grunweg changed the title feat: Generalize measure-theoretic definitions using ENorm feat: generalize measure-theoretic definitions using ENorm Dec 21, 2024
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Dec 21, 2024

Update: never mind, most of diff was from a dependent PR. That answers my questions about deprecations, splitting a rename etc.

@grunweg grunweg self-assigned this Dec 21, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Dec 22, 2024
@fpvandoorn fpvandoorn added help-wanted The author needs attention to resolve issues and removed help-wanted The author needs attention to resolve issues labels Dec 22, 2024
@fpvandoorn
Copy link
Copy Markdown
Member Author

I don't think I'll spend time on finishing this in the next few days. Feel free to fix the remaining broken proofs if you have time.

simp_rw [inner_def, ← integral_add (integrable_inner f g) (integrable_inner f' g), ←
inner_add_left]
simp_rw [inner_def]
rw [← integral_add (integrable_inner f g) (integrable_inner f' g)]
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.

I'm not quite sure why this change is necessary. (Making everything one simp_rw certainly fails now.)
A careful look if there are deeper issues would be appreciated.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It unfolded the definition of HasFiniteIntegral. I added hasFiniteIntegral_iff_nnnorm.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Never mind, that was elsewhere.
There is nothing in the conclusion of integrable_inner that identifies 𝕜.
It probably should be explicit, and I assume that before it could be synthesized using simple unification of instance arguments, which now fails.

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.

Thanks for the clarification! I agree with your fixes.
I'll put "make k in integrable_inner explicit" on my follow-up list of PR - in the new year.

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Dec 22, 2024

@fpvandoorn mathlib CI passes now. Double-checking some changes could be helpful (I've commented on them); most fixes were indeed uncontroversial.

@grunweg grunweg added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed WIP Work in progress labels Dec 22, 2024
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Dec 22, 2024
@grunweg grunweg added t-analysis Analysis (normed *, calculus) t-measure-probability Measure theory / Probability theory labels Dec 22, 2024
@jcommelin jcommelin added the awaiting-author A reviewer has asked the author a question or requested changes. label Dec 23, 2024
@fpvandoorn fpvandoorn removed the awaiting-author A reviewer has asked the author a question or requested changes. label Dec 23, 2024
@fpvandoorn
Copy link
Copy Markdown
Member Author

Thanks for finishing the fixes. It is now ready to merge on my side

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Dec 23, 2024

From my side, this PR is also good to go. I cannot approve my own changes, of course, but since I'm not a maintainer anyway, let me
maintainer merge

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by grunweg.

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Dec 23, 2024
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 the ready-to-merge This PR has been sent to bors. label Dec 23, 2024
mathlib-bors bot pushed a commit that referenced this pull request Dec 23, 2024
* Lemmas are *not* generalized yet (some lemmas can be generalized by just weakening the typeclasses, but others require rules how `enorm` interacts with algebraic operations).
* All proofs that broke unfolded the definition. Now they rewrite with a lemma giving the definition in terms of `nnnorm`.



Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 23, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: generalize measure-theoretic definitions using ENorm [Merged by Bors] - feat: generalize measure-theoretic definitions using ENorm Dec 23, 2024
@mathlib-bors mathlib-bors bot closed this Dec 23, 2024
@mathlib-bors mathlib-bors bot deleted the fvd/use-enorm branch December 23, 2024 14:46
YaelDillies added a commit that referenced this pull request Jan 3, 2025
mathlib-bors bot pushed a commit that referenced this pull request Jan 3, 2025
It was broken in #20122.

From GibbsMeasure
@fpvandoorn fpvandoorn added the carleson part of the ongoing formalization of Carleson's theorem label Feb 4, 2025
mathlib-bors bot pushed a commit that referenced this pull request Feb 4, 2025
Extracted from #21375: these lemmas only change the assumption on the co-domain, but not any hypothesis.

This continues the work started in #20121, #20122 and #21306: those PRs generalised the definitions resp. made lemma statements use the enorm. This PR starts generalising the lemmas using those definitions.

This work is part of (and a necessary pre-requisite for) the Carleson project.
pfaffelh pushed a commit that referenced this pull request Feb 7, 2025
Extracted from #21375: these lemmas only change the assumption on the co-domain, but not any hypothesis.

This continues the work started in #20121, #20122 and #21306: those PRs generalised the definitions resp. made lemma statements use the enorm. This PR starts generalising the lemmas using those definitions.

This work is part of (and a necessary pre-requisite for) the Carleson project.
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 maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. ready-to-merge This PR has been sent to bors. t-analysis Analysis (normed *, calculus) t-measure-probability Measure theory / Probability theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants