Energy Variance eq mean Square Energy sub mean Energy sq
CanonicalEnsemble.energyVariance_eq_meanSquareEnergy_sub_meanEnergy_sq
Plain-language statement
The identity Var(E) = ⟨E²⟩ - ⟨E⟩².
Exact Lean statement
theorem energyVariance_eq_meanSquareEnergy_sub_meanEnergy_sq
(𝓒 : CanonicalEnsemble ι) (T : Temperature) [IsProbabilityMeasure (𝓒.μProd T)]
(hE_int : Integrable 𝓒.energy (𝓒.μProd T))
(hE2_int : Integrable (fun i => (𝓒.energy i)^2) (𝓒.μProd T)) :
𝓒.energyVariance T = 𝓒.meanSquareEnergy T - (𝓒.meanEnergy T)^2Formal artifact
Lean source
theorem energyVariance_eq_meanSquareEnergy_sub_meanEnergy_sq (𝓒 : CanonicalEnsemble ι) (T : Temperature) [IsProbabilityMeasure (𝓒.μProd T)] (hE_int : Integrable 𝓒.energy (𝓒.μProd T)) (hE2_int : Integrable (fun i => (𝓒.energy i)^2) (𝓒.μProd T)) : 𝓒.energyVariance T = 𝓒.meanSquareEnergy T - (𝓒.meanEnergy T)^2 := by unfold energyVariance meanSquareEnergy meanEnergy set U := ∫ i, 𝓒.energy i ∂𝓒.μProd T with hU have h_expand : (fun i => (𝓒.energy i - U)^2) = (fun i => (𝓒.energy i)^2 - 2 * U * 𝓒.energy i + U^2) := by funext i; ring have h_int_E_mul_const : Integrable (fun i => 2 * U * 𝓒.energy i) (𝓒.μProd T) := hE_int.const_mul (2 * U) rw [h_expand] erw [integral_add (hE2_int.sub h_int_E_mul_const) (integrable_const _)] erw [integral_sub hE2_int h_int_E_mul_const] rw [integral_const_mul, integral_const, ← hU, probReal_univ, smul_eq_mul] ring- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/StatisticalMechanics/CanonicalEnsemble/Lemmas.lean:386-402
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Adiabatic relation log
adiabatic_relation_log
Plain-language statement
Adiabatic relation in logarithmic form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then c * log (Ua/Ub) + log (Va/Vb) = 0.
Source project: Physlib
Person-level attribution pending.
Adiabatic relation Ua Ub Va Vb
adiabatic_relation_UaUbVaVb
Plain-language statement
Adiabatic relation in product form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then (Ua/Ub)^c * (Va/Vb) = 1.
Source project: Physlib
Person-level attribution pending.
Deriv Within mean Energy Beta eq neg variance
CanonicalEnsemble.derivWithin_meanEnergy_Beta_eq_neg_variance
Plain-language statement
(∂U/∂β) = -Var(E) for finite systems.
Source project: Physlib
Person-level attribution pending.