defhilbertEmbedding (W : PositiveMatrixMeasureT n) (b : HilbertBasis ι ℂH)
(v : n →H) (hv : Orthonormalℂ v) : PositiveHilbertMeasureTH b where
body · 14
lines
value s := hilbertEmbed v (W.value s)
coeff x y :=∑ i, ∑ j, (inner ℂ x (v i)*inner ℂ (v j) y) • W.entry i j
coeff_value x y s hs :=by
simp only [_root_.sum_apply,_root_.smul_apply,smul_eq_mul,hilbertEmbed_apply,inner_sum,
inner_smul_right,PositiveMatrixMeasure.value]
apply Finset.sum_congr rfl
intro i _
apply Finset.sum_congr rfl
intro j _
ring
positive s hs := hilbertEmbed_psd_finite b v (W.positive s hs)
traceMeasure :=W.traceMeasure
traceFinite := inferInstance
trace_value s hs :=by rw [hilbertEmbed_trace b v hv,W.traceMeasure_real hs]
lemmahilbertEmbedding_recovered (W : PositiveMatrixMeasureT n) (b : HilbertBasis ι ℂH)
(v : n →H) (hv : Orthonormalℂ v) (i₀ : n) :
(W.hilbertEmbedding b v hv).erase v hv i₀=W:=by
proof · 9
lines
havehe : ((W.hilbertEmbedding b v hv).erase v hv i₀).entry=W.entry :=by
funext i j
apply VectorMeasure.ext
intro s hs
have h :=PositiveHilbertMeasure.erase_value (W.hilbertEmbedding b v hv) v hv i₀ hs
change _=hilbertErase b v i₀ (hilbertEmbed v (W.value s)) at h
rw [hilbertErase_embed b v hv i₀] at h
exact congrArg (funA : Mat n =>A i j) h
exact ext_entry he