Appendix (p. 52) — flow conservation equations have a probability-vector solution
ProvedCalibratedCE.Forecast.flow_conservation_solvableLet and let be any matrix of nonnegative reals. Then there is a probability vector (, ) satisfying the flow conservation equations
In the Appendix the matrix is that of the regrets after rounds, and a solution is the forecaster's mixture in round ; the paper invokes linear programming duality for its existence. Equivalently, is a stationary distribution of the finite Markov chain that moves from to at a rate proportional to .
Formalization Note The statement is made for an arbitrary nonnegative matrix, not only for regret matrices; this is the form the paper's existence claim takes. is needed: there is no probability vector on an empty index set.
import Mathlib import Definitions.Def_CalibratedCE_Forecast_IsDist
namespace CalibratedCE.Forecast
theorem flow_conservation_solvable (k : ℕ) (hk : 0 < k) (R : Fin k → Fin k → ℝ)
(hR : ∀ i j, 0 ≤ R i j) :
∃ w : Fin k → ℝ, IsDist w ∧ ∀ i, w i * ∑ j, R i j = ∑ j, w j * R j i := by sorry
end CalibratedCE.Forecast
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a natural number with . Let be a real matrix with every entry .
The theorem asserts that there exists a vector that is a probability vector ( for all and ) and that satisfies, for every ,
The diagonal entries appear on both sides (as ) and cancel. Only existence is claimed; uniqueness is not.
Degenerate cases:
- is excluded by the hypothesis .
- : works, since both sides equal .
- : every probability vector satisfies the equations.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.