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
|