import Mathlib import OAI.Probability.SKBarriers.Dynamics.ThresholdObstruction namespace OAI section noncomputable section open scoped BigOperators Topology open Classical MeasureTheory Filter Set namespace SK.Analytic def greedySlack (t ρ : ℝ) : ℝ := (3*t/4)*ρ^19+2*ρ^100+ρ^20+3*ρ^10000 theorem greedyScale_of_slack {n B H s : ℕ} {t ρ b b' q : ℝ} (hn : 0 greedySlack t (levelRho n)) atTop (𝓝 0) := by have H := (((levelRho_tendsto.pow 19).const_mul (3*t/4)).add ((levelRho_tendsto.pow 100).const_mul 2)).add (levelRho_tendsto.pow 20) |>.add ((levelRho_tendsto.pow 10000).const_mul 3) simpa only [greedySlack,zero_pow (by decide : 19≠0),zero_pow (by decide : 100≠0),zero_pow (by decide : 20≠0),zero_pow (by decide : 10000≠0),mul_zero,add_zero] using H theorem greedySlack_div_tendsto (t : ℝ) : Tendsto (fun n => greedySlack t (levelRho n)/(levelRho n)^8) atTop (𝓝 0) := by have H : Tendsto (fun n => (3*t/4)*(levelRho n)^11+2*(levelRho n)^92+(levelRho n)^12+3*(levelRho n)^9992) atTop (𝓝 0) := by convert (((levelRho_tendsto.pow 11).const_mul (3*t/4)).add ((levelRho_tendsto.pow 92).const_mul 2)).add (levelRho_tendsto.pow 12) |>.add ((levelRho_tendsto.pow 9992).const_mul 3) using 1 norm_num apply H.congr' filter_upwards [eventually_gt_atTop (0:ℕ)] with n hn have hρ := (levelRho_pos hn).ne' unfold greedySlack field_simp end SK.Analytic end end end OAI