Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Dual feasibility throughout PD(λ₁): Σ_{S: e ∈ δ(S)} y_S ≤ λ₁ c_e for every edge, and y ≥ 0 (p. 6)

Proved
BudgetedPCTSP.Rooted.dual_feasible

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

lp-dualityprimal-dual

Fix an instance (G,c,D,r)(G, c, D, r)(G,c,D,r) and λ1≥0\lambda_1 \ge 0λ1​≥0. At every moment of every run of the primal-dual subroutine PD(λ1\lambda_1λ1​), under any order of breaking ties (that is, in every state reachable from the start by events), the dual vector yyy satisfies the dual constraint of every edge,

∑S:e∈δ(S)yS≤λ1cefor all e∈E,\sum_{S : e \in \delta(S)} y_S \le \lambda_1 c_e \qquad \text{for all } e \in E,S:e∈δ(S)∑​yS​≤λ1​ce​for all e∈E,

and is nonnegative: yS≥0y_S \ge 0yS​≥0 for all S⊆VS \subseteq VS⊆V. Here e∈δ(S)e \in \delta(S)e∈δ(S) means that eee has exactly one endpoint in SSS.

Together with a suitable λ2\lambda_2λ2​ this makes (y,λ1,λ2)(y, \lambda_1, \lambda_2)(y,λ1​,λ2​) a feasible solution of the dual linear program of Section 2, which is the weak-duality ingredient of Theorem 1.

Formalization Note. The paper states that the edge constraints "remain satisfied throughout the subroutine" and concludes that (y,λ1)(y,\lambda_1)(y,λ1​) extends to a feasible dual solution, whose constraints include yS≥0y_S \ge 0yS​≥0. Both parts are stated, for every reachable state.

Preamble
import Mathlib
import Definitions.Def_BudgetedPCTSP_Rooted_Instance
import Definitions.Def_BudgetedPCTSP_Rooted_PDStep
Formal statement
namespace BudgetedPCTSP.Rooted

/-- Paul, Freund, Ferber, Shmoys & Williamson (Math. Oper. Res. 2020), p. 6: throughout the
primal-dual subroutine PD(λ₁), for any `λ₁ ≥ 0` and any order of breaking ties, the dual
constraint `∑_{S : e ∈ δ(S)} y_S ≤ λ₁ c_e` holds for every edge `e` of `G`, and `y_S ≥ 0` for
every `S ⊆ V`. -/
theorem dual_feasible {V : Type} [Fintype V] [DecidableEq V] (I : Instance V) (lam : ℝ)
    (hlam : 0 ≤ lam) (s : PDState V) (hs : IsReachable I lam s) :
    (∀ e ∈ I.G.edgeSet, edgeLoad s.y e ≤ lam * I.c e) ∧ (∀ S : Finset V, 0 ≤ s.y S) := by sorry

end BudgetedPCTSP.Rooted
Source
Paul, Freund, Ferber, Shmoys & Williamson, Budgeted Prize-Collecting Traveling Salesman and Minimum Spanning Tree Problems, Math. Oper. Res. 2020 (DOI 10.1287/moor.2019.1002), author manuscript p. 6, Section 3 (unnumbered claim: dual feasibility throughout the subroutine); dual LP p. 4
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let VVV be a finite type with decidable equality. Let III be an instance on VVV, which consists of:

  • a simple graph GGG on VVV;
  • a function ccc that gives a real number to every unordered pair, with c(e)≥0c(e) \ge 0c(e)≥0 for edges eee of GGG;
  • a budget D≥0D \ge 0D≥0 and a root r∈Vr \in Vr∈V.

DDD and rrr are not used. Let λ\lambdaλ be a real number with λ≥0\lambda \ge 0λ≥0.

States. A state consists of five data, with no relation imposed among them:

  • finite families C\mathcal CC and A\mathcal AA of subsets of VVV;
  • a function yyy giving a real number ySy_SyS​ to every S⊆VS \subseteq VS⊆V;
  • a finite set TTT of unordered pairs;
  • a finite family S\mathcal SS of subsets of VVV.

The initial state has C=A=S={{i}:i∈V}\mathcal C = \mathcal A = \mathcal S = \{\{i\}: i \in V\}C=A=S={{i}:i∈V}, y≡0y \equiv 0y≡0 and T=∅T = \emptysetT=∅.

Quantities of a state.

  • The load on a pair eee is
Ly(e)=∑S⊆V: e has exactly one endpoint in SyS.L_y(e) = \sum_{S \subseteq V:\ e\text{ has exactly one endpoint in }S} y_S .Ly​(e)=S⊆V: e has exactly one endpoint in S∑​yS​.
  • The neutral time of SSS is
12∣S∣−∑T⊆SyT,\tfrac12|S| - \sum_{T\subseteq S} y_T ,21​∣S∣−T⊆S∑​yT​,

where the sum runs over all subsets of SSS, including ∅\emptyset∅ and SSS.

  • (S1,S2,u,v)(S_1,S_2,u,v)(S1​,S2​,u,v) is a candidate when:
    • uuu and vvv are adjacent in GGG;
    • S1,S2∈CS_1, S_2 \in \mathcal CS1​,S2​∈C;
    • u∈S1u \in S_1u∈S1​ and v∈S2v \in S_2v∈S2​;
    • S1≠S2S_1 \ne S_2S1​=S2​;
    • at least one of S1,S2S_1, S_2S1​,S2​ is in A\mathcal AA.
  • The edge time of a candidate is
λc({u,v})−Ly({u,v})k,\frac{\lambda c(\{u,v\}) - L_y(\{u,v\})}{k},kλc({u,v})−Ly​({u,v})​,

where k∈{1,2}k \in \{1,2\}k∈{1,2} is the number of S1,S2S_1, S_2S1​,S2​ in A\mathcal AA.

A step. Let Δ\DeltaΔ be a real number that is at most all neutral times of sets in A\mathcal AA and at most all candidates' edge times. No sign is required of Δ\DeltaΔ. The step is either:

  • neutral: some S∈AS \in \mathcal AS∈A has neutral time Δ\DeltaΔ. Then SSS leaves A\mathcal AA, and every ySy_SyS​ with S∈AS \in \mathcal AS∈A is increased by Δ\DeltaΔ.
  • edge: some candidate has edge time Δ\DeltaΔ. Then:
    • yyy is raised by Δ\DeltaΔ on A\mathcal AA;
    • S1S_1S1​ and S2S_2S2​ are replaced by S1∪S2S_1 \cup S_2S1​∪S2​ in C\mathcal CC and in A\mathcal AA;
    • {u,v}\{u,v\}{u,v} joins TTT;
    • S1∪S2S_1 \cup S_2S1​∪S2​ joins S\mathcal SS.

Hypothesis. sss is reachable: it is obtained from the initial state by finitely many steps. Zero steps are allowed, and A\mathcal AA need not be empty.

Conclusion. Let yyy be the dual function of sss. Both of the following hold:

  1. For every edge eee of GGG,
Ly(e)≤λ c(e).L_y(e) \le \lambda\, c(e).Ly​(e)≤λc(e).
  1. For every subset S⊆VS \subseteq VS⊆V, including ∅\emptyset∅ and VVV,
yS≥0.y_S \ge 0 .yS​≥0.

Degenerate cases.

  • An instance needs a root, so V≠∅V \neq \emptysetV=∅.
  • For the initial state (y≡0y \equiv 0y≡0), the claim reads 0≤λc(e)0 \le \lambda c(e)0≤λc(e) and 0≤00 \le 00≤0.
  • If GGG has no edges, including when ∣V∣=1|V| = 1∣V∣=1, part 1 is vacuous and only y≥0y \ge 0y≥0 is asserted.
  • The values of ccc on non-edges do not appear in the claim.
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