rw [conditionalSigmaEntropy_comap_eq_integral μ F hF P
(fun a => hP (measurableSet_singleton a)),
conditionalSigmaEntropy_comap_eq_integral μ F hF B
(fun a => hB (measurableSet_singleton a))]
apply integral_mono_ae
(integrable_kernel_entropy (μ.map F) (condDistrib id F μ) P
(fun a => hP (measurableSet_singleton a)))
(integrable_kernel_entropy (μ.map F) (condDistrib id F μ) B
(fun a => hB (measurableSet_singleton a)))
filter_upwards [ae_condDistrib_self_fiber μ F hF] with s hs
havehe : P =ᵐ[condDistrib id F μ s] (f s ∘B) :=by
filter_upwards [hs] with y hy
simpa only [Function.comp_apply,hy] using hf y
rw [observationEntropy_eq_of_ae_eq _ P (f s ∘B) he]
apply observationEntropy_le_of_refines _ _ B
(fun a => ((measurable_of_finite (f s)).comp hB) (measurableSet_singleton a))
(fun a => hB (measurableSet_singleton a))
intro x y hxy
exact congrArg (f s) hxy
apply conditionalSigmaEntropy_le_fiber_recoding μ (Q∘T) (hQ.comp hT)
(heightClip QL) (heightClip_measurable hQ L) B hB
(fun q b => heightClip id L (decode q b))
intro x
change heightClip id L (Q x)=heightClip id L (decode (Q (T x)) (B x))
rw [hdecode]