Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4, p. 14 — any local optimum of (9)–(12) is a weighted Voronoi diagram with weights ∂G(Ā)/∂A_k

Proved
SpatialDemandEq.Optimal.theorem_4

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

optimality-conditionsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1partitioningspatial-queueingvoronoi-diagram

Work in the setting of §4.1: S⊆Rn\mathcal S \subseteq \mathbb R^nS⊆Rn is closed and convex, ν\nuν is a probability measure on S\mathcal SS absolutely continuous with respect to Lebesgue measure, and g1,…,gKg_1,\dots,g_Kg1​,…,gK​ are continuous, ν\nuν-integrable and satisfy the regularity condition. Let G:RK→RG : \mathbb R^K \to \mathbb RG:RK→R, and consider the problem (9)–(12) of minimizing

G(A1,…,AK)+∑k∫Akgk dν,Ak=ν(Ak),G(A_1,\dots,A_K) + \sum_k \int_{\mathcal A_k} g_k\,d\nu, \qquad A_k = \nu(\mathcal A_k),G(A1​,…,AK​)+k∑​∫Ak​​gk​dν,Ak​=ν(Ak​),

over partitions (A1,…,AK)(\mathcal A_1, \dots, \mathcal A_K)(A1​,…,AK​) of S\mathcal SS.

Let Aˉ\bar{\mathcal A}Aˉ be a local optimum (for some ε>0\varepsilon > 0ε>0, no partition A′\mathcal A'A′ with ν(Ak′△Aˉk)<ε\nu(\mathcal A'_k \triangle \bar{\mathcal A}_k) < \varepsilonν(Ak′​△Aˉk​)<ε for all kkk is cheaper), with areas Aˉ\bar AAˉ, and suppose GGG is differentiable at Aˉ\bar AAˉ. Then for every kkk, for ν\nuν-almost every x∈Aˉkx \in \bar{\mathcal A}_kx∈Aˉk​,

gk(x)+∂G(Aˉ)∂Ak≤gj(x)+∂G(Aˉ)∂Ajfor all j≠k.g_k(x) + \frac{\partial G(\bar A)}{\partial A_k} \le g_j(x) + \frac{\partial G(\bar A)}{\partial A_j} \qquad \text{for all } j \ne k.gk​(x)+∂Ak​∂G(Aˉ)​≤gj​(x)+∂Aj​∂G(Aˉ)​for all j=k.

The theorem identifies the Voronoi weights of a locally optimal partition with the gradient of GGG; it is the tool from which Theorem 5 (the socially optimal partition with optimized service rates) is derived.

Formalization Note The paper assumes the gkg_kgk​ and GGG differentiable everywhere. Theorem 5 applies the result to gk=dkg_k = d_kgk​=dk​ (not differentiable at xkx_kxk​) and to G=cB−λ(∑kAk)2G = \frac{c}{B-\lambda}(\sum_k \sqrt{A_k})^2G=B−λc​(∑k​Ak​​)2 (not differentiable at a zero area), so the statement asks only for continuous, integrable gkg_kgk​ and differentiability of GGG at Aˉ\bar AAˉ — weaker hypotheses, hence a stronger statement. The conclusion holds ν\nuν-almost everywhere on Aˉk\bar{\mathcal A}_kAˉk​, since local optima are only determined up to null sets. ∂G(Aˉ)/∂Ak\partial G(\bar A)/\partial A_k∂G(Aˉ)/∂Ak​ is the Fréchet derivative of GGG at Aˉ\bar AAˉ applied to the kkk-th unit vector.

Preamble
import Mathlib
import Definitions.Def_SpatialDemandEq_Optimal_Model

open MeasureTheory
Formal statement
namespace SpatialDemandEq.Optimal

theorem theorem_4 {n K : ℕ} (S : Set (E n)) (ν : Measure (E n)) (g : Fin K → E n → ℝ)
    (G : (Fin K → ℝ) → ℝ) (hset : GeneralSetting S ν g) (A : Fin K → Set (E n))
    (hopt : IsLocalOptPartition ν S G g A) (hG : DifferentiableAt ℝ G (areas ν A)) :
    ∀ k, ∀ᵐ x ∂ν, x ∈ A k → ∀ j, j ≠ k →
      g k x + fderiv ℝ G (areas ν A) (Pi.single k (1 : ℝ)) ≤
        g j x + fderiv ℝ G (areas ν A) (Pi.single j (1 : ℝ)) := by sorry

end SpatialDemandEq.Optimal
Source
Carlsson, Peng & Ryzhov, Demand Equilibria in Spatial Service Systems, SSRN preprint 4794156 (version of 2024-04-14), p. 14, Theorem 4; problem (9)–(12), p. 14; setting of §4.1, p. 13
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

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