AFTD Auto-Formalizing Theoretical Domains

LinearPMap.inner_im_of_commutator_eq

theoremverifiedformalizationimported Lean

LinearPMap.inner_im_of_commutator_eq

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open InnerProductSpace in
variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] in
lemma LinearPMap.inner_im_of_commutator_eq {u v : H} {c : ℝ}
    (h_comm : ⟪u, v⟫_ℂ - ⟪v, u⟫_ℂ = Complex.I * c) :
    (⟪u, v⟫_ℂ).im = c / 2
Formalizes
Physlib, `LinearPMap.inner_im_of_commutator_eq`
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.
Verified
10 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 2

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen InnerProductSpace invariable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] inlemma LinearPMap.inner_im_of_commutator_eq {u v : H} {c : ℝ}    (h_comm : ⟪u, v⟫_ℂ - ⟪v, u⟫_ℂ = Complex.I * c) :    (⟪u, v⟫_ℂ).im = c / 2 := by  have h_conj_im : (⟪v, u⟫_ℂ).im = -(⟪u, v⟫_ℂ).im := by    rw [(inner_conj_symm (𝕜 := ℂ) v u).symm, Complex.conj_im]  have h_im := congrArg Complex.im h_comm  rw [Complex.sub_im] at h_im  simp at h_im  rw [h_conj_im] at h_im  linarith
See it in the graphDiscuss this resultChallenge it