Theorem 4.1, p. 17 — restarting an algorithm on , , is a -competitive deterministic algorithm
ProvedOnlineRandomization.Restart.theorem_4_1Let be a request-answer game with a finite nonempty request set and a finite nonempty answer set . Assume that
- is monotone and local;
- (the empty play has nonnegative cost);
- is a bound on the diameter of (so has finite diameter ).
Let with , let , and put
Then:
- the set is finite;
- the restart algorithm built from any depends only on the values of on ;
- for every deterministic online algorithm that is -competitive on , i.e. for all , the restart algorithm built from is -competitive:
This is the constructive content of Theorem 4.1. Theorem 2.1 of the paper shows that an -competitive randomized algorithm against adaptive off-line adversaries yields a deterministic -competitive algorithm, but not how to compute it. Theorem 4.1 replaces it by a finite object: an algorithm that only has to be good on the finite set , extended to all request sequences by restarting, at the price of a factor .
Formalization Note The paper's hypothesis "there exists a randomized online algorithm that is -competitive against every offline adaptive adversary" serves only to produce, via Theorem 2.1, an algorithm that is -competitive on ; the statement here quantifies over every such instead, so it does not need that hypothesis. "Computable" has no precise meaning for real-valued costs (the paper says so of Corollary 3.1); its content is represented by parts 1 and 2: the restart algorithm is determined by a finite table. For a deterministic algorithm, competitiveness against every adaptive off-line adversary is competitiveness on every request sequence, which is how part 3 is stated. Pins: costs are real (the paper allows ); finite diameter is a real bound and the theorem holds for each, in particular ; is added (it makes all costs nonnegative, which the proof uses for the last segment, and holds in the paper's examples); with rather than a general linear function, since with the final inequality needs ; is ; is nonempty.
Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.
import Mathlib import Definitions.Def_OnlineRandomization_Restart_Model import Definitions.Def_OnlineRandomization_Restart_GameProperties import Definitions.Def_OnlineRandomization_Restart_RestartAlgorithm
namespace OnlineRandomization.Restart
/-- Theorem 4.1 (p. 17), through its construction (p. 18). Let `F` be a monotone, local game
with finite request set `R`, finite answer set `A`, `f_0 ≥ 0`, and diameter at most `D`.
Let `α(x) = d·x` with `d ≥ 1`, let `ε > 0` and `H = (2 + ε) D / ε`. Then
1. `R_H` is finite;
2. the restart algorithm consults `A_H` only on `R_H`;
3. for every `A_H` that is `α`-competitive on `R_H`, the restart algorithm built from `A_H`
is `(1 + ε)α`-competitive. -/
theorem theorem_4_1 {R A : Type*} [Fintype R] [Nonempty R] [Fintype A] [Nonempty A]
(F : Game R A) (hmono : IsMonotone F) (hloc : IsLocal F) (hf0 : 0 ≤ F.cost [] [])
(D : ℝ) (hD : DiameterBound F D) (d : ℝ) (hd : 1 ≤ d) (ε : ℝ) (hε : 0 < ε) :
{r : List R | InRH F ((2 + ε) * D / ε) r}.Finite ∧
(∀ AH AH' : DetAlg R A, (∀ r : List R, InRH F ((2 + ε) * D / ε) r → AH r = AH' r) →
restart F ((2 + ε) * D / ε) AH = restart F ((2 + ε) * D / ε) AH') ∧
(∀ AH : DetAlg R A,
(∀ r : List R, InRH F ((2 + ε) * D / ε) r → AH.costOn F r ≤ d * F.opt r) →
IsCompetitive F (fun x => (1 + ε) * (d * x)) (restart F ((2 + ε) * D / ε) AH)) := by sorry
end OnlineRandomization.Restart
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.