LinearPMap.covariance
defimported Lean
Covariance, defined as the real part of the centered inner product.
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 noncomputable def LinearPMap.covariance : ℝ
- Defined in
- Physlib, `LinearPMap.covariance`
- 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← LinearPMap.covariance (Physlib/QuantumMechanics/Operators/Covariance.lean:58): verbatim
- Verified
- 10 Oct 2026
- Axioms
- none listed
- Built on 1
- LinearPMap.centeredThe centered vector
Tψ - ⟨T⟩_ψ ψ.
- LinearPMap.centeredThe centered vector
- Used by 6
- LinearPMap.covariance_commSwapping the two observables does not change the covariance.
- LinearPMap.covariance_eq_re_symm_centeredCovariance as the real part of the symmetrized centered inner product.
- 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.state_uncertainty_squared_with_covariance_of_raw_commutatorA raw commutator expectation implies the squared uncertainty bound with covariance term.
- LinearPMap.covariance_eq_re_inner_centeredCovariance, unfolded to the real part of the centered inner product.
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 variable (A B : H →ₗ.[ℂ] H) in variable (ψ : A.domain) in variable (hψB : (ψ : H) ∈ B.domain) in /-- Covariance, defined as the real part of the centered inner product. -/ noncomputable def LinearPMap.covariance : ℝ := (⟪centered A ψ, centered B ⟨ψ, hψB⟩⟫_ℂ).re