AFTD Auto-Formalizing Theoretical Domains

HermitianMat.trace_kronecker

theoremverifiedformalizationimported Lean

HermitianMat.trace_kronecker

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open HermitianMat in
variable {R n m α : Type*} [Star R] [TrivialStar R] [Fintype n] [Fintype m] in
variable [CommRing R] [CommRing α] [StarRing α] [Algebra R α] [IsMaximalSelfAdjoint R α] in
variable (A : HermitianMat m α) (B : HermitianMat n α) in
@[simp]
theorem HermitianMat.trace_kronecker [FaithfulSMul R α] : (A ⊗ₖ B).trace = A.trace * B.trace
Formalizes
QuantumInfo, `HermitianMat.trace_kronecker`
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.
Verified
16 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 106
Used by 69

Lean source view module on GitHub

set_option quotPrecheck false
open HermitianMat
@[inherit_doc HermitianMat.kronecker]
local infixl:100 " ⊗ₖ " => HermitianMat.kronecker

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open HermitianMat in
variable {R n m α : Type*} [Star R] [TrivialStar R] [Fintype n] [Fintype m] in
variable [CommRing R] [CommRing α] [StarRing α] [Algebra R α] [IsMaximalSelfAdjoint R α] in
variable (A : HermitianMat m α) (B : HermitianMat n α) in
@[simp]
theorem HermitianMat.trace_kronecker [FaithfulSMul R α] : (A ⊗ₖ B).trace = A.trace * B.trace := by
  apply FaithfulSMul.algebraMap_injective R α
  simp only [trace, kronecker_mat]
  rw [Matrix.trace_kronecker A.mat B.mat]
  simp only [map_mul]
  have hA := A.H.isSelfAdjoint_trace
  have hB := B.H.isSelfAdjoint_trace
  open IsMaximalSelfAdjoint in
  rw [selfadj_algebra hA, selfadj_algebra hB, selfadj_algebra (hA.mul hB)]
See it in the graphDiscuss this resultChallenge it