LinearPMap.covariance_self_eq_variance
theoremverifiedformalizationimported Lean
LinearPMap.covariance_self_eq_variance
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 variable (A B : H →ₗ.[ℂ] H) in variable (ψ : A.domain) in variable (hψB : (ψ : H) ∈ B.domain) in @[simp] lemma LinearPMap.covariance_self_eq_variance (A : H →ₗ.[ℂ] H) (ψ : A.domain) : covariance A A ψ (by exact ψ.2) = variance A ψ
- Formalizes
- Physlib, `LinearPMap.covariance_self_eq_variance`
- Lean proof
- By Matteo Cipollina, 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.covariance_self_eq_variance← LinearPMap.covariance_self_eq_variance (Physlib/QuantumMechanics/Operators/Covariance.lean:93): verbatim
- Verified
- 10 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- LinearPMap.varianceVariance
‖Tψ - ⟨T⟩_ψ ψ‖ ^ 2; onlyψ ∈ T.domainis required. - LinearPMap.covarianceCovariance, defined as the real part of the centered inner product.
- LinearPMap.standardDeviation_sqLinearPMap.standardDeviation_sq
- LinearPMap.centeredThe centered vector
Tψ - ⟨T⟩_ψ ψ. - LinearPMap.variance_eq_centered_norm_sqThe variance is the squared norm of the centered vector.
- LinearPMap.covariance_eq_re_inner_centeredCovariance, unfolded to the real part of the centered inner product.
- LinearPMap.varianceVariance
- Used by 6
- LinearPMap.state_uncertainty_squared_of_raw_commutatorA raw commutator expectation implies the squared Robertson uncertainty bound.
- LinearPMap.state_uncertainty_squared_of_centered_commutatorA centered commutator identity implies the squared Robertson uncertainty bound.
- LinearPMap.state_uncertainty_of_raw_commutatorA raw commutator expectation implies the standard uncertainty bound.
- LinearPMap.state_uncertainty_squared_with_covariance_of_centered_commutatorA centered commutator identity implies the Robertson–Schrödinger uncertainty bound.
- LinearPMap.state_uncertainty_of_centered_commutatorA centered commutator identity implies the standard uncertainty bound.
- LinearPMap.state_uncertainty_squared_with_covariance_of_raw_commutatorA raw commutator expectation implies the squared uncertainty bound with covariance term.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option autoImplicit true inset_option relaxedAutoImplicit true inopen LinearPMap inopen InnerProductSpace invariable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] invariable (A B : H →ₗ.[ℂ] H) invariable (ψ : A.domain) invariable (hψB : (ψ : H) ∈ B.domain) in@[simp]lemma LinearPMap.covariance_self_eq_variance (A : H →ₗ.[ℂ] H) (ψ : A.domain) : covariance A A ψ (by exact ψ.2) = variance A ψ := by rw [covariance_eq_re_inner_centered, variance_eq_centered_norm_sq, inner_self_eq_norm_sq_to_K] rw [sq, sq, Complex.mul_re] simp [Complex.ofReal_re, Complex.ofReal_im]