Bandits.pullCount_eq_comp
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.
pullCount_eq_comp๐
Bandits.pullCount_eq_compNo docstring.
Bandits.pullCount_eq_comp.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {A : โ โ ฮฉ โ ๐} {R : โ โ ฮฉ โ โ} {n : โ} {a : ๐} : Learning.pullCount A a n = (fun p => โ i โ Finset.range n, if Prod.fst (p i) = a then 1 else 0) โ Learning.trajectory A RBandits.pullCount_eq_comp.{u_1, u_2} {๐ : Type u_1} {ฮฉ : Type u_2} [DecidableEq ๐] {A : โ โ ฮฉ โ ๐} {R : โ โ ฮฉ โ โ} {n : โ} {a : ๐} : Learning.pullCount A a n = (fun p => โ i โ Finset.range n, if Prod.fst (p i) = a then 1 else 0) โ Learning.trajectory A R
Code
lemma pullCount_eq_comp :
pullCount A a n =
(fun p โฆ โ i โ range n, if (p i).1 = a then 1 else 0) โ (trajectory A R)Type uses (2)
Used by (1)
Actions: Source ยท Open Issue
Proof
by ext simp [pullCount, trajectory]
Dependency graph
Type dependencies (2)
pullCount๐
Learning.pullCount
Number of times action a was chosen up to time t (excluding t).
Learning.pullCount.{u_1, u_3} {๐ : Type u_1} {ฮฉ : Type u_3} [DecidableEq ๐] (A : โ โ ฮฉ โ ๐) (a : ๐) (t : โ) (ฯ : ฮฉ) : โLearning.pullCount.{u_1, u_3} {๐ : Type u_1} {ฮฉ : Type u_3} [DecidableEq ๐] (A : โ โ ฮฉ โ ๐) (a : ๐) (t : โ) (ฯ : ฮฉ) : โ
Code
noncomputable def pullCount (A : โ โ ฮฉ โ ๐) (a : ๐) (t : โ) (ฯ : ฮฉ) : โ := #(filter (fun s โฆ A s ฯ = a) (range t))
Actions: Source ยท Open Issue
trajectory๐
Learning.trajectoryA random variable that gives the sequence of action-feedback pairs.
Learning.trajectory.{u_1, u_2, u_3} {๐ : Type u_1} {๐จ : Type u_2} {ฮฉ : Type u_3} (A : โ โ ฮฉ โ ๐) (Y : โ โ ฮฉ โ ๐จ) (ฯ : ฮฉ) : โ โ ๐ ร ๐จLearning.trajectory.{u_1, u_2, u_3} {๐ : Type u_1} {๐จ : Type u_2} {ฮฉ : Type u_3} (A : โ โ ฮฉ โ ๐) (Y : โ โ ฮฉ โ ๐จ) (ฯ : ฮฉ) : โ โ ๐ ร ๐จ
Code
def trajectory (A : โ โ ฮฉ โ ๐) (Y : โ โ ฮฉ โ ๐จ) (ฯ : ฮฉ) : โ โ ๐ ร ๐จ := fun n โฆ (A n ฯ, Y n ฯ)
Used by (18)
Actions: Source ยท Open Issue