Lemma 3.1 — every on-line continuous-time algorithm is matched by an on-line discrete-time one
ProvedMetricalTaskSystem.Deterministic.ctsa_to_dtsaLet be a task system (triangle inequality, not necessarily symmetric). For every on-line continuous-time scheduling algorithm there is an on-line discrete-time scheduling algorithm that performs at least as well as on every task sequence:
This lemma allows the upper bounds of the paper to be proved for algorithms that move at non-integral times.
Formalization Note The printed statement says "at least as well as "; the intended comparison is with , as the proof shows. A CTSA is in list form (pieces of each unit interval with nonnegative lengths summing to ); see the ContinuousTime definition.
import Mathlib import Definitions.Def_MetricalTaskSystem_Deterministic_Model import Definitions.Def_MetricalTaskSystem_Deterministic_ContinuousTime
namespace MetricalTaskSystem.Deterministic
/-- **Lemma 3.1** (Borodin–Linial–Saks 1992, p. 752). For any on-line continuous-time
scheduling algorithm `A'` there is an on-line discrete-time scheduling algorithm `A` that
performs at least as well as `A'` on every (nonnegative) task sequence, from every initial
state. -/
theorem ctsa_to_dtsa {S : Type} [Fintype S] [DecidableEq S] [Nonempty S]
(d : S → S → ℝ) (hd : IsTaskSystem d) (A' : CTSA S) (hA' : IsCTSA A') :
∃ A : OnlineAlgorithm S, ∀ (s₀ : S) (m : ℕ) (T : Fin m → S → ℝ), (∀ i s, 0 ≤ T i s) →
onlineCost d A s₀ T ≤ ctsaCost d A' s₀ T := by sorry
end MetricalTaskSystem.Deterministic
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite, nonempty set, and let be a task system:
- ;
- for ;
- .
Let be a well-formed continuous-time on-line algorithm. That is, is any function mapping to a finite list of pieces , such that on every nonempty task list all lengths are and sum to . Its output on the empty list is unconstrained.
Cost of . For and tasks :
- The pieces for are .
- Concatenate these lists for , with states .
The cost is
Conclusion. There exists an on-line algorithm , meaning an arbitrary function mapping to a state, such that
for every , every , and every with all . Here:
- ;
- and .
The single algorithm is chosen after and , before , and . It need not be computable.
Degenerate cases.
- . Both sides are .
- . Both sides equal .
- Negative tasks. These are not covered.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.