Lemma 6.4 —
ProvedMetricalTaskSystem.Deterministic.astar_potential_eqcompetitive-analysismetrical-task-systemsonline-algorithmsp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1
Let be a task system with at least two states and let , and be the states, functions and budgets of the algorithm started at . Put
Then for every
The identity relates the potential to the on-line algorithm's cost, and is one of the three lemmas behind Theorem 6.1.
Formalization Note is written as to avoid natural-number subtraction; at both sides are .
Preamble
import Mathlib import Definitions.Def_MetricalTaskSystem_Deterministic_Model import Definitions.Def_MetricalTaskSystem_Deterministic_AstarD
Formal statement
namespace MetricalTaskSystem.Deterministic
/-- **Lemma 6.4** (Borodin–Linial–Saks 1992, p. 756). Let `F_k = 2 Σ_{x ≠ s_k} f_k(x) + f_k(s_k)`.
Then `F_k = C_{k−1} + Σ_{i=1}^k d(s_i, s_{i−1})`, where `C_{k−1} = Σ_{i=0}^{k−1} c_i`
(for `k = 0` both sides are `0`). -/
theorem astar_potential_eq {S : Type} [Fintype S] [DecidableEq S] [Nontrivial S]
(d : S → S → ℝ) (hd : IsTaskSystem d) (s₀ : S) (s : ℕ → S) (hs : IsAstarSeq d s₀ s)
(k : ℕ) :
2 * ∑ x ∈ Finset.univ.erase (s k), fSeq d s k x + fSeq d s k (s k) =
∑ i ∈ Finset.range k, cSeq d s i + ∑ i ∈ Finset.range k, d (s (i + 1)) (s i) := by sorry
end MetricalTaskSystem.Deterministic
Source
Borodin, Linial, Saks, An Optimal On-Line Algorithm for Metrical Task System, J. ACM 39(4) (1992), p. 756, Lemma 6.4 (C_k defined on p. 756)
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite set with at least two elements, and let be a task system:
- ;
- for ;
- .
Let and let be a sequence of states.
The functions . Define and
Hypothesis. The sequence starts at , and for every :
- ;
- minimizes over all .
Budgets. Let .
Conclusion. For every ,
Degenerate cases.
- . Both sides are .
- Excluded cases. One-element or empty is excluded.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.