Offline · exact source
Exact Lean source

TensorLANEmbeddingCellError

formalization/Cloning/TensorLANEmbeddingCellError.lean

Source hash: 43e9c32d8cead835e9cfd2cbf62cd1834bb91b448b64b1670b0cbe66d9ad3979

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.TensorLANEmbeddingCellRecovery
2import Cloning.TensorLANEmbeddingSchurState
3 
4/-! Quantitative bounds for the literal complete physical channels, including
5the exact rotated tensor block law and reverse cell reconstruction. -/
6noncomputable section
7open scoped BigOperators Topology Classical InnerProductSpace Matrix
8open MeasureTheory Filter
9namespace Cloning.TensorLAN
10open Cloning.YoungHyperplane Cloning.TensorLie Cloning.PCTJointGaussianWhitening
11open Cloning.Hybrid Cloning.InfiniteTraceClass Cloning.PCT
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 1500000
14set_option synthInstance.maxHeartbeats 100000
15variable {d : ℕ}
16local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
17  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
18variable (p : Fin (d+1) → ℝ) (hp : ∀ a, 0 < p a)
19    (b : OrthonormalBasis (Fin (d+1)) ℝ (EuclideanSpace ℝ (Fin (d+1))))
20    (hb : b 0 = sqrtSpectrum p)
21 
22theorem physicalCellForward_rotated (N R : ℕ) (U : Matrix (Fin (d+1)) (Fin (d+1)) ℂ)
23    (r : Fin (d+1) → ℝ) (hr : ∀ a, 0 < r a) :
24    (physicalCellForward p hp b hb N R).map
25      (matrixTensorPower (U*Matrix.diagonal (fun a => (r a : ℂ))*Uᴴ) N) =
26    ∑ i : SchurCopy N (d+1), prepareL1 (μ := (volume : Measure (Fin d → ℝ))) (physicalCellDensity p hp b hb N i)
27      (physicalCellDensity_integrable p hp b hb N i)
28      ((((recursivePhysicalDecomposition N (d+1)).get i).character r : ℂ) •
29        (copyToFock N (d+1) R i).toLinearMap
30          (canonicalRotatedGibbs ((recursivePhysicalDecomposition N (d+1)).get i) U r)) := by
31  have he := schurForward_apply N (d+1) R (physicalCellDensity p hp b hb N)
32    (physicalCellDensity_integrable p hp b hb N)
33    (physicalCellDensity_nonneg p hp b hb N)
34    (physicalCellDensity_integral p hp b hb N)
35    (matrixTensorPower (U*Matrix.diagonal (fun a => (r a : ℂ))*Uᴴ) N)
36  refine he.trans ?_
37  apply Finset.sum_congr rfl
38  intro i _
39  let H := (recursivePhysicalDecomposition N (d+1)).get i
40  have hblock := (matrixTensorPower_canonical_block H
41    (U*Matrix.diagonal (fun a => (r a : ℂ))*Uᴴ)).trans
42      (canonicalTensorWeight_rotated_diagonal H U r hr)
43  exact congrArg (prepareL1 (physicalCellDensity p hp b hb N i)
44    (physicalCellDensity_integrable p hp b hb N i))
45      ((congrArg (copyToFock N (d+1) R i).toLinearMap hblock).trans
46        ((copyToFock N (d+1) R i).toLinearMap.map_smul _ _))
47 
48theorem physicalCellForward_rotated_error (N R : ℕ)
49    (U : Matrix (Fin (d+1)) (Fin (d+1)) ℂ)
50    (r : Fin (d+1) → ℝ) (hr : ∀ a, 0 < r a)
51    (σ : TraceClass (RootFock (d+1))) (f : (Fin d → ℝ) → ℝ) (hf : Integrable f (volume : Measure (Fin d → ℝ))) :
52    ‖(physicalCellForward p hp b hb N R).map
53      (matrixTensorPower (U*Matrix.diagonal (fun a => (r a : ℂ))*Uᴴ) N)-prepareL1 f hf σ‖ ≤
54      (∑ i : SchurCopy N (d+1), ((recursivePhysicalDecomposition N (d+1)).get i).character r *
55        ‖(copyToFock N (d+1) R i).toLinearMap
56          (canonicalRotatedGibbs ((recursivePhysicalDecomposition N (d+1)).get i) U r)-σ‖) +
57      (∫ y, |physicalLabelDensity p hp b hb N r y-f y|)*‖σ‖ := by
58  rw [physicalCellForward_rotated p hp b hb N R U r hr]
59  exact finite_prepared_mixture_error _ (fun i => PhysicalHighestTensor.character_nonneg _ _)
60    _ (physicalCellDensity_integrable p hp b hb N) (physicalCellDensity_nonneg p hp b hb N)
61    (physicalCellDensity_integral p hp b hb N) _ σ f hf
62 
63theorem fockToCopy_error_le (N R : ℕ) (i : SchurCopy N (d+1))
64    (A : TraceClass ((recursivePhysicalDecomposition N (d+1)).get i).CanonicalSector)
65    (σ : TraceClass (RootFock (d+1))) :
66    ‖(fockToCopy N (d+1) R i).toLinearMap σ -
67      conjugationLinearMap ((recursivePhysicalDecomposition N (d+1)).get i).canonicalEmbedding.toContinuousLinearMap A‖ ≤
68      2*‖(fockToSectorTotal
69        (partitionHighestTensor ((recursivePhysicalDecomposition N (d+1)).get i).weight
70          ((recursivePhysicalDecomposition N (d+1)).get i).weight_antitone)
71        ((recursivePhysicalDecomposition N (d+1)).get i).weight R
72        (partitionHighestTensor_norm _ _)).toLinearMap σ-A‖ := by
73  let H := (recursivePhysicalDecomposition N (d+1)).get i
74  change ‖conjugationLinearMap H.canonicalEmbedding.toContinuousLinearMap _-
75    conjugationLinearMap H.canonicalEmbedding.toContinuousLinearMap A‖ ≤ _
76  rw [← map_sub]
77  exact (QuantumChannel.ofIsometry H.canonicalEmbedding).toPositiveTracePreservingMap.norm_map_le_two_mul _
78 
79theorem physicalCellReverse_rotated_error (N R : ℕ) (hN : 0 < N)
80    (U : Matrix (Fin (d+1)) (Fin (d+1)) ℂ)
81    (r : Fin (d+1) → ℝ) (hr : ∀ a, 0 < r a) (hs : ∑ a, r a = 1)
82    (σ : TraceClass (RootFock (d+1))) (f : (Fin d → ℝ) → ℝ) (hf : Integrable f (volume : Measure (Fin d → ℝ))) :
83    ‖(physicalCellReverse p hp b hb N R).map (prepareL1 f hf σ)-
84      matrixTensorPower (U*Matrix.diagonal (fun a => (r a : ℂ))*Uᴴ) N‖ ≤
85    2*(∑ i : SchurCopy N (d+1), ((recursivePhysicalDecomposition N (d+1)).get i).character r *
86      ‖(fockToSectorTotal
87        (partitionHighestTensor ((recursivePhysicalDecomposition N (d+1)).get i).weight
88          ((recursivePhysicalDecomposition N (d+1)).get i).weight_antitone)
89        ((recursivePhysicalDecomposition N (d+1)).get i).weight R
90        (partitionHighestTensor_norm _ _)).toLinearMap σ-
91          canonicalRotatedGibbs ((recursivePhysicalDecomposition N (d+1)).get i) U r‖) +
92    2*(∫ y, |physicalLabelDensity p hp b hb N r y-f y|)*‖σ‖ := by
93  let F := physicalLabelDensity p hp b hb N r
94  let hF := physicalLabelDensity_integrable p hp b hb N r
95  let S := physicalCellReverse p hp b hb N R
96  let T := matrixTensorPower (U*Matrix.diagonal (fun a => (r a : ℂ))*Uᴴ) N
97  have ht := norm_sub_le_norm_sub_add_norm_sub (S.map (prepareL1 f hf σ))
98    (S.map (prepareL1 F hF σ)) T
99  have hc : ‖S.map (prepareL1 f hf σ)-S.map (prepareL1 F hF σ)‖ ≤
100      2*(∫ y, |F y-f y|)*‖σ‖ := by
101    calc
102      _ = ‖S.map (prepareL1 f hf σ-prepareL1 F hF σ)‖ :=
103        congrArg norm (S.map.map_sub _ _).symm
104      _ ≤ 2*‖prepareL1 f hf σ-prepareL1 F hF σ‖ := S.norm_le_two _
105      _ = 2*((∫ y, |f y-F y|)*‖σ‖) :=
106        congrArg (fun x : ℝ => 2*x) (prepareL1_density_difference_norm f F hf hF σ)
107      _ = _ := by
108        rw [show (fun y => |f y-F y|) = (fun y => |F y-f y|) from
109          funext fun _ => abs_sub_comm _ _]
110        ring
111  have hq : ‖S.map (prepareL1 F hF σ)-T‖ ≤
112      2*(∑ i : SchurCopy N (d+1), ((recursivePhysicalDecomposition N (d+1)).get i).character r *
113        ‖(fockToSectorTotal
114          (partitionHighestTensor ((recursivePhysicalDecomposition N (d+1)).get i).weight
115            ((recursivePhysicalDecomposition N (d+1)).get i).weight_antitone)
116          ((recursivePhysicalDecomposition N (d+1)).get i).weight R
117          (partitionHighestTensor_norm _ _)).toLinearMap σ-
118            canonicalRotatedGibbs ((recursivePhysicalDecomposition N (d+1)).get i) U r‖) := by
119    dsimp only [S,F,hF,T]
120    rw [physicalCellReverse_prepare_physicalLabelDensity p hp b hb N R hN r (fun a => (hr a).le) hs,
121      matrixTensorPower_rotated_eq_copy_mixture (n := N) U r hr, ← Finset.sum_sub_distrib]
122    simp_rw [← smul_sub]
123    apply (norm_sum_le _ _).trans
124    rw [Finset.mul_sum]
125    apply Finset.sum_le_sum
126    intro i _
127    let H := (recursivePhysicalDecomposition N (d+1)).get i
128    let A := canonicalRotatedGibbs H U r
129    let D := (fockToCopy N (d+1) R i).toLinearMap σ-
130      conjugationLinearMap H.canonicalEmbedding.toContinuousLinearMap A
131    have hw : ‖(H.character r : ℂ)‖ = H.character r := by
132      exact (Complex.norm_real _).trans (Real.norm_of_nonneg (H.character_nonneg r))
133    have hi := mul_le_mul_of_nonneg_left (fockToCopy_error_le N R i A σ) (H.character_nonneg r)
134    calc
135      ‖(H.character r : ℂ) • D‖ = ‖(H.character r : ℂ)‖*‖D‖ := norm_smul _ _
136      _ = H.character r*‖D‖ := congrArg (fun x : ℝ => x*‖D‖) hw
137      _ ≤ _ := hi
138      _ = _ := by ring
139  exact ht.trans ((add_le_add hc hq).trans_eq (by ring))
140 
141end Cloning.TensorLAN