Lemma 1 (No-Regret) — pairwise regret at most
ProvedCalibratedCE.Forecast.no_regretConsider forecasts with losses , and a combined forecast that uses forecast in round with probability , where each is a probability vector satisfying the flow conservation equations for the regrets of the previous rounds:
Here is the regret of changing all forecasts to forecasts. Then for all and every ,
This is the "no-regret" property on which the Appendix builds the calibrated forecast of Theorem 3.
Formalization Note Rounds are indexed from ; the hypothesis at -based round uses the regrets over rounds (the paper's ). At round every regret is , so the condition holds for every , as on the page. The weights may depend on anything, including ; the inequality is deterministic. The losses and weights are real sequences; nothing is assumed about how they were generated.
import Mathlib import Definitions.Def_CalibratedCE_Forecast_IsDist import Definitions.Def_CalibratedCE_Forecast_Regret
namespace CalibratedCE.Forecast
theorem no_regret (k : ℕ) (L w : ℕ → Fin k → ℝ)
(hL : ∀ t i, 0 ≤ L t i ∧ L t i ≤ 1)
(hw : ∀ t, IsDist (w t))
(hflow : ∀ t i, w t i * ∑ j, Rg L w t i j = ∑ j, w t j * Rg L w t j i)
(T : ℕ) (i j : Fin k) :
Rg L w T i j ≤ Real.sqrt (2 * k * T) := by sorry
end CalibratedCE.Forecast
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let . Let and be real arrays indexed by rounds and indices . For and indices , write
for the regret accumulated over rounds .
The hypotheses are:
- Bounded losses: for every and .
- Weights are probability vectors: for every , for all and .
- Flow conservation: for every round and every ,
Here is the regret over rounds , that is, before round . The condition is imposed on the entire infinite sequence of rounds, not only on the rounds up to .
The conclusion: for every and every pair of indices ,
Degenerate cases:
- : hypothesis 2 cannot hold (an empty sum is ), so the statement is vacuous.
- : it reads .
- in hypothesis 3: all regrets are , so the condition is automatic at .
- : , and the bound is trivial.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.