Skip to content

Commit f3ecc58

Browse files
jvanwindenb-mehta
authored andcommitted
feat(Probability/Independence/InfinitePi): rearrangement of infinite 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.
1 parent 36603a2 commit f3ecc58

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Mathlib/Probability/Independence/InfinitePi.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ lemma iIndepFun_infinitePi {Ω : ι → Type*} {mΩ : ∀ i, MeasurableSpace (Ω
108108
congrm infinitePi fun i ↦ ?_
109109
rw [← infinitePi_map_eval P i, map_map (mX i) (by fun_prop), Function.comp_def]
110110

111+
lemma _root_.MeasureTheory.Measure.map_infinitePi_infinitePi_of_inj {α : Type*} {Ω : ι → Type*}
112+
{mΩ : ∀ i, MeasurableSpace (Ω i)} {P : ∀ i, Measure (Ω i)}
113+
[∀ i, IsProbabilityMeasure (P i)] {f : α → ι} (hf : Function.Injective f) :
114+
(infinitePi P).map (fun ω i ↦ ω (f i)) = infinitePi (fun i ↦ P (f i)) := by
115+
rw [(iIndepFun_iff_map_fun_eq_infinitePi_map <| by fun_prop).mp ?_]
116+
· simp [infinitePi_map_eval]
117+
exact .precomp hf <| iIndepFun_infinitePi (X := fun x ω ↦ ω) <| by fun_prop
118+
111119
section curry
112120

113121
omit [IsProbabilityMeasure P]

0 commit comments

Comments
 (0)