arXiv · 2510.04070
Markov kernels in Mathlib's probability library
Abstract
The probability folder of Mathlib, Lean's mathematical library, makes a heavy use of Markov kernels. We present their definition and properties and describe the formalization of the disintegration theorem for Markov kernels. That theorem is used to define conditional probability distributions of random variables as well as posterior distributions. We then explain how Markov kernels are used in a more unusual way to get a common definition of independence and conditional independence and, following the same principles, to define sub-Gaussian random variables. Finally, we also discuss the role of kernels in our formalization of entropy and Kullback-Leibler divergence.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Rémy Degenne. 2025-10-05. Markov kernels in Mathlib's probability library. https://arxiv.org/abs/2510.04070
Cite the original work for its findings. Save a collection to share your selection of sources.