Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import Euler.ParentState |
| 2 | import Euler.ParentPacketStrainEvolution |
| 3 | import Euler.ParentPacketHessianSymmetry |
| 4 | import Euler.PacketSourceGeometryData |
| 5 | import Euler.PacketForwardFactorization |
| 6 | |
| 7 | /-! Geometric renewal between two actual Euler states. Their spatial |
| 8 | regularity, particle velocity laws and fixed origin are supplied by the |
| 9 | states themselves; only the quantitative packet expansion is an input. -/ |
| 10 | |
| 11 | /-! ## From `Euler/ParentPacketGeometryFrame.lean` |
| 12 | |
| 13 | The text of `Euler/ParentPacketGeometryFrame.lean`, folded into this file, which was its only importer. -/ |
| 14 | |
| 15 | section |
| 16 | |
| 17 | /-! Actual parent source trajectories supply the older geometric frame. |
| 18 | Its matrix derivative is derived from the parent curvature, and its ray |
| 19 | and primary velocity are the constructed source trajectories. -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | namespace EulerParentPacketFrames |
| 24 | |
| 25 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients |
| 26 | EulerTransversePacketProvider EulerTransverseFrameCoordinates EulerVolterraConvolution |
| 27 | EulerPacketSourceGeometry EulerPacketNormalizedPrimary EulerPacketMovingFrame |
| 28 | EulerPacketPrimaryShear EulerPacketRay |
| 29 | open scoped ContDiff |
| 30 | |
| 31 | namespace Parent |
| 32 | |
| 33 | variable (G : Parent) |
| 34 | |
| 35 | def sourceNormal (m : Space) (t : ℝ) : Space := |
| 36 | (G.inverse.realField G.T G.T_pos.le t 0).adjoint m |
| 37 | |
| 38 | theorem sourceNormal_apply (m : Space) (t : Icc (0 : ℝ) G.T) : |
| 39 | G.sourceNormal m t = (G.inverse.field t 0).adjoint m := by |
| 40 | simp only [sourceNormal,SmoothTimeField.realField_apply] |
| 41 | |
| 42 | theorem sourceNormal_equation (m : Space) (t : Icc (0 : ℝ) G.T) : |
| 43 | HasDerivWithinAt (G.sourceNormal m) |
| 44 | (-(G.centerStrain t).adjoint (G.sourceNormal m t)) (Icc (0 : ℝ) G.T) t := by |
| 45 | have h := (EulerTransverseBoundedFrame.normalMap m).hasFDerivAt.comp_hasDerivWithinAt |
| 46 | (t : ℝ) (G.inverse_time t 0) |
| 47 | change HasDerivWithinAt (G.sourceNormal m) ((G.inverseDerivative.field t 0).adjoint m) |
| 48 | (Icc (0 : ℝ) G.T) t at h |
| 49 | apply h.congr_deriv |
| 50 | rw [G.inverseDerivative_apply,G.sourceNormal_apply] |
| 51 | have hb : G.centerStrain t = G.strain.field t 0 := by |
| 52 | simp only [centerStrain,extendPath,projIcc_of_mem G.T_pos.le t.property] |
| 53 | rw [hb,G.strain_apply] |
| 54 | simp only [map_neg,adjoint_comp,neg_apply,comp_apply] |
| 55 | |
| 56 | theorem sourceNormal_ne_zero (m : Space) (hm : m ≠ 0) (t : Icc (0 : ℝ) G.T) : |
| 57 | G.sourceNormal m t ≠ 0 := by |
| 58 | have hi : (G.inverse.field t 0).comp (G.frame.field t 0) = ContinuousLinearMap.id ℝ Space := by |
| 59 | apply ContinuousLinearMap.ext |
| 60 | intro v |
| 61 | exact G.inverse_left t 0 v |
| 62 | have hc := congrArg (fun A : Space →L[ℝ] Space => A.adjoint m) hi |
| 63 | rw [adjoint_comp,comp_apply,adjoint_id,id_apply] at hc |
| 64 | intro hz |
| 65 | rw [← G.sourceNormal_apply m t,hz,map_zero] at hc |
| 66 | exact hm hc.symm |
| 67 | |
| 68 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 69 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) |
| 70 | (S : Set Space) (hS : IsCompact S) |
| 71 | |
| 72 | def sourceVelocity (η : U) (t : ℝ) : Space := |
| 73 | EulerPacketForwardFactorization.uncutVelocity (G.transverseData m hm R S hS) η t 0 |
| 74 | |
| 75 | omit [CompleteSpace U] in |
| 76 | theorem source_normal_eq (t : Icc (0 : ℝ) G.T) : |
| 77 | (G.transverseData m hm R S hS).normal.field t 0 = G.sourceNormal m t := by |
| 78 | rw [G.sourceNormal_apply] |
| 79 | rfl |
| 80 | |
| 81 | omit [CompleteSpace U] in |
| 82 | theorem source_strain_eq (t : Icc (0 : ℝ) G.T) : |
| 83 | (G.transverseData m hm R S hS).M.field t 0 = G.centerStrain t := by |
| 84 | simp only [centerStrain,extendPath,projIcc_of_mem G.T_pos.le t.property] |
| 85 | rfl |
| 86 | |
| 87 | theorem sourceVelocity_equation (η : U) (t : Icc (0 : ℝ) G.T) : |
| 88 | HasDerivWithinAt (G.sourceVelocity m hm R S hS η) |
| 89 | (-(G.centerStrain t) (G.sourceVelocity m hm R S hS η t)+ |
| 90 | (2*⟪G.sourceNormal m t,(G.centerStrain t) (G.sourceVelocity m hm R S hS η t)⟫_ℝ/ |
| 91 | ‖G.sourceNormal m t‖^2) • G.sourceNormal m t) (Icc (0 : ℝ) G.T) t := by |
| 92 | have h := EulerPacketForwardFactorization.uncutVelocity_equation |
| 93 | (G.transverseData m hm R S hS) η t 0 |
| 94 | erw [EulerPacketPrimaryFactorization.physicalGenerator_apply, |
| 95 | G.source_normal_eq m hm R S hS,G.source_strain_eq m hm R S hS] at h |
| 96 | exact h |
| 97 | |
| 98 | theorem sourceVelocity_ne_zero (η : U) (hη : η ≠ 0) (t : Icc (0 : ℝ) G.T) : |
| 99 | G.sourceVelocity m hm R S hS η t ≠ 0 := |
| 100 | EulerPacketForwardFactorization.uncutVelocity_ne_zero (G.transverseData m hm R S hS) η hη t 0 |
| 101 | |
| 102 | theorem sourceVelocity_tangent (η : U) (t : Icc (0 : ℝ) G.T) : |
| 103 | ⟪G.sourceNormal m t,G.sourceVelocity m hm R S hS η t⟫_ℝ = 0 := by |
| 104 | rw [← G.source_normal_eq m hm R S hS] |
| 105 | exact EulerPacketForwardFactorization.uncutVelocity_tangent (G.transverseData m hm R S hS) η t 0 |
| 106 | |
| 107 | /-- Both primary branches are the same actual homogeneous propagator |
| 108 | after inserting their constructed initial coordinate. -/ |
| 109 | theorem joined_sourceVelocity (s : ℝ) (hs : 0 < s) (hsT : s < G.T) |
| 110 | (B : HistoryData ((G.transverseData m hm R S hS).initial s hs hsT.le)) (ξ : U) (t : ℝ) : |
| 111 | G.sourceVelocity m hm R S hS (B.coefficients.labelCoordinate 0 ξ ⟨0,le_rfl,hs.le⟩) t = |
| 112 | EulerPacketPrimaryFactorization.uncutVelocity s hs hsT B ξ t 0 := rfl |
| 113 | |
| 114 | theorem joined_initialCoordinate_ne_zero (s : ℝ) (hs : 0 < s) (hsT : s < G.T) |
| 115 | (B : HistoryData ((G.transverseData m hm R S hS).initial s hs hsT.le)) (ξ : U) (hξ : ξ ≠ 0) : |
| 116 | B.coefficients.labelCoordinate 0 ξ ⟨0,le_rfl,hs.le⟩ ≠ 0 := by |
| 117 | intro hz |
| 118 | have hn := EulerPacketPrimaryFactorization.uncutVelocity_ne_zero s hs hsT B ξ hξ |
| 119 | ⟨0,le_rfl,G.T_pos.le⟩ 0 |
| 120 | have hv := G.joined_sourceVelocity m hm R S hS s hs hsT B ξ 0 |
| 121 | rw [hz] at hv |
| 122 | have hv0 : G.sourceVelocity m hm R S hS 0 0 = 0 := by |
| 123 | unfold sourceVelocity |
| 124 | rw [EulerPacketForwardFactorization.uncutVelocity_initial,map_zero] |
| 125 | exact hn (hv.symm.trans hv0) |
| 126 | |
| 127 | variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 128 | (D : Data V) (hTime : D.T = G.T) (τ : ℝ) (hτ : 0 ≤ τ) |
| 129 | |
| 130 | /-- The only error input is the literal center derivative estimate for |
| 131 | the already constructed perturbation. No ray, velocity or matrix ODE |
| 132 | is supplied as a hypothesis. -/ |
| 133 | def geometryFrameOfCenterExpansion (η : U) (hη : η ≠ 0) |
| 134 | (w : ℝ → Space → Space) (c CM CH K error : ℝ) |
| 135 | (hCM : 0 ≤ CM) (hK : 1 ≤ K) (he : 0 ≤ error) |
| 136 | (hMK : CM ≤ K) (hHK : CM^2+CH ≤ K^2) |
| 137 | (hM : ∀ t ∈ Icc τ D.T, ‖G.centerStrain t‖ ≤ CM) |
| 138 | (hH : ∀ t ∈ Icc τ D.T, ‖G.centerCurvature t‖ ≤ CH) |
| 139 | (hupdate : ∀ t : Icc (0 : ℝ) D.T, |
| 140 | D.M.field t 0 = G.centerStrain t+fderiv ℝ (w t) 0) |
| 141 | (hpacket : ∀ t ∈ Icc τ D.T, |
| 142 | ‖fderiv ℝ (w t) 0-c • rankOne ℝ (G.sourceVelocity m hm R S hS η t) (G.sourceNormal m t)‖ ≤ error) : |
| 143 | ParentFrame D τ where |
| 144 | B := G.centerStrain |
| 145 | B₁ := G.centerStrainDerivative |
| 146 | m := G.sourceNormal m |
| 147 | v := G.sourceVelocity m hm R S hS η |
| 148 | c := c |
| 149 | G := K |
| 150 | error := error |
| 151 | G_lower := hK |
| 152 | error_nonneg := he |
| 153 | B_derivative t ht := by |
| 154 | rw [hTime] at ht ⊢ |
| 155 | exact G.centerStrain_derivative τ hτ t ht |
| 156 | ray_equation t ht := by |
| 157 | have ht0 : t ∈ Icc (0 : ℝ) G.T := ⟨hτ.trans ht.1,by simpa only [hTime] using ht.2⟩ |
| 158 | exact (G.sourceNormal_equation m ⟨t,ht0⟩).mono |
| 159 | (fun r hr => ⟨hτ.trans hr.1,by simpa only [hTime] using hr.2⟩) |
| 160 | velocity_equation t ht := by |
| 161 | have ht0 : t ∈ Icc (0 : ℝ) G.T := ⟨hτ.trans ht.1,by simpa only [hTime] using ht.2⟩ |
| 162 | exact (G.sourceVelocity_equation m hm R S hS η ⟨t,ht0⟩).mono |
| 163 | (fun r hr => ⟨hτ.trans hr.1,by simpa only [hTime] using hr.2⟩) |
| 164 | ray_nonzero t ht := by |
| 165 | have hm0 : m ≠ 0 := by intro h; simp [h] at hm |
| 166 | exact G.sourceNormal_ne_zero m hm0 ⟨t,hτ.trans ht.1,by simpa only [hTime] using ht.2⟩ |
| 167 | velocity_nonzero t ht := |
| 168 | G.sourceVelocity_ne_zero m hm R S hS η hη ⟨t,hτ.trans ht.1,by simpa only [hTime] using ht.2⟩ |
| 169 | tangent t ht := |
| 170 | G.sourceVelocity_tangent m hm R S hS η ⟨t,hτ.trans ht.1,by simpa only [hTime] using ht.2⟩ |
| 171 | B_bound t ht := (hM t ht).trans hMK |
| 172 | B₁_bound t ht := by |
| 173 | rw [hTime] at hM hH ht |
| 174 | exact G.centerStrainDerivative_bound τ CM CH K hτ hCM hM hH hHK t ht |
| 175 | remainder_bound t ht := by |
| 176 | have htD : t ∈ Icc (0 : ℝ) D.T := ⟨hτ.trans ht.1,ht.2⟩ |
| 177 | have htG : t ∈ Icc (0 : ℝ) G.T := by simpa only [hTime] using htD |
| 178 | have hm0 : m ≠ 0 := by intro h; simp [h] at hm |
| 179 | have hn := G.sourceNormal_ne_zero m hm0 ⟨t,htG⟩ |
| 180 | have hv := G.sourceVelocity_ne_zero m hm R S hS η hη ⟨t,htG⟩ |
| 181 | have hc := rankOne_normalized c (G.sourceVelocity m hm R S hS η t) (G.sourceNormal m t) hv hn |
| 182 | have hu := hupdate ⟨t,htD⟩ |
| 183 | rw [show D.clamp t = ⟨t,htD⟩ from Data.clamp_coe D ⟨t,htD⟩,hu, |
| 184 | add_sub_cancel_left,primaryShear,← hc] |
| 185 | exact hpacket t ht |
| 186 | |
| 187 | end Parent |
| 188 | end EulerParentPacketFrames |
| 189 | end |
| 190 | |
| 191 | end |
| 192 | |
| 193 | /-! ## From `Euler/ParentPacketPhysicalFrame.lean` |
| 194 | |
| 195 | The text of `Euler/ParentPacketPhysicalFrame.lean`, folded into this file, which was its only importer. -/ |
| 196 | |
| 197 | section |
| 198 | |
| 199 | /-! The next source's center expansion follows from the actual physical |
| 200 | velocity update. Odd particle displacements fix the origin, and the two |
| 201 | literal velocity laws identify the source matrices there. -/ |
| 202 | |
| 203 | noncomputable section |
| 204 | |
| 205 | namespace EulerParentPacketFrames |
| 206 | |
| 207 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients |
| 208 | EulerTransversePacketProvider EulerTransverseFrameCoordinates EulerVolterraConvolution |
| 209 | EulerPacketSourceGeometry |
| 210 | open scoped ContDiff |
| 211 | |
| 212 | namespace Parent |
| 213 | |
| 214 | variable (G : Parent) |
| 215 | |
| 216 | theorem position_zero_of_odd |
| 217 | (hodd : ∀ t, Function.Odd (G.displacement.field t : Space → Space)) |
| 218 | (t : Icc (0 : ℝ) G.T) : G.position t 0=0 := by |
| 219 | have hz : G.displacement.field t 0 = 0 := by |
| 220 | ext i |
| 221 | have h := congrArg (fun v : Space => v i) (hodd t 0) |
| 222 | simp only [neg_zero] at h |
| 223 | change (G.displacement.field t 0) i = -(G.displacement.field t 0) i at h |
| 224 | change (G.displacement.field t 0) i = 0 |
| 225 | linarith |
| 226 | simp only [position,hz,zero_add] |
| 227 | |
| 228 | variable (N : Parent) (hTime : N.T=G.T) |
| 229 | (u w : ℝ → Space → Space) |
| 230 | (hu : ∀ (t : Icc (0 : ℝ) G.T) x, DifferentiableAt ℝ (u t) x) |
| 231 | (hw : ∀ (t : Icc (0 : ℝ) N.T) x, DifferentiableAt ℝ (w t) x) |
| 232 | (hGvelocity : ∀ t x, G.velocity.field t x=u t (G.position t x)) |
| 233 | (hNvelocity : ∀ t x, N.velocity.field t x=u t (N.position t x)+w t (N.position t x)) |
| 234 | (hGodd : ∀ t, Function.Odd (G.displacement.field t : Space → Space)) |
| 235 | (hNodd : ∀ t, Function.Odd (N.displacement.field t : Space → Space)) |
| 236 | |
| 237 | include hTime hu hw hGvelocity hNvelocity hGodd hNodd |
| 238 | |
| 239 | theorem center_update_of_odd (t : Icc (0 : ℝ) N.T) : |
| 240 | N.strain.field t 0 = G.centerStrain t+fderiv ℝ (w t) 0 := by |
| 241 | let tg : Icc (0 : ℝ) G.T := ⟨t,by simpa only [hTime] using t.property⟩ |
| 242 | have hsum : ∀ (s : Icc (0 : ℝ) N.T) x, DifferentiableAt ℝ (fun y => u s y+w s y) x := by |
| 243 | intro s x |
| 244 | exact (hu ⟨s,by simpa only [hTime] using s.property⟩ x).add (hw s x) |
| 245 | have hn := N.strain_physical (fun s y => u s y+w s y) hsum hNvelocity t 0 |
| 246 | rw [smul_zero,N.position_zero_of_odd hNodd] at hn |
| 247 | have hg := G.strain_physical (fun s => u s) hu hGvelocity tg 0 |
| 248 | rw [smul_zero,G.position_zero_of_odd hGodd] at hg |
| 249 | have hb : G.centerStrain t=G.strain.field tg 0 := by |
| 250 | change G.strain.realField G.T G.T_pos.le (tg : ℝ) 0 = G.strain.field tg 0 |
| 251 | exact G.strain.realField_apply G.T G.T_pos.le tg 0 |
| 252 | rw [hn,hb,hg] |
| 253 | exact fderiv_fun_add (hu tg 0) (hw t 0) |
| 254 | |
| 255 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 256 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) |
| 257 | (S : Set Space) (hS : IsCompact S) |
| 258 | {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 259 | (mNew : Space) (hmNew : ‖mNew‖=1) (RNew : V ≃ₗᵢ[ℝ] referencePlane mNew) |
| 260 | (SNew : Set Space) (hSNew : IsCompact SNew) |
| 261 | |
| 262 | /-- Concrete old/new-parent factory. The source matrix split is derived |
| 263 | from the two physical velocity identities. The remaining quantitative |
| 264 | inputs are the preceding packet's center shear error and parent low |
| 265 | norm bounds, as used by the geometric induction. -/ |
| 266 | def geometryFrameOfPhysicalUpdate (τ : ℝ) (hτ : 0 ≤ τ) |
| 267 | (η : U) (hη : η ≠ 0) (c CM CH K error : ℝ) |
| 268 | (hCM : 0 ≤ CM) (hK : 1 ≤ K) (he : 0 ≤ error) |
| 269 | (hMK : CM ≤ K) (hHK : CM^2+CH ≤ K^2) |
| 270 | (hM : ∀ t ∈ Icc τ N.T, ‖G.centerStrain t‖ ≤ CM) |
| 271 | (hH : ∀ t ∈ Icc τ N.T, ‖G.centerCurvature t‖ ≤ CH) |
| 272 | (hpacket : ∀ t ∈ Icc τ N.T, |
| 273 | ‖fderiv ℝ (w t) 0-c • rankOne ℝ (G.sourceVelocity m hm R S hS η t) (G.sourceNormal m t)‖ ≤ error) : |
| 274 | ParentFrame (N.transverseData mNew hmNew RNew SNew hSNew) τ := |
| 275 | G.geometryFrameOfCenterExpansion m hm R S hS |
| 276 | (N.transverseData mNew hmNew RNew SNew hSNew) hTime τ hτ η hη w c CM CH K error |
| 277 | hCM hK he hMK hHK hM hH |
| 278 | (G.center_update_of_odd N hTime u w hu hw hGvelocity hNvelocity hGodd hNodd) hpacket |
| 279 | |
| 280 | end Parent |
| 281 | end EulerParentPacketFrames |
| 282 | end |
| 283 | |
| 284 | end |
| 285 | |
| 286 | /-! ## From `Euler/ParentPacketPrimaryCenter.lean` |
| 287 | |
| 288 | The text of `Euler/ParentPacketPrimaryCenter.lean`, folded into this file, which was its only importer. -/ |
| 289 | |
| 290 | section |
| 291 | |
| 292 | /-! The literal primary terms in source (20) initialize the next geometric |
| 293 | parent frame. The forward coordinate is prescribed; the joined coordinate |
| 294 | is the genuine stationary history trace and is proved nonzero. -/ |
| 295 | |
| 296 | noncomputable section |
| 297 | |
| 298 | namespace EulerParentPacketFrames |
| 299 | |
| 300 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 301 | EulerTransversePacketProvider EulerTransverseFrameCoordinates EulerPacketSourceGeometry |
| 302 | EulerPeriodicProfile |
| 303 | open scoped ContDiff |
| 304 | |
| 305 | namespace Parent |
| 306 | |
| 307 | variable (G : Parent) |
| 308 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 309 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) |
| 310 | (S : Set Space) (hS : IsCompact S) |
| 311 | |
| 312 | theorem forward_primary_center_term (η : U) (δ : ℝ) (hδ : 0 < δ) (α k : ℝ) |
| 313 | (t : Icc (0 : ℝ) G.T) (Y : Space → Space) (hY : Y 0=0) : |
| 314 | (α*deriv (profile δ) (k*⟪m,Y 0⟫_ℝ)) • |
| 315 | rankOne ℝ (EulerPacketForwardFactorization.canonicalVelocity |
| 316 | (G.transverseData m hm R S hS) η t (Y 0)) |
| 317 | ((G.transverseData m hm R S hS).normal.field t (Y 0)) = |
| 318 | (α/δ) • rankOne ℝ (G.sourceVelocity m hm R S hS η t) (G.sourceNormal m t) := by |
| 319 | rw [hY] |
| 320 | simp only [inner_zero_right,mul_zero,profile_deriv_zero δ hδ, |
| 321 | EulerPacketForwardFactorization.canonicalVelocity,innerCutoff_zero,one_smul,div_eq_mul_inv] |
| 322 | rw [G.source_normal_eq m hm R S hS] |
| 323 | rfl |
| 324 | |
| 325 | theorem joined_primary_center_term |
| 326 | (s : ℝ) (hs : 0 < s) (hsT : s < G.T) |
| 327 | (B : HistoryData ((G.transverseData m hm R S hS).initial s hs hsT.le)) |
| 328 | (ξ : U) (hcut : tsupport innerCutoff ⊆ S) |
| 329 | (δ : ℝ) (hδ : 0 < δ) (α k : ℝ) |
| 330 | (t : Icc (0 : ℝ) G.T) (Y : Space → Space) (hY : Y 0=0) : |
| 331 | (α*deriv (profile δ) (k*⟪m,Y 0⟫_ℝ)) • |
| 332 | rankOne ℝ (EulerPacketPrimaryFactorization.canonicalVelocity s hs hsT B ξ hcut t (Y 0)) |
| 333 | ((G.transverseData m hm R S hS).normal.field t (Y 0)) = |
| 334 | (α/δ) • rankOne ℝ |
| 335 | (G.sourceVelocity m hm R S hS (B.coefficients.labelCoordinate 0 ξ ⟨0,le_rfl,hs.le⟩) t) |
| 336 | (G.sourceNormal m t) := by |
| 337 | rw [hY] |
| 338 | simp only [inner_zero_right,mul_zero,profile_deriv_zero δ hδ,div_eq_mul_inv] |
| 339 | erw [EulerPacketPrimaryFactorization.canonicalVelocity_eq_cutoff_uncut, |
| 340 | innerCutoff_zero,one_smul,G.source_normal_eq m hm R S hS, |
| 341 | G.joined_sourceVelocity m hm R S hS] |
| 342 | |
| 343 | variable (N : Parent) (hTime : N.T=G.T) |
| 344 | (u w : ℝ → Space → Space) |
| 345 | (hu : ∀ (t : Icc (0 : ℝ) G.T) x, DifferentiableAt ℝ (u t) x) |
| 346 | (hw : ∀ (t : Icc (0 : ℝ) N.T) x, DifferentiableAt ℝ (w t) x) |
| 347 | (hGvelocity : ∀ t x, G.velocity.field t x=u t (G.position t x)) |
| 348 | (hNvelocity : ∀ t x, N.velocity.field t x=u t (N.position t x)+w t (N.position t x)) |
| 349 | (hGodd : ∀ t, Function.Odd (G.displacement.field t : Space → Space)) |
| 350 | (hNodd : ∀ t, Function.Odd (N.displacement.field t : Space → Space)) |
| 351 | {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 352 | (mNew : Space) (hmNew : ‖mNew‖=1) (RNew : V ≃ₗᵢ[ℝ] referencePlane mNew) |
| 353 | (SNew : Set Space) (hSNew : IsCompact SNew) |
| 354 | (τ : ℝ) (hτ : 0 ≤ τ) |
| 355 | (CM CH K error : ℝ) (hCM : 0 ≤ CM) (hK : 1 ≤ K) (he : 0 ≤ error) |
| 356 | (hMK : CM ≤ K) (hHK : CM^2+CH ≤ K^2) |
| 357 | (hM : ∀ t ∈ Icc τ N.T, ‖G.centerStrain t‖ ≤ CM) |
| 358 | (hH : ∀ t ∈ Icc τ N.T, ‖G.centerCurvature t‖ ≤ CH) |
| 359 | (Y : Icc (0 : ℝ) G.T → Space → Space) (hY : ∀ t, Y t 0=0) |
| 360 | (δ : ℝ) (hδ : 0 < δ) (α k : ℝ) |
| 361 | |
| 362 | def forwardGeometryFrame (η : U) (hη : η ≠ 0) |
| 363 | (hsource20 : ∀ t : Icc (0 : ℝ) G.T, τ ≤ (t : ℝ) → |
| 364 | ‖fderiv ℝ (w t) 0-(α*deriv (profile δ) (k*⟪m,Y t 0⟫_ℝ)) • |
| 365 | rankOne ℝ (EulerPacketForwardFactorization.canonicalVelocity |
| 366 | (G.transverseData m hm R S hS) η t (Y t 0)) |
| 367 | ((G.transverseData m hm R S hS).normal.field t (Y t 0))‖ ≤ error) : |
| 368 | ParentFrame (N.transverseData mNew hmNew RNew SNew hSNew) τ := by |
| 369 | apply G.geometryFrameOfPhysicalUpdate N hTime u w hu hw hGvelocity hNvelocity hGodd hNodd |
| 370 | m hm R S hS mNew hmNew RNew SNew hSNew τ hτ η hη (α/δ) CM CH K error |
| 371 | hCM hK he hMK hHK hM hH |
| 372 | intro t ht |
| 373 | have htG : t ∈ Icc (0 : ℝ) G.T := ⟨hτ.trans ht.1,by simpa only [hTime] using ht.2⟩ |
| 374 | have h := hsource20 ⟨t,htG⟩ ht.1 |
| 375 | rw [G.forward_primary_center_term m hm R S hS η δ hδ α k ⟨t,htG⟩ (Y ⟨t,htG⟩) (hY _)] at h |
| 376 | exact h |
| 377 | |
| 378 | def joinedGeometryFrame |
| 379 | (s : ℝ) (hs : 0 < s) (hsT : s < G.T) |
| 380 | (B : HistoryData ((G.transverseData m hm R S hS).initial s hs hsT.le)) |
| 381 | (ξ : U) (hξ : ξ ≠ 0) (hcut : tsupport innerCutoff ⊆ S) |
| 382 | (hsource20 : ∀ t : Icc (0 : ℝ) G.T, τ ≤ (t : ℝ) → |
| 383 | ‖fderiv ℝ (w t) 0-(α*deriv (profile δ) (k*⟪m,Y t 0⟫_ℝ)) • |
| 384 | rankOne ℝ (EulerPacketPrimaryFactorization.canonicalVelocity s hs hsT B ξ hcut t (Y t 0)) |
| 385 | ((G.transverseData m hm R S hS).normal.field t (Y t 0))‖ ≤ error) : |
| 386 | ParentFrame (N.transverseData mNew hmNew RNew SNew hSNew) τ := by |
| 387 | apply G.geometryFrameOfPhysicalUpdate N hTime u w hu hw hGvelocity hNvelocity hGodd hNodd |
| 388 | m hm R S hS mNew hmNew RNew SNew hSNew τ hτ |
| 389 | (B.coefficients.labelCoordinate 0 ξ ⟨0,le_rfl,hs.le⟩) |
| 390 | (G.joined_initialCoordinate_ne_zero m hm R S hS s hs hsT B ξ hξ) (α/δ) CM CH K error |
| 391 | hCM hK he hMK hHK hM hH |
| 392 | intro t ht |
| 393 | have htG : t ∈ Icc (0 : ℝ) G.T := ⟨hτ.trans ht.1,by simpa only [hTime] using ht.2⟩ |
| 394 | have h := hsource20 ⟨t,htG⟩ ht.1 |
| 395 | rw [G.joined_primary_center_term m hm R S hS s hs hsT B ξ hcut δ hδ α k |
| 396 | ⟨t,htG⟩ (Y ⟨t,htG⟩) (hY _)] at h |
| 397 | exact h |
| 398 | |
| 399 | end Parent |
| 400 | end EulerParentPacketFrames |
| 401 | end |
| 402 | |
| 403 | end |
| 404 | |
| 405 | noncomputable section |
| 406 | |
| 407 | namespace EulerParentPacketFrames.SmoothState |
| 408 | |
| 409 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 410 | EulerTransverseFrameCoordinates EulerTransversePacketProvider |
| 411 | EulerPacketSourceGeometry EulerSpatialCutoffs EulerPeriodicProfile |
| 412 | open scoped ContDiff |
| 413 | |
| 414 | variable {A N : Parent} (S : SmoothState A) (T : SmoothState N) (hTime : N.T=A.T) |
| 415 | |
| 416 | def velocityIncrement (t : ℝ) (x : Space) : Space := |
| 417 | T.evolution.velocity (t,x)-S.evolution.velocity (t,x) |
| 418 | |
| 419 | include hTime in |
| 420 | theorem velocityIncrement_smooth (t : Icc (0 : ℝ) N.T) : |
| 421 | ContDiff ℝ ∞ (S.velocityIncrement T t) := by |
| 422 | let ta : Icc (0 : ℝ) A.T := ⟨t,by simpa only [hTime] using t.property⟩ |
| 423 | exact (T.evolution.velocity_smooth t).sub (S.evolution.velocity_smooth ta) |
| 424 | |
| 425 | theorem next_velocity (t : Icc (0 : ℝ) N.T) (x : Space) : |
| 426 | N.velocity.field t x=S.evolution.velocity (t,N.position t x)+ |
| 427 | S.velocityIncrement T t (N.position t x) := by |
| 428 | rw [T.evolution.velocity_match] |
| 429 | unfold velocityIncrement |
| 430 | module |
| 431 | |
| 432 | theorem normalized_inverse_zero (t : Icc (0 : ℝ) A.T) : |
| 433 | S.evolution.inverse.normalized t 0=0 := by |
| 434 | simp only [ParticleInverse.normalized,Parent.packetInverse, |
| 435 | projIcc_of_mem A.T_pos.le t.property,smul_zero,S.evolution.inverse.zero S.odd t] |
| 436 | |
| 437 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 438 | (m : Space) (hm : ‖m‖=1) (J : U ≃ₗᵢ[ℝ] referencePlane m) |
| 439 | (support : Set Space) (hSupport : IsCompact support) |
| 440 | {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 441 | (mNext : Space) (hmNext : ‖mNext‖=1) (JNext : V ≃ₗᵢ[ℝ] referencePlane mNext) |
| 442 | (supportNext : Set Space) (hSupportNext : IsCompact supportNext) |
| 443 | (τ : ℝ) (hτ : 0 ≤ τ) (CM CH K error : ℝ) |
| 444 | (hCM : 0 ≤ CM) (hK : 1 ≤ K) (he : 0 ≤ error) |
| 445 | (hMK : CM ≤ K) (hHK : CM^2+CH ≤ K^2) |
| 446 | (hM : ∀ t ∈ Icc τ N.T, ‖A.centerStrain t‖ ≤ CM) |
| 447 | (hH : ∀ t ∈ Icc τ N.T, ‖A.centerCurvature t‖ ≤ CH) |
| 448 | (δ : ℝ) (hδ : 0 < δ) (α k : ℝ) |
| 449 | |
| 450 | def forwardRenewal (ξ : U) (hξ : ξ ≠ 0) |
| 451 | (hsource : ∀ t : Icc (0 : ℝ) A.T, τ ≤ (t : ℝ) → |
| 452 | ‖fderiv ℝ (S.velocityIncrement T t) 0- |
| 453 | (α*deriv (profile δ) (k*⟪m,S.evolution.inverse.normalized t 0⟫_ℝ)) • |
| 454 | rankOne ℝ (EulerPacketForwardFactorization.canonicalVelocity |
| 455 | (A.transverseData m hm J support hSupport) ξ t (S.evolution.inverse.normalized t 0)) |
| 456 | ((A.transverseData m hm J support hSupport).normal.field t |
| 457 | (S.evolution.inverse.normalized t 0))‖ ≤ error) : |
| 458 | ParentFrame (N.transverseData mNext hmNext JNext supportNext hSupportNext) τ := |
| 459 | A.forwardGeometryFrame m hm J support hSupport N hTime |
| 460 | (fun t x => S.evolution.velocity (t,x)) (S.velocityIncrement T) |
| 461 | (fun t x => (S.evolution.velocity_smooth t).differentiable (by simp) x) |
| 462 | (fun t x => (S.velocityIncrement_smooth T hTime t).differentiable (by simp) x) |
| 463 | S.evolution.velocity_match (S.next_velocity T) S.odd.displacement T.odd.displacement |
| 464 | mNext hmNext JNext supportNext hSupportNext τ hτ CM CH K error hCM hK he hMK hHK hM hH |
| 465 | S.evolution.inverse.normalized S.normalized_inverse_zero δ hδ α k ξ hξ hsource |
| 466 | |
| 467 | def joinedRenewal (s : ℝ) (hs : 0 < s) (hsT : s < A.T) |
| 468 | (H : HistoryData ((A.transverseData m hm J support hSupport).initial s hs hsT.le)) |
| 469 | (ξ : U) (hξ : ξ ≠ 0) (hcut : tsupport innerCutoff ⊆ support) |
| 470 | (hsource : ∀ t : Icc (0 : ℝ) A.T, τ ≤ (t : ℝ) → |
| 471 | ‖fderiv ℝ (S.velocityIncrement T t) 0- |
| 472 | (α*deriv (profile δ) (k*⟪m,S.evolution.inverse.normalized t 0⟫_ℝ)) • |
| 473 | rankOne ℝ (EulerPacketPrimaryFactorization.canonicalVelocity s hs hsT H ξ hcut t |
| 474 | (S.evolution.inverse.normalized t 0)) |
| 475 | ((A.transverseData m hm J support hSupport).normal.field t |
| 476 | (S.evolution.inverse.normalized t 0))‖ ≤ error) : |
| 477 | ParentFrame (N.transverseData mNext hmNext JNext supportNext hSupportNext) τ := |
| 478 | A.joinedGeometryFrame m hm J support hSupport N hTime |
| 479 | (fun t x => S.evolution.velocity (t,x)) (S.velocityIncrement T) |
| 480 | (fun t x => (S.evolution.velocity_smooth t).differentiable (by simp) x) |
| 481 | (fun t x => (S.velocityIncrement_smooth T hTime t).differentiable (by simp) x) |
| 482 | S.evolution.velocity_match (S.next_velocity T) S.odd.displacement T.odd.displacement |
| 483 | mNext hmNext JNext supportNext hSupportNext τ hτ CM CH K error hCM hK he hMK hHK hM hH |
| 484 | S.evolution.inverse.normalized S.normalized_inverse_zero δ hδ α k s hs hsT H ξ hξ hcut hsource |
| 485 | |
| 486 | end EulerParentPacketFrames.SmoothState |