Documentation

CslibFrontier.MachineLearning.OnlineLearning.OnlineMirrorDescent

Bregman divergences and adaptive online mirror descent #

Defines the Bregman divergence bregmanDiv ψ gradψ x y = ψ x - ψ y - ⟪gradψ y, x - y⟫ in a real inner product space E, proves the three-point identity and the generalized Pythagorean inequality, and derives static and dynamic regret bounds for Online Mirror Descent (OMD) with time-varying mirror maps, time-varying local seminorms, and optional directional curvature [Hazan2022, Orabona2019].

An adaptive OMD step (IsAdaptiveOMDStep) at round t with mirror map (ψ t, gradψ t) and subgradient g t is characterized by the first-order optimality condition for x (t + 1) ∈ argmin_{y ∈ K} { ⟪g t, y⟫ + bregmanDiv (ψ t) (gradψ t) y (x t) }:

0 ≤ ⟪g t + (gradψ t (x (t + 1)) - gradψ t (x t)), u - x (t + 1)⟫ for all u ∈ K.

Fixed mirror maps with step size η t > 0 (IsOMDStep) embed via (1 / η t) • ψ (IsOMDStep.toAdaptive), and conjugated metric projections L⁻¹ (Π_{L K} (L y)) (covering Euclidean OGD, diagonal AdaGrad, and Mahalanobis ONS) satisfy IsAdaptiveOMDStep directly (isAdaptiveOMDStep_conjMetricProjection).

To support Euclidean (ℓ₂/ℓ₂), non-Euclidean (ℓ₁/ℓ∞), diagonal AdaGrad, and Mahalanobis ONS geometries—including zero-gradient skip rounds (g t = 0, x (t + 1) = x t)—the master inequality (omd_adaptive_regret_le) is parameterized by roundwise local seminorms (primal t, dual t), dynamic comparators u : ℕ → E, and optional directional curvature μ : ℕ → E → E → ℝ.

Main definitions #

Main results #

References #

Exact section, theorem, and page locators below are unverified against primary PDFs (pending an outside-fleet source check).

∑ t < T + 1, 1 / √(t + 1) ≤ 2 √(T + 1) - 1.

noncomputable def Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (ψ : E → ℝ) (gradψ : E → E) (x y : E) :

Bregman divergence generated by a distance-generating function ψ : E → ℝ with gradient map gradψ : E → E: B_ψ(x, y) = ψ x - ψ y - ⟪gradψ y, x - y⟫.

@[simp]
theorem Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_self {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (ψ : E → ℝ) (gradψ : E → E) (x : E) :
bregmanDiv ψ gradψ x x = 0
theorem Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_smul {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (c : ℝ) (ψ : E → ℝ) (gradψ : E → E) (x y : E) :
bregmanDiv (fun (z : E) => c * ψ z) (fun (z : E) => c • gradψ z) x y = c * bregmanDiv ψ gradψ x y

Scaling the generator and its gradient by c : ℝ scales the Bregman divergence by c.

theorem Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_three_point {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (ψ : E → ℝ) (gradψ : E → E) (x y z : E) :
bregmanDiv ψ gradψ x y + bregmanDiv ψ gradψ y z - bregmanDiv ψ gradψ x z = inner ℝ (gradψ z - gradψ y) (x - y)

Bregman three-point identity: for all x, y, z ∈ E, B_ψ(x, y) + B_ψ(y, z) - B_ψ(x, z) = ⟪gradψ z - gradψ y, x - y⟫.

theorem Cslib.MachineLearning.OnlineLearning.OCO.bregman_pythagorean {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (ψ : E → ℝ) (gradψ : E → E) {u y' y : E} (hopt : 0 ≤ inner ℝ (gradψ y' - gradψ y) (u - y')) :
bregmanDiv ψ gradψ u y' + bregmanDiv ψ gradψ y' y ≤ bregmanDiv ψ gradψ u y

Generalized Pythagorean inequality for Bregman projections: if y' satisfies the first-order optimality condition 0 ≤ ⟪gradψ y' - gradψ y, u - y'⟫ against u, then B_ψ(u, y') + B_ψ(y', y) ≤ B_ψ(u, y).

theorem Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_sq_norm_comp_half {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (L : E →ₗ[ℝ] E) (H : E → E) (hHL : ∀ (a b : E), inner ℝ (H a) b = inner ℝ (L a) (L b)) (x y : E) :
bregmanDiv (fun (z : E) => ‖L z‖ ^ 2 / 2) H x y = ‖L (x - y)‖ ^ 2 / 2

For any quadratic generator ψ z = ‖L z‖ ^ 2 / 2 induced by a linear map L : E →ₗ[ℝ] E with gradient H satisfying ⟪H a, b⟫ = ⟪L a, L b⟫, the Bregman divergence is ‖L (x - y)‖ ^ 2 / 2. Subsumes Euclidean (L = id), diagonal AdaGrad, and Mahalanobis ONS potentials.

For the Euclidean generator ψ x = ‖x‖ ^ 2 / 2 with gradient gradψ x = x, the Bregman divergence is half the squared Euclidean distance ‖x - y‖ ^ 2 / 2.

theorem Cslib.MachineLearning.OnlineLearning.OCO.bregmanDiv_smul_sq_norm_half {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (c : ℝ) (x y : E) :
bregmanDiv (fun (z : E) => c * (‖z‖ ^ 2 / 2)) (fun (z : E) => c • z) x y = c * (‖x - y‖ ^ 2 / 2)

Scaled Euclidean Bregman divergence: for ψ z = c * (‖z‖ ^ 2 / 2) with gradient gradψ z = c • z, B_ψ(x, y) = c * (‖x - y‖ ^ 2 / 2).

First-order optimality condition for one adaptive online mirror descent step on K with mirror gradient gradψ (absorbing any step size or preconditioner into gradψ): x' ∈ argmin_{z ∈ K} { ⟪g, z⟫ + B_ψ(z, x) }.

def Cslib.MachineLearning.OnlineLearning.OCO.IsOMDStep {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (K : Set E) (gradψ : E → E) (η : ℝ) (g x x' : E) :

First-order optimality condition for one online mirror descent step on K: x' ∈ argmin_{z ∈ K} { η * ⟪g, z⟫ + B_ψ(z, x) }.

theorem Cslib.MachineLearning.OnlineLearning.OCO.IsOMDStep.toAdaptive {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {gradψ : E → E} {η : ℝ} (hη : 0 < η) {g x x' : E} (h : IsOMDStep K gradψ η g x x') :
IsAdaptiveOMDStep K (fun (z : E) => (1 / η) • gradψ z) g x x'

A fixed-mirror OMD step with positive step size η > 0 is an adaptive OMD step for the rescaled mirror gradient (1 / η) • gradψ.

theorem Cslib.MachineLearning.OnlineLearning.OCO.isAdaptiveOMDStep_conjMetricProjection {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} (hne : K.Nonempty) (hc : IsComplete K) (hK : Convex ℝ K) (L : E ≃L[ℝ] E) (H : E → E) (hHL : ∀ (a b : E), inner ℝ (H a) b = inner ℝ (L a) (L b)) {g x y : E} (hHy : H y = H x - g) :
IsAdaptiveOMDStep K H g x (L.symm (metricProjection (⇑L '' K) (L y)))

Conjugating metricProjection by a continuous linear equivalence L : E ≃L[ℝ] E with associated metric operator H (⟪H a, b⟫ = ⟪L a, L b⟫) produces an adaptive OMD step whenever H y = H x - g.

The metric projection of x - η • g onto a nonempty complete convex set K satisfies IsOMDStep for the Euclidean mirror map gradψ = id.

theorem Cslib.MachineLearning.OnlineLearning.OCO.omd_adaptive_step_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {ψ : E → ℝ} {gradψ : E → E} {primal dual : E → ℝ} {g x x' u : E} (hu : u ∈ K) (hpair : inner ℝ g (x - x') ≤ dual g * primal (x - x')) (hsc : 1 / 2 * primal (x - x') ^ 2 ≤ bregmanDiv ψ gradψ x' x) (hstep : IsAdaptiveOMDStep K gradψ g x x') :
inner ℝ g (x - u) ≤ bregmanDiv ψ gradψ u x - bregmanDiv ψ gradψ u x' + dual g ^ 2 / 2

Fundamental single-step inequality for adaptive local-norm OMD: under local strong convexity (1 / 2) * (primal (x - x')) ^ 2 ≤ B_ψ(x', x) and local dual pairing ⟪g, x - x'⟫ ≤ dual g * primal (x - x'), an adaptive mirror step IsAdaptiveOMDStep K gradψ g x x' satisfies ⟪g, x - u⟫ ≤ B_ψ(u, x) - B_ψ(u, x') + (dual g) ^ 2 / 2.

Zero-gradient skip rounds (g = 0, x' = x, primal = 0, dual = 0, even with ψ = 0) are handled directly with no positivity side conditions.

theorem Cslib.MachineLearning.OnlineLearning.OCO.omd_step_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {ψ : E → ℝ} {gradψ : E → E} {primal dual : E → ℝ} {μ η : ℝ} (hμ : 0 < μ) (hη : 0 ≤ η) (hpair : ∀ (a b : E), inner ℝ a b ≤ dual a * primal b) (hsc : ∀ a ∈ K, ∀ b ∈ K, μ / 2 * primal (b - a) ^ 2 ≤ bregmanDiv ψ gradψ a b) {g x x' u : E} (hx : x ∈ K) (hu : u ∈ K) (hstep : IsOMDStep K gradψ η g x x') :
η * inner ℝ g (x - u) ≤ bregmanDiv ψ gradψ u x - bregmanDiv ψ gradψ u x' + η ^ 2 * dual g ^ 2 / (2 * μ)

Fundamental single-step inequality for online mirror descent: under strong convexity μ / 2 * (primal (b - a)) ^ 2 ≤ B_ψ(a, b) and dual pairing ⟪a, b⟫ ≤ dual a * primal b, a mirror step IsOMDStep K gradψ η g x x' with 0 ≤ η satisfies η * ⟪g, x - u⟫ ≤ B_ψ(u, x) - B_ψ(u, x') + η ^ 2 * dual g ^ 2 / (2 * μ).

theorem Cslib.MachineLearning.OnlineLearning.OCO.bregman_dynamic_regret_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ψ : ℕ → E → ℝ} {gradψ : ℕ → E → E} {μ : ℕ → E → E → ℝ} {f : ℕ → E → ℝ} {g x u : ℕ → E} {stab : ℕ → ℝ} (T : ℕ) (h0_nonneg : T = 0 → 0 ≤ bregmanDiv (ψ 0) (gradψ 0) (u 0) (x 0)) (hT_nonneg : 0 < T → 0 ≤ bregmanDiv (ψ (T - 1)) (gradψ (T - 1)) (u (T - 1)) (x T)) (hcurv : ∀ t < T, f t (x t) - f t (u t) ≤ inner ℝ (g t) (x t - u t) - μ t (u t) (x t)) (hstep : ∀ t < T, inner ℝ (g t) (x t - u t) ≤ bregmanDiv (ψ t) (gradψ t) (u t) (x t) - bregmanDiv (ψ t) (gradψ t) (u t) (x (t + 1)) + stab t) :
∑ t ∈ Finset.range T, (f t (x t) - f t (u t)) ≤ bregmanDiv (ψ 0) (gradψ 0) (u 0) (x 0) + ∑ t ∈ Finset.range (T - 1), (bregmanDiv (ψ (t + 1)) (gradψ (t + 1)) (u (t + 1)) (x (t + 1)) - bregmanDiv (ψ t) (gradψ t) (u t) (x (t + 1))) - ∑ t ∈ Finset.range T, μ t (u t) (x t) + ∑ t ∈ Finset.range T, stab t

Master telescoping inequality for time-varying Bregman descent with dynamic comparators u : ℕ → E, optional directional curvature μ : ℕ → E → E → ℝ, and per-round stability terms stab : ℕ → ℝ. Handles T = 0 cleanly via h0_nonneg.

theorem Cslib.MachineLearning.OnlineLearning.OCO.bregman_scaled_dynamic_sum_inner_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ψ₀ : E → ℝ} {gradψ₀ : E → E} {w : ℕ → ℝ} {g x u : ℕ → E} {stab drift : ℕ → ℝ} {D : ℝ} (T : ℕ) (hw0 : 0 ≤ w 0) (hw_mono : ∀ t < T, w t ≤ w (t + 1)) (hBT_nonneg : 0 ≤ bregmanDiv ψ₀ gradψ₀ (u T) (x (T + 1))) (hD : ∀ t ≤ T, bregmanDiv ψ₀ gradψ₀ (u t) (x t) ≤ D) (hdrift : ∀ t < T, w t * (bregmanDiv ψ₀ gradψ₀ (u (t + 1)) (x (t + 1)) - bregmanDiv ψ₀ gradψ₀ (u t) (x (t + 1))) ≤ drift t) (hstep : ∀ t ≤ T, inner ℝ (g t) (x t - u t) ≤ bregmanDiv (fun (z : E) => w t * ψ₀ z) (fun (z : E) => w t • gradψ₀ z) (u t) (x t) - bregmanDiv (fun (z : E) => w t * ψ₀ z) (fun (z : E) => w t • gradψ₀ z) (u t) (x (t + 1)) + stab t) :
∑ t ∈ Finset.range (T + 1), inner ℝ (g t) (x t - u t) ≤ w T * D + ∑ t ∈ Finset.range T, drift t + ∑ t ∈ Finset.range (T + 1), stab t

Time-varying scaled Bregman telescoping bound over T + 1 rounds: when the round mirror map is w t • ψ₀ with nondecreasing nonnegative weights w, bounded Bregman divergence B_{ψ₀}(u t, x t) ≤ D, and per-step comparator drift bounded by drift t, the linearized dynamic regret is at most w T * D + ∑ t < T, drift t + ∑ t ≤ T, stab t.

theorem Cslib.MachineLearning.OnlineLearning.OCO.omd_adaptive_regret_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {ψ : ℕ → E → ℝ} {gradψ : ℕ → E → E} {primal dual : ℕ → E → ℝ} {μ : ℕ → E → E → ℝ} {f : ℕ → E → ℝ} {g x u : ℕ → E} (T : ℕ) (hu : ∀ t < T, u t ∈ K) (h0_nonneg : T = 0 → 0 ≤ bregmanDiv (ψ 0) (gradψ 0) (u 0) (x 0)) (hT_nonneg : 0 < T → 0 ≤ bregmanDiv (ψ (T - 1)) (gradψ (T - 1)) (u (T - 1)) (x T)) (hpair : ∀ t < T, inner ℝ (g t) (x t - x (t + 1)) ≤ dual t (g t) * primal t (x t - x (t + 1))) (hsc : ∀ t < T, 1 / 2 * primal t (x t - x (t + 1)) ^ 2 ≤ bregmanDiv (ψ t) (gradψ t) (x (t + 1)) (x t)) (hstep : ∀ t < T, IsAdaptiveOMDStep K (gradψ t) (g t) (x t) (x (t + 1))) (hcurv : ∀ t < T, f t (x t) - f t (u t) ≤ inner ℝ (g t) (x t - u t) - μ t (u t) (x t)) :
∑ t ∈ Finset.range T, (f t (x t) - f t (u t)) ≤ bregmanDiv (ψ 0) (gradψ 0) (u 0) (x 0) + ∑ t ∈ Finset.range (T - 1), (bregmanDiv (ψ (t + 1)) (gradψ (t + 1)) (u (t + 1)) (x (t + 1)) - bregmanDiv (ψ t) (gradψ t) (u t) (x (t + 1))) - ∑ t ∈ Finset.range T, μ t (u t) (x t) + 1 / 2 * ∑ t ∈ Finset.range T, dual t (g t) ^ 2

Master dynamic regret bound for adaptive local-norm Online Mirror Descent with time-varying mirror maps (ψ t, gradψ t), time-varying local seminorms (primal t, dual t), dynamic comparators u : ℕ → E, and optional directional curvature μ : ℕ → E → E → ℝ [Orabona2019, Hazan2022] (locators unverified).

Subsumes fixed-mirror OMD (ψ t = ψ / η t), strongly convex OGD (ψ t = (α(t+1)/2) ‖·‖², μ t = (α/2) ‖u - x‖²), diagonal AdaGrad (including ε = 0 skip rounds), and Online Newton Step (ψ t(z) = (β/2) zᵀ A_{t+1} z, μ t(u, x) = (β/2) ⟪g t, u - x⟫²).

theorem Cslib.MachineLearning.OnlineLearning.OCO.omd_sum_inner_le_of_const {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {ψ : E → ℝ} {gradψ : E → E} {primal dual : E → ℝ} {μ η : ℝ} (hμ : 0 < μ) (hη : 0 < η) (hpair : ∀ (a b : E), inner ℝ a b ≤ dual a * primal b) (hsc : ∀ a ∈ K, ∀ b ∈ K, μ / 2 * primal (b - a) ^ 2 ≤ bregmanDiv ψ gradψ a b) (grad : ℕ → E → E) (x : ℕ → E) (T : ℕ) (hx0 : x 0 ∈ K) (hstep : ∀ t < T, IsOMDStep K gradψ η (grad t (x t)) (x t) (x (t + 1))) {u : E} (hu : u ∈ K) :
∑ t ∈ Finset.range T, inner ℝ (grad t (x t)) (x t - u) ≤ bregmanDiv ψ gradψ u (x 0) / η + η / (2 * μ) * ∑ t ∈ Finset.range T, dual (grad t (x t)) ^ 2

Telescoping inner-product bound for online mirror descent with a constant step size η > 0.

theorem Cslib.MachineLearning.OnlineLearning.OCO.omd_regret_le_const {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {ψ : E → ℝ} {gradψ : E → E} {primal dual : E → ℝ} {μ η B G : ℝ} (hμ : 0 < μ) (hη : 0 < η) (hG : 0 ≤ G) (hpair : ∀ (a b : E), inner ℝ a b ≤ dual a * primal b) (hsc : ∀ a ∈ K, ∀ b ∈ K, μ / 2 * primal (b - a) ^ 2 ≤ bregmanDiv ψ gradψ a b) (f : ℕ → E → ℝ) (grad : ℕ → E → E) (x : ℕ → E) (T : ℕ) (hx0 : x 0 ∈ K) (hstep : ∀ t < T, IsOMDStep K gradψ η (grad t (x t)) (x t) (x (t + 1))) (hsub : ∀ t < T, ∀ a ∈ K, ∀ b ∈ K, f t a + inner ℝ (grad t a) (b - a) ≤ f t b) (hdual_nonneg : ∀ t < T, 0 ≤ dual (grad t (x t))) (hgrad : ∀ t < T, dual (grad t (x t)) ≤ G) {u : E} (hu : u ∈ K) (hB : bregmanDiv ψ gradψ u (x 0) ≤ B) :
∑ t ∈ Finset.range T, (f t (x t) - f t u) ≤ B / η + ↑T * η * G ^ 2 / (2 * μ)

Static regret of online mirror descent with a constant step size η > 0: ∑ t < T, (f t (x t) - f t u) ≤ B / η + T * η * G ^ 2 / (2 * μ).

theorem Cslib.MachineLearning.OnlineLearning.OCO.omd_regret_le_tuned {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {ψ : E → ℝ} {gradψ : E → E} {primal dual : E → ℝ} {μ B G : ℝ} (hμ : 0 < μ) (hB_pos : 0 < B) (hG : 0 < G) (hpair : ∀ (a b : E), inner ℝ a b ≤ dual a * primal b) (hsc : ∀ a ∈ K, ∀ b ∈ K, μ / 2 * primal (b - a) ^ 2 ≤ bregmanDiv ψ gradψ a b) (f : ℕ → E → ℝ) (grad : ℕ → E → E) (x : ℕ → E) (T : ℕ) (hT : 0 < T) (hx0 : x 0 ∈ K) (hstep : ∀ t < T, IsOMDStep K gradψ (√(2 * μ * B) / (G * √↑T)) (grad t (x t)) (x t) (x (t + 1))) (hsub : ∀ t < T, ∀ a ∈ K, ∀ b ∈ K, f t a + inner ℝ (grad t a) (b - a) ≤ f t b) (hdual_nonneg : ∀ t < T, 0 ≤ dual (grad t (x t))) (hgrad : ∀ t < T, dual (grad t (x t)) ≤ G) {u : E} (hu : u ∈ K) (hB : bregmanDiv ψ gradψ u (x 0) ≤ B) :
∑ t ∈ Finset.range T, (f t (x t) - f t u) ≤ G * √(2 * B * ↑T / μ)

Static regret of online mirror descent with horizon-tuned constant step size η = √(2 * μ * B) / (G * √T): ∑ t < T, (f t (x t) - f t u) ≤ G * √(2 * B * T / μ) [Hazan2022, Orabona2019]. In the Euclidean case μ = 1, B = D ^ 2 / 2, this recovers G * D * √T.

theorem Cslib.MachineLearning.OnlineLearning.OCO.omd_sum_inner_le {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {ψ : E → ℝ} {gradψ : E → E} {primal dual : E → ℝ} {μ D : ℝ} (hμ : 0 < μ) (hpair : ∀ (a b : E), inner ℝ a b ≤ dual a * primal b) (hsc : ∀ a ∈ K, ∀ b ∈ K, μ / 2 * primal (b - a) ^ 2 ≤ bregmanDiv ψ gradψ a b) (η : ℕ → ℝ) (hη_pos : ∀ (t : ℕ), 0 < η t) (hη_anti : ∀ (t : ℕ), η (t + 1) ≤ η t) (grad : ℕ → E → E) (x : ℕ → E) (T : ℕ) (hx0 : x 0 ∈ K) (hstep : ∀ t ≤ T, IsOMDStep K gradψ (η t) (grad t (x t)) (x t) (x (t + 1))) {u : E} (hu : u ∈ K) (hD : ∀ t ≤ T, bregmanDiv ψ gradψ u (x t) ≤ D) :
∑ t ∈ Finset.range (T + 1), inner ℝ (grad t (x t)) (x t - u) ≤ D / η T + ∑ t ∈ Finset.range (T + 1), η t * dual (grad t (x t)) ^ 2 / (2 * μ)

Telescoping inner-product bound for online mirror descent with arbitrary nonincreasing positive step sizes η : ℕ → ℝ on a domain whose Bregman divergence to u is bounded by D.

theorem Cslib.MachineLearning.OnlineLearning.OCO.omd_regret_le_sqrt {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {K : Set E} {ψ : E → ℝ} {gradψ : E → E} {primal dual : E → ℝ} {μ D G : ℝ} (hμ : 0 < μ) (hD_pos : 0 < D) (hG : 0 < G) (hpair : ∀ (a b : E), inner ℝ a b ≤ dual a * primal b) (hsc : ∀ a ∈ K, ∀ b ∈ K, μ / 2 * primal (b - a) ^ 2 ≤ bregmanDiv ψ gradψ a b) (f : ℕ → E → ℝ) (grad : ℕ → E → E) (x : ℕ → E) (T : ℕ) (hx0 : x 0 ∈ K) (hstep : ∀ t < T, IsOMDStep K gradψ (√(μ * D) / (G * √(↑t + 1))) (grad t (x t)) (x t) (x (t + 1))) (hsub : ∀ t < T, ∀ a ∈ K, ∀ b ∈ K, f t a + inner ℝ (grad t a) (b - a) ≤ f t b) (hdual_nonneg : ∀ t < T, 0 ≤ dual (grad t (x t))) (hgrad : ∀ t < T, dual (grad t (x t)) ≤ G) {u : E} (hu : u ∈ K) (hD : ∀ t < T, bregmanDiv ψ gradψ u (x t) ≤ D) :
∑ t ∈ Finset.range T, (f t (x t) - f t u) ≤ 2 * G * √(D * ↑T / μ)

Horizon-independent static regret of online mirror descent with step sizes η t = √(μ * D) / (G * √(t + 1)): ∑ t < T, (f t (x t) - f t u) ≤ 2 * G * √(D * T / μ) for all T : ℕ. In the Euclidean case μ = 1, D = diam ^ 2 / 2, this gives √2 * G * diam * √T.