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.BoundedFlowContinuity |
| 2 | import Euler.EulerProof |
| 3 | |
| 4 | /-! A lifted flow tangent to the oscillating graph gives an actual |
| 5 | three-dimensional flow, with inverse and the projected differential |
| 6 | equation. Graph invariance follows from a conserved linear functional. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerGraphInvariantFlow |
| 11 | |
| 12 | open Set InnerProductSpace ContinuousLinearMap EulerLiftedGradientSpace EulerMetricTransport |
| 13 | |
| 14 | def graphLinear (k : ℝ) (m : Vector3) : Vector3 →L[ℝ] LiftTangent := |
| 15 | (ContinuousLinearMap.id ℝ Vector3).prod (k • toDual ℝ Vector3 m) |
| 16 | |
| 17 | @[simp] theorem graphLinear_apply (k : ℝ) (m x : Vector3) : |
| 18 | graphLinear k m x = (x,k*inner ℝ m x) := rfl |
| 19 | |
| 20 | def graphConstraint (k : ℝ) (m : Vector3) : LiftTangent →L[ℝ] ℝ := |
| 21 | snd ℝ Vector3 ℝ - k • (toDual ℝ Vector3 m).comp (fst ℝ Vector3 ℝ) |
| 22 | |
| 23 | @[simp] theorem graphConstraint_apply (k : ℝ) (m : Vector3) (z : LiftTangent) : |
| 24 | graphConstraint k m z = z.2-k*inner ℝ m z.1 := rfl |
| 25 | |
| 26 | @[simp] theorem graphConstraint_graph (k : ℝ) (m x : Vector3) : |
| 27 | graphConstraint k m (graphLinear k m x)=0 := by simp |
| 28 | |
| 29 | theorem graphConstraint_transport (k κ : ℝ) (hk : k*κ=1) (m v : Vector3) : |
| 30 | graphConstraint k m (transportDirection κ m v)=0 := by |
| 31 | change inner ℝ m v-k*inner ℝ m (κ • v)=0 |
| 32 | rw [inner_smul_right] |
| 33 | simp only [← mul_assoc,hk,one_mul,sub_self] |
| 34 | |
| 35 | variable (k : ℝ) (m : Vector3) (V : EulerBoundedLipschitzFlow.Data LiftTangent) |
| 36 | (hV : ∀ t z, graphConstraint k m (V.velocity t z)=0) |
| 37 | |
| 38 | include hV in |
| 39 | theorem graphConstraint_flow (s t : ℝ) (z : LiftTangent) : |
| 40 | graphConstraint k m (V.flow s t z)=graphConstraint k m z := by |
| 41 | have hd (r : ℝ) : HasDerivAt (fun q => graphConstraint k m (V.flow s q z)) 0 r := by |
| 42 | have h := (graphConstraint k m).hasFDerivAt.comp_hasDerivAt r (V.flow_hasDerivAt s r z) |
| 43 | rw [hV] at h |
| 44 | convert! h using 1 |
| 45 | have he := is_const_of_deriv_eq_zero (fun r => (hd r).differentiableAt) |
| 46 | (fun r => (hd r).deriv) t s |
| 47 | simpa only [V.flow_initial] using he |
| 48 | |
| 49 | def graphFlow (s t : ℝ) (x : Vector3) : Vector3 := (V.flow s t (graphLinear k m x)).1 |
| 50 | |
| 51 | include hV in |
| 52 | theorem graphFlow_invariant (s t : ℝ) (x : Vector3) : |
| 53 | V.flow s t (graphLinear k m x)=graphLinear k m (graphFlow k m V s t x) := by |
| 54 | have he := graphConstraint_flow k m V hV s t (graphLinear k m x) |
| 55 | rw [graphConstraint_graph,graphConstraint_apply,sub_eq_zero] at he |
| 56 | apply Prod.ext |
| 57 | · rfl |
| 58 | · exact he |
| 59 | |
| 60 | @[simp] theorem graphFlow_initial (s : ℝ) (x : Vector3) : graphFlow k m V s s x=x := by |
| 61 | simp [graphFlow] |
| 62 | |
| 63 | include hV in |
| 64 | theorem graphFlow_inverse (s t : ℝ) (x : Vector3) : |
| 65 | graphFlow k m V t s (graphFlow k m V s t x)=x := by |
| 66 | change (V.flow t s (graphLinear k m (graphFlow k m V s t x))).1=x |
| 67 | rw [← graphFlow_invariant k m V hV,V.flow_inverse] |
| 68 | rfl |
| 69 | |
| 70 | include hV in |
| 71 | theorem graphFlow_hasDerivAt (s t : ℝ) (x : Vector3) : |
| 72 | HasDerivAt (fun r => graphFlow k m V s r x) |
| 73 | (V.velocity t (graphLinear k m (graphFlow k m V s t x))).1 t := by |
| 74 | have hd := (V.flow_hasDerivAt s t (graphLinear k m x)).fst |
| 75 | rwa [graphFlow_invariant k m V hV] at hd |
| 76 | |
| 77 | theorem graphFlow_continuous (s t : ℝ) : Continuous (graphFlow k m V s t) := |
| 78 | continuous_fst.comp ((V.flowHomeomorph s t).continuous.comp (graphLinear k m).continuous) |
| 79 | |
| 80 | theorem graphFlow_forward_joint_continuous : |
| 81 | Continuous (fun r : ℝ × Vector3 => graphFlow k m V 0 r.1 r.2) := |
| 82 | continuous_fst.comp (V.forward_joint_continuous.comp |
| 83 | (continuous_fst.prodMk ((graphLinear k m).continuous.comp continuous_snd))) |
| 84 | |
| 85 | theorem graphFlow_backward_joint_continuous : |
| 86 | Continuous (fun r : ℝ × Vector3 => graphFlow k m V r.1 0 r.2) := |
| 87 | continuous_fst.comp (V.backward_joint_continuous.comp |
| 88 | (continuous_fst.prodMk ((graphLinear k m).continuous.comp continuous_snd))) |
| 89 | |
| 90 | end EulerGraphInvariantFlow |