Theorem 1.1 — every -state metrical task system has competitive ratio
ProvedMetricalTaskSystem.Deterministic.competitiveRatio_eqLet be a metrical task system with states: , for , and satisfies the triangle inequality. Then its competitive ratio, the infimum over all deterministic on-line algorithms of the infimum of all for which is -competitive, equals
In particular the optimal competitive ratio depends only on the number of states, not on the distances.
Formalization Note Tasks are finite and nonnegative (the paper also allows entries; these are excluded, which affects neither bound). The competitive ratio is the real infimum of all for which some on-line algorithm is -competitive; since the right-hand side is at least , the statement also asserts that some algorithm is competitive. At the statement is the true claim .
import Mathlib import Definitions.Def_MetricalTaskSystem_Deterministic_Model
namespace MetricalTaskSystem.Deterministic
/-- **Theorem 1.1** (Borodin–Linial–Saks 1992, p. 747). For any metrical task system `(S, d)`
with `n` states, the competitive ratio is `w(S, d) = 2n − 1`. -/
theorem competitiveRatio_eq {S : Type} [Fintype S] [DecidableEq S] [Nonempty S]
(d : S → S → ℝ) (hd : IsMetrical d) :
competitiveRatio d = 2 * (Fintype.card S : ℝ) - 1 := by sorry
end MetricalTaskSystem.Deterministic
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement concerns an arbitrary finite, nonempty type with decidable equality, which we think of as a set of states. It also takes a real-valued function of two states
and a hypothesis . That hypothesis is a predicate from the imported bundle (Definitions.Def_MetricalTaskSystem_Deterministic_Model), whose source was not provided to this auditor. Its exact content is therefore unknown here. In particular, it cannot be confirmed whether it requires any of the following:
- nonnegativity,
- ,
- for ,
- symmetry,
- the triangle inequality,
or something weaker or different.
Under these assumptions the statement asserts the equality of real numbers
where is the number of elements of , cast to a real number. Here is a real-valued quantity defined in the same imported bundle, whose definition was also not provided. The auditor therefore cannot say:
- over what class of algorithms or task sequences it ranges;
- whether it is an infimum, a supremum, or a minimum;
- whether it restricts to deterministic online algorithms;
- how it handles additive constants in the competitiveness inequality;
- what default value it takes if the underlying set is empty or unbounded.
The only facts about it visible from the statement are these. It depends only on (and implicitly on the type ). It returns a real number, not an extended real, so an unbounded or empty optimisation set would have to be mapped to some finite junk value by its definition.
The right-hand side is computed in , so no natural-number truncation occurs.
Degenerate cases:
- Empty . This is excluded by the nonemptiness assumption.
- One-element . The claim reads .
- Satisfiability of the hypothesis. Whether can be satisfied, possibly vacuously or only by degenerate such as the zero function, depends on its unseen definition.
- Uniformity in . Because the right-hand side does not involve at all, the statement claims the same value for every satisfying on a given . This includes if that function satisfies the predicate.
- Junk values. If is defined as an infimum or supremum of a real set, Lean's convention returns for an empty or unbounded set. In that case the statement would assert in any such case. That is impossible for , so the theorem would implicitly assert that no such degenerate case arises under .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.