`BookProof.ChapterAttentionCoarseGrain.le_mergeWeights` {f : Fin m → Fin r} {p : Fin m → ℝ} (hp : ∀ x, 0 ≤ p x) (x : Fin m) : p x ≤ mergeWeights f p (f x)
ProvedBookProof.ChapterAttentionCoarseGrain.le_mergeWeightstheoremstimepiece
Prove the following Lean 4 theorem from ChapterAttentionCoarseGrain.
BookProof.ChapterAttentionCoarseGrain.le_mergeWeights {f : Fin m → Fin r} {p : Fin m → ℝ} (hp : ∀ x, 0 ≤ p x) (x : Fin m) : p x ≤ mergeWeights f p (f x)
Formalization note: Lean 4 identifier BookProof.ChapterAttentionCoarseGrain.le_mergeWeights.
Preamble
-- Generated from ChapterAttentionCoarseGrain.lean — theorem BookProof.ChapterAttentionCoarseGrain.le_mergeWeights
import Definitions.Def_ChapterObservableExpectation
import Definitions.Def_ChapterSoftmaxSharpness
import Mathlib
import Definitions.Def_ChapterAttentionCoarseGrain
open BookProof.ChapterAttentionCoarseGrain
open scoped BigOperators
noncomputable section
open BookProof.ChapterObservableExpectation BookProof.ChapterSoftmaxSharpness
variable {m r : ℕ} {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]Formal statement
theorem BookProof.ChapterAttentionCoarseGrain.le_mergeWeights {f : Fin m → Fin r} {p : Fin m → ℝ} (hp : ∀ x, 0 ≤ p x) (x : Fin m) :
p x ≤ mergeWeights f p (f x) := by sorry