Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 10.3, p. 173 — the empirical type maximizes the product of probabilities

Proved
ModernOnlineLearning.Portfolio.lemma_10_3

by tianyipeng · Nov 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

online-learningportfolio-selectionuniversal-portfolio

Let T≥1T\ge 1T≥1 be an integer, let x∈R≥0dx\in\mathbb{R}^d_{\ge 0}x∈R≥0d​ satisfy ∑i=1dxi=T\sum_{i=1}^d x_i = T∑i=1d​xi​=T, and let u∈Δd−1u\in\Delta^{d-1}u∈Δd−1 be a point of the probability simplex. Then

∏i=1duixi≤∏i=1d(xiT)xi,\prod_{i=1}^d u_i^{x_i} \le \prod_{i=1}^d \left(\frac{x_i}{T}\right)^{x_i},i=1∏d​uixi​​≤i=1∏d​(Txi​​)xi​,

with the convention 00:=10^0 := 100:=1.

Formalization note. Powers are real powers (Real.rpow), which satisfy 00=10^0=100=1 and 0a=00^a=00a=0 for a>0a>0a>0, matching the book's convention.

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

/-- Lemma 10.3, p. 173. Real powers use `Real.rpow`, for which `0 ^ 0 = 1`. -/
theorem lemma_10_3 {d T : ℕ} (hT : 1 ≤ T) (x : Fin d → ℝ) (hx : ∀ i, 0 ≤ x i)
    (hsum : ∑ i, x i = (T : ℝ)) (u : Fin d → ℝ) (hu : u ∈ stdSimplex ℝ (Fin d)) :
    ∏ i, u i ^ x i ≤ ∏ i, (x i / (T : ℝ)) ^ x i := by sorry

end ModernOnlineLearning.Portfolio
Source
Orabona, A Modern Introduction to Online Learning, arXiv:1912.13213v10, Section 10.3.1, Lemma 10.3, p. 173

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