Learning.sumRewards_add_one
No docstring.
Learning.sumRewards_add_one.{u_1, u_2, u_3} {๐ : Type u_1} {๐จ : Type u_2} {ฮฉ : Type u_3} [DecidableEq ๐] [AddCommGroup ๐จ] {A : โ โ ฮฉ โ ๐} {a : ๐} {t : โ} {ฯ : ฮฉ} {R : โ โ ฮฉ โ ๐จ} : sumRewards A R a (t + 1) ฯ = sumRewards A R a t ฯ + if A t ฯ = a then R t ฯ else 0Learning.sumRewards_add_one.{u_1, u_2, u_3} {๐ : Type u_1} {๐จ : Type u_2} {ฮฉ : Type u_3} [DecidableEq ๐] [AddCommGroup ๐จ] {A : โ โ ฮฉ โ ๐} {a : ๐} {t : โ} {ฯ : ฮฉ} {R : โ โ ฮฉ โ ๐จ} : sumRewards A R a (t + 1) ฯ = sumRewards A R a t ฯ + if A t ฯ = a then R t ฯ else 0
Code
lemma sumRewards_add_one {R : โ โ ฮฉ โ ๐จ} :
sumRewards A R a (t + 1) ฯ = sumRewards A R a t ฯ + if A t ฯ = a then R t ฯ else 0Proof
by unfold sumRewards rw [sum_range_succ]
Actions: Source ยท Open Issue
Meaning last changed in v4.34.0-rc2-14-gf86702d (2026-08-25), the 2th recorded change.
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: 1 project declarations, 22 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.