Proof of Theorem 1 (p. 45): decomposition of into a forecast term and a calibration error
ProvedCalibratedCE.Convergence.empDist_decompositionLet player 1 issue forecasts (vectors in ) and play in round , for some function from forecasts to , and let be player 2's plays. Fix , , , and let be the set of forecasts issued in the first rounds at which player 1 plays , i.e. the forecasts in actually used. With and as in the definition of calibration,
The first term is what the forecasts predict; the second is controlled by calibration. The identity needs no calibration or best-reply hypothesis.
Formalization Note The paper writes the sums over ; only the issued forecasts contribute, so the sums run over them. At both sides are by the convention . The paper's first display line, the sum of over rounds with , is the definition of and is not restated.
import Mathlib import Definitions.Def_CalibratedCE_Shared_Calibration import Definitions.Def_CalibratedCE_Convergence_EmpDist
namespace CalibratedCE.Convergence
/-- Proof of Theorem 1, p. 45, the decomposition display: when player 1 plays `R₁ (f₁ s)` in
round `s`, the empirical frequency of `(a, b)` splits into a forecast-weighted main term and a
calibration error term. The sums run over the forecasts issued in the first `t` rounds at
which player 1 plays `a`. -/
theorem empDist_decomposition {m n : ℕ} (R₁ : (Fin n → ℝ) → Fin m) (f₁ : ℕ → Fin n → ℝ)
(y : ℕ → Fin n) (t : ℕ) (a : Fin m) (b : Fin n) :
empDist (fun s => R₁ (f₁ s)) y t a b =
(t : ℝ)⁻¹ * ∑ p ∈ ((Finset.range t).image f₁).filter (fun p => R₁ p = a),
(((Finset.range t).filter (fun r => f₁ r = p ∧ y r = b)).card : ℝ) ∧
empDist (fun s => R₁ (f₁ s)) y t a b =
(t : ℝ)⁻¹ * ∑ p ∈ ((Finset.range t).image f₁).filter (fun p => R₁ p = a),
Shared.rho f₁ y p b t * (Shared.N f₁ p t : ℝ) ∧
empDist (fun s => R₁ (f₁ s)) y t a b =
(t : ℝ)⁻¹ * ∑ p ∈ ((Finset.range t).image f₁).filter (fun p => R₁ p = a),
p b * (Shared.N f₁ p t : ℝ) +
(t : ℝ)⁻¹ * ∑ p ∈ ((Finset.range t).image f₁).filter (fun p => R₁ p = a),
(Shared.rho f₁ y p b t - p b) * (Shared.N f₁ p t : ℝ) := by sorry
end CalibratedCE.Convergence
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The inputs are all arbitrary; none of them is assumed to satisfy a best-reply or distribution condition:
- natural numbers ;
- a function ;
- a sequence of vectors (forecasts, not assumed to be probability vectors);
- a sequence in ;
- a time ;
- a pair , .
Notation used below:
- Player 1's play is .
- is the empirical frequency (defined as when ).
- is the finite set of distinct vectors among that maps to .
- and are two quantities defined in a separate shared calibration module whose definitions are not included in this code. Both are treated as real numbers and depend on the forecast sequence (and, for , on ). This read-back cannot unfold them.
The theorem asserts three equalities simultaneously:
Here means the inverse of , taken to be when .
Degenerate cases:
- . is empty and , so all sides equal .
- or . No or no exists, so the statement is vacuous.
- What the second and third lines depend on. Whether they hold depends entirely on the unshown definitions of and . Given the second line, the third is an algebraic rearrangement of it.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.