Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 7, lower bound — under uniform unit elementary tasks, mj≥j/nm_j\ge j/nmj​≥j/n

Proved
MetricalTaskSystem.Randomized.uniform_minDetExpCost_ge

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

competitive-analysisonline-algorithmsp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1probability

Let (S,d)(S,d)(S,d) be the uniform task system on nnn states and let DDD generate each successive task independently and uniformly from the unit elementary tasks UsU_sUs​ (UsU_sUs​ costs 111 in state sss and 000 elsewhere). Then for every initial state s0s_0s0​ and every j≥0j\ge 0j≥0,

mj=inf⁡AE(cA(Tj))≥jn,m_j=\inf_A E\big(c_A(\mathbf T^j)\big)\ge\frac jn ,mj​=Ainf​E(cA​(Tj))≥nj​,

the infimum being over all deterministic on-line algorithms AAA.

This is the numerator estimate in the application of Lemma 7.2 that proves wˉ(S,d)≥H(n)\bar w(S,d)\ge H(n)wˉ(S,d)≥H(n).

Formalization Note The task distribution is the product of uniform distributions on SSS, with sss identified with UsU_sUs​; the state set carries a measurable space with measurable singletons.

Preamble
import Mathlib
import Definitions.Def_MetricalTaskSystem_Randomized_Model
import Definitions.Def_MetricalTaskSystem_Randomized_TaskDistribution
Formal statement
namespace MetricalTaskSystem.Randomized

/-- **Section 7, proof of the lower bound, first claim** (Borodin–Linial–Saks 1992, p. 760).
On the uniform task system with `n = |S|` states, let the tasks be independent and uniformly
distributed unit elementary tasks `U_s`. Then for every initial state `s₀` and every `j`,
`m_j ≥ j / n`: every deterministic on-line algorithm has expected cost at least `j / n` on the
first `j` tasks. -/
theorem uniform_minDetExpCost_ge {S : Type} [Fintype S] [DecidableEq S] [Nonempty S]
    [MeasurableSpace S] [MeasurableSingletonClass S] (s₀ : S) (j : ℕ) :
    (j : ℝ) / Fintype.card S ≤
      minDetExpCost (uniformD (S := S)) s₀ (unitTask (S := S)) (uniformStateSeq S) j := by sorry

end MetricalTaskSystem.Randomized
Source
Borodin, Linial, Saks, An Optimal On-Line Algorithm for Metrical Task System, J. ACM 39(4) (1992), p. 760, Section 7, proof of Theorem 7.1 (lower bound), first claim
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. SSS is a finite, nonempty type with decidable equality and n=∣S∣n = |S|n=∣S∣. Its σ-algebra has measurable singletons, and so contains every subset. Fix an initial state s0∈Ss_0 \in Ss0​∈S and j∈Nj \in \mathbb{N}j∈N.

Let ω0,ω1,…\omega_0, \omega_1, \dotsω0​,ω1​,… be independent, each uniformly distributed on SSS. The iii-th task is the unit task Uωi−1U_{\omega_{i-1}}Uωi−1​​, which costs 111 in state ωi−1\omega_{i-1}ωi−1​ and 000 in every other state. Transitions cost dunif(i,j)=[ i≠j ]d_{\mathrm{unif}}(i,j) = [\,i \ne j\,]dunif​(i,j)=[i=j].

Conclusion.

jn  ≤  mj=inf⁡A  E[ ∑i=1j([σi−1≠σi]+[σi=ωi−1])].\frac{j}{n} \;\le\; m_j = \inf_{A} \; \mathbb{E}\Big[\,\sum_{i=1}^{j}\big([\sigma_{i-1}\ne\sigma_i] + [\sigma_i = \omega_{i-1}]\big)\Big].nj​≤mj​=Ainf​E[i=1∑j​([σi−1​=σi​]+[σi​=ωi−1​])].

Here the infimum ranges over all deterministic on-line algorithms AAA, meaning arbitrary maps from (initial state, list of tasks) to a state. The schedule is σ0=s0\sigma_0 = s_0σ0​=s0​ and σi=A(s0,(Uω0,…,Uωi−1))\sigma_i = A(s_0, (U_{\omega_0},\dots,U_{\omega_{i-1}}))σi​=A(s0​,(Uω0​​,…,Uωi−1​​)). The expectation is a Bochner integral, and mjm_jmj​ is a real infimum.

Integrability. Each integrand takes values in {0,…,2j}\{0,\dots,2j\}{0,…,2j} and depends on ω0,…,ωj−1\omega_0,\dots,\omega_{j-1}ω0​,…,ωj−1​ only. So the expectations are genuine, and mjm_jmj​ is a genuine infimum of nonnegative numbers. The claim is therefore that every such AAA has expected cost at least j/nj/nj/n on the first jjj tasks.

Degenerate cases.

  • j=0j = 0j=0: the claim reads 0≤00 \le 00≤0.
  • n=1n = 1n=1: every task costs 111 in the only state, the expected cost of every AAA is exactly jjj, and the claim is j≤jj \le jj≤j.
  • Choice of s0s_0s0​ and jjj: the statement holds for every s0s_0s0​ and every jjj; no hypothesis restricts them.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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