Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 2 (p. 47) — the conditional forecasts p1,t,p2,tp_{1,t}, p_{2,t}p1,t​,p2,t​ are calibrated

Proved
CalibratedCE.Generic.condForecast_calibrated

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

calibrationcorrelated-equilibriumforecastingp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let DDD be a joint distribution over S(1)×S(2)S(1)\times S(2)S(1)×S(2), and let (xt)(x_t)(xt​), (yt)(y_t)(yt​) be play sequences with D(xt,yt)>0D(x_t,y_t) > 0D(xt​,yt​)>0 for all ttt whose empirical joint distribution converges to DDD: Dt(x,y)→D(x,y)D_t(x,y)\to D(x,y)Dt​(x,y)→D(x,y) for all x,yx,yx,y. Let player 1 forecast

p1,t(⋅)=D(xt,⋅)∑yD(xt,y)p_{1,t}(\cdot) = \frac{D(x_t,\cdot)}{\sum_{y} D(x_t,y)}p1,t​(⋅)=∑y​D(xt​,y)D(xt​,⋅)​

and player 2 forecast

p2,t(⋅)=D(⋅,yt)∑xD(x,yt).p_{2,t}(\cdot) = \frac{D(\cdot,y_t)}{\sum_{x} D(x,y_t)}.p2,t​(⋅)=∑x​D(x,yt​)D(⋅,yt​)​.

Then every p1,tp_{1,t}p1,t​ and every p2,tp_{2,t}p2,t​ is a probability vector, the forecasts (p1,t)(p_{1,t})(p1,t​) are calibrated with respect to (yt)(y_t)(yt​), and the forecasts (p2,t)(p_{2,t})(p2,t​) are calibrated with respect to (xt)(x_t)(xt​).

In the paper: "By the assumption that the joint distribution converges to D(x,y)D(x,y)D(x,y), it is clear that both of these forecasts are calibrated."

Formalization Note Two strategies of player 1 with the same conditional distribution produce the same forecast value; the statement covers this case (calibration is computed per forecast value, pooling those rounds). The denominator of p2,tp_{2,t}p2,t​ is the corrected one (see the definition of the conditional forecasts).

Preamble
import Mathlib
import Definitions.Def_CalibratedCE_Generic_Game
import Definitions.Def_CalibratedCE_Shared_Calibration
import Definitions.Def_CalibratedCE_Generic_Forecasts

open Filter Topology
Formal statement
namespace CalibratedCE.Generic

theorem condForecast_calibrated {m n : ℕ} (D : Fin m → Fin n → ℝ) (hD : IsJointDist D)
    (x : ℕ → Fin m) (y : ℕ → Fin n) (hsupp : ∀ t, 0 < D (x t) (y t))
    (hlim : ∀ a b, Tendsto (fun t => empDist x y t a b) atTop (𝓝 (D a b))) :
    (∀ t, IsDist (condForecast₁ D (x t))) ∧ (∀ t, IsDist (condForecast₂ D (y t))) ∧
      Shared.Calibrated (fun t => condForecast₁ D (x t)) y ∧
      Shared.Calibrated (fun t => condForecast₂ D (y t)) x := by sorry

end CalibratedCE.Generic
Source
Foster and Vohra, Calibrated learning and correlated equilibrium, Games Econ. Behav. 21 (1997), p. 47, proof of Theorem (Theorem 2)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Take m,n∈Nm, n\in\mathbb{N}m,n∈N and a joint distribution DDD on [m]×[n][m]\times[n][m]×[n], meaning nonnegative entries summing to 111. Take sequences x:N→[m]x:\mathbb{N}\to[m]x:N→[m] and y:N→[n]y:\mathbb{N}\to[n]y:N→[n] such that:

  • D(xt,yt)>0D(x_t,y_t) > 0D(xt​,yt​)>0 for every ttt;
  • for all a,ba,ba,b, the empirical frequency Dt(a,b)D_t(a,b)Dt​(a,b) converges to D(a,b)D(a,b)D(a,b). Here Dt(a,b)D_t(a,b)Dt​(a,b) is the number of rounds s<ts<ts<t with (xs,ys)=(a,b)(x_s,y_s)=(a,b)(xs​,ys​)=(a,b), divided by ttt.

Define the conditional forecasts

p1,t(b)=D(xt,b)∑cD(xt,c),p2,t(a)=D(a,yt)∑cD(c,yt).p_{1,t}(b) = \frac{D(x_t,b)}{\sum_{c} D(x_t,c)}, \qquad p_{2,t}(a) = \frac{D(a,y_t)}{\sum_{c} D(c,y_t)}.p1,t​(b)=∑c​D(xt​,c)D(xt​,b)​,p2,t​(a)=∑c​D(c,yt​)D(a,yt​)​.

Claim. All four of the following hold:

  1. For every ttt, p1,tp_{1,t}p1,t​ is a probability vector on [n][n][n]: nonnegative entries summing to 111.
  2. For every ttt, p2,tp_{2,t}p2,t​ is a probability vector on [m][m][m].
  3. The forecast sequence (p1,t)t(p_{1,t})_t(p1,t​)t​ is "Calibrated" against the outcome sequence (yt)t(y_t)_t(yt​)t​.
  4. (p2,t)t(p_{2,t})_t(p2,t​)t​ is "Calibrated" against (xt)t(x_t)_t(xt​)t​.

"Calibrated" is a predicate from an imported file whose definition is not shown here, so the content of items 3 and 4 cannot be spelled out.

Degenerate cases.

  • If m=0m=0m=0 or n=0n=0n=0, no joint distribution exists and the statement is vacuous.
  • The positivity hypothesis makes every denominator used at a played row or column at least D(xt,yt)>0D(x_t,y_t) > 0D(xt​,yt​)>0. So the convention that division by zero gives 000 is never triggered for these forecasts.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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