Eq. (4), p. 19 — X_i(c_(1)) + ··· + X_i(c_(j)) ≤ m_i(c_(j)) + 1 for contexts ordered by decreasing gap
ProvedCrossLearnCB.UCB1CL.eq_4Fix an arm , a horizon , a context sequence and an arm sequence, and a set of contexts. Enumerate as so that the gaps are positive and non-increasing,
so that , where . Let be the number of rounds with , and , where counts the pulls of arm in contexts of before round . Then for every ,
This system of inequalities is the combinatorial core of the bound on the pre-regret (Lemma 3): weighting the -th inequality by and summing bounds the pre-regret incurred on one clique of a clique cover.
Formalization Note. The page prints the right-hand sides as ; the statement holds only with , because takes the values while it is at most , i.e. up to rounds (with not an integer the printed first row fails). The inequality is pathwise: it holds for every arm and context sequence, and for any set , not only a clique of . The enumeration is an injective map with image ; Lean indices are 0-based. Positive gaps are required because Lean's is rather than .
import Mathlib import Definitions.Def_CrossLearnCB_UCB1CL_Model open MeasureTheory ProbabilityTheory
namespace CrossLearnCB.UCB1CL
/-- System (4), p. 19, with the right-hand sides `m_i(c_(j)) + 1`: for contexts `e 0, …, e (n-1)`
enumerating `S` in order of non-increasing positive gap, the counts `X_i(c_(k))` for `k ≤ j`
sum to at most `m_i(c_(j)) + 1`. Pathwise, for any arm and context sequences. -/
theorem eq_4 {K C : ℕ} (gap : Fin K → Fin C → ℝ) (ctx : ℕ → Fin C) (I : ℕ → Fin K) (T : ℕ)
(i : Fin K) (S : Finset (Fin C)) {n : ℕ} (e : Fin n → Fin C)
(he : Function.Injective e) (hrange : Set.range e = ↑S)
(hpos : ∀ k, 0 < gap i (e k))
(hord : ∀ k l, k ≤ l → gap i (e l) ≤ gap i (e k)) (j : Fin n) :
(∑ k ∈ Finset.univ.filter (fun k : Fin n => k ≤ j), (cliqueX gap ctx I T i S (e k) : ℝ))
≤ mThr T (gap i (e j)) + 1 := by sorry
end CrossLearnCB.UCB1CL
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.