import Euler.BaseStaticEuler import Euler.BaseEulerGevrey import Euler.StaticEulerForceField import Euler.ParentEulerSobolev import Euler.ParentPacketScaledBounds import Euler.ParentPacketRestriction import Euler.PacketFirstPressureSign import Euler.ParentPacketStrainEvolution /-! The initial induction state is completely constructed from the compact β-family. A single positive time and a single label constant work for the family, with actual low-order guards and pressure sign. -/ /-! ## From `Euler/BaseEulerGuards.lean` The text of `Euler/BaseEulerGuards.lean`, folded into this file, which was its only importer. -/ section /-! The genuine base parent can be restricted to one explicit positive time on which the low-order source guards hold. The constants depend only on its fixed label envelope; the initial core is empty. -/ noncomputable section namespace EulerBaseEulerGuards open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerParentPacketFrames EulerPacketParentLabelBounds EulerGevrey EulerPacketFirstPressureSign EulerTimeIntervalRestriction def coefficientCost (K : ℝ) : ℝ := 27*(frameAmplitude K)^2*gradientAmplitude K theorem coefficientCost_nonneg (K : ℝ) : 0 ≤ coefficientCost K := by unfold coefficientCost positivity [gradientAmplitude_nonneg K] def guardTime (T K : ℝ) : ℝ := min T (min 1 (1/(4*(1+coefficientCost K+ firstSignRate (coefficientCost K) (coefficientCost K))))) theorem guardTime_pos (T K : ℝ) (hT : 0 < T) : 0 < guardTime T K := by have hC := coefficientCost_nonneg K have hr : 0 ≤ firstSignRate (coefficientCost K) (coefficientCost K) := by unfold firstSignRate positivity unfold guardTime positivity theorem guardTime_le (T K : ℝ) : guardTime T K ≤ T := min_le_left _ _ theorem guardTime_le_one (T K : ℝ) : guardTime T K ≤ 1 := (min_le_right _ _).trans (min_le_left _ _) theorem guardTime_small (T K : ℝ) : coefficientCost K*guardTime T K ≤ 1/4 ∧ firstSignRate (coefficientCost K) (coefficientCost K)*guardTime T K ≤ 1/4 := by let C := coefficientCost K let R := firstSignRate C C have hC : 0 ≤ C := coefficientCost_nonneg K have hR : 0 ≤ R := by dsimp [R,firstSignRate]; positivity have hd : 0 < 4*(1+C+R) := by positivity have ht : guardTime T K ≤ 1/(4*(1+C+R)) := (min_le_right _ _).trans (min_le_right _ _) have hc := mul_le_mul_of_nonneg_left ht hC have hr := mul_le_mul_of_nonneg_left ht hR have hc' : C*(1/(4*(1+C+R))) ≤ 1/4 := by rw [mul_one_div] apply (div_le_iff₀ hd).mpr linarith have hr' : R*(1/(4*(1+C+R))) ≤ 1/4 := by rw [mul_one_div] apply (div_le_iff₀ hd).mpr linarith exact ⟨hc.trans hc',hr.trans hr'⟩ theorem inner_bounds_of_norm (A : Space →L[ℝ] Space) (C : ℝ) (hA : ‖A‖ ≤ C) (v : Space) : -C*‖v‖^2 ≤ ⟪A v,v⟫_ℝ ∧ ⟪A v,v⟫_ℝ ≤ C*‖v‖^2 := by have hn : ‖A v‖ ≤ C*‖v‖ := (A.le_opNorm v).trans (mul_le_mul_of_nonneg_right hA (norm_nonneg _)) have hi : |⟪A v,v⟫_ℝ| ≤ C*‖v‖^2 := by calc _ ≤ ‖A v‖*‖v‖ := by simpa only [Real.norm_eq_abs] using norm_inner_le_norm (𝕜 := ℝ) (A v) v _ ≤ (C*‖v‖)*‖v‖ := mul_le_mul_of_nonneg_right hn (norm_nonneg _) _ = _ := by ring constructor · linarith [(abs_le.mp hi).1] · exact (abs_le.mp hi).2 variable {G : Parent} (L : LabelData G) theorem strain_norm (t : Icc (0 : ℝ) G.T) (x : Space) : ‖G.strain.field t x‖ ≤ coefficientCost L.K := by have h := L.strain_scaled_bound 0 t x simpa only [coefficientCost,norm_iteratedFDeriv_zero,majorant,Nat.zero_add, Nat.factorial_zero,Nat.cast_one,pow_zero,one_pow,mul_one] using h theorem curvature_norm (t : Icc (0 : ℝ) G.T) (x : Space) : ‖G.curvature.field t x‖ ≤ coefficientCost L.K := by have h := L.curvature_scaled_bound 0 t x simpa only [coefficientCost,norm_iteratedFDeriv_zero,majorant,Nat.zero_add, Nat.factorial_zero,Nat.cast_one,pow_zero,one_pow,mul_one] using h theorem initialStrain_norm (x : Space) : ‖G.initialStrain.field x‖ ≤ coefficientCost L.K := by have he : G.strain.field G.zeroTime x=G.initialStrain.field x := by apply ContinuousLinearMap.ext intro v rw [G.strain_apply,comp_apply,G.inverse_initial,G.initialStrain_apply] rw [← he] exact strain_norm L G.zeroTime x def lowBoundsOn (S : ℝ) (hS : 0 < S) (hST : S ≤ G.T) (hSone : S ≤ 1) (hsmall : coefficientCost L.K*S ≤ 1/4) : LowBounds (G.restrictTime S hS hST) where Be := coefficientCost L.K Bc := 0 L := 0 r := 0 K := coefficientCost L.K Be_nonneg := coefficientCost_nonneg L.K Bc_nonneg := le_rfl L_lower := by simp r_nonneg := le_rfl r_le_quarter := by norm_num K_nonneg := coefficientCost_nonneg L.K exterior_lower x _ v := by rw [G.restrictTime_initialStrain] exact (inner_bounds_of_norm _ _ (initialStrain_norm L x) v).1 core_lower x hx _ := by exact False.elim ((not_lt_of_ge (norm_nonneg _)) hx) curvature_upper t x v := by erw [G.restrictTime_curvature] exact (inner_bounds_of_norm _ _ (curvature_norm L (initialInclusion G.T S hST t) x) v).2 small := by change coefficientCost L.K*(S^2/2)+coefficientCost L.K*S+_ ≤ 1/2 simp only [mul_zero,zero_mul,zero_pow (by decide : 3 ≠ 0),add_zero] have hsquare : S^2 ≤ S := by nlinarith [mul_nonneg hS.le (sub_nonneg.mpr hSone)] have hc := mul_le_mul_of_nonneg_left hsquare (coefficientCost_nonneg L.K) nlinarith def lowBounds : LowBounds (G.restrictTime (guardTime G.T L.K) (guardTime_pos G.T L.K G.T_pos) (guardTime_le G.T L.K)) := lowBoundsOn L _ _ _ (guardTime_le_one G.T L.K) (guardTime_small G.T L.K).1 end EulerBaseEulerGuards end end /-! ## From `Euler/BaseEulerSign.lean` The text of `Euler/BaseEulerSign.lean`, folded into this file, which was its only importer. -/ section /-! The first pressure numerator stays positive for the actual evolving normal and the actual homogeneous transverse velocity. Initial plateau data are the only geometric inputs; all time equations are constructed. -/ noncomputable section namespace EulerBaseEulerGuards open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerParentPacketFrames EulerTransverseFrameCoordinates EulerPacketFirstPressureSign EulerTimeIntervalRestriction variable {G : Parent} (L : LabelData G) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) (S : Set Space) (hS : IsCompact S) omit [CompleteSpace U] in theorem source_normal_initial (x : Space) : (G.transverseData m hm R S hS).normal.field G.zeroTime x=m := by change (G.inverse.field G.zeroTime x).adjoint m=m have hi : G.inverse.field G.zeroTime x=ContinuousLinearMap.id ℝ Space := by apply ContinuousLinearMap.ext exact G.inverse_initial x rw [hi,adjoint_id,id_apply] omit [CompleteSpace U] in theorem source_frame_initial (ξ : U) (x : Space) : (G.transverseData m hm R S hS).frame.field G.zeroTime x ξ=(R ξ : Space) := by change G.frame.field G.zeroTime x (R ξ : Space)=_ rw [G.frame_initial,id_apply] theorem source_numerator_pos (ξ : U) (hξ : ‖ξ‖=1) (x : Space) (h0 : ⟪m,G.initialStrain.field x (R ξ : Space)⟫_ℝ=1) (hshort : coefficientCost L.K*G.T ≤ 1/2) (hsmall : firstSignRate (coefficientCost L.K) (coefficientCost L.K)*G.T ≤ 1/2) (t : Icc (0 : ℝ) G.T) : 1/2 ≤ ⟪(G.transverseData m hm R S hS).normal.field t x, G.strain.field t x (EulerPacketForwardFactorization.uncutVelocity (G.transverseData m hm R S hS) ξ t x)⟫_ℝ := by apply uncut_numerator_pos (G.transverseData m hm R S hS) ξ x (fun s => G.curvature.field s x) (coefficientCost L.K) (coefficientCost L.K) (coefficientCost_nonneg L.K) (coefficientCost_nonneg L.K) (fun s => strain_norm L s x) (fun s => curvature_norm L s x) (fun s => G.strain_within s x) _ _ _ hshort hsmall t · change ‖(G.transverseData m hm R S hS).normal.field G.zeroTime x‖=1 rw [source_normal_initial m hm R S hS] exact hm · change ‖(G.transverseData m hm R S hS).frame.field G.zeroTime x ξ‖=1 rw [source_frame_initial m hm R S hS] exact (R.norm_map ξ).trans hξ · change ⟪(G.transverseData m hm R S hS).normal.field G.zeroTime x, G.strain.field G.zeroTime x ((G.transverseData m hm R S hS).frame.field G.zeroTime x ξ)⟫_ℝ=1 rw [source_normal_initial m hm R S hS,source_frame_initial m hm R S hS] rw [G.strain_apply,comp_apply,G.inverse_initial] exact h0 end EulerBaseEulerGuards end end /-! ## From `Euler/BaseEulerUniform.lean` The text of `Euler/BaseEulerUniform.lean`, folded into this file, which was its only importer. -/ section /-! A single factorial budget for every base datum with |β|≤1. In particular this covers β=x₀⁻² with x₀≥1, independently of the eventual frequency and iteration scales. -/ noncomputable section namespace EulerBaseDatum open Set EulerSmoothLimit EulerGevrey EulerLpTranslation EulerPacketPiola EulerPacketParentLabelBounds EulerMeanClassicalWordBounds EulerParameterWordGevrey def uniformAmplitude : ℝ := 1+‖curlOperator‖*(3*(3*cutoffAmplitude*(24*2))*256) theorem uniformAmplitude_pos : 0 < uniformAmplitude := by have h := cutoffAmplitude_nonneg unfold uniformAmplitude positivity theorem velocityAmplitude_le_uniform (β : ℝ) (hβ : |β| ≤ 1) : velocityAmplitude (linear β) ≤ uniformAmplitude := by have hL : ‖linear β‖ ≤ 2 := (linear_norm β).trans (by linarith) have hc := cutoffAmplitude_nonneg calc velocityAmplitude (linear β) ≤ ‖curlOperator‖*(3*(3*cutoffAmplitude*(24*2))*256) := by unfold velocityAmplitude potentialAmplitude gcongr _ ≤ uniformAmplitude := by unfold uniformAmplitude; linarith def uniformL2Amplitude : ℝ := uniformAmplitude*volumeFactor theorem uniformL2Amplitude_nonneg : 0 ≤ uniformL2Amplitude := mul_nonneg uniformAmplitude_pos.le volumeFactor_nonneg theorem field_uniform_jet (β : ℝ) (hβ : |β| ≤ 1) : (field (linear β)).HasJetBound uniformL2Amplitude 1024 := (field_jet_bound (linear β)).mono (mul_nonneg (velocityAmplitude_nonneg _) volumeFactor_nonneg) (by norm_num) (mul_le_mul_of_nonneg_right (velocityAmplitude_le_uniform β hβ) volumeFactor_nonneg) le_rfl end EulerBaseDatum end end /-! ## From `Euler/BaseEulerInput.lean` The text of `Euler/BaseEulerInput.lean`, folded into this file, which was its only importer. -/ section /-! A single positive time and a single label bound work for every compact base datum with |β|≤1. The parent, inverse and Euler evolution below are the actual constructed objects. -/ noncomputable section namespace EulerBaseDatum open Set EulerSmoothLimit EulerParentPacketFrames private local instance : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ def solutionTime : ℝ := EulerStaticEuler.baseTime 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) theorem solutionTime_pos : 0 < solutionTime := EulerStaticEuler.baseTime_pos 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) def solutionLabelConstant : ℝ := EulerStaticEuler.baseLabelConstant 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) def solutionParent : Parent := EulerStaticEuler.baseParent 1 (field (linear β)) uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) (velocity_divergence (linear β)) ell hell hell1 def solutionLabelData : LabelData (solutionParent β hβ ell hell hell1) := EulerStaticEuler.baseLabelData 1 (field (linear β)) uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) (velocity_divergence (linear β)) ell hell hell1 def solutionEvolution : Evolution (solutionParent β hβ ell hell hell1) := EulerStaticEuler.baseEvolution 1 (field (linear β)) uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) (velocity_divergence (linear β)) ell hell hell1 theorem solutionOddData : OddData (solutionParent β hβ ell hell hell1) := EulerStaticEuler.baseOddData 1 (field (linear β)) uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) (velocity_divergence (linear β)) ell hell hell1 (velocity_odd (linear β)) theorem solution_initial_velocity (x : Space) : (solutionParent β hβ ell hell hell1).velocity.field ⟨0,le_rfl,solutionTime_pos.le⟩ x= velocity (linear β) x := EulerStaticEuler.baseParent_initial_velocity 1 (field (linear β)) uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) (velocity_divergence (linear β)) ell hell hell1 x omit β hβ ell hell hell1 in theorem solutionLabelConstant_one : 1 ≤ solutionLabelConstant := (solutionLabelData 0 (by norm_num) 1 zero_lt_one le_rfl).K_one end EulerBaseDatum end end /-! ## From `Euler/BaseEulerSobolev.lean` The text of `Euler/BaseEulerSobolev.lean`, folded into this file, which was its only importer. -/ section /-! The concrete local base evolution has actual continuous L² jets for both velocity and pressure force. Consequently its Euler equation holds strongly in every finite Sobolev order, including endpoint derivatives. -/ noncomputable section namespace EulerStaticEuler open Set EulerSmoothLimit EulerLpTranslation EulerParentPacketFrames variable (P : ℝ) [Fact (0 < P)] (u : SmoothL2Field Space) (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) (hu : u.HasJetBound C R) (hdiv : ∀ x, divergence u.field x=0) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) def baseSobolevData : SobolevData (baseEvolution P u C R hC hR hu hdiv ell hell hell1) where velocity t := localField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) force t := localForceField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) velocity_match t x := (localField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x).symm force_match t x := (localForceField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x).symm velocity_continuous n := (localField_jetLp_continuous P u C R hC hR hu hdiv n).comp (baseInclusion P C R hC hR).continuous force_continuous n := (localForceField_jetLp_continuous P u C R hC hR hu hdiv n).comp (baseInclusion P C R hC hR).continuous end EulerStaticEuler namespace EulerBaseDatum open EulerParentPacketFrames private local instance : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ def solutionSobolevData (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : SobolevData (solutionEvolution β hβ ell hell hell1) := EulerStaticEuler.baseSobolevData 1 (field (linear β)) uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) (velocity_divergence (linear β)) ell hell hell1 end EulerBaseDatum end end noncomputable section namespace EulerBaseDatum open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerParentPacketFrames EulerBaseEulerGuards EulerTransverseFrameCoordinates def initialTime : ℝ := guardTime solutionTime solutionLabelConstant theorem initialTime_pos : 0 < initialTime := guardTime_pos _ _ solutionTime_pos theorem initialTime_le : initialTime ≤ solutionTime := guardTime_le _ _ theorem initialTime_le_one : initialTime ≤ 1 := guardTime_le_one _ _ def initialCoefficientCost : ℝ := coefficientCost solutionLabelConstant theorem initialCoefficientCost_nonneg : 0 ≤ initialCoefficientCost := coefficientCost_nonneg _ theorem initialTime_small : initialCoefficientCost*initialTime ≤ 1/4 ∧ EulerPacketFirstPressureSign.firstSignRate initialCoefficientCost initialCoefficientCost*initialTime ≤ 1/4 := guardTime_small _ _ variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) def initialParent : Parent := (solutionParent β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le def initialLabelData : LabelData (initialParent β hβ ell hell hell1) := (solutionLabelData β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le def initialEvolution : Evolution (initialParent β hβ ell hell hell1) := (solutionEvolution β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le def initialSobolevData : SobolevData (initialEvolution β hβ ell hell hell1) := (solutionSobolevData β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le theorem initialOddData : OddData (initialParent β hβ ell hell hell1) := (solutionOddData β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le def initialLowBounds : LowBounds (initialParent β hβ ell hell hell1) := lowBounds (solutionLabelData β hβ ell hell hell1) theorem initial_velocity (x : Space) : (initialParent β hβ ell hell hell1).velocity.field ⟨0,le_rfl,initialTime_pos.le⟩ x= velocity (linear β) x := solution_initial_velocity β hβ ell hell hell1 x theorem solution_initialStrain (x : Space) (hx : ‖ell • x‖ < 1) : (solutionParent β hβ ell hell hell1).initialStrain.field x=linear β := by rw [Parent.initialStrain_apply,Parent.first_apply] have he : ((solutionParent β hβ ell hell hell1).velocity.field (solutionParent β hβ ell hell hell1).zeroTime : Space → Space)=velocity (linear β) := funext (solution_initial_velocity β hβ ell hell hell1) rw [he] exact velocity_fderiv_plateau _ (linear_trace β) (ell • x) hx theorem initialStrain_plateau (x : Space) (hx : ‖ell • x‖ < 1) : (initialParent β hβ ell hell hell1).initialStrain.field x=linear β := by change ((solutionParent β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le).initialStrain.field x=linear β erw [Parent.restrictTime_initialStrain] exact solution_initialStrain β hβ ell hell hell1 x hx theorem initial_strain_bound (t : Icc (0 : ℝ) initialTime) (x : Space) : ‖(initialParent β hβ ell hell hell1).strain.field t x‖ ≤ initialCoefficientCost := strain_norm (initialLabelData β hβ ell hell hell1) t x theorem initial_curvature_bound (t : Icc (0 : ℝ) initialTime) (x : Space) : ‖(initialParent β hβ ell hell hell1).curvature.field t x‖ ≤ initialCoefficientCost := curvature_norm (initialLabelData β hβ ell hell hell1) t x variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (R : U ≃ₗᵢ[ℝ] referencePlane (EuclideanSpace.single 0 1 : Space)) (ξ : U) (hξ : (R ξ : Space)=EuclideanSpace.single 1 1) (S : Set Space) (hS : IsCompact S) end EulerBaseDatum