chars
int64
40
24k
content_type
stringclasses
9 values
id
stringlengths
13
64
source
stringclasses
5 values
subset
stringclasses
31 values
text
stringlengths
40
24k
102
leanexplore_declaration
leanexplore:378809
leanexplore_sqlite
leanexplore_declarations
instance : TopologicalSpace (HermitianMat n α) := inferInstanceAs (TopologicalSpace (selfAdjoint _))
117
leanexplore_declaration
leanexplore:378810
leanexplore_sqlite
leanexplore_declarations
@[fun_prop] theorem continuous_mat : Continuous (HermitianMat.mat : HermitianMat n α → Matrix n n α) := by fun_prop
300
leanexplore_declaration
leanexplore:378811
leanexplore_sqlite
leanexplore_declarations
lemma continuousOn_iff_coe {X : Type*} [TopologicalSpace X] {s : Set X} (f : X → HermitianMat n α) : ContinuousOn f s ↔ ContinuousOn (fun x => (f x).mat) s := by constructor · intro; fun_prop · intro h rw [continuousOn_iff_continuous_restrict] at * apply Continuous.subtype_mk h
96
leanexplore_declaration
leanexplore:378812
leanexplore_sqlite
leanexplore_declarations
instance : ContinuousAdd (HermitianMat n α) := inferInstanceAs (ContinuousAdd (selfAdjoint _))
96
leanexplore_declaration
leanexplore:378813
leanexplore_sqlite
leanexplore_declarations
instance : ContinuousNeg (HermitianMat n α) := inferInstanceAs (ContinuousNeg (selfAdjoint _))
57
leanexplore_declaration
leanexplore:378814
leanexplore_sqlite
leanexplore_declarations
instance : IsTopologicalAddGroup (HermitianMat n α) where
121
leanexplore_declaration
leanexplore:378815
leanexplore_sqlite
leanexplore_declarations
instance : ContinuousSMul R (HermitianMat n α) where continuous_smul := by rw [continuous_induced_rng] fun_prop
68
leanexplore_declaration
leanexplore:378816
leanexplore_sqlite
leanexplore_declarations
instance : IsTopologicalAddGroup (HermitianMat n 𝕜) := inferInstance
63
leanexplore_declaration
leanexplore:378817
leanexplore_sqlite
leanexplore_declarations
instance : ContinuousSMul ℝ (HermitianMat n ℂ) := inferInstance
84
leanexplore_declaration
leanexplore:378818
leanexplore_sqlite
leanexplore_declarations
instance : T3Space (HermitianMat n 𝕜) := inferInstanceAs (T3Space (selfAdjoint _))
118
leanexplore_declaration
leanexplore:378819
leanexplore_sqlite
leanexplore_declarations
instance : MulAction R (HermitianMat n α) := Function.Injective.mulAction Subtype.val Subtype.coe_injective mat_smul
76
leanexplore_declaration
leanexplore:378820
leanexplore_sqlite
leanexplore_declarations
instance : AddCommGroup (HermitianMat n α) := AddSubgroup.toAddCommGroup _
170
leanexplore_declaration
leanexplore:378821
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem mat_finset_sum (f : ι → HermitianMat n α) (s : Finset ι) : (∑ i ∈ s, f i).mat = ∑ i ∈ s, (f i).mat := by apply AddSubgroup.val_finset_sum
99
leanexplore_declaration
leanexplore:378822
leanexplore_sqlite
leanexplore_declarations
instance : Module R (HermitianMat n α) := inferInstanceAs (Module R (selfAdjoint (Matrix n n α)))
222
leanexplore_declaration
leanexplore:378823
leanexplore_sqlite
leanexplore_declarations
/-- The projection from HermitianMat to Matrix, as a continuous linear map. -/ @[simps] def matₗ : HermitianMat n α →L[R] Matrix n n α where toFun := mat cont := by fun_prop map_add' := by simp map_smul' := by simp
76
leanexplore_declaration
leanexplore:378824
leanexplore_sqlite
leanexplore_declarations
@[simps] def matₗ : HermitianMat n α →L[R] Matrix n n α where toFun := mat
148
leanexplore_declaration
leanexplore:378825
leanexplore_sqlite
leanexplore_declarations
instance : One (HermitianMat n α) := ⟨1, by simp [selfAdjoint.mem_iff, ← Matrix.ext_iff, Matrix.one_apply, apply_ite (β := α), eq_comm]⟩
79
leanexplore_declaration
leanexplore:378826
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem mat_one : (1 : HermitianMat n α).mat = 1 := by rfl
105
leanexplore_declaration
leanexplore:378827
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem mk_one (h : (1 : Matrix n n α).IsHermitian) : ⟨1, h⟩ = (1 : HermitianMat n α) := by rfl
101
leanexplore_declaration
leanexplore:378828
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem one_apply (i j : n) : (1 : HermitianMat n α) i j = (1 : Matrix n n α) i j := by rfl
70
leanexplore_declaration
leanexplore:378829
leanexplore_sqlite
leanexplore_declarations
noncomputable instance : AddCommMonoidWithOne (HermitianMat n 𝕜) where
125
leanexplore_declaration
leanexplore:378830
leanexplore_sqlite
leanexplore_declarations
instance [i : Nonempty n] : NeZero (1 : HermitianMat n 𝕜) := by constructor intro h simpa using congr($h i.some i.some)
85
leanexplore_declaration
leanexplore:378831
leanexplore_sqlite
leanexplore_declarations
noncomputable instance instInv : Inv (HermitianMat m α) := ⟨fun x ↦ ⟨x⁻¹, x.H.inv⟩⟩
68
leanexplore_declaration
leanexplore:378832
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem mat_inv : (A⁻¹).mat = A.mat⁻¹ := by rfl
76
leanexplore_declaration
leanexplore:378833
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem zero_inv : ((0 : HermitianMat m α)⁻¹) = 0 := by ext1; simp
75
leanexplore_declaration
leanexplore:378834
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem one_inv : ((1 : HermitianMat m α)⁻¹) = 1 := by ext1; simp
93
leanexplore_declaration
leanexplore:378835
leanexplore_sqlite
leanexplore_declarations
noncomputable instance instPow : Pow (HermitianMat m α) ℕ := ⟨fun x n ↦ ⟨x ^ n, x.H.pow n⟩⟩
80
leanexplore_declaration
leanexplore:378836
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem mat_pow (n : ℕ) : (A ^ n).mat = A.mat ^ n := by rfl
55
leanexplore_declaration
leanexplore:378837
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem pow_zero : A ^ 0 = 1 := by ext1; simp
93
leanexplore_declaration
leanexplore:378838
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem zero_pow (hn : n ≠ 0): (0 : HermitianMat m α) ^ n = 0 := by ext1; simp [hn]
77
leanexplore_declaration
leanexplore:378839
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem one_pow : ((1 : HermitianMat m α) ^ n) = 1 := by ext1; simp
95
leanexplore_declaration
leanexplore:378840
leanexplore_sqlite
leanexplore_declarations
noncomputable instance instZPow : Pow (HermitianMat m α) ℤ := ⟨fun x z ↦ ⟨x ^ z, x.H.zpow z⟩⟩
70
leanexplore_declaration
leanexplore:378841
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem mat_zpow (z : ℤ) : (A ^ z).mat = A.mat ^ z := by rfl
73
leanexplore_declaration
leanexplore:378842
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem zpow_natCast : A ^ (n : ℤ) = A ^ n := by rfl
62
leanexplore_declaration
leanexplore:378843
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem zpow_zero : A ^ (0 : ℤ) = 1 := by ext1; simp
61
leanexplore_declaration
leanexplore:378844
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem zpow_one : A ^ (1 : ℤ) = A := by ext1; simp
78
leanexplore_declaration
leanexplore:378845
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem one_zpow : ((1 : HermitianMat m α) ^ z) = 1 := by ext1; simp
84
leanexplore_declaration
leanexplore:378846
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem zpow_neg_one : A ^ (-1) = A⁻¹ := by ext1; exact A.mat.zpow_neg_one
83
leanexplore_declaration
leanexplore:378847
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem inv_zpow : A⁻¹ ^ z = (A ^ z)⁻¹ := by ext1; exact A.mat.inv_zpow z
241
leanexplore_declaration
leanexplore:378848
leanexplore_sqlite
leanexplore_declarations
@[aesop safe apply (rule_sets := [Commutes])] theorem _root_.Matrix.inv_commute {α : Type*} {A : Matrix m m α} [CommRing α] : Commute A⁻¹ A := by rcases A.nonsing_inv_cancel_or_zero with h | h · simp [Commute, SemiconjBy, h] . simp [h]
111
leanexplore_declaration
leanexplore:378849
leanexplore_sqlite
leanexplore_declarations
@[aesop safe apply (rule_sets := [Commutes])] theorem commute_inv_self : Commute A⁻¹.mat A.mat := by commutes
111
leanexplore_declaration
leanexplore:378850
leanexplore_sqlite
leanexplore_declarations
@[aesop safe apply (rule_sets := [Commutes])] theorem commute_self_inv : Commute A.mat A⁻¹.mat := by commutes
159
leanexplore_declaration
leanexplore:378851
leanexplore_sqlite
leanexplore_declarations
instance FiniteDimensional : FiniteDimensional ℝ (HermitianMat n 𝕜) := FiniteDimensional.finiteDimensional_submodule (selfAdjoint.submodule ℝ (Matrix n n 𝕜))
176
leanexplore_declaration
leanexplore:378852
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem im_diag_eq_zero (A : HermitianMat n 𝕜) (x : n) : RCLike.im (A x x) = 0 := by simpa [CharZero.eq_neg_self_iff] using congrArg (RCLike.im <| · x x) A.H.symm
111
leanexplore_declaration
leanexplore:378853
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem complex_im_eq_zero (A : HermitianMat n ℂ) (x : n) : (A x x).im = 0 := A.im_diag_eq_zero x
812
leanexplore_declaration
leanexplore:378854
leanexplore_sqlite
leanexplore_declarations
/-- The Hermitian matrix given by conjugating by a (possibly rectangular) Matrix. If we required `B` to be square, this would apply to any `Semigroup`+`StarMul` (as proved by `IsSelfAdjoint.conjugate`). But this lets us conjugate to other sizes too, as is done in e.g. Kraus operators. That is, it's a _heterogeneous_ co...
133
leanexplore_declaration
leanexplore:378855
leanexplore_sqlite
leanexplore_declarations
theorem conj_apply (B : Matrix m n α) (A : HermitianMat n α) : conj B A = ⟨B * A.mat * B.conjTranspose, (conj B A).2⟩ := by rfl
135
leanexplore_declaration
leanexplore:378856
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem conj_apply_mat (B : Matrix m n α) (A : HermitianMat n α) : (A.conj B).mat = B * A.mat * B.conjTranspose := by rfl
179
leanexplore_declaration
leanexplore:378857
leanexplore_sqlite
leanexplore_declarations
theorem conj_conj {m l} [Fintype m] (B : Matrix m n α) (C : Matrix l m α) : (A.conj B).conj C = A.conj (C * B) := by ext1 simp [Matrix.conjTranspose_mul, Matrix.mul_assoc]
99
leanexplore_declaration
leanexplore:378858
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem conj_zero [DecidableEq n] : A.conj (0 : Matrix m n α) = 0 := by simp [conj_apply]
81
leanexplore_declaration
leanexplore:378859
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem conj_one [DecidableEq n] : A.conj 1 = A := by simp [conj_apply]
174
leanexplore_declaration
leanexplore:378860
leanexplore_sqlite
leanexplore_declarations
@[simp] lemma conj_one_unitary [DecidableEq n] (U : Matrix.unitaryGroup n α) : conj U.val 1 = 1 := by ext1 have h : U * U.val.conjTranspose = 1 := U.prop.2 simp [h]
236
leanexplore_declaration
leanexplore:378861
leanexplore_sqlite
leanexplore_declarations
/-- `HermitianMat.conj` as an `R`-linear map, where `R` is the ring of relevant reals. -/ def conjLinear {m} (B : Matrix m n α) : HermitianMat n α →ₗ[R] HermitianMat m α where toAddHom := conj B map_smul' _ _ := by ext1 simp
94
leanexplore_declaration
leanexplore:378862
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem conjLinear_apply (B : Matrix m n α) : conjLinear R B A = conj B A := by rfl
175
leanexplore_declaration
leanexplore:378863
leanexplore_sqlite
leanexplore_declarations
@[fun_prop] lemma continuous_conj (ρ : HermitianMat n 𝕜) : Continuous (ρ.conj (m := m) ·) := by simp only [HermitianMat.conj, AddMonoidHom.coe_mk, ZeroHom.coe_mk] fun_prop
185
leanexplore_declaration
leanexplore:378864
leanexplore_sqlite
leanexplore_declarations
instance [i : Nonempty n] : FaithfulSMul ℝ (HermitianMat n 𝕜) where eq_of_smul_eq_smul h := by simpa [RCLike.smul_re, -mat_apply] using congr(RCLike.re ($(h 1).val i.some i.some))
234
leanexplore_declaration
leanexplore:378865
leanexplore_sqlite
leanexplore_declarations
/-- The continuous linear map associated with a Hermitian matrix. -/ noncomputable def lin : EuclideanSpace 𝕜 n →L[𝕜] EuclideanSpace 𝕜 n where toLinearMap := A.mat.toEuclideanLin cont := LinearMap.continuous_of_finiteDimensional _
94
leanexplore_declaration
leanexplore:378866
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem isSymmetric : A.lin.IsSymmetric := Matrix.isHermitian_iff_isSymmetric.mp A.H
81
leanexplore_declaration
leanexplore:378867
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem lin_zero : (0 : HermitianMat n 𝕜).lin = 0 := by simp [lin]; rfl
80
leanexplore_declaration
leanexplore:378868
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem lin_one : (1 : HermitianMat n 𝕜).lin = 1 := by simp [lin]; rfl
106
leanexplore_declaration
leanexplore:378869
leanexplore_sqlite
leanexplore_declarations
noncomputable def eigenspace (μ : 𝕜) : Submodule 𝕜 (EuclideanSpace 𝕜 n) := Module.End.eigenspace A.lin μ
258
leanexplore_declaration
leanexplore:378870
leanexplore_sqlite
leanexplore_declarations
/-- The kernel of a Hermitian matrix `A` as a submodule of Euclidean space, defined by `LinearMap.ker A.toMat.toEuclideanLin`. Equivalently, the zero-eigenspace. -/ noncomputable def ker : Submodule 𝕜 (EuclideanSpace 𝕜 n) := LinearMap.ker A.lin.toLinearMap
154
leanexplore_declaration
leanexplore:378871
leanexplore_sqlite
leanexplore_declarations
theorem mem_ker_iff_mulVec_zero (x : EuclideanSpace 𝕜 n) : x ∈ A.ker ↔ A.mat.mulVec x = 0 := by simp [ker, LinearMap.mem_ker, lin, Matrix.toLpLin_apply]
156
leanexplore_declaration
leanexplore:378872
leanexplore_sqlite
leanexplore_declarations
/-- The kernel of a Hermitian matrix is its zero eigenspace. -/ theorem ker_eq_eigenspace_zero : A.ker = A.eigenspace 0 := by ext simp [ker, eigenspace]
76
leanexplore_declaration
leanexplore:378873
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem ker_zero : (0 : HermitianMat n 𝕜).ker = ⊤ := by simp [ker]
80
leanexplore_declaration
leanexplore:378874
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem ker_one : (1 : HermitianMat n 𝕜).ker = ⊥ := by simp [ker]; rfl
134
leanexplore_declaration
leanexplore:378875
leanexplore_sqlite
leanexplore_declarations
theorem ker_pos_smul {c : ℝ} (hc : c ≠ 0) : (c • A).ker = A.ker := by ext x simp [mem_ker_iff_mulVec_zero, Matrix.smul_mulVec, hc]
282
leanexplore_declaration
leanexplore:378876
leanexplore_sqlite
leanexplore_declarations
/-- The support of a Hermitian matrix `A` as a submodule of Euclidean space, defined by `LinearMap.range A.toMat.toEuclideanLin`. Equivalently, the sum of all nonzero eigenspaces. -/ noncomputable def support : Submodule 𝕜 (EuclideanSpace 𝕜 n) := LinearMap.range A.lin.toLinearMap
227
leanexplore_declaration
leanexplore:378877
leanexplore_sqlite
leanexplore_declarations
/-- The support of a Hermitian matrix is the sum of its nonzero eigenspaces. -/ theorem support_eq_sup_eigenspace_nonzero : A.support = ⨆ μ ≠ 0, A.eigenspace μ := by exact A.lin.support_eq_sup_eigenspace_nonzero A.isSymmetric
88
leanexplore_declaration
leanexplore:378878
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem support_zero : (0 : HermitianMat n 𝕜).support = ⊥ := by simp [support]
139
leanexplore_declaration
leanexplore:378879
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem support_one : (1 : HermitianMat n 𝕜).support = ⊤ := by simpa [support] using LinearMap.ker_eq_bot_iff_range_eq_top.mp rfl
146
leanexplore_declaration
leanexplore:378880
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem ker_orthogonal_eq_support : A.kerᗮ = A.support := by rw [ker, support] convert ContinuousLinearMap.orthogonal_ker A.lin simp
150
leanexplore_declaration
leanexplore:378881
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem support_orthogonal_eq_range : A.supportᗮ = A.ker := by rw [ker, support] convert ContinuousLinearMap.orthogonal_range A.lin simp
168
leanexplore_declaration
leanexplore:378882
leanexplore_sqlite
leanexplore_declarations
def diagonal (f : n → ℝ) : HermitianMat n 𝕜 := ⟨Matrix.diagonal (f ·), by simp [selfAdjoint.mem_iff, Matrix.star_eq_conjTranspose, Matrix.diagonal_conjTranspose]⟩
93
leanexplore_declaration
leanexplore:378883
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem diagonal_mat : (diagonal 𝕜 f).mat = Matrix.diagonal (f · : n → 𝕜) := by rfl
90
leanexplore_declaration
leanexplore:378884
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem diagonal_zero : (diagonal 𝕜 0) = (0 : HermitianMat n 𝕜) := by ext1; simp
107
leanexplore_declaration
leanexplore:378885
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem diagonal_one : (diagonal 𝕜 1) = (1 : HermitianMat n 𝕜) := by ext; rw [diagonal_mat]; simp
88
leanexplore_declaration
leanexplore:378886
leanexplore_sqlite
leanexplore_declarations
lemma diagonal_add : diagonal 𝕜 (f + g) = diagonal 𝕜 f + diagonal 𝕜 g := by ext1; simp
106
leanexplore_declaration
leanexplore:378887
leanexplore_sqlite
leanexplore_declarations
lemma diagonal_add_apply : diagonal 𝕜 (fun x ↦ f x + g x) = diagonal 𝕜 f + diagonal 𝕜 g := by ext1; simp
88
leanexplore_declaration
leanexplore:378888
leanexplore_sqlite
leanexplore_declarations
lemma diagonal_sub : diagonal 𝕜 (f - g) = diagonal 𝕜 f - diagonal 𝕜 g := by ext1; simp
122
leanexplore_declaration
leanexplore:378889
leanexplore_sqlite
leanexplore_declarations
theorem diagonal_mul (c : ℝ) : diagonal 𝕜 (fun x ↦ c * f x) = c • diagonal 𝕜 f := by ext1; simp [← Matrix.diagonal_smul]
172
leanexplore_declaration
leanexplore:378890
leanexplore_sqlite
leanexplore_declarations
theorem diagonal_conj_diagonal [Fintype n] : (diagonal 𝕜 f).conj (diagonal 𝕜 g) = diagonal 𝕜 (fun i ↦ f i * (g i)^2) := by ext1 simp [diagonal, conj] intro ring
289
leanexplore_declaration
leanexplore:378891
leanexplore_sqlite
leanexplore_declarations
/-- A Hermitian matrix is equal to its diagonalization conjugated by its eigenvector unitary matrix. -/ lemma eq_conj_diagonal [Fintype n] (A : HermitianMat n 𝕜) : A = (diagonal 𝕜 A.H.eigenvalues).conj A.H.eigenvectorUnitary := by ext1 exact Matrix.IsHermitian.spectral_theorem A.2
246
leanexplore_declaration
leanexplore:378892
leanexplore_sqlite
leanexplore_declarations
/-- The kronecker product of two HermitianMats, see `Matrix.kroneckerMap`. -/ def kronecker (A : HermitianMat m α) (B : HermitianMat n α) : HermitianMat (m × n) α where val := A.mat ⊗ₖ B.mat property := Matrix.kroneckerMap_IsHermitian A.H B.H
232
leanexplore_declaration
leanexplore:378893
leanexplore_sqlite
leanexplore_declarations
@[inherit_doc HermitianMat.kronecker] scoped[HermitianMat] infixl:100 " ⊗ₖ " => HermitianMat.kronecker @[simp, norm_cast] theorem kronecker_mat (A : HermitianMat m α) (B : HermitianMat n α) : (A ⊗ₖ B).mat = A.mat ⊗ₖ B.mat := by
134
leanexplore_declaration
leanexplore:378894
leanexplore_sqlite
leanexplore_declarations
@[simp, norm_cast] theorem kronecker_mat (A : HermitianMat m α) (B : HermitianMat n α) : (A ⊗ₖ B).mat = A.mat ⊗ₖ B.mat := by rfl
106
leanexplore_declaration
leanexplore:378895
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem zero_kronecker (A : HermitianMat m α) : (0 : HermitianMat n α) ⊗ₖ A = 0 := by ext1; simp
106
leanexplore_declaration
leanexplore:378896
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem kronecker_zero (A : HermitianMat m α) : A ⊗ₖ (0 : HermitianMat n α) = 0 := by ext1; simp
107
leanexplore_declaration
leanexplore:378897
leanexplore_sqlite
leanexplore_declarations
@[simp] theorem kronecker_one_one : (1 : HermitianMat m α) ⊗ₖ (1 : HermitianMat n α) = 1 := by ext1; simp
96
leanexplore_declaration
leanexplore:378898
leanexplore_sqlite
leanexplore_declarations
theorem add_kronecker : (A + B) ⊗ₖ C = A ⊗ₖ C + B ⊗ₖ C := by ext1; simp [Matrix.add_kronecker]
96
leanexplore_declaration
leanexplore:378899
leanexplore_sqlite
leanexplore_declarations
theorem kronecker_add : A ⊗ₖ (B + C) = A ⊗ₖ B + A ⊗ₖ C := by ext1; simp [Matrix.kronecker_add]
228
leanexplore_declaration
leanexplore:378900
leanexplore_sqlite
leanexplore_declarations
lemma kronecker_diagonal [DecidableEq m] [DecidableEq n] (d₁ : m → ℝ) (d₂ : n → ℝ) : (diagonal 𝕜 d₁ ⊗ₖ diagonal 𝕜 d₂) = diagonal 𝕜 (fun (i : m × n) => d₁ i.1 * d₂ i.2) := by ext1 simp [Matrix.diagonal_kronecker_diagonal]
602
leanexplore_declaration
leanexplore:378901
leanexplore_sqlite
leanexplore_declarations
/-- A ⊗ₖ B always commutes with C ⊗ₖ D if the pairs commute. -/ --Apply safely. It will almost always work, but there are cases where it's not sound, -- such as `A = 0`. But these can all get easily simp'ed away anyway. @[aesop safe apply (rule_sets := [Commutes])] theorem kron_commute [Fintype m] [Fintype n] [Decidabl...
358
leanexplore_declaration
leanexplore:378902
leanexplore_sqlite
leanexplore_declarations
/-- A ⊗ₖ 1 always commutes with 1 ⊗ₖ B -/ @[aesop safe apply (rule_sets := [Commutes])] --redundant but important shortcut theorem kron_id_commute_id_kro [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n] (A : HermitianMat m α) (B : HermitianMat n α) : Commute (A ⊗ₖ (1 : HermitianMat n α)).mat ((1 : Hermit...
250
leanexplore_declaration
leanexplore:378903
leanexplore_sqlite
leanexplore_declarations
lemma kronecker_conj [Fintype m] [Fintype n] (A : HermitianMat m α) (B : HermitianMat n α) (C : Matrix p m α) (D : Matrix q n α) : (A ⊗ₖ B).conj (C ⊗ₖ D) = (A.conj C) ⊗ₖ (B.conj D) := by ext1 exact Matrix.kronecker_conj_eq A.mat B.mat C D
1,232
leanexplore_declaration
leanexplore:378904
leanexplore_sqlite
leanexplore_declarations
theorem range_le_ker_imp_zero {A : HermitianMat d 𝕜} (h : LinearMap.range A.mat.toEuclideanLin ≤ LinearMap.ker A.mat.toEuclideanLin) : A = 0 := by rw [HermitianMat.ext_iff, mat_zero] ext i j have hA_sq : (A.mat * A.mat) = 0 := by simp_all only [SetLike.le_def, LinearMap.mem_range, LinearMap.mem_ker, fora...
2,914
leanexplore_declaration
leanexplore:378905
leanexplore_sqlite
leanexplore_declarations
/-- If ker M ⊆ ker A, then range (A Mᴴ) = range A. -/ theorem _root_.Matrix.range_mul_conjTranspose_of_ker_le_ker {A : Matrix d d 𝕜} {M : Matrix d₂ d 𝕜} (h : LinearMap.ker M.toEuclideanLin ≤ LinearMap.ker A.toEuclideanLin) : LinearMap.range (A * M.conjTranspose).toEuclideanLin = LinearMap.range A.toEuclideanL...
635
leanexplore_declaration
leanexplore:378906
leanexplore_sqlite
leanexplore_declarations
theorem conj_ne_zero {A : HermitianMat d 𝕜} {M : Matrix d₂ d 𝕜} (hA : A ≠ 0) (h : LinearMap.ker M.toEuclideanLin ≤ A.ker) : A.conj M ≠ 0 := by by_contra h_contra have h_range : LinearMap.range A.mat.toEuclideanLin ≤ LinearMap.ker A.mat.toEuclideanLin := by have h_range : LinearMap.range (A.mat * M.conjTra...
262
leanexplore_declaration
leanexplore:378907
leanexplore_sqlite
leanexplore_declarations
theorem conj_ne_zero_iff {A : HermitianMat d 𝕜} {M : Matrix d₂ d 𝕜} (h : LinearMap.ker M.toEuclideanLin ≤ A.ker) : A.conj M ≠ 0 ↔ A ≠ 0 := by refine ⟨?_, (conj_ne_zero · h)⟩ intro h rfl; simp at h--should be grind[= map_zero] but I don't know why. TODO.
219
leanexplore_declaration
leanexplore:378908
leanexplore_sqlite
leanexplore_declarations
theorem _root_.Matrix.IsHermitian.spectrum_rcLike {A : Matrix n n 𝕜} (hA : A.IsHermitian) : RCLike.ofReal '' spectrum ℝ A = spectrum 𝕜 A := by rw [hA.spectrum_eq_image_range, hA.spectrum_real_eq_range_eigenvalues]