AFTD Auto-Formalizing Theoretical Domains

LinearMap.commutesI_of_basis

theoremverifiedformalizationimported Lean

An ℝ-linear map commuting with i on a ℂ-basis commutes with i everywhere.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open LinearMap in
variable {V E : Type*} [AddCommGroup V] [Module ℝ V] [Module ℂ V] [IsScalarTower ℝ ℂ V]
  [AddCommGroup E] [Module ℝ E] [Module ℂ E] [IsScalarTower ℝ ℂ E] in
lemma LinearMap.commutesI_of_basis {ι : Type*} [Fintype ι] (L : V →ₗ[ℝ] E) (b : Module.Basis ι ℂ V)
    (h : ∀ i, L (Complex.I • b i) = Complex.I • L (b i)) (v : V) :
    L (Complex.I • v) = Complex.I • L v
Formalizes
Physlib, `LinearMap.commutesI_of_basis`
Lean proof
By Andrea Pari, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2026 Andrea Pari. 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
09 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 1

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen LinearMap invariable {V E : Type*} [AddCommGroup V] [Module ℝ V] [Module ℂ V] [IsScalarTower ℝ ℂ V]  [AddCommGroup E] [Module ℝ E] [Module ℂ E] [IsScalarTower ℝ ℂ E] in/-- An `ℝ`-linear map commuting with `i` on a `ℂ`-basis commutes with `i` everywhere. -/lemma LinearMap.commutesI_of_basis {ι : Type*} [Fintype ι] (L : V →ₗ[ℝ] E) (b : Module.Basis ι ℂ V)    (h : ∀ i, L (Complex.I • b i) = Complex.I • L (b i)) (v : V) :    L (Complex.I • v) = Complex.I • L v := by  rw [← b.sum_repr v, Finset.smul_sum, map_sum, map_sum, Finset.smul_sum]  refine Finset.sum_congr rfl fun i _ => ?_  rw [smul_smul, map_smul_of_commutesI L (h i), map_smul_of_commutesI L (h i), smul_smul,    mul_comm]
See it in the graphDiscuss this resultChallenge it