Skip to content

Commit d91d760

Browse files
committed
permutation fixed
1 parent debaf43 commit d91d760

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

QCLib/LinearAlgebra/UnitaryGroup/Permutation.lean

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ theorem permSubsystemsHom_smul_eq (σ : Perm ι) (v : (ι → n) → R) :
8989
@[simp]
9090
theorem permSubsystemsHom_smul_basis (σ : Perm ι) (k : ι → n) :
9191
(permSubsystemsHom ℂ n σ) • δ[k] = δ[arrowCongrLeftHom n σ k] := by
92-
simp [permSubsystemsHom_smul_eq]
92+
simp [permSubsystemsHom]
9393

9494
@[simp]
9595
theorem permSubsystemsHom_mul_unitary_apply
@@ -109,12 +109,13 @@ theorem permSubsystemsHom_apply (σ : Perm ι) (i j : ι → n) :
109109
(permSubsystemsHom R n σ) i j = if i ∘ ⇑σ = j then 1 else 0 := by
110110
simp [permSubsystemsHom, arrowCongr]
111111

112+
-- simplify
112113
@[simp]
113114
theorem permSubsystemsHom_smul_unitary_smul_basis
114115
(σ : Perm ι) (U : unitaryGroup (ι → n) ℂ) (v : ι → n) (k : ι → n) :
115116
((permSubsystemsHom ℂ n σ * U) • δ[v]) k = U (k ∘ σ) v := by
116-
rw [← smul_eq_mul, smul_assoc]
117-
simp [Matrix.mulVec_eq_sum, basisVector_def, Submonoid.smul_def]
117+
simp [basisVector_def, Submonoid.smul_def, permSubsystemsHom,
118+
PEquiv.toMatrix_toPEquiv_mul, arrowCongr]
118119

119120
@[simp]
120121
theorem unitary_smul_permSubsystemsHom_smul_basis

0 commit comments

Comments
 (0)