Proof of Theorem 4.1, p. 18 — the restart algorithm costs at most
ProvedOnlineRandomization.Restart.restart_cost_leLet be a request-answer game with finite nonempty answer set, let bound its diameter, and let be a real number with . Let , and let be a deterministic online algorithm that is -competitive on : for every . Then for every nonempty request sequence with restart segments and , the restart algorithm built from satisfies
The algorithm pays at most what pays on each segment, plus at most at each of the restarts. This is the upper bound on the algorithm's cost in the proof of Theorem 4.1.
Formalization Note Written as with cast to a real number, which equals the page's expression for ; hence the hypothesis (for , and the sum form would be false). "-competitive against any adaptive off-line adversary restricted to request sequences from " is, for a deterministic algorithm, the stated inequality on every . The hypothesis makes every segment lie in (see segments_greedy); in Theorem 4.1 it follows from and . is an arbitrary function here; no linearity is needed for this step.
import Mathlib import Definitions.Def_OnlineRandomization_Restart_Model import Definitions.Def_OnlineRandomization_Restart_GameProperties import Definitions.Def_OnlineRandomization_Restart_RestartAlgorithm
namespace OnlineRandomization.Restart
/-- p. 18: if `D` bounds the diameter, `f_0 ≤ H`, and `A_H` is `α`-competitive on `R_H`, then
on every nonempty `r` with segments `r(1), …, r(t)` the restart algorithm costs at most
`α(c(1)) + Σ_{i=2}^{t} (α(c(i)) + D)`. -/
theorem restart_cost_le {R A : Type*} [Fintype A] [Nonempty A] (F : Game R A) (D H : ℝ)
(hD : DiameterBound F D) (hf0 : F.cost [] [] ≤ H) (α : ℝ → ℝ) (AH : DetAlg R A)
(hAH : ∀ r : List R, InRH F H r → AH.costOn F r ≤ α (F.opt r))
(r : List R) (hr : r ≠ []) :
(restart F H AH).costOn F r ≤
((segments F H r).map (fun s => α (F.opt s))).sum
+ (((segments F H r).length : ℝ) - 1) * D := by sorry
end OnlineRandomization.Restart
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.