Theorem (Measurable selection from a closed set with compact sections).
let X be a topological space whose open sets are measurable, Y a finite-dimensional Hausdorff real topological vector space with its Borel \sigma-algebra, and S \subseteq X \times Y closed with every section S_x = \{y \mid (x, y) \in S\} nonempty and the sections lying locally uniformly inside compact sets (each x has a neighbourhood U and a compact K with S_{x'} \subseteq K for x' \in U). Then there is a Borel measurable f : X \to Y with (x, f(x)) \in S for every x (the lexicographically least point of each section, in the coordinates of a basis, measurable by IsClosed.measurable_of_forall_toLex_equivFun_le). Upstream candidate. [KuratowskiRyllNardzewski1965]; [Kechris1995, Theorem 12.13]; there for weakly measurable closed-valued correspondences into a Polish space, here a closed set with locally compact sections in a finite-dimensional space.
Lean statement and details
IsClosed.exists_measurable_forall_prodMk_mem.{u_1, u_2} {X : Type u_1} {Y : Type u_2}
[TopologicalSpace X] [MeasurableSpace X] [OpensMeasurableSpace X] [AddCommGroup Y]
[_root_.Module ℝ Y] [TopologicalSpace Y] [IsTopologicalAddGroup Y] [ContinuousSMul ℝ Y]
[T2Space Y] {S : Set (X × Y)} [FiniteDimensional ℝ Y] [MeasurableSpace Y] [BorelSpace Y]
(hS : IsClosed S) (hne : ∀ (x : X), ∃ y, (x, y) ∈ S)
(hK : ∀ (x : X), ∃ U ∈ 𝓝 x, ∃ K, IsCompact K ∧ ∀ x' ∈ U, ∀ (y : Y), (x', y) ∈ S → y ∈ K) :
∃ f, Measurable f ∧ ∀ (x : X), (x, f x) ∈ S