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 NavierStokes.PrimaryODE |
| 2 | import NavierStokes.CommonCoverSolve |
| 3 | |
| 4 | /-! |
| 5 | # The reconstructed forced solution is the actual copy solve |
| 6 | |
| 7 | The frame is reindexed along the native transverse coordinate of each copy, |
| 8 | while the physical source is evaluated on the lifted earlier path. Uniqueness |
| 9 | identifies the two constructed solutions from their common zero entry value. |
| 10 | No energy inequality for the ambient projected operator is assumed. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.PrimaryCopyBridge |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Topology ContDiff InnerProductSpace |
| 19 | |
| 20 | abbrev Plane := TorusInverse.Plane |
| 21 | abbrev Frequency := TorusInverse.Frequency |
| 22 | abbrev State := PrimaryODE.State |
| 23 | abbrev Space := PrimaryODE.Space |
| 24 | |
| 25 | /-! ## Exact reindexing of primitive frame data -/ |
| 26 | |
| 27 | noncomputable def reindex {P Q : Type} (d : PrimaryODE.FrameData P) (φ : Q → P) : |
| 28 | PrimaryODE.FrameData Q where |
| 29 | beta z := d.beta (φ z.1, z.2) |
| 30 | betaDot z := d.betaDot (φ z.1, z.2) |
| 31 | rho z := d.rho (φ z.1, z.2) |
| 32 | rhoDot z := d.rhoDot (φ z.1, z.2) |
| 33 | rotation z := d.rotation (φ z.1, z.2) |
| 34 | F z := d.F (φ z.1, z.2) |
| 35 | shear z := d.shear (φ z.1, z.2) |
| 36 | frame z := d.frame (φ z.1, z.2) |
| 37 | eigenvalue z := d.eigenvalue (φ z.1, z.2) |
| 38 | eigenvector z := d.eigenvector (φ z.1, z.2) |
| 39 | eigenRate z := d.eigenRate (φ z.1, z.2) |
| 40 | viscosity z := d.viscosity (φ z.1, z.2) |
| 41 | |
| 42 | theorem reindex_kinematics {P Q : Type} (d : PrimaryODE.FrameData P) (φ : Q → P) |
| 43 | {q : Q} {I : Set ℝ} (h : d.Kinematics (φ q) I) : (reindex d φ).Kinematics q I := by |
| 44 | exact ⟨h.beta_ne_zero, h.eigenvector_ne_zero, h.beta_deriv, h.rho_deriv, |
| 45 | h.eigenvector_deriv, h.frameK_deriv, h.frameN_deriv⟩ |
| 46 | |
| 47 | noncomputable def copyParameter {P : Type} (g : CommonCoverSolve.Geometry) |
| 48 | (k : Frequency) (q : P × Plane) : P × ℝ := (q.1, (g.coordinates k q.2).1) |
| 49 | |
| 50 | noncomputable def copyFrame {P : Type} (d : PrimaryODE.FrameData (P × ℝ)) |
| 51 | (g : CommonCoverSolve.Geometry) (k : Frequency) : PrimaryODE.FrameData (P × Plane) := |
| 52 | reindex d (copyParameter g k) |
| 53 | |
| 54 | noncomputable def copySource {P : Type} (f : P × Plane → Space) |
| 55 | (g : CommonCoverSolve.Geometry) (k : Frequency) (z : (P × Plane) × ℝ) : Space := |
| 56 | f (z.1.1, g.path k z.1.2 z.2) |
| 57 | |
| 58 | @[simp] theorem copyFrame_normal {P : Type} (d : PrimaryODE.FrameData (P × ℝ)) |
| 59 | (g : CommonCoverSolve.Geometry) (k : Frequency) (z : (P × Plane) × ℝ) : |
| 60 | (copyFrame d g k).normal z = d.normal (copyParameter g k z.1, z.2) := rfl |
| 61 | |
| 62 | @[simp] theorem copyFrame_normalMotion {P : Type} (d : PrimaryODE.FrameData (P × ℝ)) |
| 63 | (g : CommonCoverSolve.Geometry) (k : Frequency) (z : (P × Plane) × ℝ) : |
| 64 | (copyFrame d g k).normalMotion z = d.normalMotion (copyParameter g k z.1, z.2) := rfl |
| 65 | |
| 66 | @[simp] theorem copyFrame_ambient {P : Type} (d : PrimaryODE.FrameData (P × ℝ)) |
| 67 | (g : CommonCoverSolve.Geometry) (k : Frequency) (z : (P × Plane) × ℝ) (w : State) : |
| 68 | (copyFrame d g k).ambient z w = d.ambient (copyParameter g k z.1, z.2) w := rfl |
| 69 | |
| 70 | theorem ambient_zero {P : Type} (d : PrimaryODE.FrameData P) (z : P × ℝ) : |
| 71 | d.ambient z 0 = 0 := by |
| 72 | ext i |
| 73 | fin_cases i <;> simp [PrimaryODE.FrameData.ambient, MovingFrameODE.tangent, MovingFrameODE.pack] |
| 74 | |
| 75 | /-! ## The native tangent data can be built directly from the frame -/ |
| 76 | |
| 77 | noncomputable def baseOperator (F : ℝ) (g : State) : Space →L[ℝ] Space := |
| 78 | MovingFrameODE.packCLM.comp |
| 79 | (((-2 * F) • PiLp.proj 2 (fun _ : Fin 3 => ℝ) 1).prod |
| 80 | ((PiLp.proj 2 (fun _ : Fin 3 => ℝ) 0).smulRight |
| 81 | ((2 * F) • MovingFrameODE.unitTheta + g))) |
| 82 | |
| 83 | @[simp] theorem baseOperator_apply (F : ℝ) (g : State) (x : Space) : |
| 84 | baseOperator F g x = MovingFrameODE.baseAction F g x := rfl |
| 85 | |
| 86 | noncomputable def nativePoint {P : Type} (z : P × Plane) : (P × ℝ) × ℝ := |
| 87 | ((z.1, z.2.1), z.2.2) |
| 88 | |
| 89 | noncomputable def frameTangentData {P : Type} (d : PrimaryODE.FrameData (P × ℝ)) |
| 90 | (j : ℤ) (f : P × Plane → Space) : CommonCoverSolve.TangentData P Space where |
| 91 | normal z := d.normal (nativePoint z) |
| 92 | normalDot z := d.normalMotion (nativePoint z) |
| 93 | action z := baseOperator (d.F (nativePoint z)) (d.shear (nativePoint z)) |
| 94 | damping z := d.damping j (nativePoint z) |
| 95 | source := f |
| 96 | |
| 97 | /-- Only primitive input fields are compared. The structure contains no |
| 98 | equation, estimate, or identity concerning either output solution. -/ |
| 99 | structure FrameMatchesAt {P : Type} (d : PrimaryODE.FrameData (P × ℝ)) |
| 100 | (t : CommonCoverSolve.TangentData P Space) (j : ℤ) (q : P × ℝ) (I : Set ℝ) : Prop where |
| 101 | normal : ∀ v ∈ I, t.normal (q.1, (q.2, v)) = d.normal (q, v) |
| 102 | normalMotion : ∀ v ∈ I, t.normalDot (q.1, (q.2, v)) = d.normalMotion (q, v) |
| 103 | action : ∀ v ∈ I, ∀ x : Space, |
| 104 | t.action (q.1, (q.2, v)) x = MovingFrameODE.baseAction (d.F (q, v)) (d.shear (q, v)) x |
| 105 | damping : ∀ v ∈ I, t.damping (q.1, (q.2, v)) = d.damping j (q, v) |
| 106 | |
| 107 | theorem frameTangentData_matches {P : Type} (d : PrimaryODE.FrameData (P × ℝ)) |
| 108 | (j : ℤ) (f : P × Plane → Space) (q : P × ℝ) (I : Set ℝ) : |
| 109 | FrameMatchesAt d (frameTangentData d j f) j q I := by |
| 110 | constructor |
| 111 | · intro v hv; rfl |
| 112 | · intro v hv; rfl |
| 113 | · intro v hv x; rfl |
| 114 | · intro v hv; rfl |
| 115 | |
| 116 | /-! ## Uniqueness with continuity only along the actual finite copy paths -/ |
| 117 | |
| 118 | section PathUniqueness |
| 119 | |
| 120 | variable {P V H : Type} [NormedAddCommGroup P] |
| 121 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 122 | [NormedAddCommGroup H] [NormedSpace ℝ H] [CompleteSpace H] |
| 123 | {a b : ℝ} |
| 124 | |
| 125 | theorem anchoredSolve_hasDerivAt_along |
| 126 | (d : CommonCoverSolve.LinearData P V H) (g : CommonCoverSolve.Geometry) |
| 127 | (hab : a ≤ b) (k : Frequency) {Ω : Set (P × Plane)} |
| 128 | (hA : ContinuousOn (d.coefficientAlong g k) (Ω ×ˢ Icc a b)) |
| 129 | (hf : ContinuousOn (d.forcingAlong g k) (Ω ×ˢ Icc a b)) |
| 130 | {q : P × Plane} (hq : q ∈ Ω) {v : ℝ} (hv : v ∈ Icc a b) : |
| 131 | HasDerivAt (d.anchoredSolve g hab k q) |
| 132 | (d.coefficientAlong g k (q, v) (d.anchoredSolve g hab k q v) + d.forcingAlong g k (q, v)) v := by |
| 133 | have hAc := SmoothPathFamily.slice_continuous hA hq |
| 134 | have hfc := SmoothPathFamily.slice_continuous hf hq |
| 135 | have hd := ParametricODE.solutionExtension_hasDerivAt hab |
| 136 | (d.coefficientPath g k q) 0 (d.forcingPath g k q) ⟨v, hv⟩ |
| 137 | unfold CommonCoverSolve.LinearData.anchoredSolve |
| 138 | simpa only [CommonCoverSolve.LinearData.anchoredSolve, |
| 139 | CommonCoverSolve.LinearData.coefficientPath, CommonCoverSolve.LinearData.forcingPath, |
| 140 | SmoothPathFamily.pathFamily_apply _ _ hAc, SmoothPathFamily.pathFamily_apply _ _ hfc] using hd |
| 141 | |
| 142 | theorem anchoredSolve_unique_along |
| 143 | (d : CommonCoverSolve.LinearData P V H) (g : CommonCoverSolve.Geometry) |
| 144 | (hab : a ≤ b) (k : Frequency) {Ω : Set (P × Plane)} |
| 145 | (hA : ContinuousOn (d.coefficientAlong g k) (Ω ×ˢ Icc a b)) |
| 146 | (hf : ContinuousOn (d.forcingAlong g k) (Ω ×ˢ Icc a b)) |
| 147 | {q : P × Plane} (hq : q ∈ Ω) {u : ℝ → H} (hu0 : u a = 0) |
| 148 | (hu : ∀ v ∈ Icc a b, HasDerivAt u |
| 149 | (d.coefficientAlong g k (q, v) (u v) + d.forcingAlong g k (q, v)) v) : |
| 150 | EqOn u (d.anchoredSolve g hab k q) (Icc a b) := by |
| 151 | apply TangentODE.linear_solution_unique hab |
| 152 | (fun v => d.coefficientAlong g k (q, v)) (fun v => d.forcingAlong g k (q, v)) |
| 153 | (hA.comp (continuous_const.prodMk continuous_id).continuousOn (fun v hv => ⟨hq, hv⟩)) hu |
| 154 | (fun v hv => anchoredSolve_hasDerivAt_along d g hab k hA hf hq hv) |
| 155 | rw [d.anchoredSolve_initial] |
| 156 | exact hu0 |
| 157 | |
| 158 | end PathUniqueness |
| 159 | |
| 160 | section Bridge |
| 161 | |
| 162 | variable {P : Type} [NormedAddCommGroup P] |
| 163 | (d : PrimaryODE.FrameData (P × ℝ)) (t : CommonCoverSolve.TangentData P Space) |
| 164 | (j : ℤ) (g : CommonCoverSolve.Geometry) (k : Frequency) {a b : ℝ} |
| 165 | |
| 166 | /-- All analytic assumptions are on actual input fields on the finite paths. |
| 167 | There is deliberately no ambient reference-energy or output-bound hypothesis. -/ |
| 168 | structure Inputs (Ω : Set (P × Plane)) (a b : ℝ) : Prop where |
| 169 | modal_coefficient : ContinuousOn ((copyFrame d g k).coefficient j) (Ω ×ˢ Icc a b) |
| 170 | modal_forcing : ContinuousOn ((copyFrame d g k).forcing (copySource t.source g k)) (Ω ×ˢ Icc a b) |
| 171 | ambient_coefficient : ContinuousOn (t.linearData.coefficientAlong g k) (Ω ×ˢ Icc a b) |
| 172 | ambient_forcing : ContinuousOn (t.linearData.forcingAlong g k) (Ω ×ˢ Icc a b) |
| 173 | kinematics : ∀ q ∈ Ω, d.Kinematics (copyParameter g k q) (Icc a b) |
| 174 | compatibility : ∀ q ∈ Ω, FrameMatchesAt d t j (copyParameter g k q) (Icc a b) |
| 175 | |
| 176 | noncomputable def reconstructedPath (hab : a ≤ b) (q : P × Plane) : ℝ → Space := |
| 177 | PrimaryODE.ambientSolution hab (copyFrame d g k) j (fun _ => 0) (copySource t.source g k) q |
| 178 | |
| 179 | noncomputable def reconstructedCopy (hab : a ≤ b) (q : P × Plane) : Space := |
| 180 | reconstructedPath d t j g k hab q (g.coordinates k q.2).2 |
| 181 | |
| 182 | omit [NormedAddCommGroup P] in |
| 183 | theorem reconstructedPath_initial (hab : a ≤ b) (q : P × Plane) : |
| 184 | reconstructedPath d t j g k hab q a = 0 := by |
| 185 | unfold reconstructedPath PrimaryODE.ambientSolution |
| 186 | rw [PrimaryODE.solution_initial] |
| 187 | exact ambient_zero _ _ |
| 188 | |
| 189 | omit [NormedAddCommGroup P] in |
| 190 | theorem linear_rhs_eq_projected {q : P × Plane} {v : ℝ} {I : Set ℝ} |
| 191 | (hm : FrameMatchesAt d t j (copyParameter g k q) I) (hv : v ∈ I) (x : Space) : |
| 192 | t.linearData.coefficientAlong g k (q, v) x + t.linearData.forcingAlong g k (q, v) = |
| 193 | TangentProjection.projectedRhs ((copyFrame d g k).normal (q, v)) |
| 194 | ((copyFrame d g k).normalMotion (q, v)) x |
| 195 | (MovingFrameODE.baseAction ((copyFrame d g k).F (q, v)) |
| 196 | ((copyFrame d g k).shear (q, v)) x) |
| 197 | (copySource t.source g k (q, v)) ((copyFrame d g k).damping j (q, v)) := by |
| 198 | simp only [CommonCoverSolve.LinearData.coefficientAlong, CommonCoverSolve.LinearData.forcingAlong, |
| 199 | CommonCoverSolve.TangentData.linearData, CommonCoverSolve.negativeTangentProjection_apply, |
| 200 | ← sub_eq_add_neg, TangentODE.projectedOperator_apply] |
| 201 | change TangentProjection.projectedRhs |
| 202 | (t.normal ((copyParameter g k q).1, ((copyParameter g k q).2, v))) |
| 203 | (t.normalDot ((copyParameter g k q).1, ((copyParameter g k q).2, v))) x |
| 204 | (t.action ((copyParameter g k q).1, ((copyParameter g k q).2, v)) x) |
| 205 | (copySource t.source g k (q, v)) |
| 206 | (t.damping ((copyParameter g k q).1, ((copyParameter g k q).2, v))) = _ |
| 207 | rw [hm.normal v hv, hm.normalMotion v hv, hm.action v hv x, hm.damping v hv] |
| 208 | rfl |
| 209 | |
| 210 | theorem reconstructedPath_hasDerivAt (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 211 | (h : Inputs d t j g k Ω a b) {q : P × Plane} (hq : q ∈ Ω) |
| 212 | {v : ℝ} (hv : v ∈ Icc a b) : |
| 213 | HasDerivAt (reconstructedPath d t j g k hab q) |
| 214 | (t.linearData.coefficientAlong g k (q, v) (reconstructedPath d t j g k hab q v) + |
| 215 | t.linearData.forcingAlong g k (q, v)) v := by |
| 216 | rw [linear_rhs_eq_projected d t j g k (h.compatibility q hq) hv] |
| 217 | exact PrimaryODE.ambientSolution_hasDerivAt hab (copyFrame d g k) j (fun _ => 0) |
| 218 | (copySource t.source g k) h.modal_coefficient h.modal_forcing hq |
| 219 | (reindex_kinematics d (copyParameter g k) (h.kinematics q hq)) hv |
| 220 | |
| 221 | /-- Equality on the closed interval follows from the actual forced equation |
| 222 | and the common zero initial value, with no ambient energy estimate. -/ |
| 223 | theorem reconstructedPath_eq_anchoredSolve (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 224 | (h : Inputs d t j g k Ω a b) {q : P × Plane} (hq : q ∈ Ω) : |
| 225 | EqOn (reconstructedPath d t j g k hab q) (t.linearData.anchoredSolve g hab k q) (Icc a b) := |
| 226 | anchoredSolve_unique_along t.linearData g hab k h.ambient_coefficient h.ambient_forcing hq |
| 227 | (reconstructedPath_initial d t j g k hab q) |
| 228 | (fun _ hv => reconstructedPath_hasDerivAt d t j g k hab h hq hv) |
| 229 | |
| 230 | theorem reconstructedPath_tangent (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 231 | (h : Inputs d t j g k Ω a b) {q : P × Plane} (hq : q ∈ Ω) |
| 232 | {v : ℝ} (hv : v ∈ Icc a b) : |
| 233 | ⟪t.normal (q.1, ((g.coordinates k q.2).1, v)), reconstructedPath d t j g k hab q v⟫_ℝ = 0 := by |
| 234 | change ⟪t.normal ((copyParameter g k q).1, ((copyParameter g k q).2, v)), _⟫_ℝ = 0 |
| 235 | rw [(h.compatibility q hq).normal v hv] |
| 236 | exact PrimaryODE.ambientSolution_tangent hab (copyFrame d g k) j (fun _ => 0) |
| 237 | (copySource t.source g k) q v |
| 238 | |
| 239 | theorem reconstructedCopy_eq_copySolve (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 240 | (h : Inputs d t j g k Ω a b) {q : P × Plane} (hq : q ∈ Ω) |
| 241 | (hv : (g.coordinates k q.2).2 ∈ Icc a b) : |
| 242 | reconstructedCopy d t j g k hab q = t.linearData.copySolve g hab k q := |
| 243 | reconstructedPath_eq_anchoredSolve d t j g k hab h hq hv |
| 244 | |
| 245 | /-! The smooth endpoint-rescaled modal representative used by the jet |
| 246 | estimates identifies with the very same copy solve. -/ |
| 247 | |
| 248 | noncomputable def reparamPath (a : ℝ) (z : (P × Plane) × ℝ) : Space := |
| 249 | (copyFrame d g k).ambient z |
| 250 | (JointODE.reparamSolution a ((copyFrame d g k).coefficient j) (fun _ => 0) |
| 251 | ((copyFrame d g k).forcing (copySource t.source g k)) z) |
| 252 | |
| 253 | noncomputable def reparamCopy (a : ℝ) (q : P × Plane) : Space := |
| 254 | reparamPath d t j g k a (q, (g.coordinates k q.2).2) |
| 255 | |
| 256 | theorem reparamPath_eq_reconstructedPath (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 257 | (h : Inputs d t j g k Ω a b) {z : (P × Plane) × ℝ} (hz : z ∈ Ω ×ˢ Icc a b) : |
| 258 | reparamPath d t j g k a z = reconstructedPath d t j g k hab z.1 z.2 := by |
| 259 | unfold reparamPath |
| 260 | rw [JointODE.reparamSolution_eq_actualSolution hab _ _ _ h.modal_coefficient h.modal_forcing hz] |
| 261 | rfl |
| 262 | |
| 263 | theorem reparamPath_eq_anchoredSolve (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 264 | (h : Inputs d t j g k Ω a b) {z : (P × Plane) × ℝ} (hz : z ∈ Ω ×ˢ Icc a b) : |
| 265 | reparamPath d t j g k a z = t.linearData.anchoredSolve g hab k z.1 z.2 := by |
| 266 | rw [reparamPath_eq_reconstructedPath d t j g k hab h hz] |
| 267 | exact reconstructedPath_eq_anchoredSolve d t j g k hab h hz.1 hz.2 |
| 268 | |
| 269 | theorem reparamCopy_eq_copySolve (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 270 | (h : Inputs d t j g k Ω a b) {q : P × Plane} (hq : q ∈ Ω) |
| 271 | (hv : (g.coordinates k q.2).2 ∈ Icc a b) : |
| 272 | reparamCopy d t j g k a q = t.linearData.copySolve g hab k q := |
| 273 | reparamPath_eq_anchoredSolve d t j g k hab h ⟨hq, hv⟩ |
| 274 | |
| 275 | /-! ## Local identity of all actual joint derivatives -/ |
| 276 | |
| 277 | variable [NormedSpace ℝ P] |
| 278 | |
| 279 | noncomputable def currentTime (q : P × Plane) : ℝ := (g.coordinates k q.2).2 |
| 280 | |
| 281 | theorem currentTime_contDiff : ContDiff ℝ ∞ (currentTime (P := P) g k) := |
| 282 | ((g.coordinates_contDiff k).comp contDiff_snd).snd |
| 283 | |
| 284 | noncomputable def copyInterior (Ω : Set (P × Plane)) (a b : ℝ) : Set (P × Plane) := |
| 285 | Ω ∩ (currentTime (P := P) g k) ⁻¹' Ioo a b |
| 286 | |
| 287 | theorem copyInterior_isOpen {Ω : Set (P × Plane)} (hΩ : IsOpen Ω) (a b : ℝ) : |
| 288 | IsOpen (copyInterior g k Ω a b) := |
| 289 | hΩ.inter (isOpen_Ioo.preimage (currentTime_contDiff g k).continuous) |
| 290 | |
| 291 | omit [NormedSpace ℝ P] in |
| 292 | theorem reparamCopy_eqOn (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 293 | (h : Inputs d t j g k Ω a b) : |
| 294 | EqOn (reparamCopy d t j g k a) (t.linearData.copySolve g hab k) |
| 295 | (copyInterior g k Ω a b) := by |
| 296 | intro q hq |
| 297 | exact reparamCopy_eq_copySolve d t j g k hab h hq.1 ⟨hq.2.1.le, hq.2.2.le⟩ |
| 298 | |
| 299 | /-- This equality transfers bounds for modal reconstruction to actual full |
| 300 | jets of the common-cover output; it introduces no energy estimate. -/ |
| 301 | theorem reparamCopy_iteratedFDeriv_eq (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 302 | (hΩ : IsOpen Ω) (h : Inputs d t j g k Ω a b) {q : P × Plane} |
| 303 | (hq : q ∈ copyInterior g k Ω a b) (n : ℕ) : |
| 304 | iteratedFDeriv ℝ n (reparamCopy d t j g k a) q = |
| 305 | iteratedFDeriv ℝ n (t.linearData.copySolve g hab k) q := by |
| 306 | have he := (reparamCopy_eqOn d t j g k hab h).iteratedFDerivWithin (𝕜 := ℝ) n hq |
| 307 | simpa only [iteratedFDerivWithin_of_isOpen _ (copyInterior_isOpen g k hΩ a b) hq] using he |
| 308 | |
| 309 | theorem reparamPath_iteratedFDeriv_eq (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 310 | (hΩ : IsOpen Ω) (h : Inputs d t j g k Ω a b) {z : (P × Plane) × ℝ} |
| 311 | (hz : z ∈ Ω ×ˢ Ioo a b) (n : ℕ) : |
| 312 | iteratedFDeriv ℝ n (reparamPath d t j g k a) z = |
| 313 | iteratedFDeriv ℝ n (fun w : (P × Plane) × ℝ => t.linearData.anchoredSolve g hab k w.1 w.2) z := by |
| 314 | have he : EqOn (reparamPath d t j g k a) |
| 315 | (fun w : (P × Plane) × ℝ => t.linearData.anchoredSolve g hab k w.1 w.2) (Ω ×ˢ Ioo a b) := by |
| 316 | intro w hw |
| 317 | exact reparamPath_eq_anchoredSolve d t j g k hab h ⟨hw.1, hw.2.1.le, hw.2.2.le⟩ |
| 318 | have hj := he.iteratedFDerivWithin (𝕜 := ℝ) n hz |
| 319 | simpa only [iteratedFDerivWithin_of_isOpen _ (hΩ.prod isOpen_Ioo) hz] using hj |
| 320 | |
| 321 | end Bridge |
| 322 | |
| 323 | /-! ## Smooth primitive data discharge the continuity requirements -/ |
| 324 | |
| 325 | noncomputable def baseOperatorFamily : (ℝ × State) →L[ℝ] (Space →L[ℝ] Space) := |
| 326 | LinearMap.toContinuousLinearMap { |
| 327 | toFun := fun z => baseOperator z.1 z.2 |
| 328 | map_add' := by |
| 329 | intro z w |
| 330 | ext x i |
| 331 | fin_cases i <;> |
| 332 | simp [baseOperator_apply, MovingFrameODE.baseAction, MovingFrameODE.pack, MovingFrameODE.tail] <;> |
| 333 | ring |
| 334 | map_smul' := by |
| 335 | intro c z |
| 336 | ext x i |
| 337 | fin_cases i <;> |
| 338 | simp [baseOperator_apply, MovingFrameODE.baseAction, MovingFrameODE.pack, MovingFrameODE.tail] <;> |
| 339 | ring } |
| 340 | |
| 341 | @[simp] theorem baseOperatorFamily_apply (z : ℝ × State) : |
| 342 | baseOperatorFamily z = baseOperator z.1 z.2 := rfl |
| 343 | |
| 344 | theorem projectedOperator_continuousOn {X H : Type*} [TopologicalSpace X] |
| 345 | [NormedAddCommGroup H] [InnerProductSpace ℝ H] |
| 346 | {S : Set X} {n nd : X → H} {A : X → H →L[ℝ] H} {δ : X → ℝ} |
| 347 | (hn : ContinuousOn n S) (hnd : ContinuousOn nd S) (hA : ContinuousOn A S) |
| 348 | (hδ : ContinuousOn δ S) (hne : ∀ z ∈ S, n z ≠ 0) : |
| 349 | ContinuousOn (fun z => TangentODE.projectedOperator (n z) (nd z) (A z) (δ z)) S := by |
| 350 | have hlin : ContinuousOn (fun z => (innerSL ℝ (n z)).comp (A z) - innerSL ℝ (nd z)) S := |
| 351 | (((innerSL ℝ).continuous.comp_continuousOn hn).clm_comp hA).sub |
| 352 | ((innerSL ℝ).continuous.comp_continuousOn hnd) |
| 353 | have hv : ContinuousOn (fun z => (⟪n z, n z⟫_ℝ)⁻¹ • n z) S := |
| 354 | ((hn.inner hn).inv₀ (fun z hz => inner_self_ne_zero.mpr (hne z hz))).smul hn |
| 355 | have ho : ContinuousOn (fun z => |
| 356 | ((innerSL ℝ (n z)).comp (A z) - innerSL ℝ (nd z)).smulRight |
| 357 | ((⟪n z, n z⟫_ℝ)⁻¹ • n z)) S := |
| 358 | isBoundedBilinearMap_smulRight.continuous.comp_continuousOn (hlin.prodMk hv) |
| 359 | exact (hA.neg.add ho).sub (hδ.smul continuousOn_const) |
| 360 | |
| 361 | theorem projectedForcing_continuousOn {X : Type*} [TopologicalSpace X] |
| 362 | {S : Set X} {n f : X → Space} (hn : ContinuousOn n S) (hf : ContinuousOn f S) |
| 363 | (hne : ∀ z ∈ S, n z ≠ 0) : |
| 364 | ContinuousOn (fun z => -TangentProjection.tangentProj (n z) (f z)) S := by |
| 365 | unfold TangentProjection.tangentProj |
| 366 | exact (hf.fun_sub (((hn.inner hf).div (hn.inner hn) |
| 367 | (fun z hz => inner_self_ne_zero.mpr (hne z hz))).fun_smul hn)).fun_neg |
| 368 | |
| 369 | section SmoothFrame |
| 370 | |
| 371 | variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 372 | {d : PrimaryODE.FrameData Q} {S : Set (Q × ℝ)} |
| 373 | |
| 374 | theorem frame_normal_continuousOn (h : d.SmoothOn S) : ContinuousOn d.normal S := |
| 375 | MovingFrameODE.packCLM.continuous.comp_continuousOn |
| 376 | ((h.beta.continuousOn.mul h.rho.continuousOn).prodMk |
| 377 | (h.beta.continuousOn.smul (h.frame 0).continuousOn)) |
| 378 | |
| 379 | theorem frame_normalMotion_continuousOn (h : d.SmoothOn S) : ContinuousOn d.normalMotion S := |
| 380 | MovingFrameODE.packCLM.continuous.comp_continuousOn |
| 381 | (((h.betaDot.continuousOn.mul h.rho.continuousOn).add |
| 382 | (h.beta.continuousOn.mul h.rhoDot.continuousOn)).prodMk |
| 383 | ((h.betaDot.continuousOn.smul (h.frame 0).continuousOn).add |
| 384 | ((h.beta.continuousOn.mul h.rotation.continuousOn).smul (h.frame 1).continuousOn))) |
| 385 | |
| 386 | theorem frame_baseOperator_continuousOn (h : d.SmoothOn S) : |
| 387 | ContinuousOn (fun z => baseOperator (d.F z) (d.shear z)) S := by |
| 388 | have hc : ContinuousOn (fun z => baseOperatorFamily (d.F z, d.shear z)) S := |
| 389 | baseOperatorFamily.continuous.comp_continuousOn (h.F.continuousOn.prodMk h.shear.continuousOn) |
| 390 | simpa only [baseOperatorFamily_apply] using hc |
| 391 | |
| 392 | end SmoothFrame |
| 393 | |
| 394 | theorem reindex_smoothOn {P Q : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 395 | [NormedAddCommGroup Q] [NormedSpace ℝ Q] (d : PrimaryODE.FrameData P) (φ : Q → P) |
| 396 | {S : Set (P × ℝ)} {Ω : Set (Q × ℝ)} (hd : d.SmoothOn S) |
| 397 | (hφ : ContDiffOn ℝ ∞ (fun z : Q × ℝ => (φ z.1, z.2)) Ω) |
| 398 | (hmap : MapsTo (fun z : Q × ℝ => (φ z.1, z.2)) Ω S) : |
| 399 | (reindex d φ).SmoothOn Ω := by |
| 400 | exact ⟨hd.beta.comp hφ hmap, hd.betaDot.comp hφ hmap, hd.rho.comp hφ hmap, |
| 401 | hd.rhoDot.comp hφ hmap, hd.rotation.comp hφ hmap, hd.F.comp hφ hmap, |
| 402 | hd.shear.comp hφ hmap, fun i => (hd.frame i).comp hφ hmap, |
| 403 | hd.eigenvalue.comp hφ hmap, hd.eigenvector.comp hφ hmap, |
| 404 | hd.eigenRate.comp hφ hmap, hd.viscosity.comp hφ hmap, |
| 405 | fun z hz => hd.eigenvector_ne_zero _ (hmap hz)⟩ |
| 406 | |
| 407 | section CanonicalInputs |
| 408 | |
| 409 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 410 | (d : PrimaryODE.FrameData (P × ℝ)) (g : CommonCoverSolve.Geometry) (k : Frequency) |
| 411 | |
| 412 | theorem copyParameter_contDiff : ContDiff ℝ ∞ (copyParameter (P := P) g k) := |
| 413 | contDiff_fst.prodMk (((g.coordinates_contDiff k).comp contDiff_snd).fst) |
| 414 | |
| 415 | theorem copyArgument_contDiff : |
| 416 | ContDiff ℝ ∞ (fun z : (P × Plane) × ℝ => (copyParameter g k z.1, z.2)) := |
| 417 | ((copyParameter_contDiff g k).comp contDiff_fst).prodMk contDiff_snd |
| 418 | |
| 419 | theorem copyFrame_smoothOn {S : Set ((P × ℝ) × ℝ)} {Ω : Set ((P × Plane) × ℝ)} |
| 420 | (hd : d.SmoothOn S) |
| 421 | (hmap : MapsTo (fun z : (P × Plane) × ℝ => (copyParameter g k z.1, z.2)) Ω S) : |
| 422 | (copyFrame d g k).SmoothOn Ω := |
| 423 | reindex_smoothOn d _ hd (copyArgument_contDiff g k).contDiffOn hmap |
| 424 | |
| 425 | theorem copySource_contDiffOn {f : P × Plane → Space} {S : Set (P × Plane)} |
| 426 | {Ω : Set ((P × Plane) × ℝ)} (hf : ContDiffOn ℝ ∞ f S) |
| 427 | (hmap : MapsTo (fun z : (P × Plane) × ℝ => (z.1.1, g.path k z.1.2 z.2)) Ω S) : |
| 428 | ContDiffOn ℝ ∞ (copySource f g k) Ω := |
| 429 | hf.comp (g.pathArgument_contDiff k).contDiffOn hmap |
| 430 | |
| 431 | /-- For the concrete tangent datum built from the moving frame, no matching |
| 432 | or ambient continuity obligation is left over: smooth inputs and the actual |
| 433 | frame kinematics imply every bridge hypothesis. -/ |
| 434 | theorem inputs_of_smooth_frame (j : ℤ) (f : P × Plane → Space) |
| 435 | {Ω : Set (P × Plane)} {a b : ℝ} |
| 436 | (hd : (copyFrame d g k).SmoothOn (Ω ×ˢ Icc a b)) |
| 437 | (hf : ContDiffOn ℝ ∞ (copySource f g k) (Ω ×ˢ Icc a b)) |
| 438 | (hk : ∀ q ∈ Ω, d.Kinematics (copyParameter g k q) (Icc a b)) : |
| 439 | Inputs d (frameTangentData d j f) j g k Ω a b := by |
| 440 | have hn : ContinuousOn (copyFrame d g k).normal (Ω ×ˢ Icc a b) := frame_normal_continuousOn hd |
| 441 | have hnd : ContinuousOn (copyFrame d g k).normalMotion (Ω ×ˢ Icc a b) := |
| 442 | frame_normalMotion_continuousOn hd |
| 443 | have hn0 : ∀ z ∈ Ω ×ˢ Icc a b, (copyFrame d g k).normal z ≠ 0 := by |
| 444 | intro z hz |
| 445 | exact MovingFrameODE.normal_ne_zero _ ((hk z.1 hz.1).beta_ne_zero z.2 hz.2) |
| 446 | refine ⟨(hd.coefficient j).continuousOn, (hd.forcing hf).continuousOn, ?_, ?_, hk, |
| 447 | fun q _ => frameTangentData_matches d j f (copyParameter g k q) _⟩ |
| 448 | · change ContinuousOn (fun z => TangentODE.projectedOperator ((copyFrame d g k).normal z) |
| 449 | ((copyFrame d g k).normalMotion z) |
| 450 | (baseOperator ((copyFrame d g k).F z) ((copyFrame d g k).shear z)) |
| 451 | ((copyFrame d g k).damping j z)) (Ω ×ˢ Icc a b) |
| 452 | exact projectedOperator_continuousOn hn hnd (frame_baseOperator_continuousOn hd) |
| 453 | (continuousOn_const.mul hd.viscosity.continuousOn) hn0 |
| 454 | · change ContinuousOn (fun z => CommonCoverSolve.negativeTangentProjection |
| 455 | ((copyFrame d g k).normal z) (copySource f g k z)) (Ω ×ˢ Icc a b) |
| 456 | simpa only [CommonCoverSolve.negativeTangentProjection_apply] using |
| 457 | projectedForcing_continuousOn hn hf.continuousOn hn0 |
| 458 | |
| 459 | /-- Direct canonical bridge, with assumptions only on smooth primitive frame |
| 460 | and source data and their actual slot derivatives. -/ |
| 461 | theorem frame_reconstructedCopy_eq_copySolve (j : ℤ) (f : P × Plane → Space) |
| 462 | {Ω : Set (P × Plane)} {a b : ℝ} (hab : a ≤ b) |
| 463 | (hd : (copyFrame d g k).SmoothOn (Ω ×ˢ Icc a b)) |
| 464 | (hf : ContDiffOn ℝ ∞ (copySource f g k) (Ω ×ˢ Icc a b)) |
| 465 | (hk : ∀ q ∈ Ω, d.Kinematics (copyParameter g k q) (Icc a b)) |
| 466 | {q : P × Plane} (hq : q ∈ Ω) (hv : (g.coordinates k q.2).2 ∈ Icc a b) : |
| 467 | reconstructedCopy d (frameTangentData d j f) j g k hab q = |
| 468 | (frameTangentData d j f).linearData.copySolve g hab k q := |
| 469 | reconstructedCopy_eq_copySolve d _ j g k hab |
| 470 | (inputs_of_smooth_frame d g k j f hd hf hk) hq hv |
| 471 | |
| 472 | /-- Exact transfer of all ordinary full tensors to the canonical copy solve. |
| 473 | The interval endpoints retain the pointwise equality proved above. -/ |
| 474 | theorem frame_reparamCopy_iteratedFDeriv_eq (j : ℤ) (f : P × Plane → Space) |
| 475 | {Ω : Set (P × Plane)} {a b : ℝ} (hab : a ≤ b) (hΩ : IsOpen Ω) |
| 476 | (hd : (copyFrame d g k).SmoothOn (Ω ×ˢ Icc a b)) |
| 477 | (hf : ContDiffOn ℝ ∞ (copySource f g k) (Ω ×ˢ Icc a b)) |
| 478 | (hk : ∀ q ∈ Ω, d.Kinematics (copyParameter g k q) (Icc a b)) |
| 479 | {q : P × Plane} (hq : q ∈ copyInterior g k Ω a b) (n : ℕ) : |
| 480 | iteratedFDeriv ℝ n (reparamCopy d (frameTangentData d j f) j g k a) q = |
| 481 | iteratedFDeriv ℝ n ((frameTangentData d j f).linearData.copySolve g hab k) q := |
| 482 | reparamCopy_iteratedFDeriv_eq d _ j g k hab hΩ |
| 483 | (inputs_of_smooth_frame d g k j f hd hf hk) hq n |
| 484 | |
| 485 | end CanonicalInputs |
| 486 | |
| 487 | /-! ## Seeded primary paths: the same equation, with their own initial data -/ |
| 488 | |
| 489 | section Seeded |
| 490 | |
| 491 | variable {P : Type} [NormedAddCommGroup P] |
| 492 | (d : PrimaryODE.FrameData (P × ℝ)) (t : CommonCoverSolve.TangentData P Space) |
| 493 | (j : ℤ) (g : CommonCoverSolve.Geometry) (k : Frequency) {a b : ℝ} |
| 494 | |
| 495 | noncomputable def seededReconstructedPath (hab : a ≤ b) (x₀ : P × Plane → State) |
| 496 | (q : P × Plane) : ℝ → Space := |
| 497 | PrimaryODE.ambientSolution hab (copyFrame d g k) j x₀ (copySource t.source g k) q |
| 498 | |
| 499 | omit [NormedAddCommGroup P] in |
| 500 | theorem seededReconstructedPath_initial (hab : a ≤ b) (x₀ : P × Plane → State) (q : P × Plane) : |
| 501 | seededReconstructedPath d t j g k hab x₀ q a = |
| 502 | d.ambient (copyParameter g k q, a) (x₀ q) := by |
| 503 | unfold seededReconstructedPath PrimaryODE.ambientSolution |
| 504 | rw [PrimaryODE.solution_initial] |
| 505 | rfl |
| 506 | |
| 507 | /-- The reconstructed seeded path satisfies the actual tangent equation. |
| 508 | This is not an identification with the zero-entry copy solve. -/ |
| 509 | theorem seededReconstructedPath_hasDerivAt (hab : a ≤ b) (x₀ : P × Plane → State) |
| 510 | {Ω : Set (P × Plane)} (h : Inputs d t j g k Ω a b) |
| 511 | {q : P × Plane} (hq : q ∈ Ω) {v : ℝ} (hv : v ∈ Icc a b) : |
| 512 | let z := (q.1, ((g.coordinates k q.2).1, v)) |
| 513 | HasDerivAt (seededReconstructedPath d t j g k hab x₀ q) |
| 514 | (TangentProjection.projectedRhs (t.normal z) (t.normalDot z) |
| 515 | (seededReconstructedPath d t j g k hab x₀ q v) |
| 516 | (t.action z (seededReconstructedPath d t j g k hab x₀ q v)) |
| 517 | (t.source (q.1, g.path k q.2 v)) (t.damping z)) v := by |
| 518 | have hd : HasDerivAt (seededReconstructedPath d t j g k hab x₀ q) |
| 519 | (t.linearData.coefficientAlong g k (q, v) (seededReconstructedPath d t j g k hab x₀ q v) + |
| 520 | t.linearData.forcingAlong g k (q, v)) v := by |
| 521 | rw [linear_rhs_eq_projected d t j g k (h.compatibility q hq) hv] |
| 522 | exact PrimaryODE.ambientSolution_hasDerivAt hab (copyFrame d g k) j x₀ |
| 523 | (copySource t.source g k) h.modal_coefficient h.modal_forcing hq |
| 524 | (reindex_kinematics d (copyParameter g k) (h.kinematics q hq)) hv |
| 525 | simpa only [CommonCoverSolve.LinearData.coefficientAlong, CommonCoverSolve.LinearData.forcingAlong, |
| 526 | CommonCoverSolve.TangentData.linearData, CommonCoverSolve.negativeTangentProjection_apply, |
| 527 | ← sub_eq_add_neg, TangentODE.projectedOperator_apply] using hd |
| 528 | |
| 529 | theorem seededReconstructedPath_tangent (hab : a ≤ b) (x₀ : P × Plane → State) |
| 530 | {Ω : Set (P × Plane)} (h : Inputs d t j g k Ω a b) |
| 531 | {q : P × Plane} (hq : q ∈ Ω) {v : ℝ} (hv : v ∈ Icc a b) : |
| 532 | ⟪t.normal (q.1, ((g.coordinates k q.2).1, v)), |
| 533 | seededReconstructedPath d t j g k hab x₀ q v⟫_ℝ = 0 := by |
| 534 | change ⟪t.normal ((copyParameter g k q).1, ((copyParameter g k q).2, v)), _⟫_ℝ = 0 |
| 535 | rw [(h.compatibility q hq).normal v hv] |
| 536 | exact PrimaryODE.ambientSolution_tangent hab (copyFrame d g k) j x₀ |
| 537 | (copySource t.source g k) q v |
| 538 | |
| 539 | end Seeded |
| 540 | |
| 541 | end NavierStokes.PrimaryCopyBridge |