Skip to content

Commit 51b572b

Browse files
chore(Mathlib/Analysis/CStarAlgebra/CStarMatrix.lean): automated extraction (#37996)
This PR was automatically created from PR #37962 by @JovanGerb via a [review comment](#37962 (comment)) by @grunweg. Co-authored-by: JovanGerb <56355248+JovanGerb@users.noreply.github.com>
1 parent 28aeb51 commit 51b572b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Mathlib/Analysis/CStarAlgebra/CStarMatrix.lean

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ lemma reindexₗ_apply {l o : Type*} [Semiring R] [AddCommMonoid A] [Module R A]
401401
{eₘ : m ≃ l} {eₙ : n ≃ o} {M : CStarMatrix m n A} {i : l} {j : o} :
402402
reindexₗ R A eₘ eₙ M i j = Matrix.reindex eₘ eₙ M i j := rfl
403403

404-
set_option backward.isDefEq.respectTransparency false in
405404
/-- The natural map that reindexes a matrix's rows and columns with equivalent types is an
406405
equivalence. -/
407406
def reindexₐ (R) (A) [Fintype m] [Fintype n] [Semiring R] [AddCommMonoid A] [Mul A] [Module R A]
@@ -418,7 +417,7 @@ def reindexₐ (R) (A) [Fintype m] [Fintype n] [Semiring R] [AddCommMonoid A] [M
418417
unfold reindexₗ
419418
dsimp only [Equiv.toFun_as_coe, Equiv.invFun_as_coe, Matrix.reindex_symm, AddHom.toFun_eq_coe,
420419
AddHom.coe_mk, Matrix.reindex_apply, Matrix.submatrix_apply]
421-
rw [Matrix.star_apply, Matrix.star_apply]
420+
rw [star_apply, star_apply]
422421
simp [Matrix.submatrix_apply] }
423422

424423
@[simp]
@@ -474,7 +473,7 @@ def toOneByOne [Unique n] [Semiring R] [AddCommMonoid A] [Mul A] [Star A] [Modul
474473

475474
end basic
476475

477-
variable [Fintype m] [NonUnitalCStarAlgebra A] [PartialOrder A] [StarOrderedRing A]
476+
variable [Fintype m] [NonUnitalCStarAlgebra A]
478477

479478
set_option backward.isDefEq.respectTransparency false in
480479
/-- Interpret a `CStarMatrix m n A` as a continuous linear map acting on `C⋆ᵐᵒᵈ (n → A)`. -/
@@ -537,23 +536,24 @@ open WithCStarModule in
537536
lemma toCLM_apply_single_apply [DecidableEq m] {M : CStarMatrix m n A} {i : m} {j : n} (a : A) :
538537
(toCLM M) (equiv _ _ |>.symm <| Pi.single i a) j = a * M i j := by simp
539538

540-
open WithCStarModule in
541-
lemma mul_entry_mul_eq_inner_toCLM [Fintype n] [DecidableEq m] [DecidableEq n]
542-
{M : CStarMatrix m n A} {i : m} {j : n} (a b : A) :
543-
a * M i j * star b
544-
= ⟪equiv _ _ |>.symm (Pi.single j b), toCLM M (equiv _ _ |>.symm <| Pi.single i a)⟫_A := by
545-
simp [mul_assoc, inner_def]
546-
547-
set_option backward.isDefEq.respectTransparency false in
548539
lemma toCLM_injective : Function.Injective (toCLM (A := A) (m := m) (n := n)) := by
549540
classical
550541
rw [injective_iff_map_eq_zero]
551542
intro M h
552543
ext i j
553-
rw [Matrix.zero_apply, ← norm_eq_zero, ← sq_eq_zero_iff, sq, ← CStarRing.norm_star_mul_self,
544+
rw [zero_apply, ← norm_eq_zero, ← sq_eq_zero_iff, sq, ← CStarRing.norm_star_mul_self,
554545
← toCLM_apply_single_apply]
555546
simp [h]
556547

548+
variable [PartialOrder A] [StarOrderedRing A]
549+
550+
open WithCStarModule in
551+
lemma mul_entry_mul_eq_inner_toCLM [Fintype n] [DecidableEq m] [DecidableEq n]
552+
{M : CStarMatrix m n A} {i : m} {j : n} (a b : A) :
553+
a * M i j * star b
554+
= ⟪equiv _ _ |>.symm (Pi.single j b), toCLM M (equiv _ _ |>.symm <| Pi.single i a)⟫_A := by
555+
simp [mul_assoc, inner_def]
556+
557557
variable [Fintype n]
558558

559559
open WithCStarModule in

0 commit comments

Comments
 (0)