`BookProof.ChapterAttentionMixture.mixture_sum_one` {w : Fin H → ℝ} {p : Fin H → Fin m → ℝ} (hw : ∑ h, w h = 1) (hp : ∀ h, ∑ j, p h j = 1) : ∑ j, mixture w p j = 1
ProvedBookProof.ChapterAttentionMixture.mixture_sum_onetheoremstimepiece
Prove the following Lean 4 theorem from ChapterAttentionMixture.
BookProof.ChapterAttentionMixture.mixture_sum_one {w : Fin H → ℝ} {p : Fin H → Fin m → ℝ} (hw : ∑ h, w h = 1) (hp : ∀ h, ∑ j, p h j = 1) : ∑ j, mixture w p j = 1
Formalization note: Lean 4 identifier BookProof.ChapterAttentionMixture.mixture_sum_one.
Preamble
-- Generated from ChapterAttentionMixture.lean — theorem BookProof.ChapterAttentionMixture.mixture_sum_one
import Definitions.Def_ChapterSoftmaxSharpness
import Definitions.Def_ChapterSoftmaxOrder
import Mathlib
import Definitions.Def_ChapterAttentionMixture
open BookProof.ChapterAttentionMixture
open scoped BigOperators
noncomputable section
open BookProof.ChapterSoftmaxSharpness BookProof.ChapterSoftmaxOrder
variable {m H : ℕ} {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]Formal statement
theorem BookProof.ChapterAttentionMixture.mixture_sum_one {w : Fin H → ℝ} {p : Fin H → Fin m → ℝ} (hw : ∑ h, w h = 1)
(hp : ∀ h, ∑ j, p h j = 1) : ∑ j, mixture w p j = 1 := by sorry