import NavierStokes.SlotColoring import NavierStokes.Scaling import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics /-! # The actual native chart scales The floor index is the one defined from the manuscript's logarithmic formula in `SlotColoring`. This module derives the coefficient comparisons in (25), their reciprocal bounds, the rounded carrier scale, and polynomial/exponential decay along the actual dyadic sequence. -/ noncomputable section namespace NavierStokes.ChartScales open Filter open scoped Topology abbrev Tg : ℝ := SlotColoring.coverGrowth def Lambda : ℝ := 4 - Real.sqrt 2 def rho : ℝ := Real.log Lambda / Real.log Tg def kappa : ℝ := 1 / 100000 def radialExponent (h : ℝ) : ℝ := 2 * ((1 + h) * rho - h * kappa) abbrev Q (n : ℕ) : ℝ := SlotColoring.dyadicQ n def S (n : ℕ) : ℝ := (n : ℝ) ^ 2 def epsilon (h : ℝ) (n : ℕ) : ℝ := Q n ^ h abbrev nativeIndex (h : ℝ) (n : ℕ) : ℕ := SlotColoring.nativeIndex h n def timeCoefficient (h : ℝ) (n : ℕ) : ℝ := Tg ^ nativeIndex h n * Q n ^ (1 + h) def radialCoefficient (h : ℝ) (n : ℕ) : ℝ := Lambda ^ nativeIndex h n * Q n ^ (radialExponent h / 2) theorem sqrt_two_lt_two : Real.sqrt (2 : ℝ) < 2 := by nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2), Real.sqrt_nonneg (2 : ℝ)] theorem Tg_one_lt : 1 < Tg := by unfold Tg SlotColoring.coverGrowth linarith [Real.sqrt_nonneg (2 : ℝ)] theorem Tg_pos : 0 < Tg := lt_trans zero_lt_one Tg_one_lt theorem log_Tg_pos : 0 < Real.log Tg := SlotColoring.log_coverGrowth_pos theorem Lambda_two_lt : 2 < Lambda := by unfold Lambda linarith [sqrt_two_lt_two] theorem Lambda_pos : 0 < Lambda := lt_trans (by norm_num) Lambda_two_lt theorem log_Lambda_pos : 0 < Real.log Lambda := Real.log_pos (by linarith [Lambda_two_lt]) /-- A coarse explicit bound suffices to show that the radial power is positive. -/ theorem rho_lower : (1 / 3 : ℝ) ≤ rho := by have hl : Real.log (2 : ℝ) ≤ Real.log Lambda := Real.log_le_log (by norm_num) Lambda_two_lt.le have ht : Tg ≤ (2 : ℝ) ^ 3 := by unfold Tg SlotColoring.coverGrowth norm_num linarith [sqrt_two_lt_two] have htlog := Real.log_le_log Tg_pos ht rw [Real.log_pow] at htlog norm_num at htlog unfold rho apply (le_div_iff₀ log_Tg_pos).mpr linarith theorem rho_pos : 0 < rho := lt_of_lt_of_le (by norm_num) rho_lower /-- This includes the manuscript's range `00`. -/ theorem slow_power_epsilon_tendsto_zero (h : ℝ) (hh : 0 < h) (a b : ℝ) (hb : 0 < b) : Tendsto (fun n : ℕ => S n ^ a * epsilon h n ^ b) atTop (𝓝 0) := by have hc : 0 < h * b * Real.log 2 := mul_pos (mul_pos hh hb) (Real.log_pos (by norm_num)) have ht := (tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero (2 * a) (h * b * Real.log 2) hc).comp (tendsto_natCast_atTop_atTop (R := ℝ)) simpa only [slow_power_epsilon_identity, Function.comp_def] using ht theorem eventually_slow_power_epsilon_lt (h : ℝ) (hh : 0 < h) (a b δ : ℝ) (hb : 0 < b) (hδ : 0 < δ) : ∀ᶠ n : ℕ in atTop, S n ^ a * epsilon h n ^ b < δ := (tendsto_order.1 (slow_power_epsilon_tendsto_zero h hh a b hb)).2 δ hδ theorem exists_slow_power_epsilon_cutoff (h : ℝ) (hh : 0 < h) (a b δ : ℝ) (hb : 0 < b) (hδ : 0 < δ) : ∃ N : ℕ, ∀ n ≥ N, S n ^ a * epsilon h n ^ b < δ := eventually_atTop.1 (eventually_slow_power_epsilon_lt h hh a b δ hb hδ) /-- The rounding error `1/k`, multiplied by any fixed slow power, also vanishes along the actual dyadic sequence. -/ theorem slow_power_div_carrier_tendsto_zero (h : ℝ) (hh : 0 < h) (a : ℝ) : Tendsto (fun n : ℕ => S n ^ a / (carrier h n : ℝ)) atTop (𝓝 0) := by apply squeeze_zero (fun n => div_nonneg (Real.rpow_nonneg (sq_nonneg (n : ℝ)) a) (Nat.cast_nonneg _)) (g := fun n : ℕ => S n ^ a * epsilon h n ^ (1 / 2 : ℝ)) · intro n calc S n ^ a / (carrier h n : ℝ) = S n ^ a * (1 / (carrier h n : ℝ)) := by ring _ ≤ S n ^ a * Real.sqrt (epsilon h n) := mul_le_mul_of_nonneg_left (carrier_inv_bounds h hh.le n).2 (Real.rpow_nonneg (sq_nonneg (n : ℝ)) a) _ = S n ^ a * epsilon h n ^ (1 / 2 : ℝ) := by rw [Real.sqrt_eq_rpow] · exact slow_power_epsilon_tendsto_zero h hh a (1 / 2) (by norm_num) end NavierStokes.ChartScales