import Euler.OrdinaryRegularizedCauchy import Euler.OrdinaryEulerLimit import Euler.OrdinaryEulerConcatenation /-! Genuine continuation of every closed smooth Euler evolution, and the resulting gradient blowup criterion at a finite maximal horizon. -/ /-! ## From `Euler/OrdinaryEulerLocalExistence.lean` The text of `Euler/OrdinaryEulerLocalExistence.lean`, folded into this file, which was its only importer. -/ section /-! General smooth local Euler existence in ordinary R³. The datum has all actual spatial L² derivatives; no Gevrey radius is assumed. The solution is the strong Sobolev limit of genuine symmetric regularized Euler evolutions on one common positive interval. -/ noncomputable section namespace EulerOrdinarySobolev open Set Filter MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerVolterraConvolution EulerContinuousTimeIntegral Finset open scoped ContDiff Topology namespace RegularizedEvolution variable {T : ℝ} {hT : 0 ≤ T} {S : SmoothingOperator} (U : RegularizedEvolution S T hT) def derivativePath : C(Icc (0 : ℝ) T,L2) := fieldPath U.derivative U.derivative_continuous theorem integral_equation (t : Icc (0 : ℝ) T) : (U.velocity t).toLp=(U.velocity ⟨0,le_rfl,hT⟩).toLp+ integral T hT U.derivativePath t := by have h := eq_initial_add_integral T hT U.derivativePath (fun r => (U.velocity (projIcc 0 T hT r)).toLp) U.l2_time t simpa only [projIcc_of_mem hT t.property, projIcc_of_mem hT (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩)] using h end RegularizedEvolution namespace SmoothLimitData variable {T : ℝ} {hT : 0 ≤ T} {U : ∀ n, RegularizedEvolution (regularizer n) T hT} (L : SmoothLimitData (fun n => (U n).velocity) (fun n => (U n).velocity_continuous)) theorem regularized_solenoidal (t : Icc (0 : ℝ) T) : (L.field t).toLp ∈ solenoidalSpace := gradientSpace.isClosed_orthogonal.mem_of_tendsto (L.toLp_convergence t) (Eventually.of_forall (fun n => (U n).solenoidal t)) theorem regularized_derivative_convergence (M : ℝ) (hM : ∀ n t, WordBound 4 M ((U n).velocity t)) : Tendsto (fun n => (U n).derivativePath) atTop (𝓝 (projectedRhsPath L.field L.field_continuous)) := by have hp := L.projectedRhsPath_convergence hT (40*M) (fun n t => tensorNorm_three_le _ M (wordBound_mono (hM n t) (by omega))) have he (n : ℕ) : ‖(U n).derivativePath-projectedRhsPath (U n).velocity (U n).velocity_continuous‖ ≤ regularizerError n*regularizationCost M := by apply (ContinuousMap.norm_le _ (mul_nonneg (regularizerError_nonneg n) (regularizationCost_nonneg M))).mpr intro t exact regularized_rhs_error n _ ((U n).solenoidal t) M (hM n t) have hz : Tendsto (fun n => (U n).derivativePath- projectedRhsPath (U n).velocity (U n).velocity_continuous) atTop (𝓝 0) := by apply tendsto_iff_norm_sub_tendsto_zero.mpr simp only [sub_zero] apply squeeze_zero (fun _ => norm_nonneg _) he simpa only [zero_mul] using regularizerError_tendsto.mul_const (regularizationCost M) have h := hz.add hp simpa only [sub_add_cancel,zero_add] using h theorem regularized_integral_equation (M : ℝ) (hM : ∀ n t, WordBound 4 M ((U n).velocity t)) (t : Icc (0 : ℝ) T) : (L.field t).toLp=(L.field ⟨0,le_rfl,hT⟩).toLp+ integral T hT (projectedRhsPath L.field L.field_continuous) t := by have hi := (ContinuousMap.evalCLM ℝ t).continuous.tendsto (integral T hT (projectedRhsPath L.field L.field_continuous)) |>.comp (((integral (E := L2) T hT).continuous.tendsto _).comp (L.regularized_derivative_convergence M hM)) have hs := (L.toLp_convergence ⟨0,le_rfl,hT⟩).add hi exact tendsto_nhds_unique (L.toLp_convergence t) (hs.congr (fun n => ((U n).integral_equation t).symm)) theorem regularized_time (M : ℝ) (hM : ∀ n t, WordBound 4 M ((U n).velocity t)) (t : Icc (0 : ℝ) T) : HasDerivWithinAt (fun r => (L.field (projIcc 0 T hT r)).toLp) (projectedRhs (L.field t)).toLp (Icc (0 : ℝ) T) t := by have he : (fun r => (L.field (projIcc 0 T hT r)).toLp)= fun r => (L.field ⟨0,le_rfl,hT⟩).toLp+ extendPath T hT (integral T hT (projectedRhsPath L.field L.field_continuous)) r := by funext r exact L.regularized_integral_equation M hM (projIcc 0 T hT r) rw [he] exact (integral_hasDerivWithinAt T hT (projectedRhsPath L.field L.field_continuous) t).const_add _ def regularizedEvolution (M : ℝ) (hM : ∀ n t, WordBound 4 M ((U n).velocity t)) : Evolution T hT where velocity := L.field pressureForce t := pressureField (L.field t) velocity_continuous := L.field_continuous pressure_continuous := pressureField_continuous L.field L.field_continuous solenoidal := L.regularized_solenoidal gradient t := pressureField_mem_gradient (L.field t) time_law t ht x := by have hd : ∀ r (hr : r ∈ Ioo 0 T), HasDerivAt (fun s => (L.field (projIcc 0 T hT s)).toLp) (projectedRhs (L.field ⟨r,hr.1.le,hr.2.le⟩)).toLp r := by intro r hr exact (L.regularized_time M hM ⟨r,hr.1.le,hr.2.le⟩).hasDerivAt (Icc_mem_nhds hr.1 hr.2) have h := pointwise_derivative_of_l2 T hT L.field (fun s => projectedRhs (L.field s)) L.field_continuous (projectedRhs_continuous L.field L.field_continuous) hd ⟨t,ht.1.le,ht.2.le⟩ x simpa only [projectedRhs_field] using h.hasDerivAt (Icc_mem_nhds ht.1 ht.2) end SmoothLimitData def regularizedSolution (A : SmoothL2Field Space) (hA : A.toLp ∈ solenoidalSpace) (n : ℕ) : RegularizedEvolution (regularizer n) (regularizedTime A) (regularizedTime_pos A).le := Classical.choose ((regularizer n).exists_smooth (regularizedTime A) (regularizedTime_pos A).le A hA) theorem regularizedSolution_initial (A : SmoothL2Field Space) (hA : A.toLp ∈ solenoidalSpace) (n : ℕ) : (regularizedSolution A hA n).velocity ⟨0,le_rfl,(regularizedTime_pos A).le⟩=A := Classical.choose_spec ((regularizer n).exists_smooth (regularizedTime A) (regularizedTime_pos A).le A hA) theorem regularizedSolution_bounds (A : SmoothL2Field Space) (hA : A.toLp ∈ solenoidalSpace) : ∀ q, ∃ M : ℝ, ∀ n t, tensorNorm q ((regularizedSolution A hA n).velocity t) ≤ M := by intro q obtain ⟨M,hM⟩ := regularized_all_order A q exact ⟨M,fun n t => hM _ _ (regularizedSolution_initial A hA n) t⟩ theorem regularizedSolution_cauchy (A : SmoothL2Field Space) (hA : A.toLp ∈ solenoidalSpace) : CauchySeq (fun n => fieldPath (regularizedSolution A hA n).velocity (regularizedSolution A hA n).velocity_continuous) := by obtain ⟨M,hM⟩ := regularizedSolution_bounds A hA 4 apply regularized_cauchy (regularizedSolution A hA) M (fun n t k hk w => (wordBound_tensorNorm 4 _ k hk w).trans (hM n t)) intro j k simp only [regularizedSolution_initial] def localLimit (A : SmoothL2Field Space) (hA : A.toLp ∈ solenoidalSpace) : SmoothLimitData (fun n => (regularizedSolution A hA n).velocity) (fun n => (regularizedSolution A hA n).velocity_continuous) := smoothLimitData (regularizedTime_pos A).le _ _ (regularizedSolution_bounds A hA) (regularizedSolution_cauchy A hA) def localEvolution (A : SmoothL2Field Space) (hA : A.toLp ∈ solenoidalSpace) : Evolution (regularizedTime A) (regularizedTime_pos A).le := (localLimit A hA).regularizedEvolution (Classical.choose (regularizedSolution_bounds A hA 4)) (fun n t k hk w => (wordBound_tensorNorm 4 _ k hk w).trans (Classical.choose_spec (regularizedSolution_bounds A hA 4) n t)) theorem localEvolution_initial (A : SmoothL2Field Space) (hA : A.toLp ∈ solenoidalSpace) : (localEvolution A hA).velocity ⟨0,le_rfl,(regularizedTime_pos A).le⟩=A := by apply smoothField_eq_of_toLp_eq have h := (localLimit A hA).toLp_convergence ⟨0,le_rfl,(regularizedTime_pos A).le⟩ simp only [regularizedSolution_initial] at h exact tendsto_nhds_unique h tendsto_const_nhds end EulerOrdinarySobolev end end noncomputable section namespace EulerOrdinarySobolev open Set Filter MeasureTheory EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerVolterraConvolution EulerContinuousTimeIntegral open scoped Topology namespace Evolution variable {T : ℝ} {hT : 0 ≤ T} (U : Evolution T hT) theorem exists_extension (hTpos : 0 < T) : ∃ (S : ℝ) (hS : 0 < S) (hTS : T < S), ∃ V : Evolution S hS.le, V.velocity ⟨0,le_rfl,hS.le⟩=U.velocity ⟨0,le_rfl,hT⟩ ∧ ∀ t : Icc (0 : ℝ) T, V.velocity ⟨t,t.property.1,t.property.2.trans hTS.le⟩=U.velocity t := by let A := U.velocity ⟨T,hT,le_rfl⟩ let V := localEvolution A (U.solenoidal ⟨T,hT,le_rfl⟩) have hmatch : U.velocity ⟨T,hT,le_rfl⟩=V.velocity ⟨0,le_rfl,(regularizedTime_pos A).le⟩ := (localEvolution_initial A (U.solenoidal ⟨T,hT,le_rfl⟩)).symm have hST : T < T+regularizedTime A := lt_add_of_pos_right T (regularizedTime_pos A) refine ⟨T+regularizedTime A,add_pos hTpos (regularizedTime_pos A),hST, U.concatenate V hTpos (regularizedTime_pos A) hmatch,?_,?_⟩ · exact U.concatenate_initial V hTpos (regularizedTime_pos A) hmatch · exact U.concatenate_left V hTpos (regularizedTime_pos A) hmatch end Evolution theorem HasEulerEvolution.extend {A : SmoothL2Field Space} {T : ℝ} (h : HasEulerEvolution A T) : ∃ S, T < S ∧ HasEulerEvolution A S := by obtain ⟨hT,U,hU⟩ := h obtain ⟨S,hS,hST,V,hV,_hagree⟩ := U.exists_extension hT exact ⟨S,hST,hS,V,hV.trans hU⟩ namespace FiniteLifespan variable {A : SmoothL2Field Space} (L : FiniteLifespan A) theorem no_endpoint : ¬ HasEulerEvolution A L.duration := by intro h obtain ⟨S,hS,hE⟩ := h.extend exact L.maximal S hS hE theorem gradient_unbounded (K : ℝ) : ∃ (S : ℝ) (hS : 0 < S) (hSL : S < L.duration) (t : Icc (0 : ℝ) S) (x : Space), K < ‖fderiv ℝ ((L.evolution S hS hSL).velocity t).field x‖ := by by_contra hn push Not at hn apply L.no_endpoint apply L.endpoint_of_bounded_gradient ((max K 0)*L.duration) intro S hS hSL t apply ((L.evolution S hS hSL).gradientIntegral_le_const (max K 0) (fun r x => (hn S hS hSL r x).trans (le_max_left K 0)) t).trans exact mul_le_mul_of_nonneg_left (t.property.2.trans hSL.le) (le_max_right K 0) theorem evolution_agrees_at (S T : ℝ) (hS : 0 < S) (hT : 0 < T) (hSL : S < L.duration) (hTL : T < L.duration) (t : ℝ) (ht0 : 0 ≤ t) (htS : t ≤ S) (htT : t ≤ T) : (L.evolution S hS hSL).velocity ⟨t,ht0,htS⟩= (L.evolution T hT hTL).velocity ⟨t,ht0,htT⟩ := by rcases le_total S T with hST | hTS · exact (L.evolution_agrees S T hS hT hSL hTL hST ⟨t,ht0,htS⟩).1.symm · exact (L.evolution_agrees T S hT hS hTL hSL hTS ⟨t,ht0,htT⟩).1 theorem gradient_unbounded_near_endpoint (τ K : ℝ) (hτ : τ < L.duration) : ∃ (S : ℝ) (hS : 0 < S) (hSL : S < L.duration) (t : Icc (0 : ℝ) S) (x : Space), τ < t ∧ K < ‖fderiv ℝ ((L.evolution S hS hSL).velocity t).field x‖ := by by_contra hn push Not at hn let R := (max τ 0+L.duration)/2 have hm : max τ 0 < L.duration := max_lt hτ L.duration_pos have hR : 0 < R := by dsimp [R]; linarith [le_max_right τ 0,L.duration_pos] have hRL : R < L.duration := by dsimp [R]; linarith have hτR : τ < R := by dsimp [R]; linarith [le_max_left τ 0] let C := ‖(L.evolution R hR hRL).gradientNormPath‖ obtain ⟨S,hS,hSL,t,x,hx⟩ := L.gradient_unbounded (max C K) apply (not_lt_of_ge (show ‖fderiv ℝ ((L.evolution S hS hSL).velocity t).field x‖ ≤ max C K from ?_)) hx by_cases ht : (t : ℝ) ≤ R · have he := L.evolution_agrees_at S R hS hR hSL hRL t t.property.1 t.property.2 ht rw [he] apply ((L.evolution R hR hRL).pointwise_gradient_le ⟨t,t.property.1,ht⟩ x).trans apply le_trans _ (le_max_left C K) exact le_trans (le_abs_self _) ((L.evolution R hR hRL).gradientNormPath.norm_coe_le_norm _) · exact (hn S hS hSL t x (hτR.trans (lt_of_not_ge ht))).trans (le_max_right C K) end FiniteLifespan end EulerOrdinarySobolev