`BookProof.ChapterCoherentOccupation.thermalOccupation_energy` {nbar : ℝ} (h : 0 ≤ nbar) : ∑' n : ℕ, ((n : ℝ) + 1 / 2) * thermalProb nbar n = nbar + 1 / 2
ProvedBookProof.ChapterCoherentOccupation.thermalOccupation_energytheoremstimepiece
Prove the following Lean 4 theorem from ChapterCoherentOccupation.
BookProof.ChapterCoherentOccupation.thermalOccupation_energy {nbar : ℝ} (h : 0 ≤ nbar) : ∑' n : ℕ, ((n : ℝ) + 1 / 2) * thermalProb nbar n = nbar + 1 / 2
Formalization note: Lean 4 identifier BookProof.ChapterCoherentOccupation.thermalOccupation_energy.
Preamble
-- Generated from ChapterCoherentOccupation.lean — theorem BookProof.ChapterCoherentOccupation.thermalOccupation_energy import Mathlib import Definitions.Def_ChapterCoherentOccupation import Definitions.Def_ChapterCoherentTemperature open BookProof.ChapterCoherentTemperature open BookProof.ChapterCoherentOccupation noncomputable section open Real Nat ProbabilityTheory
Formal statement
theorem BookProof.ChapterCoherentOccupation.thermalOccupation_energy {nbar : ℝ} (h : 0 ≤ nbar) :
∑' n : ℕ, ((n : ℝ) + 1 / 2) * thermalProb nbar n = nbar + 1 / 2 := by sorry