LinearPMap.variance_eq_centered_norm_sq
theoremverifiedformalizationimported Lean
The variance is the squared norm of the centered vector.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open LinearPMap in open InnerProductSpace in variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] in lemma LinearPMap.variance_eq_centered_norm_sq (T : H →ₗ.[ℂ] H) (ψ : T.domain) : variance T ψ = ‖centered T ψ‖ ^ 2
- Formalizes
- Physlib, `LinearPMap.variance_eq_centered_norm_sq`
- Lean proof
- By Matteo Cipollina, Krystian Nowakowski, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2026 Axiomatic-AI. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.LinearPMap.variance_eq_centered_norm_sq← LinearPMap.variance_eq_centered_norm_sq (Physlib/QuantumMechanics/Operators/StateObservables/Variance.lean:52): verbatim
- Verified
- 10 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- LinearPMap.varianceVariance
‖Tψ - ⟨T⟩_ψ ψ‖ ^ 2; onlyψ ∈ T.domainis required. - LinearPMap.centeredThe centered vector
Tψ - ⟨T⟩_ψ ψ.
- LinearPMap.varianceVariance
- Used by 5
- LinearPMap.state_uncertainty_squared_of_centered_commutatorA centered commutator identity implies the squared Robertson uncertainty bound.
- LinearPMap.variance_nonnegVariance is nonnegative.
- LinearPMap.state_uncertainty_squared_with_covariance_of_centered_commutatorA centered commutator identity implies the Robertson–Schrödinger uncertainty bound.
- LinearPMap.covariance_self_eq_varianceLinearPMap.covariance_self_eq_variance
- LinearPMap.variance_eq_zero_iff_centered_eq_zeroZero variance is the same as a zero centered vector.
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open LinearPMap in open InnerProductSpace in variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] in /-- The variance is the squared norm of the centered vector. -/ lemma LinearPMap.variance_eq_centered_norm_sq (T : H →ₗ.[ℂ] H) (ψ : T.domain) : variance T ψ = ‖centered T ψ‖ ^ 2 := rfl