Zulip Chat Archive
Stream: Is there code for X?
Topic: Composition of measure and kernel
Kin Yau James Wong (Jul 18 2024 at 12:45):
Hello, I am aware that the composition of Markov kernels already exists in mathlib. The composition of a measure and a Markov kernel would be a special case of this composition, where we interpret the measure as a kernel from a singleton to some other measurable space. Does such an implementation already exist in mathlib?
Rémy Degenne (Jul 18 2024 at 12:50):
It exists in Mathlib, but mostly without API: this is MeasureTheory.Measure.bind
Yaël Dillies (Jul 18 2024 at 12:51):
Thanks Rémy!
Rémy Degenne (Jul 18 2024 at 12:51):
With @Lorenzo Luccioli we added API for it in our project about divergences between measures here: https://github.com/RemyDegenne/testing-lower-bounds/blob/master/TestingLowerBounds/MeasureCompProd.lean
Rémy Degenne (Jul 18 2024 at 12:51):
That code will make its way to mathlib, but it's not there yet.
Rémy Degenne (Jul 18 2024 at 12:52):
Feel free to copy anything you could need for your own project
Yaël Dillies (Jul 18 2024 at 12:53):
Is it just this one file we should copy or do you have more stuff elsewhere?
Rémy Degenne (Jul 18 2024 at 12:54):
That file imports other files from our project. You'll need to look around and pick what you need, sorry.
Yaël Dillies (Jul 18 2024 at 12:55):
Ah okay, will try doing that and complain if it's too painful :smile:
Last updated: May 02 2025 at 03:31 UTC