Offline · exact source
Exact Lean source

OccupationChannel

formalization/Cloning/OccupationChannel.lean

Source hash: b8238ff0763b6796fc1afe5cde4a0b46f19f17b08dc9ba0864e082b6f35b9a73

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.OccupationCompression
2import Cloning.InfiniteRectangularKraus
3 
4/-! The actual occupation compression channel, including vacuum tail replacement. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace Topology
7open Filter Cloning.InfiniteTraceClass
8namespace Cloning.SymmetricOccupation
9set_option maxHeartbeats 1000000
10set_option synthInstance.maxHeartbeats 200000
11 
12/-- A genuine channel from full Fock space to the finite symmetric computational
13space, preserving the retained amplitudes and replacing the tail by vacuum. -/
14def occupationChannel (L : ℕ) : QuantumChannel Fock (TensorSpace L) :=
15  QuantumChannel.ofRectangularKraus (occupationKraus L) (occupationKraus_norm_sq_hasSum L)
16 
17private theorem projector_smul {H : Type*} [NormedAddCommGroup H]
18    [InnerProductSpace ℂ H] [CompleteSpace H] (c : ℂ) (x : H) :
19    vectorProjector (c • x) = ((‖c‖ ^ 2 : ℝ) : ℂ) • vectorProjector x := by
20  apply Subtype.ext
21  ext y
22  change ⟪c • x, y⟫_ℂ • (c • x) = ((‖c‖ ^ 2 : ℝ) : ℂ) • (⟪x, y⟫_ℂ • x)
23  rw [inner_smul_left, smul_smul, smul_smul]
24  congr 1
25  calc
26    _ = (c * (starRingEnd ℂ) c) * ⟪x, y⟫_ℂ := by ring
27    _ = _ := by rw [Complex.mul_conj]; rw [Complex.normSq_eq_norm_sq]
28 
29private theorem tailKraus_projector (L j : ℕ) (x : Fock) :
30    vectorProjector (tailKraus L j x) = ((‖tailKraus L j x‖ ^ 2 : ℝ) : ℂ) •
31      vectorProjector (column L 0) := by
32  rw [tailKraus_norm_sq, tailKraus_apply]
33  split_ifs
34  · exact projector_smul _ _
35  · simp only [Complex.ofReal_zero, zero_smul]
36    apply Subtype.ext
37    change InnerProductSpace.rankOne ℂ (0 : TensorSpace L) 0 = 0
38    ext1 y
39    simp only [InnerProductSpace.rankOne_apply, inner_zero_left, zero_smul, ContinuousLinearMap.zero_apply]
40 
41/-- The Kraus construction has exactly the manuscript's compression-plus-tail
42formula on every pure input, with no normalization requirement. -/
43theorem occupationChannel_vectorProjector (L : ℕ) (x : Fock) :
44    (occupationChannel L).toLinearMap (vectorProjector x) =
45      vectorProjector (compression L x) +
46        ((‖x‖ ^ 2 - ‖restrict L x‖ ^ 2 : ℝ) : ℂ) • vectorProjector (column L 0) := by
47  have htail := (Complex.hasSum_ofReal.mpr (tailKraus_norm_sq_hasSum L x)).smul_const
48    (vectorProjector (column L 0))
49  have htail' : HasSum (fun j => vectorProjector (tailKraus L j x))
50      (((‖x‖ ^ 2 - ‖restrict L x‖ ^ 2 : ℝ) : ℂ) • vectorProjector (column L 0)) := by
51    simpa only [tailKraus_projector] using htail
52  have hs := (hasSum_nat_add_iff 1 (f := fun j => vectorProjector (occupationKraus L j x))).mp
53    (by simpa only [occupationKraus] using htail')
54  have hchannel := QuantumChannel.ofRectangularKraus_vectorProjector_hasSum
55    (occupationKraus L) (occupationKraus_norm_sq_hasSum L) x
56  have heq := hchannel.unique hs
57  simpa only [occupationChannel, Finset.sum_range_one, occupationKraus, add_comm] using heq
58 
59/-- The previously explicit positive output family is exactly the output of
60an actual completely positive trace-preserving occupation channel. -/
61theorem occupationChannel_coherent (t : ℝ) (ht : 0 ≤ t) (L : ℕ) :
62    (occupationChannel L).toLinearMap
63      (vectorProjector (Cloning.CoherentCoefficients.coherentVector t ht)) =
64      occupationCoherentOutput t ht L := by
65  rw [occupationChannel_vectorProjector]
66  simp only [Cloning.CoherentCoefficients.coherentVector_norm, one_pow,
67    occupationCoherentOutput, tailMass, embeddedCoherent, LinearIsometry.norm_map,
68    compression_apply]
69 
70/-- The manuscript's coherent-product limit, now using a constructed CPTP
71occupation channel and the literal finite product coefficients. -/
72theorem occupationChannel_coherent_product_tendsto (t : ℝ) (ht : 0 ≤ t) :
73    Tendsto (fun L => ‖(occupationChannel L).toLinearMap
74      (vectorProjector (Cloning.CoherentCoefficients.coherentVector t ht)) -
75        vectorProjector (productTensor t ht L)‖) atTop (𝓝 0) := by
76  simp_rw [occupationChannel_coherent]
77  exact occupation_coherent_product_traceNorm_tendsto t ht
78 
79 
80/-- No norm is lost when all occupations of a vector are retained. -/
81theorem restrict_norm_eq_of_support (L : ℕ) (y : Fock)
82    (hy : ∀ j, L < j → y j = 0) : ‖restrict L y‖ = ‖y‖ := by
83  have hall : HasSum (fun j : ℕ => ‖y j‖ ^ 2) (‖y‖ ^ 2) := by
84    simpa only [ENNReal.toReal_ofNat, Real.rpow_two] using
85      lp.hasSum_norm (show 0 < (2 : ENNReal).toReal by norm_num) y
86  have hfinite : HasSum (fun j : ℕ => ‖y j‖ ^ 2)
87      (∑ j ∈ Finset.range (L + 1), ‖y j‖ ^ 2) := by
88    apply hasSum_sum_of_ne_finset_zero
89    intro j hj
90    have hLj : L < j := by simpa only [Finset.mem_range, not_lt, Nat.succ_le_iff] using hj
91    simp [hy j hLj]
92  have heq := hall.unique hfinite
93  rw [← restrict_norm_sq] at heq
94  nlinarith [norm_nonneg y, norm_nonneg (restrict L y)]
95 
96/-- Trace-norm contraction transfers any coefficient-vector approximation to
97the actual finite output, for every retained product vector and arbitrary phases. -/
98theorem occupationChannel_pure_distance_le (L : ℕ) (x y : Fock)
99    (hy : ‖restrict L y‖ = ‖y‖) :
100    ‖(occupationChannel L).toLinearMap (vectorProjector x) -
101      vectorProjector (compression L y)‖ ≤ (‖x‖ + ‖y‖) * ‖x - y‖ := by
102  have houtput : (occupationChannel L).toLinearMap (vectorProjector y) =
103      vectorProjector (compression L y) := by
104    rw [occupationChannel_vectorProjector, hy]
105    simp
106  rw [← houtput]
107  exact ((occupationChannel L).toPositiveTracePreservingMap.norm_map_sub_le
108    (vectorProjector x) (vectorProjector y)
109    ((InnerProductSpace.rankOne ℂ x x).nonneg_iff_isPositive.mpr
110      (InnerProductSpace.isPositive_rankOne_self x))
111    ((InnerProductSpace.rankOne ℂ y y).nonneg_iff_isPositive.mpr
112      (InnerProductSpace.isPositive_rankOne_self y))).trans (norm_vectorProjector_sub_le x y)
113 
114end Cloning.SymmetricOccupation