Quasi-Borel Spaces

This repository contains a formalization of Quasi-Borel Spaces1 in Lean 42.

Usage

[[require]]
name = "quasi-borel-spaces"
git = "https://github.com/YellPika/quasi-borel-spaces"
rev = "main"

Differences from the Paper

We differ from the original paper1 in the following ways:

  • The definition of variable for Sigma types (e.g., (i : I) × P i or Σi : I, P i) is tweaked to more easily support types which are uninhabited.

  • A QuasiBorelSpace instance is defined for all types (i : I) × P i (the paper only allows countable I).

  • Probability measures from the paper are called PreProbabilityMeasures. We reserve the name ProbabilityMeasure for the monad defined in Section V-D1, i.e. probability measures quotiented by the relation

  • We prove the probability measure monad is strong by constructing the strength operation (as in the Isabelle formalization3), instead of by showing bind is a morphism (as in Section V-D1).

Footnotes

  1. A Convenient Category for Higher-Order Probability Theory 2 3 4

  2. https://lean-lang.org/

  3. Quasi_Borel_Spaces - Archive of Formal Proofs