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.ParentPacketPhysicalCoefficients |
| 2 | import Euler.PacketPhysicalEulerTransform |
| 3 | |
| 4 | /-! A true particle velocity law and the actual Euler equation determine |
| 5 | the particle acceleration. Continuity extends the identity to both |
| 6 | endpoints; no acceleration or pressure-force match is assumed. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerParentPacketFrames.Parent |
| 11 | |
| 12 | open Set Filter EulerSmoothLimit |
| 13 | open scoped Topology |
| 14 | |
| 15 | variable (A : EulerParentPacketFrames.Parent) |
| 16 | |
| 17 | def realPosition (t : ℝ) (x : Space) : Space := |
| 18 | x+A.displacement.realField A.T A.T_pos.le t x |
| 19 | |
| 20 | @[simp] theorem realPosition_apply (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 21 | A.realPosition t x=A.position t x := by |
| 22 | simp only [realPosition,SmoothTimeField.realField_apply,position] |
| 23 | |
| 24 | theorem realPosition_joint_continuous : Continuous (Function.uncurry A.realPosition) := |
| 25 | continuous_snd.add (A.displacement.realField_joint_continuous A.T A.T_pos.le) |
| 26 | |
| 27 | theorem position_time (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 28 | HasDerivWithinAt (fun s => A.realPosition s x) (A.velocity.field t x) (Icc (0 : ℝ) A.T) t := |
| 29 | (A.displacement_time t x).const_add x |
| 30 | |
| 31 | theorem acceleration_eq_neg_gradient |
| 32 | (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) |
| 33 | (hvelocity : ∀ (t : Icc (0 : ℝ) A.T) x, A.velocity.field t x=u (t,A.position t x)) |
| 34 | (hdiff : ∀ t ∈ Ioo 0 A.T, ∀ x, DifferentiableAt ℝ u (t,x)) |
| 35 | (heuler : ∀ t ∈ Ioo 0 A.T, ∀ x, EulerLagrangian.momentumResidual u p (t,x)=0) |
| 36 | (t : Icc (0 : ℝ) A.T) (ht : (t : ℝ) ∈ Ioo 0 A.T) (x : Space) : |
| 37 | A.acceleration.field t x= -gradient (fun y => p (t,y)) (A.position t x) := by |
| 38 | have hp := (A.position_time t x).hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 39 | have hi := (hasDerivAt_id (t : ℝ)).prodMk hp |
| 40 | have ho : HasFDerivAt u (fderiv ℝ u (t,A.position t x)) (id (t : ℝ),A.realPosition t x) := by |
| 41 | simpa only [id_eq,A.realPosition_apply] using (hdiff t ht (A.position t x)).hasFDerivAt |
| 42 | have hc := ho.comp_hasDerivAt (t : ℝ) hi |
| 43 | have hc' : HasDerivAt (fun s => u (s,A.realPosition s x)) |
| 44 | (fderiv ℝ u (t,A.position t x) (1,A.velocity.field t x)) t := by |
| 45 | simpa only [Function.comp_def,id_eq,A.realPosition_apply] using hc |
| 46 | have he : (fun s => u (s,A.realPosition s x)) =ᶠ[𝓝 (t : ℝ)] |
| 47 | (fun s => A.velocity.realField A.T A.T_pos.le s x) := by |
| 48 | filter_upwards [Ioo_mem_nhds ht.1 ht.2] with s hs |
| 49 | have hm := hvelocity ⟨s,hs.1.le,hs.2.le⟩ x |
| 50 | simpa only [realPosition,SmoothTimeField.realField,EulerVolterraConvolution.extendPath, |
| 51 | projIcc_of_mem A.T_pos.le ⟨hs.1.le,hs.2.le⟩,position] using hm.symm |
| 52 | have hv := ((A.velocity_time t x).hasDerivAt (Icc_mem_nhds ht.1 ht.2)).congr_of_eventuallyEq he |
| 53 | have ha := hv.unique hc' |
| 54 | have hh := heuler t ht (A.position t x) |
| 55 | change fderiv ℝ u (t,A.position t x) (1,u (t,A.position t x)) + |
| 56 | gradient (fun y => p (t,y)) (A.position t x)=0 at hh |
| 57 | rw [← hvelocity t x,← ha] at hh |
| 58 | exact eq_neg_of_add_eq_zero_left hh |
| 59 | |
| 60 | theorem acceleration_physical_of_euler |
| 61 | (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) |
| 62 | (force : Icc (0 : ℝ) A.T → Space → Space) |
| 63 | (hforce : Continuous (Function.uncurry force)) |
| 64 | (hgradient : ∀ (t : Icc (0 : ℝ) A.T) x, gradient (fun y => p (t,y)) x=force t x) |
| 65 | (hvelocity : ∀ (t : Icc (0 : ℝ) A.T) x, A.velocity.field t x=u (t,A.position t x)) |
| 66 | (hdiff : ∀ t ∈ Ioo 0 A.T, ∀ x, DifferentiableAt ℝ u (t,x)) |
| 67 | (heuler : ∀ t ∈ Ioo 0 A.T, ∀ x, EulerLagrangian.momentumResidual u p (t,x)=0) |
| 68 | (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 69 | A.acceleration.field t x= -force t (A.position t x) := by |
| 70 | let f : ℝ → Space := fun s => A.acceleration.realField A.T A.T_pos.le s x |
| 71 | let g : ℝ → Space := fun s => -force (projIcc 0 A.T A.T_pos.le s) (A.realPosition s x) |
| 72 | have hf : Continuous f := |
| 73 | (A.acceleration.realField_joint_continuous A.T A.T_pos.le).comp |
| 74 | (continuous_id.prodMk continuous_const) |
| 75 | have hg : Continuous g := |
| 76 | (hforce.comp ((show Continuous (projIcc 0 A.T A.T_pos.le) from continuous_projIcc).prodMk |
| 77 | (A.realPosition_joint_continuous.comp (continuous_id.prodMk continuous_const)))).neg |
| 78 | have he : EqOn f g (Ioo 0 A.T) := by |
| 79 | intro s hs |
| 80 | have hh := A.acceleration_eq_neg_gradient u p hvelocity hdiff heuler ⟨s,hs.1.le,hs.2.le⟩ hs x |
| 81 | rw [hgradient] at hh |
| 82 | simpa only [f,g,realPosition,SmoothTimeField.realField,EulerVolterraConvolution.extendPath, |
| 83 | projIcc_of_mem A.T_pos.le ⟨hs.1.le,hs.2.le⟩,position] using hh |
| 84 | have htc : (t : ℝ) ∈ closure (Ioo (0 : ℝ) A.T) := by |
| 85 | rw [closure_Ioo A.T_pos.ne] |
| 86 | exact t.property |
| 87 | have hh := he.closure hf hg htc |
| 88 | simpa only [f,g,SmoothTimeField.realField_apply,A.realPosition_apply, |
| 89 | projIcc_of_mem A.T_pos.le t.property] using hh |
| 90 | |
| 91 | end EulerParentPacketFrames.Parent |