Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 7.18 — a Borel-measurable selector on the nonempty closed subsets of a compact metric space

Proved
BertsekasShreve.SemicontSelection.lemma7_18_borel_selector

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

hausdorff-metricmeasurable-selectionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1topology

Let YYY be a compact metric space with metric ddd, and let 2Y2^Y2Y be the collection of closed subsets of YYY, topologized by the Hausdorff metric, which on nonempty sets is

ρ(A,B)=max⁡{max⁡a∈Ad(a,B), max⁡b∈Bd(b,A)}.\rho(A,B)=\max\Bigl\{\max_{a\in A}d(a,B),\ \max_{b\in B}d(b,A)\Bigr\}.ρ(A,B)=max{a∈Amax​d(a,B), b∈Bmax​d(b,A)}.

Then there is a Borel-measurable function σ:2Y−{∅}→Y\sigma:2^Y-\{\emptyset\}\to Yσ:2Y−{∅}→Y such that

σ(A)∈Afor every nonempty closed A⊆Y.\sigma(A)\in A\qquad\text{for every nonempty closed }A\subseteq Y .σ(A)∈Afor every nonempty closed A⊆Y.

That is, one can choose a point of each nonempty closed set in a way that depends Borel-measurably on the set. Composed with the Borel-measurable set-valued map of Lemma 7.20, this selector produces the minimizing selector of Proposition 7.33.

Formalization Note In a compact space the nonempty closed sets are exactly the nonempty compact sets, so 2Y−{∅}2^Y-\{\emptyset\}2Y−{∅} is Mathlib's NonemptyCompacts Y with its Hausdorff extended metric (on nonempty sets this is the book's ρ\rhoρ, Appendix C, Definition C.1). It carries the Borel σ-algebra of that topology, and YYY its Borel σ-algebra. The book says "compact metrizable"; the statement is made for every compatible metric, and by Proposition C.1 the topology of 2Y2^Y2Y does not depend on the choice.

Preamble
import Mathlib
Formal statement
namespace BertsekasShreve.SemicontSelection

open TopologicalSpace

/-- Lemma 7.18 (Bertsekas & Shreve, p. 151). Let `Y` be a compact metric space. There is a
Borel-measurable `σ : 2^Y − {∅} → Y` with `σ(A) ∈ A` for every nonempty closed `A ⊆ Y`.
Here `2^Y − {∅}` is `NonemptyCompacts Y` (in a compact space the nonempty closed sets are the
nonempty compact sets) with the topology of the Hausdorff metric, and it carries its Borel
σ-algebra. -/
theorem lemma7_18_borel_selector {Y : Type*} [MetricSpace Y] [CompactSpace Y] :
    ∃ σ : NonemptyCompacts Y → Y,
      @Measurable _ _ (borel (NonemptyCompacts Y)) (borel Y) σ ∧ ∀ A : NonemptyCompacts Y, σ A ∈ A := by sorry

end BertsekasShreve.SemicontSelection
Source
Bertsekas & Shreve, Stochastic Optimal Control: The Discrete-Time Case, Athena Scientific 1996, p. 151, Lemma 7.18; Appendix C, p. 303, Definition C.1
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me