B Radon-Nikodym derivatives and disintegration
Let \(\kappa , \eta : \mathcal X \rightsquigarrow \mathcal Y\) be two finite kernels, with either \(\mathcal X\) countable or \(\mathcal{Y}\) countably generated. The Radon-Nikodym derivative of \(\kappa \) with respect to \(\eta \), denoted by \(\frac{d \kappa }{d \eta }\), is a measurable function \(\mathcal X \times \mathcal Y \to \mathbb {R}_{+, \infty }\) with \(\kappa = \frac{d \kappa }{d \eta } \cdot \eta + \kappa _{\perp \eta }\), where for all \(x\), \(\kappa _{\perp \eta }(x) \perp \eta (x)\).
Let \(\kappa , \eta : \mathcal X \rightsquigarrow \mathcal Y\) be two finite kernels, with either \(\mathcal X\) countable or \(\mathcal{Y}\) countably generated. If for some \(f\) and \(\xi \), \(\kappa = f \cdot \eta + \xi \) with \(\xi (x) \perp \eta (x)\) for all \(x\), then for all \(x\), \(f(x, y) = \frac{d \kappa (x)}{d \eta (x)}(y)\) for \(\eta (x)\)-almost all \(y \in \mathcal Y\).
Let \(f\) and \(\xi \) be such that \(\kappa = f \cdot \eta + \xi \) with \(\xi (x) \perp \eta (x)\) for all \(x\). Then for all \(x \in \mathcal X\), \(\kappa (x) = f(x, \cdot ) \cdot \eta (x) + \xi (x)\) with \(\xi (x) \perp \eta (x)\). By the uniqueness result for the Radon-Nikodym derivative of measures, \(f(x, \cdot ) = \frac{d \kappa (x)}{d \eta (x)}\) almost everywhere.
For all \(x \in \mathcal X\), for \(\eta (x)\)-almost all \(y \in \mathcal Y\), \(\frac{d \kappa }{d \eta }(x, y) = \frac{d \kappa (x)}{d \eta (x)}(y)\).
Apply Lemma B.0.1.
B.1 Composition-product
Let \(\mu , \nu \) be two measures on \(\mathcal X\) with \(\mu \ll \nu \) and let \(\kappa , \eta : \mathcal X \rightsquigarrow \mathcal Y\) be two finite kernels with \(\kappa (x) \ll \eta (x)\) for \(\nu \)-almost all \(x\), with either \(\mathcal X\) countable or \(\mathcal{Y}\) countably generated. Then for \((\nu \otimes \eta )\)-almost all \((x, y)\), \(\frac{d (\mu \otimes \kappa )}{d (\nu \otimes \eta )}(x,y) = \frac{d\mu }{d\nu }(x)\frac{d \kappa }{d \eta }(x,y)\). This implies that the equality is true for \(\nu \)-almost all \(x\), for \(\eta (x)\)-almost all \(y\).
It is sufficient to prove that the integrals of the two functions on all product sets \(s \times t\) for \(s\) and \(t\) measurable are equal (since these sets are a \(\pi \)-system). The computation of first integral is immediate :
The second one uses Corollary B.0.2.
Let \(\mu , \nu \) be two measures on \(\mathcal X\) and let \(\kappa , \eta : \mathcal X \rightsquigarrow \mathcal Y\) be two finite kernels. Let \(\mu ' = \left(\frac{\partial \mu }{\partial \nu }\right) \cdot \nu \) and \(\kappa ' = \left(\frac{\partial \kappa }{\partial \eta }\right) \cdot \eta \). Then for \((\nu \otimes \eta )\)-almost all \(z\), \(\frac{\partial (\mu ' \otimes \kappa ')}{\partial (\nu \otimes \eta )}(z) = \frac{\partial (\mu \otimes \kappa )}{\partial (\nu \otimes \eta )}(z)\).
Let \(\mu , \nu \) be two measures on \(\mathcal X\) and let \(\kappa , \eta : \mathcal X \rightsquigarrow \mathcal Y\) be two finite kernels, with either \(\mathcal X\) countable or \(\mathcal{Y}\) countably generated. Let \(\mu ' = \left(\frac{d \mu }{d \nu }\right) \cdot \nu \) and \(\kappa ' = \left(\frac{d \kappa }{d \eta }\right) \cdot \eta \). Then for \((\nu \otimes \eta )\)-almost all \((x, y)\), \(\frac{d\mu '}{d\nu }(x)\frac{d \kappa '}{d \eta }(x,y) = \frac{d\mu }{d\nu }(x)\frac{d \kappa }{d \eta }(x,y)\).
Let \(\mu , \nu \in \mathcal M(\mathcal X)\) and let \(\kappa : \mathcal X \rightsquigarrow \mathcal Y\) be a finite kernel. Then for \((\nu \otimes \kappa )\)-almost all \((x, y)\), \(\frac{d (\mu \otimes \kappa )}{d (\nu \otimes \kappa )}(x,y) = \frac{d\mu }{d\nu }(x)\).
TODO: wlog \(\mu \ll \nu \), and we can consider products of sets.
Let \(\mu , \nu \) be two measures on \(\mathcal X\) and let \(\kappa , \eta : \mathcal X \rightsquigarrow \mathcal Y\) be two finite kernels, with either \(\mathcal X\) countable or \(\mathcal{Y}\) countably generated. Then for \((\nu \otimes \eta )\)-almost all \((x, y)\), \(\frac{d (\mu \otimes \kappa )}{d (\nu \otimes \eta )}(x,y) = \frac{d\mu }{d\nu }(x)\frac{d \kappa }{d \eta }(x,y)\). This implies that the equality is true for \(\nu \)-almost all \(x\), for \(\eta (x)\)-almost all \(y\).
Let \(\mu \) be a measures on \(\mathcal X\) and let \(\kappa , \eta : \mathcal X \rightsquigarrow \mathcal Y\) be two finite kernels, with either \(\mathcal X\) countable or \(\mathcal{Y}\) countably generated. Then for \((\mu \otimes \eta )\)-almost all \((x, y)\), \(\frac{d (\mu \otimes \kappa )}{d (\mu \otimes \eta )}(x,y) = \frac{d \kappa }{d \eta }(x,y)\).
B.2 Composition
Let \(\mu , \nu \in \mathcal M(\mathcal X)\) with \(\mu \ll \nu \), \(g : \mathcal X \to \mathcal Y\) a measurable function and denote by \(g^* \mathcal Y\) the comap of the \(\sigma \)-algebra on \(\mathcal Y\) by \(g\). Then \(\nu \)-almost everywhere,
We show that the integrals of the two functions agree on all \(g^* \mathcal Y\)-measurable sets. It suffices to show equality on all sets oc \(\mathcal X\) of the form \(g^{-1}(t)\) for \(t\) a measurable set of \(\mathcal Y\). TODO: also show measurability.
Let \(\mu , \nu \in \mathcal M(\mathcal X)\) with \(\mu \ll \nu \) and let \(\kappa , \eta : \mathcal X \rightsquigarrow \mathcal Y\) be finite kernels with \(\kappa (x) \ll \eta (x)\) \(\nu \)-a.e.. Let \(\mathcal B\) be the sigma-algebra on \(\mathcal X \times \mathcal Y\) obtained by taking the comap of the sigma-algebra of \(\mathcal Y\) by the projection. Then for \((\nu \otimes \eta )\)-almost every \((x,y)\),
Let \(\pi _Y : \mathcal X \times \mathcal Y \to \mathcal Y\) be the projection \(\pi _Y(x,y) = y\). Remark that \(\kappa \circ \mu = \pi _{Y*}(\mu \otimes \kappa )\) and similarly for \(\nu , \eta \). By Lemma B.2.1, \((\nu \otimes \eta )\)-almost everywhere,
Let \(\mu , \nu \in \mathcal M(\mathcal X)\) with \(\mu \ll \nu \) and let \(\kappa : \mathcal X \rightsquigarrow \mathcal Y\) be a finite kernel. Let \(\mathcal B\) be the sigma-algebra on \(\mathcal X \times \mathcal Y\) obtained by taking the comap of the sigma-algebra of \(\mathcal Y\) by the projection. Then for \((\nu \otimes \kappa )\)-almost every \((x,y)\),
Apply Lemma B.2.2 to get, \((\nu \otimes \kappa )\)-almost everywhere,
Finally, by Corollary B.1.4, \(\frac{d (\mu \otimes \kappa )}{d (\nu \otimes \kappa )} = \frac{d \mu }{d \nu }\) a.e.
B.3 Sigma-algebras
For \(\mathcal A\) a sub-\(\sigma \)-algebra and \(\mu \) a measure, we write \(\mathcal\mu _{| \mathcal A}\) for the measure restricted to the \(\sigma \)-algebra.
Let \(\mu , \nu \) be two finite measures on \(\mathcal X\) with \(\mu \ll \nu \) and let \(\mathcal A\) be a sub-\(\sigma \)-algebra of \(\mathcal X\). Then \(\frac{d \mu _{| \mathcal A}}{d \nu _{| \mathcal A}}\) is \(\nu _{| \mathcal A}\)-almost everywhere (hence also \(\nu \)-a.e.) equal to \(\nu \left[ \frac{d \mu }{d \nu } \mid \mathcal A\right]\).
TODO: the current Lean proof is not the proof presented here (but a direct computation).
The restriction \(\mu _{| \mathcal A}\) is the map of \(\mu \) by the identity, seen as a function from \(\mathcal X\) with its \(\sigma \)-algebra to \(\mathcal X\) with \(\mathcal{A}\). We can thus apply Lemma B.2.1.
Let \(\mu , \nu \in \mathcal M(\mathcal X)\) with \(\mu \ll \nu \), \(g : \mathcal X \to \mathcal Y\) a measurable function and denote by \(g^* \mathcal Y\) the comap of the \(\sigma \)-algebra on \(\mathcal Y\) by \(g\). Then \(\nu \)-almost everywhere,