Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9, p. 24 — an optimal multi-cluster solution splits into an optimal (m − 1)-cluster solution and an optimal single-cluster solution

Proved
IncrKnapsack.PTAS.lemma_9

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

dynamic-programmingincremental-knapsackoptimal-substructurep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let an incremental knapsack instance satisfy the standing assumptions, let ϵ=1/K\epsilon = 1/Kϵ=1/K with K>4K > 4K>4 an integer, let ξ∈{0,…,K−1}\xi \in \{0,\dots,K-1\}ξ∈{0,…,K−1}, and work with the rounded profits of §2.2. Let S\mathcal SS be an optimal solution of the multi-cluster instance Imultiφm[m,ℓm]\mathcal I^{\varphi_m}_{\mathrm{multi}}[m, \ell_m]Imultiφm​​[m,ℓm​]: a feasible uncrossing-stars solution that introduces items only in good periods of C1,…,Cm\mathcal C_1, \dots, \mathcal C_mC1​,…,Cm​, uses only the classes P0,…,Pℓm\mathcal P_0, \dots, \mathcal P_{\ell_m}P0​,…,Pℓm​​, has profit at least φm\varphi_mφm​, and has weight w(S)=F(m,ℓm,φm)w(\mathcal S) = F(m, \ell_m, \varphi_m)w(S)=F(m,ℓm​,φm​). Decompose S\mathcal SS into two parts: S<m\mathcal S^{<m}S<m, the items introduced in C1,…,Cm−1\mathcal C_1, \dots, \mathcal C_{m-1}C1​,…,Cm−1​, and Sm\mathcal S^mSm, the items introduced in Cm\mathcal C_mCm​. Let φm−1=Ψ(S<m)\varphi_{m-1} = \Psi(\mathcal S^{<m})φm−1​=Ψ(S<m), and let ℓm−1\ell_{m-1}ℓm−1​ be the largest class index used by S<m\mathcal S^{<m}S<m (−1-1−1 if it is empty). Then

F(m−1,ℓm−1,φm−1)=w(S<m),OPT(Isingleφm−φm−1, w(S<m)[m,ℓm−1+1,ℓm])=w(Sm).F(m-1, \ell_{m-1}, \varphi_{m-1}) = w(\mathcal S^{<m}), \qquad \mathrm{OPT}\Big(\mathcal I^{\varphi_m - \varphi_{m-1},\, w(\mathcal S^{<m})}_{\mathrm{single}}[m, \ell_{m-1}+1, \ell_m]\Big) = w(\mathcal S^m).F(m−1,ℓm−1​,φm−1​)=w(S<m),OPT(Isingleφm​−φm−1​,w(S<m)​[m,ℓm−1​+1,ℓm​])=w(Sm).

That is, S<m\mathcal S^{<m}S<m is optimal for the (m−1)(m-1)(m−1)-cluster instance and Sm\mathcal S^mSm is optimal for the single-cluster instance. This optimal substructure yields the recursion for FFF (equation (6) and the display after it on p. 25).

Formalization Note. Lean indexes the clusters as m + 1 and m, and the class bounds are shifted: the hypothesis uses j + 1 for ℓm+1\ell_m + 1ℓm​+1, and classTop of S<m\mathcal S^{<m}S<m is ℓm−1+1\ell_{m-1}+1ℓm−1​+1. The single-cluster profit is the sum of item contributions with the full-horizon λt+\lambda^{t+}λt+. Page 23 instead writes ∑t∈Cmλtp(St)\sum_{t \in \mathcal C_m}\lambda_t p(S_t)∑t∈Cm​​λt​p(St​), under which the additivity Ψ(S)=Ψ(S<m)+Ψ(Sm)\Psi(\mathcal S) = \Psi(\mathcal S^{<m}) + \Psi(\mathcal S^m)Ψ(S)=Ψ(S<m)+Ψ(Sm) used in the proof fails.

Preamble
import Mathlib
import Definitions.Def_IncrKnapsack_PTAS_Model

open Classical
open Finset BigOperators
Formal statement
namespace IncrKnapsack.PTAS

theorem lemma_9 (I : Instance) (hI : I.Standing) (K : ℕ) (hK : 4 < K) (ξ : ℕ) (hξ : ξ < K)
    (m j : ℕ) (ϕ : ℝ) (S : Sol I) (hS : MultiFeas I K ξ (m + 1) (j + 1) ϕ S)
    (hSopt : ((weight I S : ℝ) : WithTop ℝ) = F I K ξ (m + 1) (j + 1) ϕ) :
    F I K ξ m (classTop I K (lowPart I K ξ S m)) (contrib I (pr I K) (lowPart I K ξ S m)) =
        ((weight I (lowPart I K ξ S m) : ℝ) : WithTop ℝ) ∧
      OPTsingle I K ξ (m + 1) (classTop I K (lowPart I K ξ S m)) j
          (ϕ - contrib I (pr I K) (lowPart I K ξ S m)) (weight I (lowPart I K ξ S m)) =
        ((weight I (highPart I K ξ S m) : ℝ) : WithTop ℝ) := by sorry
end IncrKnapsack.PTAS
Source
Aouad & Segev, An Approximate Dynamic Programming Approach to the Incremental Knapsack Problem, arXiv:2010.07633v1, pp. 23–24, §3.4, Lemma 9
Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

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