law : Mat n →ₗ[ℂ] ComplexMeasure Ω
positive : ∀ (r : Type) [Fintype r] (A : Mat (r×n)), A.PosSemidef→∀ s, MeasurableSet s →Matrix.PosSemidef (fun a b => law (fun i j =>A (a,i) (b,j)) s)
total : ∀A, law ASet.univ=Matrix.trace A
theorempurificationLaw_eq_filter (B : Matrix e n ℂ) :
I.purificationLaw B=I.rawProbe.filter B:=by
proof · 6
lines
apply PositiveMatrixMeasure.ext_entry_default
funext a b
change I.law (fun i j =>B a i*star (B b j))=
∑ i, ∑ j, (B a i*star (B b j)) • I.rawProbe.entry i j
erw [I.law_entries]
simp only [I.rawProbe_entry]
lemmapurificationLaw_total (B : Matrix e n ℂ) :
(I.purificationLaw B).value Set.univ=B*Bᴴ :=by
proof · 4
lines
ext a b
change I.law (fun i j =>B a i*star (B b j)) Set.univ=_
erw [I.total]
simp only [Matrix.trace,Matrix.diag,Matrix.mul_apply,Matrix.conjTranspose_apply]
theoremreferenceLaw_conjugation (A : Mat (e×n)) (hA : A.PosSemidef)
(B : Matrix d e ℂ) :
I.referenceLaw ((B ⊗ₖ (1 : Mat n))*A*(B ⊗ₖ (1 : Mat n))ᴴ)
(hA.mul_mul_conjTranspose_same _)=(I.referenceLaw A hA).filter B:=by
proof · 25
lines
apply PositiveMatrixMeasure.ext_entry_default
funext a b
change I.law (fun i j => ((B ⊗ₖ (1 : Mat n))*A*(B ⊗ₖ (1 : Mat n))ᴴ) (a,i) (b,j))=
∑ u, ∑ v, (B a u*star (B b v)) • I.law (fun i j =>A (u,i) (v,j))
havehEntry : (fun i j => ((B ⊗ₖ (1 : Mat n))*A*(B ⊗ₖ (1 : Mat n))ᴴ) (a,i) (b,j))=
∑ u, ∑ v, (B a u*star (B b v)) • (fun i j =>A (u,i) (v,j)) :=by
ext i j
simp only [Finset.sum_apply,Pi.smul_apply,smul_eq_mul]
simp only [Matrix.mul_apply,Matrix.conjTranspose_apply,Matrix.kroneckerMap_apply,
Matrix.one_apply,Fintype.sum_prod_type,
mul_one,mul_zero,ite_mul,zero_mul,apply_ite,star_zero]
simp only [Finset.sum_ite_eq,Finset.mem_univ,ite_true,Finset.sum_mul]
rw [Finset.sum_comm]
apply Finset.sum_congr rfl
intro u hu
apply Finset.sum_congr rfl
intro v hv
ring
erw [hEntry,map_sum]
apply Finset.sum_congr rfl
intro u hu
erw [map_sum]
apply Finset.sum_congr rfl
intro v hv
exact I.law.map_smul _ _