LeanMachineLearning

Learning.sum_actionIndicator_smul๐Ÿ”—

Lemma

No docstring.

๐Ÿ”—theorem
Learning.sum_actionIndicator_smul.{u_1, u_2, u_3} {ฮฉ : Type u_1} {๐“ : Type u_2} {๐“จ : Type u_3} [DecidableEq ๐“] [AddCommGroup ๐“จ] [Module โ„ ๐“จ] (A : โ„• โ†’ ฮฉ โ†’ ๐“) (Y : โ„• โ†’ ฮฉ โ†’ ๐“จ) (k : ๐“) (t : โ„•) (ฯ‰ : ฮฉ) : โˆ‘ j โˆˆ Finset.range t, actionIndicator A k j ฯ‰ โ€ข Y j ฯ‰ = sumRewards A Y k t ฯ‰
Learning.sum_actionIndicator_smul.{u_1, u_2, u_3} {ฮฉ : Type u_1} {๐“ : Type u_2} {๐“จ : Type u_3} [DecidableEq ๐“] [AddCommGroup ๐“จ] [Module โ„ ๐“จ] (A : โ„• โ†’ ฮฉ โ†’ ๐“) (Y : โ„• โ†’ ฮฉ โ†’ ๐“จ) (k : ๐“) (t : โ„•) (ฯ‰ : ฮฉ) : โˆ‘ j โˆˆ Finset.range t, actionIndicator A k j ฯ‰ โ€ข Y j ฯ‰ = sumRewards A Y k t ฯ‰

Code

lemma sum_actionIndicator_smul [DecidableEq ๐“] [AddCommGroup ๐“จ] [Module โ„ ๐“จ]
    (A : โ„• โ†’ ฮฉ โ†’ ๐“) (Y : โ„• โ†’ ฮฉ โ†’ ๐“จ) (k : ๐“) (t : โ„•) (ฯ‰ : ฮฉ) :
    โˆ‘ j โˆˆ range t, actionIndicator A k j ฯ‰ โ€ข Y j ฯ‰ = sumRewards A Y k t ฯ‰
Proof
by
  rw [sumRewards]
  refine Finset.sum_congr rfl fun j _ โ†ฆ ?_
  simp only [actionIndicator, Set.indicator_apply, Set.mem_ofPred_eq]
  split_ifs <;> simp

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, 36 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.