Skip to content

[Merged by Bors] - feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid#21670

Closed
grunweg wants to merge 39 commits intomasterfrom
MR-generalise-enorm-2-rebased
Closed

[Merged by Bors] - feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid#21670
grunweg wants to merge 39 commits intomasterfrom
MR-generalise-enorm-2-rebased

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Feb 10, 2025

and prove that these contain (commutative) (Add)NormedGroups. This allows generalising results from normed spaces/normed groups to ENNReal also.

A future PR will generalise lemmas in mathlib to use these new classes. This PR only changes a few lemmas, to prove that these definitions are set up right.

From the Carleson project.


There is a zulip thread for discussing the large import.
Re-done version of #21422.

Open in Gitpod

@grunweg grunweg added the WIP Work in progress label Feb 10, 2025
@github-actions github-actions bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Feb 10, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 10, 2025

PR summary 318e19735f

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Analysis.Normed.Group.Basic 1037 1054 +17 (+1.64%)
Import changes for all files
Files Import difference
Mathlib.Analysis.Normed.Affine.Simplex 5
4 files Mathlib.Analysis.Normed.Group.AddTorsor Mathlib.Analysis.Normed.Group.CocompactMap Mathlib.Analysis.Normed.Group.Int Mathlib.Analysis.Normed.MulAction
8
4 files Mathlib.Analysis.Polynomial.CauchyBound Mathlib.LinearAlgebra.Matrix.Gershgorin Mathlib.NumberTheory.DirichletCharacter.Bounds Mathlib.Topology.MetricSpace.CauSeqFilter
16
11 files Mathlib.Analysis.Asymptotics.Defs Mathlib.Analysis.Normed.Field.Basic Mathlib.Analysis.Normed.Group.Basic Mathlib.Analysis.Normed.Group.Constructions Mathlib.Analysis.Normed.Group.Subgroup Mathlib.Analysis.Normed.Group.Submodule Mathlib.Analysis.Normed.Order.Hom.Basic Mathlib.Analysis.Normed.Order.Hom.Ultra Mathlib.Analysis.NormedSpace.IndicatorFunction Mathlib.Analysis.NormedSpace.MStructure Mathlib.InformationTheory.Hamming
17

Declarations diff

+ Continuous.enorm
+ ContinuousAt.enorm
+ ContinuousENorm
+ ContinuousOn.enorm
+ ContinuousWithinAt.enorm
+ ENormedAddCommMonoid
+ ENormedAddMonoid
+ ENormedCommMonoid
+ ENormedMonoid
+ Inseparable.enorm_eq_enorm'
+ NormedCommGroup.toENormedCommMonoid
+ NormedGroup.toENormedMonoid
+ SeminormedGroup.toContinuousENorm
+ continuous_enorm
- Continuous.enorm'
- ContinuousAt.enorm'
- ContinuousOn.enorm'
- ContinuousWithinAt.enorm'
- continuous_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-analysis Analysis (normed *, calculus) label Feb 10, 2025
@grunweg grunweg changed the title feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid, take 2 feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid, take 2 Feb 10, 2025
@grunweg grunweg added carleson part of the ongoing formalization of Carleson's theorem and removed WIP Work in progress labels Feb 11, 2025
@grunweg grunweg changed the title feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid, take 2 feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid Feb 11, 2025
@grunweg grunweg requested a review from YaelDillies February 12, 2025 19:08
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

All you need is ENNReal.isOpenEmbedding_coe, right? Does reducing imports to Topology.Instances.ENNReal.Defs until it proves not much more than ENNReal.isOpenEmbedding_coe bring the import increase to a reasonable amount?

@YaelDillies YaelDillies added the awaiting-author A reviewer has asked the author a question or requested changes. label Feb 18, 2025
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
@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 Feb 19, 2025
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Mar 5, 2025

This is ready for another look (and formally depends on #22562 now). I will look into merging Normed/Group/Basic.lean and Normed/Group/Continuity.lean now.

@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Mar 5, 2025
@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 Mar 5, 2025
grunweg added a commit that referenced this pull request Mar 5, 2025
Splitting it out in #21554 was motivated by avoiding imports of ENNReal.
This motivation has become moot now:
- with #22562, just the basic properties of ENNReal do not add that many
  further imports
- after #21670, Normed/Group/Basic.lean will import ENNReal anyway.

Adding to this, the split into Basic and Continuity was never really clear
in terms of imports: Basic.lean should be split further, but this does not seem
like a good splitting boundary.

While at it, replace one 'open' that has been likely mis-ported by 'open scoped'.
grunweg added a commit that referenced this pull request Mar 5, 2025
Splitting it out in #21554 was motivated by avoiding imports of ENNReal.
This motivation has become moot now:
- with #22562, just the basic properties of ENNReal do not add that many
  further imports
- after #21670, Normed/Group/Basic.lean will import ENNReal anyway.

Adding to this, the split into Basic and Continuity was never really clear
in terms of imports: Basic.lean should be split further, but this does not seem
like a good splitting boundary.

While at it, replace one 'open' that has been likely mis-ported by 'open scoped'.
@grunweg grunweg removed blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) awaiting-author A reviewer has asked the author a question or requested changes. merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Mar 5, 2025
@mathlib4-dependent-issues-bot
Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

Thanks! 🚀

maintainer merge

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 5, 2025

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

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Mar 5, 2025
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Mar 5, 2025

Thanks for the quick review!

@jcommelin jcommelin added the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 5, 2025
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Mar 5, 2025

This is ready for review again.

@grunweg grunweg removed the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 5, 2025
@PatrickMassot
Copy link
Copy Markdown
Member

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Mar 7, 2025
mathlib-bors bot pushed a commit that referenced this pull request Mar 7, 2025
…21670)

and prove that these contain (commutative) `(Add)NormedGroup`s. This allows generalising results from normed spaces/normed groups to `ENNReal` also.

A future PR will generalise lemmas in mathlib to use these new classes. This PR only changes a few lemmas, to prove that these definitions are set up right.

From the Carleson project.



Co-authored-by: grunweg <rothgami@math.hu-berlin.de>
Co-authored-by: Anne C.A. Baanen <vierkantor@vierkantor.com>
Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 7, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid [Merged by Bors] - feat: add classes ContinuousENorm and ENormed(Add)(Comm)Monoid Mar 7, 2025
@mathlib-bors mathlib-bors bot closed this Mar 7, 2025
@mathlib-bors mathlib-bors bot deleted the MR-generalise-enorm-2-rebased branch March 7, 2025 09:58
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-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants