LinearPMap.expectedValue_eq_inner
theoremverifiedformalizationimported Lean
If T is symmetric, ⟪ψ, Tψ⟫_ℂ is the expectation value, coerced to ℂ.
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.expectedValue_eq_inner (T : H →ₗ.[ℂ] H) (hT : T.IsSymmetric) (ψ : T.domain) : ⟪(ψ : H), T ψ⟫_ℂ = (expectedValue T ψ : ℂ)
- Formalizes
- Physlib, `LinearPMap.expectedValue_eq_inner`
- 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.expectedValue_eq_inner← LinearPMap.expectedValue_eq_inner (Physlib/QuantumMechanics/Operators/StateObservables/ExpectedValue.lean:58): verbatim
- Verified
- 10 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- LinearPMap.expectedValueExpectation value
re ⟪ψ, Tψ⟫_ℂforψ ∈ T.domain. For symmetricT, this agrees with⟪ψ, Tψ⟫_ℂafter coercion fromℝ; see… - LinearPMap.conj_inner_apply_self_eq_of_isSymmetricLinearPMap.conj_inner_apply_self_eq_of_isSymmetric
- LinearPMap.IsSymmetricA LinearPMap
Tis symmetric iff⟪T x, y⟫_ℂ = ⟪x, T y⟫_ℂfor allx y : T.domain.
- LinearPMap.expectedValueExpectation value
- Used by 4
- LinearPMap.inner_eq_expectedValueReverse orientation of
LinearPMap.expectedValue_eq_inner. - LinearPMap.inner_state_centered_eq_zeroFor a unit vector and symmetric
T, the centered vector is orthogonal to the state. - LinearPMap.inner_centered_commutator_of_raw_commutatorA raw commutator expectation determines the centered commutator expectation.
- LinearPMap.inner_centered_state_eq_zeroThe conjugate orientation of
LinearPMap.inner_state_centered_eq_zero.
- LinearPMap.inner_eq_expectedValueReverse orientation of
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] in/-- If `T` is symmetric, `⟪ψ, Tψ⟫_ℂ` is the expectation value, coerced to `ℂ`. -/lemma LinearPMap.expectedValue_eq_inner (T : H →ₗ.[ℂ] H) (hT : T.IsSymmetric) (ψ : T.domain) : ⟪(ψ : H), T ψ⟫_ℂ = (expectedValue T ψ : ℂ) := by have h_re : ((⟪(ψ : H), T ψ⟫_ℂ).re : ℂ) = ⟪(ψ : H), T ψ⟫_ℂ := Complex.conj_eq_iff_re.mp (by simpa using conj_inner_apply_self_eq_of_isSymmetric T hT ψ) simpa [expectedValue] using h_re.symm