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 | omit [NormedAddCommGroup P] in |
| 180 | theorem reconstructedPath_initial (hab : a ≤ b) (q : P × Plane) : |
| 181 | reconstructedPath d t j g k hab q a = 0 := by |
| 182 | unfold reconstructedPath PrimaryODE.ambientSolution |
| 183 | rw [PrimaryODE.solution_initial] |
| 184 | exact ambient_zero _ _ |
| 185 | |
| 186 | omit [NormedAddCommGroup P] in |
| 187 | theorem linear_rhs_eq_projected {q : P × Plane} {v : ℝ} {I : Set ℝ} |
| 188 | (hm : FrameMatchesAt d t j (copyParameter g k q) I) (hv : v ∈ I) (x : Space) : |
| 189 | t.linearData.coefficientAlong g k (q, v) x + t.linearData.forcingAlong g k (q, v) = |
| 190 | TangentProjection.projectedRhs ((copyFrame d g k).normal (q, v)) |
| 191 | ((copyFrame d g k).normalMotion (q, v)) x |
| 192 | (MovingFrameODE.baseAction ((copyFrame d g k).F (q, v)) |
| 193 | ((copyFrame d g k).shear (q, v)) x) |
| 194 | (copySource t.source g k (q, v)) ((copyFrame d g k).damping j (q, v)) := by |
| 195 | simp only [CommonCoverSolve.LinearData.coefficientAlong, CommonCoverSolve.LinearData.forcingAlong, |
| 196 | CommonCoverSolve.TangentData.linearData, CommonCoverSolve.negativeTangentProjection_apply, |
| 197 | ← sub_eq_add_neg, TangentODE.projectedOperator_apply] |
| 198 | change TangentProjection.projectedRhs |
| 199 | (t.normal ((copyParameter g k q).1, ((copyParameter g k q).2, v))) |
| 200 | (t.normalDot ((copyParameter g k q).1, ((copyParameter g k q).2, v))) x |
| 201 | (t.action ((copyParameter g k q).1, ((copyParameter g k q).2, v)) x) |
| 202 | (copySource t.source g k (q, v)) |
| 203 | (t.damping ((copyParameter g k q).1, ((copyParameter g k q).2, v))) = _ |
| 204 | rw [hm.normal v hv, hm.normalMotion v hv, hm.action v hv x, hm.damping v hv] |
| 205 | rfl |
| 206 | |
| 207 | theorem reconstructedPath_hasDerivAt (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 208 | (h : Inputs d t j g k Ω a b) {q : P × Plane} (hq : q ∈ Ω) |
| 209 | {v : ℝ} (hv : v ∈ Icc a b) : |
| 210 | HasDerivAt (reconstructedPath d t j g k hab q) |
| 211 | (t.linearData.coefficientAlong g k (q, v) (reconstructedPath d t j g k hab q v) + |
| 212 | t.linearData.forcingAlong g k (q, v)) v := by |
| 213 | rw [linear_rhs_eq_projected d t j g k (h.compatibility q hq) hv] |
| 214 | exact PrimaryODE.ambientSolution_hasDerivAt hab (copyFrame d g k) j (fun _ => 0) |
| 215 | (copySource t.source g k) h.modal_coefficient h.modal_forcing hq |
| 216 | (reindex_kinematics d (copyParameter g k) (h.kinematics q hq)) hv |
| 217 | |
| 218 | /-- Equality on the closed interval follows from the actual forced equation |
| 219 | and the common zero initial value, with no ambient energy estimate. -/ |
| 220 | theorem reconstructedPath_eq_anchoredSolve (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 221 | (h : Inputs d t j g k Ω a b) {q : P × Plane} (hq : q ∈ Ω) : |
| 222 | EqOn (reconstructedPath d t j g k hab q) (t.linearData.anchoredSolve g hab k q) (Icc a b) := |
| 223 | anchoredSolve_unique_along t.linearData g hab k h.ambient_coefficient h.ambient_forcing hq |
| 224 | (reconstructedPath_initial d t j g k hab q) |
| 225 | (fun _ hv => reconstructedPath_hasDerivAt d t j g k hab h hq hv) |
| 226 | |
| 227 | theorem reconstructedPath_tangent (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 228 | (h : Inputs d t j g k Ω a b) {q : P × Plane} (hq : q ∈ Ω) |
| 229 | {v : ℝ} (hv : v ∈ Icc a b) : |
| 230 | ⟪t.normal (q.1, ((g.coordinates k q.2).1, v)), reconstructedPath d t j g k hab q v⟫_ℝ = 0 := by |
| 231 | change ⟪t.normal ((copyParameter g k q).1, ((copyParameter g k q).2, v)), _⟫_ℝ = 0 |
| 232 | rw [(h.compatibility q hq).normal v hv] |
| 233 | exact PrimaryODE.ambientSolution_tangent hab (copyFrame d g k) j (fun _ => 0) |
| 234 | (copySource t.source g k) q v |
| 235 | |
| 236 | /-! The smooth endpoint-rescaled modal representative used by the jet |
| 237 | estimates identifies with the very same copy solve. -/ |
| 238 | |
| 239 | noncomputable def reparamPath (a : ℝ) (z : (P × Plane) × ℝ) : Space := |
| 240 | (copyFrame d g k).ambient z |
| 241 | (JointODE.reparamSolution a ((copyFrame d g k).coefficient j) (fun _ => 0) |
| 242 | ((copyFrame d g k).forcing (copySource t.source g k)) z) |
| 243 | |
| 244 | noncomputable def reparamCopy (a : ℝ) (q : P × Plane) : Space := |
| 245 | reparamPath d t j g k a (q, (g.coordinates k q.2).2) |
| 246 | |
| 247 | theorem reparamPath_eq_reconstructedPath (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 248 | (h : Inputs d t j g k Ω a b) {z : (P × Plane) × ℝ} (hz : z ∈ Ω ×ˢ Icc a b) : |
| 249 | reparamPath d t j g k a z = reconstructedPath d t j g k hab z.1 z.2 := by |
| 250 | unfold reparamPath |
| 251 | rw [JointODE.reparamSolution_eq_actualSolution hab _ _ _ h.modal_coefficient h.modal_forcing hz] |
| 252 | rfl |
| 253 | |
| 254 | theorem reparamPath_eq_anchoredSolve (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 255 | (h : Inputs d t j g k Ω a b) {z : (P × Plane) × ℝ} (hz : z ∈ Ω ×ˢ Icc a b) : |
| 256 | reparamPath d t j g k a z = t.linearData.anchoredSolve g hab k z.1 z.2 := by |
| 257 | rw [reparamPath_eq_reconstructedPath d t j g k hab h hz] |
| 258 | exact reconstructedPath_eq_anchoredSolve d t j g k hab h hz.1 hz.2 |
| 259 | |
| 260 | theorem reparamCopy_eq_copySolve (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 261 | (h : Inputs d t j g k Ω a b) {q : P × Plane} (hq : q ∈ Ω) |
| 262 | (hv : (g.coordinates k q.2).2 ∈ Icc a b) : |
| 263 | reparamCopy d t j g k a q = t.linearData.copySolve g hab k q := |
| 264 | reparamPath_eq_anchoredSolve d t j g k hab h ⟨hq, hv⟩ |
| 265 | |
| 266 | /-! ## Local identity of all actual joint derivatives -/ |
| 267 | |
| 268 | variable [NormedSpace ℝ P] |
| 269 | |
| 270 | noncomputable def currentTime (q : P × Plane) : ℝ := (g.coordinates k q.2).2 |
| 271 | |
| 272 | theorem currentTime_contDiff : ContDiff ℝ ∞ (currentTime (P := P) g k) := |
| 273 | ((g.coordinates_contDiff k).comp contDiff_snd).snd |
| 274 | |
| 275 | noncomputable def copyInterior (Ω : Set (P × Plane)) (a b : ℝ) : Set (P × Plane) := |
| 276 | Ω ∩ (currentTime (P := P) g k) ⁻¹' Ioo a b |
| 277 | |
| 278 | theorem copyInterior_isOpen {Ω : Set (P × Plane)} (hΩ : IsOpen Ω) (a b : ℝ) : |
| 279 | IsOpen (copyInterior g k Ω a b) := |
| 280 | hΩ.inter (isOpen_Ioo.preimage (currentTime_contDiff g k).continuous) |
| 281 | |
| 282 | omit [NormedSpace ℝ P] in |
| 283 | theorem reparamCopy_eqOn (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 284 | (h : Inputs d t j g k Ω a b) : |
| 285 | EqOn (reparamCopy d t j g k a) (t.linearData.copySolve g hab k) |
| 286 | (copyInterior g k Ω a b) := by |
| 287 | intro q hq |
| 288 | exact reparamCopy_eq_copySolve d t j g k hab h hq.1 ⟨hq.2.1.le, hq.2.2.le⟩ |
| 289 | |
| 290 | /-- This equality transfers bounds for modal reconstruction to actual full |
| 291 | jets of the common-cover output; it introduces no energy estimate. -/ |
| 292 | theorem reparamCopy_iteratedFDeriv_eq (hab : a ≤ b) {Ω : Set (P × Plane)} |
| 293 | (hΩ : IsOpen Ω) (h : Inputs d t j g k Ω a b) {q : P × Plane} |
| 294 | (hq : q ∈ copyInterior g k Ω a b) (n : ℕ) : |
| 295 | iteratedFDeriv ℝ n (reparamCopy d t j g k a) q = |
| 296 | iteratedFDeriv ℝ n (t.linearData.copySolve g hab k) q := by |
| 297 | have he := (reparamCopy_eqOn d t j g k hab h).iteratedFDerivWithin (𝕜 := ℝ) n hq |
| 298 | simpa only [iteratedFDerivWithin_of_isOpen _ (copyInterior_isOpen g k hΩ a b) hq] using he |
| 299 | |
| 300 | end Bridge |
| 301 | |
| 302 | /-! ## Smooth primitive data discharge the continuity requirements -/ |
| 303 | |
| 304 | noncomputable def baseOperatorFamily : (ℝ × State) →L[ℝ] (Space →L[ℝ] Space) := |
| 305 | LinearMap.toContinuousLinearMap { |
| 306 | toFun := fun z => baseOperator z.1 z.2 |
| 307 | map_add' := by |
| 308 | intro z w |
| 309 | ext x i |
| 310 | fin_cases i <;> |
| 311 | simp [baseOperator_apply, MovingFrameODE.baseAction, MovingFrameODE.pack, MovingFrameODE.tail] <;> |
| 312 | ring |
| 313 | map_smul' := by |
| 314 | intro c z |
| 315 | ext x i |
| 316 | fin_cases i <;> |
| 317 | simp [baseOperator_apply, MovingFrameODE.baseAction, MovingFrameODE.pack, MovingFrameODE.tail] <;> |
| 318 | ring } |
| 319 | |
| 320 | @[simp] theorem baseOperatorFamily_apply (z : ℝ × State) : |
| 321 | baseOperatorFamily z = baseOperator z.1 z.2 := rfl |
| 322 | |
| 323 | theorem projectedOperator_continuousOn {X H : Type*} [TopologicalSpace X] |
| 324 | [NormedAddCommGroup H] [InnerProductSpace ℝ H] |
| 325 | {S : Set X} {n nd : X → H} {A : X → H →L[ℝ] H} {δ : X → ℝ} |
| 326 | (hn : ContinuousOn n S) (hnd : ContinuousOn nd S) (hA : ContinuousOn A S) |
| 327 | (hδ : ContinuousOn δ S) (hne : ∀ z ∈ S, n z ≠ 0) : |
| 328 | ContinuousOn (fun z => TangentODE.projectedOperator (n z) (nd z) (A z) (δ z)) S := by |
| 329 | have hlin : ContinuousOn (fun z => (innerSL ℝ (n z)).comp (A z) - innerSL ℝ (nd z)) S := |
| 330 | (((innerSL ℝ).continuous.comp_continuousOn hn).clm_comp hA).sub |
| 331 | ((innerSL ℝ).continuous.comp_continuousOn hnd) |
| 332 | have hv : ContinuousOn (fun z => (⟪n z, n z⟫_ℝ)⁻¹ • n z) S := |
| 333 | ((hn.inner hn).inv₀ (fun z hz => inner_self_ne_zero.mpr (hne z hz))).smul hn |
| 334 | have ho : ContinuousOn (fun z => |
| 335 | ((innerSL ℝ (n z)).comp (A z) - innerSL ℝ (nd z)).smulRight |
| 336 | ((⟪n z, n z⟫_ℝ)⁻¹ • n z)) S := |
| 337 | isBoundedBilinearMap_smulRight.continuous.comp_continuousOn (hlin.prodMk hv) |
| 338 | exact (hA.neg.add ho).sub (hδ.smul continuousOn_const) |
| 339 | |
| 340 | theorem projectedForcing_continuousOn {X : Type*} [TopologicalSpace X] |
| 341 | {S : Set X} {n f : X → Space} (hn : ContinuousOn n S) (hf : ContinuousOn f S) |
| 342 | (hne : ∀ z ∈ S, n z ≠ 0) : |
| 343 | ContinuousOn (fun z => -TangentProjection.tangentProj (n z) (f z)) S := by |
| 344 | unfold TangentProjection.tangentProj |
| 345 | exact (hf.fun_sub (((hn.inner hf).div (hn.inner hn) |
| 346 | (fun z hz => inner_self_ne_zero.mpr (hne z hz))).fun_smul hn)).fun_neg |
| 347 | |
| 348 | section SmoothFrame |
| 349 | |
| 350 | variable {Q : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 351 | {d : PrimaryODE.FrameData Q} {S : Set (Q × ℝ)} |
| 352 | |
| 353 | theorem frame_normal_continuousOn (h : d.SmoothOn S) : ContinuousOn d.normal S := |
| 354 | MovingFrameODE.packCLM.continuous.comp_continuousOn |
| 355 | ((h.beta.continuousOn.mul h.rho.continuousOn).prodMk |
| 356 | (h.beta.continuousOn.smul (h.frame 0).continuousOn)) |
| 357 | |
| 358 | theorem frame_normalMotion_continuousOn (h : d.SmoothOn S) : ContinuousOn d.normalMotion S := |
| 359 | MovingFrameODE.packCLM.continuous.comp_continuousOn |
| 360 | (((h.betaDot.continuousOn.mul h.rho.continuousOn).add |
| 361 | (h.beta.continuousOn.mul h.rhoDot.continuousOn)).prodMk |
| 362 | ((h.betaDot.continuousOn.smul (h.frame 0).continuousOn).add |
| 363 | ((h.beta.continuousOn.mul h.rotation.continuousOn).smul (h.frame 1).continuousOn))) |
| 364 | |
| 365 | theorem frame_baseOperator_continuousOn (h : d.SmoothOn S) : |
| 366 | ContinuousOn (fun z => baseOperator (d.F z) (d.shear z)) S := by |
| 367 | have hc : ContinuousOn (fun z => baseOperatorFamily (d.F z, d.shear z)) S := |
| 368 | baseOperatorFamily.continuous.comp_continuousOn (h.F.continuousOn.prodMk h.shear.continuousOn) |
| 369 | simpa only [baseOperatorFamily_apply] using hc |
| 370 | |
| 371 | end SmoothFrame |
| 372 | |
| 373 | theorem reindex_smoothOn {P Q : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 374 | [NormedAddCommGroup Q] [NormedSpace ℝ Q] (d : PrimaryODE.FrameData P) (φ : Q → P) |
| 375 | {S : Set (P × ℝ)} {Ω : Set (Q × ℝ)} (hd : d.SmoothOn S) |
| 376 | (hφ : ContDiffOn ℝ ∞ (fun z : Q × ℝ => (φ z.1, z.2)) Ω) |
| 377 | (hmap : MapsTo (fun z : Q × ℝ => (φ z.1, z.2)) Ω S) : |
| 378 | (reindex d φ).SmoothOn Ω := by |
| 379 | exact ⟨hd.beta.comp hφ hmap, hd.betaDot.comp hφ hmap, hd.rho.comp hφ hmap, |
| 380 | hd.rhoDot.comp hφ hmap, hd.rotation.comp hφ hmap, hd.F.comp hφ hmap, |
| 381 | hd.shear.comp hφ hmap, fun i => (hd.frame i).comp hφ hmap, |
| 382 | hd.eigenvalue.comp hφ hmap, hd.eigenvector.comp hφ hmap, |
| 383 | hd.eigenRate.comp hφ hmap, hd.viscosity.comp hφ hmap, |
| 384 | fun z hz => hd.eigenvector_ne_zero _ (hmap hz)⟩ |
| 385 | |
| 386 | section CanonicalInputs |
| 387 | |
| 388 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 389 | (d : PrimaryODE.FrameData (P × ℝ)) (g : CommonCoverSolve.Geometry) (k : Frequency) |
| 390 | |
| 391 | theorem copySource_contDiffOn {f : P × Plane → Space} {S : Set (P × Plane)} |
| 392 | {Ω : Set ((P × Plane) × ℝ)} (hf : ContDiffOn ℝ ∞ f S) |
| 393 | (hmap : MapsTo (fun z : (P × Plane) × ℝ => (z.1.1, g.path k z.1.2 z.2)) Ω S) : |
| 394 | ContDiffOn ℝ ∞ (copySource f g k) Ω := |
| 395 | hf.comp (g.pathArgument_contDiff k).contDiffOn hmap |
| 396 | |
| 397 | /-- For the concrete tangent datum built from the moving frame, no matching |
| 398 | or ambient continuity obligation is left over: smooth inputs and the actual |
| 399 | frame kinematics imply every bridge hypothesis. -/ |
| 400 | theorem inputs_of_smooth_frame (j : ℤ) (f : P × Plane → Space) |
| 401 | {Ω : Set (P × Plane)} {a b : ℝ} |
| 402 | (hd : (copyFrame d g k).SmoothOn (Ω ×ˢ Icc a b)) |
| 403 | (hf : ContDiffOn ℝ ∞ (copySource f g k) (Ω ×ˢ Icc a b)) |
| 404 | (hk : ∀ q ∈ Ω, d.Kinematics (copyParameter g k q) (Icc a b)) : |
| 405 | Inputs d (frameTangentData d j f) j g k Ω a b := by |
| 406 | have hn : ContinuousOn (copyFrame d g k).normal (Ω ×ˢ Icc a b) := frame_normal_continuousOn hd |
| 407 | have hnd : ContinuousOn (copyFrame d g k).normalMotion (Ω ×ˢ Icc a b) := |
| 408 | frame_normalMotion_continuousOn hd |
| 409 | have hn0 : ∀ z ∈ Ω ×ˢ Icc a b, (copyFrame d g k).normal z ≠ 0 := by |
| 410 | intro z hz |
| 411 | exact MovingFrameODE.normal_ne_zero _ ((hk z.1 hz.1).beta_ne_zero z.2 hz.2) |
| 412 | refine ⟨(hd.coefficient j).continuousOn, (hd.forcing hf).continuousOn, ?_, ?_, hk, |
| 413 | fun q _ => frameTangentData_matches d j f (copyParameter g k q) _⟩ |
| 414 | · change ContinuousOn (fun z => TangentODE.projectedOperator ((copyFrame d g k).normal z) |
| 415 | ((copyFrame d g k).normalMotion z) |
| 416 | (baseOperator ((copyFrame d g k).F z) ((copyFrame d g k).shear z)) |
| 417 | ((copyFrame d g k).damping j z)) (Ω ×ˢ Icc a b) |
| 418 | exact projectedOperator_continuousOn hn hnd (frame_baseOperator_continuousOn hd) |
| 419 | (continuousOn_const.mul hd.viscosity.continuousOn) hn0 |
| 420 | · change ContinuousOn (fun z => CommonCoverSolve.negativeTangentProjection |
| 421 | ((copyFrame d g k).normal z) (copySource f g k z)) (Ω ×ˢ Icc a b) |
| 422 | simpa only [CommonCoverSolve.negativeTangentProjection_apply] using |
| 423 | projectedForcing_continuousOn hn hf.continuousOn hn0 |
| 424 | |
| 425 | end CanonicalInputs |
| 426 | |
| 427 | /-! ## Seeded primary paths: the same equation, with their own initial data -/ |
| 428 | |
| 429 | section Seeded |
| 430 | |
| 431 | variable {P : Type} [NormedAddCommGroup P] |
| 432 | (d : PrimaryODE.FrameData (P × ℝ)) (t : CommonCoverSolve.TangentData P Space) |
| 433 | (j : ℤ) (g : CommonCoverSolve.Geometry) (k : Frequency) {a b : ℝ} |
| 434 | |
| 435 | end Seeded |
| 436 | |
| 437 | end NavierStokes.PrimaryCopyBridge |