Skip to content

[Merged by Bors] - chore(L1Space/HasFiniteIntegral): generalise a few lemmas to enorm - #24343

Closed
grunweg wants to merge 9 commits into
masterfrom
MR-integrableon-enorm
Closed

grunweg wants to merge 9 commits into
masterfrom
MR-integrableon-enorm

Conversation

@grunweg

@grunweg grunweg commented Apr 24, 2025 •

Copy link
Copy Markdown
Contributor

These are necessary to speak about IntegrableOn well. Similarly to previous PRs, when a statement needs more than trivial changes, this PR just adds enorm analogues (without deprecating existing lemmas) and tries to golf the existing version in terms of the enorm result.
(In this PR, I chose to not always golf one-line proofs. For multi-line proofs, this PR shows that work can really be re-used.)


Open in Gitpod

@github-actions

github-actions Bot commented Apr 24, 2025 •

Copy link
Copy Markdown

PR summary c26b6ac8a1

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ HasFiniteIntegral.congr'_enorm
+ HasFiniteIntegral.enorm
+ HasFiniteIntegral.mono'_enorm
+ HasFiniteIntegral.mono_enorm
+ ae_enorm_le_bound
+ ae_tendsto_enorm
+ hasFiniteIntegral_congr'_enorm
+ hasFiniteIntegral_const_enorm
+ hasFiniteIntegral_const_iff_enorm
+ hasFiniteIntegral_const_iff_isFiniteMeasure_enorm
+ hasFiniteIntegral_enorm_iff
+ hasFiniteIntegral_of_bounded_enorm
+ hasFiniteIntegral_of_dominated_convergence_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.


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

@github-actions github-actions Bot added the t-measure-probability Measure theory / Probability theory label Apr 24, 2025
@grunweg grunweg added the carleson part of the ongoing formalization of Carleson's theorem label Apr 24, 2025
exact le_of_tendsto' tendsto_norm F_le_bound

theorem hasFiniteIntegral_of_dominated_convergence {F : ℕ → α → β} {f : α → β} {bound : α → ℝ}
theorem all_ae_ofReal_f_le_bound_enorm (h_bound : ∀ n, ∀ᵐ a ∂μ, ‖F' n a‖ₑ ≤ bound' a)

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
theorem all_ae_ofReal_f_le_bound_enorm (h_bound : ∀ n, ∀ᵐ a ∂μ, ‖F' n a‖ₑ ≤ bound' a)
theorem ae_enorm_le_bound (h_bound : ∀ n, ∀ᵐ a ∂μ, ‖F' n a‖ₑ ≤ bound' a)

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.

That's better indeed! Should this name also contain tendsto?

@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

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

LGTM

bors d+

theorem hasFiniteIntegral_const_iff_enorm {c : ε} (hc : ‖c‖ₑ ≠ ∞) :
HasFiniteIntegral (fun _ : α ↦ c) μ ↔ ‖c‖ₑ = 0 ∨ IsFiniteMeasure μ := by
simp [hasFiniteIntegral_iff_enorm, lt_top_iff_ne_top, ENNReal.mul_eq_top,
or_iff_not_imp_left, isFiniteMeasure_iff]

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.

unflagged nonterminal simp?


theorem ae_tendsto_enorm (h : ∀ᵐ a ∂μ, Tendsto (fun n ↦ F' n a) atTop <| 𝓝 <| f' a) :
∀ᵐ a ∂μ, Tendsto (fun n ↦ ‖F' n a‖ₑ) atTop <| 𝓝 <| ‖f' a‖ₑ :=
h.mono fun _ h ↦ Tendsto.comp (Continuous.tendsto continuous_enorm _) h

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.

This is the old one up to defeq, right? I'm happy to deprecate the existing lemma in that case (but also ok if not). (The new name is better than the old one btw.)

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.

Yes, it is - I have changed the old lemma's proof to indicate this better.

While the lemma is only used once (in all_ae_ofReal_f_le_bound), replacing it is not utterly obvious --- as bound maps to R, while bound' maps to \ENNReal. This should be replaced, but I'd like this to happen in a follow-up PR.

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.

This branch indicates which lemmas are involved in doing such a deprecation. Seems possible, but more work than just two lemmas.

@mathlib-bors

mathlib-bors Bot commented Apr 29, 2025

Copy link
Copy Markdown
Contributor

✌️ grunweg can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Apr 29, 2025
@grunweg

grunweg commented Apr 29, 2025

Copy link
Copy Markdown
Contributor Author

By the way: thanks for the fast review on the other PR and this one!

@grunweg

grunweg commented Apr 29, 2025

Copy link
Copy Markdown
Contributor Author

Since CI passes, let's get this in!
bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Apr 29, 2025
…24343)

These are necessary to speak about `IntegrableOn` well. Similarly to previous PRs, when a statement needs more than trivial changes, this PR just adds enorm analogues (without deprecating existing lemmas) and tries to golf the existing version in terms of the enorm result.
(In this PR, I chose to not always golf one-line proofs. For multi-line proofs, this PR shows that work can really be re-used.)



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 chore(L1Space/HasFiniteIntegral): generalise a few lemmas to enorm [Merged by Bors] - chore(L1Space/HasFiniteIntegral): generalise a few lemmas to enorm Apr 29, 2025
@mathlib-bors mathlib-bors Bot closed this Apr 29, 2025
@mathlib-bors
mathlib-bors Bot deleted the MR-integrableon-enorm branch April 29, 2025 16:46
tannerduve pushed a commit that referenced this pull request May 13, 2025
…24343)

These are necessary to speak about `IntegrableOn` well. Similarly to previous PRs, when a statement needs more than trivial changes, this PR just adds enorm analogues (without deprecating existing lemmas) and tries to golf the existing version in terms of the enorm result.
(In this PR, I chose to not always golf one-line proofs. For multi-line proofs, this PR shows that work can really be re-used.)



Co-authored-by: grunweg <[email protected]>
mathlib-bors Bot pushed a commit that referenced this pull request Jan 26, 2026
#34439)

And rename two lemmas to better names, as discovered in #24343.

Co-authored-by: grunweg <[email protected]>
mathlib-bors Bot pushed a commit that referenced this pull request Jan 26, 2026
#34439)

And rename two lemmas to better names, as discovered in #24343.

Co-authored-by: grunweg <[email protected]>
mathlib-bors Bot pushed a commit that referenced this pull request Jan 26, 2026
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Feb 3, 2026
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 delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-measure-probability Measure theory / Probability theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants