Download data/lean/OAI/Probability/SKBarriers/Coverage/CoverageAsymptotic.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.96 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/SKBarriers/Coverage/CoverageAsymptotic.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/SKBarriers/Coverage/CoverageAsymptotic.lean
-
curl -L -o CoverageAsymptotic.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/SKBarriers/Coverage/CoverageAsymptotic.lean
2.96 kB
| import Mathlib | |
| import OAI.Probability.SKBarriers.Coverage.UniformCoverage | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open scoped BigOperators | |
| open MeasureTheory ProbabilityTheory Filter Set | |
| namespace SK.Analytic | |
| open scoped Topology | |
| theorem sqrt_div_positive {a L : β} (hL : 0 < L) : | |
| Real.sqrt a/L = Real.sqrt (a/L^2) := by | |
| rw [Real.sqrt_div' a (sq_nonneg L),Real.sqrt_sq_eq_abs,abs_of_pos hL] | |
| theorem freshCoverageGain_div {n : β} (hn : 0 < n) (b q L : β) (hL : 0 < L) : | |
| freshCoverageGain n b q/L = | |
| (b^2*(n:β)/L)*(1-1/(n:β))/4-Real.log 2/L- | |
| Real.sqrt (Real.pi^2*(b^2*(n:β)/L)*((b^2*(n:β)/L)*q^2/2+Real.log 8/L)/4)- | |
| Real.sqrt (Real.pi^2*(b^2*(n:β)/L)*(Real.log 2/L)/4) := by | |
| have hn' : (n:β) β 0 := by exact_mod_cast hn.ne' | |
| unfold freshCoverageGain | |
| rw [sub_div,sub_div,sub_div,sqrt_div_positive hL,sqrt_div_positive hL] | |
| have hterm : b^2*((n:β)-1)/4/L = (b^2*(n:β)/L)*(1-1/(n:β))/4 := by | |
| field_simp | |
| rw [hterm] | |
| change _-Real.sqrt ((2*(Real.pi^2*b^2*(n:β)/8)*(b^2*(n:β)*q^2/2+Real.log 8))/L^2)- | |
| Real.sqrt ((2*(Real.pi^2*b^2*(n:β)/8)*Real.log 2)/L^2) = _ | |
| congr 2 <;> field_simp <;> ring_nf | |
| theorem freshCoverageGain_div_tendsto (L b : β β β) {v q : β} | |
| (hL : Tendsto L atTop atTop) | |
| (hV : Tendsto (fun n => (b n)^2*(n:β)/L n) atTop (π v)) : | |
| Tendsto (fun n => freshCoverageGain n (b n) q/L n) atTop | |
| (π (v/4-Real.sqrt (Real.pi^2*v^2*q^2/8))) := by | |
| have hLi : Tendsto (fun n => (L n)β»ΒΉ) atTop (π (0:β)) := | |
| tendsto_inv_atTop_zero.comp hL | |
| have hN : Tendsto (fun n : β => (n:β)β»ΒΉ) atTop (π (0:β)) := | |
| tendsto_inv_atTop_zero.comp (tendsto_natCast_atTop_atTop (R := β)) | |
| have h2 : Tendsto (fun n => Real.log 2/L n) atTop (π (0:β)) := by | |
| simpa only [mul_zero,div_eq_mul_inv] using hLi.const_mul (Real.log 2) | |
| have h8 : Tendsto (fun n => Real.log 8/L n) atTop (π (0:β)) := by | |
| simpa only [mul_zero,div_eq_mul_inv] using hLi.const_mul (Real.log 8) | |
| have H := (((hV.mul ((tendsto_const_nhds (x := (1:β))).sub hN)).div_const 4).sub h2).sub | |
| ((hV.const_mul (Real.pi^2) |>.mul ((hV.mul_const (q^2) |>.div_const 2).add h8)).div_const 4).sqrt | |
| have H' := H.sub ((hV.const_mul (Real.pi^2) |>.mul h2).div_const 4).sqrt | |
| have HH : Tendsto (fun n => | |
| ((b n)^2*(n:β)/L n)*(1-1/(n:β))/4-Real.log 2/L n- | |
| Real.sqrt (Real.pi^2*((b n)^2*(n:β)/L n)*(((b n)^2*(n:β)/L n)*q^2/2+Real.log 8/L n)/4)- | |
| Real.sqrt (Real.pi^2*((b n)^2*(n:β)/L n)*(Real.log 2/L n)/4)) atTop | |
| (π (v/4-Real.sqrt (Real.pi^2*v^2*q^2/8))) := by | |
| convert H' using 1 <;> simp only [one_div,sub_zero,mul_one,mul_zero,zero_div,Real.sqrt_zero,add_zero] | |
| congr 2 | |
| ring_nf | |
| apply HH.congr' | |
| filter_upwards [hL.eventually (eventually_gt_atTop (0:β)),eventually_gt_atTop (0:β)] with n hLn hn | |
| exact (freshCoverageGain_div hn (b n) q (L n) hLn).symm | |
| end SK.Analytic | |
| end | |
| end | |
| end | |
| end OAI | |