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 | /-! # Whole-space integration by parts for Sobolev competitors |
| 4 | |
| 5 | The limiting fields need not be classically differentiable. Integration by |
| 6 | parts follows from their actual L² weak-derivative approximations. |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open Set Filter MeasureTheory |
| 12 | open scoped ContDiff Topology BigOperators InnerProductSpace |
| 13 | |
| 14 | namespace NavierStokesR3.H3Comparison |
| 15 | |
| 16 | open NavierStokes.ProblemStatement |
| 17 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 18 | open NavierStokes.PeriodicUniqueness (spatial_partial_contDiff) |
| 19 | |
| 20 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 21 | |
| 22 | theorem integrable_inner_of_memLp {f g : Space → E} |
| 23 | (hf : MemLp f 2 volume) (hg : MemLp g 2 volume) : |
| 24 | Integrable (fun x => ⟪f x, g x⟫_ℝ) := by |
| 25 | apply (L2.integrable_inner (𝕜 := ℝ) (hf.toLp f) (hg.toLp g)).congr |
| 26 | filter_upwards [hf.coeFn_toLp, hg.coeFn_toLp] with x hx hy |
| 27 | rw [hx, hy] |
| 28 | |
| 29 | private theorem compact_inner_partial {f g : Space → E} |
| 30 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 31 | (hcf : HasCompactSupport f) (hcg : HasCompactSupport g) (i : Fin 3) : |
| 32 | (∫ x, ⟪f x, spatialPartial i g x⟫_ℝ) = |
| 33 | -(∫ x, ⟪spatialPartial i f x, g x⟫_ℝ) := by |
| 34 | have hfl := smooth_compact_memLp hf hcf |
| 35 | have hgl := smooth_compact_memLp hg hcg |
| 36 | have hdfl := smooth_compact_memLp (spatial_partial_contDiff hf i) |
| 37 | (hcf.fderiv_apply ℝ (coordinateVector i)) |
| 38 | have hdgl := smooth_compact_memLp (spatial_partial_contDiff hg i) |
| 39 | (hcg.fderiv_apply ℝ (coordinateVector i)) |
| 40 | exact integral_bilinear_fderiv_right_eq_neg_left_of_integrable |
| 41 | (B := innerSL ℝ) |
| 42 | (integrable_inner_of_memLp hdfl hgl) (integrable_inner_of_memLp hfl hdgl) |
| 43 | (integrable_inner_of_memLp hfl hgl) |
| 44 | (fun x _ => hf.differentiable (by simp) x) |
| 45 | (fun x _ => hg.differentiable (by simp) x) |
| 46 | |
| 47 | end NavierStokesR3.H3Comparison |