Theorem 1 — the online algorithm for GND with (D)oS costs is -competitive
ProvedOnlineGND.theorem_1Let be a finite set of resources, each with a (D)oS cost
let , and . Let requests arrive online, request with reply collection and weights , and let be a -approximate min-cost oracle (). The online algorithm of §5 runs the algorithm of Theorem 6 with on the power-cost instance (two copies of each resource, , ), with the oracle of obtained from . Then:
- the algorithm chooses a reply in for every request ;
- its final loads satisfy, for every solution with loads ,
Here is Euler's number. Since and , the ratio is , the competitive ratio of Theorem 1. The algorithm is deterministic and online, and it makes one oracle call per request.
Formalization Note and are computed as and . The resources of are ; since both copies of carry the load of , the run on is computed on directly.
Differences from the source:
- reading: "there is a polynomial time -competitive deterministic online algorithm" → the paper's own algorithm (§5) with the constant of (27); reason: the explicit constant implies the bound, so this is the stronger reading
- generalization: the bound on the cost → the same bound plus clause 1, that every reply lies in ; reason: an extra conclusion; dropping it gives the printed theorem
- encoding: polynomial time, deterministic, online → an online recursion that computes reply from requests with one oracle call and closed-form cost evaluations; reason: the running time is relative to the oracle (p.3) and the costs are real powers, which have no bit encoding
- encoding: competitive against OPT → against the cost of every solution; reason: OPT is the minimum over solutions
- encoding: → ; reason: is undefined at
- encoding: a -approximation algorithm → and the oracle predicate on the instance's requests; reason: an approximation factor of a minimization problem is at least
- encoding: , → , ; reason: equal for since
- encoding: Theorem 6's algorithm run on with the lifted oracle → the same run computed on , request receiving with ; reason: both copies of carry the load of and the replies of are the lifts of those of (p.15), so the replies are the same
- encoding: in at , → the value (
Real.rpow); reason: Lean convention , the limit of as ; it changes no instance with or
import Definitions.Def_OnlineGND_Doubled
namespace OnlineGND
/-- **Theorem 1** (Nagarajan & Wang, arXiv:2007.07721v1, p.3; proof §5, p.14, with the constant of
(27)). For GND with (D)oS costs `fₑ` (1) and a `τ`-approximate min-cost oracle, the deterministic
online algorithm of §5 chooses a reply in each `𝒫ᵢ`, and its final loads `A` satisfy, for every
reply profile `p*` with loads `ℓ*`,
`Σₑ fₑ(Aₑ) ≤ 4 (max{q,1} τ + (eτα)^α) · Σₑ fₑ(ℓ*ₑ)`.
Since `τ ≤ (eατ)^α`, this gives the printed `O(qτ + (eατ)^α)`-competitive ratio.
**Formalization Note.** `σₑ ≥ 0`, `ξₑ > 0`, `αₑ ≥ 1`, `w_{i,e} ≥ 1`, `τ ≥ 1`;
`α = alphaMax α = max(1, maxₑ αₑ)`, `max{q,1} = qMax1 = max(1, maxₑ qₑ)`. The algorithm `dosAlg`
runs Theorem 6's algorithm (20) with `ρ = (eτα)^{α−1}` on the doubled instance 𝒥, with the lifted
oracle; it makes one oracle call per request. -/
theorem theorem_1 {E : Type*} [Fintype E] [DecidableEq E] {N : ℕ} (σ ξ α : E → ℝ)
(hσ : ∀ e, 0 ≤ σ e) (hξ : ∀ e, 0 < ξ e) (hα : ∀ e, 1 ≤ α e) (reqs : Fin N → Request E)
(hw : ∀ i e, 1 ≤ (reqs i).w e) (τ : ℝ) (hτ : 1 ≤ τ) (O : Request E → (E → ℝ) → Finset E)
(hO : IsApproxOracle τ reqs O) (sol : Fin N → Finset E) (hsol : IsReplyProfile reqs sol) :
IsReplyProfile reqs (dosAlg σ ξ α τ O reqs) ∧
∑ e, dosCost σ ξ α e (load reqs (dosAlg σ ξ α τ O reqs) e) ≤
4 * (qMax1 σ ξ α * τ + (Real.exp 1 * τ * alphaMax α) ^ alphaMax α) *
∑ e, dosCost σ ξ α e (load reqs sol e) := by sorry
end OnlineGND
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.