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.CompactEnergy |
| 2 | |
| 3 | /-! |
| 4 | # The Laplacian in a compactly weighted energy identity |
| 5 | |
| 6 | All integrals are ordinary volume integrals on Euclidean three-space. The |
| 7 | weight is smooth and compactly supported; the vector field is smooth but is |
| 8 | not required to have compact support or globally integrable derivatives. |
| 9 | -/ |
| 10 | |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open Set MeasureTheory |
| 15 | open scoped BigOperators ContDiff InnerProductSpace |
| 16 | |
| 17 | namespace NavierStokesR3.LocalizedDifferenceEnergy |
| 18 | |
| 19 | open NavierStokes.ProblemStatement |
| 20 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 21 | open NavierStokes.PeriodicUniqueness |
| 22 | |
| 23 | private theorem laplacian_nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 24 | (ENat.natCast_lt_of_coe_top_le_withTop le_rfl n).le |
| 25 | |
| 26 | private theorem laplacian_partial_smul {χ : Space → ℝ} {w : Space → Space} |
| 27 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) (i : Fin 3) (x : Space) : |
| 28 | spatialPartial i (fun y => χ y • w y) x = |
| 29 | χ x • spatialPartial i w x + spatialPartial i χ x • w x := by |
| 30 | unfold spatialPartial |
| 31 | rw [fderiv_fun_smul (hχ.differentiable (by simp) x) |
| 32 | (hw.differentiable (by simp) x)] |
| 33 | rfl |
| 34 | |
| 35 | theorem laplacian_integrable_weighted_partial_sq {χ : Space → ℝ} {w : Space → Space} |
| 36 | (hχ : Continuous χ) (hw : ContDiff ℝ ∞ w) (hcχ : HasCompactSupport χ) |
| 37 | (i : Fin 3) : |
| 38 | Integrable (fun x => χ x * ‖spatialPartial i w x‖ ^ 2) := |
| 39 | (hχ.mul ((spatial_partial_contDiff hw i).continuous.norm.pow 2)).integrable_of_hasCompactSupport |
| 40 | hcχ.mul_right |
| 41 | |
| 42 | theorem laplacian_integrable_weighted_gradient_sq {χ : Space → ℝ} {w : Space → Space} |
| 43 | (hχ : Continuous χ) (hw : ContDiff ℝ ∞ w) (hcχ : HasCompactSupport χ) : |
| 44 | Integrable (fun x => χ x * ∑ i : Fin 3, ‖spatialPartial i w x‖ ^ 2) := by |
| 45 | have hsum : (fun x => χ x * ∑ i : Fin 3, ‖spatialPartial i w x‖ ^ 2) = |
| 46 | (fun x => ∑ i : Fin 3, χ x * ‖spatialPartial i w x‖ ^ 2) := by |
| 47 | funext x |
| 48 | exact Finset.mul_sum _ _ _ |
| 49 | rw [hsum] |
| 50 | exact integrable_finsetSum _ (fun i _ => |
| 51 | laplacian_integrable_weighted_partial_sq hχ hw hcχ i) |
| 52 | |
| 53 | theorem laplacian_integrable_cutoff_second_partial {χ : Space → ℝ} {w : Space → Space} |
| 54 | (hχ : ContDiff ℝ ∞ χ) (hw : Continuous w) (hcχ : HasCompactSupport χ) |
| 55 | (i : Fin 3) : |
| 56 | Integrable (fun x => ‖w x‖ ^ 2 * spatialPartial i (spatialPartial i χ) x) := |
| 57 | ((hw.norm.pow 2).mul |
| 58 | (spatial_partial_contDiff (spatial_partial_contDiff hχ i) i).continuous).integrable_of_hasCompactSupport |
| 59 | (CompactEnergy.compact_partial (CompactEnergy.compact_partial hcχ i) i).mul_left |
| 60 | |
| 61 | theorem laplacian_integrable_cutoff_laplacian {χ : Space → ℝ} {w : Space → Space} |
| 62 | (hχ : ContDiff ℝ ∞ χ) (hw : Continuous w) (hcχ : HasCompactSupport χ) : |
| 63 | Integrable (fun x => ‖w x‖ ^ 2 * |
| 64 | ∑ i : Fin 3, spatialPartial i (spatialPartial i χ) x) := by |
| 65 | have hsum : (fun x => ‖w x‖ ^ 2 * |
| 66 | ∑ i : Fin 3, spatialPartial i (spatialPartial i χ) x) = |
| 67 | (fun x => ∑ i : Fin 3, ‖w x‖ ^ 2 * spatialPartial i (spatialPartial i χ) x) := by |
| 68 | funext x |
| 69 | exact Finset.mul_sum _ _ _ |
| 70 | rw [hsum] |
| 71 | exact integrable_finsetSum _ (fun i _ => |
| 72 | laplacian_integrable_cutoff_second_partial hχ hw hcχ i) |
| 73 | |
| 74 | theorem laplacian_integrable_weighted_laplacian {χ : Space → ℝ} {w : Space → Space} |
| 75 | (hχ : Continuous χ) (hw : ContDiff ℝ ∞ w) (hcχ : HasCompactSupport χ) : |
| 76 | Integrable (fun x => χ x * |
| 77 | ⟪w x, ∑ i : Fin 3, spatialPartial i (spatialPartial i w) x⟫_ℝ) := by |
| 78 | have hsum : Continuous (fun x => |
| 79 | ∑ i : Fin 3, spatialPartial i (spatialPartial i w) x) := |
| 80 | continuous_finsetSum _ (fun i _ => |
| 81 | (spatial_partial_contDiff (spatial_partial_contDiff hw i) i).continuous) |
| 82 | exact (hχ.mul (hw.continuous.inner hsum)).integrable_of_hasCompactSupport hcχ.mul_right |
| 83 | |
| 84 | /-- The one-coordinate weighted integration-by-parts identity. -/ |
| 85 | theorem integral_weighted_second_partial {χ : Space → ℝ} {w : Space → Space} |
| 86 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) (hcχ : HasCompactSupport χ) |
| 87 | (i : Fin 3) : |
| 88 | (∫ x, χ x * ⟪w x, spatialPartial i (spatialPartial i w) x⟫_ℝ) = |
| 89 | -(∫ x, χ x * ‖spatialPartial i w x‖ ^ 2) + |
| 90 | (1 / 2 : ℝ) * ∫ x, ‖w x‖ ^ 2 * spatialPartial i (spatialPartial i χ) x := by |
| 91 | have hdw : ContDiff ℝ ∞ (spatialPartial i w) := spatial_partial_contDiff hw i |
| 92 | have hdχ : ContDiff ℝ ∞ (spatialPartial i χ) := spatial_partial_contDiff hχ i |
| 93 | have hi_cross : Integrable (fun x => |
| 94 | spatialPartial i χ x * ⟪w x, spatialPartial i w x⟫_ℝ) := |
| 95 | (hdχ.continuous.mul (hw.continuous.inner hdw.continuous)).integrable_of_hasCompactSupport |
| 96 | (CompactEnergy.compact_partial hcχ i).mul_right |
| 97 | have hi_grad := laplacian_integrable_weighted_partial_sq hχ.continuous hw hcχ i |
| 98 | have hfirst := CompactEnergy.integral_inner_partial (hχ.smul hw) hdw hcχ.smul_right i |
| 99 | have hfirst_rhs : (fun x => |
| 100 | ⟪spatialPartial i (fun y => χ y • w y) x, spatialPartial i w x⟫_ℝ) = |
| 101 | (fun x => χ x * ‖spatialPartial i w x‖ ^ 2 + |
| 102 | spatialPartial i χ x * ⟪w x, spatialPartial i w x⟫_ℝ) := by |
| 103 | funext x |
| 104 | rw [laplacian_partial_smul hχ hw i x, inner_add_left] |
| 105 | simp only [real_inner_smul_left, real_inner_self_eq_norm_sq] |
| 106 | change (∫ x, ⟪χ x • w x, spatialPartial i (spatialPartial i w) x⟫_ℝ) = -(∫ x, ⟪spatialPartial i (fun y => χ y • w y) x, spatialPartial i w x⟫_ℝ) at hfirst |
| 107 | simp only [real_inner_smul_left] at hfirst |
| 108 | rw [hfirst_rhs, integral_add hi_grad hi_cross] at hfirst |
| 109 | have hsecond := CompactEnergy.integral_mul_partial hdχ (hw.norm_sq ℝ) |
| 110 | (CompactEnergy.compact_partial hcχ i) i |
| 111 | have hsecond_lhs : (fun x => |
| 112 | spatialPartial i χ x * spatialPartial i (fun y => ‖w y‖ ^ 2) x) = |
| 113 | (fun x => 2 * (spatialPartial i χ x * ⟪w x, spatialPartial i w x⟫_ℝ)) := by |
| 114 | funext x |
| 115 | change spatialPartial i χ x * fderiv ℝ (fun y => ‖w y‖ ^ 2) x (coordinateVector i) = _ |
| 116 | rw [fderiv_normsq hw] |
| 117 | dsimp only [spatialPartial] |
| 118 | ring |
| 119 | rw [hsecond_lhs, integral_const_mul] at hsecond |
| 120 | linarith |
| 121 | |
| 122 | /-- Compactly weighted Laplacian energy identity for an arbitrary smooth |
| 123 | spatial vector field. No global integrability assumption on the vector field |
| 124 | or its derivatives is needed. -/ |
| 125 | theorem integral_weighted_laplacian {χ : Space → ℝ} {w : Space → Space} |
| 126 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ w) (hcχ : HasCompactSupport χ) : |
| 127 | (∫ x, χ x * ⟪w x, ∑ i : Fin 3, spatialPartial i (spatialPartial i w) x⟫_ℝ) = |
| 128 | -(∫ x, χ x * ∑ i : Fin 3, ‖spatialPartial i w x‖ ^ 2) + |
| 129 | (1 / 2 : ℝ) * ∫ x, ‖w x‖ ^ 2 * |
| 130 | ∑ i : Fin 3, spatialPartial i (spatialPartial i χ) x := by |
| 131 | have hi_left (i : Fin 3) : Integrable (fun x => |
| 132 | χ x * ⟪w x, spatialPartial i (spatialPartial i w) x⟫_ℝ) := |
| 133 | (hχ.continuous.mul (hw.continuous.inner |
| 134 | (spatial_partial_contDiff (spatial_partial_contDiff hw i) i).continuous)).integrable_of_hasCompactSupport |
| 135 | hcχ.mul_right |
| 136 | simp only [inner_sum, Finset.mul_sum] |
| 137 | rw [integral_finsetSum _ (fun i _ => hi_left i), |
| 138 | integral_finsetSum _ (fun i _ => laplacian_integrable_weighted_partial_sq hχ.continuous hw hcχ i), |
| 139 | integral_finsetSum _ (fun i _ => laplacian_integrable_cutoff_second_partial hχ hw.continuous hcχ i)] |
| 140 | simp_rw [integral_weighted_second_partial hχ hw hcχ] |
| 141 | rw [Finset.sum_add_distrib, Finset.sum_neg_distrib, ← Finset.mul_sum] |
| 142 | |
| 143 | /-- The same identity in the velocity-field notation used by Navier--Stokes. -/ |
| 144 | theorem integral_weighted_spatialLaplacian {χ : Space → ℝ} {w : VelocityField} {t : ℝ} |
| 145 | (hχ : ContDiff ℝ ∞ χ) (hw : ContDiff ℝ ∞ (fun x => w (t, x))) |
| 146 | (hcχ : HasCompactSupport χ) : |
| 147 | (∫ x, χ x * ⟪w (t, x), spatialLaplacian w t x⟫_ℝ) = |
| 148 | -(∫ x, χ x * ∑ i : Fin 3, ‖spatialPartial i (fun y => w (t, y)) x‖ ^ 2) + |
| 149 | (1 / 2 : ℝ) * ∫ x, ‖w (t, x)‖ ^ 2 * |
| 150 | ∑ i : Fin 3, spatialPartial i (spatialPartial i χ) x := by |
| 151 | exact integral_weighted_laplacian hχ hw hcχ |
| 152 | |
| 153 | end NavierStokesR3.LocalizedDifferenceEnergy |