The areas / V07. Linear algebra
Mathlib.LinearAlgebra.Matrix.WithConv
40 declarations. Mathlib docs · Source
The convolutive star ring on matrices
In this file, we provide the star algebra instance on WithConv (Matrix m n R) given by
the Hadamard product and intrinsic star (i.e., the star of each element in the matrix).
instance instMulWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [Mul α] → Mul (WithConv (Matrix m n α))
theorem convMul_def E0 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Mul α] (x y : WithConv (Matrix m n α)),
x * y = WithConv.toConv (x.ofConv.hadamard y.ofConv)
instance instSemigroupWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [Semigroup α] → Semigroup (WithConv (Matrix m n α))
instance instNonUnitalNonAssocSemiringWithConvMatrix E0 #
{m : Type u_1} →
{n : Type u_2} → {α : Type u_3} → [NonUnitalNonAssocSemiring α] → NonUnitalNonAssocSemiring (WithConv (Matrix m n α))
instance instCommMagmaWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [CommMagma α] → CommMagma (WithConv (Matrix m n α))
instance instOneWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [One α] → One (WithConv (Matrix m n α))
theorem convOne_def E0 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : One α], 1 = WithConv.toConv (Matrix.of 1)
instance instMulOneClassWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [MulOneClass α] → MulOneClass (WithConv (Matrix m n α))
instance instMonoidWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [Monoid α] → Monoid (WithConv (Matrix m n α))
instance instCommMonoidWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [CommMonoid α] → CommMonoid (WithConv (Matrix m n α))
instance instNonAssocSemiringWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [NonAssocSemiring α] → NonAssocSemiring (WithConv (Matrix m n α))
instance instNonUnitalSemiringWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [NonUnitalSemiring α] → NonUnitalSemiring (WithConv (Matrix m n α))
instance instNonUnitalNonAssocCommSemiringWithConvMatrix E0 #
{m : Type u_1} →
{n : Type u_2} →
{α : Type u_3} → [NonUnitalNonAssocCommSemiring α] → NonUnitalNonAssocCommSemiring (WithConv (Matrix m n α))
instance instNonUnitalCommSemiringWithConvMatrix E0 #
{m : Type u_1} →
{n : Type u_2} → {α : Type u_3} → [NonUnitalCommSemiring α] → NonUnitalCommSemiring (WithConv (Matrix m n α))
instance instNonAssocCommSemiringWithConvMatrix E0 #
{m : Type u_1} →
{n : Type u_2} → {α : Type u_3} → [NonAssocCommSemiring α] → NonAssocCommSemiring (WithConv (Matrix m n α))
instance instSemiringWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [Semiring α] → Semiring (WithConv (Matrix m n α))
instance instCommSemiringWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [CommSemiring α] → CommSemiring (WithConv (Matrix m n α))
instance instNonUnitalNonAssocRingWithConvMatrix E0 #
{m : Type u_1} →
{n : Type u_2} → {α : Type u_3} → [NonUnitalNonAssocRing α] → NonUnitalNonAssocRing (WithConv (Matrix m n α))
instance instNonUnitalNonAssocCommRingWithConvMatrix E0 #
{m : Type u_1} →
{n : Type u_2} → {α : Type u_3} → [NonUnitalNonAssocCommRing α] → NonUnitalNonAssocCommRing (WithConv (Matrix m n α))
instance instNonUnitalRingWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [NonUnitalRing α] → NonUnitalRing (WithConv (Matrix m n α))
instance instNonUnitalCommRingWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [NonUnitalCommRing α] → NonUnitalCommRing (WithConv (Matrix m n α))
instance instNonAssocRingWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [NonAssocRing α] → NonAssocRing (WithConv (Matrix m n α))
instance instNonAssocCommRingWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [NonAssocCommRing α] → NonAssocCommRing (WithConv (Matrix m n α))
instance instRingWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [Ring α] → Ring (WithConv (Matrix m n α))
instance instCommRingWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [CommRing α] → CommRing (WithConv (Matrix m n α))
instance instStarWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [Star α] → Star (WithConv (Matrix m n α))
theorem intrinsicStar_def E0 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Star α] (x : WithConv (Matrix m n α)),
star x = WithConv.toConv (x.ofConv.map star)
instance instInvolutiveStarWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [InvolutiveStar α] → InvolutiveStar (WithConv (Matrix m n α))
instance instStarAddMonoidWithConvMatrix E0 #
{m : Type u_1} →
{n : Type u_2} → {α : Type u_3} → [inst : AddMonoid α] → [StarAddMonoid α] → StarAddMonoid (WithConv (Matrix m n α))
instance instStarMulWithConvMatrix E0 #
{m : Type u_1} → {n : Type u_2} → {α : Type u_3} → [inst : Mul α] → [StarMul α] → StarMul (WithConv (Matrix m n α))
instance instStarRingWithConvMatrix E0 #
{m : Type u_1} →
{n : Type u_2} →
{α : Type u_3} → [inst : NonUnitalNonAssocSemiring α] → [StarRing α] → StarRing (WithConv (Matrix m n α))
instance instSMulCommClassWithConvMatrix E0 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} {β : Type u_4} [inst : Monoid β] [inst_1 : MulAction β α]
[inst_2 : Mul α] [SMulCommClass β α α], SMulCommClass β (WithConv (Matrix m n α)) (WithConv (Matrix m n α))
instance instIsScalarTowerWithConvMatrix E0 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} {β : Type u_4} [inst : Monoid β] [inst_1 : MulAction β α]
[inst_2 : Mul α] [IsScalarTower β α α], IsScalarTower β (WithConv (Matrix m n α)) (WithConv (Matrix m n α))
instance instAlgebraWithConvMatrix E0 #
{m : Type u_1} →
{n : Type u_2} →
{α : Type u_3} →
{β : Type u_4} →
[inst : CommSemiring β] → [inst_1 : Semiring α] → [Algebra β α] → Algebra β (WithConv (Matrix m n α))
theorem Matrix.WithConv.IsIdempotentElem.isSelfAdjoint E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : Semiring α] [IsLeftCancelMulZero α] [inst_2 : StarRing α]
{f : WithConv (Matrix m n α)}, IsIdempotentElem f → IsSelfAdjoint f
All matrices are intrinsically self-adjoint if they are convolutively idempotent.
def WithConv.matrixToLin'StarAlgEquiv E1 #
(m : Type u_1) →
(n : Type u_2) →
(α : Type u_3) →
[inst : CommSemiring α] →
[inst_1 : StarRing α] →
[inst_2 : Fintype n] →
[inst_3 : DecidableEq n] → WithConv (Matrix m n α) ≃⋆ₐ[α] WithConv ((n → α) →ₗ[α] m → α)
WithConv (Matrix m n α) is ⋆-algebraically equivalent to WithConv ((n → α) →ₗ m → α).
In particular, the convolutive product on linear maps corresponds to the Hadamard product on matrices and the intrinsic star on linear maps corresponds to taking the star of each element in the matrix.
theorem WithConv.matrixToLin'StarAlgEquiv_apply E0 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : CommSemiring α] [inst_1 : StarRing α] [inst_2 : Fintype n]
[inst_3 : DecidableEq n] (x : WithConv (Matrix m n α)),
(WithConv.matrixToLin'StarAlgEquiv m n α) x = WithConv.toConv (Matrix.toLin' x.ofConv)
theorem WithConv.symm_matrixToLin'StarAlgEquiv_apply E0 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : CommSemiring α] [inst_1 : StarRing α] [inst_2 : Fintype n]
[inst_3 : DecidableEq n] (x : WithConv ((n → α) →ₗ[α] m → α)),
(WithConv.matrixToLin'StarAlgEquiv m n α).symm x = WithConv.toConv (LinearMap.toMatrix' x.ofConv)
theorem Matrix.toLin'_hadamard E1 #
∀ {m : Type u_1} {n : Type u_2} {α : Type u_3} [inst : CommSemiring α] [inst_1 : Fintype n] [inst_2 : DecidableEq n]
(x y : Matrix m n α),
Matrix.toLin' (x.hadamard y) = (WithConv.toConv (Matrix.toLin' x) * WithConv.toConv (Matrix.toLin' y)).ofConv
theorem Matrix.isSymm_iff_intrinsicStar_toLin' E1 #
∀ {n : Type u_2} {α : Type u_3} [inst : CommSemiring α] [inst_1 : StarRing α] [inst_2 : Fintype n]
[inst_3 : DecidableEq n] {A : Matrix n n α},
A.IsSymm ↔ star (WithConv.toConv (Matrix.toLin' A)) = WithConv.toConv (Matrix.toLin' (star A))