AFTD Auto-Formalizing Theoretical Domains

LinearPMap.standardDeviation_eq_zero_iff_isEigenvector

theoremverifiedformalizationimported Lean

For ‖ψ‖ = 1, zero standard deviation iff the eigenvector condition holds.

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.standardDeviation_eq_zero_iff_isEigenvector (T : H →ₗ.[ℂ] H)
    (ψ : T.domain) (hψ_norm : ‖(ψ : H)‖ = 1) :
    standardDeviation T ψ = 0 ↔
      T.IsEigenvector ψ (expectedValue T ψ : ℂ)
Formalizes
Physlib, `LinearPMap.standardDeviation_eq_zero_iff_isEigenvector`
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.
Verified
10 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 5

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen LinearPMap inopen InnerProductSpace invariable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] in/-- For `‖ψ‖ = 1`, zero standard deviation iff the eigenvector condition holds. -/lemma LinearPMap.standardDeviation_eq_zero_iff_isEigenvector (T : H →ₗ.[ℂ] H)    (ψ : T.domain) (hψ_norm : ‖(ψ : H)‖ = 1) :    standardDeviation T ψ = 0 ↔      T.IsEigenvector ψ (expectedValue T ψ : ℂ) := by  rw [standardDeviation_eq_zero_iff]  constructor  · intro h_centered    refine ⟨h_centered, ?_⟩    intro h_zero    have h_zero' : (ψ : H) = 0 := by simpa using h_zero    have h_norm_zero : ‖(ψ : H)‖ = 0 := by simp [h_zero']    have : (0 : ℝ) = 1 := h_norm_zero.symm.trans hψ_norm    norm_num at this  · intro h_eigen    exact h_eigen.1
See it in the graphDiscuss this resultChallenge it