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.H3Products |
| 2 | import NavierStokes.R3.H3UniformApproximation |
| 3 | |
| 4 | /-! # Divergence-free transport for weak H³ limits |
| 5 | |
| 6 | The compact smooth approximants need not themselves be divergence-free. |
| 7 | Their divergence terms converge to the zero weak divergence of the limit. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open Set Filter MeasureTheory |
| 13 | open scoped ContDiff Topology BigOperators InnerProductSpace |
| 14 | |
| 15 | namespace NavierStokesR3.H3Comparison |
| 16 | |
| 17 | open NavierStokes.ProblemStatement |
| 18 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 19 | open NavierStokes.PeriodicUniqueness |
| 20 | |
| 21 | private def transportProduct (i : Fin 3) : Space →L[ℝ] Space →L[ℝ] Space := |
| 22 | (ContinuousLinearMap.lsmul ℝ ℝ).comp (EuclideanSpace.proj i) |
| 23 | |
| 24 | private theorem transportProduct_apply (i : Fin 3) (v w : Space) : |
| 25 | transportProduct i v w = (v i) • w := rfl |
| 26 | |
| 27 | private def realInnerBilinear : Space →L[ℝ] Space →L[ℝ] ℝ := innerSL ℝ |
| 28 | |
| 29 | private theorem realInnerBilinear_apply (v w : Space) : |
| 30 | realInnerBilinear v w = ⟪v, w⟫_ℝ := rfl |
| 31 | |
| 32 | private theorem compact_transport {w v : Space → Space} |
| 33 | (hw : ContDiff ℝ ∞ w) (hv : ContDiff ℝ ∞ v) |
| 34 | (hcw : HasCompactSupport w) (hcv : HasCompactSupport v) : |
| 35 | 2 * (∑ i : Fin 3, ∫ x, v x i * ⟪w x, spatialPartial i w x⟫_ℝ) = |
| 36 | -(∑ i : Fin 3, ∫ x, ‖w x‖ ^ 2 * spatialPartial i v x i) := by |
| 37 | have hiL (i : Fin 3) : Integrable (fun x => v x i * ⟪w x, spatialPartial i w x⟫_ℝ) := |
| 38 | ((component_contDiff hv i).continuous.mul |
| 39 | (hw.inner ℝ (spatial_partial_contDiff hw i)).continuous).integrable_of_hasCompactSupport |
| 40 | (CompactEnergy.compact_component hcv i).mul_right |
| 41 | have hiR (i : Fin 3) : Integrable (fun x => ‖w x‖ ^ 2 * spatialPartial i v x i) := |
| 42 | ((hw.continuous.norm.pow 2).mul |
| 43 | (component_contDiff (spatial_partial_contDiff hv i) i).continuous).integrable_of_hasCompactSupport |
| 44 | (CompactEnergy.compact_norm_sq hcw).mul_right |
| 45 | have h := CompactEnergy.integral_fderiv_apply (hw.norm_sq ℝ) hv hcv |
| 46 | have he (x : Space) : fderiv ℝ (fun y => ‖w y‖ ^ 2) x (v x) = |
| 47 | 2 * ∑ i : Fin 3, v x i * ⟪w x, spatialPartial i w x⟫_ℝ := by |
| 48 | rw [fderiv_normsq hw] |
| 49 | have hlin : fderiv ℝ w x (v x) = ∑ i : Fin 3, (v x i) • spatialPartial i w x := by |
| 50 | calc |
| 51 | fderiv ℝ w x (v x) = fderiv ℝ w x (∑ i : Fin 3, (v x i) • coordinateVector i) := |
| 52 | congrArg (fderiv ℝ w x) (sum_coordinates (v x)).symm |
| 53 | _ = _ := by simp only [map_sum, map_smul, spatialPartial] |
| 54 | rw [hlin, inner_sum] |
| 55 | simp only [inner_smul_right] |
| 56 | simp_rw [he] at h |
| 57 | have hright : (fun x => ‖w x‖ ^ 2 * ∑ i : Fin 3, spatialPartial i v x i) = |
| 58 | (fun x => ∑ i : Fin 3, ‖w x‖ ^ 2 * spatialPartial i v x i) := |
| 59 | funext (fun _ => Finset.mul_sum _ _ _) |
| 60 | rw [hright] at h |
| 61 | rw [integral_const_mul, integral_finsetSum _ (fun i _ => hiL i), |
| 62 | integral_finsetSum _ (fun i _ => hiR i)] at h |
| 63 | exact h |
| 64 | |
| 65 | end NavierStokesR3.H3Comparison |