import Euler.PacketStageInputs import Euler.PacketSourceParameterScales import Euler.PacketInitialSmoothLimit import Euler.PacketStageGrowth import Euler.ParentOrdinaryEvolution import Euler.OrdinaryEulerVaryingHorizon import Euler.SmoothL2Series /-! The literal initial increments of an actual stage family have one smooth L² limit in every Sobolev order. The finite exceptional prefix is retained in the initial velocity of stage one. -/ /-! ## From `Euler/PacketStageContradiction.lean` The text of `Euler/PacketStageContradiction.lean`, folded into this file, which was its only importer. -/ section /-! Any actual family of packet stages with convergent H³ initial data excludes an ordinary Euler evolution on the base horizon. Each stage is compared only on its own genuine horizon. -/ noncomputable section namespace EulerPacketInduction.Stage open Set Filter EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerPhysicalL2Scaling EulerOrdinarySobolev EulerSmoothL2Series EulerPacketInductionScales EulerPacketSourceScaleActual EulerPacketBaseGuardScales open scoped Topology variable {c B : ℝ} {S : Scales c B} (P : ∀ n, Stage S n) (u₀ : Space → Space) (hinit : Tendsto (fun n => derivativeSum 3 ((fun x => (P n).state.evolution.velocity (0,x))-u₀)) atTop (𝓝 0)) include P hinit theorem false_of_evolution (U : Evolution (baseHorizon S.J S.X) (baseHorizon_pos S.J S.j_one S.x_pos).le) (hU₀ : (U.velocity ⟨0,le_rfl,(baseHorizon_pos S.J S.j_one S.x_pos).le⟩).field=u₀) : False := by let durations : ℕ → ℝ := fun n => (P n).parent.T let hD : ∀ n, 0 ≤ durations n := fun n => (P n).parent.T_pos.le let hDT : ∀ n, durations n ≤ baseHorizon S.J S.X := fun n => (P n).horizon_le let V : ∀ n, Evolution (durations n) (hD n) := fun n => (P n).state.regularity.ordinaryEvolution let times : ∀ n, Icc (0 : ℝ) (durations n) := fun n => ⟨(P n).time,(P n).time_nonneg,(P n).time_lt.le⟩ have hfield (n : ℕ) : (((U.restrictTime (durations n) (hD n) (hDT n)).difference (V n)) ⟨0,le_rfl,hD n⟩).field = (fun x => (P n).state.evolution.velocity (0,x))-u₀ := by funext x rw [Evolution.difference,fieldSub_field] change ((P n).state.regularity.velocity ⟨0,le_rfl,(P n).parent.T_pos.le⟩).field x- (U.velocity ⟨0,le_rfl,(baseHorizon_pos S.J S.j_one S.x_pos).le⟩).field x = _ rw [hU₀,← (P n).state.regularity.velocity_match ⟨0,le_rfl,(P n).parent.T_pos.le⟩ x] rfl have hnorm (n : ℕ) : tensorNorm 3 ((U.restrictTime (durations n) (hD n) (hDT n)).difference (V n) ⟨0,le_rfl,hD n⟩) = derivativeSum 3 ((fun x => (P n).state.evolution.velocity (0,x))-u₀) := by rw [tensorNorm_eq_derivativeSum,hfield] have hlim : Tendsto (fun n => tensorNorm 3 ((U.restrictTime (durations n) (hD n) (hDT n)).difference (V n) ⟨0,le_rfl,hD n⟩)) atTop (𝓝 0) := by simpa only [hnorm] using hinit have hno := U.no_gradient_escape_of_initial_tendsto_varying durations hD hDT V hlim times apply hno have hactual (n : ℕ) : ((V n).velocity (times n)).field = fun x => (P n).state.evolution.velocity ((P n).time,x) := funext (fun x => ((P n).state.regularity.velocity_match (times n) x).symm) have heq : (fun n => ‖fderiv ℝ ((V n).velocity (times n)).field 0‖) = fun n => (P n).activationGradient := by funext n rw [hactual] rfl rw [heq] exact gradient_atTop P theorem no_euler_evolution_of_initial_H3 : ¬ ∃ U : Evolution (baseHorizon S.J S.X) (baseHorizon_pos S.J S.j_one S.x_pos).le, (U.velocity ⟨0,le_rfl,(baseHorizon_pos S.J S.j_one S.x_pos).le⟩).field=u₀ := by rintro ⟨U,hU⟩ exact false_of_evolution P u₀ hinit U hU end EulerPacketInduction.Stage end end /-! ## From `Euler/PacketSourceScaleShift.lean` The text of `Euler/PacketSourceScaleShift.lean`, folded into this file, which was its only importer. -/ section /-! Exact reindexing of the prescribed scale sequence after finitely many exceptional initial stages. No new choice of asymptotic scales is made. -/ noncomputable section namespace EulerPacketSourceScaleSequence open EulerPacketSourceScaleChoice EulerPacketUniformFrequencyScales theorem scaleSequence_shift (J : ℕ) (X : ℝ) (r n : ℕ) : scaleSequence (J+r) (scaleSequence J X r) n=scaleSequence J X (r+n) := by induction n with | zero => simp only [scaleSequence_zero,Nat.add_zero] | succ n ih => rw [scaleSequence_succ,ih,show r+(n+1)=(r+n)+1 by omega,scaleSequence_succ,Nat.add_assoc] theorem frequency_shift (J : ℕ) (X : ℝ) (r n : ℕ) : frequency (J+r) (scaleSequence J X r) n=frequency J X (r+n) := by simp only [frequency,scaleSequence_shift,Nat.add_assoc] theorem supportScale_shift (J : ℕ) (X : ℝ) (r n : ℕ) : supportScale (J+r) (scaleSequence J X r) n=supportScale J X (r+n) := by simp only [supportScale,scaleSequence_shift,Nat.add_assoc] theorem parameterEnvelope_shift (J : ℕ) (hJ : 1 ≤ J) (C c : ℝ) (p q : ℕ) (X : ℝ) (r n : ℕ) : parameterEnvelope (J+r) C c p q (scaleSequence J X r) n= parameterEnvelope J C c p q X (r+n) := by have he : J+r-1+n=J-1+(r+n) := by omega simp only [parameterEnvelope,scaleSequence_shift,Nat.add_assoc,he] end EulerPacketSourceScaleSequence end end noncomputable section namespace EulerPacketInduction.Stage open Set Filter Finset EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerPhysicalL2Scaling EulerPacketInductionScales EulerPacketLowConstants EulerParentNeighborThreshold EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence EulerPacketUniformFrequencyScales EulerNormalPacketParameters EulerTransverseFrameCoordinates EulerPacketBaseGuardScales open scoped Topology variable {q : ℕ} {B : ℝ} {S : Scales (q : ℝ) B} (P : ∀ n, Stage S n) (hq : requiredExponent ≤ q) (hB : commonThreshold gradientConstant hessianConstant ≤ B) def initialTailInput (i : ℕ) : EulerPacketInitial.Input (referencePlane ((P (1+i)).joinedNormal (by omega))) := (P (1+i)).joinedInput (by omega) hq hB local notation "A" => initialTailInput P hq hB local notation "J" => S.J+1 local notation "X" => scaleSequence S.J S.X 1 theorem initialTail_parameter (i : ℕ) : (A i).parameterSize ≤ parameterEnvelope J (sourceConstant 4) 320 20 1000 X i := by rw [parameterEnvelope_shift S.J S.j_one (sourceConstant 4) 320 20 1000 S.X 1 i] exact (P (1+i)).joinedInput_parameterSize (by omega) hq hB theorem initialTail_scale (i : ℕ) : (A i).parent.ell=supportScale J X i := by rw [supportScale_shift] exact (P (1+i)).joinedInput_scale (by omega) hq hB theorem initialTail_sigma (i : ℕ) : (A i).frame.sigma*scaleSequence J X i ≤ 2 := by rw [scaleSequence_shift] exact (P (1+i)).joinedInput_sigma_bound (by omega) hq hB theorem initialTail_four (i : ℕ) : 4 ≤ frequency J X i := by rw [frequency_shift] exact (S.normal_frequency (1+i)).four theorem initialTail_frequency (i : ℕ) : (A i).frequencyGuard (frequency J X i) := by rw [frequency_shift] exact (P (1+i)).joinedInput_frequency (by omega) hq hB def initialBase : SmoothL2Field Space := (P 1).state.regularity.velocity (P 1).parent.zeroTime def initialDataLimit : SmoothL2Field Space := EulerPacketInitial.fullInitialLimit A J (by have h := S.stage_large; omega) (sourceConstant 4) 320 (sourceConstant_pos 4) (by norm_num) 20 1000 X (S.sequence_one 1) (initialTail_parameter P hq hB) (initialTail_scale P hq hB) (initialTail_sigma P hq hB) (initialTail_four (S := S)) (initialTail_frequency P hq hB) (initialBase P) variable (hstep : ∀ n (hn : n ≠ 0), (fun x => (P (n+1)).state.evolution.velocity (0,x)) = (fun x => (P n).state.evolution.velocity (0,x))+ (((P n).joinedInput hn hq hB).high (frequency S.J S.X n)+ ((P n).joinedInput hn hq hB).mean (frequency S.J S.X n))) include hstep theorem initial_velocity_partial (N : ℕ) : (fun x => (P (1+N)).state.evolution.velocity (0,x)) = (initialBase P).field+EulerPacketInitial.initialPartial A J X N := by induction N with | zero => funext x simpa only [Nat.add_zero,EulerPacketInitial.initialPartial,sum_range_zero, Pi.add_apply,add_zero,initialBase,EulerParentPacketFrames.Parent.zeroTime] using (P 1).state.regularity.velocity_match (P 1).parent.zeroTime x | succ N ih => rw [show 1+(N+1)=(1+N)+1 by omega,hstep (1+N) (by omega),ih] funext x simp only [Pi.add_apply,EulerPacketInitial.initialPartial,sum_range_succ, frequency_shift,initialTailInput,add_assoc] theorem initialDataLimit_Hm (s : ℕ) : Tendsto (fun n => derivativeSum s ((fun x => (P n).state.evolution.velocity (0,x))-(initialDataLimit P hq hB).field)) atTop (𝓝 0) := by have hh := EulerPacketInitial.fullInitialLimit_Hm A J (by have h := S.stage_large; omega) (sourceConstant 4) 320 (sourceConstant_pos 4) (by norm_num) 20 1000 X (S.sequence_one 1) (initialTail_parameter P hq hB) (initialTail_scale P hq hB) (initialTail_sigma P hq hB) (initialTail_four (S := S)) (initialTail_frequency P hq hB) (initialBase P) s have ht : Tendsto (fun n => derivativeSum s ((fun x => (P (1+n)).state.evolution.velocity (0,x))-(initialDataLimit P hq hB).field)) atTop (𝓝 0) := by simpa only [initial_velocity_partial P hq hB hstep,initialDataLimit] using hh apply (tendsto_add_atTop_iff_nat 1).mp have heq : (fun n => derivativeSum s ((fun x => (P (n+1)).state.evolution.velocity (0,x))-(initialDataLimit P hq hB).field)) = (fun n => derivativeSum s ((fun x => (P (1+n)).state.evolution.velocity (0,x))-(initialDataLimit P hq hB).field)) := by funext n rw [Nat.add_comm n 1] rw [heq] exact ht theorem initialDataLimit_no_euler : ¬ ∃ U : EulerOrdinarySobolev.Evolution (baseHorizon S.J S.X) (baseHorizon_pos S.J S.j_one S.x_pos).le, (U.velocity ⟨0,le_rfl,(baseHorizon_pos S.J S.j_one S.x_pos).le⟩).field= (initialDataLimit P hq hB).field := no_euler_evolution_of_initial_H3 P (initialDataLimit P hq hB).field (initialDataLimit_Hm P hq hB hstep 3) end EulerPacketInduction.Stage