Offline · exact source
Exact Lean source

HybridGaussianFlatBody

formalization/Cloning/HybridGaussianFlatBody.lean

Source hash: 23b8bbee453d8662c0c8abf475b984c1516824ffdc1c7aeaba69f38178f8cffc

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.

In the dependency map: Gaussian optimum

Paper ↔ Lean correspondence in this module
Declarations in this module
1import Cloning.HybridFlatBody
2import Cloning.HybridGaussianAttainmentBoundary
3 
4/-! Real-radius Gaussian amplification optimality on every compact convex
5flat-prior body, including the whitened score-hyperplane polytope. -/
6noncomputable section
7open scoped ComplexOrder InnerProductSpace Topology BigOperators
8open Filter MeasureTheory Cloning.InfiniteTraceClass Cloning.MultimodeCoherent
9namespace Cloning.Hybrid.PhaseBody
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1200000
12variable {k s : ℕ} (B : PhaseBody k s)
13 
14def payoff (r : ℝ) (Λ : HybridChannel k s) (A Z : HybridPositive k s) (L : ℝ) : ℝ :=
15  (volume.real B.carrier)⁻¹ * ∫ z in B.carrier,orbitPayoff r Λ A Z (L • z)
16 
17theorem payoff_eq_normalized_dilate (r : ℝ) (Λ : HybridChannel k s)
18    (A Z : HybridPositive k s) {L : ℝ} (hL : 0<L) :
19    B.payoff r Λ A Z L=(volume.real (B.dilate L))⁻¹ *
20      ∫ ξ in B.dilate L,orbitPayoff r Λ A Z ξ :=
21  B.normalized_dilate hL _
22 
23theorem payoff_integer (r : ℝ) (Λ : HybridChannel k s)
24    (A Z : HybridPositive k s) (n : ℕ) :
25    B.payoff r Λ A Z ((n : ℝ)+1)=
26      ∫ ξ,orbitPayoff r Λ A Z ξ ∂B.density.expandingPrior n :=
27  (B.integral_expandingPrior n _ (continuous_orbitPayoff r Λ A Z)).symm
28 
29theorem payoff_nonneg (r : ℝ) (Λ : HybridChannel k s)
30    (A Z : HybridPositive k s) (L : ℝ) : 0≤B.payoff r Λ A Z L :=
31  mul_nonneg (inv_nonneg.mpr measureReal_nonneg)
32    (integral_nonneg fun _ => PositiveL1.rootFidelity_nonneg _ _)
33 
34theorem payoff_le_sqrt (r : ℝ) (Λ : HybridChannel k s)
35    (A Z : HybridPositive k s) (L : ℝ) :
36    B.payoff r Λ A Z L≤Real.sqrt ‖A.1‖*Real.sqrt ‖Z.1‖ := by
37  have hi : IntegrableOn (fun ξ => orbitPayoff r Λ A Z (L • ξ)) B.carrier :=
38    ((continuous_orbitPayoff r Λ A Z).comp (continuous_id.const_smul L)).continuousOn.integrableOn_compact B.compact
39  have hp ξ : orbitPayoff r Λ A Z (L • ξ)≤Real.sqrt ‖A.1‖*Real.sqrt ‖Z.1‖ := by
40    rw [orbitPayoff_eq_translated]
41    simpa only [PositiveL1.norm_map] using
42      PositiveL1.rootFidelity_le_sqrt (A.map (translatedChannel r Λ (L • ξ))) Z
43  have hh := integral_mono hi (integrableOn_const (hs:=B.compact.measure_ne_top)) hp
44  change (volume.real B.carrier)⁻¹ * _ ≤ _
45  calc
46    _ ≤ (volume.real B.carrier)⁻¹ * ∫ _ξ in B.carrier,Real.sqrt ‖A.1‖*Real.sqrt ‖Z.1‖ :=
47      mul_le_mul_of_nonneg_left hh (inv_nonneg.mpr measureReal_nonneg)
48    _ = _ := by
49      simp only [integral_const,measureReal_restrict_apply_univ,smul_eq_mul]
50      rw [← mul_assoc,inv_mul_cancel₀ B.volume_real_pos.ne',one_mul]
51 
52theorem payoff_le_integer (r : ℝ) (Λ : HybridChannel k s)
53    (A Z : HybridPositive k s) {L : ℝ} (hL : 0<L) (n : ℕ) (hLn : L≤(n : ℝ)+1) :
54    B.payoff r Λ A Z L≤(((n : ℝ)+1)/L)^Module.finrank ℝ (PhaseSpace k s)*
55      B.payoff r Λ A Z ((n : ℝ)+1) := by
56  have hN : 0<(n : ℝ)+1 := by positivity
57  have hi : (∫ ξ in B.dilate L,orbitPayoff r Λ A Z ξ)≤
58      ∫ ξ in B.dilate ((n : ℝ)+1),orbitPayoff r Λ A Z ξ :=
59    setIntegral_mono_set
60      ((continuous_orbitPayoff r Λ A Z).continuousOn.integrableOn_compact (B.dilate_compact _))
61      (Eventually.of_forall fun _ => PositiveL1.rootFidelity_nonneg _ _)
62      (B.dilate_mono hL.le hN hLn).eventuallyLE
63  rw [B.payoff_eq_normalized_dilate r Λ A Z hL,B.payoff_eq_normalized_dilate r Λ A Z hN,
64    B.dilate_volume_real hL,B.dilate_volume_real hN]
65  calc
66    _ ≤ (L^Module.finrank ℝ (PhaseSpace k s)*volume.real B.carrier)⁻¹ *
67        ∫ ξ in B.dilate ((n : ℝ)+1),orbitPayoff r Λ A Z ξ :=
68      mul_le_mul_of_nonneg_left hi (by positivity)
69    _ = _ := by
70      rw [div_pow]
71      field_simp [hL.ne',hN.ne',B.volume_real_pos.ne']
72 
73theorem eventually_forall_payoff_le_of_integer (r : ℝ) (A Z : HybridPositive k s) {C : ℝ}
74    (h : ∀ ε>0,∀ᶠ (n : ℕ) in atTop,∀ Λ : HybridChannel k s,
75      B.payoff r Λ A Z ((n : ℝ)+1)≤C+ε) :
76    ∀ ε>0,∀ᶠ L : ℝ in atTop,∀ Λ : HybridChannel k s,B.payoff r Λ A Z L≤C+ε := by
77  intro ε hε
78  have hfloor : Tendsto (Nat.floor : ℝ→ℕ) atTop atTop :=
79    Nat.floor_mono.tendsto_atTop_atTop (fun n => ⟨(n : ℝ),by simp⟩)
80  have hint := hfloor.eventually (h (ε/2) (by linarith))
81  have ht : Tendsto (fun L : ℝ =>
82      (1+L⁻¹)^Module.finrank ℝ (PhaseSpace k s)*(C+ε/2)) atTop (𝓝 (C+ε/2)) := by
83    simpa using (realFlatBox_overhead_tendsto_one k s).mul_const (C+ε/2)
84  filter_upwards [hint,ht.eventually_lt_const (by linarith : C+ε/2<C+ε),
85    eventually_gt_atTop (0 : ℝ)] with L hLi hnear hL
86  intro Λ
87  have hc := B.payoff_le_integer r Λ A Z hL (Nat.floor L) (Nat.lt_floor_add_one L).le
88  have hr : (((Nat.floor L : ℕ):ℝ)+1)/L≤1+L⁻¹ := by
89    apply (div_le_iff₀ hL).mpr
90    have hf := Nat.floor_le hL.le
91    rw [add_mul,one_mul,inv_mul_cancel₀ hL.ne']
92    linarith
93  calc
94    _ ≤ ((((Nat.floor L : ℕ):ℝ)+1)/L)^Module.finrank ℝ (PhaseSpace k s)*
95        B.payoff r Λ A Z (((Nat.floor L : ℕ):ℝ)+1) := hc
96    _ ≤ (1+L⁻¹)^Module.finrank ℝ (PhaseSpace k s)*
97        B.payoff r Λ A Z (((Nat.floor L : ℕ):ℝ)+1) :=
98      mul_le_mul_of_nonneg_right (pow_le_pow_left₀ (by positivity) hr _)
99        (B.payoff_nonneg r Λ A Z _)
100    _ ≤ (1+L⁻¹)^Module.finrank ℝ (PhaseSpace k s)*(C+ε/2) :=
101      mul_le_mul_of_nonneg_left (hLi Λ) (by positivity)
102    _ ≤ C+ε := hnear.le
103 
104def optimalPayoff (r : ℝ) (A Z : HybridPositive k s) (L : ℝ) : ℝ :=
105  sSup (Set.range fun Λ : HybridChannel k s => B.payoff r Λ A Z L)
106 
107theorem payoff_le_optimal (r : ℝ) (Λ : HybridChannel k s)
108    (A Z : HybridPositive k s) (L : ℝ) : B.payoff r Λ A Z L≤B.optimalPayoff r A Z L := by
109  apply le_csSup _ (Set.mem_range_self Λ)
110  refine ⟨Real.sqrt ‖A.1‖*Real.sqrt ‖Z.1‖,?_⟩
111  rintro _ ⟨Γ,rfl⟩
112  exact B.payoff_le_sqrt r Γ A Z L
113 
114/-- The radius threshold is before every arbitrary CPTP competitor. -/
115theorem eventually_forall_gaussian_payoff_le
116    (a : Fin k→ℝ) (ha : ∀ i,0<a i) (g : ℝ) (hg : 1<g)
117    (q : Fin s→ℝ) (hq0 : ∀ i,0≤q i) (hq1 : ∀ i,q i<1) :
118    ∀ ε>0,∀ᶠ L : ℝ in atTop,∀ Λ : HybridChannel k s,
119      B.payoff (Real.sqrt g) Λ (gaussianThermalPositive a ha q hq0 hq1)
120        (gaussianThermalPositive a ha q hq0 hq1) L≤
121        Thermal.classicalBase g^((k : ℝ)/2)*(∏ i,Thermal.modeFactor g (q i))+ε := by
122  apply B.eventually_forall_payoff_le_of_integer
123  simpa only [B.payoff_integer] using
124    B.density.eventually_forall_gaussian_orbitPayoff_le_modeFactor_nonneg a ha g hg q hq0 hq1
125 
126/-- Exact physical Gaussian optimum for every real-radius convex-body prior.
127The value is independent of the prior body's shape. -/
128theorem gaussian_optimalPayoff_tendsto
129    (a : Fin k→ℝ) (ha : ∀ i,0<a i) (g : ℝ) (hg : 1<g)
130    (q : Fin s→ℝ) (hq0 : ∀ i,0≤q i) (hq1 : ∀ i,q i<1) :
131    Tendsto (B.optimalPayoff (Real.sqrt g)
132      (gaussianThermalPositive a ha q hq0 hq1) (gaussianThermalPositive a ha q hq0 hq1))
133      atTop (𝓝 (Thermal.classicalBase g^((k : ℝ)/2)*∏ i,Thermal.modeFactor g (q i))) := by
134  let A := gaussianThermalPositive a ha q hq0 hq1
135  let F := Thermal.classicalBase g^((k : ℝ)/2)*∏ i,Thermal.modeFactor g (q i)
136  have hattain (L : ℝ) : B.payoff (Real.sqrt g) (gaussianAmplifierChannel g hg) A A L=F := by
137    unfold payoff
138    dsimp only [A]
139    simp_rw [gaussianAmplifierChannel_orbitPayoff a ha g hg q hq0 hq1]
140    rw [integral_const]
141    simp only [measureReal_restrict_apply_univ,smul_eq_mul]
142    rw [← mul_assoc,inv_mul_cancel₀ B.volume_real_pos.ne',one_mul]
143  apply tendsto_order.mpr
144  constructor
145  · intro c hc
146    exact Eventually.of_forall fun L => hc.trans_le
147      ((hattain L).symm.trans_le (B.payoff_le_optimal _ _ A A L))
148  · intro c hc
149    filter_upwards [B.eventually_forall_gaussian_payoff_le a ha g hg q hq0 hq1
150      ((c-F)/2) (by change F<c at hc; linarith)] with L hL
151    have hu : B.optimalPayoff (Real.sqrt g) A A L≤F+(c-F)/2 := by
152      apply csSup_le ⟨_,Set.mem_range_self (gaussianAmplifierChannel g hg)⟩
153      rintro _ ⟨Λ,rfl⟩
154      exact hL Λ
155    change F<c at hc
156    linarith
157 
158end Cloning.Hybrid.PhaseBody