Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Claim 4.19, part 5 — merging two randomly allocated l-tasks can only increase the expected make-span

Proved
AlgMechDesign.Randomized.merge_l_tasks

by mikedeng1 · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

inequalityp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1randomized-mechanismscheduling

Two agents have finishing times T1,T2≥0T^1, T^2 \ge 0T1,T2≥0 under a fixed allocation YYY of all tasks but two, aaa and bbb. Agent iii needs tai≥0t^i_a \ge 0tai​≥0 for aaa and tbi≥0t^i_b \ge 0tbi​≥0 for bbb. Let tY,a,bt_{Y,a,b}tY,a,b​ be the expected make-span when aaa and bbb are each given to agent 1 or agent 2 independently with probability 1/21/21/2, and tY,ct_{Y,c}tY,c​ the expected make-span when they are replaced by one task ccc with tci=tai+tbit^i_c = t^i_a + t^i_btci​=tai​+tbi​ given to either agent with probability 1/21/21/2. Then tY,a,b≤tY,ct_{Y,a,b} \le t_{Y,c}tY,a,b​≤tY,c​, that is,

14(max⁡(T1+ta1+tb1, T2)+max⁡(T1+ta1, T2+tb2)+max⁡(T1+tb1, T2+ta2)+max⁡(T1, T2+ta2+tb2))≤12(max⁡(T1+ta1+tb1, T2)+max⁡(T1, T2+ta2+tb2)).\tfrac14\Big(\max(T^1 + t^1_a + t^1_b,\ T^2) + \max(T^1 + t^1_a,\ T^2 + t^2_b) + \max(T^1 + t^1_b,\ T^2 + t^2_a) + \max(T^1,\ T^2 + t^2_a + t^2_b)\Big) \le \tfrac12\Big(\max(T^1 + t^1_a + t^1_b,\ T^2) + \max(T^1,\ T^2 + t^2_a + t^2_b)\Big).41​(max(T1+ta1​+tb1​, T2)+max(T1+ta1​, T2+tb2​)+max(T1+tb1​, T2+ta2​)+max(T1, T2+ta2​+tb2​))≤21​(max(T1+ta1​+tb1​, T2)+max(T1, T2+ta2​+tb2​)).

This is the step of the reduction of Lemma 4.18 to the four-task case of Fig. 2 that merges two l-tasks allocated by an optimal allocation to the same agent.

Formalization Note The statement is the explicit four-term average; the paper's w.l.o.g. ordering tai≥tbit^i_a \ge t^i_btai​≥tbi​ is not assumed.

Preamble
import Mathlib
Formal statement
namespace AlgMechDesign.Randomized

/-- Claim 4.19, part 5 (p. 184): with the other tasks fixed by an allocation `Y` giving
finishing times `T¹, T²`, allocating two l-tasks `a, b` (times `aⁱ, bⁱ` for agent `i`)
independently and uniformly at random yields an expected make-span `t_{Y,a,b}` at most that
`t_{Y,c}` of the single merged task `c` with `tⁱ_c = aⁱ + bⁱ` allocated uniformly at random. -/
theorem merge_l_tasks (T₁ T₂ a₁ a₂ b₁ b₂ : ℝ) (hT₁ : 0 ≤ T₁) (hT₂ : 0 ≤ T₂)
    (ha₁ : 0 ≤ a₁) (ha₂ : 0 ≤ a₂) (hb₁ : 0 ≤ b₁) (hb₂ : 0 ≤ b₂) :
    (1 / 4 : ℝ) * (max (T₁ + a₁ + b₁) T₂ + max (T₁ + a₁) (T₂ + b₂) +
        max (T₁ + b₁) (T₂ + a₂) + max T₁ (T₂ + a₂ + b₂)) ≤
      (1 / 2 : ℝ) * (max (T₁ + a₁ + b₁) T₂ + max T₁ (T₂ + a₂ + b₂)) := by sorry

end AlgMechDesign.Randomized
Source
Nisan, Ronen, Algorithmic Mechanism Design, Games Econ. Behav. 35, 2001, p. 184, proof of Claim 4.19, part 5 (l-task case)
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me