AFTD Auto-Formalizing Theoretical Domains

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.
Verified
10 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 4

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/-- 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
See it in the graphDiscuss this resultChallenge it