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.FDeriv.OfCompLeft |
| 2 | |
| 3 | /-! An actual continuous inverse has the inverse Jacobian as its derivative. |
| 4 | This is the easy half of the inverse function theorem; no differentiability |
| 5 | of the inverse is an independent assumption. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open scoped Topology |
| 10 | |
| 11 | namespace EulerContinuousInverseDerivative |
| 12 | |
| 13 | variable {E F : Type*} |
| 14 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 15 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 16 | |
| 17 | theorem hasFDerivAt_inverse |
| 18 | (X : F → E) (Y : E → F) (x : E) |
| 19 | (J : F →L[ℝ] E) (I : E →L[ℝ] F) |
| 20 | (hY : ContinuousAt Y x) (hX : HasFDerivAt X J (Y x)) |
| 21 | (hXY : ∀ᶠ y in 𝓝 x, X (Y y) = y) |
| 22 | (hI : Function.LeftInverse I J) : HasFDerivAt Y I x := by |
| 23 | have h := HasFDerivAt.of_comp_of_leftInverse (f'symm := I) |
| 24 | hY hX (hasFDerivAt_id x) hXY hI |
| 25 | simpa only [ContinuousLinearMap.comp_id] using h |
| 26 | |
| 27 | end EulerContinuousInverseDerivative |