§2, pp. 12–13 — the uniform algorithm is -competitive against any adaptive on-line adversary in the mates game
ProvedOnlineRandomization.Tightness.online_competitiveLet be an integer and let be reals with ,
In the mates game with parameters , the randomized algorithm that draws its first answer uniformly from the answers is -competitive against any adaptive on-line adversary :
The adversary's first answer is fixed before is drawn, so and each have probability . The adversary's best reply is when and otherwise; then it pays in expectation and pays , a ratio of exactly . This is the second half of the first bullet of the tightness claim.
Formalization Note. Competitiveness is with the ratio function , applied inside the expectation as on p. 9. The hypothesis is not on the page; it is what the "simple case analysis" needs when (otherwise the reply beats and, for , is not -competitive). The page's condition does not imply it. The hypothesis makes the page's "positive" explicit at the strength the case analysis uses (it gives ); without the hypotheses admit negative and (e.g. , , , ), for which the statement is false. The page prints the adversary's expected cost as ; the ratio it then states uses , which is the correct value. The game uses the disclosed pin , .
import Mathlib import Definitions.Def_OnlineRandomization_Tightness_Model import Definitions.Def_OnlineRandomization_Tightness_MatesGame
namespace OnlineRandomization.Tightness
/-- Manuscript pp. 12–13: if `1 ≤ m ≤ M`, `α = (1 + (2t − 1)M)/(2 + (2t − 2)m)` and
`α(m − 1) ≤ M − m`, the uniform algorithm `G` is `α`-competitive (ratio `x ↦ α·x`) against
any adaptive on-line adversary in the mates game. -/
theorem online_competitive (t : ℕ) [NeZero t] (m M α : ℝ) (hm : 1 ≤ m) (hmM : m ≤ M)
(hα : α = (1 + (2 * (t : ℝ) - 1) * M) / (2 + (2 * (t : ℝ) - 2) * m))
(hgap : α * (m - 1) ≤ M - m) :
IsCompetitiveOnline (matesGame t m M) (fun x => α * x) (unifAlg t) := by sorry
end OnlineRandomization.Tightness
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.