Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Recursive equations, §3.4, p. 25 — F(m, ℓ_m, ϕ_m) is the attained minimum of F(m − 1, ℓ_{m−1}, ϕ_{m−1}) + OPT(I_single)

Proved
IncrKnapsack.PTAS.recursion_F

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

bellman-recursiondynamic-programmingincremental-knapsackp2o-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. For every cluster index m≥1m \ge 1m≥1, class index ℓm≥0\ell_m \ge 0ℓm​≥0 and profit φm\varphi_mφm​, the exact value function satisfies the recursion

F(m,ℓm,φm)=min⁡ℓm−1∈{−1,0,…,ℓm}φm−1∈[0,φm]{F(m−1,ℓm−1,φm−1)+OPT(Isingleϕ,ω[m,ℓm−1+1,ℓm])},F(m, \ell_m, \varphi_m) = \min_{\substack{\ell_{m-1} \in \{-1, 0, \dots, \ell_m\}\\ \varphi_{m-1} \in [0, \varphi_m]}} \Big\{ F(m-1, \ell_{m-1}, \varphi_{m-1}) + \mathrm{OPT}\big(\mathcal I^{\phi,\omega}_{\mathrm{single}}[m, \ell_{m-1}+1, \ell_m]\big) \Big\},F(m,ℓm​,φm​)=ℓm−1​∈{−1,0,…,ℓm​}φm−1​∈[0,φm​]​min​{F(m−1,ℓm−1​,φm−1​)+OPT(Isingleϕ,ω​[m,ℓm−1​+1,ℓm​])},

where ϕ=φm−φm−1\phi = \varphi_m - \varphi_{m-1}ϕ=φm​−φm−1​ and ω=F(m−1,ℓm−1,φm−1)\omega = F(m-1, \ell_{m-1}, \varphi_{m-1})ω=F(m−1,ℓm−1​,φm−1​). Precisely:

  1. for every admissible pair (ℓm−1,φm−1)(\ell_{m-1}, \varphi_{m-1})(ℓm−1​,φm−1​) the bracket is at least F(m,ℓm,φm)F(m, \ell_m, \varphi_m)F(m,ℓm​,φm​);
  2. if φm≥0\varphi_m \ge 0φm​≥0 and F(m,ℓm,φm)<∞F(m, \ell_m, \varphi_m) < \inftyF(m,ℓm​,φm​)<∞, some admissible pair attains equality.

The recursion turns the characterization of optimal uncrossing-stars solutions into a dynamic program over clusters. The approximate program F~\tilde FF~ of §3.5 mimics it.

Formalization Note. The minimum is stated as a lower bound plus attainment, never as an infimum. The predecessor class index ranges over {−1,…,ℓm}\{-1, \dots, \ell_m\}{−1,…,ℓm​}; page 25 prints [ℓm]0[\ell_m]_0[ℓm​]0​, but −1-1−1 is needed, since it is the paper's own convention ℓ~0=−1\tilde\ell_0 = -1ℓ~0​=−1 and without it cluster 1 could never use P0\mathcal P_0P0​. When F(m−1,⋅,⋅)=∞F(m-1,\cdot,\cdot) = \inftyF(m−1,⋅,⋅)=∞, the real value passed as ω\omegaω is immaterial because the bracket is already ∞\infty∞. Clusters and classes are shifted in Lean (m + 1, j + 1).

Preamble
import Mathlib
import Definitions.Def_IncrKnapsack_PTAS_Model

open Classical
open Finset BigOperators
Formal statement
namespace IncrKnapsack.PTAS

theorem recursion_F (I : Instance) (hI : I.Standing) (K : ℕ) (hK : 4 < K) (ξ : ℕ) (hξ : ξ < K)
    (m j : ℕ) (ϕ : ℝ) :
    (∀ j' : ℕ, j' ≤ j + 1 → ∀ ϕ' : ℝ, 0 ≤ ϕ' → ϕ' ≤ ϕ →
        F I K ξ (m + 1) (j + 1) ϕ ≤
          F I K ξ m j' ϕ' +
            OPTsingle I K ξ (m + 1) j' j (ϕ - ϕ') ((F I K ξ m j' ϕ').untopD 0)) ∧
      (0 ≤ ϕ → F I K ξ (m + 1) (j + 1) ϕ < ⊤ →
        ∃ j' : ℕ, j' ≤ j + 1 ∧ ∃ ϕ' : ℝ, 0 ≤ ϕ' ∧ ϕ' ≤ ϕ ∧
          F I K ξ (m + 1) (j + 1) ϕ =
            F I K ξ m j' ϕ' +
              OPTsingle I K ξ (m + 1) j' j (ϕ - ϕ') ((F I K ξ m j' ϕ').untopD 0)) := by sorry
end IncrKnapsack.PTAS
Source
Aouad & Segev, An Approximate Dynamic Programming Approach to the Incremental Knapsack Problem, arXiv:2010.07633v1, p. 25, §3.4, equation (6) and 'Recursive equations'
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