Learning.pullCount_congr
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_congr🔗
Learning.pullCount_congrNo docstring.
Learning.pullCount_congr.{u_1, u_3} {𝓐 : Type u_1} {Ω : Type u_3} [DecidableEq 𝓐] {A : ℕ → Ω → 𝓐} {a : 𝓐} {n : ℕ} {ω ω' : Ω} (h_eq : ∀ i ≤ n, A i ω = A i ω') : pullCount A a (n + 1) ω = pullCount A a (n + 1) ω'Learning.pullCount_congr.{u_1, u_3} {𝓐 : Type u_1} {Ω : Type u_3} [DecidableEq 𝓐] {A : ℕ → Ω → 𝓐} {a : 𝓐} {n : ℕ} {ω ω' : Ω} (h_eq : ∀ i ≤ n, A i ω = A i ω') : pullCount A a (n + 1) ω = pullCount A a (n + 1) ω'
Code
lemma pullCount_congr {ω' : Ω} (h_eq : ∀ i ≤ n, A i ω = A i ω') :
pullCount A a (n + 1) ω = pullCount A a (n + 1) ω'Type uses (1)
Used by (1)
Actions: Source · Open Issue
Proof
by unfold pullCount congr 1 with s simp only [mem_filter, mem_range, and_congr_right_iff] intro hs rw [Nat.lt_add_one_iff] at hs rw [h_eq s hs]
Dependency graph
Type dependencies (1)
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