InformationTheory.Shannon.Gambling.OperationalSequences
Operational gambling over horse-race sequences (Cover–Thomas) #
For an i.i.d. sequence of horse races Xs : ℕ → Ω → α on a finite alphabet α, a
gambler reinvesting all wealth with a fixed bet b : α → ℝ and odds o : α → ℝ
accumulates wealth whose log grows like ∑ i, log (b (Xs i) · o (Xs i)). The
operational (sequence-level) result is that the time-averaged log-wealth growth
converges almost surely to the doubling rate W(b, o, p), where p is the law of a
single race Xs 0. This is the strong-law counterpart of the single-shot expectation
theorem doublingRate_le_proportional, and a near-clone of the asymptotic
equipartition property aep_ae.
Main definitions #
betLogReturn— the alphabet-side per-race log returng x = log (b x · o x).seqLogWealth— the log-wealth afternraces,log S_n = ∑ i, betLogReturn b o (Xs i).lawPmf— the pmf (law)p x = (μ.map X).real {x}of a finite random variableX.
Main statements #
seqLogWealth_div_tendsto_doublingRate— for a general bet,(1/n)·log S_nconverges almost surely todoublingRate b o (lawPmf μ (Xs 0)).seqLogWealth_proportional_asymptotically_optimal— the proportional (Kelly) betb = pis asymptotically optimal: almost surely both growth rates exist and the arbitrary bet does not beat the Kelly bet.
Implementation notes #
The proof reuses the strong law ProbabilityTheory.strong_law_ae_real applied to the
sequence fun i ω ↦ betLogReturn b o (Xs i ω), exactly as aep_ae applies it to the
log-likelihood sequence. The only non-mechanical step is identifying the strong-law
limit μ[betLogReturn b o ∘ Xs 0] with doublingRate b o (lawPmf μ (Xs 0)), via the
discrete-expectation bridge integral_comp_law (push-forward integral_map followed by
the finite-sum collapse integral_fintype).
References #
- T. M. Cover and J. A. Thomas, Elements of Information Theory (2nd ed.), Wiley, 2006.
InformationTheory.Shannon.Gambling.betLogReturn
sourceThe alphabet-side per-race log return g x = log (b x · o x): the log growth
factor of wealth when the race outcome is x, the bet is b, and the odds are o.
Equations
- InformationTheory.Shannon.Gambling.betLogReturn b o x = Real.log (b x * o x)
Instances For
Used by
InformationTheory.Shannon.Gambling.seqLogWealth
sourceThe log-wealth after n races starting from unit wealth,
log S_n = ∑ i < n, betLogReturn b o (Xs i ω).
Equations
- InformationTheory.Shannon.Gambling.seqLogWealth b o Xs n ω = ∑ i ∈ Finset.range n, InformationTheory.Shannon.Gambling.betLogReturn b o (Xs i ω)
Instances For
Used by
InformationTheory.Shannon.Gambling.lawPmf
sourceThe pmf (law) of a finite random variable X, p x = (μ.map X).real {x}.
Equations
Instances For
Used by
InformationTheory.Shannon.Gambling.measurable_betLogReturn
sourceUsed by
InformationTheory.Shannon.Gambling.integral_comp_law
sourceDiscrete-expectation bridge: the expectation of g ∘ X collapses to the finite sum
against the law of X, ∫ ω, g (X ω) ∂μ = ∑ x, (μ.map X).real {x} · g x.
Used by
InformationTheory.Shannon.Gambling.integrable_betLogReturn_zero
sourceUsed by
InformationTheory.Shannon.Gambling.identDistrib_betLogReturn
sourceUsed by
InformationTheory.Shannon.Gambling.indepFun_betLogReturn
sourceUsed by
InformationTheory.Shannon.Gambling.lawPmf_mem_stdSimplex
sourceUsed by
InformationTheory.Shannon.Gambling.seqLogWealth_div_tendsto_doublingRate
sourceFor an i.i.d. horse-race sequence Xs and a fixed bet b under odds o, the
time-averaged log-wealth growth (1/n)·log S_n converges almost surely to the doubling
rate doublingRate b o (lawPmf μ (Xs 0)), where lawPmf μ (Xs 0) is the law of a single
race (Cover–Thomas).
sorryAx-free ([propext, Classical.choice, Quot.sound]). lawPmf μ (Xs 0) is a definitional binding (the pushforward law
of Xs 0, computed from the existing μ/Xs), NOT a bundled hypothesis: there is no
(h : μ[X 0] = doublingRate …) slot. [IsProbabilityMeasure μ]/hXs/hindep/hident
are regularity preconditions of the SLLN. Routes through strong_law_ae_real
- the non-trivial expectation→pmf bridge
integral_comp_law; not vacuous/circular. @audit:ok
Used by
InformationTheory.Shannon.Gambling.seqLogWealth_proportional_div_tendsto
sourceThe sequence-level growth rate of the proportional (Kelly) bet b = p in closed
form, W(p, o, p) = ∑ x, p x · log (o x) − H(p).
sorryAx-free ([propext, Classical.choice, Quot.sound]). lawPmf μ (Xs 0) is a definitional binding; ho (positive odds) is a
log 0 = 0-convention correctness precondition, not load-bearing. The closed form is a
rewrite of seqLogWealth_div_tendsto_doublingRate's limit via
doublingRate_proportional_eq, non-circular.
@audit:ok
Used by
InformationTheory.Shannon.Gambling.seqLogWealth_proportional_asymptotically_optimal
sourceThe proportional (Kelly) bet b = p is asymptotically optimal at the sequence level
(Cover–Thomas): almost surely both the arbitrary full-support bet b and the Kelly
bet p have a growth rate, and the arbitrary bet does not beat the Kelly bet.
sorryAx-free ([propext, Classical.choice, Quot.sound]). lawPmf μ (Xs 0) is a definitional binding; hb/hb_pos/ho
(full-support bet + positive odds) are the same correctness preconditions as the parent
doublingRate_le_proportional, not load-bearing. The two a.s.-convergence conjuncts come
from seqLogWealth_div_tendsto_doublingRate (×2) and the third (deterministic) inequality
from doublingRate_le_proportional; no conjunct is smuggled in as a hypothesis.
@audit:ok
Used by
InformationTheory.Shannon.Gambling.seqLogWealth_tendsto_atTop_of_pos_doublingRate
sourceIf the doubling rate is positive, the log-wealth log S_n diverges to +∞ almost
surely, i.e. wealth grows exponentially: a positive doubling rate means the gambler gets
rich (Cover–Thomas).
sorryAx-free ([propext, Classical.choice, Quot.sound]). Pure corollary of seqLogWealth_div_tendsto_doublingRate via
log S_n = (log S_n / n)·n + Tendsto.pos_mul_atTop; the limit W* comes from that
theorem's conclusion, NOT a bundled (h : Tendsto … (𝓝 W*)) hypothesis. hpos : 0 < W*
is a sign precondition (the divergence direction depends on the sign; at W*=0 the
direction is indeterminate), not load-bearing. Conclusion Tendsto … atTop is a real
claim, not vacuous; the n=0 boundary is handled via eventually_gt_atTop 0.
@audit:ok
Used by
InformationTheory.Shannon.Gambling.seqLogWealth_tendsto_atBot_of_neg_doublingRate
sourceIf the doubling rate is negative, the log-wealth log S_n diverges to −∞ almost
surely, i.e. wealth decays to zero exponentially: a negative doubling rate means the
gambler goes broke (Cover–Thomas).
sorryAx-free ([propext, Classical.choice, Quot.sound]). Pure corollary of seqLogWealth_div_tendsto_doublingRate via
log S_n = (log S_n / n)·n + Tendsto.neg_mul_atTop; the limit W* comes from that
theorem's conclusion, NOT a bundled (h : Tendsto … (𝓝 W*)) hypothesis. hneg : W* < 0
is a sign precondition (the divergence direction depends on the sign; at W*=0 the
direction is indeterminate), not load-bearing. Conclusion Tendsto … atBot is a real
claim, not vacuous; the n=0 boundary is handled via eventually_gt_atTop 0.
@audit:ok