Skip to content

[Merged by Bors] - feat(Probability/Independence/InfinitePi): rearrangement of infinite product measures#39503

Closed
jvanwinden wants to merge 7 commits into
leanprover-community:masterfrom
jvanwinden:infinitePi_eval_map
Closed

[Merged by Bors] - feat(Probability/Independence/InfinitePi): rearrangement of infinite product measures#39503
jvanwinden wants to merge 7 commits into
leanprover-community:masterfrom
jvanwinden:infinitePi_eval_map

Conversation

@jvanwinden

@jvanwinden jvanwinden commented May 17, 2026

Copy link
Copy Markdown
Contributor

This PR introduces a lemma for coordinate transformations of infinitePi measures.

  • MeasureTheory.Measure.map_infinitePi_infinitePi_of_inj: if f : α → ι is injective, then the pushforward of the coordinates rearranged according to f (i.e., the law of fun ω i ↦ ω (f i) is the same as the infinite product of the rearranged laws.

This lemma bears some resemblance to infinitePi_map_piCongrLeft, but does not require f to be a bijection and probably is easier to work with in practice.


Open in Gitpod

@github-actions github-actions Bot added the t-measure-probability Measure theory / Probability theory label May 17, 2026
@github-actions

github-actions Bot commented May 17, 2026

Copy link
Copy Markdown

PR summary 6bc2dbd211

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ _root_.MeasureTheory.Measure.map_infinitePi_infinitePi_of_inj

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.


No changes to strong technical debt.
No changes to weak technical debt.

@CoolRmal CoolRmal 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 think you should move the first lemmas into other places. No theorems in Mathlib start with ProbabilityTheory.Measure (so maybe you should also change your description of this PR).

Maybe you can move map_infinitePi_infinitePi_of_inj into Mathlib.Probability.ProductMeasure, and use it to golf (or prove analogues of) infinitePi_map_piCongrLeft

Comment thread Mathlib/Probability/Independence/InfinitePi.lean Outdated
Comment thread Mathlib/Probability/ProductMeasure.lean Outdated
@EtienneC30

Copy link
Copy Markdown
Member

Maybe you can move map_infinitePi_infinitePi_of_inj into Mathlib.Probability.ProductMeasure, and use it to golf (or prove analogues of) infinitePi_map_piCongrLeft

I agree it's not ideal to use independence to prove map_infinitePi_infinitePi_of_inj which a priori is more fundamental, but I also think that this gives a nicer proof and that it is in some sense a special case of the independence result, so I'd say we can keep it there.

Comment thread Mathlib/Probability/Independence/InfinitePi.lean Outdated
Comment thread Mathlib/Probability/Independence/InfinitePi.lean Outdated
@EtienneC30 EtienneC30 added the awaiting-author A reviewer has asked the author a question or requested changes. label May 20, 2026
@jvanwinden

Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes. label May 23, 2026
@EtienneC30

Copy link
Copy Markdown
Member

Thanks! Can you just update the PR title and description please?
maintainer delegate

@EtienneC30 EtienneC30 added the awaiting-author A reviewer has asked the author a question or requested changes. label May 24, 2026
@github-actions

Copy link
Copy Markdown

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

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label May 24, 2026
@jvanwinden jvanwinden changed the title feat(Probability): add API for infinite product measures feat(Probability/Independence/InfinitePi): add API for infinite product measures May 25, 2026
@jvanwinden jvanwinden changed the title feat(Probability/Independence/InfinitePi): add API for infinite product measures feat(Probability/Independence/InfinitePi): rearrangement of infinite product measures May 25, 2026
@jvanwinden

Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author A reviewer has asked the author a question or requested changes. label May 25, 2026

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

Thanks!
bors r+

mathlib-bors Bot pushed a commit that referenced this pull request May 26, 2026
…product measures (#39503)

This PR introduces a lemma for coordinate transformations of `infinitePi` measures.

- `MeasureTheory.Measure.map_infinitePi_infinitePi_of_inj`: if `f : α → ι` is injective, then the pushforward of the coordinates rearranged according to `f` (i.e., the law of `fun ω i ↦ ω (f i)` is the same as the infinite product of the rearranged laws.

This lemma bears some resemblance to `infinitePi_map_piCongrLeft`, but does not require `f` to be a bijection and probably is easier to work with in practice.
@mathlib-triage mathlib-triage Bot 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 May 26, 2026
@mathlib-bors

mathlib-bors Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Probability/Independence/InfinitePi): rearrangement of infinite product measures [Merged by Bors] - feat(Probability/Independence/InfinitePi): rearrangement of infinite product measures May 26, 2026
@mathlib-bors mathlib-bors Bot closed this May 26, 2026
b-mehta pushed a commit to b-mehta/mathlib4 that referenced this pull request Jun 2, 2026
…product measures (leanprover-community#39503)

This PR introduces a lemma for coordinate transformations of `infinitePi` measures.

- `MeasureTheory.Measure.map_infinitePi_infinitePi_of_inj`: if `f : α → ι` is injective, then the pushforward of the coordinates rearranged according to `f` (i.e., the law of `fun ω i ↦ ω (f i)` is the same as the infinite product of the rearranged laws.

This lemma bears some resemblance to `infinitePi_map_piCongrLeft`, but does not require `f` to be a bijection and probably is easier to work with in practice.
Bergschaf pushed a commit to Bergschaf/mathlib4 that referenced this pull request Jun 3, 2026
…product measures (leanprover-community#39503)

This PR introduces a lemma for coordinate transformations of `infinitePi` measures.

- `MeasureTheory.Measure.map_infinitePi_infinitePi_of_inj`: if `f : α → ι` is injective, then the pushforward of the coordinates rearranged according to `f` (i.e., the law of `fun ω i ↦ ω (f i)` is the same as the infinite product of the rearranged laws.

This lemma bears some resemblance to `infinitePi_map_piCongrLeft`, but does not require `f` to be a bijection and probably is easier to work with in practice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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