import OAI.Dynamics.SmoothObstruction.ShortDerivative import OAI.Dynamics.SmoothObstruction.ExteriorPowers namespace OAI section open Filter Topology open scoped Real namespace SmoothObstruction.SmoothScales /-- The source floor forces the gap×short-time scale to infinity. This is `g L ≥ b^(3/4)n` for `g = sqrt b`, `L = ceil(b^(1/4)n)`. -/ lemma gap_scale_lower {b n : ℝ} (hn : 1≤n) (hb : n^(-1/10:ℝ)≤b) : n^(37/40:ℝ)≤b^(3/4:ℝ)*n := by have hnpos : 0 Real.exp (C*b k*n k-c*b k^(3/4:ℝ)*n k)) l (𝓝 0) := by have hn1 : ∀ᶠ k in l,1≤n k := hn.eventually (eventually_ge_atTop 1) have hP : Tendsto (fun k => b k^(3/4:ℝ)*n k) l atTop := by apply tendsto_atTop_mono' l ?_ ((tendsto_rpow_atTop (show (0:ℝ)<37/40 by norm_num)).comp hn) filter_upwards [hn1,hfloor] with k hnk hbk exact gap_scale_lower hnk hbk have hquarter : Tendsto (fun k => b k^(1/4:ℝ)) l (𝓝 0) := by have hh := ((Real.continuous_rpow_const (show (0:ℝ)≤1/4 by norm_num)).tendsto 0).comp hb simpa only [Function.comp_def,Real.zero_rpow (show (1/4:ℝ)≠0 by norm_num)] using hh have hs : ∀ᶠ k in l,C*b k^(1/4:ℝ)≤c/2 := by apply Tendsto.eventually_le_const (show (0:ℝ) (Real.exp_pos _).le · filter_upwards [hbpos,hn1,hs] with k hbk hnk hsk apply Real.exp_le_exp.mpr have hbseq : b k^(1/4:ℝ)*b k^(3/4:ℝ)=b k := by rw [←Real.rpow_add hbk] norm_num have hh := mul_le_mul_of_nonneg_right hsk (show 0≤b k^(3/4:ℝ)*n k from mul_nonneg (Real.rpow_nonneg hbk.le _) (by linarith)) have he : (C*b k^(1/4:ℝ))*(b k^(3/4:ℝ)*n k)=C*b k*n k := by calc _ = C*(b k^(1/4:ℝ)*b k^(3/4:ℝ))*n k := by ring _ = _ := by rw [hbseq] rw [he] at hh nlinarith end SmoothObstruction.SmoothScales namespace SmoothObstruction.SmoothScales open Filter Topology /-- Uniform exponentially small common-projector errors absorb every fixed gauge cost. This is the form needed by the finite leading-minor lower bound. -/ theorem weighted_gap_error {α : Type*} {l : Filter α} {b n δ : α → ℝ} (hbpos : ∀ᶠ k in l,0 A*Real.exp (C*b k*n k)*δ k) l (𝓝 0) := by have hz := (gap_cost_absorption hbpos hb hn hfloor C hc).const_mul A simp only [mul_zero] at hz apply squeeze_zero' _ _ hz · filter_upwards [hδ] with k hk exact mul_nonneg (mul_nonneg hA (Real.exp_pos _).le) hk.1 · filter_upwards [hδ] with k hk calc _ ≤ A*Real.exp (C*b k*n k)*Real.exp (-c*b k^(3/4:ℝ)*n k) := mul_le_mul_of_nonneg_left hk.2 (mul_nonneg hA (Real.exp_pos _).le) _ = A*Real.exp (C*b k*n k-c*b k^(3/4:ℝ)*n k) := by rw [mul_assoc,←Real.exp_add] congr 2 ring end SmoothObstruction.SmoothScales namespace SmoothObstruction.SmoothScales open Filter Topology /-- The literal dimension/gauge cost in the common-fast leading-minor proof is eventually small. Its parameters are fixed before bins and frames are selected, and the good-frame error has the source gap×short-time scale. -/ theorem common_frame_budget {α : Type*} {l : Filter α} {b n δ : α → ℝ} (hbpos : ∀ᶠ k in l,0 (F*δ k)*(1+((C*(Real.exp (K₀*b k*n k))^p)^2*(C*2^p))* (C*(C^2*(Real.exp (K₀*b k*n k))^(2*p)*N)))) l (𝓝 0) := by apply hz.congr intro k exact (he k).symm exact hh.eventually_le_const (by norm_num : (0:ℝ)<1/2) end SmoothObstruction.SmoothScales namespace SmoothObstruction.SmoothScales open Filter Topology /-- The full-time gap dominates the short-time gap scale and every fixed gauge cost. No uniform positive lower bound on the spectral gap is assumed. -/ theorem weighted_full_gap {α : Type*} {l : Filter α} {b n : α → ℝ} (hbpos : ∀ᶠ k in l,0 A*Real.exp (C*b k*n k)* Real.exp (-c*b k^(1/2:ℝ)*n k)) l (𝓝 0) := by apply weighted_gap_error hbpos hb hn hfloor hc hA C have hb1 := hb.eventually_le_const (by norm_num : (0:ℝ)<1) have hn0 := hn.eventually (eventually_ge_atTop 0) filter_upwards [hbpos,hb1,hn0] with k hbk hb1k hnk refine ⟨(Real.exp_pos _).le,Real.exp_le_exp.mpr ?_⟩ have hh := Real.rpow_le_rpow_of_exponent_ge hbk hb1k (show (1/2:ℝ)≤3/4 by norm_num) have hp := mul_le_mul_of_nonneg_right hh hnk nlinarith /-- The literal finite-gauge Cramer bound tends to zero, uniformly over all common bins satisfying the same scalar data. Fixed constants account for the dimension, endpoint projections and unit wedge norms. -/ theorem common_graph_budget {α : Type*} {l : Filter α} {b n δ : α → ℝ} (hbpos : ∀ᶠ k in l,0 2*((C*(Real.exp (K₀*b k*n k))^p)^2*(C*2^p))* ((C*(C*(Real.exp (K₀*b k*n k))^p)^2*N*V)* Real.exp (-2*b k^(1/2:ℝ)*n k)+ (C*(C^2*(Real.exp (K₀*b k*n k))^(2*p)*N))*W*δ k)) l (𝓝 0) := by have hz₁ := weighted_full_gap hbpos hb hn hfloor (by norm_num : (0:ℝ)<2) (show 0≤2*C^6*2^p*N*V by positivity) ((4*p:ℕ)*K₀) have hz₂ := weighted_gap_error hbpos hb hn hfloor hc (show 0≤2*C^6*2^p*N*W by positivity) ((4*p:ℕ)*K₀) hδ have hz := hz₁.add hz₂ simp only [add_zero] at hz apply hz.congr intro k have hexp : Real.exp (((4*p:ℕ):ℝ)*K₀*b k*n k)= (Real.exp (K₀*b k*n k))^(4*p) := by rw [←Real.exp_nat_mul] congr 1 ring rw [hexp] simp only [Nat.mul_comm 2 p,Nat.mul_comm 4 p,pow_mul] ring /-- Relative nonlinear errors preserve the vanishing Cramer bound. -/ theorem perturbed_graph_decay {α : Type*} {l : Filter α} {θ ε : α → ℝ} (hθ : Tendsto θ l (𝓝 0)) (hε : Tendsto ε l (𝓝 0)) : Tendsto (fun k => (θ k+ε k)/(1-ε k)) l (𝓝 0) := by have hh := (hθ.add hε).div (tendsto_const_nhds.sub hε) (by norm_num : (1:ℝ)-0≠0) change Tendsto (fun k => (θ k+ε k)/(1-ε k)) l (𝓝 ((0+0)/(1-0))) at hh norm_num at hh exact hh end SmoothObstruction.SmoothScales namespace SmoothObstruction.SmoothScales open Filter Topology /-- The manuscript's exact natural short length, including its ceiling. -/ lemma ceil_gap_lower {b n : ℝ} (hb : 0