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.InverseFunctionTheorem.ContDiff |
| 2 | |
| 3 | /-! A continuous, already constructed solution of a smooth identity is |
| 4 | smooth when the derivative in its value variable is invertible. The local |
| 5 | inverse theorem proves regularity; no new solution is postulated. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open Filter Function |
| 10 | open scoped Topology ContDiff |
| 11 | |
| 12 | namespace EulerSmoothImplicitLift |
| 13 | |
| 14 | variable {P E F : Type*} |
| 15 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 16 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 17 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 18 | |
| 19 | theorem contDiffAt_of_identity |
| 20 | (Y : P → E) (G : E → F) (H : P → F) (x : P) (n : ℕ∞ω) |
| 21 | (hn : n ≠ 0) (hY : ContinuousAt Y x) |
| 22 | (hG : ContDiffAt ℝ n G (Y x)) (hH : ContDiffAt ℝ n H x) |
| 23 | (L : E ≃L[ℝ] F) (hL : HasFDerivAt G (L : E →L[ℝ] F) (Y x)) |
| 24 | (heq : ∀ y, G (Y y) = H y) : ContDiffAt ℝ n Y x := by |
| 25 | let J := hG.localInverse hL hn |
| 26 | have hJ : ContDiffAt ℝ n J (H x) := by |
| 27 | rw [← heq x] |
| 28 | exact hG.to_localInverse hL hn |
| 29 | have hleft : ∀ᶠ z in 𝓝 (Y x), J (G z) = z := |
| 30 | (hG.hasStrictFDerivAt' hL hn).eventually_left_inverse |
| 31 | have he : Y =ᶠ[𝓝 x] J ∘ H := by |
| 32 | filter_upwards [hY.tendsto.eventually hleft] with y hy |
| 33 | change Y y = J (H y) |
| 34 | rw [← heq y] |
| 35 | exact hy.symm |
| 36 | exact (hJ.comp x hH).congr_of_eventuallyEq he |
| 37 | |
| 38 | end EulerSmoothImplicitLift |