LinearPMap.variance
defimported Lean
Variance ‖Tψ - ⟨T⟩_ψ ψ‖ ^ 2; only ψ ∈ T.domain is required.
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 noncomputable def LinearPMap.variance (T : H →ₗ.[ℂ] H) (ψ : T.domain) : ℝ
- Defined in
- Physlib, `LinearPMap.variance`
- 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← LinearPMap.variance (Physlib/QuantumMechanics/Operators/StateObservables/Variance.lean:48): verbatim
- Verified
- 10 Oct 2026
- Axioms
- none listed
- Built on 1
- LinearPMap.centeredThe centered vector
Tψ - ⟨T⟩_ψ ψ.
- LinearPMap.centeredThe centered vector
- Used by 17
- LinearPMap.state_uncertainty_squared_of_raw_commutatorA raw commutator expectation implies the squared Robertson uncertainty bound.
- LinearPMap.variance_eq_zero_iff_isEigenvectorFor
‖ψ‖ = 1, zero variance iffψis an eigenvector with eigenvalue⟨T⟩_ψ. - LinearPMap.state_uncertainty_squared_of_centered_commutatorA centered commutator identity implies the squared Robertson uncertainty bound.
- LinearPMap.variance_eq_norm_sub_sq
variancewithcenteredunfolded toTψ - ⟨T⟩_ψ • ψ. - LinearPMap.variance_nonnegVariance is nonnegative.
- LinearPMap.standardDeviation_eq_zero_iff_centered_eq_zeroZero standard deviation is the same as a zero centered vector.
- LinearPMap.standardDeviation_sqLinearPMap.standardDeviation_sq
- LinearPMap.state_uncertainty_squared_with_covariance_of_centered_commutatorA centered commutator identity implies the Robertson–Schrödinger uncertainty bound.
- LinearPMap.variance_eq_zero_iffZero variance is the same as
Tψ = ⟨T⟩_ψ ψ. - LinearPMap.standardDeviation_eq_sqrt_varianceThe standard deviation, unfolded to the square root of the variance.
- LinearPMap.state_uncertainty_of_centered_commutatorA centered commutator identity implies the standard 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.
- LinearPMap.variance_eq_centered_norm_sqThe variance is the squared norm of the centered vector.
- LinearPMap.state_uncertainty_squared_with_covariance_of_raw_commutatorA raw commutator expectation implies the squared uncertainty bound with covariance term.
- LinearPMap.standardDeviationStandard deviation
√(variance)forψ ∈ T.domain. - LinearPMap.standardDeviation_nonnegStandard deviation is nonnegative.
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 /-- Variance `‖Tψ - ⟨T⟩_ψ ψ‖ ^ 2`; only `ψ ∈ T.domain` is required. -/ noncomputable def LinearPMap.variance (T : H →ₗ.[ℂ] H) (ψ : T.domain) : ℝ := ‖centered T ψ‖ ^ 2