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.PacketPointJets |
| 2 | import Mathlib.Analysis.Calculus.Deriv.Add |
| 3 | |
| 4 | /-! |
| 5 | Actual PDE jets on a closed time interval. Time derivatives are within the |
| 6 | interval, while space and angle derivatives are ordinary Fréchet derivatives. |
| 7 | No smooth extension across a time endpoint is assumed. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerPacketPointJets |
| 13 | |
| 14 | open EulerSmoothLimit EulerFiniteGrades Finset Set |
| 15 | |
| 16 | abbrev SpatialDomain := Space × ℝ |
| 17 | |
| 18 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 19 | |
| 20 | def joinDerivative (v : E) (D : SpatialDomain →L[ℝ] E) : Domain →L[ℝ] E := |
| 21 | (ContinuousLinearMap.fst ℝ ℝ SpatialDomain).smulRight v+ |
| 22 | D.comp (ContinuousLinearMap.snd ℝ ℝ SpatialDomain) |
| 23 | |
| 24 | theorem joinDerivative_apply (v : E) (D : SpatialDomain →L[ℝ] E) (h : Domain) : |
| 25 | joinDerivative v D h=h.1 • v+D h.2 := rfl |
| 26 | |
| 27 | def slicedJet (s : Set ℝ) (f : Domain → E) (z : Domain) : Jet E := |
| 28 | (f z, joinDerivative (derivWithin (fun t => f (t,z.2)) s z.1) |
| 29 | (fderiv ℝ (fun y => f (z.1,y)) z.2)) |
| 30 | |
| 31 | theorem slicedJet_time (s : Set ℝ) (f : Domain → E) (z : Domain) : |
| 32 | (slicedJet s f z).2 timeDirection=derivWithin (fun t => f (t,z.2)) s z.1 := by |
| 33 | change (1 : ℝ) • derivWithin (fun t => f (t,z.2)) s z.1+ |
| 34 | (fderiv ℝ (fun y => f (z.1,y)) z.2) (0 : SpatialDomain)=_ |
| 35 | simp |
| 36 | |
| 37 | theorem slicedJet_space (s : Set ℝ) (f : Domain → E) (z : Domain) (v : Space) : |
| 38 | (slicedJet s f z).2 (spatialInjection v)=fderiv ℝ (fun y => f (z.1,y)) z.2 (v,0) := by |
| 39 | simp [slicedJet, joinDerivative, spatialInjection] |
| 40 | |
| 41 | theorem slicedJet_angle (s : Set ℝ) (f : Domain → E) (z : Domain) : |
| 42 | (slicedJet s f z).2 angleDirection=fderiv ℝ (fun y => f (z.1,y)) z.2 (0,1) := by |
| 43 | simp [slicedJet, joinDerivative, angleDirection] |
| 44 | |
| 45 | /-- The time entry is the derivative furnished by the actual interval evolution. -/ |
| 46 | theorem slicedJet_time_eq (s : Set ℝ) (f : Domain → E) (z : Domain) (v : E) |
| 47 | (hs : UniqueDiffWithinAt ℝ s z.1) (ht : HasDerivWithinAt (fun t => f (t,z.2)) v s z.1) : |
| 48 | (slicedJet s f z).2 timeDirection=v := by |
| 49 | rw [slicedJet_time, ht.derivWithin hs] |
| 50 | |
| 51 | theorem slicedJet_fieldSum (s : Set ℝ) (M : ℕ) (κ : ℝ) (u : ℕ → Domain → E) (z : Domain) |
| 52 | (hs : UniqueDiffWithinAt ℝ s z.1) |
| 53 | (ht : ∀ n ≤ M, DifferentiableWithinAt ℝ (fun t => u n (t,z.2)) s z.1) |
| 54 | (hx : ∀ n ≤ M, DifferentiableAt ℝ (fun y => u n (z.1,y)) z.2) : |
| 55 | slicedJet s (fieldSum M κ u) z=evaluate M κ (fun n => slicedJet s (u n) z) := by |
| 56 | have htime := HasDerivWithinAt.fun_sum (u := range (M+1)) |
| 57 | (fun n hn => ((ht n (by have h := mem_range.mp hn; omega)).hasDerivWithinAt).const_smul (κ^n)) |
| 58 | have hspace := HasFDerivAt.fun_sum (u := range (M+1)) |
| 59 | (fun n hn => ((hx n (by have h := mem_range.mp hn; omega)).hasFDerivAt).const_smul (κ^n)) |
| 60 | have hdt : derivWithin (fun t => fieldSum M κ u (t,z.2)) s z.1= |
| 61 | ∑ n ∈ range (M+1), κ^n • derivWithin (fun t => u n (t,z.2)) s z.1 := htime.derivWithin hs |
| 62 | have hdx : fderiv ℝ (fun y => fieldSum M κ u (z.1,y)) z.2= |
| 63 | ∑ n ∈ range (M+1), κ^n • fderiv ℝ (fun y => u n (z.1,y)) z.2 := hspace.fderiv |
| 64 | apply Prod.ext |
| 65 | · change (∑ n ∈ range (M+1), κ^n • u n z)= |
| 66 | (AddMonoidHom.fst E (Domain →L[ℝ] E)) (∑ n ∈ range (M+1), κ^n • slicedJet s (u n) z) |
| 67 | rw [map_sum] |
| 68 | rfl |
| 69 | · change joinDerivative _ _= |
| 70 | (AddMonoidHom.snd E (Domain →L[ℝ] E)) (∑ n ∈ range (M+1), κ^n • slicedJet s (u n) z) |
| 71 | rw [hdt, hdx, map_sum] |
| 72 | change joinDerivative |
| 73 | (∑ n ∈ range (M+1), κ^n • derivWithin (fun t => u n (t,z.2)) s z.1) |
| 74 | (∑ n ∈ range (M+1), κ^n • fderiv ℝ (fun y => u n (z.1,y)) z.2)= |
| 75 | ∑ n ∈ range (M+1), κ^n • joinDerivative |
| 76 | (derivWithin (fun t => u n (t,z.2)) s z.1) (fderiv ℝ (fun y => u n (z.1,y)) z.2) |
| 77 | apply ContinuousLinearMap.ext |
| 78 | intro h |
| 79 | simp only [joinDerivative_apply, Finset.smul_sum, _root_.sum_apply, |
| 80 | smul_apply, smul_smul, sum_add_distrib, smul_add] |
| 81 | congr 1 |
| 82 | apply sum_congr rfl |
| 83 | intro n _ |
| 84 | rw [mul_comm] |
| 85 | |
| 86 | end EulerPacketPointJets |