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.CommonCoverClass |
| 2 | |
| 3 | /-! |
| 4 | # Compatibility of the actual copy-path solve with a common-cover change |
| 5 | |
| 6 | The native slot is held fixed while the common cover is refined. Sources |
| 7 | are pulled back along the covering map. Equality is proved first for the |
| 8 | actual coefficient/forcing paths and then for the constructed Volterra |
| 9 | inverse; no native periodicity of an inhomogeneous solution is assumed. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.CopySolveCompatibility |
| 15 | |
| 16 | open Set Function Filter |
| 17 | open scoped ContDiff Topology BigOperators |
| 18 | open TorusInverse CommonCoverSolve |
| 19 | |
| 20 | theorem coverPower_add (d k : ℕ) (Y : Plane) : |
| 21 | coverPower (d + k) Y = coverPower d (coverPower k Y) := by |
| 22 | simp only [coverPower_apply, pow_add, _root_.mul_apply_eq_comp] |
| 23 | |
| 24 | noncomputable def refineGeometry (g : Geometry) (k : ℕ) : Geometry := |
| 25 | { g with gap := g.gap + k } |
| 26 | |
| 27 | theorem coordinates_refine (g : Geometry) (k : ℕ) (j : Frequency) (Y : Plane) : |
| 28 | (refineGeometry g k).coordinates j Y = g.coordinates j (coverPower k Y) := by |
| 29 | simp only [Geometry.coordinates, refineGeometry, coverPower_add] |
| 30 | |
| 31 | theorem point_refine (g : Geometry) (k : ℕ) (j : Frequency) (z : Plane) : |
| 32 | coverPower k ((refineGeometry g k).point j z) = g.point j z := by |
| 33 | apply (coverPower g.gap).injective |
| 34 | change coverPower g.gap (coverPower k ((coverPower (g.gap + k)).symm _)) = |
| 35 | coverPower g.gap ((coverPower g.gap).symm _) |
| 36 | rw [← coverPower_add, ContinuousLinearEquiv.apply_symm_apply, |
| 37 | ContinuousLinearEquiv.apply_symm_apply] |
| 38 | rfl |
| 39 | |
| 40 | theorem path_refine (g : Geometry) (k : ℕ) (j : Frequency) (Y : Plane) (s : ℝ) : |
| 41 | coverPower k ((refineGeometry g k).path j Y s) = g.path j (coverPower k Y) s := by |
| 42 | simp only [Geometry.path, coordinates_refine, point_refine] |
| 43 | |
| 44 | /-- This includes cutoff indicators and copy envelopes, with no regularity |
| 45 | assumption on the native function. -/ |
| 46 | theorem native_copy_sum_refine {E : Type} [NormedAddCommGroup E] (g : Geometry) (k : ℕ) |
| 47 | (f : Plane → E) (Y : Plane) : |
| 48 | (∑' j : Frequency, f ((refineGeometry g k).coordinates j Y)) = |
| 49 | ∑' j : Frequency, f (g.coordinates j (coverPower k Y)) := by |
| 50 | apply tsum_congr |
| 51 | intro j |
| 52 | rw [coordinates_refine] |
| 53 | |
| 54 | section Paths |
| 55 | |
| 56 | variable {P Q V E : Type} |
| 57 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 58 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 59 | |
| 60 | /-- Input data transported through a slow-parameter map and a refinement of |
| 61 | the common cover. All native coefficients retain their native arguments. -/ |
| 62 | noncomputable def transformData (d : LinearData P V E) (φ : Q → P) (k : ℕ) : |
| 63 | LinearData Q V E where |
| 64 | coefficient z := d.coefficient (φ z.1, z.2) |
| 65 | forcingMap z := d.forcingMap (φ z.1, z.2) |
| 66 | source z := d.source (φ z.1, coverPower k z.2) |
| 67 | |
| 68 | theorem coefficientAlong_transform (d : LinearData P V E) (φ : Q → P) |
| 69 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 70 | (transformData d φ k).coefficientAlong (refineGeometry g k) j ((q, Y), s) = |
| 71 | d.coefficientAlong g j ((φ q, coverPower k Y), s) := by |
| 72 | simp only [LinearData.coefficientAlong, transformData, coordinates_refine] |
| 73 | |
| 74 | theorem forcingAlong_transform (d : LinearData P V E) (φ : Q → P) |
| 75 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 76 | (transformData d φ k).forcingAlong (refineGeometry g k) j ((q, Y), s) = |
| 77 | d.forcingAlong g j ((φ q, coverPower k Y), s) := by |
| 78 | simp only [LinearData.forcingAlong, transformData, coordinates_refine, path_refine] |
| 79 | |
| 80 | omit [NormedSpace ℝ E] in |
| 81 | /-- Equality of input paths may compare different parameter spaces. The |
| 82 | canonical zero branch for a noncontinuous slice is respected as well. -/ |
| 83 | theorem pathFamily_congr {a b : ℝ} (F : P × ℝ → E) (G : Q × ℝ → E) |
| 84 | (p : P) (q : Q) (h : ∀ s : Icc a b, F (p, s) = G (q, s)) : |
| 85 | SmoothPathFamily.pathFamily (a := a) (b := b) F p = |
| 86 | SmoothPathFamily.pathFamily G q := by |
| 87 | have he : (fun s : Icc a b => F (p, s)) = (fun s : Icc a b => G (q, s)) := funext h |
| 88 | by_cases hF : Continuous (fun s : Icc a b => F (p, s)) |
| 89 | · have hG : Continuous (fun s : Icc a b => G (q, s)) := he ▸ hF |
| 90 | ext s |
| 91 | rw [SmoothPathFamily.pathFamily_apply F p hF, SmoothPathFamily.pathFamily_apply G q hG] |
| 92 | exact h s |
| 93 | · have hG : ¬ Continuous (fun s : Icc a b => G (q, s)) := fun hc => hF (he.symm ▸ hc) |
| 94 | simp only [SmoothPathFamily.pathFamily, dite_eq_right hF, dite_eq_right hG] |
| 95 | |
| 96 | theorem coefficientPath_transform {a b : ℝ} (d : LinearData P V E) (φ : Q → P) |
| 97 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) : |
| 98 | (transformData d φ k).coefficientPath (a := a) (b := b) (refineGeometry g k) j (q, Y) = |
| 99 | d.coefficientPath g j (φ q, coverPower k Y) := by |
| 100 | apply pathFamily_congr |
| 101 | intro s |
| 102 | exact coefficientAlong_transform d φ g k j q Y s |
| 103 | |
| 104 | theorem forcingPath_transform {a b : ℝ} (d : LinearData P V E) (φ : Q → P) |
| 105 | (g : Geometry) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) : |
| 106 | (transformData d φ k).forcingPath (a := a) (b := b) (refineGeometry g k) j (q, Y) = |
| 107 | d.forcingPath g j (φ q, coverPower k Y) := by |
| 108 | apply pathFamily_congr |
| 109 | intro s |
| 110 | exact forcingAlong_transform d φ g k j q Y s |
| 111 | |
| 112 | variable [CompleteSpace E] {a b : ℝ} |
| 113 | |
| 114 | theorem anchoredSolve_transform (d : LinearData P V E) (φ : Q → P) |
| 115 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) (s : ℝ) : |
| 116 | (transformData d φ k).anchoredSolve (refineGeometry g k) hab j (q, Y) s = |
| 117 | d.anchoredSolve g hab j (φ q, coverPower k Y) s := by |
| 118 | unfold LinearData.anchoredSolve |
| 119 | rw [coefficientPath_transform, forcingPath_transform] |
| 120 | |
| 121 | theorem copySolve_transform (d : LinearData P V E) (φ : Q → P) |
| 122 | (g : Geometry) (hab : a ≤ b) (k : ℕ) (j : Frequency) (q : Q) (Y : Plane) : |
| 123 | (transformData d φ k).copySolve (refineGeometry g k) hab j (q, Y) = |
| 124 | d.copySolve g hab j (φ q, coverPower k Y) := by |
| 125 | unfold LinearData.copySolve |
| 126 | rw [coordinates_refine, anchoredSolve_transform] |
| 127 | |
| 128 | end Paths |
| 129 | |
| 130 | /-! ## Changing the integer representative of the native slot center -/ |
| 131 | |
| 132 | section Recenter |
| 133 | |
| 134 | variable {P V E : Type} |
| 135 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 136 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 137 | {a b : ℝ} |
| 138 | |
| 139 | end Recenter |
| 140 | |
| 141 | /-! ## Physical units: scaling the actual source scales the actual solution -/ |
| 142 | |
| 143 | section SourceScale |
| 144 | |
| 145 | variable {P V E : Type} |
| 146 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 147 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 148 | {a b : ℝ} |
| 149 | |
| 150 | noncomputable def scaleSource (d : LinearData P V E) (c : ℝ) : LinearData P V E := |
| 151 | { d with source := fun x => c • d.source x } |
| 152 | |
| 153 | omit [CompleteSpace E] in |
| 154 | theorem pathFamily_smul (F : P × ℝ → E) (p : P) (c : ℝ) : |
| 155 | SmoothPathFamily.pathFamily (a := a) (b := b) (fun x => c • F x) p = |
| 156 | c • SmoothPathFamily.pathFamily F p := by |
| 157 | by_cases hc : c = 0 |
| 158 | · subst c |
| 159 | simp only [zero_smul] |
| 160 | simp only [SmoothPathFamily.pathFamily, dite_eq_left continuous_const] |
| 161 | rfl |
| 162 | by_cases hF : Continuous (fun s : Icc a b => F (p, s)) |
| 163 | · have hCF : Continuous (fun s : Icc a b => c • F (p, s)) := continuous_const.smul hF |
| 164 | ext s |
| 165 | rw [SmoothPathFamily.pathFamily_apply _ _ hCF, ContinuousMap.smul_apply, |
| 166 | SmoothPathFamily.pathFamily_apply _ _ hF] |
| 167 | · have hCF : ¬ Continuous (fun s : Icc a b => c • F (p, s)) := by |
| 168 | intro hh |
| 169 | have h : Continuous (fun s : Icc a b => c⁻¹ • (c • F (p, s))) := continuous_const.smul hh |
| 170 | apply hF |
| 171 | simpa only [smul_smul, inv_mul_cancel₀ hc, one_smul] using h |
| 172 | simp only [SmoothPathFamily.pathFamily, dite_eq_right hF, dite_eq_right hCF, smul_zero] |
| 173 | |
| 174 | theorem solution_zero_smul (hab : a ≤ b) (A : ParametricODE.Coefficient a b E) |
| 175 | (f : ParametricODE.Curve a b E) (c : ℝ) : |
| 176 | ParametricODE.solution hab A 0 (c • f) = c • ParametricODE.solution hab A 0 f := by |
| 177 | simp only [ParametricODE.solution, ParametricODE.source, map_zero, zero_add, map_smul] |
| 178 | |
| 179 | theorem solutionExtension_zero_smul (hab : a ≤ b) (A : ParametricODE.Coefficient a b E) |
| 180 | (f : ParametricODE.Curve a b E) (c s : ℝ) : |
| 181 | ParametricODE.solutionExtension hab A 0 (c • f) s = |
| 182 | c • ParametricODE.solutionExtension hab A 0 f s := by |
| 183 | have he : ParametricODE.applyCoefficient A (c • ParametricODE.solution hab A 0 f) + c • f = |
| 184 | c • (ParametricODE.applyCoefficient A (ParametricODE.solution hab A 0 f) + f) := by |
| 185 | ext t |
| 186 | simp only [ParametricODE.applyCoefficient, ContinuousMap.add_apply, |
| 187 | ContinuousMap.smul_apply, ContinuousMap.coe_mk, map_smul, smul_add] |
| 188 | simp only [ParametricODE.solutionExtension, solution_zero_smul, he, zero_add, |
| 189 | ParametricODE.extend, ContinuousMap.smul_apply, intervalIntegral.integral_smul] |
| 190 | |
| 191 | theorem anchoredSolve_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 192 | (c : ℝ) (j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 193 | (scaleSource d c).anchoredSolve g hab j (p, Y) s = |
| 194 | c • d.anchoredSolve g hab j (p, Y) s := by |
| 195 | have hf : (scaleSource d c).forcingPath (a := a) (b := b) g j (p, Y) = |
| 196 | c • d.forcingPath g j (p, Y) := by |
| 197 | unfold LinearData.forcingPath |
| 198 | have hh : (scaleSource d c).forcingAlong g j = fun x => c • d.forcingAlong g j x := by |
| 199 | funext x |
| 200 | simp only [LinearData.forcingAlong, scaleSource, map_smul] |
| 201 | rw [hh, pathFamily_smul] |
| 202 | change ParametricODE.solutionExtension hab (d.coefficientPath g j (p, Y)) 0 |
| 203 | ((scaleSource d c).forcingPath g j (p, Y)) s = _ |
| 204 | rw [hf, solutionExtension_zero_smul] |
| 205 | rfl |
| 206 | |
| 207 | theorem copySolve_scaleSource (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) |
| 208 | (c : ℝ) (j : Frequency) (p : P) (Y : Plane) : |
| 209 | (scaleSource d c).copySolve g hab j (p, Y) = c • d.copySolve g hab j (p, Y) := by |
| 210 | simp only [LinearData.copySolve, anchoredSolve_scaleSource] |
| 211 | |
| 212 | end SourceScale |
| 213 | |
| 214 | /-! ## Transporting the native clock, its anchor, and its cutoff together -/ |
| 215 | |
| 216 | noncomputable def nativeTimeMap (τ rate : ℝ) (z : Plane) : Plane := |
| 217 | (z.1, τ + rate * z.2) |
| 218 | |
| 219 | theorem nativeTimeMap_continuous (τ rate : ℝ) : Continuous (nativeTimeMap τ rate) := |
| 220 | continuous_fst.prodMk (continuous_const.add (continuous_const.mul continuous_snd)) |
| 221 | |
| 222 | noncomputable def timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) : Geometry where |
| 223 | gap := g.gap |
| 224 | basis := CommonCoverClass.scaledBasis g.basis rate hrate |
| 225 | center := g.center + g.basis (0, τ) |
| 226 | |
| 227 | theorem point_timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 228 | (j : Frequency) (z : Plane) : |
| 229 | (timeGeometry g τ rate hrate).point j z = g.point j (nativeTimeMap τ rate z) := by |
| 230 | simp only [Geometry.point, timeGeometry, CommonCoverClass.scaledBasis_apply, nativeTimeMap] |
| 231 | have hv : (z.1, τ + rate * z.2) = (0, τ) + (z.1, rate * z.2) := by |
| 232 | ext <;> simp |
| 233 | rw [hv, map_add g.basis] |
| 234 | congr 1 |
| 235 | ext <;> simp only [Prod.fst_add, Prod.snd_add] <;> ring |
| 236 | |
| 237 | theorem coordinates_timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 238 | (j : Frequency) (Y : Plane) : |
| 239 | nativeTimeMap τ rate ((timeGeometry g τ rate hrate).coordinates j Y) = g.coordinates j Y := by |
| 240 | have h := point_timeGeometry g τ rate hrate j ((timeGeometry g τ rate hrate).coordinates j Y) |
| 241 | rw [Geometry.point_coordinates] at h |
| 242 | have hh := congrArg (g.coordinates j) h |
| 243 | rw [g.coordinates_point] at hh |
| 244 | exact hh.symm |
| 245 | |
| 246 | theorem coordinates_timeGeometry_fst (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 247 | (j : Frequency) (Y : Plane) : |
| 248 | ((timeGeometry g τ rate hrate).coordinates j Y).1 = (g.coordinates j Y).1 := by |
| 249 | simpa only [nativeTimeMap] using |
| 250 | congrArg Prod.fst (coordinates_timeGeometry g τ rate hrate j Y) |
| 251 | |
| 252 | theorem path_timeGeometry (g : Geometry) (τ rate : ℝ) (hrate : rate ≠ 0) |
| 253 | (j : Frequency) (Y : Plane) (s : ℝ) : |
| 254 | (timeGeometry g τ rate hrate).path j Y s = g.path j Y (τ + rate * s) := by |
| 255 | simp only [Geometry.path, point_timeGeometry, nativeTimeMap, coordinates_timeGeometry_fst] |
| 256 | |
| 257 | theorem time_interval_mono {a b rate : ℝ} (τ : ℝ) (hrate : 0 < rate) (hab : a ≤ b) : |
| 258 | τ + rate * a ≤ τ + rate * b := add_le_add_right (mul_le_mul_of_nonneg_left hab hrate.le) τ |
| 259 | |
| 260 | section TimeData |
| 261 | |
| 262 | variable {P V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 263 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 264 | |
| 265 | noncomputable def timeData (d : LinearData P V E) (τ rate : ℝ) : LinearData P V E where |
| 266 | coefficient z := rate • d.coefficient (z.1, nativeTimeMap τ rate z.2) |
| 267 | forcingMap z := rate • d.forcingMap (z.1, nativeTimeMap τ rate z.2) |
| 268 | source := d.source |
| 269 | |
| 270 | theorem coefficientAlong_timeData (d : LinearData P V E) (g : Geometry) |
| 271 | (τ rate : ℝ) (hrate : rate ≠ 0) (j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 272 | (timeData d τ rate).coefficientAlong (timeGeometry g τ rate hrate) j ((p, Y), s) = |
| 273 | rate • d.coefficientAlong g j ((p, Y), τ + rate * s) := by |
| 274 | simp only [LinearData.coefficientAlong, timeData, nativeTimeMap, coordinates_timeGeometry_fst] |
| 275 | |
| 276 | theorem forcingAlong_timeData (d : LinearData P V E) (g : Geometry) |
| 277 | (τ rate : ℝ) (hrate : rate ≠ 0) (j : Frequency) (p : P) (Y : Plane) (s : ℝ) : |
| 278 | (timeData d τ rate).forcingAlong (timeGeometry g τ rate hrate) j ((p, Y), s) = |
| 279 | rate • d.forcingAlong g j ((p, Y), τ + rate * s) := by |
| 280 | simp only [LinearData.forcingAlong, timeData, nativeTimeMap, |
| 281 | coordinates_timeGeometry_fst, path_timeGeometry, _root_.smul_apply] |
| 282 | |
| 283 | variable [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 284 | |
| 285 | variable [CompleteSpace E] {a b : ℝ} |
| 286 | |
| 287 | end TimeData |
| 288 | |
| 289 | /-! ## A single output represented in all transported charts -/ |
| 290 | |
| 291 | section PhysicalCompatibility |
| 292 | |
| 293 | variable {P Q V E X I : Type} |
| 294 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 295 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 296 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 297 | |
| 298 | noncomputable def transportData (d : LinearData P V E) (φ : Q → P) (k : ℕ) |
| 299 | (τ rate amplitude : ℝ) : LinearData Q V E := |
| 300 | scaleSource (transformData (timeData d τ rate) φ k) amplitude |
| 301 | |
| 302 | noncomputable def transportGeometry (g : Geometry) (k : ℕ) (τ rate : ℝ) (hrate : rate ≠ 0) : |
| 303 | Geometry := refineGeometry (timeGeometry g τ rate hrate) k |
| 304 | |
| 305 | end PhysicalCompatibility |
| 306 | |
| 307 | section ConcreteBandChart |
| 308 | |
| 309 | variable {V E : Type} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 310 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {a b : ℝ} |
| 311 | |
| 312 | end ConcreteBandChart |
| 313 | |
| 314 | /-! ## Binding existing chart data through primitive input identities -/ |
| 315 | |
| 316 | section InputCompatibility |
| 317 | |
| 318 | variable {P Q V E X I : Type} |
| 319 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 320 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 321 | |
| 322 | /-- These are identities of the coefficient and converted source before |
| 323 | any integration. They allow different source/map scalings with the same |
| 324 | product, and impose no assertion about solved fields. -/ |
| 325 | structure SameInputsAt (d e : LinearData P V E) (p : P) : Prop where |
| 326 | coefficient : ∀ z, d.coefficient (p, z) = e.coefficient (p, z) |
| 327 | forcing : ∀ z Y, d.forcingMap (p, z) (d.source (p, Y)) = |
| 328 | e.forcingMap (p, z) (e.source (p, Y)) |
| 329 | |
| 330 | variable [CompleteSpace E] {a b : ℝ} |
| 331 | |
| 332 | theorem anchoredSolve_eq_of_sameInputs (d e : LinearData P V E) (g : Geometry) |
| 333 | (hab : a ≤ b) (p : P) (hi : SameInputsAt d e p) (j : Frequency) (Y : Plane) (s : ℝ) : |
| 334 | d.anchoredSolve g hab j (p, Y) s = e.anchoredSolve g hab j (p, Y) s := by |
| 335 | have hA : d.coefficientPath (a := a) (b := b) g j (p, Y) = |
| 336 | e.coefficientPath g j (p, Y) := by |
| 337 | apply pathFamily_congr |
| 338 | intro t |
| 339 | exact hi.coefficient _ |
| 340 | have hf : d.forcingPath (a := a) (b := b) g j (p, Y) = e.forcingPath g j (p, Y) := by |
| 341 | apply pathFamily_congr |
| 342 | intro t |
| 343 | exact hi.forcing _ _ |
| 344 | simp only [LinearData.anchoredSolve, hA, hf] |
| 345 | |
| 346 | variable [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 347 | |
| 348 | end InputCompatibility |
| 349 | |
| 350 | /-! ## Why the anchor must be transported as input data -/ |
| 351 | |
| 352 | end NavierStokes.CopySolveCompatibility |