Offline · exact source
Exact Lean source

PCTCountMeasurementWeights

formalization/Cloning/PCTCountMeasurementWeights.lean

Source hash: 0d00df1eec6cd8d8d88c05332037c92df1404fa2ae503c29e4560265ddb5fec7

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.InfiniteChannelCovariance
2import Cloning.InfiniteTraceClassChannels
3import Cloning.InfiniteFidelityHilbertSum
4 
5/-! Actual finite coarse computational measurement weights, their exact mass,
6trace-norm contraction, and commutation with Bochner mixtures. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace ComplexOrder Classical
9open MeasureTheory
10namespace Cloning.PCTCountMeasurement
11open Cloning.InfiniteTraceClass Cloning.InfiniteFiniteCorner Cloning.Hybrid
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 900000
14variable {H I J : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
15  [Fintype I] [Fintype J]
16 
17def weightCLM (b : I → H) (label : I → J) (j : J) : TraceClass H →L[ℝ] ℝ :=
18  ∑ i, if label i=j then Complex.reCLM.comp ((traceClassMatrixCoefficient (b i) (b i)).restrictScalars ℝ) else 0
19 
20@[simp] theorem weightCLM_apply (b : I → H) (label : I → J) (j : J) (A : TraceClass H) :
21    weightCLM b label j A = ∑ i, if label i=j then (⟪b i, A.1 (b i)⟫_ℂ).re else 0 := by
22  simp only [weightCLM, ContinuousLinearMap.sum_apply]
23  apply Finset.sum_congr rfl
24  intro i _
25  by_cases hi : label i=j
26  · simp only [if_pos hi]
27    rfl
28  · simp only [if_neg hi, ContinuousLinearMap.zero_apply]
29 
30theorem weightCLM_nonneg (b : I → H) (label : I → J) (j : J) (A : TraceClass H) (hA : 0≤A.1) :
31    0≤weightCLM b label j A := by
32  rw [weightCLM_apply]
33  apply Finset.sum_nonneg
34  intro i _
35  split_ifs
36  · exact (Complex.nonneg_iff.mp ((A.1.nonneg_iff_isPositive.mp hA).inner_nonneg_right (b i))).1
37  · exact le_rfl
38 
39theorem weightCLM_sum (b : OrthonormalBasis I ℂ H) (label : I → J) (A : TraceClass H) :
40    (∑ j, weightCLM b label j A) = (traceCLM A).re := by
41  letI := b.toBasis.finiteDimensional_of_finite
42  simp only [weightCLM_apply]
43  rw [Finset.sum_comm]
44  simp only [Finset.sum_ite_eq, Finset.mem_univ, if_true]
45  rw [traceCLM_apply, trace_eq_linearMap_trace_of_finiteDimensional,
46    LinearMap.trace_eq_sum_inner A.1.toLinearMap b, Complex.re_sum]
47  rfl
48 
49theorem sum_abs_weightCLM_le (b : OrthonormalBasis I ℂ H) (label : I → J)
50    (A : TraceClass H) (hA : IsSelfAdjoint A.1) :
51    (∑ j, |weightCLM b label j A|) ≤ ‖A‖ := by
52  let P := TraceClass.positivePart A hA
53  let N := TraceClass.negativePart A hA
54  have hP : 0≤P.1 := TraceClass.positivePart_nonneg A hA
55  have hN : 0≤N.1 := TraceClass.negativePart_nonneg A hA
56  have he j : weightCLM b label j A = weightCLM b label j P - weightCLM b label j N := by
57    rw [← map_sub]
58    exact congrArg (weightCLM b label j) (TraceClass.positivePart_sub_negativePart A hA).symm
59  simp_rw [he]
60  calc
61    (∑ j, |weightCLM b label j P-weightCLM b label j N|) ≤
62        ∑ j, (weightCLM b label j P+weightCLM b label j N) := by
63      apply Finset.sum_le_sum
64      intro j _
65      simpa only [abs_of_nonneg (weightCLM_nonneg b label j P hP),
66        abs_of_nonneg (weightCLM_nonneg b label j N hN)] using
67        abs_sub (weightCLM b label j P) (weightCLM b label j N)
68    _ = ‖P‖+‖N‖ := by
69      rw [Finset.sum_add_distrib, weightCLM_sum, weightCLM_sum,
70        TraceClass.norm_eq_trace_re_of_nonneg P hP, TraceClass.norm_eq_trace_re_of_nonneg N hN]
71      rfl
72    _ = ‖A‖ := TraceClass.norm_positivePart_add_norm_negativePart A hA
73 
74/-- The actual measured finite laws contract trace distance. -/
75theorem weightCLM_l1_contraction (b : OrthonormalBasis I ℂ H) (label : I → J)
76    (A B : TraceClass H) (hA : 0≤A.1) (hB : 0≤B.1) :
77    (∑ j, |weightCLM b label j A-weightCLM b label j B|) ≤ ‖A-B‖ := by
78  simp_rw [← map_sub]
79  exact sum_abs_weightCLM_le b label (A-B)
80    ((IsSelfAdjoint.of_nonneg hA).sub (IsSelfAdjoint.of_nonneg hB))
81 
82/-- Finite measurement is a bounded real-linear evaluation, so it commutes
83with the actual Bochner Gaussian mixture. -/
84theorem weightCLM_integral {X : Type*} [MeasurableSpace X] (μ : Measure X)
85    (b : I → H) (label : I → J) (j : J) (A : X → TraceClass H) (hA : Integrable A μ) :
86    weightCLM b label j (∫ x, A x ∂μ) = ∫ x, weightCLM b label j (A x) ∂μ :=
87  ((weightCLM b label j).integral_comp_comm hA).symm
88 
89end Cloning.PCTCountMeasurement