Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 10.5, p. 174 — ratio of sums is bounded by the largest component ratio

Proved
ModernOnlineLearning.Portfolio.lemma_10_5

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

inequalitiesonline-learningp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1portfolio-selection

Let T≥1T\ge1T≥1, and let a1,…,aTa_1,\ldots,a_Ta1​,…,aT​ and b1,…,bTb_1,\ldots,b_Tb1​,…,bT​ be nonnegative real numbers. With a/0=+∞a/0=+\inftya/0=+∞ for a>0a>0a>0 and 0/0=00/0=00/0=0,

∑t=1Tat∑t=1Tbt≤max⁡1≤t≤Tatbt.\frac{\sum_{t=1}^{T}a_t}{\sum_{t=1}^{T}b_t}\le\max_{1\le t\le T}\frac{a_t}{b_t}.∑t=1T​bt​∑t=1T​at​​≤1≤t≤Tmax​bt​at​​.

The lemma reduces a ratio of sums to the worst component ratio, and is used to compare a market sequence with single-stock sequences.

Formalization Note The quotients are encoded in extended nonnegative reals, whose zero-denominator behavior matches the stated convention. T≥1T\ge1T≥1 makes the maximum nonempty.

Preamble
import Mathlib
import Definitions.Def_ModernOnlineLearning_Portfolio_Setting
set_option autoImplicit false
Formal statement
namespace ModernOnlineLearning.Portfolio

/-- Lemma 10.5, p. 174. `ENNReal` realizes the printed conventions
`a/0=+∞` for `a>0` and `0/0=0`. -/
theorem lemma_10_5 {T : ℕ} (hT : 1 ≤ T) (a b : Fin T → ℝ)
    (ha : ∀ t, 0 ≤ a t) (hb : ∀ t, 0 ≤ b t) :
    ENNReal.ofReal (∑ t, a t) / ENNReal.ofReal (∑ t, b t) ≤
      ⨆ t : Fin T, ENNReal.ofReal (a t) / ENNReal.ofReal (b t) := by sorry

end ModernOnlineLearning.Portfolio
Source
Orabona, arXiv:1912.13213v10, Lemma 10.5, p. 174
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 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