Skip to content

[Merged by Bors] - fix: cleanup measurability + prod/sum lemmas + fun_prop#25254

Closed
fpvandoorn wants to merge 16 commits intomasterfrom
funpropfix
Closed

[Merged by Bors] - fix: cleanup measurability + prod/sum lemmas + fun_prop#25254
fpvandoorn wants to merge 16 commits intomasterfrom
funpropfix

Conversation

@fpvandoorn
Copy link
Copy Markdown
Member

@fpvandoorn fpvandoorn commented May 28, 2025

  • Add fun_prop to a few more lemmas
  • Rename the compositional version to something without a prime, add the compositional version for StronglyMeasurable
  • use the prod/fun_prod naming scheme (the compositional version is called prod_apply) for [AE][Strongly]Measurable

Open in Gitpod

@github-actions github-actions bot added the t-measure-probability Measure theory / Probability theory label May 28, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented May 28, 2025

PR summary 36bd1b9d93

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ Finset.aemeasurable_fun_prod
+ Finset.aemeasurable_sum'
+ Finset.measurable_fun_prod
+ Finset.measurable_prod_apply
+ Finset.measurable_sum'
+ Finset.stronglyMeasurable_prod_apply
+ List.aemeasurable_fun_prod
+ List.aemeasurable_sum'
+ List.measurable_fun_prod
+ List.measurable_sum'
+ Multiset.aemeasurable_fun_prod
+ Multiset.aemeasurable_sum'
+ Multiset.measurable_fun_prod
+ Multiset.measurable_sum'
+ _root_.Finset.aestronglyMeasurable_fun_prod
+ _root_.Finset.aestronglyMeasurable_sum'
+ _root_.Finset.stronglyMeasurable_fun_prod
+ _root_.Finset.stronglyMeasurable_sum'
+ _root_.List.aestronglyMeasurable_fun_prod
+ _root_.List.aestronglyMeasurable_sum'
+ _root_.List.stronglyMeasurable_fun_prod
+ _root_.List.stronglyMeasurable_sum'
+ _root_.Multiset.aestronglyMeasurable_fun_prod
+ _root_.Multiset.aestronglyMeasurable_sum'
+ _root_.Multiset.stronglyMeasurable_fun_prod
+ _root_.Multiset.stronglyMeasurable_sum'
+ measurable_fun_sum
+++ measurable_fun_prod
- measurable_sum
--- measurable_prod

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

@j-loreaux j-loreaux added the awaiting-author A reviewer has asked the author a question or requested changes. label May 28, 2025
@fpvandoorn fpvandoorn added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed awaiting-author A reviewer has asked the author a question or requested changes. labels May 30, 2025
@fpvandoorn fpvandoorn changed the title fix: strengthen fun_prop lemma, add two fun_props fix: cleanup measurability + prod/sum lemmas + fun_prop May 30, 2025
@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 Jun 4, 2025
@fpvandoorn fpvandoorn requested a review from sgouezel June 4, 2025 23:21

@[to_additive (attr := fun_prop, measurability)]
theorem _root_.List.aestronglyMeasurable_prod' (l : List (α → M))
theorem _root_.List.aestronglyMeasurable_fun_prod (l : List (α → M))
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 don't think that's the correct naming scheme: fun_prod should be used when there is fun somewhere, but there is no fun here. I'd call this one aestronglyMeasurable_prod, and the next one aestronglyMeasurable_fun_prod. Same thing below.

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.

Oh, I indeed misread your previous suggestion. So the fun stands for the function-abstraction? I thought it stood for "take the product of functions" (instead of functions applied to an argument). Can you link to a Zulip discussion (or the conventions, if it's explicitly mentioned there), before I change this again?

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.

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.

I've swapped the names

@sgouezel sgouezel added the awaiting-author A reviewer has asked the author a question or requested changes. label Jun 5, 2025
@fpvandoorn fpvandoorn added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Jun 24, 2025
Copy link
Copy Markdown
Contributor

@RemyDegenne RemyDegenne left a comment

Choose a reason for hiding this comment

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

@fpvandoorn it would be nice if you could find time to fix CI on this PR. It's close to being mergeable.

@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 Jul 15, 2025
@sgouezel
Copy link
Copy Markdown
Contributor

Can you merge master? When I do lake exe cache get I don't get the full cache so maybe something went wrong (especially since it's a PR not from a fork, so less tested these days)

Copy link
Copy Markdown
Contributor

@sgouezel sgouezel left a comment

Choose a reason for hiding this comment

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

bors d+
Thanks!

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 15, 2025

✌️ fpvandoorn 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 Jul 15, 2025
@grunweg grunweg mentioned this pull request Aug 1, 2025
@github-actions github-actions bot added large-import Automatically added label for PRs with a significant increase in transitive imports file-removed A Lean module was (re)moved without a `deprecated_module` annotation labels Aug 1, 2025
@github-actions github-actions bot removed large-import Automatically added label for PRs with a significant increase in transitive imports file-removed A Lean module was (re)moved without a `deprecated_module` annotation labels Aug 1, 2025
@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Aug 1, 2025

(Friendly reminder to push the button here.)

@fpvandoorn
Copy link
Copy Markdown
Member Author

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Aug 4, 2025
mathlib-bors bot pushed a commit that referenced this pull request Aug 4, 2025
* Add `fun_prop` to a few more lemmas
* Rename the compositional version to something without a prime, add the compositional version for `StronglyMeasurable`
* use the `prod/fun_prod` naming scheme (the compositional version is called `prod_apply`) for `[AE][Strongly]Measurable`



Co-authored-by: Floris van Doorn <fpvdoorn@gmail.com>
Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 4, 2025

Build failed (retrying...):

mathlib-bors bot pushed a commit that referenced this pull request Aug 4, 2025
* Add `fun_prop` to a few more lemmas
* Rename the compositional version to something without a prime, add the compositional version for `StronglyMeasurable`
* use the `prod/fun_prod` naming scheme (the compositional version is called `prod_apply`) for `[AE][Strongly]Measurable`



Co-authored-by: Floris van Doorn <fpvdoorn@gmail.com>
Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Aug 4, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix: cleanup measurability + prod/sum lemmas + fun_prop [Merged by Bors] - fix: cleanup measurability + prod/sum lemmas + fun_prop Aug 4, 2025
@mathlib-bors mathlib-bors bot closed this Aug 4, 2025
@mathlib-bors mathlib-bors bot deleted the funpropfix branch August 4, 2025 15:14
Equilibris pushed a commit to Equilibris/mathlib4 that referenced this pull request Aug 7, 2025
…ommunity#25254)

* Add `fun_prop` to a few more lemmas
* Rename the compositional version to something without a prime, add the compositional version for `StronglyMeasurable`
* use the `prod/fun_prod` naming scheme (the compositional version is called `prod_apply`) for `[AE][Strongly]Measurable`



Co-authored-by: Floris van Doorn <fpvdoorn@gmail.com>
Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
Paul-Lez pushed a commit to Paul-Lez/mathlib4 that referenced this pull request Aug 23, 2025
…ommunity#25254)

* Add `fun_prop` to a few more lemmas
* Rename the compositional version to something without a prime, add the compositional version for `StronglyMeasurable`
* use the `prod/fun_prod` naming scheme (the compositional version is called `prod_apply`) for `[AE][Strongly]Measurable`



Co-authored-by: Floris van Doorn <fpvdoorn@gmail.com>
Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
Paul-Lez pushed a commit to Paul-Lez/mathlib4 that referenced this pull request Aug 23, 2025
…ommunity#25254)

* Add `fun_prop` to a few more lemmas
* Rename the compositional version to something without a prime, add the compositional version for `StronglyMeasurable`
* use the `prod/fun_prod` naming scheme (the compositional version is called `prod_apply`) for `[AE][Strongly]Measurable`



Co-authored-by: Floris van Doorn <fpvdoorn@gmail.com>
Co-authored-by: Michael Rothgang <rothgang@math.uni-bonn.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). 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.

5 participants