cfahlgren1/math / lean /OAI /InformationTheory /Entanglement /InstrumentMeasure.lean
cfahlgren1's picture
download
raw
3.02 kB
15
def testMeasure (W : PositiveMatrixMeasure Ω n) (E : Mat n) : Measure Ω :=
body · 1 line
  (W.filter (CFC.sqrt E)).traceMeasure
17
instance (W : PositiveMatrixMeasure Ω n) (E : Mat n) : IsFiniteMeasure (W.testMeasure E) := by
body · 2 lines
  unfold testMeasure
  infer_instance
20
lemma testMeasure_real (W : PositiveMatrixMeasure Ω n) {E : Mat n} (hE : E.PosSemidef)
    {s : Set Ω} (hs : MeasurableSet s) :
    (W.testMeasure E).real s=(Matrix.trace (E*W.value s)).re := by
proof · 1 line
  rw [testMeasure,traceMeasure_real _ hs,filter_value,trace_filter hE]
24
lemma testMeasure_density (W : PositiveMatrixMeasure Ω n) {E : Mat n} (hE : E.PosSemidef)
    {μ : Measure Ω} [IsFiniteMeasure μ] (hW : W.traceMeasure≪μ)
    {s : Set Ω} (hs : MeasurableSet s) :
    (∫ t in s, (Matrix.trace (E*W.positiveDensity μ t)).re ∂μ)=(W.testMeasure E).real s := by
proof · 19 lines
  rw [testMeasure_real W hE hs]
  change (∫ t in s, RCLike.re (Matrix.trace (E*W.positiveDensity μ t)) ∂μ)=_
  have hi : Integrable (fun t => Matrix.trace (E*W.positiveDensity μ t)) (μ.restrict s) := by
    simp only [Matrix.trace,Matrix.diag,Matrix.mul_apply]
    exact integrable_finsetSum _ fun i _ => integrable_finsetSum _ fun j _ =>
      ((W.positiveDensity_integrable hW j i).integrableOn).const_mul _
  rw [integral_re hi]
  change Complex.re (∫ t in s, Matrix.trace (E*W.positiveDensity μ t) ∂μ)=_
  apply congrArg Complex.re
  change (∫ t in s, ∑ i : n, ∑ j : n, E i j*W.positiveDensity μ t j i ∂μ)=
    ∑ i : n, ∑ j : n, E i j*W.value s j i
  rw [integral_finsetSum (Finset.univ : Finset n) (fun i _ => integrable_finsetSum (Finset.univ : Finset n) (fun j _ =>
    ((W.positiveDensity_integrable hW j i).integrableOn).const_mul (E i j)))]
  apply Finset.sum_congr rfl
  intro i hi
  rw [integral_finsetSum (Finset.univ : Finset n) (fun j _ => ((W.positiveDensity_integrable hW j i).integrableOn).const_mul (E i j))]
  apply Finset.sum_congr rfl
  intro j hj
  rw [integral_const_mul,W.positiveDensity_setIntegral hW hs]
51
lemma probe_test_value (E : Mat n) (s : Set Ω) :
    Matrix.trace (E*L.probe.value s)=L.law Eᵀ s := by
proof · 3 lines
  rw [L.law_expand]
  simp only [Matrix.trace,Matrix.diag,Matrix.mul_apply,Matrix.transpose_apply,probe_value]
  rw [Finset.sum_comm]
56
lemma probe_testMeasure_real {E : Mat n} (hE : E.PosSemidef) {s : Set Ω} (hs : MeasurableSet s) :
    (L.probe.testMeasure E).real s=(L.law Eᵀ s).re := by
proof · 1 line
  rw [PositiveMatrixMeasure.testMeasure_real _ hE hs,L.probe_test_value]

Xet Storage Details

Size:
3.02 kB
·
Xet hash:
f4d1fd88478ba3c5f5fc9bb3110b4c4dbf3fb9a8af4da604364576065fdc7ff7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.