lemmarightGivenLeft_disintegration :
(pairLaw κ m a b t).fst ⊗ₘ rightGivenLeft κ m a b t = pairLaw κ m a b t :=by
proof · 26
lines
havehm0 : 0 < m :=by linarith
have ha0 := width_pos hm0 ha
have hb0 := width_pos hm0 hb
have : ∀ i, IsProbabilityMeasure (rightLaw m a b i) :=
rightLaw_isProbabilityMeasure (by linarith) ha0 ha' hb0 hb'
have:= rightGivenLeft_isMarkov hκ0 hκ hm ha ha' hb hb' ht0 ht
havehq : ENNReal.ofReal (diagonalMass κ m a b t) ≠0:=by
apply ENNReal.ofReal_ne_zero_iff.mpr
have:= (diagonalMass_bounds hκ0 hκ hm ha ha' hb hb' ht0 ht).1
linarith
letd : ℝ→ℝ≥0∞:=fun x =>ENNReal.ofReal (diagonalMass κ m a b t) +
∑ i, ENNReal.ofReal (componentProbabilities κ m a b t i) *
ENNReal.ofReal (leftDensity m a b i x)
havehpair : (baseLaw.withDensity d) ⊗ₘ rightGivenLeft κ m a b t = pairLaw κ m a b t :=by
unfold rightGivenLeft d
rw [diagonalReplacementKernel_disintegration _ _ hq]
· unfold pairLaw mixture CouplingMixture.diagonal
congr 1
apply Finset.sum_congr rfl
intro i _
rw [leftLaw_eq_withDensity (by linarith) ha0 ha' hb0 hb']
· exact finite_total _ _ _
have hfst := congrArg Measure.fst hpair
rw [Measure.fst_compProd] at hfst
rw [← hfst]
exact hpair
lemmaleftGivenRight_disintegration :
(pairLaw κ m a b t).snd ⊗ₘ leftGivenRight κ m a b t =
(pairLaw κ m a b t).map Prod.swap :=by
proof · 42
lines
havehm0 : 0 < m :=by linarith
have ha0 := width_pos hm0 ha
have hb0 := width_pos hm0 hb
have : ∀ i, IsProbabilityMeasure (leftLaw m a b i) :=
leftLaw_isProbabilityMeasure hm0 ha0 ha' hb0 hb'
have : ∀ i, IsProbabilityMeasure (rightLaw m a b i) :=
rightLaw_isProbabilityMeasure (by linarith) ha0 ha' hb0 hb'
have:= leftGivenRight_isMarkov hκ0 hκ hm ha ha' hb hb' ht0 ht
havehq : ENNReal.ofReal (diagonalMass κ m a b t) ≠0:=by
apply ENNReal.ofReal_ne_zero_iff.mpr
have:= (diagonalMass_bounds hκ0 hκ hm ha ha' hb hb' ht0 ht).1
linarith
havehswap : (pairLaw κ m a b t).map Prod.swap =
ENNReal.ofReal (diagonalMass κ m a b t) • CouplingMixture.diagonal baseLaw +
∑ i, ENNReal.ofReal (componentProbabilities κ m a b t i) •
(rightLaw m a b i).prod (leftLaw m a b i) :=by
unfold pairLaw mixture
rw [Measure.map_add _ _ measurable_swap, map_finsetSum _ _ measurable_swap]
simp only [Measure.map_smul _ measurable_swap.aemeasurable, Measure.prod_swap]
congr 1
unfold CouplingMixture.diagonal
rw [Measure.map_map measurable_swap (showMeasurable (funx : ℝ=> (x, x)) from
measurable_id.prodMk measurable_id)]
rfl
letd : ℝ→ℝ≥0∞:=fun x =>ENNReal.ofReal (diagonalMass κ m a b t) +
∑ i, ENNReal.ofReal (componentProbabilities κ m a b t i) *
ENNReal.ofReal (rightDensity m a b i x)
havehpair : (baseLaw.withDensity d) ⊗ₘ leftGivenRight κ m a b t =
(pairLaw κ m a b t).map Prod.swap :=by
unfold leftGivenRight d
rw [diagonalReplacementKernel_disintegration _ _ hq]
· rw [hswap]
unfold CouplingMixture.diagonal
congr 1
apply Finset.sum_congr rfl
intro i _
rw [rightLaw_eq_withDensity (by linarith) ha0 ha' hb0 hb']
· exact finite_total _ _ _
have hfst := congrArg Measure.fst hpair
rw [Measure.fst_compProd, Measure.fst_map_swap] at hfst
rw [← hfst]
exact hpair