Documentation

LogOptimalEProcesses.Duality.Lemma

Lemma 1 (Lower bound by duality) and Remark 2 #

This file proves Lemma 1 of the paper and Remark 2, following their proofs in Section S1.3, and eq. (S14) of Section S2.2.

With the convention of eIntegral, the identity ∫ log H dQ^ξ = ∑_t ξ_t E_Q(log E_t) holds in [−∞, ∞] for every H, and, as in the paper, no bound on the integral of log⁺ H is needed. Remark 2 is proved, as in the paper, by the inequality (S3) applied once on the pairs (t, x^t), to the function H(t, x^t) = E*_t(x^t) 1(t ≤ T): since the stopping times of P̄ do not depend on the data, ∫ H dP̄ is an average of E_{P_λ}(E*_t) over data-independent times t, hence at most one. The paper adopted both arguments after the formalization (its Section S5).

Arithmetic in [−∞, ∞] #

theorem LogOptimal.ereal_sum_ne_top {ι : Type u_1} (s : Finset ι) {b : ι → EReal} (hb : ∀ i ∈ s, b i ≠ ⊤) :
∑ i ∈ s, b i ≠ ⊤
theorem LogOptimal.ereal_sum_ne_bot {ι : Type u_1} (s : Finset ι) {b : ι → EReal} (hb : ∀ i ∈ s, b i ≠ ⊥) :
∑ i ∈ s, b i ≠ ⊥
theorem LogOptimal.ereal_sum_sub {ι : Type u_1} (s : Finset ι) (a b : ι → EReal) (hb : (∀ i ∈ s, b i ≠ ⊤) ∨ ∀ i ∈ s, b i ≠ ⊥) :
∑ i ∈ s, (a i - b i) = ∑ i ∈ s, a i - ∑ i ∈ s, b i

A finite sum of differences in [−∞, ∞] is the difference of the sums, when the subtracted terms do not take both values −∞ and ∞.

theorem LogOptimal.coe_ennreal_finsetSum {ι : Type u_1} (s : Finset ι) (f : ι → ENNReal) :
↑(∑ i ∈ s, f i) = ∑ i ∈ s, ↑(f i)
theorem LogOptimal.coe_mul_coe_ennreal_sub {c : ℝ} (hc : 0 ≤ c) (p n : ENNReal) :
↑c * (↑p - ↑n) = ↑(ENNReal.ofReal c * p) - ↑(ENNReal.ofReal c * n)

For c ≥ 0 and p, n ∈ [0, ∞], c(p − n) = (cp) − (cn) in [−∞, ∞], with the convention 0 × ∞ = 0.

theorem LogOptimal.sum_coe_mul_coe_ennreal_sub {ι : Type u_1} (s : Finset ι) {ξ : ι → ℝ} (hξ : ∀ (i : ι), 0 ≤ ξ i) (p n : ι → ENNReal) :
∑ i ∈ s, ↑(ξ i) * (↑(p i) - ↑(n i)) = ↑(∑ i ∈ s, ENNReal.ofReal (ξ i) * p i) - ↑(∑ i ∈ s, ENNReal.ofReal (ξ i) * n i)

The sum over the times of the weighted expectations of the positive and negative parts.

theorem LogOptimal.coe_sub_coe_sub (a : ℝ) (y : EReal) :
↑a - (↑a - y) = y

For a real a, y ↦ a − y is an involution of [−∞, ∞].

theorem LogOptimal.coe_sub_iInf {ι : Sort u_1} (a : ℝ) (z : ι → EReal) :
↑a - ⨅ (i : ι), z i = ⨆ (i : ι), ↑a - z i

For a real a, a − inf_i z_i = sup_i (a − z_i).

theorem LogOptimal.coe_sub_iSup {ι : Sort u_1} (a : ℝ) (z : ι → EReal) :
↑a - ⨆ (i : ι), z i = ⨅ (i : ι), ↑a - z i

For a real a, a − sup_i z_i = inf_i (a − z_i).

The inequality of the Donsker–Varadhan variational formula #

theorem LogOptimal.eIntegral_log_le_klDiv {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ ν : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] [MeasureTheory.IsProbabilityMeasure ν] {H : Ω → ENNReal} (hH : Measurable H) (hHν : ∫⁻ (ω : Ω), H ω ∂ν ≤ 1) :
(eIntegral μ fun (ω : Ω) => (H ω).log) ≤ ↑(InformationTheory.klDiv μ ν)

The inequality of the Donsker–Varadhan variational formula, eq. (S3) (Donsker and Varadhan, 1983, eq. (2.1) and Theorem 2.1): for probability measures μ and ν and a measurable H ≥ 0 with ∫ H dν ≤ 1, ∫ log H dμ ≤ KL(μ ‖ ν). With f = dμ/dν, Jensen's inequality gives ∫ log H dμ − KL(μ ‖ ν) = ∫ log(H/f) dμ ≤ log ∫ (H/f) dμ ≤ log ∫ H dν ≤ 0.

The function H(t, x^t) = E_t(x^t) on the pairs (t, x^t) #

noncomputable def LogOptimal.stoppedPathValue {𝒳 : Type u_1} (E : ℕ → (ℕ → 𝒳) → ENNReal) (p : StoppedPath 𝒳) :

The function H(t, x^t) = E_t(x^t) on the pairs (t, x^t) of Section 3 (proof of Lemma 1), including t = ∞, where E_∞ = limsup_t E_t.

Equations
Instances For
    theorem LogOptimal.stoppedPathValue_mk_coe {𝒳 : Type u_1} (E : ℕ → (ℕ → 𝒳) → ENNReal) (t : ℕ) (x : ℕ → 𝒳) :
    stoppedPathValue E (StoppedPath.mk (↑t) x) = E t x
    theorem LogOptimal.stoppedPathValue_mk {𝒳 : Type u_1} (E : ℕ → (ℕ → 𝒳) → ENNReal) (τ : (ℕ → 𝒳) → ↑unitInterval → ℕ∞) (x : ℕ → 𝒳) (v : ↑unitInterval) :
    theorem LogOptimal.measurable_stoppedPathValue {𝒳 : Type u_1} [MeasurableSpace 𝒳] {E : ℕ → (ℕ → 𝒳) → ENNReal} (hE : ∀ (t : ℕ), Measurable (E t)) :

    For an adapted process (E_t), the function H(t, x^t) = E_t(x^t) is measurable for the σ-algebra of the pairs (t, x^t).

    Integrals against the stopped alternative Q^ξ #

    theorem LogOptimal.lintegral_stoppedAlternative {𝒳 : Type u_1} [MeasurableSpace 𝒳] (Q : MeasureTheory.Measure (ℕ → 𝒳)) (T : ℕ) (ξ : Fin (T + 1) → ℝ) {g : StoppedPath 𝒳 → ENNReal} (hg : Measurable g) :
    ∫⁻ (p : StoppedPath 𝒳), g p ∂stoppedAlternative Q T ξ = ∑ t : Fin (T + 1), ENNReal.ofReal (ξ t) * ∫⁻ (x : ℕ → 𝒳), g (StoppedPath.mk (↑↑t) x) ∂Q

    The integral of a measurable g ≥ 0 against Q^ξ is ∑_t ξ_t E_Q{g(t, X^t)}.

    For ξ ∈ Δ_T and a probability measure Q, Q^ξ is a probability measure.

    theorem LogOptimal.eIntegral_stoppedAlternative_log {𝒳 : Type u_1} [MeasurableSpace 𝒳] (Q : MeasureTheory.Measure (ℕ → 𝒳)) {T : ℕ} {ξ : Fin (T + 1) → ℝ} (hξ : ∀ (t : Fin (T + 1)), 0 ≤ ξ t) {H : StoppedPath 𝒳 → ENNReal} (hH : Measurable H) {E : ℕ → (ℕ → 𝒳) → ENNReal} (hHE : ∀ (t : ℕ) (x : ℕ → 𝒳), t ≤ T → H (StoppedPath.mk (↑t) x) = E t x) :
    (eIntegral (stoppedAlternative Q T ξ) fun (p : StoppedPath 𝒳) => (H p).log) = ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (E ↑t)

    ∫ log H dQ^ξ = ∑_t ξ_t E_Q(log E_t) when H(t, x^t) = E_t(x^t) for t ≤ T (proof of Lemma 1), with the convention 0 × ∞ = 0.

    Mixtures of stopped null distributions #

    theorem LogOptimal.lintegral_stoppedMixture_le_one {𝒳 : Type u_1} [MeasurableSpace 𝒳] {Λ : Type u_2} [MeasurableSpace Λ] {π : MeasureTheory.Measure Λ} [MeasureTheory.IsProbabilityMeasure π] {κ : ProbabilityTheory.Kernel Λ (ℕ → 𝒳)} [ProbabilityTheory.IsMarkovKernel κ] {F : (Λ × (ℕ → 𝒳)) × ↑unitInterval → ENNReal} (hF : Measurable F) (h : ∀ (a : Λ), ∫⁻ (z : (ℕ → 𝒳) × ↑unitInterval), F ((a, z.1), z.2) ∂(κ a).prod MeasureTheory.volume ≤ 1) :
    ∫⁻ (p : (Λ × (ℕ → 𝒳)) × ↑unitInterval), F p ∂(π.compProd κ).prod MeasureTheory.volume ≤ 1

    Fubini's theorem for mixtures of stopped null distributions, eq. (S4): if the integral of F((λ, ·), ·) against P_λ ⊗ U[0, 1] is at most one for every λ, then the integral of F against (π ⊗ κ) ⊗ U[0, 1] is at most one.

    theorem LogOptimal.measurable_stoppedMixtureMap {𝒳 : Type u_1} [MeasurableSpace 𝒳] {Λ : Type u_2} [MeasurableSpace Λ] {τ : Λ → (ℕ → 𝒳) → ↑unitInterval → ℕ∞} (hτ : Measurable fun (p : Λ × (ℕ → 𝒳) × ↑unitInterval) => τ p.1 p.2.1 p.2.2) :
    Measurable fun (p : (Λ × (ℕ → 𝒳)) × ↑unitInterval) => StoppedPath.mk (τ p.1.1 p.1.2 p.2) p.1.2

    The map ((λ, x), u) ↦ (τ_λ(x, u), x^{τ_λ(x, u)}) of a mixture in ℬ is measurable.

    theorem LogOptimal.Setting.sum_mul_ePower_le_klDiv {𝒳 : 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} (hE : IsEProcess 𝔓 E) {Pbar : MeasureTheory.Measure (StoppedPath 𝒳)} (hPbar : Pbar ∈ stoppedMixtures 𝔓) :
    ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (E ↑t) ≤ ↑(InformationTheory.klDiv (stoppedAlternative Q T ξ) Pbar)

    The e-power is at most the divergence (Section 3, proved in Section S1.3): for every e-process (E_t), every ξ ∈ Δ_T, and every P̄ ∈ ℬ, ∑_t ξ_t E_Q(log E_t) ≤ KL(Q^ξ ‖ P̄). With H(t, x^t) = E_t(x^t), Fubini's theorem and the second inequality in (1), randomized, give ∫ H dP̄ ≤ 1 (S4), and the inequality (S3) gives ∫ log H dQ^ξ ≤ KL(Q^ξ ‖ P̄).

    Lemma 1 #

    theorem LogOptimal.Setting.sum_mul_ePower_numeraire {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) (T : ℕ) (ξ : Fin (T + 1) → ℝ) :
    ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) = ↑(∑ t : Fin (T + 1), ξ t * ∫ (x : ℕ → 𝒳), (Es (↑t) x).log.toReal ∂Q)

    The weighted optimal e-power ∑_t ξ_t E_Q(log E*_t) is a real number.

    theorem LogOptimal.Setting.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ξ : ∀ (t : Fin (T + 1)), 0 ≤ ξ t) {E : ℕ → (ℕ → 𝒳) → ENNReal} (hE : ∀ t ≤ T, IsEVariable 𝔓 t (E t)) :
    ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t) = ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) - ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (E ↑t)

    Lemma S1, summed over the times with the weights ξ_t ≥ 0 and the convention 0 × ∞ = 0: ∑_t ξ_t R_t(E_t) = ∑_t ξ_t E_Q(log E*_t) − ∑_t ξ_t E_Q(log E_t) when E_t ∈ ℰ_t for t ≤ T.

    theorem LogOptimal.Setting.sum_mul_regret_ge {𝒳 : 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} (hE : IsEProcess 𝔓 E) {Pbar : MeasureTheory.Measure (StoppedPath 𝒳)} (hPbar : Pbar ∈ stoppedMixtures 𝔓) :
    ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) - ↑(InformationTheory.klDiv (stoppedAlternative Q T ξ) Pbar) ≤ ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t)

    Lemma 1, eq. (5): ∑_t ξ_t R_t(E_t) ≥ ∑_t ξ_t E_Q(log E*_t) − KL(Q^ξ ‖ P̄).

    theorem LogOptimal.Setting.sum_mul_regret_le_iSup {𝒳 : 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} (hE : IsEProcess 𝔓 E) :
    ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t) ≤ ⨆ (t : ℕ), ⨆ (_ : t ≤ T), regret Q (Es t) (E t)

    ∑_t ξ_t R_t(E_t) ≤ max_{t ≤ T} R_t(E_t) for ξ ∈ Δ_T, since the regrets are nonnegative.

    theorem LogOptimal.Setting.sum_mul_ePower_sub_klDiv_le_minimaxRegret {𝒳 : Type u_1} [MeasurableSpace 𝒳] {𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))} {Q : MeasureTheory.Measure (ℕ → 𝒳)} {Es : ℕ → (ℕ → 𝒳) → ENNReal} (hS : Setting 𝔓 Q Es) {T : ℕ} {ξ : Fin (T + 1) → ℝ} (hξ : ξ ∈ probVectors T) {Pbar : MeasureTheory.Measure (StoppedPath 𝒳)} (hPbar : Pbar ∈ stoppedMixtures 𝔓) :
    ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) - ↑(InformationTheory.klDiv (stoppedAlternative Q T ξ) Pbar) ≤ minimaxRegret 𝔓 Q Es T

    Lemma 1 for one mixture: Γ_T ≥ ∑_t ξ_t E_Q(log E*_t) − KL(Q^ξ ‖ P̄) for every ξ ∈ Δ_T and every P̄ ∈ ℬ, from eq. (5) and max_{t≤T} R_t(E_t) ≥ ∑_t ξ_t R_t(E_t).

    theorem LogOptimal.sec3_epower_le_kl_proof (𝒳 : Type u) [MeasurableSpace 𝒳] (𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))) (Q : MeasureTheory.Measure (ℕ → 𝒳)) (Es : ℕ → (ℕ → 𝒳) → ENNReal) :
    Setting 𝔓 Q Es → ∀ (T : ℕ), ∀ ξ ∈ probVectors T, ∀ (E : ℕ → (ℕ → 𝒳) → ENNReal), IsEProcess 𝔓 E → ∀ Pbar ∈ stoppedMixtures 𝔓, ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (E ↑t) ≤ ↑(InformationTheory.klDiv (stoppedAlternative Q T ξ) Pbar)
    theorem LogOptimal.lem_duality_proof (𝒳 : Type u) [MeasurableSpace 𝒳] (𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))) (Q : MeasureTheory.Measure (ℕ → 𝒳)) (Es : ℕ → (ℕ → 𝒳) → ENNReal) :
    Setting 𝔓 Q Es → ∀ (T : ℕ), ∀ ξ ∈ probVectors T, (∀ (E : ℕ → (ℕ → 𝒳) → ENNReal), IsEProcess 𝔓 E → ∀ Pbar ∈ stoppedMixtures 𝔓, ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) - ↑(InformationTheory.klDiv (stoppedAlternative Q T ξ) Pbar) ≤ ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t)) ∧ ⨅ (E : ℕ → (ℕ → 𝒳) → ENNReal), ⨅ (_ : IsEProcess 𝔓 E), ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t) ≤ minimaxRegret 𝔓 Q Es T ∧ ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) - ⨅ Pbar ∈ stoppedMixtures 𝔓, ↑(InformationTheory.klDiv (stoppedAlternative Q T ξ) Pbar) ≤ ⨅ (E : ℕ → (ℕ → 𝒳) → ENNReal), ⨅ (_ : IsEProcess 𝔓 E), ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t)
    theorem LogOptimal.eq_S_epower_proof (𝒳 : Type u) [MeasurableSpace 𝒳] (𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))) (Q : MeasureTheory.Measure (ℕ → 𝒳)) (Es : ℕ → (ℕ → 𝒳) → ENNReal) :
    Setting 𝔓 Q Es → ∀ (T : ℕ), ∀ ξ ∈ probVectors T, ⨆ (E : ℕ → (ℕ → 𝒳) → ENNReal), ⨆ (_ : IsEProcess 𝔓 E), ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (E ↑t) = ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) - ⨅ (E : ℕ → (ℕ → 𝒳) → ENNReal), ⨅ (_ : IsEProcess 𝔓 E), ∑ t : Fin (T + 1), ↑(ξ t) * regret Q (Es ↑t) (E ↑t)
    theorem LogOptimal.rem_deterministic_proof (𝒳 : Type u) [MeasurableSpace 𝒳] (𝔓 : Set (MeasureTheory.Measure (ℕ → 𝒳))) (Q : MeasureTheory.Measure (ℕ → 𝒳)) (Es : ℕ → (ℕ → 𝒳) → ENNReal) :
    Setting 𝔓 Q Es → ∀ (T : ℕ), ∀ ξ ∈ probVectors T, ∀ (Λ : Type u) [inst : MeasurableSpace Λ] (π : MeasureTheory.Measure Λ) (κ : ProbabilityTheory.Kernel Λ (ℕ → 𝒳)) (τ : Λ → (ℕ → 𝒳) → ↑unitInterval → ℕ∞), MeasureTheory.IsProbabilityMeasure π → ProbabilityTheory.IsMarkovKernel κ → (∀ (a : Λ), κ a ∈ 𝔓) → (Measurable fun (p : Λ × (ℕ → 𝒳) × ↑unitInterval) => τ p.1 p.2.1 p.2.2) → (∀ (a : Λ), IsRandomizedStoppingTime (τ a)) → (∀ (a : Λ) (x x' : ℕ → 𝒳) (u : ↑unitInterval), τ a x u = τ a x' u) → have Pbar := MeasureTheory.Measure.map (fun (p : (Λ × (ℕ → 𝒳)) × ↑unitInterval) => StoppedPath.mk (τ p.1.1 p.1.2 p.2) p.1.2) ((π.compProd κ).prod MeasureTheory.volume); ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) ≤ ↑(InformationTheory.klDiv (stoppedAlternative Q T ξ) Pbar) ∧ ∑ t : Fin (T + 1), ↑(ξ t) * ePower Q (Es ↑t) - ↑(InformationTheory.klDiv (stoppedAlternative Q T ξ) Pbar) ≤ 0