import Euler.FrameWronskian import Euler.CurlMatrixSymmetry import Euler.ParentEulerState import Euler.ParentPacketHessianSymmetry /-! Zero initial vorticity remains zero along every genuine finite-stage particle trajectory. The proof uses the conserved antisymmetric pairing of the particle frame and its time derivative. -/ /-! ## From `Euler/PacketPressureSymmetry.lean` The text of `Euler/PacketPressureSymmetry.lean`, folded into this file, which was its only importer. -/ section /-! The scalar pressure of a finite packet evolution is spatially smooth because its actual gradient is smooth. Its curvature operator is therefore symmetric, as required by the particle-map vorticity transport argument. -/ noncomputable section namespace EulerParentPacketFrames.Evolution open Set InnerProductSpace EulerSmoothLimit open scoped ContDiff variable {A : Parent} (E : Evolution A) theorem pressure_contDiff (t : Icc (0 : ℝ) A.T) : ContDiff ℝ ∞ (fun x => E.pressure (t,x)) := by apply contDiff_infty_iff_fderiv.mpr refine ⟨E.pressure_differentiable t,?_⟩ have he : fderiv ℝ (fun x => E.pressure (t,x)) = (toDual ℝ Space) ∘ E.force t := by funext x rw [Function.comp_apply,← E.pressure_gradient t x,toDual_gradient] rw [he] exact (toDual ℝ Space).contDiff.comp (E.force_smooth t) include E in theorem curvature_symmetric (t : Icc (0 : ℝ) A.T) (x : Space) : (A.curvature.field t x).IsSymmetric := by rw [E.curvature_eq] have hf : E.force t = gradient (fun y => E.pressure (t,y)) := funext (fun y => (E.pressure_gradient t y).symm) rw [hf] exact hessian_isSymmetric _ ((E.pressure_contDiff t).of_le (by simp)) _ end EulerParentPacketFrames.Evolution end end noncomputable section namespace EulerParentPacketFrames.Evolution open Set InnerProductSpace EulerSmoothLimit EulerMeanBoundary EulerVectorCalculus EulerMeanCutoffCurl EulerVolterraConvolution EulerPacketCofactor Euler.ComparatorBridge open scoped ContDiff variable {A : Parent} (E : Evolution A) include E in theorem strain_symmetric_along_label (x : Space) (hzero : (A.strain.field A.zeroTime x).IsSymmetric) (t : Icc (0 : ℝ) A.T) : (A.strain.field t x).IsSymmetric := by let F : ℝ → EndSpace := fun r => A.frame.field (projIcc 0 A.T A.T_pos.le r) x let G : ℝ → EndSpace := fun r => A.first.field (projIcc 0 A.T A.T_pos.le r) x let H : ℝ → EndSpace := fun r => A.second.field (projIcc 0 A.T A.T_pos.le r) x let B : ℝ → EndSpace := fun r => A.curvature.field (projIcc 0 A.T A.T_pos.le r) x let S : ℝ → EndSpace := fun r => A.strain.field (projIcc 0 A.T A.T_pos.le r) x let J : ℝ → EndSpace := fun r => A.inverse.field (projIcc 0 A.T A.T_pos.le r) x have hF (r : ℝ) (hr : r ∈ Icc 0 A.T) : HasDerivWithinAt F (G r) (Icc 0 A.T) r := by simpa only [F,G,SmoothTimeField.realField,extendPath, projIcc_of_mem A.T_pos.le hr] using A.frame_time ⟨r,hr⟩ x have hG (r : ℝ) (hr : r ∈ Icc 0 A.T) : HasDerivWithinAt G (H r) (Icc 0 A.T) r := by simpa only [G,H,SmoothTimeField.realField,extendPath, projIcc_of_mem A.T_pos.le hr] using A.first_time ⟨r,hr⟩ x have hh := strain_symmetric_of_frame_wronskian F G H B S J A.T A.T_pos hF hG (fun r _ v => A.second_equation (projIcc 0 A.T A.T_pos.le r) x v) (fun r _ => E.curvature_symmetric (projIcc 0 A.T A.T_pos.le r) x) (fun r _ v => A.strain_equation (projIcc 0 A.T A.T_pos.le r) x v) (fun r _ v => A.inverse_right (projIcc 0 A.T A.T_pos.le r) x v) (by intro v w simpa only [S,Parent.zeroTime,projIcc_of_mem A.T_pos.le (show (0 : ℝ) ∈ Icc 0 A.T from ⟨le_rfl,A.T_pos.le⟩)] using hzero v w) t t.property intro v w simpa only [S,projIcc_of_mem A.T_pos.le t.property] using hh v w /-- This statement needs only the actual parent Euler evolution, with no additional Sobolev regularity or support hypotheses. -/ theorem curl_eq_zero_along_position (a : Space) (hzero : vectorCurl (fun x => E.velocity (0,x)) a = 0) (t : Icc (0 : ℝ) A.T) : vectorCurl (fun x => E.velocity (t,x)) (A.position t a) = 0 := by have hscale : A.ell • (A.ell⁻¹ • a) = a := by rw [smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] have hinit : (A.strain.field A.zeroTime (A.ell⁻¹ • a)).IsSymmetric := by rw [E.strain_eq,hscale,A.position_initial] apply (curlMatrix_eq_zero_iff_isSymmetric _).mp rw [← vectorCurl_eq_matrix _ a ((E.velocity_smooth A.zeroTime).differentiable (by simp) a)] exact hzero have hsym := E.strain_symmetric_along_label (A.ell⁻¹ • a) hinit t rw [E.strain_eq,hscale] at hsym rw [vectorCurl_eq_matrix _ _ ((E.velocity_smooth t).differentiable (by simp) _)] exact (curlMatrix_eq_zero_iff_isSymmetric _).mpr hsym end EulerParentPacketFrames.Evolution