Theorem 14.1 — general online fractional packing, B-competitiveness (Claims 1-2)
ProvedOnlinePrimalDual.GeneralPacking.theorem14_1competitive-ratiolinear-programmingonline-algorithmsprimal-dual
For any B > 0, the scheme's packing solution y is B-competitive against any feasible comparison packing solution. Revised per moderation (2026-09-21): Claim (3), the per-constraint dual-violation bound Σ_k a(i,k)y(k) ≤ c(i)·2log(1 + n·a_i(max)/a_i(min))/B, is dropped from this item's conclusion — it was previously assumed as a hypothesis and then restated unchanged as half the "conclusion" (P → P), proving nothing about it; genuinely deriving Claim (3) needs the scheme's concrete update rule, which this mission's opaque final-value hypotheses do not model. See STATUS.md for the scope discussion.
Preamble
import Mathlib import Definitions.Def_OnlinePrimalDual_GeneralPacking_GeneralInstance
Formal statement
namespace OnlinePrimalDual.GeneralPacking
/-- **Theorem 14.1** (p. 249-251, PDF p. 160-162), Claim (1)/(2)'s `B`-competitiveness half only.
`x`, `y` are the scheme's final primal/dual values; `hX_le_BY` is Claim (1) (`X ≤ B·Y`, derived
there from the per-round derivative inequality `∂X/∂y(j) ≤ B·∂Y/∂y(j)`, not reproduced here);
`h_feasible` is Claim (2), primal feasibility (`∀j, ∑ᵢ a(i,j)xᵢ ≥ 1`), used together with
`hX_le_BY` via weak duality (any feasible packing value is at most any feasible covering cost, in
particular at most `X`); the conclusion is stated against any feasible packing comparison solution
`y''`, mirroring `04-framework`'s Theorem 4.1/4.3 packing-competitiveness bullet exactly.
**Scope revised per `CHANGES_REQUESTED.md` (moderation, 2026-09-21): Claim (3) dropped from this
item's conclusion, option (a).** The previous version's second conjunct — Claim (3)'s
per-constraint dual-violation bound, `∑ₖa(i,k)y(k) ≤ cᵢ·2log(1+n·aᵢ(max)/aᵢ(min))/B` — was taken
as the hypothesis `h_dual_bound` and then handed back character-for-character identical as half of
the "conclusion": `P → P` padded into a bigger statement, proving nothing about Claim (3) itself,
and not used anywhere in deriving the genuine first conjunct either. Claim (3)'s actual content
(the book's own per-round `∂X/∂y(j)` calculus argument, p. 249-251) is not modeled by this
mission's scheme-independent hypotheses (`x`, `y` are opaque final values, not derived from an
explicit update rule), so it cannot be honestly stated as a *derived* conclusion here — the same
reason Claim (1)'s own derivative inequality (`hX_le_BY`) is already taken as a hypothesis rather
than proved. Dropped rather than kept as a restated assumption, per rule 5/6; `aMax`/`aMin` (used
only by the dropped conjunct) are no longer imported here but remain in the mission as their own
faithful definitions, documented in `description.md`'s Formalization scope for a future pass that
models the scheme concretely enough (mirroring `04-framework`'s `alg1X`) to derive Claim (3) for
real (`CHANGES_REQUESTED.md`'s option (b), not pursued this pass). -/
theorem theorem14_1 {I J : Type*} [Fintype I] [Fintype J] [Nonempty J] [DecidableEq J]
(inst : GeneralInstance I J) (B : ℝ) (hB : 0 < B)
(x : I → ℝ) (hx_nonneg : ∀ i, 0 ≤ x i) (y : J → ℝ) (hy_nonneg : ∀ j, 0 ≤ y j)
(hX_le_BY : ∑ i, inst.c i * x i ≤ B * ∑ j, y j)
(h_feasible : ∀ j, 1 ≤ ∑ i, inst.a i j * x i) :
∀ y'' : J → ℝ, (∀ j, 0 ≤ y'' j) → (∀ i, ∑ k, inst.a i k * y'' k ≤ inst.c i) →
∑ j, y'' j ≤ B * ∑ j, y j
:= by sorry
end OnlinePrimalDual.GeneralPacking
Source
Buchbinder & Naor, The Design of Competitive Online Algorithms via a Primal-Dual Approach, FnT TCS 2009, p. 249-251, Theorem 14.1
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.