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.OrdinaryFieldAlgebra |
| 2 | import Euler.OrdinaryL2Integration |
| 3 | |
| 4 | /-! The exact ordinary transport energy cancellation on noncompact |
| 5 | smooth L² fields. Products and all required pairings are actual L²/L¹ objects. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerOrdinarySobolev |
| 10 | |
| 11 | open MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerLpTranslation |
| 12 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerVectorCalculus Finset |
| 13 | open scoped ContDiff |
| 14 | |
| 15 | theorem field_toLp_zero (A : SmoothL2Field Space) (hA : A.field=0) : A.toLp=0 := by |
| 16 | apply Lp.ext |
| 17 | filter_upwards [A.toLp_ae,Lp.coeFn_zero Space 2 (volume : Measure Space)] with x ha hz |
| 18 | rw [ha,hA,hz] |
| 19 | |
| 20 | theorem scalarProduct_inner_shift (A : SmoothL2Field ℝ) (B C : SmoothL2Field Space) : |
| 21 | ⟪(scalarProduct A B).toLp,C.toLp⟫_ℝ = ⟪(scalarProduct A C).toLp,B.toLp⟫_ℝ := by |
| 22 | rw [field_inner,field_inner] |
| 23 | apply integral_congr_ae |
| 24 | apply Filter.Eventually.of_forall |
| 25 | intro x |
| 26 | simp only [scalarProduct_field,real_inner_smul_left] |
| 27 | rw [real_inner_comm (B.field x) (C.field x)] |
| 28 | |
| 29 | theorem scalar_transport_pair (A : SmoothL2Field ℝ) (B : SmoothL2Field Space) (v : Space) : |
| 30 | 2*⟪(scalarProduct A (B.directionalField v)).toLp,B.toLp⟫_ℝ = |
| 31 | -⟪(scalarProduct (A.directionalField v) B).toLp,B.toLp⟫_ℝ := by |
| 32 | have h := field_directional_inner (scalarProduct A B) B v |
| 33 | rw [scalarProduct_directional,toLp_addField,inner_add_left,scalarProduct_inner_shift A B] at h |
| 34 | linarith |
| 35 | |
| 36 | theorem coordinate_directional_field (A : SmoothL2Field Space) (i : Fin 3) (v x : Space) : |
| 37 | ((mapField (EuclideanSpace.proj i) A).directionalField v).field x = |
| 38 | (fderiv ℝ A.field x v) i := by |
| 39 | change fderiv ℝ (fun y => A.field y i) x v=(fderiv ℝ A.field x v) i |
| 40 | exact fderiv_coordinate A.field x (A.smooth.differentiable (by simp) x) i v |
| 41 | |
| 42 | theorem advection_inner_zero (A B : SmoothL2Field Space) |
| 43 | (hdiv : ∀ x, divergence A.field x=0) : |
| 44 | ⟪(advectionField A B).toLp,B.toLp⟫_ℝ=0 := by |
| 45 | let a := fun i : Fin 3 => mapField (EuclideanSpace.proj i) A |
| 46 | let c := fun i : Fin 3 => scalarProduct ((a i).directionalField (axis i)) B |
| 47 | have hcf : (sumField univ c).field=0 := by |
| 48 | funext x |
| 49 | simp only [sumField_field,c,scalarProduct_field,← Finset.sum_smul] |
| 50 | have hs : (∑ i : Fin 3, ((a i).directionalField (axis i)).field x)=0 := by |
| 51 | simp only [a,coordinate_directional_field] |
| 52 | simpa only [divergence_eq_coordinate_sum,axis] using hdiv x |
| 53 | rw [hs,zero_smul] |
| 54 | rfl |
| 55 | have hc : (∑ i : Fin 3, ⟪(c i).toLp,B.toLp⟫_ℝ)=0 := by |
| 56 | rw [← sum_inner,← toLp_sumField,field_toLp_zero _ hcf,inner_zero_left] |
| 57 | have hp (i : Fin 3) := scalar_transport_pair (a i) B (axis i) |
| 58 | have hsum := congrArg (fun f : Fin 3 → ℝ => ∑ i, f i) (funext hp) |
| 59 | simp only [← Finset.mul_sum,Finset.sum_neg_distrib] at hsum |
| 60 | change 2*(∑ i : Fin 3, ⟪(coordinateProduct i A (B.directionalField (axis i))).toLp,B.toLp⟫_ℝ)= |
| 61 | -(∑ i : Fin 3, ⟪(c i).toLp,B.toLp⟫_ℝ) at hsum |
| 62 | rw [hc] at hsum |
| 63 | rw [advectionField,toLp_sumField,sum_inner] |
| 64 | linarith |
| 65 | |
| 66 | end EulerOrdinarySobolev |