`BookProof.ChapterThermalMaxEntropy.log_thermalProb` (h : 0 < nbar) (n : ℕ) : Real.log (thermalProb nbar n) = -Real.log (nbar + 1) + (n : ℝ) * Real.log (thermalRatio nbar)
ProvedBookProof.ChapterThermalMaxEntropy.log_thermalProbtheoremstimepiece
Prove the following Lean 4 theorem from ChapterThermalMaxEntropy.
BookProof.ChapterThermalMaxEntropy.log_thermalProb (h : 0 < nbar) (n : ℕ) : Real.log (thermalProb nbar n) = -Real.log (nbar + 1) + (n : ℝ) * Real.log (thermalRatio nbar)
Formalization note: Lean 4 identifier BookProof.ChapterThermalMaxEntropy.log_thermalProb.
Preamble
-- Generated from ChapterThermalMaxEntropy.lean — theorem BookProof.ChapterThermalMaxEntropy.log_thermalProb
import Definitions.Def_ChapterCoherentOccupation
import Definitions.Def_ChapterBoseEinstein
import Mathlib
import Definitions.Def_ChapterThermalMaxEntropy
import Definitions.Def_ChapterCoherentTemperature
open BookProof.ChapterCoherentTemperature
open BookProof.ChapterThermalMaxEntropy
noncomputable section
open BookProof.ChapterCoherentTemperature BookProof.ChapterCoherentOccupation
open BookProof.ChapterBoseEinstein
variable {nbar : ℝ}Formal statement
theorem BookProof.ChapterThermalMaxEntropy.log_thermalProb (h : 0 < nbar) (n : ℕ) :
Real.log (thermalProb nbar n)
= -Real.log (nbar + 1) + (n : ℝ) * Real.log (thermalRatio nbar) := by sorry