Lemma 6.2 — : the off-line cost at the transition times dominates
ProvedMetricalTaskSystem.Deterministic.astar_f_le_offlineLet be a task system with at least two states, , and a sequence of nonnegative tasks. Let be the time at which the algorithm enters its -th state (), and let
be the minimum cost of an off-line continuous-time schedule up to time subject to being in state at time . Then
for every such that the transition time occurs.
The functions are thus lower bounds on the off-line cost, which is the first step in comparing with the optimum.
import Mathlib import Definitions.Def_MetricalTaskSystem_Deterministic_Model import Definitions.Def_MetricalTaskSystem_Deterministic_ContinuousTime import Definitions.Def_MetricalTaskSystem_Deterministic_AstarD
namespace MetricalTaskSystem.Deterministic
/-- **Lemma 6.2** (Borodin–Linial–Saks 1992, p. 756). Let `t_k` be the time at which `A*_d`
enters `s_k` on the (nonnegative) task sequence `T¹ ⋯ Tᵐ` (`t₀ = 1`), and let
`h_k(x) = φ_{t_k}(x)` be the optimal off-line (continuous-time) cost up to time `t_k` subject
to being in state `x` at time `t_k`. Then `h_k(x) ≥ f_k(x)` for all states `x`. -/
theorem astar_f_le_offline {S : Type} [Fintype S] [DecidableEq S] [Nontrivial S]
(d : S → S → ℝ) (hd : IsTaskSystem d) (s₀ : S) (s : ℕ → S) (hs : IsAstarSeq d s₀ s)
(m : ℕ) (T : Fin m → S → ℝ) (hT : ∀ i x, 0 ≤ T i x)
(k : ℕ) (tk : ℝ) (htk : entryTime s (cSeq d s) T k = some tk) (x : S) :
fSeq d s k x ≤ offlineCostTo d s₀ T tk x := by sorry
end MetricalTaskSystem.Deterministic
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite set with at least two elements, and let be a task system:
- ;
- for ;
- .
Let satisfy the conditions from :
- ;
- ;
- minimizes over .
Here , , and for . The budgets are .
Tasks and processing cost. Let satisfy , where occupies time . Define
Entry times. Define . If is defined and some has , then
Otherwise and all later entry times are undefined.
Hypothesis on . , is defined, and its value is the real number .
Off-line cost function. is the infimum over lists of pieces such that:
- every ;
- ;
- the last state is , or and .
The quantity minimized is
with and .
Conclusion. For every state ,
Degenerate cases.
- The infimum is genuine. By construction . With and , the index set is nonempty (a single piece ) and the costs are bounded below by . So the real-infimum convention (value for an empty or unbounded set) is not triggered.
- . The claim is .
- Undefined . For with undefined, nothing is asserted.
- . Only qualifies.
- Budget . This would give when .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.