An ball of probability vectors is nonempty and compact
ProvedBanditAlgorithm.prob_vector_l1_ball_nonempty_isCompactLet be a probability vector on a finite set and let . Then the set
of probability vectors within distance of is nonempty and compact.
This is the confidence set used by UCRL2: is the empirical transition row and the confidence radius supplied by Weissman's inequality. Nonemptiness and compactness are exactly the hypotheses under which the extended MDP — whose actions are the pairs (action, transition row in the confidence set) — has a solution of its Bellman optimality equation, so this lemma is what connects the statistical part of the analysis to the planning part.
Nonemptiness holds because itself lies in . For compactness, note first that is contained in the cube : each coordinate is nonnegative and, being one term of a sum of nonnegative numbers equal to , is at most . The cube is compact by Tychonoff's theorem. Finally is closed, being the intersection of the closed sets , the level set and the sublevel set , all closed because the coordinate projections, and hence the finite sums and absolute values built from them, are continuous. A closed subset of a compact set is compact.
import Mathlib.Analysis.SpecificLimits.Basic import Mathlib.Algebra.Order.BigOperators.Ring.Finset
theorem BanditAlgorithm.prob_vector_l1_ball_nonempty_isCompact
{ι : Type*} [Fintype ι] (c : ι → ℝ)
(hc0 : ∀ i, 0 ≤ c i) (hc1 : ∑ i, c i = 1) (β : ℝ) (hβ : 0 ≤ β) :
(∃ p : ι → ℝ, (∀ i, 0 ≤ p i) ∧ ∑ i, p i = 1 ∧ ∑ i, |p i - c i| ≤ β) ∧
IsCompact {p : ι → ℝ | (∀ i, 0 ≤ p i) ∧ ∑ i, p i = 1 ∧ ∑ i, |p i - c i| ≤ β} := by
sorry