/- Released under Apache-2.0; see adjacent LICENSE. Actual eventual smooth budget at fixed A=12, preserving original m+2/z1. This weaker fixed-A route is not full InputH9/24 or a prime supply theorem. -/ import ShiftedRankin namespace SmoothBudget noncomputable section open ManuscriptParameters theorem parameter_logZ_le (y : ℝ) (hy : SmoothParameters.threshold 12 (chooseB 12) ≤ y) : Real.log (SmoothParameters.Z y 12) ≤ L y := by have hb : ManuscriptParameters.threshold 12 ≤ y := (le_max_left _ _).trans hy have hf := large_facts y 12 (by norm_num) hb have hZ0 : 0 < SmoothParameters.Z y 12 := Real.exp_pos _ have hZ := z1_lt_sqrt y 12 (by norm_num) hb have hh := Real.log_le_log hZ0 hZ.le rw [Real.log_sqrt hf.1.le] at hh change _ ≤ L y / 2 at hh linarith [hf.2.1] theorem correction_le (U : ℝ) (hU : 1 ≤ U) (hs : 288 * Real.log 4 ≤ Real.sqrt U) : 6 * Real.log 4 * Real.sqrt U * Real.log U ≤ U * Real.log U / 48 := by have hU0 : 0 ≤ U := by linarith have hlog : 0 ≤ Real.log U := Real.log_nonneg hU have hm := mul_le_mul_of_nonneg_right hs (Real.sqrt_nonneg U) have hfirst : 288 * Real.log 4 * Real.sqrt U ≤ U := by nlinarith [Real.sq_sqrt hU0] have hh := mul_le_mul_of_nonneg_right hfirst hlog nlinarith theorem decay_exponent_le (U T : ℝ) (hU : 1 ≤ U) (hT : 0 ≤ T) (hs : 288 * Real.log 4 ≤ Real.sqrt U) (hut : (23 / 2 : ℝ) * T ≤ U * Real.log U) : -(U * Real.log U) / 2 + 6 * Real.log 4 * Real.sqrt U * Real.log U ≤ -(11 / 2 : ℝ) * T := by have hc := correction_le U hU hs linarith /-- Exact finite exponential decay identity, avoiding a new analytic import. -/ theorem exp_decay_identity (t : ℝ) (ht : 0 < t) : t ^ 4 * Real.exp (-(11 / 2 : ℝ) * Real.log t) = 1 / (t * Real.sqrt t) := by have hs : 0 < Real.sqrt t := Real.sqrt_pos.mpr ht have he4 : t ^ 4 = Real.exp (4 * Real.log t) := by simpa only [Real.log_pow, Nat.cast_ofNat] using (Real.exp_log (pow_pos ht 4)).symm have hes : Real.sqrt t = Real.exp (Real.log t / 2) := by rw [← Real.log_sqrt ht.le, Real.exp_log hs] apply (eq_div_iff (mul_ne_zero ht.ne' hs.ne')).mpr calc _ = Real.exp (4 * Real.log t) * Real.exp (-(11 / 2 : ℝ) * Real.log t) * Real.exp (Real.log t) * Real.exp (Real.log t / 2) := by rw [he4, hes, Real.exp_log ht] ring _ = Real.exp (4 * Real.log t + -(11 / 2 : ℝ) * Real.log t + Real.log t + Real.log t / 2) := by rw [← Real.exp_add, ← Real.exp_add, ← Real.exp_add] _ = 1 := by rw [show 4 * Real.log t + -(11 / 2 : ℝ) * Real.log t + Real.log t + Real.log t / 2 = 0 by ring, Real.exp_zero] /-- Quantitative actual mass bound under sufficient, subsequently derived thresholds. -/ theorem finite_Psi_mass_le (y : ℝ) (hy : SmoothParameters.threshold 12 (chooseB 12) ≤ y) (hZ : Real.exp 1 ≤ SmoothParameters.Z y 12) (hs : 288 * Real.log 4 ≤ Real.sqrt (SmoothParameters.u y 12)) (hut : (23 / 2 : ℝ) * L2 y ≤ SmoothParameters.u y 12 * Real.log (SmoothParameters.u y 12)) : (EarlyCover.Psi (SmoothParameters.X y 12) (SmoothParameters.Z y 12) : ℝ) ≤ 2 * RealBand.ordinaryConstant * y / (L y * Real.sqrt (L y)) := by have hb : ManuscriptParameters.threshold 12 ≤ y := (le_max_left _ _).trans hy have hf := large_facts y 12 (by norm_num) hb have hy0 : 0 < y := hf.1 have hL : 0 < L y := by linarith [hf.2.1] have hT : 0 ≤ L2 y := by linarith [hf.2.2.1] have hc : 0 ≤ RealBand.ordinaryConstant := by unfold RealBand.ordinaryConstant; positivity have hZ2 : 2 ≤ SmoothParameters.Z y 12 := by have hh := Real.add_one_le_exp (1 : ℝ) linarith have hlogZ : 1 ≤ Real.log (SmoothParameters.Z y 12) := by have hh := Real.log_le_log (Real.exp_pos 1) hZ simpa only [Real.log_exp] using hh have hu := SmoothParameters.u_range y 12 (by norm_num) hy have hm := (SmoothParameters.mass_bounds y 12 (chooseB 12) (by norm_num) (SmoothParameters.chosen_B_ge_one 12) hy).2 change (SmoothParameters.X y 12 : ℝ) ≤ 2 * y * (L y) ^ 3 at hm have hzl := parameter_logZ_le y hy have hp := ShiftedRankin.actual_finite_Psi_bound y 12 hu.1 hZ2 hlogZ hu.2 have he := Real.exp_le_exp.mpr (decay_exponent_le _ _ hu.1 hT hs hut) have hfactor : RealBand.ordinaryConstant * (SmoothParameters.X y 12 : ℝ) * Real.log (SmoothParameters.Z y 12) ≤ 2 * RealBand.ordinaryConstant * y * (L y) ^ 4 := by calc _ ≤ (RealBand.ordinaryConstant * (2 * y * (L y) ^ 3)) * L y := mul_le_mul (mul_le_mul_of_nonneg_left hm hc) hzl (by linarith) (by positivity) _ = _ := by ring calc _ ≤ _ := hp _ ≤ 2 * RealBand.ordinaryConstant * y * (L y) ^ 4 * Real.exp (-(11 / 2 : ℝ) * L2 y) := mul_le_mul hfactor he (Real.exp_pos _).le (by positivity) _ = (2 * RealBand.ordinaryConstant * y) * ((L y) ^ 4 * Real.exp (-(11 / 2 : ℝ) * Real.log (L y))) := by unfold L2; ring _ = _ := by rw [exp_decay_identity _ hL]; ring theorem finite_smooth_budget (y : ℝ) (hy : SmoothParameters.threshold 12 (chooseB 12) ≤ y) (hZ : Real.exp 1 ≤ SmoothParameters.Z y 12) (hs : 288 * Real.log 4 ≤ Real.sqrt (SmoothParameters.u y 12)) (hut : (23 / 2 : ℝ) * L2 y ≤ SmoothParameters.u y 12 * Real.log (SmoothParameters.u y 12)) (hcost : 96 * RealBand.ordinaryConstant ≤ Real.sqrt (L y)) : 2 * (EarlyCover.Psi (SmoothParameters.X y 12) (SmoothParameters.Z y 12) : ℝ) ≤ y / (24 * Real.log y) := by have hf := large_facts y 12 (by norm_num) ((le_max_left _ _).trans hy) have hL : 0 < L y := by linarith [hf.2.1] have hsL : 0 < Real.sqrt (L y) := Real.sqrt_pos.mpr hL have hp := mul_le_mul_of_nonneg_left (finite_Psi_mass_le y hy hZ hs hut) (by norm_num : (0 : ℝ) ≤ 2) calc _ ≤ 4 * RealBand.ordinaryConstant * y / (L y * Real.sqrt (L y)) := by convert hp using 1 ring _ ≤ y / (24 * L y) := by apply (div_le_div_iff₀ (mul_pos hL hsL) (by positivity : 0 < 24 * L y)).mpr have hh := mul_le_mul_of_nonneg_left hcost (mul_nonneg hf.1.le hL.le) nlinarith _ = _ := rfl /-- Every quantitative premise is discharged for the actual fixed-A=12 parameters. -/ theorem eventual_smooth_and_uncovered_budget : ∃ Y : ℝ, 0 < Y ∧ ∀ y : ℝ, Y ≤ y → 2 * (EarlyCover.Psi (SmoothParameters.X y 12) (SmoothParameters.Z y 12) : ℝ) ≤ y / (24 * Real.log y) ∧ (EarlyCover.R (m y (chooseB 12)) y (z0 y 12) (z1 y 12) : ℝ) ≤ y / (3 * Real.log y) := by obtain ⟨Y1, hY1, he1⟩ := SmoothLogLimit.eventual_u_log_u 12 (by norm_num) (1 / 2) (by norm_num) obtain ⟨Y2, hY2, he2⟩ := SmoothParameters.eventual_u_growth 12 (by norm_num) ((288 * Real.log 4) ^ 2) obtain ⟨Y3, hY3, he3⟩ := SmoothParameters.eventual_Z_growth 12 (by norm_num) (Real.exp 1) let Y := max (SmoothParameters.threshold 12 (chooseB 12)) (max Y1 (max Y2 (max Y3 (Real.exp ((96 * RealBand.ordinaryConstant) ^ 2))))) refine ⟨Y, hY1.trans_le ((le_max_left _ _).trans (le_max_right _ _)), ?_⟩ intro y hy have ht : SmoothParameters.threshold 12 (chooseB 12) ≤ y := (le_max_left _ _).trans hy have h1 : Y1 ≤ y := (le_max_left _ _).trans ((le_max_right _ _).trans hy) have h2 : Y2 ≤ y := (le_max_left _ _).trans ((le_max_right _ _).trans ((le_max_right _ _).trans hy)) have h3 : Y3 ≤ y := (le_max_left _ _).trans ((le_max_right _ _).trans ((le_max_right _ _).trans ((le_max_right _ _).trans hy))) have h4 : Real.exp ((96 * RealBand.ordinaryConstant) ^ 2) ≤ y := (le_max_right _ _).trans ((le_max_right _ _).trans ((le_max_right _ _).trans ((le_max_right _ _).trans hy))) have hf := large_facts y 12 (by norm_num) ((le_max_left _ _).trans ht) have hL : 0 < L y := by linarith [hf.2.1] have hT : 0 < L2 y := by linarith [hf.2.2.1] have hu := SmoothParameters.u_range y 12 (by norm_num) ht have hsmall := (abs_le.mp (he1 y h1)).1 have hquot : (23 / 2 : ℝ) ≤ SmoothParameters.u y 12 * Real.log (SmoothParameters.u y 12) / L2 y := by linarith have hut := (le_div_iff₀ hT).mp hquot have hubig := he2 y h2 have hl4 : 0 ≤ Real.log 4 := Real.log_nonneg (by norm_num) have hs : 288 * Real.log 4 ≤ Real.sqrt (SmoothParameters.u y 12) := by nlinarith [Real.sq_sqrt (show 0 ≤ SmoothParameters.u y 12 by linarith [hu.1]), Real.sqrt_nonneg (SmoothParameters.u y 12)] have hlogbig := Real.log_le_log (Real.exp_pos _) h4 rw [Real.log_exp] at hlogbig change (96 * RealBand.ordinaryConstant) ^ 2 ≤ L y at hlogbig have hc : 0 ≤ RealBand.ordinaryConstant := by unfold RealBand.ordinaryConstant; positivity have hcost : 96 * RealBand.ordinaryConstant ≤ Real.sqrt (L y) := by nlinarith [Real.sq_sqrt hL.le, Real.sqrt_nonneg (L y)] have hH := finite_smooth_budget y ht (he3 y h3) hs hut hcost refine ⟨hH, ?_⟩ have hr := ReserveBudget.parameter_uncovered_budget y 12 (by norm_num) ((le_max_left _ _).trans ht) change (EarlyCover.R (m y (chooseB 12)) y (z0 y 12) (z1 y 12) : ℝ) ≤ y / (4 * Real.log y) + y / (24 * Real.log y) + 2 * (EarlyCover.Psi (SmoothParameters.X y 12) (SmoothParameters.Z y 12) : ℝ) at hr have hid : y / (4 * Real.log y) + y / (24 * Real.log y) + y / (24 * Real.log y) = y / (3 * Real.log y) := by ring linarith theorem eventual_smooth_budget : ∃ Y : ℝ, 0 < Y ∧ ∀ y : ℝ, Y ≤ y → 2 * (EarlyCover.Psi (m y (chooseB 12) + 2) (z1 y 12) : ℝ) ≤ y / (24 * Real.log y) := by obtain ⟨Y, hY, he⟩ := eventual_smooth_and_uncovered_budget exact ⟨Y, hY, fun y hy => (he y hy).1⟩ theorem eventual_uncovered_budget : ∃ Y : ℝ, 0 < Y ∧ ∀ y : ℝ, Y ≤ y → (EarlyCover.R (m y (chooseB 12)) y (z0 y 12) (z1 y 12) : ℝ) ≤ y / (3 * Real.log y) := by obtain ⟨Y, hY, he⟩ := eventual_smooth_and_uncovered_budget exact ⟨Y, hY, fun y hy => (he y hy).2⟩ end end SmoothBudget #print axioms SmoothBudget.parameter_logZ_le #print axioms SmoothBudget.correction_le #print axioms SmoothBudget.decay_exponent_le #print axioms SmoothBudget.exp_decay_identity #print axioms SmoothBudget.finite_Psi_mass_le #print axioms SmoothBudget.finite_smooth_budget #print axioms SmoothBudget.eventual_smooth_and_uncovered_budget #print axioms SmoothBudget.eventual_smooth_budget #print axioms SmoothBudget.eventual_uncovered_budget