`BookProof.ChapterCoherentTemperature.thermalProb_second_moment` (h : 0 ≤ nbar) : ∑' n : ℕ, (n : ℝ) ^ 2 * thermalProb nbar n = 2 * nbar ^ 2 + nbar
ProvedBookProof.ChapterCoherentTemperature.thermalProb_second_momenttheoremstimepiece
Prove the following Lean 4 theorem from ChapterCoherentTemperature.
BookProof.ChapterCoherentTemperature.thermalProb_second_moment (h : 0 ≤ nbar) : ∑' n : ℕ, (n : ℝ) ^ 2 * thermalProb nbar n = 2 * nbar ^ 2 + nbar
Formalization note: Lean 4 identifier BookProof.ChapterCoherentTemperature.thermalProb_second_moment.
Preamble
-- Generated from ChapterCoherentTemperature.lean — theorem BookProof.ChapterCoherentTemperature.thermalProb_second_moment
import Mathlib
import Definitions.Def_ChapterCoherentTemperature
open BookProof.ChapterCoherentTemperature
noncomputable section
variable {nbar : ℝ}Formal statement
theorem BookProof.ChapterCoherentTemperature.thermalProb_second_moment (h : 0 ≤ nbar) :
∑' n : ℕ, (n : ℝ) ^ 2 * thermalProb nbar n = 2 * nbar ^ 2 + nbar := by sorry