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.ContinuousTimeIntegral |
| 2 | import Mathlib.Topology.ContinuousMap.Bounded.Normed |
| 3 | |
| 4 | /-! |
| 5 | # Actual time derivatives of uniformly continuous bounded fields |
| 6 | |
| 7 | Pointwise derivatives identify a derivative in the bounded-field norm when |
| 8 | both the field and prescribed derivative are continuous in that norm. The |
| 9 | proof uses the Bochner fundamental theorem of calculus and bounded evaluation. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace EulerBoundedFieldTimeDerivative |
| 15 | |
| 16 | open Set MeasureTheory ContinuousLinearMap EulerVolterraConvolution |
| 17 | open scoped BoundedContinuousFunction |
| 18 | |
| 19 | variable {X W : Type*} [TopologicalSpace X] [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 20 | [CompleteSpace W] |
| 21 | variable (T : ℝ) (hT : 0 ≤ T) (A A' : C(Icc (0 : ℝ) T,X →ᵇ W)) |
| 22 | |
| 23 | /-- Pointwise derivatives imply the exact integral identity in the bounded-field space. -/ |
| 24 | theorem integral_eq_sub |
| 25 | (hpoint : ∀ t ∈ Icc (0 : ℝ) T, ∀ x : X, |
| 26 | HasDerivWithinAt (fun s => extendPath T hT A s x) |
| 27 | (extendPath T hT A' t x) (Icc (0 : ℝ) T) t) |
| 28 | (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 29 | (∫ s in (0 : ℝ)..t, extendPath T hT A' s) = |
| 30 | extendPath T hT A t - extendPath T hT A 0 := by |
| 31 | apply BoundedContinuousFunction.ext |
| 32 | intro x |
| 33 | let ev : (X →ᵇ W) →L[ℝ] W := BoundedContinuousFunction.evalCLM ℝ x |
| 34 | have hcA := ev.continuous.comp (extendPath_continuous T hT A) |
| 35 | have hcA' := ev.continuous.comp (extendPath_continuous T hT A') |
| 36 | calc |
| 37 | (∫ s in (0 : ℝ)..t, extendPath T hT A' s) x = |
| 38 | ∫ s in (0 : ℝ)..t, extendPath T hT A' s x := by |
| 39 | exact (ev.intervalIntegral_comp_comm ((extendPath_continuous T hT A').intervalIntegrable 0 t)).symm |
| 40 | _ = extendPath T hT A t x - extendPath T hT A 0 x := by |
| 41 | apply intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le ht.1 hcA.continuousOn |
| 42 | ?_ (hcA'.intervalIntegrable 0 t) |
| 43 | intro s hs |
| 44 | have hsT : s < T := hs.2.trans_le ht.2 |
| 45 | exact (hpoint s ⟨hs.1.le, hsT.le⟩ x).hasDerivAt (Icc_mem_nhds hs.1 hsT) |
| 46 | |
| 47 | /-- This is a genuine derivative in the uniform bounded-field norm. -/ |
| 48 | theorem hasDerivWithinAt |
| 49 | (hpoint : ∀ t ∈ Icc (0 : ℝ) T, ∀ x : X, |
| 50 | HasDerivWithinAt (fun s => extendPath T hT A s x) |
| 51 | (extendPath T hT A' t x) (Icc (0 : ℝ) T) t) |
| 52 | (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 53 | HasDerivWithinAt (extendPath T hT A) (extendPath T hT A' t) (Icc (0 : ℝ) T) t := by |
| 54 | have hc := extendPath_continuous T hT A' |
| 55 | have hd := intervalIntegral.integral_hasDerivAt_right (hc.intervalIntegrable 0 t) |
| 56 | hc.aestronglyMeasurable.stronglyMeasurableAtFilter hc.continuousAt |
| 57 | apply (hd.const_add (extendPath T hT A 0)).hasDerivWithinAt.congr_of_mem ?_ ht |
| 58 | intro s hs |
| 59 | rw [integral_eq_sub T hT A A' hpoint s hs] |
| 60 | abel |
| 61 | |
| 62 | end EulerBoundedFieldTimeDerivative |