§4.1, p. 560 — with the expected wait cost is within of
ProvedNonuniformCompetitive.SpinBlock.blockCDF_ratiocompetitive-analysisp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1spin-block
Let and let
The optimal off-line cost of a single lock released at time is for and for , that is . Then for every ,
Combined with the expected-cost identity, this is the paper's statement that the randomized algorithm with blocking distribution "is competitive within factor " on every single lock wait.
Formalization Note The integral is the real interval integral; its integrand is continuous on , so it is a genuine integral. The inequality holds in fact with equality for every ; the statement keeps the paper's "within factor" form.
Preamble
import Mathlib import Definitions.Def_NonuniformCompetitive_SpinBlock_blockCDF
Formal statement
namespace NonuniformCompetitive.SpinBlock
/-- §4.1, p. 560: substituting the paper's `π` into `E C_A(σ_τ) = π(τ) · C + ∫₀^τ (1 − π(t)) dt`
gives at most `e/(e − 1)` times the off-line cost `C_opt(σ_τ) = min(τ, C)`, for every release
time `τ ≥ 0`. -/
theorem blockCDF_ratio (C : ℝ) (hC : 0 < C) (τ : ℝ) (hτ : 0 ≤ τ) :
blockCDF C τ * C + ∫ t in (0 : ℝ)..τ, (1 - blockCDF C t) ≤
Real.exp 1 / (Real.exp 1 - 1) * min τ C := by sorry
end NonuniformCompetitive.SpinBlock
Source
Karlin, Manasse, McGeoch, Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994), p. 560, §4.1, proof of Theorem 10, display for C_opt(σ_τ) and the sentence following it
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.