LeanMachineLearning

Learning.sum_actionIndicator_eq_pullCount๐Ÿ”—

Lemma

No docstring.

๐Ÿ”—theorem
Learning.sum_actionIndicator_eq_pullCount.{u_1, u_2} {ฮฉ : Type u_1} {๐“ : Type u_2} [DecidableEq ๐“] (A : โ„• โ†’ ฮฉ โ†’ ๐“) (k : ๐“) (n : โ„•) (ฯ‰ : ฮฉ) : โˆ‘ j โˆˆ Finset.range n, actionIndicator A k j ฯ‰ = โ†‘(pullCount A k n ฯ‰)
Learning.sum_actionIndicator_eq_pullCount.{u_1, u_2} {ฮฉ : Type u_1} {๐“ : Type u_2} [DecidableEq ๐“] (A : โ„• โ†’ ฮฉ โ†’ ๐“) (k : ๐“) (n : โ„•) (ฯ‰ : ฮฉ) : โˆ‘ j โˆˆ Finset.range n, actionIndicator A k j ฯ‰ = โ†‘(pullCount A k n ฯ‰)

Code

lemma sum_actionIndicator_eq_pullCount [DecidableEq ๐“] (A : โ„• โ†’ ฮฉ โ†’ ๐“) (k : ๐“) (n : โ„•)
    (ฯ‰ : ฮฉ) :
    โˆ‘ j โˆˆ range n, actionIndicator A k j ฯ‰ = (pullCount A k n ฯ‰ : โ„)
Proof
by
  classical
  rw [pullCount_eq_sum]
  push_cast
  refine Finset.sum_congr rfl fun j _ โ†ฆ ?_
  simp only [actionIndicator, Set.indicator_apply, Set.mem_ofPred_eq]

Actions: Source ยท Open Issue

New in v4.34.0-rc2-14-gf86702d (2026-08-25), and its meaning has not changed since.

Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file ยท open it in the Lean web editor.

Dependency graph

Audit surface: 2 project declarations, 17 external constants

โœ“ Proved: no sorry anywhere in its closure

This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.