`BookProof.ChapterAttentionOutputVariance.outputVariance_nonneg` {p : Fin m → ℝ} (hp0 : ∀ j, 0 ≤ p j) (v : Fin m → E) : 0 ≤ outputVariance p v
ProvedBookProof.ChapterAttentionOutputVariance.outputVariance_nonnegtheoremstimepiece
Prove the following Lean 4 theorem from ChapterAttentionOutputVariance.
BookProof.ChapterAttentionOutputVariance.outputVariance_nonneg {p : Fin m → ℝ} (hp0 : ∀ j, 0 ≤ p j) (v : Fin m → E) : 0 ≤ outputVariance p v
Formalization note: Lean 4 identifier BookProof.ChapterAttentionOutputVariance.outputVariance_nonneg.
Preamble
-- Generated from ChapterAttentionOutputVariance.lean — theorem BookProof.ChapterAttentionOutputVariance.outputVariance_nonneg
import Definitions.Def_ChapterSoftmaxSharpness
import Mathlib
import Definitions.Def_ChapterAttentionOutputVariance
import Definitions.Def_ChapterObservableExpectation
open BookProof.ChapterObservableExpectation
open BookProof.ChapterAttentionOutputVariance
open scoped BigOperators RealInnerProductSpace
noncomputable section
open BookProof.ChapterObservableExpectation BookProof.ChapterSoftmaxSharpness
variable {m : ℕ} {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]Formal statement
theorem BookProof.ChapterAttentionOutputVariance.outputVariance_nonneg {p : Fin m → ℝ} (hp0 : ∀ j, 0 ≤ p j) (v : Fin m → E) :
0 ≤ outputVariance p v := by sorry