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 Euler.LpSmoothFieldAlgebra |
| 2 | import Euler.MeanVectorIdentities |
| 3 | import Euler.OrdinarySobolevL4 |
| 4 | |
| 5 | /-! Ordinary integration by parts for genuine smooth L² fields. The |
| 6 | identity needs no compact-support premise because all three pairings |
| 7 | in the Haar-measure integration theorem are integrable. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerOrdinarySobolev |
| 12 | |
| 13 | open MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 14 | EulerLpTranslation EulerLpTranslation.SmoothL2Field |
| 15 | EulerMeanVectorIdentities Laplacian |
| 16 | open scoped ContDiff ENNReal |
| 17 | |
| 18 | variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 19 | |
| 20 | theorem field_inner_integrable (A B : SmoothL2Field V) : |
| 21 | Integrable (fun x => ⟪A.field x,B.field x⟫_ℝ) := by |
| 22 | apply (MeasureTheory.L2.integrable_inner A.toLp B.toLp).congr |
| 23 | filter_upwards [A.toLp_ae,B.toLp_ae] with x ha hb |
| 24 | rw [ha,hb] |
| 25 | |
| 26 | theorem field_inner (A B : SmoothL2Field V) : |
| 27 | ⟪A.toLp,B.toLp⟫_ℝ=∫ x,⟪A.field x,B.field x⟫_ℝ := by |
| 28 | rw [MeasureTheory.L2.inner_def] |
| 29 | apply integral_congr_ae |
| 30 | filter_upwards [A.toLp_ae,B.toLp_ae] with x ha hb |
| 31 | rw [ha,hb] |
| 32 | |
| 33 | theorem field_directional_ibp (A B : SmoothL2Field V) (v : Space) : |
| 34 | (∫ x,⟪fderiv ℝ A.field x v,B.field x⟫_ℝ) = |
| 35 | -∫ x,⟪A.field x,fderiv ℝ B.field x v⟫_ℝ := by |
| 36 | have h := integral_bilinear_fderiv_right_eq_neg_left_of_integrable |
| 37 | (μ := (volume : Measure Space)) (B := innerSL ℝ) (v := v) |
| 38 | (field_inner_integrable (A.directionalField v) B) |
| 39 | (field_inner_integrable A (B.directionalField v)) (field_inner_integrable A B) |
| 40 | (fun x _ => A.smooth.differentiable (by simp) x) |
| 41 | (fun x _ => B.smooth.differentiable (by simp) x) |
| 42 | change (∫ x,⟪A.field x,fderiv ℝ B.field x v⟫_ℝ)= |
| 43 | -∫ x,⟪fderiv ℝ A.field x v,B.field x⟫_ℝ at h |
| 44 | linarith |
| 45 | |
| 46 | theorem field_directional_inner (A B : SmoothL2Field V) (v : Space) : |
| 47 | ⟪(A.directionalField v).toLp,B.toLp⟫_ℝ = |
| 48 | -⟪A.toLp,(B.directionalField v).toLp⟫_ℝ := by |
| 49 | rw [field_inner,field_inner] |
| 50 | exact field_directional_ibp A B v |
| 51 | |
| 52 | theorem field_zero_of_toLp_zero (A : SmoothL2Field V) (h : A.toLp=0) : A.field=0 := by |
| 53 | have hae : A.field=ᵐ[volume] 0 := A.toLp_ae.symm.trans (by rw [h]; exact Lp.coeFn_zero V 2 volume) |
| 54 | exact Measure.eq_of_ae_eq hae A.smooth.continuous continuous_const |
| 55 | |
| 56 | theorem field_zero_of_derivative_zero (A : SmoothL2Field Space) |
| 57 | (hD : ∀ x, fderiv ℝ A.field x=0) : A.field=0 := by |
| 58 | have h6 := memLp_six A.field A.smooth A.memLp A.derivative.memLp |
| 59 | have hb := eLpNorm_six_le A.field A.smooth A.memLp A.derivative.memLp |
| 60 | have hz : eLpNorm (fderiv ℝ A.field) 2 (volume : Measure Space)=0 := by |
| 61 | calc |
| 62 | _ = eLpNorm (0 : Space → Space →L[ℝ] Space) 2 (volume : Measure Space) := |
| 63 | eLpNorm_congr_ae (Filter.Eventually.of_forall hD) |
| 64 | _ = 0 := eLpNorm_zero (α := Space) (ε := Space →L[ℝ] Space) |
| 65 | (p := 2) (μ := (volume : Measure Space)) |
| 66 | have hb0 : eLpNorm A.field 6 (volume : Measure Space) ≤ 0 := by |
| 67 | exact hb.trans_eq (by rw [hz,mul_zero]) |
| 68 | have hae : A.field=ᵐ[volume] 0 := (eLpNorm_eq_zero_iff h6.aestronglyMeasurable |
| 69 | (by norm_num : (6 : ℝ≥0∞) ≠ 0)).mp (le_antisymm hb0 bot_le) |
| 70 | exact Measure.eq_of_ae_eq hae A.smooth.continuous continuous_const |
| 71 | |
| 72 | theorem field_zero_of_laplacian_zero (A : SmoothL2Field Space) |
| 73 | (hΔ : ∀ x, Δ A.field x=0) : A.field=0 := by |
| 74 | let d := fun i : Fin 3 => A.directionalField (EuclideanSpace.single i 1) |
| 75 | have hb (i : Fin 3) : ⟪A.toLp,(d i).directionalField (EuclideanSpace.single i 1) |>.toLp⟫_ℝ = |
| 76 | -‖(d i).toLp‖^2 := by |
| 77 | have h := field_directional_inner A (d i) (EuclideanSpace.single i 1) |
| 78 | rw [real_inner_self_eq_norm_sq] at h |
| 79 | linarith |
| 80 | have hi : (∑ i : Fin 3, ⟪A.toLp,((d i).directionalField (EuclideanSpace.single i 1)).toLp⟫_ℝ)=0 := by |
| 81 | simp_rw [field_inner] |
| 82 | rw [← integral_finsetSum Finset.univ (fun i _ => field_inner_integrable A |
| 83 | ((d i).directionalField (EuclideanSpace.single i 1)))] |
| 84 | have he : (fun x => ∑ i : Fin 3, ⟪A.field x, |
| 85 | ((d i).directionalField (EuclideanSpace.single i 1)).field x⟫_ℝ)=0 := by |
| 86 | funext x |
| 87 | rw [← inner_sum] |
| 88 | change ⟪A.field x,∑ i : Fin 3, vectorPartial (vectorPartial A.field i) i x⟫_ℝ=0 |
| 89 | rw [← congrFun (vector_laplacian_eq_sum A.field A.smooth) x,hΔ,inner_zero_right] |
| 90 | rw [he] |
| 91 | change (∫ _x : Space, (0 : ℝ))=0 |
| 92 | exact integral_zero Space ℝ |
| 93 | have hs : ∑ i : Fin 3, ‖(d i).toLp‖^2=0 := by |
| 94 | simp_rw [hb] at hi |
| 95 | rw [Finset.sum_neg_distrib] at hi |
| 96 | linarith |
| 97 | have hd (i : Fin 3) : (d i).field=0 := by |
| 98 | have hh : ‖(d i).toLp‖^2=0 := (Finset.sum_eq_zero_iff_of_nonneg |
| 99 | (fun j _ => sq_nonneg ‖(d j).toLp‖)).mp hs i (Finset.mem_univ i) |
| 100 | exact field_zero_of_toLp_zero _ (norm_eq_zero.mp (sq_eq_zero_iff.mp hh)) |
| 101 | apply field_zero_of_derivative_zero A |
| 102 | intro x |
| 103 | apply ContinuousLinearMap.ext |
| 104 | intro v |
| 105 | have hz (i : Fin 3) : fderiv ℝ A.field x (EuclideanSpace.single i 1)=0 := |
| 106 | congrFun (hd i) x |
| 107 | have hv : (∑ i : Fin 3, v i • (EuclideanSpace.single i 1 : Space))=v := by |
| 108 | ext j |
| 109 | simp [Pi.single_apply,mul_ite] |
| 110 | rw [← hv,map_sum] |
| 111 | simp only [map_smul,hz,smul_zero,Finset.sum_const_zero,zero_apply] |
| 112 | |
| 113 | end EulerOrdinarySobolev |