cfahlgren1/math / lean /OAI /InformationTheory /Entanglement /HilbertVectorMeasure.lean
cfahlgren1's picture
download
raw
3.47 kB
14
def coefficient (x y : H) : HermitianTrace b →L[ℝ] ℂ :=
body · 2 lines
  ((innerSL ℂ x).restrictScalars ℝ).comp
    (((ContinuousLinearMap.apply ℂ H y).restrictScalars ℝ).comp (inclusion b))
17
@[simp] lemma coefficient_apply (x y : H) (A : HermitianTrace b) :
    coefficient b x y A=inner ℂ x (operator b A y) := rfl
19
lemma ext_coefficient {A B : HermitianTrace b}
    (h : ∀ x y, coefficient b x y A=coefficient b x y B) : A=B := by
proof · 3 lines
  apply Subtype.ext
  ext y
  exact ext_inner_left ℂ (fun x => h x y)
28
def traceValue (s : Set T) : HermitianTrace b :=
body · 3 lines
  if hs : MeasurableSet s then ⟨W.value s,⟨(W.positive s hs).1.isSelfAdjoint,by
    rw [CFC.abs_of_nonneg _ (W.positive s hs).1]
    exact W.positive s hs⟩⟩ else 0
32
lemma traceValue_operator {s : Set T} (hs : MeasurableSet s) :
    HermitianTrace.operator b (W.traceValue s)=W.value s := by
proof · 1 line
  simp [traceValue,hs,HermitianTrace.operator]
35
lemma traceValue_coefficient (x y : H) {s : Set T} (hs : MeasurableSet s) :
    HermitianTrace.coefficient b x y (W.traceValue s)=W.coeff x y s := by
proof · 1 line
  rw [HermitianTrace.coefficient_apply,W.traceValue_operator hs,W.coeff_value x y s hs]
38
lemma traceValue_norm {s : Set T} (hs : MeasurableSet s) :
    ‖W.traceValue s‖=W.traceMeasure.real s := by
proof · 2 lines
  rw [HermitianTrace.norm_eq,W.traceValue_operator hs,hilbertTraceNorm,
    CFC.abs_of_nonneg _ (W.positive s hs).1,← W.trace_value s hs]
42
lemma traceValue_empty : W.traceValue ∅=0 := by
proof · 3 lines
  apply HermitianTrace.ext_coefficient
  intro x y
  rw [W.traceValue_coefficient x y MeasurableSet.empty,VectorMeasure.empty,map_zero]
47
lemma traceValue_hasSum {f : ℕ→Set T} (hf : ∀ i, MeasurableSet (f i))
    (hd : Pairwise (Disjoint on f)) : HasSum (fun i => W.traceValue (f i)) (W.traceValue (⋃ i, f i)) := by
proof · 11 lines
  have hs : Summable (fun i => W.traceValue (f i)) := by
    apply Summable.of_norm
    simpa only [W.traceValue_norm (hf _)] using (summable_measure_toReal (μ := W.traceMeasure) hf hd)
  convert hs.hasSum using 1
  apply HermitianTrace.ext_coefficient
  intro x y
  have h1 := hs.hasSum.mapL (HermitianTrace.coefficient b x y)
  have h2 := (W.coeff x y).m_iUnion hf hd
  simp only [W.traceValue_coefficient x y (hf _)] at h1
  rw [W.traceValue_coefficient x y (MeasurableSet.iUnion hf)]
  exact h2.unique h1
61
def traceVectorMeasure : VectorMeasure T (HermitianTrace b) where
body · 4 lines
  measureOf' := W.traceValue
  empty' := W.traceValue_empty
  not_measurable' := by intro s hs; simp [traceValue,hs]
  m_iUnion' := by intro f hf hd; exact W.traceValue_hasSum hf hd
66
@[simp] lemma traceVectorMeasure_apply (s : Set T) : W.traceVectorMeasure s=W.traceValue s := rfl
67
lemma traceVectorMeasure_coefficient (x y : H) {s : Set T} (hs : MeasurableSet s) :
    HermitianTrace.coefficient b x y (W.traceVectorMeasure s)=W.coeff x y s :=
proof · 1 line
  W.traceValue_coefficient x y hs

Xet Storage Details

Size:
3.47 kB
·
Xet hash:
00140e62d0414a18118ee881e98d75398c154fb37e72b1b5f72caa8d51133f4d

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