Theorem 3, p. 20 — with ε = d/T, EllipsoidalCones has regret O(d² ln(T tan α(C₀))), or O(d) when α(C₀) ≤ arctan(d/T)
ProvedCtxInvOpt.Pointed.theorem3_pointed_regretRun EllipsoidalCones with . There is an absolute constant such that the following holds for every cost dimension , action dimension and horizon . Let be closed and nonempty with , let , let and for every (chosen by nature, possibly adaptively), and consider any run of the algorithm. Then:
- if ,
- if ,
Since the bound holds for every and every admissible instance sequence, it bounds the worst-case regret . This is the paper's logarithmic-regret guarantee for a pointed initial knowledge set, in contrast with the linear regret the greedy circumcenter policy can incur.
Formalization Note is read as an absolute constant chosen before , , , and the run. In case 1, , so the logarithm is positive. The hypothesis excludes the degenerate case where is a single point and the algorithm's is not positive definite (the regret is then ). The sentence "This algorithm runs in polynomial time in and " is not formalized. The worst-case regret is stated as a bound for every , instance and run rather than as a real supremum. Lean periods are -based and the regret sums the Lean periods .
import Mathlib import Definitions.Def_CtxInvOpt_Pointed_Run
namespace CtxInvOpt.Pointed
open Matrix
/-- **Theorem 3, p. 20.** There is an absolute constant `K` such that, for every dimension `d = m + 1 ≥ 2`,
action dimension `n ≥ 1`, horizon `T ≥ 1`, closed pointed initial knowledge set `C₀ ⊆ S^d` with
`0 < α(C₀) < π/2`, true cost `c⋆ ∈ C₀`, admissible instance sequence and every run of EllipsoidalCones
with `ε = d/T`: if `α(C₀) > arctan(d/T)` the regret over `T` periods is at most
`K d² ln(T tan α(C₀))`, and if `α(C₀) ≤ arctan(d/T)` it is at most `K d`. -/
theorem theorem3_pointed_regret :
∃ K : ℝ, ∀ (m n T : ℕ), 1 ≤ m → 1 ≤ n → 1 ≤ T →
∀ C0 : Set (EuclideanSpace ℝ (Fin (m + 1))), IsClosed C0 → C0 ⊆ CtxInvOpt.Offline.unitSphere (m + 1) →
C0.Nonempty → 0 < CtxInvOpt.Offline.uncAngle C0 → CtxInvOpt.Offline.uncAngle C0 < Real.pi / 2 →
∀ cstar ∈ C0,
∀ (X : ℕ → Set (EuclideanSpace ℝ (Fin n)))
(f : ℕ → EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin (m + 1)))
(xpi xstar : ℕ → EuclideanSpace ℝ (Fin n)) (w : ℕ → Fin m → ℝ)
(U : ℕ → Matrix (Fin (m + 1)) (Fin (m + 1)) ℝ),
(∀ t, CtxInvOpt.Offline.IsActionSet (X t)) → (∀ t, CtxInvOpt.Offline.IsContext (f t)) →
IsEllConesRun (((m : ℝ) + 1) / T) C0 cstar X f xpi xstar w U →
(Real.arctan (((m : ℝ) + 1) / T) < CtxInvOpt.Offline.uncAngle C0 →
CtxInvOpt.Greedy.cumRegret cstar f xpi xstar T ≤
K * ((m : ℝ) + 1) ^ 2 * Real.log (T * Real.tan (CtxInvOpt.Offline.uncAngle C0))) ∧
(CtxInvOpt.Offline.uncAngle C0 ≤ Real.arctan (((m : ℝ) + 1) / T) →
CtxInvOpt.Greedy.cumRegret cstar f xpi xstar T ≤ K * ((m : ℝ) + 1)) := by sorry
end CtxInvOpt.Pointed
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.