Theorem 7.1 — for the uniform task system
ProvedMetricalTaskSystem.Randomized.uniform_randomizedRatio_boundsLet be the uniform task system on states: every transition between distinct states costs . Let and let be the randomized competitive ratio (against an oblivious adversary). Then
Randomization thus lowers the competitive ratio of the uniform task system from (the deterministic value) to , determined up to a factor of .
Formalization Note is the real infimum of the set of all for which some randomized on-line algorithm is expected -competitive. The lower half forces this set to be nonempty (otherwise the infimum would be ), so the conjunction is not vacuous. Tasks are finite and nonnegative; the paper also allows entries. At the statement reads .
import Mathlib import Definitions.Def_MetricalTaskSystem_Randomized_Model import Definitions.Def_MetricalTaskSystem_Randomized_RandomizedAlgorithm
namespace MetricalTaskSystem.Randomized
/-- **Theorem 7.1** (Borodin–Linial–Saks 1992, p. 759). If `(S, d)` is the uniform task system on
`n = |S|` states, then `H(n) ≤ w̄(S, d) ≤ 2H(n)`, where `H(n) = 1 + 1/2 + ⋯ + 1/n` and `w̄` is the
randomized competitive ratio. -/
theorem uniform_randomizedRatio_bounds {S : Type} [Fintype S] [DecidableEq S] [Nonempty S] :
(harmonic (Fintype.card S) : ℝ) ≤ randomizedRatio (uniformD (S := S)) ∧
randomizedRatio (uniformD (S := S)) ≤ 2 * (harmonic (Fintype.card S) : ℝ) := by sorry
end MetricalTaskSystem.Randomized
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any finite, nonempty type with decidable equality, and let be its number of elements. The type lives in the lowest universe (Type) and is otherwise arbitrary. The statement uses three named objects:
- is Mathlib's harmonic number, a rational number cast to a real:
- is
uniformDfor the type . It comes from the imported bundle (Def_MetricalTaskSystem_Randomized_Model/Def_MetricalTaskSystem_Randomized_RandomizedAlgorithm), and its code is not shown here. From its name and use, it is some distance-like structure on that plays the role of the "uniform" metric. Its exact form (for example, whether for and otherwise) cannot be confirmed from this declaration. - is
randomizedRatioapplied to . It also comes from the imported bundle, its definition is not shown here, and it is a real number. Whatever the definition does to express an unbounded or unattained ratio (an infimum, a supremum, or a default value) is not visible here. The theorem makes claims only about the real number that definition returns.
The theorem asserts that both of the following inequalities hold, with no further hypotheses:
Both are non-strict (). The only information about that appears is its cardinality , apart from anything or depend on internally. The theorem's doc-comment describes this as Theorem 7.1 of Borodin–Linial–Saks (1992), with as "the randomized competitive ratio" of the uniform task system. That comment is not part of the formal claim.
Degenerate cases:
- Empty : The nonemptiness assumption excludes it, so and never arise.
- One-element : Here and , so the statement asserts . It asserts this even though a one-state system has no moves between distinct states. The inequalities hold only if the unseen definition of
randomizedRatioreturns a value in in that case. - Default values: If
randomizedRatiois defined as an infimum or supremum of a set of reals, Lean returns for an empty set or a set unbounded in the relevant direction. In that situation, the theorem would assert , which is false for all . So whether the statement is true depends entirely on the imported definitions, which are not shown. - Division: No division, natural-number subtraction or integral appears in the statement itself. The only arithmetic is the finite harmonic sum and multiplication by .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.