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 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 316 | theorem copySolve_at_entry (k : Frequency) (p : P) (xi : ℝ) : |
| 317 | d.copySolve g hab k (p, g.point k (xi, a)) = 0 := by |
| 318 | unfold copySolve |
| 319 | rw [g.coordinates_point] |
| 320 | exact d.anchoredSolve_initial g hab k _ |
| 321 | |
| 322 | end LinearData |
| 323 | |
| 324 | theorem solutionExtension_zero {a b : ℝ} (hab : a ≤ b) |
| 325 | (A : ParametricODE.Coefficient a b E) [CompleteSpace E] (s : ℝ) : |
| 326 | ParametricODE.solutionExtension hab A 0 0 s = 0 := by |
| 327 | have hsol : ParametricODE.solution hab A 0 0 = 0 := by |
| 328 | simp [ParametricODE.solution, ParametricODE.source] |
| 329 | have happ : ParametricODE.applyCoefficient A 0 = 0 := by |
| 330 | ext t |
| 331 | simp [ParametricODE.applyCoefficient] |
| 332 | simp [ParametricODE.solutionExtension, hsol, happ, ParametricODE.extend] |
| 333 | |
| 334 | namespace LinearData |
| 335 | |
| 336 | variable [CompleteSpace E] {a b : ℝ} |
| 337 | variable (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 338 | |
| 339 | omit [CompleteSpace E] in |
| 340 | theorem forcingPath_zero_of_source_zero (k : Frequency) (p : P) (Y : Plane) |
| 341 | (hf : ∀ s ∈ Icc a b, d.source (p, g.path k Y s) = 0) : |
| 342 | d.forcingPath (a := a) (b := b) g k (p, Y) = 0 := by |
| 343 | have h : d.forcingPath (a := a) (b := b) g k (p, Y) = |
| 344 | SmoothPathFamily.pathFamily (a := a) (b := b) (fun _ : (P × Plane) × ℝ => (0 : E)) |
| 345 | (p, Y) := by |
| 346 | apply pathFamily_congr_slice |
| 347 | intro s |
| 348 | simp only [forcingAlong, hf s s.2, map_zero] |
| 349 | rw [h] |
| 350 | ext t |
| 351 | rw [SmoothPathFamily.pathFamily_apply _ _ continuous_const] |
| 352 | rfl |
| 353 | |
| 354 | /-- Vanishing along the entire source path forces the constructed zero-entry |
| 355 | solution to vanish. No vanishing assumption on the output is used. -/ |
| 356 | theorem anchoredSolve_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) (eta : ℝ) : |
| 358 | d.anchoredSolve g hab k (p, Y) eta = 0 := by |
| 359 | unfold anchoredSolve |
| 360 | rw [d.forcingPath_zero_of_source_zero g k p Y hf] |
| 361 | exact solutionExtension_zero hab _ eta |
| 362 | |
| 363 | theorem copySolve_zero_of_source_zero (k : Frequency) (p : P) (Y : Plane) |
| 364 | (hf : ∀ s ∈ Icc a b, d.source (p, g.path k Y s) = 0) : |
| 365 | d.copySolve g hab k (p, Y) = 0 := d.anchoredSolve_zero_of_source_zero g hab k p Y hf _ |
| 366 | |
| 367 | end LinearData |
| 368 | |
| 369 | namespace Geometry |
| 370 | |
| 371 | theorem nativeArgument_contDiff (g : Geometry) (k : Frequency) : |
| 372 | ContDiff ℝ ∞ (fun w : (P × Plane) × ℝ => |
| 373 | (w.1.1, ((g.coordinates k w.1.2).1, w.2))) := |
| 374 | contDiff_fst.fst.prodMk |
| 375 | (((g.coordinates_contDiff k).comp contDiff_fst.snd).fst.prodMk contDiff_snd) |
| 376 | |
| 377 | theorem pathArgument_contDiff (g : Geometry) (k : Frequency) : |
| 378 | ContDiff ℝ ∞ (fun w : (P × Plane) × ℝ => (w.1.1, g.path k w.1.2 w.2)) := by |
| 379 | have hp : ContDiff ℝ ∞ (fun w : (P × Plane) × ℝ => w.1.1) := contDiff_fst.fst |
| 380 | have ht : ContDiff ℝ ∞ (fun w : (P × Plane) × ℝ => ((g.coordinates k w.1.2).1, w.2)) := |
| 381 | ((g.coordinates_contDiff k).comp contDiff_fst.snd).fst.prodMk contDiff_snd |
| 382 | exact hp.prodMk ((g.point_contDiff k).comp ht) |
| 383 | |
| 384 | end Geometry |
| 385 | |
| 386 | namespace LinearData |
| 387 | |
| 388 | variable (d : LinearData P V E) (g : Geometry) {U : Set P} |
| 389 | |
| 390 | theorem coefficientAlong_continuousOn (k : Frequency) |
| 391 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) : |
| 392 | ContinuousOn (d.coefficientAlong g k) ((U ×ˢ univ) ×ˢ univ) := |
| 393 | hA.comp (g.nativeArgument_contDiff k).continuous.continuousOn |
| 394 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩) |
| 395 | |
| 396 | theorem forcingAlong_continuousOn (k : Frequency) |
| 397 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 398 | (hf : ContinuousOn d.source (U ×ˢ univ)) : |
| 399 | ContinuousOn (d.forcingAlong g k) ((U ×ˢ univ) ×ˢ univ) := |
| 400 | (hB.comp (g.nativeArgument_contDiff k).continuous.continuousOn |
| 401 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩)).clm_apply |
| 402 | (hf.comp (g.pathArgument_contDiff k).continuous.continuousOn |
| 403 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩)) |
| 404 | |
| 405 | theorem coefficientAlong_contDiffOn (k : Frequency) |
| 406 | (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) : |
| 407 | ContDiffOn ℝ ∞ (d.coefficientAlong g k) ((U ×ˢ univ) ×ˢ univ) := |
| 408 | hA.comp (g.nativeArgument_contDiff k).contDiffOn |
| 409 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩) |
| 410 | |
| 411 | theorem forcingAlong_contDiffOn (k : Frequency) |
| 412 | (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) |
| 413 | (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) : |
| 414 | ContDiffOn ℝ ∞ (d.forcingAlong g k) ((U ×ˢ univ) ×ˢ univ) := |
| 415 | (hB.comp (g.nativeArgument_contDiff k).contDiffOn |
| 416 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩)).clm_apply |
| 417 | (hf.comp (g.pathArgument_contDiff k).contDiffOn |
| 418 | (fun _ hw => ⟨hw.1.1, mem_univ _⟩)) |
| 419 | |
| 420 | variable [CompleteSpace E] {a b : ℝ} (hab : a ≤ b) |
| 421 | |
| 422 | /-- The constructed extension satisfies the original forced equation on the |
| 423 | copy path, including both endpoints as a differentiable extension. -/ |
| 424 | theorem anchoredSolve_hasDerivAt (k : Frequency) |
| 425 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 426 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 427 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 428 | {p : P} (hp : p ∈ U) (Y : Plane) (s : Icc a b) : |
| 429 | HasDerivAt (d.anchoredSolve g hab k (p, Y)) |
| 430 | (d.coefficientAlong g k ((p, Y), s) (d.anchoredSolve g hab k (p, Y) s) + |
| 431 | d.forcingAlong g k ((p, Y), s)) s := by |
| 432 | have hAc : Continuous (fun t : Icc a b => d.coefficientAlong g k ((p, Y), t)) := |
| 433 | SmoothPathFamily.slice_continuous |
| 434 | ((d.coefficientAlong_continuousOn g k hA).mono |
| 435 | (Set.prod_mono Subset.rfl (subset_univ _))) ⟨hp, mem_univ _⟩ |
| 436 | have hfc : Continuous (fun t : Icc a b => d.forcingAlong g k ((p, Y), t)) := |
| 437 | SmoothPathFamily.slice_continuous |
| 438 | ((d.forcingAlong_continuousOn g k hB hf).mono |
| 439 | (Set.prod_mono Subset.rfl (subset_univ _))) ⟨hp, mem_univ _⟩ |
| 440 | have hd := ParametricODE.solutionExtension_hasDerivAt hab |
| 441 | (d.coefficientPath g k (p, Y)) 0 (d.forcingPath g k (p, Y)) s |
| 442 | unfold anchoredSolve |
| 443 | simpa only [coefficientPath, forcingPath, |
| 444 | SmoothPathFamily.pathFamily_apply _ _ hAc, SmoothPathFamily.pathFamily_apply _ _ hfc] |
| 445 | using hd |
| 446 | |
| 447 | theorem copySolve_alongPath_hasDerivAt (k : Frequency) |
| 448 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 449 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 450 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 451 | {p : P} (hp : p ∈ U) (Y : Plane) (s : Icc a b) : |
| 452 | HasDerivAt (fun t => d.copySolve g hab k (p, g.path k Y t)) |
| 453 | (d.coefficientAlong g k ((p, Y), s) (d.copySolve g hab k (p, g.path k Y s)) + |
| 454 | d.forcingAlong g k ((p, Y), s)) s := by |
| 455 | simpa only [copySolve_path] using d.anchoredSolve_hasDerivAt g hab k hA hB hf hp Y s |
| 456 | |
| 457 | theorem anchoredSolve_unique (k : Frequency) |
| 458 | (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 459 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 460 | (hf : ContinuousOn d.source (U ×ˢ univ)) |
| 461 | {p : P} (hp : p ∈ U) (Y : Plane) {u : ℝ → E} (hu0 : u a = 0) |
| 462 | (hu : ∀ s ∈ Icc a b, HasDerivAt u |
| 463 | (d.coefficientAlong g k ((p, Y), s) (u s) + d.forcingAlong g k ((p, Y), s)) s) : |
| 464 | EqOn u (d.anchoredSolve g hab k (p, Y)) (Icc a b) := by |
| 465 | apply TangentODE.linear_solution_unique hab |
| 466 | (fun s => d.coefficientAlong g k ((p, Y), s)) |
| 467 | (fun s => d.forcingAlong g k ((p, Y), s)) |
| 468 | ((d.coefficientAlong_continuousOn g k hA).comp |
| 469 | (continuous_const.prodMk continuous_id).continuousOn |
| 470 | (fun s _ => ⟨⟨hp, mem_univ _⟩, mem_univ s⟩)) hu |
| 471 | (fun s hs => d.anchoredSolve_hasDerivAt g hab k hA hB hf hp Y ⟨s, hs⟩) |
| 472 | rw [d.anchoredSolve_initial] |
| 473 | exact hu0 |
| 474 | |
| 475 | end LinearData |
| 476 | |
| 477 | /-! ## Localization and the actual common-torus field -/ |
| 478 | |
| 479 | namespace Geometry |
| 480 | |
| 481 | theorem cutoff_as_translate (g : Geometry) (κ : Plane → ℝ) (k : Frequency) (Y : Plane) : |
| 482 | κ (g.coordinates k Y) = TorusAverages.nativeField g.basis g.center κ |
| 483 | (TorusAverages.latticePoint (-k) + coverPower g.gap Y) := by |
| 484 | have hneg : TorusAverages.latticePoint (-k) = -TorusAverages.latticePoint k := by |
| 485 | ext <;> simp [TorusAverages.latticePoint] |
| 486 | unfold coordinates TorusAverages.nativeField |
| 487 | rw [hneg] |
| 488 | congr 2 |
| 489 | abel |
| 490 | |
| 491 | theorem finite_copy_cutoffs (g : Geometry) {κ : Plane → ℝ} |
| 492 | (hκ : HasCompactSupport κ) (R : ℝ) : |
| 493 | ∃ s : Finset Frequency, ∀ Y : Plane, ‖Y‖ ≤ R → |
| 494 | ∀ k : Frequency, k ∉ s → κ (g.coordinates k Y) = 0 := by |
| 495 | classical |
| 496 | obtain ⟨s, hs⟩ := TorusAverages.finite_translates_on_ball |
| 497 | (TorusAverages.nativeField_hasCompactSupport g.basis g.center hκ) ((6 : ℝ) ^ g.gap * R) |
| 498 | refine ⟨s.image Neg.neg, ?_⟩ |
| 499 | intro Y hY k hk |
| 500 | rw [g.cutoff_as_translate κ k Y] |
| 501 | apply hs _ ((norm_coverPower_le g.gap Y).trans |
| 502 | (mul_le_mul_of_nonneg_left hY (by positivity))) (-k) |
| 503 | intro hneg |
| 504 | exact hk (Finset.mem_image.mpr ⟨-k, hneg, neg_neg k⟩) |
| 505 | |
| 506 | end Geometry |
| 507 | |
| 508 | namespace LinearData |
| 509 | |
| 510 | variable [CompleteSpace E] {a b : ℝ} |
| 511 | variable (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 512 | |
| 513 | noncomputable def localizedCopy (κ : Plane → ℝ) (k : Frequency) (p : P × Plane) : E := |
| 514 | κ (g.coordinates k p.2) • d.copySolve g hab k p |
| 515 | |
| 516 | /-- The actual sum of localized copy solves. Sources in different native |
| 517 | copies are evaluated at their own absolute-lift points. -/ |
| 518 | noncomputable def commonSolve (κ : Plane → ℝ) (p : P × Plane) : E := |
| 519 | ∑' k : Frequency, d.localizedCopy g hab κ k p |
| 520 | |
| 521 | theorem localizedCopy_deck (κ : Plane → ℝ) (k n : Frequency) |
| 522 | (p : P) (hp : PeriodicAt d.source p) (Y : Plane) : |
| 523 | d.localizedCopy g hab κ (k + coverIndex g.gap n) (p, Y + TorusAverages.latticePoint n) = |
| 524 | d.localizedCopy g hab κ k (p, Y) := by |
| 525 | unfold localizedCopy |
| 526 | rw [g.coordinates_deck, d.copySolve_deck g hab k n p hp] |
| 527 | |
| 528 | /-- Common-torus periodicity follows by reindexing the actual copy sum. |
| 529 | The source is required to be periodic only in the common variable. -/ |
| 530 | theorem commonSolve_periodic (κ : Plane → ℝ) (p : P) (hp : PeriodicAt d.source p) |
| 531 | (Y : Plane) (n : Frequency) : |
| 532 | d.commonSolve g hab κ (p, Y + TorusAverages.latticePoint n) = |
| 533 | d.commonSolve g hab κ (p, Y) := by |
| 534 | unfold commonSolve |
| 535 | calc |
| 536 | (∑' k : Frequency, d.localizedCopy g hab κ k (p, Y + TorusAverages.latticePoint n)) = |
| 537 | ∑' k : Frequency, d.localizedCopy g hab κ (k + coverIndex g.gap n) |
| 538 | (p, Y + TorusAverages.latticePoint n) := |
| 539 | ((Equiv.addRight (coverIndex g.gap n)).tsum_eq |
| 540 | (fun k => d.localizedCopy g hab κ k (p, Y + TorusAverages.latticePoint n))).symm |
| 541 | _ = ∑' k : Frequency, d.localizedCopy g hab κ k (p, Y) := by |
| 542 | apply tsum_congr |
| 543 | intro k |
| 544 | exact d.localizedCopy_deck g hab κ k n p hp Y |
| 545 | |
| 546 | omit [NormedSpace ℝ P] in |
| 547 | theorem commonSolve_eventually_eq_sum {κ : Plane → ℝ} (hκ : HasCompactSupport κ) |
| 548 | (p : P × Plane) : |
| 549 | ∃ s : Finset Frequency, |
| 550 | d.commonSolve g hab κ =ᶠ[𝓝 p] fun q => ∑ k ∈ s, d.localizedCopy g hab κ k q := by |
| 551 | obtain ⟨s, hs⟩ := g.finite_copy_cutoffs hκ (‖p.2‖ + 1) |
| 552 | refine ⟨s, ?_⟩ |
| 553 | have hn : {q : P × Plane | ‖q.2‖ < ‖p.2‖ + 1} ∈ 𝓝 p := |
| 554 | (isOpen_lt continuous_snd.norm continuous_const).mem_nhds (by simp) |
| 555 | filter_upwards [hn] with q hq |
| 556 | apply tsum_eq_sum |
| 557 | intro k hk |
| 558 | unfold localizedCopy |
| 559 | rw [hs q.2 hq.le k hk, zero_smul] |
| 560 | |
| 561 | theorem commonSolve_contDiffOn_of_copies {U : Set P} (hU : IsOpen U) |
| 562 | {κ : Plane → ℝ} (hκ : HasCompactSupport κ) |
| 563 | (hc : ∀ k : Frequency, ContDiffOn ℝ ∞ (d.localizedCopy g hab κ k) (U ×ˢ univ)) : |
| 564 | ContDiffOn ℝ ∞ (d.commonSolve g hab κ) (U ×ˢ univ) := by |
| 565 | apply (hU.prod isOpen_univ).contDiffOn_iff.mpr |
| 566 | intro p hp |
| 567 | obtain ⟨s, hs⟩ := d.commonSolve_eventually_eq_sum g hab hκ p |
| 568 | have hsum : ContDiffAt ℝ ∞ (fun q => ∑ k ∈ s, d.localizedCopy g hab κ k q) p := |
| 569 | ContDiffAt.sum (fun k _ => (hc k).contDiffAt ((hU.prod isOpen_univ).mem_nhds hp)) |
| 570 | exact hsum.congr_of_eventuallyEq hs |
| 571 | |
| 572 | end LinearData |
| 573 | |
| 574 | end Paths |
| 575 | |
| 576 | /-! ## A function on the quotient torus, not merely a periodic lift -/ |
| 577 | |
| 578 | def LatticePeriodic {W : Type} (f : Plane → W) : Prop := |
| 579 | ∀ Y : Plane, ∀ k : Frequency, f (Y + TorusAverages.latticePoint k) = f Y |
| 580 | |
| 581 | theorem latticePeriodic_first {W : Type} {f : Plane → W} (hf : LatticePeriodic f) (y : ℝ) : |
| 582 | Function.Periodic (fun x => f (x, y)) 1 := by |
| 583 | intro x |
| 584 | simpa [TorusAverages.latticePoint] using hf (x, y) (1, 0) |
| 585 | |
| 586 | theorem latticePeriodic_second {W : Type} {f : Plane → W} (hf : LatticePeriodic f) (x : ℝ) : |
| 587 | Function.Periodic (fun y => f (x, y)) 1 := by |
| 588 | intro y |
| 589 | simpa [TorusAverages.latticePoint] using hf (x, y) (0, 1) |
| 590 | |
| 591 | noncomputable def firstDescent {W : Type} (f : Plane → W) (hf : LatticePeriodic f) |
| 592 | (z : UnitAddCircle) (y : ℝ) : W := (latticePeriodic_first hf y).lift z |
| 593 | |
| 594 | theorem firstDescent_periodic {W : Type} (f : Plane → W) (hf : LatticePeriodic f) |
| 595 | (z : UnitAddCircle) : Function.Periodic (firstDescent f hf z) 1 := by |
| 596 | intro y |
| 597 | refine Quotient.inductionOn' z (fun x => ?_) |
| 598 | change f (x, y + 1) = f (x, y) |
| 599 | exact latticePeriodic_second hf x y |
| 600 | |
| 601 | noncomputable def torusDescent {W : Type} (f : Plane → W) (hf : LatticePeriodic f) |
| 602 | (z : Torus) : W := (firstDescent_periodic f hf z.1).lift z.2 |
| 603 | |
| 604 | namespace LinearData |
| 605 | |
| 606 | variable {P V E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 607 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 608 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 609 | {a b : ℝ} (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 610 | |
| 611 | /-- The constructed common-torus solution is obtained by a genuine quotient |
| 612 | lift of the reindexed copy sum. -/ |
| 613 | noncomputable def commonOnTorus (κ : Plane → ℝ) (p : P) (hp : PeriodicAt d.source p) : |
| 614 | Torus → E := torusDescent (fun Y => d.commonSolve g hab κ (p, Y)) |
| 615 | (d.commonSolve_periodic g hab κ p hp) |
| 616 | |
| 617 | theorem commonOnTorus_coe (κ : Plane → ℝ) (p : P) (hp : PeriodicAt d.source p) (Y : Plane) : |
| 618 | d.commonOnTorus g hab κ p hp (TorusAverages.quotientPoint Y) = |
| 619 | d.commonSolve g hab κ (p, Y) := rfl |
| 620 | |
| 621 | /-! Joint regularity is derived from the actual ODE construction. -/ |
| 622 | |
| 623 | theorem anchoredSolve_contDiffOn {U : Set P} (hU : IsOpen U) (k : Frequency) |
| 624 | (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) |
| 625 | (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) |
| 626 | (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) : |
| 627 | ContDiffOn ℝ ∞ (fun z : (P × Plane) × ℝ => d.anchoredSolve g hab k z.1 z.2) |
| 628 | ((U ×ˢ univ) ×ˢ Ioo a b) := by |
| 629 | exact JointODE.contDiffOn_solutionExtension_joint_interior hab (U ×ˢ univ) univ |
| 630 | (hU.prod isOpen_univ) isOpen_univ (subset_univ _) |
| 631 | (d.coefficientAlong g k) (fun _ => 0) (d.forcingAlong g k) |
| 632 | (d.coefficientAlong_contDiffOn g k hA) contDiffOn_const |
| 633 | (d.forcingAlong_contDiffOn g k hB hf) |
| 634 | |
| 635 | theorem copySolve_contDiffAt {U : Set P} (hU : IsOpen U) (k : Frequency) |
| 636 | (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) |
| 637 | (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) |
| 638 | (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) |
| 639 | {p : P × Plane} (hp : p.1 ∈ U) (heta : (g.coordinates k p.2).2 ∈ Ioo a b) : |
| 640 | ContDiffAt ℝ ∞ (d.copySolve g hab k) p := by |
| 641 | have hz : (p, (g.coordinates k p.2).2) ∈ ((U ×ˢ (univ : Set Plane)) ×ˢ Ioo a b) := |
| 642 | ⟨⟨hp, mem_univ _⟩, heta⟩ |
| 643 | have hs := (d.anchoredSolve_contDiffOn g hab hU k hA hB hf).contDiffAt |
| 644 | (((hU.prod isOpen_univ).prod isOpen_Ioo).mem_nhds hz) |
| 645 | have hc : ContDiff ℝ ∞ (fun q : P × Plane => (q, (g.coordinates k q.2).2)) := |
| 646 | contDiff_id.prodMk (((g.coordinates_contDiff k).comp contDiff_snd).snd) |
| 647 | have hcomp := hs.comp p hc.contDiffAt |
| 648 | exact hcomp |
| 649 | |
| 650 | /-- The localization cutoff is supported strictly inside the slot interval. |
| 651 | The clamped extension outside the interval is never claimed to be smooth. -/ |
| 652 | theorem localizedCopy_contDiffOn {U : Set P} (hU : IsOpen U) (k : Frequency) |
| 653 | (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) |
| 654 | (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) |
| 655 | (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) |
| 656 | {κ : Plane → ℝ} (hκ : ContDiff ℝ ∞ κ) |
| 657 | (hsupp : tsupport κ ⊆ univ ×ˢ Ioo a b) : |
| 658 | ContDiffOn ℝ ∞ (d.localizedCopy g hab κ k) (U ×ˢ univ) := by |
| 659 | apply (hU.prod isOpen_univ).contDiffOn_iff.mpr |
| 660 | intro p hp |
| 661 | have hc : ContDiff ℝ ∞ (fun q : P × Plane => g.coordinates k q.2) := |
| 662 | (g.coordinates_contDiff k).comp contDiff_snd |
| 663 | by_cases hmem : g.coordinates k p.2 ∈ tsupport κ |
| 664 | · exact ((hκ.comp hc).contDiffAt).smul |
| 665 | (d.copySolve_contDiffAt g hab hU k hA hB hf hp.1 (hsupp hmem).2) |
| 666 | · have hz : κ =ᶠ[𝓝 (g.coordinates k p.2)] (fun _ => 0) := |
| 667 | notMem_tsupport_iff_eventuallyEq.mp hmem |
| 668 | have hzero : d.localizedCopy g hab κ k =ᶠ[𝓝 p] (fun _ => (0 : E)) := by |
| 669 | filter_upwards [hz.comp_tendsto hc.continuous.continuousAt] with q hq |
| 670 | change κ (g.coordinates k q.2) = 0 at hq |
| 671 | simp only [localizedCopy, hq, zero_smul] |
| 672 | exact contDiffAt_const.congr_of_eventuallyEq hzero |
| 673 | |
| 674 | /-- The actual sum of native copy solves is jointly smooth in slow and common |
| 675 | torus coordinates. Local finiteness was proved from compact support. -/ |
| 676 | theorem commonSolve_contDiffOn {U : Set P} (hU : IsOpen U) |
| 677 | (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) |
| 678 | (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) |
| 679 | (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) |
| 680 | {κ : Plane → ℝ} (hκ : ContDiff ℝ ∞ κ) (hcκ : HasCompactSupport κ) |
| 681 | (hsupp : tsupport κ ⊆ univ ×ˢ Ioo a b) : |
| 682 | ContDiffOn ℝ ∞ (d.commonSolve g hab κ) (U ×ˢ univ) := |
| 683 | d.commonSolve_contDiffOn_of_copies g hab hU hcκ |
| 684 | (fun k => d.localizedCopy_contDiffOn g hab hU k hA hB hf hκ hsupp) |
| 685 | |
| 686 | end LinearData |
| 687 | |
| 688 | /-! ## Bounded covering gaps and actual derivative costs -/ |
| 689 | |
| 690 | noncomputable def coveringBound (D : ℕ) : ℝ := |
| 691 | 1 + ∑ d ∈ Finset.range (D + 1), |
| 692 | (‖(coverPower d : Plane →L[ℝ] Plane)‖ + ‖((coverPower d).symm : Plane →L[ℝ] Plane)‖) |
| 693 | |
| 694 | theorem coveringBound_pos (D : ℕ) : 0 < coveringBound D := by |
| 695 | unfold coveringBound |
| 696 | positivity |
| 697 | |
| 698 | theorem coveringNorm_le_bound {d D : ℕ} (hd : d ≤ D) : |
| 699 | ‖(coverPower d : Plane →L[ℝ] Plane)‖ ≤ coveringBound D := by |
| 700 | have hm : d ∈ Finset.range (D + 1) := Finset.mem_range.mpr (Nat.lt_succ_of_le hd) |
| 701 | have hs := Finset.single_le_sum |
| 702 | (f := fun i => ‖(coverPower i : Plane →L[ℝ] Plane)‖ + |
| 703 | ‖((coverPower i).symm : Plane →L[ℝ] Plane)‖) |
| 704 | (fun i _ => add_nonneg (norm_nonneg _) (norm_nonneg _)) hm |
| 705 | exact ((le_add_of_nonneg_right (norm_nonneg ((coverPower d).symm : Plane →L[ℝ] Plane))).trans hs).trans |
| 706 | (le_add_of_nonneg_left zero_le_one) |
| 707 | |
| 708 | theorem inverseCoveringNorm_le_bound {d D : ℕ} (hd : d ≤ D) : |
| 709 | ‖((coverPower d).symm : Plane →L[ℝ] Plane)‖ ≤ coveringBound D := by |
| 710 | have hm : d ∈ Finset.range (D + 1) := Finset.mem_range.mpr (Nat.lt_succ_of_le hd) |
| 711 | have hs := Finset.single_le_sum |
| 712 | (f := fun i => ‖(coverPower i : Plane →L[ℝ] Plane)‖ + |
| 713 | ‖((coverPower i).symm : Plane →L[ℝ] Plane)‖) |
| 714 | (fun i _ => add_nonneg (norm_nonneg _) (norm_nonneg _)) hm |
| 715 | exact ((le_add_of_nonneg_left (norm_nonneg (coverPower d : Plane →L[ℝ] Plane))).trans hs).trans |
| 716 | (le_add_of_nonneg_left zero_le_one) |
| 717 | |
| 718 | namespace Geometry |
| 719 | |
| 720 | variable (g : Geometry) |
| 721 | |
| 722 | noncomputable def coordinateLinear : Plane →L[ℝ] Plane := |
| 723 | (g.basis.symm : Plane →L[ℝ] Plane).comp (coverPower g.gap : Plane →L[ℝ] Plane) |
| 724 | |
| 725 | noncomputable def pointLinear : Plane →L[ℝ] Plane := |
| 726 | ((coverPower g.gap).symm : Plane →L[ℝ] Plane).comp (g.basis : Plane →L[ℝ] Plane) |
| 727 | |
| 728 | theorem coordinates_eq_affine (k : Frequency) (Y : Plane) : |
| 729 | g.coordinates k Y = g.coordinates k 0 + g.coordinateLinear Y := by |
| 730 | simp only [coordinates, coordinateLinear, ContinuousLinearMap.comp_apply, map_sub, map_zero] |
| 731 | simp only [ContinuousLinearEquiv.coe_coe] |
| 732 | abel |
| 733 | |
| 734 | theorem norm_coordinateLinear_le {D : ℕ} (hd : g.gap ≤ D) : |
| 735 | ‖g.coordinateLinear‖ ≤ ‖(g.basis.symm : Plane →L[ℝ] Plane)‖ * coveringBound D := |
| 736 | (ContinuousLinearMap.opNorm_comp_le _ _).trans |
| 737 | (mul_le_mul_of_nonneg_left (coveringNorm_le_bound hd) (norm_nonneg _)) |
| 738 | |
| 739 | theorem norm_pointLinear_le {D : ℕ} (hd : g.gap ≤ D) : |
| 740 | ‖g.pointLinear‖ ≤ coveringBound D * ‖(g.basis : Plane →L[ℝ] Plane)‖ := |
| 741 | (ContinuousLinearMap.opNorm_comp_le _ _).trans |
| 742 | (mul_le_mul_of_nonneg_right (inverseCoveringNorm_le_bound hd) (norm_nonneg _)) |
| 743 | |
| 744 | end Geometry |
| 745 | |
| 746 | /-- All actual derivative orders of an affine pullback have the expected |
| 747 | operator-norm cost. No independent jet family is supplied. -/ |
| 748 | theorem norm_iteratedFDeriv_affine_le {X Y W : Type} |
| 749 | [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 750 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 751 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 752 | {f : Y → W} (hf : ContDiff ℝ ∞ f) (L : X →L[ℝ] Y) (c : Y) (x : X) (n : ℕ) : |
| 753 | ‖iteratedFDeriv ℝ n (fun z => f (c + L z)) x‖ ≤ |
| 754 | ‖iteratedFDeriv ℝ n f (c + L x)‖ * ‖L‖ ^ n := by |
| 755 | have hh : ContDiff ℝ ∞ (fun z => f (c + z)) := |
| 756 | hf.comp (contDiff_const.add contDiff_id) |
| 757 | have hd := L.iteratedFDeriv_comp_right hh x (i := n) |
| 758 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl n) |
| 759 | change ‖iteratedFDeriv ℝ n ((fun z => f (c + z)) ∘ L) x‖ ≤ _ |
| 760 | rw [hd] |
| 761 | simpa only [iteratedFDeriv_comp_add_left, Finset.prod_const, Finset.card_univ, |
| 762 | Fintype.card_fin] using |
| 763 | (iteratedFDeriv ℝ n (fun z => f (c + z)) (L x)).norm_compContinuousLinearMap_le |
| 764 | (fun _ : Fin n => L) |
| 765 | |
| 766 | /-! ## Concrete projected tangent equation -/ |
| 767 | |
| 768 | noncomputable def negativeTangentProjection {H : Type} [NormedAddCommGroup H] |
| 769 | [InnerProductSpace ℝ H] (n : H) : H →L[ℝ] H := |
| 770 | -(ContinuousLinearMap.id ℝ H - (innerSL ℝ n).smulRight ((⟪n, n⟫_ℝ)⁻¹ • n)) |
| 771 | |
| 772 | theorem negativeTangentProjection_apply {H : Type} [NormedAddCommGroup H] |
| 773 | [InnerProductSpace ℝ H] (n x : H) : |
| 774 | negativeTangentProjection n x = -TangentProjection.tangentProj n x := by |
| 775 | simp only [negativeTangentProjection, _root_.neg_apply, |
| 776 | _root_.sub_apply, ContinuousLinearMap.id_apply, |
| 777 | ContinuousLinearMap.smulRight_apply, innerSL_apply_apply, smul_smul, |
| 778 | TangentProjection.tangentProj, div_eq_mul_inv] |
| 779 | |
| 780 | /-- All quantities in the actual projected tangent equation, before solving. |
| 781 | The native normal and its slot derivative are explicit input fields. -/ |
| 782 | structure TangentData (P H : Type) [NormedAddCommGroup H] [InnerProductSpace ℝ H] where |
| 783 | normal : P × Plane → H |
| 784 | normalDot : P × Plane → H |
| 785 | action : P × Plane → H →L[ℝ] H |
| 786 | damping : P × Plane → ℝ |
| 787 | source : P × Plane → H |
| 788 | |
| 789 | namespace TangentData |
| 790 | |
| 791 | variable {P H : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 792 | [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 793 | (t : TangentData P H) (g : Geometry) {a b : ℝ} (hab : a ≤ b) |
| 794 | |
| 795 | noncomputable def linearData : LinearData P H H where |
| 796 | coefficient z := TangentODE.projectedOperator (t.normal z) (t.normalDot z) |
| 797 | (t.action z) (t.damping z) |
| 798 | forcingMap z := negativeTangentProjection (t.normal z) |
| 799 | source := t.source |
| 800 | |
| 801 | /-- The concrete copy solve satisfies equation (27) with the source evaluated |
| 802 | at the actual lifted earlier point, including the normal-motion term. -/ |
| 803 | theorem anchoredSolve_projected_equation {U : Set P} (k : Frequency) |
| 804 | (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 805 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 806 | (hf : ContinuousOn t.source (U ×ˢ univ)) {p : P} (hp : p ∈ U) |
| 807 | (Y : Plane) (s : Icc a b) : |
| 808 | let z := (p, ((g.coordinates k Y).1, (s : ℝ))) |
| 809 | HasDerivAt (t.linearData.anchoredSolve g hab k (p, Y)) |
| 810 | (TangentProjection.projectedRhs (t.normal z) (t.normalDot z) |
| 811 | (t.linearData.anchoredSolve g hab k (p, Y) s) |
| 812 | (t.action z (t.linearData.anchoredSolve g hab k (p, Y) s)) |
| 813 | (t.source (p, g.path k Y s)) (t.damping z)) s := by |
| 814 | have hd := t.linearData.anchoredSolve_hasDerivAt g hab k hA hB hf hp Y s |
| 815 | simpa only [LinearData.coefficientAlong, LinearData.forcingAlong, linearData, |
| 816 | negativeTangentProjection_apply, ← sub_eq_add_neg, TangentODE.projectedOperator_apply] |
| 817 | using hd |
| 818 | |
| 819 | /-- Tangency of this constructed solution follows from the moving-normal |
| 820 | defect equation and zero initial data. -/ |
| 821 | theorem copySolve_tangent {U : Set P} (k : Frequency) |
| 822 | (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 823 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 824 | (hf : ContinuousOn t.source (U ×ˢ univ)) |
| 825 | (hδ : ContinuousOn t.damping (U ×ˢ univ)) {p : P} (hp : p ∈ U) (Y : Plane) |
| 826 | (hn0 : ∀ s ∈ Icc a b, t.normal (p, ((g.coordinates k Y).1, s)) ≠ 0) |
| 827 | (hn : ∀ s ∈ Icc a b, |
| 828 | HasDerivAt (fun v => t.normal (p, ((g.coordinates k Y).1, v))) |
| 829 | (t.normalDot (p, ((g.coordinates k Y).1, s))) s) |
| 830 | (heta : (g.coordinates k Y).2 ∈ Icc a b) : |
| 831 | ⟪t.normal (p, g.coordinates k Y), t.linearData.copySolve g hab k (p, Y)⟫_ℝ = 0 := by |
| 832 | have hδ' : ContinuousOn (fun s => t.damping (p, ((g.coordinates k Y).1, s))) (Icc a b) := |
| 833 | hδ.comp (continuous_const.prodMk (continuous_const.prodMk continuous_id)).continuousOn |
| 834 | (fun _ _ => ⟨hp, mem_univ _⟩) |
| 835 | have hu := TangentODE.projected_tangency_preserved hab |
| 836 | (fun s => t.normal (p, ((g.coordinates k Y).1, s))) |
| 837 | (fun s => t.normalDot (p, ((g.coordinates k Y).1, s))) |
| 838 | (fun s => t.source (p, g.path k Y s)) |
| 839 | (t.linearData.anchoredSolve g hab k (p, Y)) |
| 840 | (fun s => t.action (p, ((g.coordinates k Y).1, s))) |
| 841 | (fun s => t.damping (p, ((g.coordinates k Y).1, s))) hδ' hn0 hn |
| 842 | (fun s hs => t.anchoredSolve_projected_equation g hab k hA hB hf hp Y ⟨s, hs⟩) |
| 843 | (by simp only [t.linearData.anchoredSolve_initial g hab, inner_zero_right]) |
| 844 | exact hu _ heta |
| 845 | |
| 846 | end TangentData |
| 847 | |
| 848 | end NavierStokes.CommonCoverSolve |