LeanMachineLearning exposition

Learning.IsBayesAlgEnvSeq.gap_nonneg_of_le๐Ÿ”—

This page has the declaration's own card below, then its dependency graph, then a card for each dependency (type dependencies first, then the rest of the transitive closure). For a theorem, the graph and the dependency cards only follow its statement's dependencies (its proof is replaced by sorry, so what it proves doesn't depend on how); for everything else, both the type and the body/value are followed, since their content is part of what later declarations build on.

Minimal Lean file

gap_nonneg_of_le๐Ÿ”—

LemmaLearning.IsBayesAlgEnvSeq.gap_nonneg_of_le

The gap is non-negative if the means are bounded by u : โ„ (even if ๐“ is not Finite).

๐Ÿ”—theorem
Learning.IsBayesAlgEnvSeq.gap_nonneg_of_le.{u_1, u_2, u_4} {๐“” : Type u_1} {๐“ : Type u_2} {ฮฉ : Type u_4} [MeasurableSpace ๐“”] [MeasurableSpace ๐“] {ฮบ : ProbabilityTheory.Kernel (๐“” ร— ๐“) โ„} {E : ฮฉ โ†’ ๐“”} {A : โ„• โ†’ ฮฉ โ†’ ๐“} {n : โ„•} {ฯ‰ : ฮฉ} {u : โ„} (h : โˆ€ (e : ๐“”) (a : ๐“), โˆซ (x : โ„), id x โˆ‚ฮบ (e, a) โ‰ค u) : 0 โ‰ค gap ฮบ E A n ฯ‰
Learning.IsBayesAlgEnvSeq.gap_nonneg_of_le.{u_1, u_2, u_4} {๐“” : Type u_1} {๐“ : Type u_2} {ฮฉ : Type u_4} [MeasurableSpace ๐“”] [MeasurableSpace ๐“] {ฮบ : ProbabilityTheory.Kernel (๐“” ร— ๐“) โ„} {E : ฮฉ โ†’ ๐“”} {A : โ„• โ†’ ฮฉ โ†’ ๐“} {n : โ„•} {ฯ‰ : ฮฉ} {u : โ„} (h : โˆ€ (e : ๐“”) (a : ๐“), โˆซ (x : โ„), id x โˆ‚ฮบ (e, a) โ‰ค u) : 0 โ‰ค gap ฮบ E A n ฯ‰

Code

lemma gap_nonneg_of_le {ฮบ : Kernel (๐“” ร— ๐“) โ„} {E : ฮฉ โ†’ ๐“”} {A : โ„• โ†’ ฮฉ โ†’ ๐“} {n : โ„•} {ฯ‰ : ฮฉ} {u : โ„}
    (h : โˆ€ e a, (ฮบ (e, a))[id] โ‰ค u) : 0 โ‰ค gap ฮบ E A n ฯ‰
Type uses (1)
Body uses (1)
Used by (1)

Actions: Source ยท Open Issue

Proof
Bandits.gap_nonneg_of_le (h (E ฯ‰))

Dependency graph

Type dependencies (1)

gap๐Ÿ”—

DefinitionLearning.IsBayesAlgEnvSeq.gap

A random variable that gives the gap at time n.

๐Ÿ”—def
Learning.IsBayesAlgEnvSeq.gap.{u_1, u_2, u_4} {๐“” : Type u_1} {๐“ : Type u_2} {ฮฉ : Type u_4} [MeasurableSpace ๐“”] [MeasurableSpace ๐“] (ฮบ : ProbabilityTheory.Kernel (๐“” ร— ๐“) โ„) (E : ฮฉ โ†’ ๐“”) (A : โ„• โ†’ ฮฉ โ†’ ๐“) (n : โ„•) (ฯ‰ : ฮฉ) : โ„
Learning.IsBayesAlgEnvSeq.gap.{u_1, u_2, u_4} {๐“” : Type u_1} {๐“ : Type u_2} {ฮฉ : Type u_4} [MeasurableSpace ๐“”] [MeasurableSpace ๐“] (ฮบ : ProbabilityTheory.Kernel (๐“” ร— ๐“) โ„) (E : ฮฉ โ†’ ๐“”) (A : โ„• โ†’ ฮฉ โ†’ ๐“) (n : โ„•) (ฯ‰ : ฮฉ) : โ„

Code

noncomputable
def gap (ฮบ : Kernel (๐“” ร— ๐“) โ„) (E : ฮฉ โ†’ ๐“”) (A : โ„• โ†’ ฮฉ โ†’ ๐“) (n : โ„•) (ฯ‰ : ฮฉ) : โ„ :=
  Bandits.gap (ฮบ.sectR (E ฯ‰)) (A n ฯ‰)
Body uses (1)
Used by (10)

Actions: Source ยท Open Issue

All dependencies, transitively (1)

gap๐Ÿ”—

DefinitionBandits.gap

Gap of an action a: difference between the highest mean of the actions and the mean of a.

๐Ÿ”—def
Bandits.gap.{u_1} {๐“ : Type u_1} {m๐“ : MeasurableSpace ๐“} (ฮฝ : ProbabilityTheory.Kernel ๐“ โ„) (a : ๐“) : โ„
Bandits.gap.{u_1} {๐“ : Type u_1} {m๐“ : MeasurableSpace ๐“} (ฮฝ : ProbabilityTheory.Kernel ๐“ โ„) (a : ๐“) : โ„

Code

noncomputable
def gap (ฮฝ : Kernel ๐“ โ„) (a : ๐“) : โ„ := (โจ† i, (ฮฝ i)[id]) - (ฮฝ a)[id]
Used by (27)

Actions: Source ยท Open Issue