Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2, p.8 — O(n2)O(n^2)O(n2) different β\betaβ-schedules

Proved
AndOrSched.lemma_2

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

and-or-precedenceapproximation-algorithmslinear-programmingmin-sum-set-coverp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1scheduling

Let the instance have integer processing times pj∈{0,1}p_j\in\{0,1\}pj​∈{0,1} and let xxx be a feasible solution of LP (1). Then the candidate set B(x)\mathcal B(x)B(x) of values of β\betaβ satisfies

  1. B(x)⊆(0,1]\mathcal B(x)\subseteq(0,1]B(x)⊆(0,1];
  2. T≤nT\le nT≤n and ∣B(x)∣≤n⋅T+1|\mathcal B(x)|\le n\cdot T+1∣B(x)∣≤n⋅T+1, so ∣B(x)∣=O(n2)|\mathcal B(x)|=O(n^2)∣B(x)∣=O(n2);
  3. for every β∈(0,1]\beta\in(0,1]β∈(0,1] some β^∈B(x)\hat\beta\in\mathcal B(x)β^​∈B(x) gives every job the same sort key as β\betaβ, hence the same compatible orders and the same β\betaβ-schedules.

Differences from the source:

  • encoding: O(n²) different β-schedules → an explicit candidate set of size ≤ n·T + 1 with T ≤ n, reaching every key vector of β ∈ (0, 1]; reason: the β-schedules depend on β only through the keys; the constant is made explicit
  • generalization: x̄ (an optimal solution) → x any feasible solution of LP (1); reason: the count uses only (1b) and (1f)
Preamble
import Mathlib
import Definitions.Def_AndOrSched_Instance
import Definitions.Def_AndOrSched_LP1Feasible
import Definitions.Def_AndOrSched_horizon
import Definitions.Def_AndOrSched_key
import Definitions.Def_AndOrSched_cand
open scoped Classical NNReal
Formal statement
namespace AndOrSched

/-- Lemma 2, p.8 (Happach, Schulz, arXiv:2001.07011v1): "For every x̄ there are O(n2) different β-schedules."

For an instance with integer processing times at most `1` and every feasible solution `x` of LP (1):
the candidate set lies in `(0, 1]` and has at most `n · T + 1` elements, `T ≤ n`, and every
`β ∈ (0, 1]` has a candidate with the same sort keys, hence the same `β`-schedules. -/
theorem lemma_2 (I : Instance) (hint : ∀ j, ∃ n : ℕ, I.p j = n) (hp : ∀ j, I.p j ≤ 1)
    (x : I.N → ℕ → ℝ) (hx : LP1Feasible I x) :
    (∀ β ∈ cand I x (horizon I), 0 < β ∧ β ≤ 1) ∧
    horizon I ≤ Fintype.card I.N ∧
    (cand I x (horizon I)).card ≤ Fintype.card I.N * horizon I + 1 ∧
    ∀ β : ℝ, 0 < β → β ≤ 1 → ∃ β' ∈ cand I x (horizon I), key I x β' = key I x β := by sorry

end AndOrSched
Source
F. Happach, A. S. Schulz, Approximation Algorithms and LP Relaxations for Scheduling Problems Related to Min-Sum Set Cover, arXiv:2001.07011v1, Lemma 2, p.8, "For every x̄ there are O(n2) different β-schedules."
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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