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 Mathlib.Analysis.Calculus.ParametricIntegral |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 3 | import Mathlib.MeasureTheory.Integral.Bochner.Set |
| 4 | import Mathlib.Analysis.Normed.Group.Bounded |
| 5 | |
| 6 | /-! Smooth parameter dependence of an actual integral over a compact interval. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | universe u |
| 11 | |
| 12 | namespace EulerCompactParameterIntegral |
| 13 | |
| 14 | open Set MeasureTheory Filter Metric |
| 15 | open scoped ContDiff Topology Interval |
| 16 | |
| 17 | variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] [ProperSpace X] |
| 18 | {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 19 | |
| 20 | def parameterDerivative (F : X × ℝ → E) (p : X × ℝ) : X →L[ℝ] E := |
| 21 | (fderiv ℝ F p).comp (ContinuousLinearMap.inl ℝ X ℝ) |
| 22 | |
| 23 | omit [ProperSpace X] [CompleteSpace E] in |
| 24 | theorem parameterDerivative_contDiff (F : X × ℝ → E) (hF : ContDiff ℝ ∞ F) : |
| 25 | ContDiff ℝ ∞ (parameterDerivative F) := |
| 26 | (contDiff_infty_iff_fderiv.mp hF).2.clm_comp contDiff_const |
| 27 | |
| 28 | omit [CompleteSpace E] in |
| 29 | theorem integral_hasFDerivAt (a b : ℝ) (hab : a ≤ b) (F : X × ℝ → E) |
| 30 | (hF : ContDiff ℝ ∞ F) (x : X) : |
| 31 | HasFDerivAt (fun y => ∫ t in a..b, F (y,t)) |
| 32 | (∫ t in a..b, parameterDerivative F (x,t)) x := by |
| 33 | have hd : Continuous (parameterDerivative F) := (parameterDerivative_contDiff F hF).continuous |
| 34 | obtain ⟨C, hC⟩ := ((isCompact_closedBall x 1).prod isCompact_Icc).exists_bound_of_continuousOn |
| 35 | hd.continuousOn |
| 36 | apply hasFDerivAt_integral_of_dominated_of_fderiv_le'' |
| 37 | (s := ball x 1) (F' := fun y t => parameterDerivative F (y,t)) |
| 38 | (bound := fun _ => C) (ball_mem_nhds x (by norm_num)) |
| 39 | · exact Eventually.of_forall fun y => |
| 40 | (hF.continuous.comp (continuous_const.prodMk continuous_id)).aestronglyMeasurable |
| 41 | · exact (hF.continuous.comp (continuous_const.prodMk continuous_id)).intervalIntegrable a b |
| 42 | · exact (hd.comp (continuous_const.prodMk continuous_id)).aestronglyMeasurable |
| 43 | · filter_upwards [ae_restrict_mem (measurableSet_uIoc : MeasurableSet (Ι a b))] with t ht |
| 44 | intro y hy |
| 45 | rw [uIoc_of_le hab] at ht |
| 46 | exact hC (y,t) ⟨ball_subset_closedBall hy, ht.1.le, ht.2⟩ |
| 47 | · exact intervalIntegrable_const |
| 48 | · exact Eventually.of_forall fun t y _ => by |
| 49 | have hin : HasFDerivAt (fun v : X => (v,t)) (ContinuousLinearMap.inl ℝ X ℝ) y := |
| 50 | (hasFDerivAt_id (𝕜 := ℝ) y).prodMk (hasFDerivAt_const (𝕜 := ℝ) t y) |
| 51 | exact ((hF.differentiable (by simp)) (y,t)).hasFDerivAt.comp y hin |
| 52 | |
| 53 | theorem integral_contDiff_finite (n : ℕ) (a b : ℝ) (hab : a ≤ b) |
| 54 | (F : X × ℝ → E) (hF : ContDiff ℝ ∞ F) : |
| 55 | ContDiff ℝ n (fun y => ∫ t in a..b, F (y,t)) := by |
| 56 | induction n generalizing E with |
| 57 | | zero => |
| 58 | change ContDiff ℝ 0 _ |
| 59 | rw [contDiff_zero] |
| 60 | have hi := continuous_parametric_integral_of_continuous |
| 61 | (μ := volume) (f := fun y t => F (y,t)) hF.continuous |
| 62 | (isCompact_Icc : IsCompact (Icc a b)) |
| 63 | simpa only [intervalIntegral.integral_of_le hab, integral_Icc_eq_integral_Ioc] using hi |
| 64 | | succ n ih => |
| 65 | apply contDiff_succ_iff_hasFDerivAt.mpr |
| 66 | refine ⟨fun y => ∫ t in a..b, parameterDerivative F (y,t), ?_, ?_⟩ |
| 67 | · exact ih (parameterDerivative F) (parameterDerivative_contDiff F hF) |
| 68 | · exact integral_hasFDerivAt a b hab F hF |
| 69 | |
| 70 | theorem integral_contDiff (a b : ℝ) (hab : a ≤ b) (F : X × ℝ → E) |
| 71 | (hF : ContDiff ℝ ∞ F) : ContDiff ℝ ∞ (fun y => ∫ t in a..b, F (y,t)) := |
| 72 | contDiff_infty.mpr fun n => integral_contDiff_finite n a b hab F hF |
| 73 | |
| 74 | end EulerCompactParameterIntegral |