theoremarbitrary_purification_tested_gap
{Ω : Type*} {mΩ : MeasurableSpace Ω} [StandardBorelSpace Ω]
(ν : Measure Ω) [IsFiniteMeasure ν] (t : Ω→T) (ht : Measurable t)
{AB : MeasurableSpace Ω} (hA : A≤ mΩ) (hB : B≤ mΩ)
(hind : CondIndep (MeasurableSpace.comap t inferInstance) AB ht.comap_le ν)
(a : Fin2→Option (PositiveTestIndex n)→Set Ω)
(q : Fin2→Option (PositiveTestIndex m)→Set Ω)
(ha : ∀ i r, MeasurableSet[A] (a i r)) (hq : ∀ j s, MeasurableSet[B] (q j s))
(M : Fin2→Fin2→PositiveMatrixMeasureT (n×m))
(hdom : ∀ i j, (M i j).traceMeasure ≪ (@Measure.map Ω T mΩ _ t ν))
(hleft : ∀ i r s, MeasurableSet s →
(∑ j, (Matrix.trace ((probePOVM r ⊗ₖ (1 : Mat m))*(M i j).value s)).re)=
ν.real (a i r∩t⁻¹' s))
(hright : ∀ j g s, MeasurableSet s →
(∑ i, (Matrix.trace (((1 : Mat n) ⊗ₖ probePOVM g)*(M i j).value s)).re)=
ν.real (q j g∩t⁻¹' s))
(hjoint : ∀ i j r g s, MeasurableSet s →
(Matrix.trace ((probePOVM r ⊗ₖ probePOVM g)*(M i j).value s)).re=
ν.real ((a i r∩q j g)∩t⁻¹' s))
{H : Type*} [NormedAddCommGroupH] [InnerProductSpaceℂH] [CompleteSpaceH]
{ι : Type*} (b : HilbertBasis ι ℂH)
(R : Mat (n×m)) (hR : RepresentedR) (i₀ : n×m)
(x : (n×m)→H) (hxGram : ∀ i j, inner ℂ (x i) (x j)=Rᵀ i j)
(W : Fin2→Fin2→PositiveHilbertMeasureTH b)
(hW : ∀ i j s, MeasurableSet s → (W i j).value s=hilbertEmbed x ((M i j).value s))
(hW1 : (∑ i, ∑ j, hilbertTrace b ((W i j).value Set.univ))=1)
(σ : PositiveHilbertMeasureTH b) (hσ1 : σ.traceMeasure Set.univ=1) :
ENNReal.ofReal (1/5) ≤ hilbertCQDistance b W σ :=by
proof · 42
lines
obtain ⟨d,v,Z,hv,hx,hg⟩ := purification_orthonormal_expansion x
havehGram : Zᴴ*Z=Rᵀ :=by ext i j; rw [hg,hxGram]
havehd : 0<d :=by
by_contra hn
havehz : d=0:=Nat.eq_zero_of_not_pos hn
subst d
havehzero : Zᴴ*Z=0:=by ext i j; simp [Matrix.mul_apply]
have ht := congrArg Matrix.trace hGram
rw [hzero,Matrix.trace_zero,Matrix.trace_transpose,hR.2.1] at ht
exact zero_ne_one ht
letj₀ : Fin d := ⟨0,hd⟩
letV:=fun i j => ((M i j).filter Z).hilbertEmbedding b v hv
have hValues i j s (hs : MeasurableSet s) : (W i j).value s=(V i j).value s :=by
rw [hW i j s hs]
change hilbertEmbed x ((M i j).value s)=
hilbertEmbed v (((M i j).filter Z).value s)
rw [PositiveMatrixMeasure.filter_value]
rw [← hilbertEmbed_congruence]
congr 1
funext j
exact (hx j).symm
havehnorm : (∑ i, ∑ j, (Matrix.trace (((M i j).filter Z).value Set.univ)).re)=1:=by
rw [← hW1]
apply Finset.sum_congr rfl; intro i hi
apply Finset.sum_congr rfl; intro j hj
rw [hValues i j Set.univ MeasurableSet.univ]
exact (hilbertEmbed_trace b v hv _).symm
have hgap := independent_tested_quantum_gap ν t ht hA hB hind a q ha hq M hdom
hleft hright hjoint b R hR i₀ v hv j₀ Z hGram hnorm σ hσ1havehe : hilbertCQDistance b W σ=hilbertCQDistance b V σ :=by
unfold hilbertCQDistance
apply Finset.sum_congr rfl; intro i hi
apply Finset.sum_congr rfl; intro j hj
unfold hilbertVariation
apply iSup_congr; intro P
apply iSup_congr; intro hP
apply iSup_congr; intro hpd
apply Finset.sum_congr rfl; intro s hs
exact congrArg (funD=> hilbertENorm b (D-hilbertIdeal σ.value i j s))
(hValues i j s (hP s hs))
rw [he]
exact hgap