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 | /-- The Hilbert pairing equals the ordinary whole-space integral. -/ |
| 23 | theorem inner_toLp {f g : Space → E} (hf : MemLp f 2 volume) (hg : MemLp g 2 volume) : |
| 24 | ⟪hf.toLp f, hg.toLp g⟫_ℝ = ∫ x, ⟪f x, g x⟫_ℝ := by |
| 25 | rw [L2.inner_def] |
| 26 | apply integral_congr_ae |
| 27 | filter_upwards [hf.coeFn_toLp, hg.coeFn_toLp] with x hx hy |
| 28 | rw [hx, hy] |
| 29 | |
| 30 | theorem integrable_inner_of_memLp {f g : Space → E} |
| 31 | (hf : MemLp f 2 volume) (hg : MemLp g 2 volume) : |
| 32 | Integrable (fun x => ⟪f x, g x⟫_ℝ) := by |
| 33 | apply (L2.integrable_inner (𝕜 := ℝ) (hf.toLp f) (hg.toLp g)).congr |
| 34 | filter_upwards [hf.coeFn_toLp, hg.coeFn_toLp] with x hx hy |
| 35 | rw [hx, hy] |
| 36 | |
| 37 | /-- Simultaneous L² convergence passes products to their actual integrals. -/ |
| 38 | theorem tendsto_integral_inner {f g : ℕ → Space → E} {F G : Space → E} |
| 39 | (hf : ∀ n, MemLp (f n) 2 volume) (hg : ∀ n, MemLp (g n) 2 volume) |
| 40 | (hF : MemLp F 2 volume) (hG : MemLp G 2 volume) |
| 41 | (hflim : Tendsto (fun n => (hf n).toLp (f n)) atTop (𝓝 (hF.toLp F))) |
| 42 | (hglim : Tendsto (fun n => (hg n).toLp (g n)) atTop (𝓝 (hG.toLp G))) : |
| 43 | Tendsto (fun n => ∫ x, ⟪f n x, g n x⟫_ℝ) atTop (𝓝 (∫ x, ⟪F x, G x⟫_ℝ)) := by |
| 44 | have h : Tendsto (fun n => ⟪(hf n).toLp (f n), (hg n).toLp (g n)⟫_ℝ) atTop |
| 45 | (𝓝 ⟪hF.toLp F, hG.toLp G⟫_ℝ) := hflim.inner hglim |
| 46 | simpa only [inner_toLp] using h |
| 47 | |
| 48 | private theorem compact_inner_partial {f g : Space → E} |
| 49 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 50 | (hcf : HasCompactSupport f) (hcg : HasCompactSupport g) (i : Fin 3) : |
| 51 | (∫ x, ⟪f x, spatialPartial i g x⟫_ℝ) = |
| 52 | -(∫ x, ⟪spatialPartial i f x, g x⟫_ℝ) := by |
| 53 | have hfl := smooth_compact_memLp hf hcf |
| 54 | have hgl := smooth_compact_memLp hg hcg |
| 55 | have hdfl := smooth_compact_memLp (spatial_partial_contDiff hf i) |
| 56 | (hcf.fderiv_apply ℝ (coordinateVector i)) |
| 57 | have hdgl := smooth_compact_memLp (spatial_partial_contDiff hg i) |
| 58 | (hcg.fderiv_apply ℝ (coordinateVector i)) |
| 59 | exact integral_bilinear_fderiv_right_eq_neg_left_of_integrable |
| 60 | (B := innerSL ℝ) |
| 61 | (integrable_inner_of_memLp hdfl hgl) (integrable_inner_of_memLp hfl hdgl) |
| 62 | (integrable_inner_of_memLp hfl hgl) |
| 63 | (fun x _ => hf.differentiable (by simp) x) |
| 64 | (fun x _ => hg.differentiable (by simp) x) |
| 65 | |
| 66 | /-- Global integration by parts for genuine H¹ fields, with no classical |
| 67 | smoothness or compact support requirement on either limiting field. -/ |
| 68 | theorem H1Approximation.integral_inner_derivative {f g : Space → E} |
| 69 | {df dg : Fin 3 → Space → E} (hf : H1Approximation f df) (hg : H1Approximation g dg) |
| 70 | (i : Fin 3) : |
| 71 | (∫ x, ⟪f x, dg i x⟫_ℝ) = -(∫ x, ⟪df i x, g x⟫_ℝ) := by |
| 72 | have hl := tendsto_integral_inner hf.approx_memLp (fun n => hg.derivative_approx_memLp n i) |
| 73 | hf.memLp (hg.derivative_memLp i) hf.tendsto (hg.derivative_tendsto i) |
| 74 | have hr := (tendsto_integral_inner (fun n => hf.derivative_approx_memLp n i) hg.approx_memLp |
| 75 | (hf.derivative_memLp i) hg.memLp (hf.derivative_tendsto i) hg.tendsto).neg |
| 76 | have he (n : ℕ) := compact_inner_partial (hf.smooth n) (hg.smooth n) (hf.compact n) (hg.compact n) i |
| 77 | exact tendsto_nhds_unique (hl.congr (fun n => he n)) hr |
| 78 | |
| 79 | /-- The weak H³ Laplacian has the usual negative energy pairing. -/ |
| 80 | theorem H3Approximation.integral_inner_laplacian {f : Space → E} |
| 81 | {df : Fin 3 → Space → E} {ddf : Fin 3 → Fin 3 → Space → E} |
| 82 | {dddf : Fin 3 → Fin 3 → Fin 3 → Space → E} |
| 83 | (hf : H3Approximation f df ddf dddf) : |
| 84 | (∫ x, ⟪f x, ∑ i : Fin 3, ddf i i x⟫_ℝ) = |
| 85 | -(∑ i : Fin 3, ∫ x, ‖df i x‖ ^ 2) := by |
| 86 | simp only [inner_sum] |
| 87 | rw [integral_finsetSum _ (fun i _ => integrable_inner_of_memLp hf.memLp (hf.second_memLp i i)), |
| 88 | ← Finset.sum_neg_distrib] |
| 89 | apply Finset.sum_congr rfl |
| 90 | intro i _ |
| 91 | simpa only [real_inner_self_eq_norm_sq] using |
| 92 | hf.toH1Approximation.integral_inner_derivative (hf.partial_toH1 i) i |
| 93 | |
| 94 | /-- A normalized H¹ pressure gradient is orthogonal to every divergence-free |
| 95 | H¹ velocity on the whole space. Both derivatives are weak derivatives and |
| 96 | neither field needs compact support or classical differentiability. -/ |
| 97 | theorem pressure_orthogonality {w : Space → Space} {dw : Fin 3 → Space → Space} |
| 98 | {p : Space → ℝ} {dp : Fin 3 → Space → ℝ} |
| 99 | (hw : H1Approximation w dw) (hp : H1Approximation p dp) |
| 100 | (hdiv : ∀ᵐ x ∂volume, (∑ i : Fin 3, dw i x i) = 0) : |
| 101 | (∫ x, ∑ i : Fin 3, w x i * dp i x) = 0 := by |
| 102 | have hwi (i : Fin 3) := hw.map (EuclideanSpace.proj i : Space →L[ℝ] ℝ) |
| 103 | have hparts (i : Fin 3) : (∫ x, w x i * dp i x) = -(∫ x, dw i x i * p x) := by |
| 104 | have h := (hwi i).integral_inner_derivative hp i |
| 105 | change (∫ x, dp i x * w x i) = -(∫ x, p x * dw i x i) at h |
| 106 | simpa only [mul_comm] using h |
| 107 | have hil (i : Fin 3) : Integrable (fun x => w x i * dp i x) := |
| 108 | (hwi i).memLp.integrable_mul (hp.derivative_memLp i) |
| 109 | have hir (i : Fin 3) : Integrable (fun x => dw i x i * p x) := |
| 110 | ((hwi i).derivative_memLp i).integrable_mul hp.memLp |
| 111 | rw [integral_finsetSum _ (fun i _ => hil i)] |
| 112 | simp_rw [hparts] |
| 113 | rw [Finset.sum_neg_distrib, ← integral_finsetSum _ (fun i _ => hir i)] |
| 114 | have hz : (∫ x, ∑ i : Fin 3, dw i x i * p x) = 0 := by |
| 115 | apply integral_eq_zero_of_ae |
| 116 | filter_upwards [hdiv] with x hx |
| 117 | simp only [← Finset.sum_mul, hx, zero_mul, Pi.zero_apply] |
| 118 | rw [hz, neg_zero] |
| 119 | |
| 120 | end NavierStokesR3.H3Comparison |