LeanMachineLearning exposition

Learning.measurable_uncurry_pullCount'๐Ÿ”—

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

measurable_uncurry_pullCount'๐Ÿ”—

LemmaLearning.measurable_uncurry_pullCount'

No docstring.

๐Ÿ”—theorem
Learning.measurable_uncurry_pullCount'.{u_1, u_2} {๐“ : Type u_1} {R : Type u_2} {m๐“ : MeasurableSpace ๐“} {mR : MeasurableSpace R} [DecidableEq ๐“] [MeasurableEq ๐“] (n : โ„•) : Measurable fun p => pullCount' n (Prod.fst p) (Prod.snd p)
Learning.measurable_uncurry_pullCount'.{u_1, u_2} {๐“ : Type u_1} {R : Type u_2} {m๐“ : MeasurableSpace ๐“} {mR : MeasurableSpace R} [DecidableEq ๐“] [MeasurableEq ๐“] (n : โ„•) : Measurable fun p => pullCount' n (Prod.fst p) (Prod.snd p)

Code

lemma measurable_uncurry_pullCount' [MeasurableEq ๐“] (n : โ„•) :
    Measurable (fun p : (Iic n โ†’ ๐“ ร— R) ร— ๐“ โ†ฆ pullCount' n p.1 p.2)
Type uses (1)
Body uses (1)
Used by (3)

Actions: Source ยท Open Issue

Proof
by
  simp_rw [pullCount'_eq_sum]
  have h_meas s : Measurable (fun h : (Iic n โ†’ ๐“ ร— R) ร— ๐“ โ†ฆ if (h.1 s).1 = h.2 then 1 else 0) := by
    refine Measurable.ite ?_ (by fun_prop) (by fun_prop)
    exact measurableSet_eq_fun (by fun_prop) (by fun_prop)
  fun_prop

Dependency graph

Type dependencies (1)

pullCount'๐Ÿ”—

DefinitionLearning.pullCount'

Number of pulls of arm a up to (and including) time n. This is the number of entries in h in which the arm is a.

๐Ÿ”—def
Learning.pullCount'.{u_1, u_2} {๐“ : Type u_1} {R : Type u_2} [DecidableEq ๐“] (n : โ„•) (h : โ†ฅ(Finset.Iic n) โ†’ ๐“ ร— R) (a : ๐“) : โ„•
Learning.pullCount'.{u_1, u_2} {๐“ : Type u_1} {R : Type u_2} [DecidableEq ๐“] (n : โ„•) (h : โ†ฅ(Finset.Iic n) โ†’ ๐“ ร— R) (a : ๐“) : โ„•

Code

noncomputable
def pullCount' (n : โ„•) (h : Iic n โ†’ ๐“ ร— R) (a : ๐“) := #{s | (h s).1 = a}
Used by (29)

Actions: Source ยท Open Issue