LinearPMap.centered_eq_zero_iff
theoremverifiedformalizationimported Lean
A centered vector vanishes exactly when Tψ = ⟨T⟩_ψ ψ.
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.centered_eq_zero_iff (T : H →ₗ.[ℂ] H) (ψ : T.domain) : centered T ψ = 0 ↔ T ψ = (expectedValue T ψ : ℂ) • (ψ : H)
- Formalizes
- Physlib, `LinearPMap.centered_eq_zero_iff`
- 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.centered_eq_zero_iff← LinearPMap.centered_eq_zero_iff (Physlib/QuantumMechanics/Operators/StateObservables/ExpectedValue.lean:80): 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.centered_eqThe centered vector, unfolded to its raw expression.
- LinearPMap.centeredThe centered vector
Tψ - ⟨T⟩_ψ ψ.
- LinearPMap.expectedValueExpectation value
- Used by 2
- LinearPMap.variance_eq_zero_iffZero variance is the same as
Tψ = ⟨T⟩_ψ ψ. - LinearPMap.standardDeviation_eq_zero_iffZero standard deviation is the same as
Tψ = ⟨T⟩_ψ ψ.
- LinearPMap.variance_eq_zero_iffZero variance is the same as
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/-- A centered vector vanishes exactly when `Tψ = ⟨T⟩_ψ ψ`. -/lemma LinearPMap.centered_eq_zero_iff (T : H →ₗ.[ℂ] H) (ψ : T.domain) : centered T ψ = 0 ↔ T ψ = (expectedValue T ψ : ℂ) • (ψ : H) := by rw [centered_eq, sub_eq_zero]