Exact Lean source
TensorCloningRetainedTypical
formalization/Cloning/TensorCloningRetainedTypical.lean
Source hash: 20a79ee0c59ac586c8b650ba17d3c7e612284c08894963eabcdc5ea649516d3f
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
theorem
Cloning.TensorCloning.uniform_typical_scaledtheorem Cloning.TensorCloning.target_typical_scaledtheorem Cloning.TensorCloning.partitionTransitionMixture_rootFidelity_tendsto_of_typicaldefinition Cloning.TensorCloning.retainedCopyMixturedefinition Cloning.TensorCloning.retainedCopyFidelitytheorem Cloning.TensorCloning.eventually_uniform_known_retainedCopyFidelity1import Cloning.TensorCloningRetainedMixture
2import Cloning.PhysicalCloningConverseSpectrum
3
4/-! Physical typical windows imply the uniform row frequencies needed for
5arbitrary normalized common-target conditional mixtures. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace Classical Topology
8open Filter
9namespace Cloning.TensorCloning
10open Cloning.PCT Cloning.TensorLie Cloning.TensorLAN Cloning.InfiniteTraceClass Cloning.Hybrid
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 2000000
13set_option synthInstance.maxHeartbeats 200000
14variable {d : ℕ}
15local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
16 (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
17
18theorem uniform_typical_scaled {J : ℕ → Type*}
19 (n : ℕ → ℕ) (hn : Tendsto n atTop atTop) (μ : ∀ N, J N → Fin d → ℕ)
20 (pN : ℕ → Fin d → ℝ) (p : Fin d → ℝ)
21 (hlim : ∀ a, Tendsto (fun N => pN N a) atTop (𝓝 (p a)))
22 (htyp : ∀ᶠ N in atTop, ∀ j : J N, TypicalLabel (n N) (pN N) (μ N j))
23 (a : Fin d) (ε : ℝ) (hε : 0 < ε) :
24 ∀ᶠ N in atTop, ∀ j : J N, |(μ N j a : ℝ)/(n N : ℝ)-p a| < ε := by
25 have hh := eventually_uniform_of_subsequences (fun N (_ : J N) => True)
26 (fun N j => |(μ N j a : ℝ)/(n N : ℝ)-p a| < ε) (by
27 intro φ hφ j _
28 have ht : ∀ᶠ k in atTop, TypicalLabel (n (φ k)) (pN (φ k)) (μ (φ k) (j k)) :=
29 (hφ.eventually htyp).mono (fun k hk => hk (j k))
30 have hf := typicalLabel_ratio_tendsto (fun k => n (φ k)) (hn.comp hφ)
31 (fun k => μ (φ k) (j k)) (fun k => pN (φ k)) p (fun b => (hlim b).comp hφ) ht a
32 simpa only [Real.dist_eq] using Metric.tendsto_nhds.mp hf ε hε)
33 exact hh.mono (fun N hN j => hN j trivial)
34
35theorem target_typical_scaled (n m : ℕ → ℕ) (hm : Tendsto m atTop atTop)
36 (ν : ℕ → Fin d → ℕ) (pN : ℕ → Fin d → ℝ) (p : Fin d → ℝ)
37 (hlim : ∀ a, Tendsto (fun N => pN N a) atTop (𝓝 (p a)))
38 (γ : ℝ) (hgain : Tendsto (fun N => (m N : ℝ)/(n N : ℝ)) atTop (𝓝 γ))
39 (htyp : ∀ᶠ N in atTop, TypicalLabel (m N) (pN N) (ν N)) (a : Fin d) :
40 Tendsto (fun N => (ν N a : ℝ)/(n N : ℝ)) atTop (𝓝 (γ*p a)) := by
41 have hf := hgain.mul (typicalLabel_ratio_tendsto m hm ν pN p hlim htyp a)
42 apply hf.congr'
43 filter_upwards [hm.eventually (eventually_gt_atTop 0)] with N hN
44 have hm0 : (m N : ℝ) ≠ 0 := by exact_mod_cast hN.ne'
45 field_simp
46
47theorem partitionTransitionMixture_rootFidelity_tendsto_of_typical
48 {J : ℕ → Type*} [∀ N, Fintype (J N)]
49 (n m : ℕ → ℕ) (hn : Tendsto n atTop atTop) (hm : Tendsto m atTop atTop)
50 (μ : ∀ N, J N → Fin d → ℕ) (ν : ℕ → Fin d → ℕ)
51 (hμ : ∀ N a, Antitone (μ N a)) (hν : ∀ N, Antitone (ν N))
52 (pN : ℕ → Fin d → ℝ) (hpN : ∀ N a, 0 < pN N a)
53 (p : SimpleSpectrum d) (hlim : ∀ a, Tendsto (fun N => pN N a) atTop (𝓝 (p.eigenvalue a)))
54 (γ : ℝ) (hγ : 1 < γ)
55 (hgain : Tendsto (fun N => (m N : ℝ)/(n N : ℝ)) atTop (𝓝 γ))
56 (hμtyp : ∀ᶠ N in atTop, ∀ a : J N, TypicalLabel (n N) (pN N) (μ N a))
57 (hνtyp : ∀ᶠ N in atTop, TypicalLabel (m N) (pN N) (ν N))
58 (q : ∀ N, J N → ℝ) (hq : ∀ N a, 0 ≤ q N a) (hs : ∀ N, ∑ a,q N a=1) :
59 Tendsto (fun N => (partitionTransitionMixture (μ N) (ν N) (hμ N) (hν N)
60 (pN N) (hpN N) (q N) (hq N)).rootFidelity
61 (partitionGibbsPositive (ν N) (hν N) (pN N) (hpN N))) atTop (𝓝 (orbitalValue γ p)) :=
62 partitionTransitionMixture_rootFidelity_tendsto n hn μ ν hμ hν pN hpN p hlim γ hγ
63 (uniform_typical_scaled n hn μ pN p.eigenvalue hlim hμtyp)
64 (target_typical_scaled n m hm ν pN p.eigenvalue hlim γ hgain hνtyp) q hq hs
65
66def retainedCopyMixture (n m d : ℕ) (p : Fin d → ℝ) (hp : ∀ a, 0 < p a)
67 (j : SchurCopy m d) (keep : SchurCopy n d → Prop)
68 (q : {i : SchurCopy n d // keep i} → ℝ) (hq : ∀ i, 0 ≤ q i) :
69 PositiveTraceClass ((recursivePhysicalDecomposition m d).get j).CanonicalSector :=
70 partitionTransitionMixture
71 (fun i : {i : SchurCopy n d // keep i} => ((recursivePhysicalDecomposition n d).get i.val).weight)
72 ((recursivePhysicalDecomposition m d).get j).weight
73 (fun i => ((recursivePhysicalDecomposition n d).get i.val).weight_antitone)
74 ((recursivePhysicalDecomposition m d).get j).weight_antitone p hp q hq
75
76def retainedCopyFidelity (n m d : ℕ) (p : Fin d → ℝ) (hp : ∀ a, 0 < p a)
77 (j : SchurCopy m d) (keep : SchurCopy n d → Prop)
78 (q : {i : SchurCopy n d // keep i} → ℝ) (hq : ∀ i, 0 ≤ q i) : ℝ :=
79 (retainedCopyMixture n m d p hp j keep q hq).rootFidelity
80 (partitionGibbsPositive ((recursivePhysicalDecomposition m d).get j).weight
81 ((recursivePhysicalDecomposition m d).get j).weight_antitone p hp)
82
83/-- Exact conditional-mixture fidelity is compact-uniform for every
84probability mixture over all physically typical source copies. -/
85theorem eventually_uniform_known_retainedCopyFidelity
86 (K : Set (SimpleSpectrum d)) (hK : IsCompact K)
87 (m : ℕ → ℕ) (hm : Tendsto m atTop atTop) (γ : ℝ) (hγ : 1 < γ)
88 (hgain : Tendsto (fun n => (m n : ℝ)/n) atTop (𝓝 γ)) (ε : ℝ) (hε : 0 < ε) :
89 ∀ᶠ n in atTop, ∀ p ∈ K, ∀ j : SchurCopy (m n) d,
90 copyTypical (m n) d p.eigenvalue j →
91 ∀ (q : {i : SchurCopy n d // copyTypical n d p.eigenvalue i} → ℝ)
92 (hq : ∀ i, 0 ≤ q i), (∑ i,q i)=1 →
93 |retainedCopyFidelity n (m n) d p.eigenvalue p.positive j
94 (copyTypical n d p.eigenvalue) q hq - orbitalValue γ p| < ε := by
95 rw [eventually_atTop]
96 by_contra h
97 push_neg at h
98 choose n hn p hpK j hj q hq hs hb using h
99 have hnlim : Tendsto n atTop atTop := tendsto_atTop_mono hn tendsto_id
100 obtain ⟨p₀,hp₀,φ,hφ,hconv⟩ := (hK.image SimpleSpectrum.continuous_eigenvalue).tendsto_subseq
101 (fun N => show (p N).eigenvalue ∈ SimpleSpectrum.eigenvalue '' K from ⟨p N,hpK N,rfl⟩)
102 obtain ⟨p₁,hp₁,rfl⟩ := hp₀
103 have hlim a : Tendsto (fun N => (p (φ N)).eigenvalue a) atTop (𝓝 (p₁.eigenvalue a)) :=
104 (continuous_apply a).continuousAt.tendsto.comp hconv
105 let J N := {i : SchurCopy (n (φ N)) d // copyTypical (n (φ N)) d (p (φ N)).eigenvalue i}
106 let μ N (i : J N) := ((recursivePhysicalDecomposition (n (φ N)) d).get i.val).weight
107 let ν N := ((recursivePhysicalDecomposition (m (n (φ N))) d).get (j (φ N))).weight
108 have hμ N (i : J N) : Antitone (μ N i) :=
109 ((recursivePhysicalDecomposition (n (φ N)) d).get i.val).weight_antitone
110 have hν N : Antitone (ν N) := ((recursivePhysicalDecomposition (m (n (φ N))) d).get (j (φ N))).weight_antitone
111 have hf := partitionTransitionMixture_rootFidelity_tendsto_of_typical
112 (fun N => n (φ N)) (fun N => m (n (φ N))) (hnlim.comp hφ.tendsto_atTop)
113 (hm.comp (hnlim.comp hφ.tendsto_atTop)) μ ν hμ hν
114 (fun N => (p (φ N)).eigenvalue) (fun N => (p (φ N)).positive) p₁ hlim γ hγ
115 (hgain.comp (hnlim.comp hφ.tendsto_atTop))
116 (Eventually.of_forall (fun N (i : J N) => i.property))
117 (Eventually.of_forall (fun N => hj (φ N)))
118 (fun N => q (φ N)) (fun N => hq (φ N)) (fun N => hs (φ N))
119 have hpconv : Tendsto (fun N => p (φ N)) atTop (𝓝 p₁) :=
120 SimpleSpectrum.isEmbedding_eigenvalue.tendsto_nhds_iff.mpr hconv
121 have ho := (continuous_orbitalValue (by linarith : 0 < γ)).continuousAt.tendsto.comp hpconv
122 have he := hf.sub ho
123 rw [sub_self] at he
124 obtain ⟨N,hN⟩ := (Metric.tendsto_nhds.mp he ε hε).exists
125 rw [Real.dist_eq,sub_zero] at hN
126 exact (not_lt_of_ge (hb (φ N))) hN
127
128end Cloning.TensorCloning