Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3, remark on LF — in an optimal LF solution, yr=(∑k∈Rrqkr)/Q1y_r = (\sum_{k\in R_r} q_{kr})/Q_1yr​=(∑k∈Rr​​qkr​)/Q1​ (when every gr>0g_r > 0gr​>0)

Proved
TwoEchelonCVRP.LPCompare.lf_optimal_y

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

linear-programmingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1two-echelonvehicle-routing

Consider a 2E-CVRP instance with first-level routes M\mathcal MM and second-level routes R\mathcal RR, and suppose every first-level route has positive cost, gr>0g_r > 0gr​>0 for all r∈Mr \in \mathcal Mr∈M. Then every optimal solution (x,y,q)(x, y, q)(x,y,q) of the LP relaxation LFLFLF satisfies

yr=∑k∈RrqkrQ1for every r∈M.y_r = \frac{\sum_{k \in R_r} q_{kr}}{Q_1} \qquad \text{for every } r \in \mathcal M.yr​=Q1​∑k∈Rr​​qkr​​for every r∈M.

In words, the LP relaxation charges each first-level route only the fraction of its cost proportional to the load it carries. This is why z(LF)z(LF)z(LF) deteriorates as the first-level routing cost grows, which motivates the stronger relaxation RFRFRF.

Formalization Note. The paper states the identity for "any optimal LFLFLF solution" without a hypothesis on grg_rgr​. If some gr=0g_r = 0gr​=0, the value of yry_ryr​ can be raised at no cost and the identity fails for some optimal solutions, so the hypothesis gr>0g_r > 0gr​>0 for all rrr is added. It holds whenever the travel costs or the first-level fixed cost U1U_1U1​ are positive.

Preamble
import Mathlib
import Definitions.Def_TwoEchelonCVRP_LPCompare_Relaxations
Formal statement
namespace TwoEchelonCVRP.LPCompare

open Finset

/-- **§3, the remark on `LF` (Baldacci et al. 2013, p. 301).** If every first-level route has
positive cost `g_r > 0`, then in every optimal solution of the LP relaxation `LF`,
`y_r = (∑_{k ∈ R_r} q_{kr}) / Q₁` for every first-level route `r`. The hypothesis `g_r > 0` is
added: with `g_r = 0` the value of `y_r` can be raised at no cost. -/
theorem lf_optimal_y {I : Instance} (RS : RouteSystem I) (hg : ∀ r, 0 < RS.g r)
    (p : LFPoint RS) (hp : IsOptimalLF p) :
    ∀ r, p.y r = (∑ k ∈ RS.R1 r, p.qd r k) / (I.Q1 : ℝ) := by sorry

end TwoEchelonCVRP.LPCompare
Source
Baldacci, Mingozzi, Roberti & Wolfler Calvo, An Exact Algorithm for the Two-Echelon Capacitated Vehicle Routing Problem, Oper. Res. 61(2) (2013), p. 301, §3, the remark on LF
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

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