Skip to content

[Merged by Bors] - chore: use ‖x‖ₑ instead of ↑‖x‖₊ - #20806

Closed
YaelDillies wants to merge 1 commit into
masterfrom
use_enorm
Closed

YaelDillies wants to merge 1 commit into
masterfrom
use_enorm

Conversation

@YaelDillies

@YaelDillies YaelDillies commented Jan 17, 2025 •

Copy link
Copy Markdown
Contributor

Rename lemmas from _nnnorm_/_ennnorm_ to _enorm_ where applicable. Rewrite/golf proofs where necessary.


Open in Gitpod

@github-actions

github-actions Bot commented Jan 17, 2025 •

Copy link
Copy Markdown

PR summary a890aae849

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ AECover.integrable_of_lintegral_enorm_bounded
+ AECover.integrable_of_lintegral_enorm_bounded'
+ AECover.integrable_of_lintegral_enorm_tendsto
+ AECover.integrable_of_lintegral_enorm_tendsto'
+ AEMeasurable.enorm
+ Measurable.enorm
+ _root_.HasCompactSupport.enorm_le_lintegral_Ici_deriv
+ ae_tendsto_lintegral_enorm_sub_div
+ ae_tendsto_lintegral_enorm_sub_div'_of_integrable
+ ae_tendsto_lintegral_enorm_sub_div_of_integrable
+ eLpNorm'_eq_lintegral_enorm
+ eLpNormEssSup_eq_essSup_enorm
+ eLpNorm_eq_lintegral_rpow_enorm
+ eLpNorm_one_eq_lintegral_enorm
+ edist_eq_coe_nnnorm
+ edist_eq_coe_nnnorm_sub
+ edist_eq_enorm_div
+ edist_indicatorConstLp_eq_enorm
+ edist_one_eq_enorm
+ enorm_def
+ enorm_eq_ofReal
+ enorm_eq_ofReal_abs
+ enorm_indicatorConstLp_le
+ enorm_integral_le_lintegral_enorm
+ enorm_toL1
+ enorm_toLp
+ hasFiniteIntegral_iff_enorm
+ integral_norm_eq_lintegral_enorm
+ lintegral_enorm_add_left
+ lintegral_enorm_add_right
+ lintegral_enorm_eq_lintegral_edist
+ lintegral_enorm_le_of_forall_fin_meas_integral_eq
+ lintegral_enorm_neg
+ lintegral_enorm_of_ae_nonneg
+ lintegral_enorm_of_nonneg
+ lintegral_enorm_zero
+ lintegral_ofReal_le_lintegral_enorm
+ lintegral_rpow_enorm_eq_rpow_eLpNorm'
+ lintegral_rpow_enorm_lt_top_of_eLpNorm'_lt_top
+ lintegral_rpow_enorm_lt_top_of_eLpNorm_lt_top
+ lintegral_rpow_nnnorm_lt_top_of_eLpNorm'_lt_top'
+ meas_ge_le_mul_pow_enorm
+ measurable_enorm
+ mul_meas_ge_le_pow_enorm
+ mul_meas_ge_le_pow_enorm'
+ ofReal_integral_norm_eq_lintegral_enorm
+ ofReal_le_enorm
+ ofReal_norm_eq_coe_nnnorm
+ ofReal_norm_eq_enorm'
+ pow_mul_meas_ge_le_enorm
+ tendsto_approxOn_L1_enorm
+ tendsto_approxOn_range_L1_enorm
++ enorm
++-- ennnorm
- lintegral_rpow_nnnorm_lt_top_of_eLpNorm'_lt_top

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.


Decrease in tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type
4305 -1 porting notes

Current commit a890aae849
Reference commit efeadfb186

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

@grunweg grunweg left a comment

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.

Three small comments (so far).

@grunweg

grunweg commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

I pushed a fix for one file; the two others would take me longer.

@YaelDillies

YaelDillies commented Jan 17, 2025 •

Copy link
Copy Markdown
Contributor Author

Thanks for the fix! FYI it's not very useful (to me) to sorry out broken proofs. Sorries (and more generally warnings) aren't picked up in CI until there are no errors left. So sorrying out a proof will make it resurface surprisingly late in the fixing process.

@grunweg

grunweg commented Jan 20, 2025

Copy link
Copy Markdown
Contributor

Almost there! For the record, I reviewed every single commit so far and it looks good to me. (I'll try to review the last fixes soon, and then maintainer merge.)

@github-actions github-actions Bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Jan 20, 2025

@grunweg grunweg left a comment

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.

The commit until fea2a2f (inclusive) look good to me. I found one nit :-)

@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 Jan 22, 2025
@YaelDillies

Copy link
Copy Markdown
Contributor Author

I had to rebase to get rid of the conflict, so I squashed all the commits until fea2a2f. From the second commit onwards are the commits you didn't review, Michael.

@grunweg grunweg left a comment

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.

One comment on this commit.

@grunweg grunweg left a comment

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.

LGTM, two small details

apply edist_triangle_right

theorem lintegral_nnnorm_zero : (∫⁻ _ : α, ‖(0 : β)‖₊ ∂μ) = 0 := by simp
-- Yaël: Why do the following four lemmas even exist?

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 reviewing commit-by-commit: just flagging this so it gets taken care of before merging.

Comment thread Mathlib/Analysis/Convex/EGauge.lean Resolved
Comment thread Mathlib/Analysis/Convex/EGauge.lean Resolved
Comment thread Mathlib/Probability/Variance.lean Resolved

@grunweg grunweg left a comment

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 have reviewed everything commit-by-commit now. Thanks a lot for boiling the (mathlib) ocean, Yael!

@grunweg

grunweg commented Jan 22, 2025

Copy link
Copy Markdown
Contributor

Thanks for the notice! I have reviewed everything up to c58a9fe again.

@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 Jan 22, 2025
@YaelDillies

Copy link
Copy Markdown
Contributor Author

Squashed everything you've reviewed again

@grunweg

grunweg commented Jan 22, 2025 •

Copy link
Copy Markdown
Contributor

Wait, it builds already? 😱 That's way quicker than I thought!

@YaelDillies

Copy link
Copy Markdown
Contributor Author

💪 🐎 🏁

@grunweg

grunweg commented Jan 22, 2025

Copy link
Copy Markdown
Contributor

Should the mwe.lean file be deleted again?

@github-actions github-actions Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jan 22, 2025
@riccardobrasca

Copy link
Copy Markdown
Member

!bench

@leanprover-bot

Copy link
Copy Markdown

Here are the benchmark results for commit 4bd1ce8.
There were significant changes against commit fc30cf7:

  Benchmark                                 Metric         Change
  ===============================================================
- ~Mathlib.MeasureTheory.Function.LpSpace   instructions     6.9%

@github-actions

Copy link
Copy Markdown
File Instructions %
build +22.682⬝10⁹ (+0.01%)
lint +1.688⬝10⁹ (+0.02%)
Mathlib.MeasureTheory.Function.LpSpace +14.556⬝10⁹ (+6.91%)
Mathlib.Analysis.Normed.Group.Basic +5.260⬝10⁹ (+6.30%)
Mathlib.Analysis.NormedSpace.OperatorNorm.NNNorm +2.409⬝10⁹ (+7.55%)
6 files, Instructions +1.0⬝10⁹
File Instructions %
Mathlib.MeasureTheory.Function.L1Space +1.941⬝10⁹ (+1.76%)
Mathlib.MeasureTheory.Function.ContinuousMapDense +1.664⬝10⁹ (+6.14%)
Mathlib.Data.Array.Lemmas +1.619⬝10⁹ (+50.89%)
Mathlib.Analysis.InnerProductSpace.NormPow +1.120⬝10⁹ (+2.76%)
Mathlib.Analysis.Normed.Field.Basic +1.98⬝10⁹ (+0.92%)
Mathlib.Analysis.Normed.MulAction +1.73⬝10⁹ (+7.82%)
File Instructions %
Mathlib.MeasureTheory.Function.LpSeminorm.Basic -1.966⬝10⁹ (-1.83%)
Mathlib.Analysis.FunctionalSpaces.SobolevInequality -3.119⬝10⁹ (-2.47%)
CI run

@YaelDillies

YaelDillies commented Jan 22, 2025 •

Copy link
Copy Markdown
Contributor Author

the import increase (which seems justified; I didn't check that part carefully)

I'm pretty sure we could reduce the import increase significantly by splitting Topology.Instances.ENNReal similarly to how Kim did for .Real.

Another thing to consider about the present PR is that I needed to add many lemmas about enorm. I would be happy to split those changes to a preliminary PR so that they are not drowned in the diff.

@riccardobrasca

Copy link
Copy Markdown
Member

If you are willing to do that please go ahead!

@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 Jan 22, 2025
@github-actions github-actions Bot removed the large-import Automatically added label for PRs with a significant increase in transitive imports label Jan 23, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jan 23, 2025
@mathlib4-dependent-issues-bot

Copy link
Copy Markdown

This PR/issue depends on:

@grunweg

grunweg commented Jan 23, 2025

Copy link
Copy Markdown
Contributor

!bench

@leanprover-bot

Copy link
Copy Markdown

Here are the benchmark results for commit b8947ef.
There were significant changes against commit a6e1dfd:

  Benchmark                                 Metric         Change
  ===============================================================
- ~Mathlib.MeasureTheory.Function.LpSpace   instructions     6.8%

@github-actions

Copy link
Copy Markdown
File Instructions %
build +12.509⬝10⁹ (+0.00%)
Mathlib.MeasureTheory.Function.LpSpace +14.348⬝10⁹ (+6.81%)
2 files, Instructions +1.0⬝10⁹
File Instructions %
Mathlib.MeasureTheory.Function.L1Space +1.903⬝10⁹ (+1.71%)
Mathlib.MeasureTheory.Function.ContinuousMapDense +1.583⬝10⁹ (+5.82%)
File Instructions %
Mathlib.MeasureTheory.Function.LpSeminorm.Basic -2.29⬝10⁹ (-1.88%)
Mathlib.Analysis.FunctionalSpaces.SobolevInequality -3.122⬝10⁹ (-2.47%)
CI run

@grunweg

grunweg commented Jan 23, 2025

Copy link
Copy Markdown
Contributor

I'm a bit surprised by the 10% increase in LpSpace.lean. It might be good to understand where that is coming from.
(In the grand scheme of things, the increase is still fine - so knowing why would suffice for me.)

@YaelDillies

Copy link
Copy Markdown
Contributor Author

I don't have time/know how to investigate, but if someone does so I would be grateful!

@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 Jan 25, 2025
@github-actions github-actions Bot 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 25, 2025
@fpvandoorn

Copy link
Copy Markdown
Member

I don't think the tiny slowdown has to keep us from merging this.

@grunweg has said he will investigate this later.

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jan 28, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Jan 28, 2025
Rename lemmas from `_nnnorm_`/`_ennnorm_` to `_enorm_` where applicable. Rewrite/golf proofs where necessary.
@mathlib-bors

mathlib-bors Bot commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore: use ‖x‖ₑ instead of ↑‖x‖₊ [Merged by Bors] - chore: use ‖x‖ₑ instead of ↑‖x‖₊ Jan 28, 2025
@mathlib-bors mathlib-bors Bot closed this Jan 28, 2025
@mathlib-bors
mathlib-bors Bot deleted the use_enorm branch January 28, 2025 10:48
@grunweg

grunweg commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

See #21179 for the follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants