Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1 — calibrated forecasts with best responses converge to the correlated equilibria

Proved
CalibratedCE.Convergence.calibrated_best_response_converges

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

calibrationcorrelated-equilibriumlearning-in-gamesp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let G=(u1,u2)G = (u_1, u_2)G=(u1​,u2​) be a finite two-player game with strategy sets S(1)S(1)S(1), S(2)S(2)S(2), and let π(G)\pi(G)π(G) be its set of correlated equilibria. Suppose:

  1. each player selects best responses through a stationary and deterministic rule: R1R_1R1​ maps each probability vector ppp over S(2)S(2)S(2) to a best response of player 1 to ppp, and R2R_2R2​ maps each probability vector qqq over S(1)S(1)S(1) to a best response of player 2 to qqq;
  2. in every round sss, player 1 forecasts player 2's play by a probability vector f1(s)f_1(s)f1​(s) and player 2 forecasts player 1's play by a probability vector f2(s)f_2(s)f2​(s);
  3. the plays are the best responses to the forecasts: x(s)=R1(f1(s))x(s) = R_1(f_1(s))x(s)=R1​(f1​(s)) and y(s)=R2(f2(s))y(s) = R_2(f_2(s))y(s)=R2​(f2​(s));
  4. each forecast is calibrated against the other player's sequence of plays: f1f_1f1​ with respect to yyy, and f2f_2f2​ with respect to xxx.

Let DtD_tDt​ be the empirical joint distribution of the first ttt rounds of play. Then

min⁡D∈π(G) max⁡x∈S(1), y∈S(2)∣Dt(x,y)−D(x,y)∣⟶0(t→∞).\min_{D \in \pi(G)} \ \max_{x \in S(1),\, y \in S(2)} |D_t(x, y) - D(x, y)| \longrightarrow 0 \qquad (t \to \infty).D∈π(G)min​ x∈S(1),y∈S(2)max​∣Dt​(x,y)−D(x,y)∣⟶0(t→∞).

Formally: for every ε>0\varepsilon > 0ε>0 there is TTT such that for every t≥Tt \ge Tt≥T some correlated equilibrium DDD satisfies ∣Dt(x,y)−D(x,y)∣≤ε|D_t(x, y) - D(x, y)| \le \varepsilon∣Dt​(x,y)−D(x,y)∣≤ε for all x,yx, yx,y.

This is the paper's title result: players who best-respond to calibrated forecasts of each other learn, in the limit, a correlated equilibrium of the game, whatever forecasting method they use.

Formalization Note The "min … → 0" is written in its ε\varepsilonε-form. The two are equivalent because π(G)\pi(G)π(G) is nonempty and compact, so the minimum is attained; the ε\varepsilonε-form avoids an infimum over a set that Lean would silently evaluate to 000 if it were empty. The paper's standing assumption (p. 44), "We assume that when players select their best response (for a given forecast) they use a stationary and deterministic tie breaking rule; say the lowest indexed strategy", is the pair of best-reply functions R1,R2R_1, R_2R1​,R2​, which depend on the forecast only and not on the round; quantifying over all such functions includes the lowest-index rule. Without stationarity the theorem fails (the matching pennies example of p. 46). Forecasts are given as sequences: the theorem uses only the realized forecasts, and any sequence is produced by a forecasting rule that reads the round number from the history. Rounds are indexed from 000.

Preamble
import Mathlib
import Definitions.Def_CalibratedCE_Convergence_Game
import Definitions.Def_CalibratedCE_Shared_Calibration
import Definitions.Def_CalibratedCE_Convergence_BestReply
import Definitions.Def_CalibratedCE_Convergence_EmpDist
Formal statement
namespace CalibratedCE.Convergence

/-- Foster–Vohra (1997), Theorem 1, p. 44: if each player best-responds, through a stationary
deterministic best-reply function, to a forecast calibrated against the other player's plays,
then the distance from the empirical joint distribution `D_t` to the set of correlated
equilibria, `min_{D ∈ π(G)} max_{x, y} |D_t(x, y) - D(x, y)|`, tends to `0`. -/
theorem calibrated_best_response_converges {m n : ℕ}
    (u₁ u₂ : Fin m → Fin n → ℝ)
    (R₁ : (Fin n → ℝ) → Fin m) (R₂ : (Fin m → ℝ) → Fin n)
    (hR₁ : IsBestReply₁ u₁ R₁) (hR₂ : IsBestReply₂ u₂ R₂)
    (f₁ : ℕ → Fin n → ℝ) (f₂ : ℕ → Fin m → ℝ)
    (hf₁ : ∀ t, IsDist (f₁ t)) (hf₂ : ∀ t, IsDist (f₂ t))
    (hcal₁ : Shared.Calibrated f₁ (fun s => R₂ (f₂ s)))
    (hcal₂ : Shared.Calibrated f₂ (fun s => R₁ (f₁ s))) :
    ∀ ε > 0, ∃ T : ℕ, ∀ t ≥ T, ∃ D : Fin m → Fin n → ℝ, IsCE u₁ u₂ D ∧
      ∀ a b, |empDist (fun s => R₁ (f₁ s)) (fun s => R₂ (f₂ s)) t a b - D a b| ≤ ε := by sorry

end CalibratedCE.Convergence
Source
Foster and Vohra, Calibrated learning and correlated equilibrium, Games Econ. Behav. 21 (1997), p. 44, Theorem 1 (with the standing assumption of p. 44, Section 3)
Read-back

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

The statement involves two finite action sets, {0,…,m−1}\{0,\dots,m-1\}{0,…,m−1} for player 1 and {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1} for player 2, with m,nm, nm,n arbitrary natural numbers. It also depends on five notions defined in imported definition files that were not provided here: IsBestReply₁/IsBestReply₂, IsDist, Shared.Calibrated, empDist and IsCE. This read-back names them and says how they are applied, but cannot say what they mean. What the theorem says depends entirely on those definitions.

Data. The theorem takes:

  • two payoff tables u1,u2:{0,…,m−1}×{0,…,n−1}→Ru_1, u_2 : \{0,\dots,m-1\} \times \{0,\dots,n-1\} \to \mathbb{R}u1​,u2​:{0,…,m−1}×{0,…,n−1}→R, written ui(a,b)u_i(a,b)ui​(a,b);
  • a reply map R1:Rn→{0,…,m−1}R_1 : \mathbb{R}^n \to \{0,\dots,m-1\}R1​:Rn→{0,…,m−1} for player 1, sending any real nnn-vector to one of player 1's actions;
  • a reply map R2:Rm→{0,…,n−1}R_2 : \mathbb{R}^m \to \{0,\dots,n-1\}R2​:Rm→{0,…,n−1} for player 2, likewise;
  • two fixed, deterministic sequences of real vectors, f1:N→Rnf_1 : \mathbb{N} \to \mathbb{R}^nf1​:N→Rn and f2:N→Rmf_2 : \mathbb{N} \to \mathbb{R}^mf2​:N→Rm, written f1(s)f_1(s)f1​(s) and f2(s)f_2(s)f2​(s).

There is no probability space and no randomness anywhere in the statement. The action sequences it talks about are

as:=R1(f1(s))∈{0,…,m−1},bs:=R2(f2(s))∈{0,…,n−1},s∈N.a_s := R_1\big(f_1(s)\big) \in \{0,\dots,m-1\}, \qquad b_s := R_2\big(f_2(s)\big) \in \{0,\dots,n-1\}, \qquad s \in \mathbb{N}.as​:=R1​(f1​(s))∈{0,…,m−1},bs​:=R2​(f2​(s))∈{0,…,n−1},s∈N.

Hypotheses. All of the following are assumed:

  1. IsBestReply1(u1,R1)\mathrm{IsBestReply}_1(u_1, R_1)IsBestReply1​(u1​,R1​) holds. This is an undisclosed predicate on u1u_1u1​ and R1R_1R1​ only.
  2. IsBestReply2(u2,R2)\mathrm{IsBestReply}_2(u_2, R_2)IsBestReply2​(u2​,R2​) holds. This is an undisclosed predicate on u2u_2u2​ and R2R_2R2​ only.
  3. For every t∈Nt \in \mathbb{N}t∈N, IsDist(f1(t))\mathrm{IsDist}(f_1(t))IsDist(f1​(t)) holds. This is an undisclosed predicate on a vector in Rn\mathbb{R}^nRn.
  4. For every t∈Nt \in \mathbb{N}t∈N, IsDist(f2(t))\mathrm{IsDist}(f_2(t))IsDist(f2​(t)) holds, on a vector in Rm\mathbb{R}^mRm.
  5. Calibrated(f1,(bs)s)\mathrm{Calibrated}(f_1, (b_s)_{s})Calibrated(f1​,(bs​)s​) holds. This is an undisclosed predicate relating the vector sequence f1f_1f1​ to player 2's action sequence bs=R2(f2(s))b_s = R_2(f_2(s))bs​=R2​(f2​(s)).
  6. Calibrated(f2,(as)s)\mathrm{Calibrated}(f_2, (a_s)_{s})Calibrated(f2​,(as​)s​) holds, relating f2f_2f2​ to player 1's action sequence as=R1(f1(s))a_s = R_1(f_1(s))as​=R1​(f1​(s)).

Note that f1f_1f1​ enters both through the calibration hypothesis 5 and through the actions asa_sas​ that appear in hypothesis 6. The same holds for f2f_2f2​ with hypotheses 6 and 5.

Conclusion. Let Et(a,b)E_t(a,b)Et​(a,b) denote empDist((as)s,(bs)s,t)(a,b)\mathrm{empDist}\big((a_s)_s, (b_s)_s, t\big)(a,b)empDist((as​)s​,(bs​)s​,t)(a,b), an undisclosed real-valued function of the two action sequences, a time index t∈Nt \in \mathbb{N}t∈N, and a pair of actions. The conclusion is:

∀ε>0  ∃T∈N  ∀t≥T  ∃D:{0,…,m−1}×{0,…,n−1}→R such that IsCE(u1,u2,D)  and  max⁡a,b∣Et(a,b)−D(a,b)∣≤ε.\forall \varepsilon > 0\ \ \exists T \in \mathbb{N}\ \ \forall t \ge T\ \ \exists D : \{0,\dots,m-1\}\times\{0,\dots,n-1\} \to \mathbb{R} \text{ such that } \mathrm{IsCE}(u_1, u_2, D) \ \text{ and } \ \max_{a,b} \big|E_t(a,b) - D(a,b)\big| \le \varepsilon .∀ε>0  ∃T∈N  ∀t≥T  ∃D:{0,…,m−1}×{0,…,n−1}→R such that IsCE(u1​,u2​,D)  and  a,bmax​​Et​(a,b)−D(a,b)​≤ε.

Here IsCE(u1,u2,D)\mathrm{IsCE}(u_1,u_2,D)IsCE(u1​,u2​,D) is an undisclosed predicate on the two payoff tables and a real-valued table DDD. The table DDD may be chosen separately for each ttt. DDD is only a real-valued table; it is required to be a probability distribution only if IsCE\mathrm{IsCE}IsCE requires that. The bound is non-strict (≤ε\le \varepsilon≤ε) and holds for every entry (a,b)(a,b)(a,b). So the entrywise (sup-norm) distance from EtE_tEt​ to some table satisfying IsCE\mathrm{IsCE}IsCE is at most ε\varepsilonε for all large ttt. The statement does not mention a minimum over a set, and it does not mention a limit.

Degenerate cases.

  • m=0m = 0m=0: no function R1:Rn→∅R_1 : \mathbb{R}^n \to \emptysetR1​:Rn→∅ exists, because Rn\mathbb{R}^nRn is never empty. The theorem is then vacuously true.
  • n=0n = 0n=0: likewise, R2R_2R2​ cannot exist, and the theorem is vacuously true.
  • So in effect m,n≥1m, n \ge 1m,n≥1. With m=n=1m = n = 1m=n=1, both action sequences are constant and EtE_tEt​ and DDD are single numbers.
  • Unsatisfiable predicates: if IsBestReplyi\mathrm{IsBestReply}_iIsBestReplyi​, IsDist\mathrm{IsDist}IsDist or Calibrated\mathrm{Calibrated}Calibrated cannot be satisfied for the given mmm and nnn, the theorem holds vacuously. For example, if IsDist\mathrm{IsDist}IsDist requires entries summing to 111, it fails on the empty vector. Whether any of these predicates can fail this way cannot be determined without their definitions.
  • No table satisfies IsCE\mathrm{IsCE}IsCE: if no DDD satisfies IsCE(u1,u2,⋅)\mathrm{IsCE}(u_1,u_2,\cdot)IsCE(u1​,u2​,⋅) for some payoffs, the conclusion is false for those payoffs. The theorem then amounts to saying the hypotheses cannot all hold for them.
  • Small ttt: TTT is chosen freely, so any value EtE_tEt​ takes at small ttt, including t=0t = 0t=0, is irrelevant. That includes any junk value from division by zero if empDist\mathrm{empDist}empDist divides by ttt.
  • Hidden definitions: the conclusion makes no claim about how EtE_tEt​ is computed or normalised; that is fixed entirely by the undisclosed definition of empDist\mathrm{empDist}empDist.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

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