Lean module · Foundations
BanditRLProof.Algorithms.CUCBFiniteExample
A finite noisy triggered-feedback witness. Independent primitive coordinates produce three Bernoulli arms and a fresh extra-trigger coin.
Module map
Imports
BanditRLProof.Algorithms.CUCBSourceModel, BanditRLProof.Algorithms.ThompsonRecursiveSampler
Imported by
BanditRLProof, BanditRLProof.Algorithms.CUCBFiniteSourceExample
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
abbrev
BanditRLProof.CUCB.FiniteExample.Sample
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.SampleReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
abbrev Sample
def
BanditRLProof.CUCB.FiniteExample.sampleLaw
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.sampleLawReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def sampleLaw : Measure Sample
def
BanditRLProof.CUCB.FiniteExample.bit
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.bitReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def bit (b : Bool) : UnitOutcome
def
BanditRLProof.CUCB.FiniteExample.outcome
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.outcomeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def outcome (x : Sample) (i : Fin 3) : UnitOutcome
def
BanditRLProof.CUCB.FiniteExample.selected
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.selectedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def selected (a : Bool) : Finset (Fin 3)
def
BanditRLProof.CUCB.FiniteExample.feedback
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.feedbackReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def feedback (a : Bool) (x : Sample) : Feedback 3
def
BanditRLProof.CUCB.FiniteExample.environment
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.environmentReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def environment : Kernel Bool (Feedback 3) where
def
BanditRLProof.CUCB.FiniteExample.law
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.lawReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def law (i : Fin 3) : Measure UnitOutcome
theorem
BanditRLProof.CUCB.FiniteExample.sampleLaw_apply
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.sampleLaw_applyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem sampleLaw_apply (s : Set Sample) : sampleLaw s=∑x:Sample, if x∈s then (1/64:ENNReal) else 0
theorem
BanditRLProof.CUCB.FiniteExample.environment_apply
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.environment_applyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem environment_apply (a : Bool) (s : Set (Feedback 3)) (hs : MeasurableSet s) : environment a s=∑x:Sample, if feedback a x∈s then (1/64:ENNReal) else 0
theorem
BanditRLProof.CUCB.FiniteExample.law_apply
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.law_applyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem law_apply (i : Fin 3) (s : Set UnitOutcome) (hs : MeasurableSet s) : law i s=∑x:Sample, if outcome x i∈s then (1/64:ENNReal) else 0
theorem
BanditRLProof.CUCB.FiniteExample.environment_observed
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.environment_observedReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem environment_observed (a : Bool) (i : Fin 3) : environment a (observedSet i)=if i∈selected a then 1 else 1/2
theorem
BanditRLProof.CUCB.FiniteExample.observation_compatible
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.observation_compatibleReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem observation_compatible (a : Bool) (i : Fin 3) : ObservationCompatible (environment a) (law i) i
theorem
BanditRLProof.CUCB.FiniteExample.reward_integrable
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.reward_integrableReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem reward_integrable (a : Bool) : Integrable (fun z => z.2.2) (environment a)
theorem
BanditRLProof.CUCB.FiniteExample.reward_nonneg
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.reward_nonnegReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem reward_nonneg (a : Bool) : ∀ᵐ z ∂environment a, 0≤z.2.2
def
BanditRLProof.CUCB.FiniteExample.model
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.modelReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def model : FeedbackModel Bool 3 where
theorem
BanditRLProof.CUCB.FiniteExample.mean_value
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.mean_valueReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem mean_value (i : Fin 3) : marginalMean (law i)=if i=0 then 1/4 else if i=1 then 1/2 else 3/4
theorem
BanditRLProof.CUCB.FiniteExample.expected_reward
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.expected_rewardReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expected_reward (a : Bool) : model.expectedReward a=if a then 3/8 else 1/8
theorem
BanditRLProof.CUCB.FiniteExample.law_one_mass
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.law_one_massReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem law_one_mass (i : Fin 3) : (law i {bit true}).toReal=if i=0 then 1/4 else if i=1 then 1/2 else 3/4
theorem
BanditRLProof.CUCB.FiniteExample.noisy_each_arm
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Indexed settings: Combinatorial bandits
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.noisy_each_armReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem noisy_each_arm (i : Fin 3) : 0<(law i {bit true}).toReal ∧ (law i {bit true}).toReal<1
theorem
BanditRLProof.CUCB.FiniteExample.selected_size
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.CUCB.FiniteExample.selected_sizeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem selected_size (a : Bool) : (selected a).card=2