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.ParentParticleRegularity |
| 2 | import Euler.ParentLagrangianEuler |
| 3 | |
| 4 | /-! The physical Euler evolution carried by a particle parent. Its |
| 5 | acceleration law and the smoothness of its closed spatial slices are |
| 6 | consequences of the actual flow identities, rather than extra premises. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerParentPacketFrames |
| 11 | |
| 12 | open Set EulerSmoothLimit EulerLagrangian EulerTimeIntervalRestriction |
| 13 | open scoped ContDiff |
| 14 | |
| 15 | structure Evolution (A : Parent) where |
| 16 | inverse : ParticleInverse A |
| 17 | velocity : ℝ × Space → Space |
| 18 | pressure : ℝ × Space → ℝ |
| 19 | force : Icc (0 : ℝ) A.T → Space → Space |
| 20 | force_continuous : Continuous (Function.uncurry force) |
| 21 | velocity_match : ∀ t x, A.velocity.field t x=velocity (t,A.position t x) |
| 22 | velocity_differentiable : ∀ t ∈ Ioo 0 A.T, ∀ x, DifferentiableAt ℝ velocity (t,x) |
| 23 | pressure_differentiable : ∀ (t : Icc (0 : ℝ) A.T) x, |
| 24 | DifferentiableAt ℝ (fun y => pressure (t,y)) x |
| 25 | pressure_gradient : ∀ (t : Icc (0 : ℝ) A.T) x, |
| 26 | gradient (fun y => pressure (t,y)) x=force t x |
| 27 | momentum_zero : ∀ t ∈ Ioo 0 A.T, ∀ x, momentumResidual velocity pressure (t,x)=0 |
| 28 | divergence_zero : ∀ t ∈ Ioo 0 A.T, ∀ x, divergence (fun y => velocity (t,y)) x=0 |
| 29 | |
| 30 | namespace Evolution |
| 31 | |
| 32 | variable {A : Parent} (E : Evolution A) |
| 33 | |
| 34 | theorem acceleration_match (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 35 | A.acceleration.field t x= -E.force t (A.position t x) := |
| 36 | A.acceleration_physical_of_euler E.velocity E.pressure E.force E.force_continuous |
| 37 | E.pressure_gradient E.velocity_match E.velocity_differentiable E.momentum_zero t x |
| 38 | |
| 39 | theorem velocity_pullback (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 40 | E.velocity (t,x)=A.velocity.field t (E.inverse.field t x) := by |
| 41 | rw [E.velocity_match,E.inverse.right_inverse] |
| 42 | |
| 43 | theorem force_pullback (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 44 | E.force t x= -A.acceleration.field t (E.inverse.field t x) := by |
| 45 | rw [E.acceleration_match,E.inverse.right_inverse,neg_neg] |
| 46 | |
| 47 | theorem velocity_smooth (t : Icc (0 : ℝ) A.T) : |
| 48 | ContDiff ℝ ∞ (fun x => E.velocity (t,x)) := by |
| 49 | have he : (fun x => E.velocity (t,x))=A.velocity.field t ∘ E.inverse.field t := |
| 50 | funext (E.velocity_pullback t) |
| 51 | rw [he] |
| 52 | exact (A.velocity.smooth t).comp (E.inverse.smooth t) |
| 53 | |
| 54 | theorem force_smooth (t : Icc (0 : ℝ) A.T) : ContDiff ℝ ∞ (E.force t) := by |
| 55 | have he : E.force t=(fun x => -A.acceleration.field t (E.inverse.field t x)) := |
| 56 | funext (E.force_pullback t) |
| 57 | rw [he] |
| 58 | exact ((A.acceleration.smooth t).comp (E.inverse.smooth t)).neg |
| 59 | |
| 60 | theorem strain_eq (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 61 | A.strain.field t x= |
| 62 | fderiv ℝ (fun y => E.velocity (t,y)) (A.position t (A.ell • x)) := |
| 63 | A.strain_physical (fun s y => E.velocity (s,y)) |
| 64 | (fun s y => ((E.velocity_smooth s).differentiable (by simp)).differentiableAt) |
| 65 | E.velocity_match t x |
| 66 | |
| 67 | theorem curvature_eq (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 68 | A.curvature.field t x=fderiv ℝ (E.force t) (A.position t (A.ell • x)) := |
| 69 | A.curvature_physical E.force |
| 70 | (fun s y => ((E.force_smooth s).differentiable (by simp)).differentiableAt) |
| 71 | E.acceleration_match t x |
| 72 | |
| 73 | def restrictTime (S : ℝ) (hS : 0 < S) (hST : S ≤ A.T) : |
| 74 | Evolution (A.restrictTime S hS hST) where |
| 75 | inverse := E.inverse.restrictTime S hS hST |
| 76 | velocity := E.velocity |
| 77 | pressure := E.pressure |
| 78 | force t := E.force (initialInclusion A.T S hST t) |
| 79 | force_continuous := E.force_continuous.comp |
| 80 | (((initialInclusion A.T S hST).continuous.comp continuous_fst).prodMk continuous_snd) |
| 81 | velocity_match t x := E.velocity_match (initialInclusion A.T S hST t) x |
| 82 | velocity_differentiable t ht x := E.velocity_differentiable t ⟨ht.1,ht.2.trans_le hST⟩ x |
| 83 | pressure_differentiable t x := E.pressure_differentiable (initialInclusion A.T S hST t) x |
| 84 | pressure_gradient t x := E.pressure_gradient (initialInclusion A.T S hST t) x |
| 85 | momentum_zero t ht x := E.momentum_zero t ⟨ht.1,ht.2.trans_le hST⟩ x |
| 86 | divergence_zero t ht x := E.divergence_zero t ⟨ht.1,ht.2.trans_le hST⟩ x |
| 87 | |
| 88 | end Evolution |
| 89 | end EulerParentPacketFrames |