Offline · exact source
Exact Lean source

TensorFlatProjectorChannel

formalization/Cloning/TensorFlatProjectorChannel.lean

Source hash: 9c7797aea4e56459900a6481eb2858f59f066f1ef4c61408806731ad8146ba11

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.TensorFlatProjectorCopyCoupling
2import Cloning.TensorFlatProjectorTransitionCovariance
3import Cloning.TensorFlatProjectorCouplingPadding
4import Cloning.YoungFlatCouplingRank
5import Cloning.PhysicalFlatConverseOrbit
6 
7/-! A concrete physical channel driven by the exact rank-flat Young coupling. -/
8noncomputable section
9open scoped BigOperators InnerProductSpace Classical Matrix Topology
10namespace Cloning.TensorCloning
11open Cloning.PCT Cloning.TensorLie Cloning.TensorLAN Cloning.InfiniteTraceClass Cloning.Hybrid
12open Cloning.YoungGeneral Cloning.YoungFlat Cloning.YoungFlatCoupling
13open Filter
14set_option maxHeartbeats 1800000
15set_option synthInstance.maxHeartbeats 200000
16set_option backward.isDefEq.respectTransparency false
17variable {n m d r : ℕ}
18local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
19  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
20 
21def compatibleLabelFidelity (p : Fin d → ℝ) (hp : ∀a,0≤p a)
22    (mu : Shape d n) (lam : Shape d m) : ℝ :=
23  if PartitionCompatible (fun a => (mu a).val) (fun a => (lam a).val)
24  then labelTransitionFidelity p hp mu lam else 0
25 
26theorem compatibleLabelFidelity_le_copy (p : Fin d → ℝ) (hp : ∀a,0≤p a)
27    (U : unitary (Matrix (Fin d) (Fin d) ℂ))
28    (i : SchurCopy n d) (j : SchurCopy m d) :
29    compatibleLabelFidelity p hp (physicalCopyShape n d i) (physicalCopyShape m d j) ≤
30      nonnegativeTransitionFidelity p hp U i j := by
31  unfold compatibleLabelFidelity
32  split_ifs with hc
33  · rw [physicalCopyShape,physicalCopyShape,labelTransitionFidelity_copy,
34      nonnegativeTransitionFidelity_unitary n m d p hp U
35        (Unitary.star_mul_self_of_mem U.property) i j hc]
36  · exact PositiveTraceClass.rootFidelity_nonneg _ _
37 
38def flatLabelCoupling (J : PMF (Shape r n × Shape r m)) (k : ℕ) :
39    Shape (r+k) n → Shape (r+k) m → ℝ :=
40  fun mu lam => (paddedFlatCoupling J k (mu,lam)).toReal
41 
42def flatCoupledChannel (k : ℕ) (hr : 0<r) (J : PMF (Shape r n × Shape r m))
43    (hfst : J.map Prod.fst=tensorFlatYoungPMF n r hr)
44    (hsnd : J.map Prod.snd=tensorFlatYoungPMF m r hr) :
45    QuantumChannel (TensorRegister n (Fin (r+k))) (TensorRegister m (Fin (r+k))) :=
46  coupledCopyChannel (rankFlatSpectrum r k) (rankFlatSpectrum_nonneg r k) (rankFlatSpectrum_sum hr)
47    (labelCouplingCopies (flatLabelCoupling J k))
48    (labelCouplingCopies_nonneg _ (fun _ _ => ENNReal.toReal_nonneg))
49    (labelCouplingCopies_row _ _ _ _ (fun _ _ => ENNReal.toReal_nonneg)
50      (paddedFlatCoupling_row J k hr hfst) (paddedFlatCoupling_col J k hr hsnd))
51 
52theorem coupling_nonzero_partition (hr : 0<r) (J : PMF (Shape r n × Shape r m))
53    (hfst : J.map Prod.fst=tensorFlatYoungPMF n r hr)
54    (hsnd : J.map Prod.snd=tensorFlatYoungPMF m r hr)
55    (mu : Shape r n) (lam : Shape r m) (hJ : (J (mu,lam)).toReal ≠ 0) :
56    Antitone (fun a => (mu a).val) ∧ Antitone (fun a => (lam a).val) := by
57  constructor
58  · by_contra h
59    have he := Finset.single_le_sum (fun (b : Shape r m) _ =>
60      (show 0 ≤ (J (mu,b)).toReal from ENNReal.toReal_nonneg))
61      (Finset.mem_univ lam)
62    rw [pmf_pair_sum_row,hfst] at he
63    have hz : (tensorFlatYoungPMF n r hr mu).toReal=0 := by
64      rw [tensorFlatYoungPMF,tensorYoungPMF_formula,physicalSectorCharacter,dif_neg h,mul_zero]
65    rw [hz] at he
66    exact hJ (le_antisymm he ENNReal.toReal_nonneg)
67  · by_contra h
68    have he := Finset.single_le_sum (fun (a : Shape r n) _ =>
69      (show 0 ≤ (J (a,lam)).toReal from ENNReal.toReal_nonneg))
70      (Finset.mem_univ mu)
71    rw [pmf_pair_sum_col,hsnd] at he
72    have hz : (tensorFlatYoungPMF m r hr lam).toReal=0 := by
73      rw [tensorFlatYoungPMF,tensorYoungPMF_formula,physicalSectorCharacter,dif_neg h,mul_zero]
74    rw [hz] at he
75    exact hJ (le_antisymm he ENNReal.toReal_nonneg)
76 
77theorem flatCoupledChannel_payoff_lower (k : ℕ) (hr : 0<r)
78    (J : PMF (Shape r n × Shape r m))
79    (hfst : J.map Prod.fst=tensorFlatYoungPMF n r hr)
80    (hsnd : J.map Prod.snd=tensorFlatYoungPMF m r hr)
81    (U : unitary (Matrix (Fin (r+k)) (Fin (r+k)) ℂ)) :
82    coupledFlatFidelity r k n m J ≤
83      PhysicalFlatConverse.payoff r k hr n m (flatCoupledChannel k hr J hfst hsnd) U := by
84  letI : NeZero (r+k) := ⟨by omega⟩
85  let p := rankFlatSpectrum r k
86  let hp := rankFlatSpectrum_nonneg r k
87  let hs := rankFlatSpectrum_sum (k := k) hr
88  let K := flatLabelCoupling J k
89  have hK : ∀ mu lam,0≤K mu lam := fun _ _ => ENNReal.toReal_nonneg
90  have hrow := paddedFlatCoupling_row J k hr hfst
91  have hcol := paddedFlatCoupling_col J k hr hsnd
92  have hR := labelCouplingCopies_row p hp hs K hK hrow hcol
93  have hC := labelCouplingCopies_col p hp hs K hK hrow hcol
94  have hbound := coupledCopyChannel_payoff_lower p hp hs (labelCouplingCopies K)
95    (labelCouplingCopies_nonneg K hK) hR hC U
96  have hobs := labelCouplingCopies_observable p hp hs K hK hrow hcol (compatibleLabelFidelity p hp)
97  have hlower : (∑ mu,∑ lam,K mu lam*compatibleLabelFidelity p hp mu lam) ≤
98      PhysicalFlatConverse.payoff r k hr n m (flatCoupledChannel k hr J hfst hsnd) U := by
99    rw [← hobs]
100    exact (Finset.sum_le_sum (fun i _ => Finset.sum_le_sum (fun j _ =>
101      mul_le_mul_of_nonneg_left (compatibleLabelFidelity_le_copy p hp U i j)
102        (labelCouplingCopies_nonneg K hK i j)))).trans (by
103          simpa only [Fintype.sum_prod_type] using hbound)
104  have he : (∑ mu,∑ lam,K mu lam*compatibleLabelFidelity p hp mu lam) =
105      coupledFlatFidelity r k n m J := by
106    rw [← Fintype.sum_prod_type (f := fun z : Shape (r+k) n × Shape (r+k) m =>
107      K z.1 z.2*compatibleLabelFidelity p hp z.1 z.2)]
108    change (∑ z,(paddedFlatCoupling J k z).toReal*compatibleLabelFidelity p hp z.1 z.2)=_
109    unfold paddedFlatCoupling
110    rw [← pmf_sum_map J (fun z => (padShape z.1 k,padShape z.2 k))
111      (fun z => compatibleLabelFidelity p hp z.1 z.2)]
112    unfold coupledFlatFidelity
113    apply Finset.sum_congr rfl
114    intro z _
115    by_cases hz : (J z).toReal=0
116    · simp [hz]
117    obtain ⟨hm,hl⟩ := coupling_nonzero_partition hr J hfst hsnd z.1 z.2 hz
118    by_cases hc : PartitionCompatible (fun a => (z.1 a).val) (fun a => (z.2 a).val)
119    · have hpad := padPartition_compatible _ _ hc k
120      rw [compatibleLabelFidelity,padShape_val,padShape_val,if_pos hpad,labelTransitionFidelity_pad z.1 z.2 hm hl hc k hr,if_pos hc]
121    · have hpad : ¬ PartitionCompatible (fun a => (padShape z.1 k a).val)
122          (fun a => (padShape z.2 k a).val) := by
123        simpa only [padShape_val,padPartition_compatible_iff] using hc
124      simp only [compatibleLabelFidelity,if_neg hpad,if_neg hc]
125  exact he ▸ hlower
126 
127end Cloning.TensorCloning