`BookProof.ChapterAttentionSink.sinkWeight_eq` (beta s0 : ℝ) (s : Fin m → ℝ) : sinkWeight beta s0 s = Real.exp (beta * s0) / (Real.exp (beta * s0) + ∑ l, Real.exp (beta * s l))
ProvedBookProof.ChapterAttentionSink.sinkWeight_eqtheoremstimepiece
Prove the following Lean 4 theorem from ChapterAttentionSink.
BookProof.ChapterAttentionSink.sinkWeight_eq (beta s0 : ℝ) (s : Fin m → ℝ) : sinkWeight beta s0 s = Real.exp (beta * s0) / (Real.exp (beta * s0) + ∑ l, Real.exp (beta * s l))
Formalization note: Lean 4 identifier BookProof.ChapterAttentionSink.sinkWeight_eq.
Preamble
-- Generated from ChapterAttentionSink.lean — theorem BookProof.ChapterAttentionSink.sinkWeight_eq
import Definitions.Def_ChapterObservableExpectation
import Mathlib
import Definitions.Def_ChapterAttentionSink
import Definitions.Def_ChapterSoftmaxSharpness
open BookProof.ChapterSoftmaxSharpness
open BookProof.ChapterAttentionSink
open scoped BigOperators
noncomputable section
open BookProof.ChapterObservableExpectation BookProof.ChapterSoftmaxSharpness
variable {m : ℕ} {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]Formal statement
theorem BookProof.ChapterAttentionSink.sinkWeight_eq (beta s0 : ℝ) (s : Fin m → ℝ) :
sinkWeight beta s0 s
= Real.exp (beta * s0) / (Real.exp (beta * s0) + ∑ l, Real.exp (beta * s l)) := by sorry