Matrix.traceRight_smul
theoremverifiedformalizationimported Lean
Matrix.traceRight_smul
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Matrix in open BigOperators in variable {n 𝕜 : Type*} in variable [RCLike 𝕜] [DecidableEq n] in open scoped ComplexOrder MatrixOrder in variable {m α : Type*} [AddCommGroup α] [Fintype m] in omit [DecidableEq n] in variable {A B : Matrix (m × n) (m × n) α} in variable {A B : Matrix (n × m) (n × m) α} in variable {R : Type*} [DistribSMul R α] in @[simp] theorem Matrix.traceRight_smul {A : Matrix (n × m) (n × m) α} (r : R) : (r • A).traceRight = r • A.traceRight
- Formalizes
- QuantumInfo, `Matrix.traceRight_smul`
- Lean proof
- By Alex Meiburg, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Alex Meiburg. 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.Matrix.traceRight_smul← Matrix.traceRight_smul (QuantumInfo/ForMathlib/Matrix.lean:1506): verbatim
- Verified
- 16 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- Matrix.traceRightMatrix.traceRight
- Used by 1
- HermitianMat.traceRight_smulHermitianMat.traceRight_smul
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Matrix in open BigOperators in variable {n 𝕜 : Type*} in variable [RCLike 𝕜] [DecidableEq n] in open scoped ComplexOrder MatrixOrder in variable {m α : Type*} [AddCommGroup α] [Fintype m] in omit [DecidableEq n] in variable {A B : Matrix (m × n) (m × n) α} in variable {A B : Matrix (n × m) (n × m) α} in variable {R : Type*} [DistribSMul R α] in @[simp] theorem Matrix.traceRight_smul {A : Matrix (n × m) (n × m) α} (r : R) : (r • A).traceRight = r • A.traceRight := by ext : 2; simp [Matrix.traceRight, ← Finset.smul_sum]