Documentation

LeanPool.BicausalOT.SolutionPolish

Solution file: the space of probability measures on a Polish space is Polish #

This module supplies a declaration whose type is exactly the type stated in ChallengePolish, together with its proof.

The proof itself lives in BicausalOT/DescriptiveSetTheory/ProbabilityMeasurePolish.lean, which imports Mathlib modules only (LevyProkhorovMetric, Tight, Prokhorov, PiSystem, GiryMonad) and nothing else from this repository. Mathlib already supplies the Lévy–Prokhorov metric, its identification with the topology of weak convergence on a separable space, and Prokhorov's theorem; what it does not supply, at the pinned revision, is completeness or separability of that metric. Both are proved there, and the Polish structure is then transported:

import Mathlib is present here so that this module elaborates the statement in the same environment as ChallengePolish, which imports Mathlib and nothing else. The repository import below declares no name that Mathlib also declares, so it cannot change how the statement elaborates; the Mathlib import only guarantees that it cannot.

The declaration below restates the resulting instance as a theorem inside the ProbabilityMeasurePolish namespace, so that its name matches the ChallengePolish declaration named in comparator-polish.json. Restating an instance as a theorem loses nothing here: PolishSpace is a Prop-valued class, so the instance is a proof of a proposition and the theorem is a proof of the same proposition. The root ProbabilityMeasure.instPolishSpace it delegates to is the audited declaration of the library, and is one of the declarations covered by the repository's #print axioms audit (AxiomAudit.lean and BicausalOT/AxiomsAudit.lean), which reports only [propext, Classical.choice, Quot.sound].

The space of probability measures on a Polish space is Polish (Parthasarathy, Probability Measures on Metric Spaces, Chapter II §6, "The Weak Topology in the Space of Measures").

Let X be a Polish space carrying its Borel σ-algebra. Then ProbabilityMeasure X, the space of Borel probability measures on X with the topology of weak convergence, is again Polish: the topology is second countable and admits a complete compatible metric.