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.GraphInvariantFlow |
| 2 | |
| 3 | /-! A graph-tangent lifted velocity has the same ordinary divergence |
| 4 | as its three-dimensional graph restriction. This identifies the |
| 5 | volume-preservation hypothesis for the actual physical-label flow. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerGraphInvariantFlow |
| 10 | |
| 11 | open ContinuousLinearMap EulerLiftedGradientSpace |
| 12 | |
| 13 | variable (k : ℝ) (m : Vector3) (f : LiftTangent → LiftTangent) |
| 14 | |
| 15 | def graphVelocity (x : Vector3) : Vector3 := (f (graphLinear k m x)).1 |
| 16 | |
| 17 | theorem graphVelocity_trace (hf : Differentiable ℝ f) |
| 18 | (hgraph : ∀ z, graphConstraint k m (f z)=0) (x : Vector3) : |
| 19 | LinearMap.trace ℝ Vector3 (fderiv ℝ (graphVelocity k m f) x).toLinearMap = |
| 20 | LinearMap.trace ℝ LiftTangent (fderiv ℝ f (graphLinear k m x)).toLinearMap := by |
| 21 | let J := graphLinear k m |
| 22 | let F := fst ℝ Vector3 ℝ |
| 23 | let D := fderiv ℝ f (J x) |
| 24 | have hfun : (J.comp F) ∘ f = f := by |
| 25 | funext z |
| 26 | apply Prod.ext |
| 27 | · rfl |
| 28 | · exact (sub_eq_zero.mp (hgraph z)).symm |
| 29 | have hD : D = J.comp (F.comp D) := by |
| 30 | have hd := ((J.comp F).hasFDerivAt.comp (J x) (hf (J x)).hasFDerivAt).fderiv |
| 31 | rw [hfun] at hd |
| 32 | exact hd |
| 33 | have hg := (F.hasFDerivAt.comp x ((hf (J x)).hasFDerivAt.comp x J.hasFDerivAt)).fderiv |
| 34 | change fderiv ℝ (graphVelocity k m f) x = F.comp (D.comp J) at hg |
| 35 | rw [hg] |
| 36 | calc |
| 37 | _ = LinearMap.trace ℝ LiftTangent (J.comp (F.comp D)).toLinearMap := |
| 38 | LinearMap.trace_comp_comm' J.toLinearMap (F.comp D).toLinearMap |
| 39 | _ = LinearMap.trace ℝ LiftTangent D.toLinearMap := by rw [← hD] |
| 40 | |
| 41 | theorem graphVelocity_trace_zero (hf : Differentiable ℝ f) |
| 42 | (hgraph : ∀ z, graphConstraint k m (f z)=0) |
| 43 | (hdiv : ∀ z, LinearMap.trace ℝ LiftTangent (fderiv ℝ f z).toLinearMap=0) |
| 44 | (x : Vector3) : |
| 45 | LinearMap.trace ℝ Vector3 (fderiv ℝ (graphVelocity k m f) x).toLinearMap=0 := by |
| 46 | rw [graphVelocity_trace k m f hf hgraph] |
| 47 | exact hdiv _ |
| 48 | |
| 49 | end EulerGraphInvariantFlow |