prefixHedgeWeight
defimported Lean
The unnormalised Hedge weight of row $i$ after seeing a prefix of column actions at learning rate $\eta$ is \[ w_t(i) \;=\; \exp\!\bigl(-\eta \cdot L_t(i)\bigr), \] where $L_t(i)$ is the prefix cumulative loss.
Statement
set_option relaxedAutoImplicit false in set_option autoImplicit false in open Real Finset BigOperators in noncomputable def prefixHedgeWeight {M N : ℕ} (G : ZeroSumGame M N) (η : ℝ) {t : ℕ} (actions : Fin t → Fin N) (i : Fin M) : ℝ
- Defined in
- TCSlib, `prefixHedgeWeight`
- Lean proof
- By Karim Abdel Sadek, Mark Bedaywi, from github.com/Shilun-Allan-Li/tcslib at
c8a02591b1e5(Copyright (c) 2026 Karim Abdel Sadek and Mark Bedaywi. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.prefixHedgeWeight← prefixHedgeWeight (TCSlib/LearningTheory/Minimax/HedgeInteraction.lean:215): verbatim
- Verified
- 07 Oct 2026
- Axioms
- none listed
- Built on 2
- prefixGameLossGiven a game $G$, a prefix of $t$ column actions, and a row $i$, the prefix cumulative loss of row $i$ is…
- ZeroSumGameA finite two-player zero-sum game with $M$ row actions and $N$ column actions is a record consisting of a payoff matrix…
- Used by 5
- prefixPotentialThe prefix potential is the sum of prefix Hedge weights over all rows: \[ \Phi_t \;=\; \sum_{i \in \mathrm{Fin}\,M} w_t(i). \]
- prefixHedgeWeight_eq_hedgeWeightPrefix Hedge weight agrees with the induced-loss Hedge weight. Let $G$ be a finite two-player zero-sum game with $M$ row actions and $N$…
- prefixHedgeWeight_posPositivity of the prefix Hedge weight. Let $G$ be a finite two-player zero-sum game with $M$ row actions and $N$ column actions, let…
- prefixHedgeMixedStrategyThe normalised Hedge distribution after a prefix of $t$ column actions is the mixed row strategy with weights…
- prefixPotential_posPositivity of the prefix potential. Let $G$ be a finite two-player zero-sum game with at least one row action, fix a learning rate…
Lean source view module on GitHub
set_option relaxedAutoImplicit false in set_option autoImplicit false in open Real Finset BigOperators in /-- The Hedge weight `exp(−η · prefixGameLoss)` of row `i`, computed directly from a prefix of column actions. -/ noncomputable def prefixHedgeWeight {M N : ℕ} (G : ZeroSumGame M N) (η : ℝ) {t : ℕ} (actions : Fin t → Fin N) (i : Fin M) : ℝ := Real.exp (-η * prefixGameLoss G actions i)