Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Scheduling threshold as a sum of bounded multiples of half-lengths

Proved
TwoAgentSched.TotalTotal.thresholdQ_even_sum

by kmehltretter82 · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

binary-encodingcomplexity-theorypartitiontwo-agent-scheduling

Let p0,…,pk−1p_0,\ldots,p_{k-1}p0​,…,pk−1​ be even natural processing times. The common real threshold used in the scheduling construction is the natural number

Q=∑i=0k−1(4(k−i−1)+3)pi2.Q=\sum_{i=0}^{k-1}\left(4(k-i-1)+3\right)\frac{p_i}{2}.Q=i=0∑k−1​(4(k−i−1)+3)2pi​​.

Every coefficient is at most 4k+34k+34k+3. This expression exposes a concrete way to accumulate the threshold by repeated binary addition of half-lengths. The theorem is an algebraic identity; it does not assert that the accumulator has been implemented or that its runtime has been proved.

Preamble
import Mathlib
import Definitions.Def_TwoAgentSched_TotalTotal_Construction
Formal statement
namespace TwoAgentSched.TotalTotal

theorem thresholdQ_even_sum {k : ℕ} (p : Fin k → ℕ) (he : ∀ i, Even (p i)) :
    thresholdQ p = ((∑ i : Fin k, (4 * (k - (i.val + 1)) + 3) * (p i / 2) : ℕ) : ℝ) := by sorry

end TwoAgentSched.TotalTotal
Source
Agnetis, Mirchandani, Pacciarelli and Pacifici, Scheduling Problems with Two Competing Agents, Operations Research 52(2), 2004, proof of Theorem 9.2, pp. 237–238, threshold T/2; the displayed even-length accumulator formula is an elementary rearrangement.

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