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.LinearMap.commutesI_of_basis← LinearMap.commutesI_of_basis (Physlib/Mathematics/ForMathlib/ComplexLinear.lean:73): verbatim
- Verified
- 09 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- LinearMap.map_smul_of_commutesIAn
ℝ-linear map commuting withialongvcommutes with every complex scalar alongv.
- LinearMap.map_smul_of_commutesIAn
- Used by 1
- Physlib.Wirtinger.differentiableAt_complex_iff_dWirtingerAntiCoord_eq_zeroCauchy–Riemann in coordinates, the form
∂̄_Ī W = 0used in physics. Coordinate directions suffice byLinearMap.commutesI_of_basis.
- Physlib.Wirtinger.differentiableAt_complex_iff_dWirtingerAntiCoord_eq_zeroCauchy–Riemann in coordinates, the form
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 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]