BanditRLlib
Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.

Lean module · Online foundations

BanditRLProof.OnlineGuessingKernelCausal

Generated source map for this Lean module.

Module map

Declarations
17
Placeholders
0

Imports

BanditRLProof.OnlineGuessingRandomizedIID

Imported by

BanditRLProof

Declarations

Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.

abbrev BanditRL.OnlineLearning.KernelDecisionHistory Compiled

Actions already generated and observations strictly before the current round.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.KernelDecisionHistory

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

abbrev KernelDecisionHistory (t : ℕ) := (Fin t → I) × (Fin t → ℝ)
abbrev BanditRL.OnlineLearning.KernelDecisionSampler Compiled

One sampler at every natural time, fixed without an observation law or horizon.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.KernelDecisionSampler

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

abbrev KernelDecisionSampler := (t : ℕ) → KernelDecisionHistory t → I → I
def BanditRL.OnlineLearning.kernelGeneratedActions Compiled

Real causal recursion: append the sampled action to the previously generated actions.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelGeneratedActions

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def kernelGeneratedActions (f : KernelDecisionSampler) :
    (t : ℕ) → (Fin t → I) → (Fin t → ℝ) → (Fin t → I)
  | 0, _, _ => Fin.elim0
  | t + 1, u, y =>
      let past := kernelGeneratedActions f t (fun i => u i.castSucc) (fun i => y i.castSucc)
      Fin.snoc past (f t (past, fun i => y i.castSucc) (u (Fin.last t)))
def BanditRL.OnlineLearning.kernelCausalPolicy Compiled

Before-reveal policy; input observations have exactly the strict-past length.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelCausalPolicy

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def kernelCausalPolicy (f : KernelDecisionSampler) (t : ℕ)
    (q : (ℕ → I) × (Fin t → ℝ)) : I :=
  f t (kernelGeneratedActions f t (fun i => q.1 i) q.2, q.2) (q.1 t)
def BanditRL.OnlineLearning.kernelGeneratedHistory Compiled

Joint generated action history and strict-past observations on the common sample space.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelGeneratedHistory

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def kernelGeneratedHistory (f : KernelDecisionSampler) (t : ℕ)
    (ω : (ℕ → I) × (ℕ → ℝ)) : KernelDecisionHistory t :=
  (kernelGeneratedActions f t (fun i => ω.1 i) (fun i => ω.2 i), fun i => ω.2 i)
def BanditRL.OnlineLearning.kernelGeneratedPrediction Compiled

A single infinite prediction process, rather than a separate algorithm for each horizon.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelGeneratedPrediction

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def kernelGeneratedPrediction (f : KernelDecisionSampler) (t : ℕ)
    (ω : (ℕ → I) × (ℕ → ℝ)) : I :=
  kernelCausalPolicy f t (ω.1, fun i => ω.2 i)
abbrev BanditRL.OnlineLearning.kernelUniformTapeLaw Compiled

Independent fresh uniform draws form the private infinite tape.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelUniformTapeLaw

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

noncomputable abbrev kernelUniformTapeLaw : Measure (ℕ → I) :=
  Measure.infinitePi (fun _ : ℕ => (volume : Measure I))
abbrev BanditRL.OnlineLearning.kernelGameLaw Compiled

Observation law may have arbitrary temporal dependence for the kernel realization.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelGameLaw

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

noncomputable abbrev kernelGameLaw (ν : ProbabilityMeasure (ℕ → ℝ)) : Measure ((ℕ → I) × (ℕ → ℝ)) :=
  kernelUniformTapeLaw.prod (ν : Measure (ℕ → ℝ))
theorem BanditRL.OnlineLearning.kernel_sampler_family_exists Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernel_sampler_family_exists

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem kernel_sampler_family_exists (κ : (t : ℕ) → Kernel (KernelDecisionHistory t) I) [∀ t, IsMarkovKernel (κ t)] : ∃ f : KernelDecisionSampler, (∀ t, Measurable (Function.uncurry (f t))) ∧ ∀ t h, (volume : Measure I).map (f t h) = κ t h
theorem BanditRL.OnlineLearning.kernelGeneratedActions_measurable Compiled Internal helper

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelGeneratedActions_measurable

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

private theorem kernelGeneratedActions_measurable (f : KernelDecisionSampler) (hf : ∀ t, Measurable (Function.uncurry (f t))) : ∀ t, Measurable (fun q : (Fin t → I) × (Fin t → ℝ) => kernelGeneratedActions f t q.1 q.2)
theorem BanditRL.OnlineLearning.kernel_sampler_causal_process Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernel_sampler_causal_process

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem kernel_sampler_causal_process (f : KernelDecisionSampler) (hf : ∀ t, Measurable (Function.uncurry (f t))) : (∀ t, Measurable (kernelCausalPolicy f t)) ∧ (∀ t (u : ℕ → I) (y : ℕ → ℝ) (i : Fin t), kernelGeneratedActions f t (fun j => u j) (fun j => y j) i = kernelGeneratedPrediction f (i : ℕ) (u, y)) ∧ ∀ t (ω ω' : (ℕ → I) × (ℕ → ℝ)), (∀ i, i ≤ t → ω.1 i = ω'.1 i) → (∀ i, i < t → ω.2 i = ω'.2 i) → kernelGeneratedPrediction f t ω = kernelGeneratedPrediction f t ω'
theorem BanditRL.OnlineLearning.kernelGameLaw_map_tape Compiled Internal helper

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelGameLaw_map_tape

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

private theorem kernelGameLaw_map_tape {β : Type*} [MeasurableSpace β] (ν : ProbabilityMeasure (ℕ → ℝ)) (g : (ℕ → I) → β) (hg : Measurable g) : (kernelGameLaw ν).map (fun ω => g ω.1) = kernelUniformTapeLaw.map g
theorem BanditRL.OnlineLearning.kernelSampler_product_law Compiled Internal helper

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelSampler_product_law

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

private theorem kernelSampler_product_law {H : Type*} [MeasurableSpace H] (m : Measure H) [SFinite m] (κ : Kernel H I) [IsMarkovKernel κ] (f : H → I → I) (hf : Measurable (Function.uncurry f)) (hκ : ∀ h, (volume : Measure I).map (f h) = κ h) : (m.prod (volume : Measure I)).map (fun q => (q.1, f q.1 q.2)) = m ⊗ₘ κ
theorem BanditRL.OnlineLearning.kernel_sampler_joint_law Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernel_sampler_joint_law

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem kernel_sampler_joint_law (κ : (t : ℕ) → Kernel (KernelDecisionHistory t) I) [∀ t, IsMarkovKernel (κ t)] (f : KernelDecisionSampler) (hf : ∀ t, Measurable (Function.uncurry (f t))) (hκ : ∀ t h, (volume : Measure I).map (f t h) = κ t h) (ν : ProbabilityMeasure (ℕ → ℝ)) (t : ℕ) : (kernelGameLaw ν).map (fun ω => (kernelGeneratedHistory f t ω, kernelGeneratedPrediction f t ω)) = (kernelGameLaw ν).map (kernelGeneratedHistory f t) ⊗ₘ κ t
theorem BanditRL.OnlineLearning.kernel_sampler_conditional_law Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernel_sampler_conditional_law

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem kernel_sampler_conditional_law (κ : (t : ℕ) → Kernel (KernelDecisionHistory t) I) [∀ t, IsMarkovKernel (κ t)] (f : KernelDecisionSampler) (hf : ∀ t, Measurable (Function.uncurry (f t))) (hκ : ∀ t h, (volume : Measure I).map (f t h) = κ t h) (ν : ProbabilityMeasure (ℕ → ℝ)) (t : ℕ) : condDistrib (kernelGeneratedPrediction f t) (kernelGeneratedHistory f t) (kernelGameLaw ν) =ᵐ[(kernelGameLaw ν).map (kernelGeneratedHistory f t)] κ t
theorem BanditRL.OnlineLearning.kernelGameLaw_map_observation Compiled Internal helper

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.kernelGameLaw_map_observation

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

private theorem kernelGameLaw_map_observation {β : Type*} [MeasurableSpace β] (ν : ProbabilityMeasure (ℕ → ℝ)) (g : (ℕ → ℝ) → β) (hg : Measurable g) : (kernelGameLaw ν).map (fun ω => g ω.2) = (ν : Measure (ℕ → ℝ)).map g
theorem BanditRL.OnlineLearning.causal_kernel_realization_and_expectedFixed_excess Compiled

No declaration docstring is present; use the chapter context and exact statement below.

Used in these reading views: Online Learning Book

Online Learning: foundations and Follow-the-Leader

Canonical node identitydeclaration:BanditRL.OnlineLearning.causal_kernel_realization_and_expectedFixed_excess

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem causal_kernel_realization_and_expectedFixed_excess (κ : (t : ℕ) → Kernel (KernelDecisionHistory t) I) [∀ t, IsMarkovKernel (κ t)] : ∃ f : KernelDecisionSampler, (∀ t, Measurable (Function.uncurry (f t))) ∧ (∀ t h, (volume : Measure I).map (f t h) = κ t h) ∧ (∀ t, Measurable (kernelCausalPolicy f t)) ∧ (∀ t (u : ℕ → I) (y : ℕ → ℝ) (i : Fin t), kernelGeneratedActions f t (fun j => u j) (fun j => y j) i = kernelGeneratedPrediction f (i : ℕ) (u, y)) ∧ (∀ t (ω ω' : (ℕ → I) × (ℕ → ℝ)), (∀ i, i ≤ t → ω.1 i = ω'.1 i) → (∀ i, i < t → ω.2 i = ω'.2 i) → kernelGeneratedPrediction f t ω = kernelGeneratedPrediction f t ω') ∧ ∀ ν : ProbabilityMeasure (ℕ → ℝ), (∀ t, (kernelGameLaw ν).map (fun ω => (kernelGeneratedHistory f t ω, kernelGeneratedPrediction f t ω)) = (kernelGameLaw ν).map (kernelGeneratedHistory f t) ⊗ₘ κ t) ∧ (∀ t, condDistrib (kernelGeneratedPrediction f t) (kernelGeneratedHistory f t) (kernelGameLaw ν) =ᵐ[(kernelGameLaw ν).map (kernelGeneratedHistory f t)] κ t) ∧ (iIndepFun (fun t (y : ℕ → ℝ) => y t) (ν : Measure (ℕ → ℝ)) → (∀ t, IdentDistrib (fun y : ℕ → ℝ => y t) (fun y : ℕ → ℝ => y 0) (ν : Measure (ℕ → ℝ)) (ν : Measure (ℕ → ℝ))) → (∀ t, ∀ᵐ y ∂(ν : Measure (ℕ → ℝ)), y t ∈ Set.Icc (0 : ℝ) 1) → ∀ T : ℕ, expectedFixedRegret (kernelGameLaw ν) (fun t ω => ω.2 t) (fun t ω => (kernelGeneratedPrediction f t ω : ℝ)) T = (∑ t ∈ Finset.range T, ∫ ω, ((kernelGeneratedPrediction f t ω : ℝ) - ∫ ω, ω.2 0 ∂(kernelGameLaw ν))^2 ∂(kernelGameLaw ν)) ∧ 0 ≤ expectedFixedRegret (kernelGameLaw ν) (fun t ω => ω.2 t) (fun t ω => (kernelGeneratedPrediction f t ω : ℝ)) T)