`BookProof.ChapterLayerNorm.variance_eq_zero_iff` (hd : 0 < d) (x : Fin d → ℝ) : variance x = 0 ↔ ∀ i, x i = mean x
ProvedBookProof.ChapterLayerNorm.variance_eq_zero_ifftheoremstimepiece
Prove the following Lean 4 theorem from ChapterLayerNorm.
BookProof.ChapterLayerNorm.variance_eq_zero_iff (hd : 0 < d) (x : Fin d → ℝ) : variance x = 0 ↔ ∀ i, x i = mean x
Formalization note: Lean 4 identifier BookProof.ChapterLayerNorm.variance_eq_zero_iff.
Preamble
-- Generated from ChapterLayerNorm.lean — theorem BookProof.ChapterLayerNorm.variance_eq_zero_iff
import Definitions.Def_ChapterSoftmaxSharpness
import Definitions.Def_ChapterSoftmaxOrder
import Mathlib
import Definitions.Def_ChapterLayerNorm
import Definitions.Def_ChapterTotalVariance
open ChapterTotalVariance
open BookProof.ChapterLayerNorm
open scoped BigOperators
noncomputable section
open BookProof.ChapterSoftmaxSharpness BookProof.ChapterSoftmaxOrder
variable {d : ℕ}Formal statement
theorem BookProof.ChapterLayerNorm.variance_eq_zero_iff (hd : 0 < d) (x : Fin d → ℝ) :
variance x = 0 ↔ ∀ i, x i = mean x := by sorry