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.R3.H3Approximation |
| 2 | |
| 3 | noncomputable section |
| 4 | |
| 5 | open Set Filter MeasureTheory |
| 6 | open scoped ContDiff Topology |
| 7 | |
| 8 | namespace NavierStokesR3.H3Comparison |
| 9 | |
| 10 | open NavierStokes.ProblemStatement |
| 11 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 12 | open NavierStokes.PeriodicUniqueness (spatial_partial_contDiff) |
| 13 | |
| 14 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 15 | |
| 16 | theorem spatialPartial_sub_smooth {f g : Space → E} |
| 17 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) (i : Fin 3) : |
| 18 | spatialPartial i (f - g) = spatialPartial i f - spatialPartial i g := by |
| 19 | funext x |
| 20 | exact congrArg (fun L : Space →L[ℝ] E => L (coordinateVector i)) |
| 21 | (fderiv_sub (hf.differentiable (by simp) x) (hg.differentiable (by simp) x)) |
| 22 | |
| 23 | theorem spatialPartial_two_sub_smooth {f g : Space → E} |
| 24 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) (i j : Fin 3) : |
| 25 | spatialPartial i (spatialPartial j (f - g)) = |
| 26 | spatialPartial i (spatialPartial j f) - spatialPartial i (spatialPartial j g) := by |
| 27 | rw [spatialPartial_sub_smooth hf hg j] |
| 28 | exact spatialPartial_sub_smooth (spatial_partial_contDiff hf j) |
| 29 | (spatial_partial_contDiff hg j) i |
| 30 | |
| 31 | theorem spatialPartial_three_sub_smooth {f g : Space → E} |
| 32 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) (i j k : Fin 3) : |
| 33 | spatialPartial i (spatialPartial j (spatialPartial k (f - g))) = |
| 34 | spatialPartial i (spatialPartial j (spatialPartial k f)) - |
| 35 | spatialPartial i (spatialPartial j (spatialPartial k g)) := by |
| 36 | rw [spatialPartial_two_sub_smooth hf hg j k] |
| 37 | exact spatialPartial_sub_smooth |
| 38 | (spatial_partial_contDiff (spatial_partial_contDiff hf k) j) |
| 39 | (spatial_partial_contDiff (spatial_partial_contDiff hg k) j) i |
| 40 | |
| 41 | def H1Approximation.sub {f g : Space → E} {df dg : Fin 3 → Space → E} |
| 42 | (hf : H1Approximation f df) (hg : H1Approximation g dg) : |
| 43 | H1Approximation (f - g) (df - dg) where |
| 44 | memLp := hf.memLp.sub hg.memLp |
| 45 | derivative_memLp := fun i => (hf.derivative_memLp i).sub (hg.derivative_memLp i) |
| 46 | approx := fun n => hf.approx n - hg.approx n |
| 47 | smooth := fun n => (hf.smooth n).sub (hg.smooth n) |
| 48 | compact := fun n => (hf.compact n).sub (hg.compact n) |
| 49 | approx_memLp := fun n => (hf.approx_memLp n).sub (hg.approx_memLp n) |
| 50 | derivative_approx_memLp := fun n i => by |
| 51 | rw [spatialPartial_sub_smooth (hf.smooth n) (hg.smooth n)] |
| 52 | exact (hf.derivative_approx_memLp n i).sub (hg.derivative_approx_memLp n i) |
| 53 | tendsto := by |
| 54 | simpa only [MemLp.toLp_sub hf.memLp hg.memLp, |
| 55 | MemLp.toLp_sub (hf.approx_memLp _) (hg.approx_memLp _)] using hf.tendsto.sub hg.tendsto |
| 56 | derivative_tendsto := fun i => by |
| 57 | simpa only [spatialPartial_sub_smooth (hf.smooth _) (hg.smooth _), Pi.sub_apply, |
| 58 | MemLp.toLp_sub (hf.derivative_memLp i) (hg.derivative_memLp i), |
| 59 | MemLp.toLp_sub (hf.derivative_approx_memLp _ i) (hg.derivative_approx_memLp _ i)] using |
| 60 | (hf.derivative_tendsto i).sub (hg.derivative_tendsto i) |
| 61 | |
| 62 | def H3Approximation.sub {f g : Space → E} {df dg : Fin 3 → Space → E} |
| 63 | {ddf ddg : Fin 3 → Fin 3 → Space → E} |
| 64 | {dddf dddg : Fin 3 → Fin 3 → Fin 3 → Space → E} |
| 65 | (hf : H3Approximation f df ddf dddf) (hg : H3Approximation g dg ddg dddg) : |
| 66 | H3Approximation (f - g) (df - dg) (ddf - ddg) (dddf - dddg) where |
| 67 | toH1Approximation := hf.toH1Approximation.sub hg.toH1Approximation |
| 68 | second_memLp := fun i j => (hf.second_memLp i j).sub (hg.second_memLp i j) |
| 69 | third_memLp := fun i j k => (hf.third_memLp i j k).sub (hg.third_memLp i j k) |
| 70 | second_approx_memLp := fun n i j => by |
| 71 | change MemLp (spatialPartial i (spatialPartial j (hf.approx n - hg.approx n))) 2 volume |
| 72 | rw [spatialPartial_two_sub_smooth (hf.smooth n) (hg.smooth n)] |
| 73 | exact (hf.second_approx_memLp n i j).sub (hg.second_approx_memLp n i j) |
| 74 | third_approx_memLp := fun n i j k => by |
| 75 | change MemLp (spatialPartial i (spatialPartial j (spatialPartial k |
| 76 | (hf.approx n - hg.approx n)))) 2 volume |
| 77 | rw [spatialPartial_three_sub_smooth (hf.smooth n) (hg.smooth n)] |
| 78 | exact (hf.third_approx_memLp n i j k).sub (hg.third_approx_memLp n i j k) |
| 79 | second_tendsto := fun i j => by |
| 80 | simpa only [H1Approximation.sub, spatialPartial_two_sub_smooth (hf.smooth _) (hg.smooth _), |
| 81 | Pi.sub_apply, MemLp.toLp_sub (hf.second_memLp i j) (hg.second_memLp i j), |
| 82 | MemLp.toLp_sub (hf.second_approx_memLp _ i j) (hg.second_approx_memLp _ i j)] using |
| 83 | (hf.second_tendsto i j).sub (hg.second_tendsto i j) |
| 84 | third_tendsto := fun i j k => by |
| 85 | simpa only [H1Approximation.sub, spatialPartial_three_sub_smooth (hf.smooth _) (hg.smooth _), |
| 86 | Pi.sub_apply, MemLp.toLp_sub (hf.third_memLp i j k) (hg.third_memLp i j k), |
| 87 | MemLp.toLp_sub (hf.third_approx_memLp _ i j k) (hg.third_approx_memLp _ i j k)] using |
| 88 | (hf.third_tendsto i j k).sub (hg.third_tendsto i j k) |
| 89 | |
| 90 | end NavierStokesR3.H3Comparison |