Documentation

LogOptimalEProcesses.Duality.Minimax

Proposition S1(ii): exactness of Lemma 1 and the minimax identity #

This file proves Proposition S1 of the paper. Part (i) is Setting.exists_isEProcess_versions of Duality/Finite.lean. Part (ii), the identity Γ_T = max_{ξ∈Δ_T} inf_{(E_t)} ∑_t ξ_t R_t(E_t) on every sample space, follows from Sion's minimax theorem (Mathlib's Sion.minimax'). Part (iii), eq. (S11), follows from the primal-dual equivalence of Koolen and Grünwald (2022, Theorem 5), the hypothesis KoolenGrunwaldTheorem5, and from Lemma 1.

As in the paper, Sion's theorem is applied to the bilinear function (ξ, v) ↦ ∑_t ξ_t v_t on Δ_T and the convex set of the vectors that dominate the regrets of some e-process, which needs no topology on e-processes, and the processes (1 − ε)E_t + ε relate the two infima. Before the formalization, the paper applied Sion's theorem to e-processes and stated part (ii) for a finite 𝒳 only (its Section S5).

The simplex Δ_T #

The simplex Δ_T is convex.

The simplex Δ_T is compact, as a closed subset of [0, 1]^{T+1}.

theorem LogOptimal.iSup_probVectors_sum_mul (T : ℕ) (v : Fin (T + 1) → ℝ) :
⨆ ξ ∈ probVectors T, ↑(∑ t : Fin (T + 1), ξ t * v t) = ⨆ (t : Fin (T + 1)), ↑(v t)

The maximum of ∑_t ξ_t v_t over ξ ∈ Δ_T is max_t v_t.

Arithmetic in [−∞, ∞] #

theorem LogOptimal.ereal_le_of_forall_pos_le_add {x y : EReal} (h : ∀ (δ : ℝ), 0 < δ → x ≤ ↑δ + y) :
x ≤ y

The convex set of dominated regret vectors #

theorem LogOptimal.isEProcess_one {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} (h𝔓 : ∀ P ∈ 𝔓, MeasureTheory.IsProbabilityMeasure P) :
IsEProcess 𝔓 fun (x : ℕ) (x_1 : ℕ → 𝒳) => 1

The constant process E_t = 1 is an e-process.

def LogOptimal.regretSet {𝒳 : Type u_1} [MeasurableSpace 𝒳] (𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))) (Q : MeasureTheory.Measure (ℕ → 𝒳)) (Es : ℕ → (ℕ → 𝒳) → ENNReal) (T : ℕ) :
Set (Fin (T + 1) → ℝ)

The set of the vectors v ∈ ℝ^{T+1} with R_t(E_t) ≤ v_t for all t ≤ T, for some e-process (E_t).

Equations
Instances For
    theorem LogOptimal.Setting.integrable_log_of_regret_ne_top {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) {t : ℕ} {E : (ℕ → 𝒳) → ENNReal} (hE : IsEVariable 𝔓 t E) (hR : regret Q (Es t) E ≠ ⊤) :
    MeasureTheory.Integrable (fun (x : ℕ → 𝒳) => (E x).log.toReal) Q ∧ (∀ᵐ (x : ℕ → 𝒳) ∂Q, (E x).log ≠ ⊥ ∧ (E x).log ≠ ⊤) ∧ ePower Q E = ↑(∫ (x : ℕ → 𝒳), (E x).log.toReal ∂Q)

    For E ∈ ℰ_t with a finite regret, log E is Q-integrable and finite Q-almost surely, and E_Q(log E) is the integral of its real part.

    theorem LogOptimal.Setting.regret_combination_le {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) {t : ℕ} {E F : (ℕ → 𝒳) → ENNReal} (hE : IsEVariable 𝔓 t E) (hF : IsEVariable 𝔓 t F) {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hab : a + b = 1) (hG : IsEVariable 𝔓 t fun (x : ℕ → 𝒳) => ENNReal.ofReal a * E x + ENNReal.ofReal b * F x) (hRE : regret Q (Es t) E ≠ ⊤) (hRF : regret Q (Es t) F ≠ ⊤) :
    (regret Q (Es t) fun (x : ℕ → 𝒳) => ENNReal.ofReal a * E x + ENNReal.ofReal b * F x) ≤ ↑a * regret Q (Es t) E + ↑b * regret Q (Es t) F

    The regret is convex in the e-variable: for a, b ≥ 0 with a + b = 1, R_t(aE + bF) ≤ a R_t(E) + b R_t(F), by the concavity of the logarithm.

    theorem LogOptimal.Setting.convex_regretSet {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) (T : ℕ) :
    Convex ℝ (regretSet 𝔓 Q Es T)

    The set regretSet 𝔓 Q Es T is convex, since a convex combination of two e-processes stopped at T is an e-process and the regret is convex.

    theorem LogOptimal.Setting.minimaxRegret_eq_iInf_regretSet {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) (T : ℕ) :
    minimaxRegret 𝔓 Q Es T = ⨅ v ∈ regretSet 𝔓 Q Es T, ⨆ (t : Fin (T + 1)), ↑(v t)

    Γ_T = inf_v max_t v_t over the vectors that dominate the regrets of some e-process.

    theorem LogOptimal.Setting.exists_mem_regretSet_le {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) {E : ℕ → (ℕ → 𝒳) → ENNReal} (hE : IsEProcess 𝔓 E) (T : ℕ) {δ : ℝ} (hδ : 0 < δ) :
    ∃ v ∈ regretSet 𝔓 Q Es T, ∀ (t : Fin (T + 1)), ↑(v t) ≤ ↑δ + regret Q (Es ↑t) (E ↑t)

    For an e-process (E_t) and δ > 0, the process (1 − ε)E_{t∧T} + ε with log{1/(1 − ε)} = δ has finite regrets, at most δ + R_t(E_t) for t ≤ T.

    theorem LogOptimal.Setting.iInf_sum_mul_regret_eq {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) {T : ℕ} {ξ : Fin (T + 1) → ℝ} (hξ : ξ ∈ probVectors T) :
    ⨅ (E : ℕ → (ℕ → 𝒳) → ENNReal), ⨅ (_ : IsEProcess 𝔓 E), ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t) = ⨅ v ∈ regretSet 𝔓 Q Es T, ↑(∑ t : Fin (T + 1), ξ t * v t)

    inf_{(E_t)} ∑_t ξ_t R_t(E_t) = inf_v ∑_t ξ_t v_t over the vectors that dominate the regrets of some e-process.

    theorem LogOptimal.Setting.iSup_iInf_eq_minimaxRegret {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) (T : ℕ) :
    ⨆ ξ ∈ probVectors T, ⨅ v ∈ regretSet 𝔓 Q Es T, ↑(∑ t : Fin (T + 1), ξ t * v t) = minimaxRegret 𝔓 Q Es T

    Sion's minimax theorem with the compact convex set Δ_T, applied to (ξ, v) ↦ ∑_t ξ_t v_t on Δ_T and the convex set of the vectors that dominate the regrets of some e-process: sup_ξ inf_v ∑_t ξ_t v_t = inf_v max_t v_t = Γ_T.

    theorem LogOptimal.Setting.exists_minimax {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) (T : ℕ) :
    ∃ ξ ∈ probVectors T, minimaxRegret 𝔓 Q Es T = ⨅ (E : ℕ → (ℕ → 𝒳) → ENNReal), ⨅ (_ : IsEProcess 𝔓 E), ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t)

    The minimax identity of Proposition S1(ii): some ξ ∈ Δ_T attains Γ_T = max_{ξ∈Δ_T} inf_{(E_t)} ∑_t ξ_t R_t(E_t). The function ξ ↦ inf_v ∑_t ξ_t v_t is upper semicontinuous on the compact set Δ_T, as an infimum of continuous functions.

    Proposition S1 #

    theorem LogOptimal.prop_minimax_proof :
    (∀ (𝒳 : Type u) [inst : MeasurableSpace 𝒳] (𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))) (Q : MeasureTheory.Measure (ℕ → 𝒳)) (Es : ℕ → (ℕ → 𝒳) → ENNReal), Setting 𝔓 Q Es → ∀ (T : ℕ), minimaxRegret 𝔓 Q Es T = 0 → (Finite 𝒳 ∧ MeasurableSingletonClass 𝒳 ∨ ∀ P ∈ 𝔓, (marginal P T).AbsolutelyContinuous (marginal Q T)) → ∃ (Es' : ℕ → (ℕ → 𝒳) → ENNReal), (∀ t ≤ T, Measurable (Es' t) ∧ Es' t =ᵐ[Q] Es t) ∧ IsEProcess 𝔓 fun (t : ℕ) => Es' (min t T)) ∧ (∀ (𝒳 : Type u) [inst : MeasurableSpace 𝒳] (𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))) (Q : MeasureTheory.Measure (ℕ → 𝒳)) (Es : ℕ → (ℕ → 𝒳) → ENNReal), Setting 𝔓 Q Es → ∀ (T : ℕ), ∃ ξ ∈ probVectors T, minimaxRegret 𝔓 Q Es T = ⨅ (E : ℕ → (ℕ → 𝒳) → ENNReal), ⨅ (_ : IsEProcess 𝔓 E), ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t) ∧ ∀ ξ' ∈ probVectors T, ⨅ (E : ℕ → (ℕ → 𝒳) → ENNReal), ⨅ (_ : IsEProcess 𝔓 E), ∑ t : Fin (T + 1), ↑(ξ' t) * regret Q (Es ↑t) (E ↑t) ≤ minimaxRegret 𝔓 Q Es T) ∧ (KoolenGrunwaldTheorem5 → ∀ (𝒳 : Type u) [inst : MeasurableSpace 𝒳] [Finite 𝒳] [MeasurableSingletonClass 𝒳] (𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))) (Q : MeasureTheory.Measure (ℕ → 𝒳)) (Es : ℕ → (ℕ → 𝒳) → ENNReal), Setting 𝔓 Q Es → ∀ (T : ℕ), ∀ ξ ∈ probVectors T, ⨅ (E : ℕ → (ℕ → 𝒳) → ENNReal), ⨅ (_ : IsEProcess 𝔓 E), ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t) = ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) - ⨅ Pbar ∈ stoppedMixtures 𝔓, ↑(InformationTheory.klDiv (stoppedAlternative Q T ξ) Pbar))