Skip to content

Commit 14ac8c0

Browse files
committed
chore(Matrix/Hadamard): transpose and conjTranspose (leanprover-community#37302)
Two separate PRs need these lemmas, so let's just get them in in the shorter form
1 parent 237f4a4 commit 14ac8c0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Mathlib/LinearAlgebra/Matrix/Hadamard.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ end One
159159
theorem hadamard_self_eq_self_iff [Mul α] {A : Matrix m n α} :
160160
A ⊙ A = A ↔ ∀ i j, IsIdempotentElem (A i j) := ext_iff.symm
161161

162+
theorem transpose_hadamard [Mul α] (A B : Matrix m n α) : (A ⊙ B)ᵀ = Aᵀ ⊙ Bᵀ :=
163+
ext fun _ _ => rfl
164+
165+
theorem conjTranspose_hadamard [Mul α] [StarMul α] (A B : Matrix m n α) : (A ⊙ B)ᴴ = Bᴴ ⊙ Aᴴ :=
166+
ext fun _ _ => StarMul.star_mul _ _
167+
162168
section single
163169

164170
variable [DecidableEq m] [DecidableEq n] [MulZeroClass α]

0 commit comments

Comments
 (0)