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.TimeH1PointwiseBounds |
| 2 | import Euler.VolterraConvolution |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.Deriv |
| 4 | |
| 5 | /-! |
| 6 | # Continuous derivatives upgrade genuine time-H¹ paths to classical paths |
| 7 | |
| 8 | If the actual L² derivative has a continuous representative, terminal |
| 9 | integration constructs a C¹ extension agreeing with the original AC path. |
| 10 | Thus the time derivative holds at every interior time and within the closed |
| 11 | interval at both endpoints. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace EulerTimeH1ContinuousDerivative |
| 17 | |
| 18 | open Set MeasureTheory EulerTimeLp EulerTerminalTimePrimitive EulerTimeH1PointwiseBounds |
| 19 | EulerVolterraConvolution |
| 20 | open scoped ContDiff |
| 21 | |
| 22 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 23 | |
| 24 | /-- Integrating the genuine continuous derivative after clamping time. -/ |
| 25 | def continuousIntegral (T : ℝ) (hT : 0 ≤ T) (q : C(Icc (0 : ℝ) T, E)) (t : ℝ) : E := |
| 26 | ∫ r in T..t, extendPath T hT q r |
| 27 | |
| 28 | /-- This concrete integral has the prescribed derivative everywhere. -/ |
| 29 | theorem continuousIntegral_hasDerivAt (T : ℝ) (hT : 0 ≤ T) |
| 30 | (q : C(Icc (0 : ℝ) T, E)) (t : ℝ) : |
| 31 | HasDerivAt (continuousIntegral T hT q) (extendPath T hT q t) t := by |
| 32 | have hq := extendPath_continuous T hT q |
| 33 | exact intervalIntegral.integral_hasDerivAt_right (hq.intervalIntegrable T t) |
| 34 | hq.aestronglyMeasurable.stronglyMeasurableAtFilter hq.continuousAt |
| 35 | |
| 36 | /-- The concrete integral is C¹ as a map on the real line. -/ |
| 37 | theorem continuousIntegral_contDiff (T : ℝ) (hT : 0 ≤ T) (q : C(Icc (0 : ℝ) T, E)) : |
| 38 | ContDiff ℝ 1 (continuousIntegral T hT q) := by |
| 39 | apply contDiff_one_iff_deriv.mpr |
| 40 | refine ⟨fun t => (continuousIntegral_hasDerivAt T hT q t).differentiableAt, ?_⟩ |
| 41 | have heq : deriv (continuousIntegral T hT q) = extendPath T hT q := |
| 42 | funext (fun t => (continuousIntegral_hasDerivAt T hT q t).deriv) |
| 43 | exact heq.symm ▸ extendPath_continuous T hT q |
| 44 | |
| 45 | /-- The continuous integral is the actual terminal primitive of its L² representative. -/ |
| 46 | theorem continuousIntegral_eq_realPrimitive (T : ℝ) (hT : 0 ≤ T) |
| 47 | (q : TimeLp T E) (qC : C(Icc (0 : ℝ) T, E)) |
| 48 | (hq : (q : ℝ → E) =ᵐ[timeMeasure T] extendPath T hT qC) |
| 49 | (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 50 | continuousIntegral T hT qC t = realPrimitive T q t := by |
| 51 | have hac : AbsolutelyContinuousOnInterval (continuousIntegral T hT qC) 0 T := |
| 52 | (continuousIntegral_contDiff T hT qC).contDiffOn.absolutelyContinuousOnInterval |
| 53 | have hd : ∀ᵐ r ∂timeMeasure T, HasDerivAt (continuousIntegral T hT qC) (q r) r := by |
| 54 | filter_upwards [hq] with r hr |
| 55 | exact (continuousIntegral_hasDerivAt T hT qC r).congr_deriv hr.symm |
| 56 | exact eq_realPrimitive_of_ac_hasDerivAt_ae T hT q (continuousIntegral T hT qC) hac hd |
| 57 | (by simp only [continuousIntegral, intervalIntegral.integral_same]) t ht |
| 58 | |
| 59 | /-- A genuine H¹ path agrees with a concrete C¹ extension when its actual |
| 60 | L² derivative has a continuous representative. -/ |
| 61 | theorem eq_continuousIntegral_add_terminal (T : ℝ) (hT : 0 ≤ T) |
| 62 | (q : TimeLp T E) (qC : C(Icc (0 : ℝ) T, E)) |
| 63 | (hq : (q : ℝ → E) =ᵐ[timeMeasure T] extendPath T hT qC) |
| 64 | (η : ℝ → E) (hη : AbsolutelyContinuousOnInterval η 0 T) |
| 65 | (hder : ∀ᵐ r ∂timeMeasure T, HasDerivAt η (q r) r) |
| 66 | (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 67 | η t = continuousIntegral T hT qC t + η T := |
| 68 | (eq_primitive_add_terminal T hT q η hη hder t ht).trans |
| 69 | (congrArg (fun z : E => z+η T) (continuousIntegral_eq_realPrimitive T hT q qC hq t ht).symm) |
| 70 | |
| 71 | /-- The actual derivative is classical throughout the closed time interval, |
| 72 | interpreting endpoint derivatives within that interval. -/ |
| 73 | theorem hasDerivWithinAt_of_continuous_representative (T : ℝ) (hT : 0 ≤ T) |
| 74 | (q : TimeLp T E) (qC : C(Icc (0 : ℝ) T, E)) |
| 75 | (hq : (q : ℝ → E) =ᵐ[timeMeasure T] extendPath T hT qC) |
| 76 | (η : ℝ → E) (hη : AbsolutelyContinuousOnInterval η 0 T) |
| 77 | (hder : ∀ᵐ r ∂timeMeasure T, HasDerivAt η (q r) r) |
| 78 | (t : Icc (0 : ℝ) T) : |
| 79 | HasDerivWithinAt η (qC t) (Icc (0 : ℝ) T) t := by |
| 80 | have h : HasDerivWithinAt (fun r => continuousIntegral T hT qC r+η T) |
| 81 | (extendPath T hT qC t) (Icc (0 : ℝ) T) t := |
| 82 | ((continuousIntegral_hasDerivAt T hT qC t).add_const (η T)).hasDerivWithinAt |
| 83 | have h' := h.congr_of_mem |
| 84 | (fun r hr => eq_continuousIntegral_add_terminal T hT q qC hq η hη hder r hr) t.property |
| 85 | simpa only [extendPath, projIcc_of_mem hT t.property] using h' |
| 86 | |
| 87 | /-- At every interior time the actual AC path has an ordinary two-sided derivative. -/ |
| 88 | theorem hasDerivAt_of_continuous_representative (T : ℝ) (hT : 0 ≤ T) |
| 89 | (q : TimeLp T E) (qC : C(Icc (0 : ℝ) T, E)) |
| 90 | (hq : (q : ℝ → E) =ᵐ[timeMeasure T] extendPath T hT qC) |
| 91 | (η : ℝ → E) (hη : AbsolutelyContinuousOnInterval η 0 T) |
| 92 | (hder : ∀ᵐ r ∂timeMeasure T, HasDerivAt η (q r) r) |
| 93 | (t : ℝ) (ht : t ∈ Ioo (0 : ℝ) T) : |
| 94 | HasDerivAt η (qC ⟨t, ht.1.le, ht.2.le⟩) t := |
| 95 | (hasDerivWithinAt_of_continuous_representative T hT q qC hq η hη hder |
| 96 | ⟨t, ht.1.le, ht.2.le⟩).hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 97 | |
| 98 | end EulerTimeH1ContinuousDerivative |