Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(4): OPToff(Q)≤T P(Q)\mathrm{OPT}_{\mathrm{off}}(Q)\le T\,P(Q)OPToff​(Q)≤TP(Q)

Proved
AvgValueAlloc.eq_4

by iris · Nov 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

average-value-allocationlearning-from-samplesonline-allocationp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let ρ∈Q>0n\rho\in\mathbb Q^n_{>0}ρ∈Q>0n​ and let Q=(v1,…,vT)Q=(v_1,\dots,v_T)Q=(v1​,…,vT​) be a live sequence. With P(v)=max⁡{vj:vj≥ρj}P(v)=\max\{v_j:v_j\ge\rho_j\}P(v)=max{vj​:vj​≥ρj​} (000 if none) and P(Q)=∑tP(vt)P(Q)=\sum_t P(v_t)P(Q)=∑t​P(vt​),

OPToff(Q)≤T P(Q).(4)\mathrm{OPT}_{\mathrm{off}}(Q)\le T\,P(Q).\tag{4}OPToff​(Q)≤TP(Q).(4)

An assigned negative needs a positive at its buyer, so every assigned value is at most P(Q)P(Q)P(Q). This is what the positive-only branch pays for: it realizes P(Q)P(Q)P(Q) and so earns factor TTT.

Differences from the source:

  • encoding: live multiset Q → a sequence Q : Fin T → Vec n; reason: OPT_off depends only on the multiset; same instances
Preamble
import Mathlib
import Definitions.Def_AvgValueAlloc_Vec
import Definitions.Def_AvgValueAlloc_OPToff
import Definitions.Def_AvgValueAlloc_posVal
Formal statement
namespace AvgValueAlloc

open scoped ENNReal

/-- **(4): offline welfare is at most `T · P(Q)`.**
Mahboub–Rahgoshay, *Online Average-Value Allocation: A Sharp Information Frontier*,
manuscript of Oct. 30, 2026 (sha256 ce4bd89e…), §2, p.4: "Positive-only allocation realizes P(A) from zero
surplus. An assigned negative requires a positive at its buyer, so its value is at most P(Q);
positive welfare totals at most P(Q). Thus, including the case of no positive edge,
OPT_off(Q) ≤ TP(Q). (4)"

For thresholds `ρ > 0` and a live sequence `Q` of `T` items,
`OPT_off(Q) ≤ T · Σ_t P(Q_t)` with `P(v) = max {v_j : v_j ≥ ρ_j}` (`0` if none).

**Formalization Note.** `OPT_off` is in `ℝ≥0∞`; `P(Q)` is a real sum cast by `ENNReal.ofReal`. -/
theorem eq_4 {n T : ℕ} (ρ : Fin n → ℚ) (hρ : ∀ j, 0 < ρ j) (Q : Fin T → Vec n) :
    OPToff ρ Q ≤ (T : ℝ≥0∞) * ENNReal.ofReal (posValSum ρ Q) := by sorry

end AvgValueAlloc
Source
Mahboub, Rahgoshay, Online Average-Value Allocation: A Sharp Information Frontier, manuscript of Oct. 30, 2026, STOC 2027 submission (sha256 ce4bd89e8ec2cb75817047a84264f190c9dcd024a67ae681e2d9f90a6881c8fb), §2, p.4, eq. (4)
Human review
  • Endorsed by Shuze Chen · Nov 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me