Variance eq norm sq sub expected Value sq
LinearPMap.variance_eq_norm_sq_sub_expectedValue_sq
Plain-language statement
For symmetric T and ‖ψ‖ = 1, variance equals ‖Tψ‖ ^ 2 - ⟨T⟩_ψ ^ 2.
Exact Lean statement
lemma variance_eq_norm_sq_sub_expectedValue_sq (T : H →ₗ.[ℂ] H)
(hT : T.IsSymmetric) (ψ : T.domain) (hψ_norm : ‖(ψ : H)‖ = 1) :
variance T ψ = ‖T ψ‖ ^ 2 - expectedValue T ψ ^ 2Formal artifact
Lean source
lemma variance_eq_norm_sq_sub_expectedValue_sq (T : H →ₗ.[ℂ] H) (hT : T.IsSymmetric) (ψ : T.domain) (hψ_norm : ‖(ψ : H)‖ = 1) : variance T ψ = ‖T ψ‖ ^ 2 - expectedValue T ψ ^ 2 := by let μ := expectedValue T ψ let a : H := T ψ have hμ_right : ⟪(ψ : H), a⟫_ℂ = (μ : ℂ) := by simpa [a, μ] using expectedValue_eq_inner T hT ψ have hμ_left : ⟪a, (ψ : H)⟫_ℂ = (μ : ℂ) := by simpa [inner_conj_symm] using congrArg star hμ_right have h_re_inner_centered : (⟪a, (μ : ℂ) • (ψ : H)⟫_ℂ).re = μ ^ 2 := by rw [inner_smul_right, hμ_left] simp [μ] ring have h_norm_centered_smul : ‖(μ : ℂ) • (ψ : H)‖ ^ 2 = μ ^ 2 := by rw [norm_smul, hψ_norm] simp [μ] have h_norm_sub_sq : ‖a - (μ : ℂ) • (ψ : H)‖ ^ 2 = ‖a‖ ^ 2 - 2 * (⟪a, (μ : ℂ) • (ψ : H)⟫_ℂ).re + ‖(μ : ℂ) • (ψ : H)‖ ^ 2 := by simpa using (norm_sub_sq (𝕜 := ℂ) a ((μ : ℂ) • (ψ : H))) rw [variance_eq_norm_sub_sq, h_norm_sub_sq, h_re_inner_centered, h_norm_centered_smul] ring- Project
- Physlib
- License
- Apache-2.0
- Commit
- dd43e9e65791
- Source
- Physlib/QuantumMechanics/Operators/StateObservables/Variance.lean:65-87
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.