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.TorusAverages |
| 2 | import NavierStokes.SlotGeometry |
| 3 | import NavierStokes.SmoothPathFamily |
| 4 | import NavierStokes.JointODE |
| 5 | import NavierStokes.WeightedODEJets |
| 6 | |
| 7 | /-! |
| 8 | # Actual slot solves on a common torus |
| 9 | |
| 10 | The source is evaluated on the lifted copy path. Only periodicity on the |
| 11 | coarsest torus is used; finer native periodicity is not an input. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.CommonCoverSolve |
| 17 | |
| 18 | open Set Function Filter MeasureTheory |
| 19 | open scoped Topology ContDiff BigOperators InnerProductSpace |
| 20 | open TorusInverse |
| 21 | |
| 22 | noncomputable def coverEquiv : Plane ≃L[ℝ] Plane := |
| 23 | TorusAverages.slotChart (3, 1) (1, 5) (by norm_num) |
| 24 | |
| 25 | theorem coverEquiv_apply (Y : Plane) : coverEquiv Y = SlotGeometry.cover Y := by |
| 26 | rw [coverEquiv, TorusAverages.slotChart_apply, SlotGeometry.cover_apply] |
| 27 | ext <;> simp [mul_comm] |
| 28 | |
| 29 | noncomputable def coverPower : ℕ → Plane ≃L[ℝ] Plane |
| 30 | | 0 => ContinuousLinearEquiv.refl ℝ Plane |
| 31 | | d + 1 => (coverPower d).trans coverEquiv |
| 32 | |
| 33 | theorem coverPower_apply (d : ℕ) (Y : Plane) : |
| 34 | coverPower d Y = (SlotGeometry.cover ^ d) Y := by |
| 35 | induction d with |
| 36 | | zero => rfl |
| 37 | | succ d ih => |
| 38 | change coverEquiv (coverPower d Y) = _ |
| 39 | rw [coverEquiv_apply, ih, pow_succ', _root_.mul_apply_eq_comp] |
| 40 | |
| 41 | noncomputable def indexMap (k : Frequency) : Frequency := |
| 42 | (3 * k.1 + k.2, k.1 + 5 * k.2) |
| 43 | |
| 44 | noncomputable def coverIndex (d : ℕ) (k : Frequency) : Frequency := indexMap^[d] k |
| 45 | |
| 46 | theorem coverEquiv_lattice (k : Frequency) : |
| 47 | coverEquiv (TorusAverages.latticePoint k) = TorusAverages.latticePoint (indexMap k) := by |
| 48 | rw [coverEquiv_apply, SlotGeometry.cover_apply] |
| 49 | ext <;> simp [TorusAverages.latticePoint, indexMap] |
| 50 | |
| 51 | theorem coverPower_lattice (d : ℕ) (k : Frequency) : |
| 52 | coverPower d (TorusAverages.latticePoint k) = |
| 53 | TorusAverages.latticePoint (coverIndex d k) := by |
| 54 | induction d with |
| 55 | | zero => rfl |
| 56 | | succ d ih => |
| 57 | change coverEquiv (coverPower d (TorusAverages.latticePoint k)) = _ |
| 58 | rw [ih, coverEquiv_lattice] |
| 59 | simp only [coverIndex, Function.iterate_succ_apply'] |
| 60 | |
| 61 | theorem norm_coverPower_le (d : ℕ) (Y : Plane) : |
| 62 | ‖coverPower d Y‖ ≤ (6 : ℝ) ^ d * ‖Y‖ := by |
| 63 | rw [coverPower_apply] |
| 64 | exact SlotGeometry.norm_cover_pow_le d Y |
| 65 | |
| 66 | /-- Fixed geometry for a level whose gap above the common coarsest level is |
| 67 | `gap`. The columns of `basis` are the native radial and transverse vectors. -/ |
| 68 | structure Geometry where |
| 69 | gap : ℕ |
| 70 | basis : Plane ≃L[ℝ] Plane |
| 71 | center : Plane |
| 72 | |
| 73 | namespace Geometry |
| 74 | |
| 75 | variable (g : Geometry) |
| 76 | |
| 77 | noncomputable def coordinates (k : Frequency) (Y : Plane) : Plane := |
| 78 | g.basis.symm (coverPower g.gap Y - g.center - TorusAverages.latticePoint k) |
| 79 | |
| 80 | noncomputable def point (k : Frequency) (z : Plane) : Plane := |
| 81 | (coverPower g.gap).symm (g.center + TorusAverages.latticePoint k + g.basis z) |
| 82 | |
| 83 | theorem coordinates_point (k : Frequency) (z : Plane) : |
| 84 | g.coordinates k (g.point k z) = z := by |
| 85 | unfold coordinates point |
| 86 | rw [ContinuousLinearEquiv.apply_symm_apply] |
| 87 | have h : g.center + TorusAverages.latticePoint k + g.basis z - g.center - |
| 88 | TorusAverages.latticePoint k = g.basis z := by abel |
| 89 | rw [h, ContinuousLinearEquiv.symm_apply_apply] |
| 90 | |
| 91 | theorem point_coordinates (k : Frequency) (Y : Plane) : |
| 92 | g.point k (g.coordinates k Y) = Y := by |
| 93 | unfold point coordinates |
| 94 | rw [ContinuousLinearEquiv.apply_symm_apply] |
| 95 | have h : g.center + TorusAverages.latticePoint k + |
| 96 | (coverPower g.gap Y - g.center - TorusAverages.latticePoint k) = coverPower g.gap Y := by abel |
| 97 | rw [h, ContinuousLinearEquiv.symm_apply_apply] |
| 98 | |
| 99 | theorem point_add (k : Frequency) (z h : Plane) : |
| 100 | g.point k (z + h) = g.point k z + (coverPower g.gap).symm (g.basis h) := by |
| 101 | simp only [point, map_add, add_assoc] |
| 102 | |
| 103 | noncomputable def path (k : Frequency) (Y : Plane) (eta : ℝ) : Plane := |
| 104 | g.point k ((g.coordinates k Y).1, eta) |
| 105 | |
| 106 | theorem coordinates_path (k : Frequency) (Y : Plane) (eta : ℝ) : |
| 107 | g.coordinates k (g.path k Y eta) = ((g.coordinates k Y).1, eta) := |
| 108 | g.coordinates_point k _ |
| 109 | |
| 110 | theorem path_current (k : Frequency) (Y : Plane) : |
| 111 | g.path k Y (g.coordinates k Y).2 = Y := by |
| 112 | exact g.point_coordinates k Y |
| 113 | |
| 114 | theorem path_path (k : Frequency) (Y : Plane) (eta eta' : ℝ) : |
| 115 | g.path k (g.path k Y eta) eta' = g.path k Y eta' := by |
| 116 | unfold path |
| 117 | rw [g.coordinates_point] |
| 118 | |
| 119 | /-- The manuscript's copy-path formula, in the common coarsest coordinates. |
| 120 | The final native basis vector is `v_t`. -/ |
| 121 | theorem path_eq_shift (k : Frequency) (Y : Plane) (eta : ℝ) : |
| 122 | g.path k Y eta = Y + (coverPower g.gap).symm |
| 123 | ((eta - (g.coordinates k Y).2) • g.basis (0, 1)) := by |
| 124 | let z := g.coordinates k Y |
| 125 | have hz : (z.1, eta) = z + (eta - z.2) • (0, 1) := by |
| 126 | ext <;> simp [z] |
| 127 | change g.point k (z.1, eta) = _ |
| 128 | rw [hz, g.point_add, map_smul] |
| 129 | rw [g.point_coordinates] |
| 130 | |
| 131 | theorem point_deck (k n : Frequency) (z : Plane) : |
| 132 | g.point (k + coverIndex g.gap n) z = g.point k z + TorusAverages.latticePoint n := by |
| 133 | have h : g.center + TorusAverages.latticePoint (k + coverIndex g.gap n) + g.basis z = |
| 134 | (g.center + TorusAverages.latticePoint k + g.basis z) + |
| 135 | coverPower g.gap (TorusAverages.latticePoint n) := by |
| 136 | rw [TorusAverages.latticePoint_add, coverPower_lattice] |
| 137 | abel |
| 138 | unfold point |
| 139 | rw [h, map_add, ContinuousLinearEquiv.symm_apply_apply] |
| 140 | |
| 141 | theorem coordinates_deck (k n : Frequency) (Y : Plane) : |
| 142 | g.coordinates (k + coverIndex g.gap n) (Y + TorusAverages.latticePoint n) = |
| 143 | g.coordinates k Y := by |
| 144 | have h : g.point (k + coverIndex g.gap n) (g.coordinates k Y) = |
| 145 | Y + TorusAverages.latticePoint n := by |
| 146 | rw [g.point_deck, g.point_coordinates] |
| 147 | rw [← h, g.coordinates_point] |
| 148 | |
| 149 | theorem path_deck (k n : Frequency) (Y : Plane) (eta : ℝ) : |
| 150 | g.path (k + coverIndex g.gap n) (Y + TorusAverages.latticePoint n) eta = |
| 151 | g.path k Y eta + TorusAverages.latticePoint n := by |
| 152 | unfold path |
| 153 | rw [g.coordinates_deck, g.point_deck] |
| 154 | |
| 155 | theorem coordinates_contDiff (k : Frequency) : ContDiff ℝ ∞ (g.coordinates k) := |
| 156 | g.basis.symm.contDiff.comp |
| 157 | (((coverPower g.gap).contDiff.sub contDiff_const).sub contDiff_const) |
| 158 | |
| 159 | theorem point_contDiff (k : Frequency) : ContDiff ℝ ∞ (g.point k) := |
| 160 | (coverPower g.gap).symm.contDiff.comp (contDiff_const.add g.basis.contDiff) |
| 161 | |
| 162 | theorem path_contDiff (k : Frequency) : |
| 163 | ContDiff ℝ ∞ (fun z : Plane × ℝ => g.path k z.1 z.2) := |
| 164 | (g.point_contDiff k).comp |
| 165 | (((g.coordinates_contDiff k).comp contDiff_fst).fst.prodMk contDiff_snd) |
| 166 | |
| 167 | end Geometry |
| 168 | |
| 169 | /-! ## Actual forced linear equations on the copy paths -/ |
| 170 | |
| 171 | /-- Native coefficients and a native linear conversion of an ambient source. |
| 172 | The source itself is a function on the common coarsest coordinates. This |
| 173 | allows the tangent-frame projection to depend on the native slot. -/ |
| 174 | structure LinearData (P V E : Type) [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 175 | [NormedAddCommGroup E] [NormedSpace ℝ E] where |
| 176 | coefficient : P × Plane → E →L[ℝ] E |
| 177 | forcingMap : P × Plane → V →L[ℝ] E |
| 178 | source : P × Plane → V |
| 179 | |
| 180 | def PeriodicAt {P V : Type} (f : P × Plane → V) (p : P) : Prop := |
| 181 | ∀ Y : Plane, ∀ n : Frequency, |
| 182 | f (p, Y + TorusAverages.latticePoint n) = f (p, Y) |
| 183 | |
| 184 | section Paths |
| 185 | |
| 186 | variable {P V E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 187 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 188 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 189 | |
| 190 | namespace LinearData |
| 191 | |
| 192 | variable (d : LinearData P V E) (g : Geometry) |
| 193 | |
| 194 | noncomputable def coefficientAlong (k : Frequency) (w : (P × Plane) × ℝ) : E →L[ℝ] E := |
| 195 | d.coefficient (w.1.1, ((g.coordinates k w.1.2).1, w.2)) |
| 196 | |
| 197 | noncomputable def forcingAlong (k : Frequency) (w : (P × Plane) × ℝ) : E := |
| 198 | d.forcingMap (w.1.1, ((g.coordinates k w.1.2).1, w.2)) |
| 199 | (d.source (w.1.1, g.path k w.1.2 w.2)) |
| 200 | |
| 201 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 202 | theorem coefficientAlong_deck (k n : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 203 | d.coefficientAlong g (k + coverIndex g.gap n) ((p, Y + TorusAverages.latticePoint n), s) = |
| 204 | d.coefficientAlong g k ((p, Y), s) := by |
| 205 | simp only [coefficientAlong, g.coordinates_deck] |
| 206 | |
| 207 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 208 | theorem forcingAlong_deck (k n : Frequency) (p : P) (hp : PeriodicAt d.source p) |
| 209 | (Y : Plane) (s : ℝ) : |
| 210 | d.forcingAlong g (k + coverIndex g.gap n) ((p, Y + TorusAverages.latticePoint n), s) = |
| 211 | d.forcingAlong g k ((p, Y), s) := by |
| 212 | simp only [forcingAlong, g.coordinates_deck, g.path_deck] |
| 213 | rw [hp (g.path k Y s) n] |
| 214 | |
| 215 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 216 | theorem coefficientAlong_reanchor (k : Frequency) (p : P) (Y : Plane) (eta s : ℝ) : |
| 217 | d.coefficientAlong g k ((p, g.path k Y eta), s) = |
| 218 | d.coefficientAlong g k ((p, Y), s) := by |
| 219 | simp only [coefficientAlong, g.coordinates_path] |
| 220 | |
| 221 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 222 | theorem forcingAlong_reanchor (k : Frequency) (p : P) (Y : Plane) (eta s : ℝ) : |
| 223 | d.forcingAlong g k ((p, g.path k Y eta), s) = d.forcingAlong g k ((p, Y), s) := by |
| 224 | simp only [forcingAlong, g.coordinates_path, g.path_path] |
| 225 | |
| 226 | end LinearData |
| 227 | |
| 228 | theorem pathFamily_congr_slice {Q W : Type} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 229 | [NormedAddCommGroup W] [NormedSpace ℝ W] {a b : ℝ} |
| 230 | (F G : Q × ℝ → W) (p q : Q) |
| 231 | (h : ∀ t : Icc a b, F (p, t) = G (q, t)) : |
| 232 | SmoothPathFamily.pathFamily (a := a) (b := b) F p = |
| 233 | SmoothPathFamily.pathFamily G q := by |
| 234 | have heq : (fun t : Icc a b => F (p, t)) = (fun t : Icc a b => G (q, t)) := funext h |
| 235 | by_cases hF : Continuous (fun t : Icc a b => F (p, t)) |
| 236 | · have hG : Continuous (fun t : Icc a b => G (q, t)) := heq ▸ hF |
| 237 | ext t |
| 238 | rw [SmoothPathFamily.pathFamily_apply F p hF, SmoothPathFamily.pathFamily_apply G q hG] |
| 239 | exact h t |
| 240 | · have hG : ¬ Continuous (fun t : Icc a b => G (q, t)) := by |
| 241 | intro hG |
| 242 | exact hF (heq.symm ▸ hG) |
| 243 | simp only [SmoothPathFamily.pathFamily, dite_eq_right hF, dite_eq_right hG] |
| 244 | |
| 245 | namespace LinearData |
| 246 | |
| 247 | variable [CompleteSpace E] {a b : ℝ} |
| 248 | variable (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 249 | |
| 250 | noncomputable def coefficientPath (k : Frequency) (p : P × Plane) : |
| 251 | ParametricODE.Coefficient a b E := SmoothPathFamily.pathFamily (d.coefficientAlong g k) p |
| 252 | |
| 253 | noncomputable def forcingPath (k : Frequency) (p : P × Plane) : |
| 254 | ParametricODE.Curve a b E := SmoothPathFamily.pathFamily (d.forcingAlong g k) p |
| 255 | |
| 256 | /-- The genuine Volterra solution, with zero entry data, evaluated along the |
| 257 | copy path anchored at the current common coordinate. -/ |
| 258 | noncomputable def anchoredSolve (k : Frequency) (p : P × Plane) (s : ℝ) : E := |
| 259 | ParametricODE.solutionExtension hab (d.coefficientPath g k p) 0 (d.forcingPath g k p) s |
| 260 | |
| 261 | /-- Value of the constructed solution at the current native slot coordinate. -/ |
| 262 | noncomputable def copySolve (k : Frequency) (p : P × Plane) : E := |
| 263 | d.anchoredSolve g hab k p (g.coordinates k p.2).2 |
| 264 | |
| 265 | omit [CompleteSpace E] in |
| 266 | theorem coefficientPath_deck (k n : Frequency) (p : P) (Y : Plane) : |
| 267 | d.coefficientPath (a := a) (b := b) g (k + coverIndex g.gap n) |
| 268 | (p, Y + TorusAverages.latticePoint n) = d.coefficientPath g k (p, Y) := by |
| 269 | apply pathFamily_congr_slice |
| 270 | intro s |
| 271 | exact d.coefficientAlong_deck g k n p Y s |
| 272 | |
| 273 | omit [CompleteSpace E] in |
| 274 | theorem forcingPath_deck (k n : Frequency) (p : P) (hp : PeriodicAt d.source p) (Y : Plane) : |
| 275 | d.forcingPath (a := a) (b := b) g (k + coverIndex g.gap n) |
| 276 | (p, Y + TorusAverages.latticePoint n) = d.forcingPath g k (p, Y) := by |
| 277 | apply pathFamily_congr_slice |
| 278 | intro s |
| 279 | exact d.forcingAlong_deck g k n p hp Y s |
| 280 | |
| 281 | theorem anchoredSolve_deck (k n : Frequency) (p : P) (hp : PeriodicAt d.source p) |
| 282 | (Y : Plane) (s : ℝ) : |
| 283 | d.anchoredSolve g hab (k + coverIndex g.gap n) (p, Y + TorusAverages.latticePoint n) s = |
| 284 | d.anchoredSolve g hab k (p, Y) s := by |
| 285 | unfold anchoredSolve |
| 286 | rw [d.coefficientPath_deck, d.forcingPath_deck g k n p hp] |
| 287 | |
| 288 | theorem copySolve_deck (k n : Frequency) (p : P) (hp : PeriodicAt d.source p) (Y : Plane) : |
| 289 | d.copySolve g hab (k + coverIndex g.gap n) (p, Y + TorusAverages.latticePoint n) = |
| 290 | d.copySolve g hab k (p, Y) := by |
| 291 | unfold copySolve |
| 292 | rw [g.coordinates_deck, d.anchoredSolve_deck g hab k n p hp] |
| 293 | |
| 294 | theorem anchoredSolve_reanchor (k : Frequency) (p : P) (Y : Plane) (eta s : ℝ) : |
| 295 | d.anchoredSolve g hab k (p, g.path k Y eta) s = d.anchoredSolve g hab k (p, Y) s := by |
| 296 | have hA : d.coefficientPath (a := a) (b := b) g k (p, g.path k Y eta) = |
| 297 | d.coefficientPath g k (p, Y) := |
| 298 | pathFamily_congr_slice _ _ _ _ (fun t => d.coefficientAlong_reanchor g k p Y eta t) |
| 299 | have hf : d.forcingPath (a := a) (b := b) g k (p, g.path k Y eta) = |
| 300 | d.forcingPath g k (p, Y) := |
| 301 | pathFamily_congr_slice _ _ _ _ (fun t => d.forcingAlong_reanchor g k p Y eta t) |
| 302 | unfold anchoredSolve |
| 303 | rw [hA, hf] |
| 304 | |
| 305 | theorem copySolve_path (k : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 306 | d.copySolve g hab k (p, g.path k Y s) = d.anchoredSolve g hab k (p, Y) s := by |
| 307 | unfold copySolve |
| 308 | rw [g.coordinates_path, d.anchoredSolve_reanchor g hab] |
| 309 | |
| 310 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 311 | theorem anchoredSolve_initial (k : Frequency) (p : P × Plane) : |
| 312 | d.anchoredSolve g hab k p a = 0 := by |
| 313 | simp [anchoredSolve, ParametricODE.solutionExtension] |
| 314 | |
| 315 | end LinearData |
| 316 | |
| 317 | theorem solutionExtension_zero {a b : ℝ} (hab : a ≤ b) |
| 318 | (A : ParametricODE.Coefficient a b E) [CompleteSpace E] (s : ℝ) : |
| 319 | ParametricODE.solutionExtension hab A 0 0 s = 0 := by |
| 320 | have hsol : ParametricODE.solution hab A 0 0 = 0 := by |
| 321 | simp [ParametricODE.solution, ParametricODE.source] |
| 322 | have happ : ParametricODE.applyCoefficient A 0 = 0 := by |
| 323 | ext t |
| 324 | simp [ParametricODE.applyCoefficient] |
| 325 | simp [ParametricODE.solutionExtension, hsol, happ, ParametricODE.extend] |
| 326 | |
| 327 | namespace LinearData |
| 328 | |
| 329 | variable [CompleteSpace E] {a b : ℝ} |
| 330 | variable (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 331 | |
| 332 | omit [CompleteSpace E] in |
| 333 | theorem forcingPath_zero_of_source_zero (k : Frequency) (p : P) (Y : Plane) |
| 334 | (hf : ∀ s ∈ Icc a b, d.source (p, g.path k Y s) = 0) : |
| 335 | d.forcingPath (a := a) (b := b) g k (p, Y) = 0 := by |
| 336 | have h : d.forcingPath (a := a) (b := b) g k (p, Y) = |
| 337 | SmoothPathFamily.pathFamily (a := a) (b := b) (fun _ : (P × Plane) × ℝ => (0 : E)) |
| 338 | (p, Y) := by |
| 339 | apply pathFamily_congr_slice |
| 340 | intro s |
| 341 | simp only [forcingAlong, hf s s.2, map_zero] |
| 342 | rw [h] |
| 343 | ext t |
| 344 | rw [SmoothPathFamily.pathFamily_apply _ _ continuous_const] |
| 345 | rfl |
| 346 | |
| 347 | /-- Vanishing along the entire source path forces the constructed zero-entry |
| 348 | solution to vanish. No vanishing assumption on the output is used. -/ |
| 349 | theorem anchoredSolve_zero_of_source_zero (k : Frequency) (p : P) (Y : Plane) |
| 350 | (hf : ∀ s ∈ Icc a b, d.source (p, g.path k Y s) = 0) (eta : ℝ) : |
| 351 | d.anchoredSolve g hab k (p, Y) eta = 0 := by |
| 352 | unfold anchoredSolve |
| 353 | rw [d.forcingPath_zero_of_source_zero g k p Y hf] |
| 354 | exact solutionExtension_zero hab _ eta |
| 355 | |
| 356 | theorem copySolve_zero_of_source_zero (k : Frequency) (p : P) (Y : Plane) |
| 357 | (hf : ∀ s ∈ Icc a b, d.source (p, g.path k Y s) = 0) : |
| 358 | d.copySolve g hab k (p, Y) = 0 := d.anchoredSolve_zero_of_source_zero g hab k p Y hf _ |
| 359 | |
| 360 | end LinearData |
| 361 | |
| 362 | namespace Geometry |
| 363 | |
| 364 | theorem nativeArgument_contDiff (g : Geometry) (k : Frequency) : |
| 365 | ContDiff ℝ ∞ (fun w : (P × Plane) × ℝ => |
| 366 | (w.1.1, ((g.coordinates k w.1.2).1, w.2))) := |
| 367 | contDiff_fst.fst.prodMk |
| 368 | (((g.coordinates_contDiff k).comp contDiff_fst.snd).fst.prodMk contDiff_snd) |
| 369 | |
| 370 | theorem pathArgument_contDiff (g : Geometry) (k : Frequency) : |
| 371 | ContDiff ℝ ∞ (fun w : (P × Plane) × ℝ => (w.1.1, g.path k w.1.2 w.2)) := by |
| 372 | have hp : ContDiff ℝ ∞ (fun w : (P × Plane) × ℝ => w.1.1) := contDiff_fst.fst |
| 373 | have ht : ContDiff ℝ ∞ (fun w : (P × Plane) × ℝ => ((g.coordinates k w.1.2).1, w.2)) := |
| 374 | ((g.coordinates_contDiff k).comp contDiff_fst.snd).fst.prodMk contDiff_snd |
| 375 | exact hp.prodMk ((g.point_contDiff k).comp ht) |
| 376 | |
| 377 | end Geometry |
| 378 | |
| 379 | namespace LinearData |
| 380 | |
| 381 | variable (d : LinearData P V E) (g : Geometry) {U : Set P} |
| 382 | |
| 383 | theorem coefficientAlong_continuousOn (k : Frequency) |
| 384 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) : |
| 385 | ContinuousOn (d.coefficientAlong g k) ((U ×ˢ univ) ×ˢ univ) := |
| 386 | hA.comp (g.nativeArgument_contDiff k).continuous.continuousOn |
| 387 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩) |
| 388 | |
| 389 | theorem forcingAlong_continuousOn (k : Frequency) |
| 390 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 391 | (hf : ContinuousOn d.source (U ×ˢ univ)) : |
| 392 | ContinuousOn (d.forcingAlong g k) ((U ×ˢ univ) ×ˢ univ) := |
| 393 | (hB.comp (g.nativeArgument_contDiff k).continuous.continuousOn |
| 394 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩)).clm_apply |
| 395 | (hf.comp (g.pathArgument_contDiff k).continuous.continuousOn |
| 396 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩)) |
| 397 | |
| 398 | theorem coefficientAlong_contDiffOn (k : Frequency) |
| 399 | (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) : |
| 400 | ContDiffOn ℝ ∞ (d.coefficientAlong g k) ((U ×ˢ univ) ×ˢ univ) := |
| 401 | hA.comp (g.nativeArgument_contDiff k).contDiffOn |
| 402 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩) |
| 403 | |
| 404 | theorem forcingAlong_contDiffOn (k : Frequency) |
| 405 | (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) |
| 406 | (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) : |
| 407 | ContDiffOn ℝ ∞ (d.forcingAlong g k) ((U ×ˢ univ) ×ˢ univ) := |
| 408 | (hB.comp (g.nativeArgument_contDiff k).contDiffOn |
| 409 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩)).clm_apply |
| 410 | (hf.comp (g.pathArgument_contDiff k).contDiffOn |
| 411 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩)) |
| 412 | |
| 413 | variable [CompleteSpace E] {a b : ℝ} (hab : a ≤ b) |
| 414 | |
| 415 | /-- The constructed extension satisfies the original forced equation on the |
| 416 | copy path, including both endpoints as a differentiable extension. -/ |
| 417 | theorem anchoredSolve_hasDerivAt (k : Frequency) |
| 418 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 419 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 420 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 421 | {p : P} (hp : p ∈ U) (Y : Plane) (s : Icc a b) : |
| 422 | HasDerivAt (d.anchoredSolve g hab k (p, Y)) |
| 423 | (d.coefficientAlong g k ((p, Y), s) (d.anchoredSolve g hab k (p, Y) s) + |
| 424 | d.forcingAlong g k ((p, Y), s)) s := by |
| 425 | have hAc : Continuous (fun t : Icc a b => d.coefficientAlong g k ((p, Y), t)) := |
| 426 | SmoothPathFamily.slice_continuous |
| 427 | ((d.coefficientAlong_continuousOn g k hA).mono |
| 428 | (Set.prod_mono Subset.rfl (subset_univ _))) ⟨hp, mem_univ _⟩ |
| 429 | have hfc : Continuous (fun t : Icc a b => d.forcingAlong g k ((p, Y), t)) := |
| 430 | SmoothPathFamily.slice_continuous |
| 431 | ((d.forcingAlong_continuousOn g k hB hf).mono |
| 432 | (Set.prod_mono Subset.rfl (subset_univ _))) ⟨hp, mem_univ _⟩ |
| 433 | have hd := ParametricODE.solutionExtension_hasDerivAt hab |
| 434 | (d.coefficientPath g k (p, Y)) 0 (d.forcingPath g k (p, Y)) s |
| 435 | unfold anchoredSolve |
| 436 | simpa only [coefficientPath, forcingPath, |
| 437 | SmoothPathFamily.pathFamily_apply _ _ hAc, SmoothPathFamily.pathFamily_apply _ _ hfc] |
| 438 | using hd |
| 439 | |
| 440 | theorem anchoredSolve_unique (k : Frequency) |
| 441 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 442 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 443 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 444 | {p : P} (hp : p ∈ U) (Y : Plane) {u : ℝ → E} (hu0 : u a = 0) |
| 445 | (hu : ∀ s ∈ Icc a b, HasDerivAt u |
| 446 | (d.coefficientAlong g k ((p, Y), s) (u s) + d.forcingAlong g k ((p, Y), s)) s) : |
| 447 | EqOn u (d.anchoredSolve g hab k (p, Y)) (Icc a b) := by |
| 448 | apply TangentODE.linear_solution_unique hab |
| 449 | (fun s => d.coefficientAlong g k ((p, Y), s)) |
| 450 | (fun s => d.forcingAlong g k ((p, Y), s)) |
| 451 | ((d.coefficientAlong_continuousOn g k hA).comp |
| 452 | (continuous_const.prodMk continuous_id).continuousOn |
| 453 | (fun s _ => ⟨⟨hp, mem_univ _⟩, mem_univ s⟩)) hu |
| 454 | (fun s hs => d.anchoredSolve_hasDerivAt g hab k hA hB hf hp Y ⟨s, hs⟩) |
| 455 | rw [d.anchoredSolve_initial] |
| 456 | exact hu0 |
| 457 | |
| 458 | end LinearData |
| 459 | |
| 460 | /-! ## Localization and the actual common-torus field -/ |
| 461 | |
| 462 | namespace Geometry |
| 463 | |
| 464 | theorem cutoff_as_translate (g : Geometry) (κ : Plane → ℝ) (k : Frequency) (Y : Plane) : |
| 465 | κ (g.coordinates k Y) = TorusAverages.nativeField g.basis g.center κ |
| 466 | (TorusAverages.latticePoint (-k) + coverPower g.gap Y) := by |
| 467 | have hneg : TorusAverages.latticePoint (-k) = -TorusAverages.latticePoint k := by |
| 468 | ext <;> simp [TorusAverages.latticePoint] |
| 469 | unfold coordinates TorusAverages.nativeField |
| 470 | rw [hneg] |
| 471 | congr 2 |
| 472 | abel |
| 473 | |
| 474 | theorem finite_copy_cutoffs (g : Geometry) {κ : Plane → ℝ} |
| 475 | (hκ : HasCompactSupport κ) (R : ℝ) : |
| 476 | ∃ s : Finset Frequency, ∀ Y : Plane, ‖Y‖ ≤ R → |
| 477 | ∀ k : Frequency, k ∉ s → κ (g.coordinates k Y) = 0 := by |
| 478 | classical |
| 479 | obtain ⟨s, hs⟩ := TorusAverages.finite_translates_on_ball |
| 480 | (TorusAverages.nativeField_hasCompactSupport g.basis g.center hκ) ((6 : ℝ) ^ g.gap * R) |
| 481 | refine ⟨s.image Neg.neg, ?_⟩ |
| 482 | intro Y hY k hk |
| 483 | rw [g.cutoff_as_translate κ k Y] |
| 484 | apply hs _ ((norm_coverPower_le g.gap Y).trans |
| 485 | (mul_le_mul_of_nonneg_left hY (by positivity))) (-k) |
| 486 | intro hneg |
| 487 | exact hk (Finset.mem_image.mpr ⟨-k, hneg, neg_neg k⟩) |
| 488 | |
| 489 | end Geometry |
| 490 | |
| 491 | namespace LinearData |
| 492 | |
| 493 | variable [CompleteSpace E] {a b : ℝ} |
| 494 | variable (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 495 | |
| 496 | noncomputable def localizedCopy (κ : Plane → ℝ) (k : Frequency) (p : P × Plane) : E := |
| 497 | κ (g.coordinates k p.2) • d.copySolve g hab k p |
| 498 | |
| 499 | /-- The actual sum of localized copy solves. Sources in different native |
| 500 | copies are evaluated at their own absolute-lift points. -/ |
| 501 | noncomputable def commonSolve (κ : Plane → ℝ) (p : P × Plane) : E := |
| 502 | ∑' k : Frequency, d.localizedCopy g hab κ k p |
| 503 | |
| 504 | end LinearData |
| 505 | |
| 506 | end Paths |
| 507 | |
| 508 | /-! ## A function on the quotient torus, not merely a periodic lift -/ |
| 509 | |
| 510 | namespace LinearData |
| 511 | |
| 512 | variable {P V E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 513 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 514 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 515 | {a b : ℝ} (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 516 | |
| 517 | /-! Joint regularity is derived from the actual ODE construction. -/ |
| 518 | |
| 519 | end LinearData |
| 520 | |
| 521 | /-! ## Bounded covering gaps and actual derivative costs -/ |
| 522 | |
| 523 | noncomputable def coveringBound (D : ℕ) : ℝ := |
| 524 | 1 + ∑ d ∈ Finset.range (D + 1), |
| 525 | (‖(coverPower d : Plane →L[ℝ] Plane)‖ + ‖((coverPower d).symm : Plane →L[ℝ] Plane)‖) |
| 526 | |
| 527 | theorem coveringBound_pos (D : ℕ) : 0 < coveringBound D := by |
| 528 | unfold coveringBound |
| 529 | positivity |
| 530 | |
| 531 | theorem coveringNorm_le_bound {d D : ℕ} (hd : d ≤ D) : |
| 532 | ‖(coverPower d : Plane →L[ℝ] Plane)‖ ≤ coveringBound D := by |
| 533 | have hm : d ∈ Finset.range (D + 1) := Finset.mem_range.mpr (Nat.lt_succ_of_le hd) |
| 534 | have hs := Finset.single_le_sum |
| 535 | (f := fun i => ‖(coverPower i : Plane →L[ℝ] Plane)‖ + |
| 536 | ‖((coverPower i).symm : Plane →L[ℝ] Plane)‖) |
| 537 | (fun i _ => add_nonneg (norm_nonneg _) (norm_nonneg _)) hm |
| 538 | exact ((le_add_of_nonneg_right (norm_nonneg ((coverPower d).symm : Plane →L[ℝ] Plane))).trans hs).trans |
| 539 | (le_add_of_nonneg_left zero_le_one) |
| 540 | |
| 541 | theorem inverseCoveringNorm_le_bound {d D : ℕ} (hd : d ≤ D) : |
| 542 | ‖((coverPower d).symm : Plane →L[ℝ] Plane)‖ ≤ coveringBound D := by |
| 543 | have hm : d ∈ Finset.range (D + 1) := Finset.mem_range.mpr (Nat.lt_succ_of_le hd) |
| 544 | have hs := Finset.single_le_sum |
| 545 | (f := fun i => ‖(coverPower i : Plane →L[ℝ] Plane)‖ + |
| 546 | ‖((coverPower i).symm : Plane →L[ℝ] Plane)‖) |
| 547 | (fun i _ => add_nonneg (norm_nonneg _) (norm_nonneg _)) hm |
| 548 | exact ((le_add_of_nonneg_left (norm_nonneg (coverPower d : Plane →L[ℝ] Plane))).trans hs).trans |
| 549 | (le_add_of_nonneg_left zero_le_one) |
| 550 | |
| 551 | namespace Geometry |
| 552 | |
| 553 | variable (g : Geometry) |
| 554 | |
| 555 | noncomputable def coordinateLinear : Plane →L[ℝ] Plane := |
| 556 | (g.basis.symm : Plane →L[ℝ] Plane).comp (coverPower g.gap : Plane →L[ℝ] Plane) |
| 557 | |
| 558 | noncomputable def pointLinear : Plane →L[ℝ] Plane := |
| 559 | ((coverPower g.gap).symm : Plane →L[ℝ] Plane).comp (g.basis : Plane →L[ℝ] Plane) |
| 560 | |
| 561 | theorem coordinates_eq_affine (k : Frequency) (Y : Plane) : |
| 562 | g.coordinates k Y = g.coordinates k 0 + g.coordinateLinear Y := by |
| 563 | simp only [coordinates, coordinateLinear, ContinuousLinearMap.comp_apply, map_sub, map_zero] |
| 564 | simp only [ContinuousLinearEquiv.coe_coe] |
| 565 | abel |
| 566 | |
| 567 | theorem norm_coordinateLinear_le {D : ℕ} (hd : g.gap ≤ D) : |
| 568 | ‖g.coordinateLinear‖ ≤ ‖(g.basis.symm : Plane →L[ℝ] Plane)‖ * coveringBound D := |
| 569 | (ContinuousLinearMap.opNorm_comp_le _ _).trans |
| 570 | (mul_le_mul_of_nonneg_left (coveringNorm_le_bound hd) (norm_nonneg _)) |
| 571 | |
| 572 | theorem norm_pointLinear_le {D : ℕ} (hd : g.gap ≤ D) : |
| 573 | ‖g.pointLinear‖ ≤ coveringBound D * ‖(g.basis : Plane →L[ℝ] Plane)‖ := |
| 574 | (ContinuousLinearMap.opNorm_comp_le _ _).trans |
| 575 | (mul_le_mul_of_nonneg_right (inverseCoveringNorm_le_bound hd) (norm_nonneg _)) |
| 576 | |
| 577 | end Geometry |
| 578 | |
| 579 | /-- All actual derivative orders of an affine pullback have the expected |
| 580 | operator-norm cost. No independent jet family is supplied. -/ |
| 581 | theorem norm_iteratedFDeriv_affine_le {X Y W : Type} |
| 582 | [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 583 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 584 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 585 | {f : Y → W} (hf : ContDiff ℝ ∞ f) (L : X →L[ℝ] Y) (c : Y) (x : X) (n : ℕ) : |
| 586 | ‖iteratedFDeriv ℝ n (fun z => f (c + L z)) x‖ ≤ |
| 587 | ‖iteratedFDeriv ℝ n f (c + L x)‖ * ‖L‖ ^ n := by |
| 588 | have hh : ContDiff ℝ ∞ (fun z => f (c + z)) := |
| 589 | hf.comp (contDiff_const.add contDiff_id) |
| 590 | have hd := L.iteratedFDeriv_comp_right hh x (i := n) |
| 591 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl n) |
| 592 | change ‖iteratedFDeriv ℝ n ((fun z => f (c + z)) ∘ L) x‖ ≤ _ |
| 593 | rw [hd] |
| 594 | simpa only [iteratedFDeriv_comp_add_left, Finset.prod_const, Finset.card_univ, |
| 595 | Fintype.card_fin] using |
| 596 | (iteratedFDeriv ℝ n (fun z => f (c + z)) (L x)).norm_compContinuousLinearMap_le |
| 597 | (fun _ : Fin n => L) |
| 598 | |
| 599 | /-! ## Concrete projected tangent equation -/ |
| 600 | |
| 601 | noncomputable def negativeTangentProjection {H : Type} [NormedAddCommGroup H] |
| 602 | [InnerProductSpace ℝ H] (n : H) : H →L[ℝ] H := |
| 603 | -(ContinuousLinearMap.id ℝ H - (innerSL ℝ n).smulRight ((⟪n, n⟫_ℝ)⁻¹ • n)) |
| 604 | |
| 605 | theorem negativeTangentProjection_apply {H : Type} [NormedAddCommGroup H] |
| 606 | [InnerProductSpace ℝ H] (n x : H) : |
| 607 | negativeTangentProjection n x = -TangentProjection.tangentProj n x := by |
| 608 | simp only [negativeTangentProjection, _root_.neg_apply, |
| 609 | _root_.sub_apply, ContinuousLinearMap.id_apply, |
| 610 | ContinuousLinearMap.smulRight_apply, innerSL_apply_apply, smul_smul, |
| 611 | TangentProjection.tangentProj, div_eq_mul_inv] |
| 612 | |
| 613 | /-- All quantities in the actual projected tangent equation, before solving. |
| 614 | The native normal and its slot derivative are explicit input fields. -/ |
| 615 | structure TangentData (P H : Type) [NormedAddCommGroup H] [InnerProductSpace ℝ H] where |
| 616 | normal : P × Plane → H |
| 617 | normalDot : P × Plane → H |
| 618 | action : P × Plane → H →L[ℝ] H |
| 619 | damping : P × Plane → ℝ |
| 620 | source : P × Plane → H |
| 621 | |
| 622 | namespace TangentData |
| 623 | |
| 624 | variable {P H : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 625 | [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 626 | (t : TangentData P H) (g : Geometry) {a b : ℝ} (hab : a ≤ b) |
| 627 | |
| 628 | noncomputable def linearData : LinearData P H H where |
| 629 | coefficient z := TangentODE.projectedOperator (t.normal z) (t.normalDot z) |
| 630 | (t.action z) (t.damping z) |
| 631 | forcingMap z := negativeTangentProjection (t.normal z) |
| 632 | source := t.source |
| 633 | |
| 634 | /-- The concrete copy solve satisfies equation (27) with the source evaluated |
| 635 | at the actual lifted earlier point, including the normal-motion term. -/ |
| 636 | theorem anchoredSolve_projected_equation {U : Set P} (k : Frequency) |
| 637 | (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 638 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 639 | (hf : ContinuousOn t.source (U ×ˢ univ)) {p : P} (hp : p ∈ U) |
| 640 | (Y : Plane) (s : Icc a b) : |
| 641 | let z := (p, ((g.coordinates k Y).1, (s : ℝ))) |
| 642 | HasDerivAt (t.linearData.anchoredSolve g hab k (p, Y)) |
| 643 | (TangentProjection.projectedRhs (t.normal z) (t.normalDot z) |
| 644 | (t.linearData.anchoredSolve g hab k (p, Y) s) |
| 645 | (t.action z (t.linearData.anchoredSolve g hab k (p, Y) s)) |
| 646 | (t.source (p, g.path k Y s)) (t.damping z)) s := by |
| 647 | have hd := t.linearData.anchoredSolve_hasDerivAt g hab k hA hB hf hp Y s |
| 648 | simpa only [LinearData.coefficientAlong, LinearData.forcingAlong, linearData, |
| 649 | negativeTangentProjection_apply, ← sub_eq_add_neg, TangentODE.projectedOperator_apply] |
| 650 | using hd |
| 651 | |
| 652 | end TangentData |
| 653 | |
| 654 | end NavierStokes.CommonCoverSolve |