This repository contains a formalization of Quasi-Borel Spaces1 in Lean 42.
[[require]]
name = "quasi-borel-spaces"
git = "https://github.com/YellPika/quasi-borel-spaces"
rev = "main"We differ from the original paper1 in the following ways:
-
The definition of variable for
Sigmatypes (e.g.,(i : I) × P iorΣi : I, P i) is tweaked to more easily support types which are uninhabited. -
A
QuasiBorelSpaceinstance is defined for all types(i : I) × P i(the paper only allows countableI). -
Probability measures from the paper are called
PreProbabilityMeasures. We reserve the nameProbabilityMeasurefor the monad defined in Section V-D1, i.e. probability measures quotiented by the relation$$ (α, μ) \sim (β, ν) \iff ∀f\ldotp \int f\ d(α, μ) = \int f\ d(β, ν). $$ -
We prove the probability measure monad is strong by constructing the strength operation (as in the Isabelle formalization3), instead of by showing
bindis a morphism (as in Section V-D1).