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 | /-- All integrals of the weak transport term are genuine integrable products. -/ |
| 66 | theorem integrable_transport {w v : Space → Space} {dw : Fin 3 → Space → Space} |
| 67 | (hw : MemLp w 2 volume) (hv : AEStronglyMeasurable v volume) |
| 68 | (hdw : ∀ i, MemLp (dw i) 2 volume) {C : ℝ} (hC : ∀ x, ‖v x‖ ≤ C) |
| 69 | (i : Fin 3) : Integrable (fun x => v x i * ⟪w x, dw i x⟫_ℝ) := by |
| 70 | have hi := integrable_inner_of_memLp |
| 71 | (memLp_bilinear_bounded (transportProduct i) hv hw hC) (hdw i) |
| 72 | simpa only [transportProduct_apply, real_inner_smul_left] using! hi |
| 73 | |
| 74 | /-- Transport cancels for weak first derivatives obtained from Sobolev |
| 75 | approximants that converge uniformly in velocity. No pointwise derivative of |
| 76 | the limiting fields, pressure condition, or energy identity is assumed. -/ |
| 77 | theorem weak_transport_zero {w v : Space → Space} {dw dv : Fin 3 → Space → Space} |
| 78 | (hw : H1Approximation w dw) (hv : H1Approximation v dv) |
| 79 | {aw av : ℕ → ℝ} (haw : Tendsto aw atTop (𝓝 0)) (hav : Tendsto av atTop (𝓝 0)) |
| 80 | (hew : ∀ n x, ‖hw.approx n x - w x‖ ≤ aw n) |
| 81 | (hev : ∀ n x, ‖hv.approx n x - v x‖ ≤ av n) |
| 82 | {Cw Cv : ℝ} (hcw : ∀ x, ‖w x‖ ≤ Cw) (hcv : ∀ x, ‖v x‖ ≤ Cv) |
| 83 | (hdiv : ∀ᵐ x ∂volume, (∑ i : Fin 3, dv i x i) = 0) : |
| 84 | (∫ x, ∑ i : Fin 3, v x i * ⟪w x, dw i x⟫_ℝ) = 0 := by |
| 85 | have hlimL (i : Fin 3) : Tendsto |
| 86 | (fun n => ∫ x, hv.approx n x i * ⟪hw.approx n x, spatialPartial i (hw.approx n) x⟫_ℝ) |
| 87 | atTop (𝓝 (∫ x, v x i * ⟪w x, dw i x⟫_ℝ)) := by |
| 88 | obtain ⟨hp, hlim⟩ := tendsto_toLp_bilinear (transportProduct i) |
| 89 | (fun n => (hv.smooth n).continuous.aestronglyMeasurable) hv.memLp.1 |
| 90 | hw.approx_memLp hw.memLp hav hev hcv hw.tendsto |
| 91 | have h := tendsto_integral_inner hp (fun n => hw.derivative_approx_memLp n i) |
| 92 | (memLp_bilinear_bounded (transportProduct i) hv.memLp.1 hw.memLp hcv) |
| 93 | (hw.derivative_memLp i) hlim (hw.derivative_tendsto i) |
| 94 | simpa only [transportProduct_apply, real_inner_smul_left] using! h |
| 95 | obtain ⟨hp, hlimp⟩ := tendsto_toLp_bilinear realInnerBilinear |
| 96 | (fun n => (hw.smooth n).continuous.aestronglyMeasurable) hw.memLp.1 |
| 97 | hw.approx_memLp hw.memLp haw hew hcw hw.tendsto |
| 98 | have hp₀ := memLp_bilinear_bounded realInnerBilinear hw.memLp.1 hw.memLp hcw |
| 99 | have hlimR (i : Fin 3) : Tendsto |
| 100 | (fun n => ∫ x, ‖hw.approx n x‖ ^ 2 * spatialPartial i (hv.approx n) x i) |
| 101 | atTop (𝓝 (∫ x, ‖w x‖ ^ 2 * dv i x i)) := by |
| 102 | let hvi := hv.map (EuclideanSpace.proj i : Space →L[ℝ] ℝ) |
| 103 | have h := tendsto_integral_inner hp (fun n => hvi.derivative_approx_memLp n i) |
| 104 | hp₀ (hvi.derivative_memLp i) hlimp (hvi.derivative_tendsto i) |
| 105 | have he (n : ℕ) : spatialPartial i (hvi.approx n) = |
| 106 | fun x => spatialPartial i (hv.approx n) x i := by |
| 107 | funext x |
| 108 | exact fderiv_component (hv.smooth n) i x (coordinateVector i) |
| 109 | simp only [he, realInnerBilinear_apply, real_inner_self_eq_norm_sq] at h |
| 110 | change Tendsto (fun n => ∫ x, spatialPartial i (hv.approx n) x i * ‖hw.approx n x‖ ^ 2) |
| 111 | atTop (𝓝 (∫ x, dv i x i * ‖w x‖ ^ 2)) at h |
| 112 | simpa only [mul_comm] using! h |
| 113 | have hcompact (n : ℕ) := compact_transport (hw.smooth n) (hv.smooth n) (hw.compact n) (hv.compact n) |
| 114 | have hL := (tendsto_finsetSum Finset.univ (fun i _ => hlimL i)).const_mul 2 |
| 115 | have hR := (tendsto_finsetSum Finset.univ (fun i _ => hlimR i)).neg |
| 116 | have hid : 2 * (∑ i : Fin 3, ∫ x, v x i * ⟪w x, dw i x⟫_ℝ) = |
| 117 | -(∑ i : Fin 3, ∫ x, ‖w x‖ ^ 2 * dv i x i) := |
| 118 | tendsto_nhds_unique (hL.congr hcompact) hR |
| 119 | have hiR (i : Fin 3) : Integrable (fun x => ‖w x‖ ^ 2 * dv i x i) := by |
| 120 | have hvi := hv.map (EuclideanSpace.proj i : Space →L[ℝ] ℝ) |
| 121 | simpa only [realInnerBilinear_apply, real_inner_self_eq_norm_sq, Pi.mul_apply, Function.comp_apply] using! |
| 122 | hp₀.integrable_mul (hvi.derivative_memLp i) |
| 123 | have hzero : (∑ i : Fin 3, ∫ x, ‖w x‖ ^ 2 * dv i x i) = 0 := by |
| 124 | rw [← integral_finsetSum _ (fun i _ => hiR i)] |
| 125 | apply integral_eq_zero_of_ae |
| 126 | filter_upwards [hdiv] with x hx |
| 127 | simp only [← Finset.mul_sum, hx, mul_zero, Pi.zero_apply] |
| 128 | rw [hzero, neg_zero] at hid |
| 129 | rw [integral_finsetSum _ (fun i _ => |
| 130 | integrable_transport hw.memLp hv.memLp.1 hw.derivative_memLp hcv i)] |
| 131 | linarith |
| 132 | |
| 133 | /-- Ordinary H³ velocities have the exact transport energy cancellation. |
| 134 | Uniform convergence and boundedness are consequences of H³, not premises. -/ |
| 135 | theorem H3Approximation.transport_zero {w v : Space → Space} |
| 136 | {dw dv : Fin 3 → Space → Space} |
| 137 | {ddw ddv : Fin 3 → Fin 3 → Space → Space} |
| 138 | {dddw dddv : Fin 3 → Fin 3 → Fin 3 → Space → Space} |
| 139 | (hw : H3Approximation w dw ddw dddw) (hv : H3Approximation v dv ddv dddv) |
| 140 | (hcw : Continuous w) (hcv : Continuous v) |
| 141 | (hdiv : ∀ᵐ x ∂volume, (∑ i : Fin 3, dv i x i) = 0) : |
| 142 | (∫ x, ∑ i : Fin 3, v x i * ⟪w x, dw i x⟫_ℝ) = 0 := by |
| 143 | obtain ⟨aw, _, haw, hew⟩ := H3Embedding.approximation_uniform_error hw hcw |
| 144 | obtain ⟨av, _, hav, hev⟩ := H3Embedding.approximation_uniform_error hv hcv |
| 145 | exact weak_transport_zero hw.toH1Approximation hv.toH1Approximation haw hav hew hev |
| 146 | (H3Embedding.norm_le_weakH3Norm hw hcw) (H3Embedding.norm_le_weakH3Norm hv hcv) hdiv |
| 147 | |
| 148 | end NavierStokesR3.H3Comparison |