File size: 2,586 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import Mathlib
import OAI.Probability.SKBarriers.Coverage.EnergyTailGap
import OAI.Probability.SKBarriers.Coverage.CoverageParameters

namespace OAI

section

section
noncomputable section
open scoped BigOperators
open MeasureTheory ProbabilityTheory Filter Set
namespace SK.Analytic
open scoped Topology

theorem uniform_coverage_pair {Ξ² : ℝ} (hΞ² : 1 < Ξ²) (L : β„• β†’ ℝ)
    (hL : Tendsto L atTop atTop)
    (hsub : Tendsto (fun n => L n/(n:ℝ)) atTop (𝓝 0)) :
    βˆƒ q : ℝ, 0 < q ∧ q < 1 ∧ βˆ€ D : ℝ, 0 < D β†’ βˆƒ Dβ‚‚ : ℝ, 0 < Dβ‚‚ ∧
      Tendsto (fun n => (disorderLaw n).real
        (coveragePairBad n Ξ² (Real.exp (-D*L n)) (Real.exp (-Dβ‚‚*L n)) q))
        atTop (𝓝 0) := by
  obtain ⟨e,he,cE,hcE,Nβ‚€,hNβ‚€βŸ© := coverage_energy_tail hΞ²
  have hΞ²pos : 0 < Ξ² := lt_trans zero_lt_one hΞ²
  obtain ⟨q,hq,hq1,hK⟩ := exists_positive_coverageGainRate hβpos he.2
  refine ⟨q,hq,hq1,?_⟩
  intro D hD
  obtain ⟨M,Dβ‚‚,hM,hDβ‚‚,hpars⟩ := coverage_eventually_parameters (e := e) (q := q) L hΞ²pos hcE hD hK hL hsub
  refine ⟨Dβ‚‚,hDβ‚‚,?_⟩
  have hbound : βˆ€αΆ  n : β„• in atTop,
      (disorderLaw n).real (coveragePairBad n Ξ² (Real.exp (-D*L n)) (Real.exp (-Dβ‚‚*L n)) q) ≀
        Real.exp (-cE*(n:ℝ))+2*Real.exp (-L n/(Ξ²^2*M)) := by
    filter_upwards [hpars,eventually_ge_atTop Nβ‚€] with n hn hlarge
    obtain ⟨hnpos,hLn,hb,htrim,hsecond,hgain⟩ := hn
    have HH := coveragePairBad_probability_le hnpos hΞ²pos.le
      (Real.exp_pos (-D*L n)) (Real.exp_nonneg (-Dβ‚‚*L n)) hq.le hb htrim hLn.le hsecond hgain
    have HE := hNβ‚€ n hlarge
    have hn' : (0:ℝ) < n := by exact_mod_cast hnpos
    have hΞΈ : coverageAngle L M n^2 = M*L n/(n:ℝ) := Real.sq_sqrt (by positivity)
    have hquot : -(L n)^2/((coverageAngle L M n)^2*Ξ²^2*(n:ℝ)) = -L n/(Ξ²^2*M) := by
      rw [hΞΈ]
      field_simp
    rw [hquot] at HH
    exact HH.trans (add_le_add HE le_rfl)
  have hE : Tendsto (fun n : β„• => Real.exp (-cE*(n:ℝ))) atTop (𝓝 0) :=
    Real.tendsto_exp_atBot.comp ((tendsto_natCast_atTop_atTop (R := ℝ)).const_mul_atTop_of_neg (neg_neg_of_pos hcE))
  have hR : Tendsto (fun n => Real.exp (-L n/(Ξ²^2*M))) atTop (𝓝 0) := by
    have H := Real.tendsto_exp_atBot.comp
      (hL.const_mul_atTop_of_neg (neg_lt_zero.mpr (show 0 < 1/(Ξ²^2*M) by positivity)))
    convert H using 1
    funext n
    congr 1
    ring
  have H := hE.add (hR.const_mul 2)
  simp only [mul_zero,add_zero] at H
  exact squeeze_zero' (Eventually.of_forall (fun n => measureReal_nonneg)) hbound H

end SK.Analytic

end
end

end

end OAI