Offline · exact source
Exact Lean source

CloningValueComparisonLargeGain

formalization/Cloning/CloningValueComparisonLargeGain.lean

Source hash: 00bb9332e281f17c22e340695489837d1d5e57ea95e2e0cf0b2c47a539bbed3a

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: Spectral bounds

Declarations in this module
1import Cloning.CloningValueComparisonInfimum
2import Mathlib.Analysis.SpecialFunctions.Pow.Continuity
3 
4/-! Quantitative large-gain behavior of the two all-state minimax bounds. -/
5noncomputable section
6open scoped Topology
7open Filter
8namespace Cloning.ValueComparison
9set_option maxHeartbeats 500000
10set_option backward.isDefEq.respectTransparency false
11 
12def allStateLowerBound (d : ℕ) (g : ℝ) : ℝ := g^(-((d:ℝ)^2-1)/2)
13def allStateUpperBound (d : ℕ) (g : ℝ) : ℝ :=
14  classicalValue g d*g^(-((d:ℝ)*((d:ℝ)-1))/4)
15 
16theorem allStateUpperBound_factor (d : ℕ) {g : ℝ} (hg : 0<g) :
17    allStateUpperBound d g = (2*g/(1+g))^(((d:ℝ)-1)/2)*g^(-((d:ℝ)^2-1)/4) := by
18  have hs : Real.sqrt g ≠ 0 := (Real.sqrt_pos.mpr hg).ne'
19  have hbase : Thermal.classicalBase g=(2*g/(1+g))*g^(-(1/2:ℝ)) := by
20    rw [Real.rpow_neg hg.le,←Real.sqrt_eq_rpow]
21    dsimp only [Thermal.classicalBase]
22    field_simp [hs,show 1+g≠0 by linarith]
23    nlinarith [Real.sq_sqrt hg.le]
24  dsimp only [allStateUpperBound,classicalValue]
25  rw [hbase,Real.mul_rpow (by positivity) (by positivity),←Real.rpow_mul hg.le,
26    mul_assoc,←Real.rpow_add hg]
27  congr 1
28  congr 1
29  ring
30 
31theorem allStateUpperBound_largeGain_bounds (d : ℕ) (hd : 1≤d) {g : ℝ} (hg : 1≤g) :
32    g^(-((d:ℝ)^2-1)/4) ≤ allStateUpperBound d g ∧
33      allStateUpperBound d g ≤ 2^(((d:ℝ)-1)/2)*g^(-((d:ℝ)^2-1)/4) := by
34  have hg0 : 0<g := by linarith
35  have ha : 0≤((d:ℝ)-1)/2 := by
36    have : (1:ℝ)≤d := by exact_mod_cast hd
37    linarith
38  have hc1 : 1≤2*g/(1+g) := (le_div_iff₀ (by linarith)).mpr (by linarith)
39  have hc2 : 2*g/(1+g)≤2 := (div_le_iff₀ (by linarith)).mpr (by linarith)
40  rw [allStateUpperBound_factor d hg0]
41  constructor
42  · simpa only [one_mul,Real.one_rpow] using
43      mul_le_mul_of_nonneg_right (Real.rpow_le_rpow (by norm_num) hc1 ha)
44        (Real.rpow_nonneg hg0.le _)
45  · exact mul_le_mul_of_nonneg_right
46      (Real.rpow_le_rpow (by positivity) hc2 ha) (Real.rpow_nonneg hg0.le _)
47 
48/-- The upper bound has an exact positive leading constant at large gain. -/
49theorem allStateUpperBound_largeGain_tendsto (d : ℕ) :
50    Tendsto (fun g => allStateUpperBound d g/g^(-((d:ℝ)^2-1)/4)) atTop
51      (𝓝 (2^(((d:ℝ)-1)/2))) := by
52  have ht : Tendsto (fun g : ℝ => 2/(1+g⁻¹)) atTop (𝓝 2) := by
53    simpa using (tendsto_const_nhds.div
54      (tendsto_const_nhds.add tendsto_inv_atTop_zero) (by norm_num : (1+(0:ℝ))≠0))
55  have hp := ht.rpow_const (p:=((d:ℝ)-1)/2) (Or.inl (by norm_num : (2:ℝ)≠0))
56  apply hp.congr'
57  filter_upwards [eventually_gt_atTop (0:ℝ)] with g hg
58  rw [allStateUpperBound_factor d hg,mul_div_cancel_right₀ _ (Real.rpow_pos_of_pos hg _).ne']
59  congr 1
60  field_simp [hg.ne']
61  <;> ring
62 
63/-- The lower bound is exactly a power with twice the upper bound's exponent. -/
64theorem allStateLowerBound_largeGain_ratio (d : ℕ) {g : ℝ} (hg : 0<g) :
65    allStateLowerBound d g/g^(-((d:ℝ)^2-1)/2)=1 :=
66  div_self (Real.rpow_pos_of_pos hg _).ne'
67 
68end Cloning.ValueComparison