Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 7.2, p. 349 — the measurable controls with δ(u₁, u₂) = meas{u₁ ≠ u₂} form a complete metric space

Proved
EkelandVP.Pontryagin.lemma_7_2

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

completenessmetric-spaceoptimal-controlp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let KKK be a compact metrizable space with its Borel σ-algebra, let T>0T > 0T>0, and let U\mathcal UU be the set of measurable controls u:[0,T]→Ku : [0, T] \to Ku:[0,T]→K with

δ(u1,u2)=meas⁡{t∈[0,T]∣u1(t)≠u2(t)}.\delta(u_1, u_2) = \operatorname{meas}\{t \in [0, T] \mid u_1(t) \neq u_2(t)\}.δ(u1​,u2​)=meas{t∈[0,T]∣u1​(t)=u2​(t)}.

Then (U,δ)(\mathcal U, \delta)(U,δ) is a complete metric space, in the following sense:

  1. (triangle inequality (7.10)) δ(u1,u2)≤δ(u1,u3)+δ(u3,u2)\delta(u_1, u_2) \le \delta(u_1, u_3) + \delta(u_3, u_2)δ(u1​,u2​)≤δ(u1​,u3​)+δ(u3​,u2​) for all measurable u1,u2,u3u_1, u_2, u_3u1​,u2​,u3​;
  2. δ(u1,u2)=0\delta(u_1, u_2) = 0δ(u1​,u2​)=0 if and only if u1=u2u_1 = u_2u1​=u2​ almost everywhere on [0,T][0, T][0,T];
  3. (completeness) every sequence (uk)(u_k)(uk​) of measurable controls that is Cauchy for δ\deltaδ converges for δ\deltaδ to some measurable control uˉ\bar uuˉ: δ(uk,uˉ)→0\delta(u_k, \bar u) \to 0δ(uk​,uˉ)→0.

Symmetry δ(u1,u2)=δ(u2,u1)\delta(u_1, u_2) = \delta(u_2, u_1)δ(u1​,u2​)=δ(u2​,u1​) and nonnegativity hold by definition.

Completeness of (U,δ)(\mathcal U, \delta)(U,δ) is what allows Ekeland's variational principle (Theorem 1.1) to be applied to the terminal cost as a function of the control.

Formalization Note Controls are functions R→K\mathbb R \to KR→K; only their values on [0,T][0, T][0,T] enter δ\deltaδ. Since δ\deltaδ vanishes exactly on controls that agree almost everywhere (item 2), U\mathcal UU is a metric space on almost-everywhere classes of controls, which is the usual reading of the lemma; this is why item 2 is stated in place of "δ(u1,u2)=0⇒u1=u2\delta(u_1, u_2) = 0 \Rightarrow u_1 = u_2δ(u1​,u2​)=0⇒u1​=u2​".

Preamble
import Mathlib
import Definitions.Def_EkelandVP_Pontryagin_ctrlDist
open MeasureTheory Filter Topology
Formal statement
namespace EkelandVP.Pontryagin

theorem lemma_7_2 {K : Type*} [TopologicalSpace K] [CompactSpace K]
    [TopologicalSpace.MetrizableSpace K] [MeasurableSpace K] [BorelSpace K]
    (T : ℝ) (hT : 0 < T) :
    (∀ u₁ u₂ u₃ : ℝ → K, Measurable u₁ → Measurable u₂ → Measurable u₃ →
      ctrlDist T u₁ u₂ ≤ ctrlDist T u₁ u₃ + ctrlDist T u₃ u₂) ∧
    (∀ u₁ u₂ : ℝ → K, Measurable u₁ → Measurable u₂ →
      (ctrlDist T u₁ u₂ = 0 ↔ u₁ =ᵐ[volume.restrict (Set.Icc 0 T)] u₂)) ∧
    (∀ us : ℕ → ℝ → K, (∀ k, Measurable (us k)) →
      (∀ η : ℝ, 0 < η → ∃ N : ℕ, ∀ j ≥ N, ∀ k ≥ N, ctrlDist T (us j) (us k) < η) →
      ∃ ubar : ℝ → K, Measurable ubar ∧
        Tendsto (fun k => ctrlDist T (us k) ubar) atTop (𝓝 0)) := by sorry

end EkelandVP.Pontryagin
Source
Ekeland, On the Variational Principle, J. Math. Anal. Appl. 47 (1974), p. 349, Lemma 7.2 (metric (7.7), triangle inequality (7.10))
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 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