LinearPMap.inner_centered_commutator_of_raw_commutator
theoremverifiedformalizationimported Lean
A raw commutator expectation determines the centered commutator expectation.
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) (hA : A.IsSymmetric) (hB : B.IsSymmetric) in variable (ψ : A.domain) in variable (hψB : (ψ : H) ∈ B.domain) in variable (hψ_norm : ‖(ψ : H)‖ = 1) in variable (hBA : A ψ ∈ B.domain) in variable (hAB : B ⟨ψ, hψB⟩ ∈ A.domain) in variable {c : ℝ} in variable (h_raw : rawCommutatorExpectation A B ψ hψB hBA hAB = Complex.I * c) in include hA hB hψ_norm hBA hAB h_raw in lemma LinearPMap.inner_centered_commutator_of_raw_commutator : centeredCommutatorExpectation A B ψ hψB = Complex.I * c
- Formalizes
- Physlib, `LinearPMap.inner_centered_commutator_of_raw_commutator`
- 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.inner_centered_commutator_of_raw_commutator← LinearPMap.inner_centered_commutator_of_raw_commutator (Physlib/QuantumMechanics/Operators/Uncertainty.lean:241): verbatim
- Verified
- 10 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 8
- LinearPMap.expectedValueExpectation value
re ⟪ψ, Tψ⟫_ℂforψ ∈ T.domain. For symmetricT, this agrees with⟪ψ, Tψ⟫_ℂafter coercion fromℝ; see… - LinearPMap.rawCommutatorExpectationThe expectation of the raw commutator
[A, B]in the stateψ, with explicit second-order domain witnesses. - LinearPMap.IsSymmetricA LinearPMap
Tis symmetric iff⟪T x, y⟫_ℂ = ⟪x, T y⟫_ℂfor allx y : T.domain. - LinearPMap.centeredCommutatorExpectationThe scalar commutator of the centered vectors of
AandBin the stateψ. - LinearPMap.sub_expectation_commutator_eq_rawLinearPMap.sub_expectation_commutator_eq_raw
- LinearPMap.centeredThe centered vector
Tψ - ⟨T⟩_ψ ψ. - LinearPMap.expectedValue_eq_innerIf
Tis symmetric,⟪ψ, Tψ⟫_ℂis the expectation value, coerced toℂ. - LinearPMap.raw_commutator_eq_of_symmetricLinearPMap.raw_commutator_eq_of_symmetric
- LinearPMap.expectedValueExpectation value
- Used by 3
- LinearPMap.state_uncertainty_squared_of_raw_commutatorA raw commutator expectation 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_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) (hA : A.IsSymmetric) (hB : B.IsSymmetric) invariable (ψ : A.domain) invariable (hψB : (ψ : H) ∈ B.domain) invariable (hψ_norm : ‖(ψ : H)‖ = 1) invariable (hBA : A ψ ∈ B.domain) invariable (hAB : B ⟨ψ, hψB⟩ ∈ A.domain) invariable {c : ℝ} invariable (h_raw : rawCommutatorExpectation A B ψ hψB hBA hAB = Complex.I * c) ininclude hA hB hψ_norm hBA hAB h_raw in/-- A raw commutator expectation determines the centered commutator expectation. -/lemma LinearPMap.inner_centered_commutator_of_raw_commutator : centeredCommutatorExpectation A B ψ hψB = Complex.I * c := by let a : H := A ψ let b : H := B ⟨ψ, hψB⟩ let μa : ℝ := expectedValue A ψ let μb : ℝ := expectedValue B ⟨ψ, hψB⟩ have hμa_right : ⟪(ψ : H), a⟫_ℂ = (μa : ℂ) := by simpa [a, μa] using expectedValue_eq_inner A hA ψ have hμa_left : ⟪a, (ψ : H)⟫_ℂ = (μa : ℂ) := by have h_symm : ⟪a, (ψ : H)⟫_ℂ = ⟪(ψ : H), a⟫_ℂ := by simpa [a] using hA ψ ψ simpa [h_symm] using hμa_right have hμb_right : ⟪(ψ : H), b⟫_ℂ = (μb : ℂ) := by simpa [b, μb] using expectedValue_eq_inner B hB ⟨ψ, hψB⟩ have hμb_left : ⟪b, (ψ : H)⟫_ℂ = (μb : ℂ) := by have h_symm : ⟪b, (ψ : H)⟫_ℂ = ⟪(ψ : H), b⟫_ℂ := by simpa [b] using hB ⟨ψ, hψB⟩ ⟨ψ, hψB⟩ simpa [h_symm] using hμb_right calc centeredCommutatorExpectation A B ψ hψB = ⟪centered A ψ, centered B ⟨ψ, hψB⟩⟫_ℂ - ⟪centered B ⟨ψ, hψB⟩, centered A ψ⟫_ℂ := by rfl _ = ⟪a - (μa : ℂ) • (ψ : H), b - (μb : ℂ) • (ψ : H)⟫_ℂ - ⟪b - (μb : ℂ) • (ψ : H), a - (μa : ℂ) • (ψ : H)⟫_ℂ := by rfl _ = ⟪a, b⟫_ℂ - ⟪b, a⟫_ℂ := sub_expectation_commutator_eq_raw (ψ : H) a b μa μb hμa_right hμa_left hμb_right hμb_left hψ_norm _ = Complex.I * c := raw_commutator_eq_of_symmetric A B hA hB ψ hψB hBA hAB (by simpa [rawCommutatorExpectation] using h_raw)