The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V14. Topological algebra and infinite sums

Mathlib.Topology.Instances.Matrix

85 declarations and 1 deprecated aliases. Mathlib docs · Source

Topological properties of matrices

This file is a place to collect topological results about matrices.

Main definitions

  • Matrix.topologicalRing: square matrices form a topological ring

Main results

  • Sets of matrices:
    • IsOpen.matrix: the set of finite matrices with entries in an open set is itself an open set.
    • IsCompact.matrix: the set of matrices with entries in a compact set is itself a compact set.
  • Continuity:
    • Continuous.matrix_det: the determinant is continuous over a topological ring.
    • Continuous.matrix_adjugate: the adjugate is continuous over a topological ring.
  • Infinite sums
    • Matrix.transpose_tsum: transpose commutes with infinite sums
    • Matrix.diagonal_tsum: diagonal commutes with infinite sums
    • Matrix.blockDiagonal_tsum: block diagonal commutes with infinite sums
    • Matrix.blockDiagonal'_tsum: non-uniform block diagonal commutes with infinite sums

Lemmas about continuity of operations

Lemmas about infinite sums

instance instTopologicalSpaceMatrix E0 #

{m : Type u_4} → {n : Type u_5} → {R : Type u_8} → [TopologicalSpace R] → TopologicalSpace (Matrix m n R)

instance instT2SpaceMatrix E0 #

∀ {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [T2Space R], T2Space (Matrix m n R)

instance instDiscreteTopologyMatrixOfFinite E0 #

∀ {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [Finite m] [Finite n] [DiscreteTopology R],
  DiscreteTopology (Matrix m n R)

The topology on finite matrices over a discrete space is discrete.

theorem IsOpen.matrix E3 #

∀ {m : Type u_4} {n : Type u_5} {R : Type u_8} [Finite m] [Finite n] [inst : TopologicalSpace R] {S : Set R},
  IsOpen S → IsOpen S.matrix

theorem IsCompact.matrix E3 #

∀ {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] {S : Set R}, IsCompact S → IsCompact S.matrix

instance instContinuousConstSMulMatrix E0 #

∀ {α : Type u_2} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : SMul α R]
  [ContinuousConstSMul α R], ContinuousConstSMul α (Matrix m n R)

instance instContinuousSMulMatrix E0 #

∀ {α : Type u_2} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : TopologicalSpace α]
  [inst_2 : SMul α R] [ContinuousSMul α R], ContinuousSMul α (Matrix m n R)

instance instContinuousAddMatrix E0 #

∀ {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : Add R] [ContinuousAdd R],
  ContinuousAdd (Matrix m n R)

instance instContinuousNegMatrix E0 #

∀ {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : Neg R] [ContinuousNeg R],
  ContinuousNeg (Matrix m n R)

instance instIsTopologicalAddGroupMatrix E0 #

∀ {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : AddGroup R]
  [IsTopologicalAddGroup R], IsTopologicalAddGroup (Matrix m n R)

theorem continuous_matrix E1 #

∀ {α : Type u_2} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : TopologicalSpace α]
  {f : α → Matrix m n R}, (∀ (i : m) (j : n), Continuous fun a ↦ f a i j) → Continuous f

To show a function into matrices is continuous it suffices to show the coefficients of the resulting matrix are continuous

theorem Continuous.matrix_elem E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  {A : X → Matrix m n R}, Continuous A → ∀ (i : m) (j : n), Continuous fun x ↦ A x i j

theorem continuous_matrixOf E1 #

∀ {α : Type u_2} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : TopologicalSpace α]
  {f : α → m → n → R}, (Continuous fun x ↦ Matrix.of (f x)) ↔ Continuous f

theorem Continuous.matrixOf E1 #

∀ {α : Type u_2} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : TopologicalSpace α]
  {f : α → m → n → R}, Continuous f → Continuous fun x ↦ Matrix.of (f x)

Alias of the reverse direction of continuous_matrixOf.

theorem Continuous.matrix_map E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {S : Type u_7} {R : Type u_8} [inst : TopologicalSpace X]
  [inst_1 : TopologicalSpace R] [inst_2 : TopologicalSpace S] {A : X → Matrix m n S} {f : S → R},
  Continuous A → Continuous f → Continuous fun x ↦ (A x).map f

theorem Continuous.matrix_transpose E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  {A : X → Matrix m n R}, Continuous A → Continuous fun x ↦ (A x).transpose

theorem Continuous.matrix_conjTranspose E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : Star R] [ContinuousStar R] {A : X → Matrix m n R}, Continuous A → Continuous fun x ↦ (A x).conjTranspose

instance instContinuousStarMatrix E0 #

∀ {m : Type u_4} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : Star R] [ContinuousStar R],
  ContinuousStar (Matrix m m R)

theorem Continuous.matrix_replicateCol E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R] {ι : Type u_11}
  {A : X → n → R}, Continuous A → Continuous fun x ↦ Matrix.replicateCol ι (A x)

theorem Continuous.matrix_replicateRow E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R] {ι : Type u_11}
  {A : X → n → R}, Continuous A → Continuous fun x ↦ Matrix.replicateRow ι (A x)

theorem Continuous.matrix_diagonal E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : Zero R] [inst_3 : DecidableEq n] {A : X → n → R}, Continuous A → Continuous fun x ↦ Matrix.diagonal (A x)

theorem Continuous.dotProduct E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : Fintype n] [inst_3 : Mul R] [inst_4 : AddCommMonoid R] [ContinuousAdd R] [ContinuousMul R]
  {A B : X → n → R}, Continuous A → Continuous B → Continuous fun x ↦ A x ⬝ᵥ B x

theorem Continuous.matrix_mul E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : TopologicalSpace X]
  [inst_1 : TopologicalSpace R] [inst_2 : Fintype n] [inst_3 : Mul R] [inst_4 : AddCommMonoid R] [ContinuousAdd R]
  [ContinuousMul R] {A : X → Matrix m n R} {B : X → Matrix n p R},
  Continuous A → Continuous B → Continuous fun x ↦ A x * B x

For square matrices the usual continuous_mul can be used.

instance instContinuousMulMatrixOfContinuousAdd E0 #

∀ {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : Fintype n] [inst_2 : Mul R]
  [inst_3 : AddCommMonoid R] [ContinuousAdd R] [ContinuousMul R], ContinuousMul (Matrix n n R)

instance instIsTopologicalSemiringMatrix E0 #

∀ {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : Fintype n] [inst_2 : NonUnitalNonAssocSemiring R]
  [IsTopologicalSemiring R], IsTopologicalSemiring (Matrix n n R)

instance Matrix.topologicalRing E3 #

∀ {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : Fintype n] [inst_2 : NonUnitalNonAssocRing R]
  [IsTopologicalRing R], IsTopologicalRing (Matrix n n R)

theorem Continuous.matrix_vecMulVec E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : Mul R] [ContinuousMul R] {A : X → m → R} {B : X → n → R},
  Continuous A → Continuous B → Continuous fun x ↦ Matrix.vecMulVec (A x) (B x)

theorem Continuous.matrix_mulVec E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : NonUnitalNonAssocSemiring R] [ContinuousAdd R] [ContinuousMul R] [inst_5 : Fintype n] {A : X → Matrix m n R}
  {B : X → n → R}, Continuous A → Continuous B → Continuous fun x ↦ (A x).mulVec (B x)

theorem Continuous.matrix_vecMul E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : NonUnitalNonAssocSemiring R] [ContinuousAdd R] [ContinuousMul R] [inst_5 : Fintype m] {A : X → m → R}
  {B : X → Matrix m n R}, Continuous A → Continuous B → Continuous fun x ↦ Matrix.vecMul (A x) (B x)

theorem Continuous.matrix_submatrix E1 #

∀ {X : Type u_1} {l : Type u_3} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : TopologicalSpace X]
  [inst_1 : TopologicalSpace R] {A : X → Matrix l n R},
  Continuous A → ∀ (e₁ : m → l) (e₂ : p → n), Continuous fun x ↦ (A x).submatrix e₁ e₂

theorem Continuous.matrix_reindex E1 #

∀ {X : Type u_1} {l : Type u_3} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : TopologicalSpace X]
  [inst_1 : TopologicalSpace R] {A : X → Matrix l n R},
  Continuous A → ∀ (e₁ : l ≃ m) (e₂ : n ≃ p), Continuous fun x ↦ (Matrix.reindex e₁ e₂) (A x)

theorem Continuous.matrix_diag E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  {A : X → Matrix n n R}, Continuous A → Continuous fun x ↦ (A x).diag

theorem continuous_matrix_diag E1 #

∀ {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R], Continuous Matrix.diag

theorem Continuous.matrix_trace E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : Fintype n] [inst_3 : AddCommMonoid R] [ContinuousAdd R] {A : X → Matrix n n R},
  Continuous A → Continuous fun x ↦ (A x).trace

theorem Continuous.matrix_det E3 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : Fintype n] [inst_3 : DecidableEq n] [inst_4 : CommRing R] [IsTopologicalRing R] {A : X → Matrix n n R},
  Continuous A → Continuous fun x ↦ (A x).det

theorem Continuous.matrix_updateCol E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : DecidableEq n] (i : n) {A : X → Matrix m n R} {B : X → m → R},
  Continuous A → Continuous B → Continuous fun x ↦ (A x).updateCol i (B x)

theorem Continuous.matrix_updateRow E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : DecidableEq m] (i : m) {A : X → Matrix m n R} {B : X → n → R},
  Continuous A → Continuous B → Continuous fun x ↦ (A x).updateRow i (B x)

theorem Continuous.matrix_cramer E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : Fintype n] [inst_3 : DecidableEq n] [inst_4 : CommRing R] [IsTopologicalRing R] {A : X → Matrix n n R}
  {B : X → n → R}, Continuous A → Continuous B → Continuous fun x ↦ (A x).cramer (B x)

theorem Continuous.matrix_adjugate E3 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace X] [inst_1 : TopologicalSpace R]
  [inst_2 : Fintype n] [inst_3 : DecidableEq n] [inst_4 : CommRing R] [IsTopologicalRing R] {A : X → Matrix n n R},
  Continuous A → Continuous fun x ↦ (A x).adjugate

theorem continuousAt_matrix_inv E1 #

∀ {n : Type u_5} {R : Type u_8} [inst : TopologicalSpace R] [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  [inst_3 : CommRing R] [IsTopologicalRing R] (A : Matrix n n R),
  ContinuousAt Ring.inverse A.det → ContinuousAt Inv.inv A

When Ring.inverse is continuous at the determinant (such as in a NormedRing, or a topological field), so is Matrix.inv.

theorem Topology.IsInducing.matrix_map E1 #

∀ {m : Type u_11} {n : Type u_12} {R : Type u_13} {S : Type u_14} [inst : TopologicalSpace R]
  [inst_1 : TopologicalSpace S] {f : R → S}, Topology.IsInducing f → Topology.IsInducing fun x ↦ x.map f

theorem Topology.IsEmbedding.matrix_map E1 #

∀ {m : Type u_11} {n : Type u_12} {R : Type u_13} {S : Type u_14} [inst : TopologicalSpace R]
  [inst_1 : TopologicalSpace S] {f : R → S}, Topology.IsEmbedding f → Topology.IsEmbedding fun x ↦ x.map f

theorem Topology.IsClosedEmbedding.matrix_map E1 #

∀ {m : Type u_11} {n : Type u_12} {R : Type u_13} {S : Type u_14} [inst : TopologicalSpace R]
  [inst_1 : TopologicalSpace S] {f : R → S}, Topology.IsClosedEmbedding f → Topology.IsClosedEmbedding fun x ↦ x.map f

theorem Topology.IsOpenEmbedding.matrix_map E1 #

∀ {m : Type u_11} {n : Type u_12} {R : Type u_13} {S : Type u_14} [inst : TopologicalSpace R]
  [inst_1 : TopologicalSpace S] {f : R → S} [Finite m] [Finite n],
  Topology.IsOpenEmbedding f → Topology.IsOpenEmbedding fun x ↦ x.map f

theorem Continuous.matrix_fromBlocks E1 #

∀ {X : Type u_1} {l : Type u_3} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : TopologicalSpace X]
  [inst_1 : TopologicalSpace R] {A : X → Matrix n l R} {B : X → Matrix n m R} {C : X → Matrix p l R}
  {D : X → Matrix p m R},
  Continuous A →
    Continuous B → Continuous C → Continuous D → Continuous fun x ↦ Matrix.fromBlocks (A x) (B x) (C x) (D x)

theorem Continuous.matrix_blockDiagonal E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : TopologicalSpace X]
  [inst_1 : TopologicalSpace R] [inst_2 : Zero R] [inst_3 : DecidableEq p] {A : X → p → Matrix m n R},
  Continuous A → Continuous fun x ↦ Matrix.blockDiagonal (A x)

theorem Continuous.matrix_blockDiag E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : TopologicalSpace X]
  [inst_1 : TopologicalSpace R] {A : X → Matrix (m × p) (n × p) R}, Continuous A → Continuous fun x ↦ (A x).blockDiag

theorem Continuous.matrix_blockDiagonal' E1 #

∀ {X : Type u_1} {l : Type u_3} {R : Type u_8} {m' : l → Type u_9} {n' : l → Type u_10} [inst : TopologicalSpace X]
  [inst_1 : TopologicalSpace R] [inst_2 : Zero R] [inst_3 : DecidableEq l] {A : X → (i : l) → Matrix (m' i) (n' i) R},
  Continuous A → Continuous fun x ↦ Matrix.blockDiagonal' (A x)

theorem Continuous.matrix_blockDiag' E1 #

∀ {X : Type u_1} {l : Type u_3} {R : Type u_8} {m' : l → Type u_9} {n' : l → Type u_10} [inst : TopologicalSpace X]
  [inst_1 : TopologicalSpace R] {A : X → Matrix ((i : l) × m' i) ((i : l) × n' i) R},
  Continuous A → Continuous fun x ↦ (A x).blockDiag'

theorem isClosed_setOfPred_blockTriangular E1 #

∀ {m : Type u_4} {R : Type u_8} [inst : TopologicalSpace R] {α : Type u_11} {b : m → α} [inst_1 : LinearOrder α]
  [inst_2 : Zero R] [T2Space R], IsClosed {M | M.BlockTriangular b}

theorem HasSum.matrix_transpose E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} {f : X → Matrix m n R} {a : Matrix m n R},
  HasSum f a L → HasSum (fun x ↦ (f x).transpose) a.transpose L

theorem Summable.matrix_transpose E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} {f : X → Matrix m n R}, Summable f L → Summable (fun x ↦ (f x).transpose) L

theorem summable_matrix_transpose E0 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} {f : X → Matrix m n R}, Summable (fun x ↦ (f x).transpose) L ↔ Summable f L

theorem Matrix.transpose_tsum E3 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [T2Space R] {f : X → Matrix m n R},
  (∑'[L] (x : X), f x).transpose = ∑'[L] (x : X), (f x).transpose

theorem HasSum.matrix_conjTranspose E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : StarAddMonoid R] [ContinuousStar R] {f : X → Matrix m n R} {a : Matrix m n R},
  HasSum f a L → HasSum (fun x ↦ (f x).conjTranspose) a.conjTranspose L

theorem Summable.matrix_conjTranspose E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : StarAddMonoid R] [ContinuousStar R] {f : X → Matrix m n R},
  Summable f L → Summable (fun x ↦ (f x).conjTranspose) L

theorem summable_matrix_conjTranspose E0 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : StarAddMonoid R] [ContinuousStar R] {f : X → Matrix m n R},
  Summable (fun x ↦ (f x).conjTranspose) L ↔ Summable f L

theorem Matrix.conjTranspose_tsum E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : StarAddMonoid R] [ContinuousStar R] [T2Space R] {f : X → Matrix m n R},
  (∑'[L] (x : X), f x).conjTranspose = ∑'[L] (x : X), (f x).conjTranspose

theorem Matrix.isClosed_setOfPred_isHermitian E1 #

∀ {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R] [inst_2 : StarAddMonoid R]
  [ContinuousStar R] [T2Space R], IsClosed {X | X.IsHermitian}

theorem Matrix.IsHermitian.of_hasSum E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : StarAddMonoid R] [ContinuousStar R] [T2Space R] [L.NeBot] {f : X → Matrix n n R}
  {a : Matrix n n R}, HasSum f a L → (∀ (i : X), (f i).IsHermitian) → a.IsHermitian

theorem Matrix.IsHermitian.tsum E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : StarAddMonoid R] [ContinuousStar R] [T2Space R] {f : X → Matrix n n R},
  (∀ (i : X), (f i).IsHermitian) → (∑'[L] (a : X), f a).IsHermitian

theorem HasSum.matrix_diagonal E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : DecidableEq n] {f : X → n → R} {a : n → R},
  HasSum f a L → HasSum (fun x ↦ Matrix.diagonal (f x)) (Matrix.diagonal a) L

theorem Summable.matrix_diagonal E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : DecidableEq n] {f : X → n → R},
  Summable f L → Summable (fun x ↦ Matrix.diagonal (f x)) L

theorem summable_matrix_diagonal E0 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : DecidableEq n] {f : X → n → R},
  Summable (fun x ↦ Matrix.diagonal (f x)) L ↔ Summable f L

theorem Matrix.diagonal_tsum E3 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : DecidableEq n] [T2Space R] {f : X → n → R},
  Matrix.diagonal (∑'[L] (x : X), f x) = ∑'[L] (x : X), Matrix.diagonal (f x)

theorem HasSum.matrix_diag E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} {f : X → Matrix n n R} {a : Matrix n n R}, HasSum f a L → HasSum (fun x ↦ (f x).diag) a.diag L

theorem Summable.matrix_diag E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} {f : X → Matrix n n R}, Summable f L → Summable (fun x ↦ (f x).diag) L

theorem HasSum.matrix_trace E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : Fintype n] [ContinuousAdd R] {f : X → Matrix n n R} {a : Matrix n n R},
  HasSum f a L → HasSum (fun x ↦ (f x).trace) a.trace L

theorem Summable.matrix_trace E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : Fintype n] [ContinuousAdd R] {f : X → Matrix n n R},
  Summable f L → Summable (fun x ↦ (f x).trace) L

theorem Matrix.trace_tsum E1 #

∀ {X : Type u_1} {n : Type u_5} {R : Type u_8} [inst : AddCommMonoid R] [inst_1 : TopologicalSpace R]
  {L : SummationFilter X} [inst_2 : Fintype n] [ContinuousAdd R] [T2Space R] [L.NeBot] {f : X → Matrix n n R},
  Summable f L → (∑'[L] (x : X), f x).trace = ∑'[L] (x : X), (f x).trace

theorem HasSum.matrix_blockDiagonal E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} [inst_2 : DecidableEq p] {f : X → p → Matrix m n R}
  {a : p → Matrix m n R}, HasSum f a L → HasSum (fun x ↦ Matrix.blockDiagonal (f x)) (Matrix.blockDiagonal a) L

theorem Summable.matrix_blockDiagonal E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} [inst_2 : DecidableEq p] {f : X → p → Matrix m n R},
  Summable f L → Summable (fun x ↦ Matrix.blockDiagonal (f x)) L

theorem summable_matrix_blockDiagonal E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} [inst_2 : DecidableEq p] {f : X → p → Matrix m n R},
  Summable (fun x ↦ Matrix.blockDiagonal (f x)) L ↔ Summable f L

theorem Matrix.blockDiagonal_tsum E3 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} [inst_2 : DecidableEq p] [T2Space R] {f : X → p → Matrix m n R},
  Matrix.blockDiagonal (∑'[L] (x : X), f x) = ∑'[L] (x : X), Matrix.blockDiagonal (f x)

theorem HasSum.matrix_blockDiag E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} {f : X → Matrix (m × p) (n × p) R}
  {a : Matrix (m × p) (n × p) R}, HasSum f a L → HasSum (fun x ↦ (f x).blockDiag) a.blockDiag L

theorem Summable.matrix_blockDiag E1 #

∀ {X : Type u_1} {m : Type u_4} {n : Type u_5} {p : Type u_6} {R : Type u_8} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} {f : X → Matrix (m × p) (n × p) R},
  Summable f L → Summable (fun x ↦ (f x).blockDiag) L

theorem HasSum.matrix_blockDiagonal' E1 #

∀ {X : Type u_1} {l : Type u_3} {R : Type u_8} {m' : l → Type u_9} {n' : l → Type u_10} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} [inst_2 : DecidableEq l]
  {f : X → (i : l) → Matrix (m' i) (n' i) R} {a : (i : l) → Matrix (m' i) (n' i) R},
  HasSum f a L → HasSum (fun x ↦ Matrix.blockDiagonal' (f x)) (Matrix.blockDiagonal' a) L

theorem Summable.matrix_blockDiagonal' E1 #

∀ {X : Type u_1} {l : Type u_3} {R : Type u_8} {m' : l → Type u_9} {n' : l → Type u_10} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} [inst_2 : DecidableEq l]
  {f : X → (i : l) → Matrix (m' i) (n' i) R}, Summable f L → Summable (fun x ↦ Matrix.blockDiagonal' (f x)) L

theorem summable_matrix_blockDiagonal' E1 #

∀ {X : Type u_1} {l : Type u_3} {R : Type u_8} {m' : l → Type u_9} {n' : l → Type u_10} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} [inst_2 : DecidableEq l]
  {f : X → (i : l) → Matrix (m' i) (n' i) R}, Summable (fun x ↦ Matrix.blockDiagonal' (f x)) L ↔ Summable f L

theorem Matrix.blockDiagonal'_tsum E3 #

∀ {X : Type u_1} {l : Type u_3} {R : Type u_8} {m' : l → Type u_9} {n' : l → Type u_10} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} [inst_2 : DecidableEq l] [T2Space R]
  {f : X → (i : l) → Matrix (m' i) (n' i) R},
  Matrix.blockDiagonal' (∑'[L] (x : X), f x) = ∑'[L] (x : X), Matrix.blockDiagonal' (f x)

theorem HasSum.matrix_blockDiag' E1 #

∀ {X : Type u_1} {l : Type u_3} {R : Type u_8} {m' : l → Type u_9} {n' : l → Type u_10} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} {f : X → Matrix ((i : l) × m' i) ((i : l) × n' i) R}
  {a : Matrix ((i : l) × m' i) ((i : l) × n' i) R}, HasSum f a L → HasSum (fun x ↦ (f x).blockDiag') a.blockDiag' L

theorem Summable.matrix_blockDiag' E1 #

∀ {X : Type u_1} {l : Type u_3} {R : Type u_8} {m' : l → Type u_9} {n' : l → Type u_10} [inst : AddCommMonoid R]
  [inst_1 : TopologicalSpace R] {L : SummationFilter X} {f : X → Matrix ((i : l) × m' i) ((i : l) × n' i) R},
  Summable f L → Summable (fun x ↦ (f x).blockDiag') L

theorem isClosed_setOfPred_posSemidef E1 #

∀ {n : Type u_5} {R : Type u_8} [inst : Ring R] [inst_1 : TopologicalSpace R] [inst_2 : StarRing R]
  [IsTopologicalRing R] [ContinuousStar R] [inst_5 : PartialOrder R] [OrderClosedTopology R],
  IsClosed {A | A.PosSemidef}

theorem PosSemidef.of_hasSum E1 #

∀ {α : Type u_2} {n : Type u_5} {R : Type u_8} [inst : Ring R] [inst_1 : TopologicalSpace R] [inst_2 : StarRing R]
  [IsTopologicalRing R] [ContinuousStar R] [inst_5 : PartialOrder R] [OrderClosedTopology R] [IsOrderedAddMonoid R]
  {f : α → Matrix n n R} {a : Matrix n n R} {L : SummationFilter α} [L.NeBot],
  HasSum f a L → (∀ (i : α), (f i).PosSemidef) → a.PosSemidef

theorem PosSemidef.tsum E1 #

∀ {α : Type u_2} {n : Type u_5} {R : Type u_8} [inst : Ring R] [inst_1 : TopologicalSpace R] [inst_2 : StarRing R]
  [IsTopologicalRing R] [ContinuousStar R] [inst_5 : PartialOrder R] [OrderClosedTopology R] [IsOrderedAddMonoid R]
  {f : α → Matrix n n R} {L : SummationFilter α}, (∀ (i : α), (f i).PosSemidef) → (∑'[L] (a : α), f a).PosSemidef

Deprecated aliases

NameNew nameSince
isClosed_setOf_blockTriangularisClosed_setOfPred_blockTriangular2026-07-09