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.ContinuousInverseDerivative |
| 2 | import Euler.InverseMapJetContinuity |
| 3 | import Euler.PacketInverseFlowGevrey |
| 4 | |
| 5 | /-! The actual inverse parent flow needs only continuity as an input. |
| 6 | Its differentiability, smooth spatial slices, and jointly continuous |
| 7 | spatial jets follow from the prescribed Jacobian and inverse identities. -/ |
| 8 | |
| 9 | /-! ## From `Euler/PacketInverseFlowContinuity.lean` |
| 10 | |
| 11 | The text of `Euler/PacketInverseFlowContinuity.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! |
| 16 | # Joint spatial-jet continuity for the prescribed inverse parent flow |
| 17 | |
| 18 | The smooth bounded coefficient paths already carry genuine continuous |
| 19 | spatial jets. Their evaluation, together with the actual inverse identity, |
| 20 | supplies all inverse-flow continuity hypotheses used by Sobolev transport. |
| 21 | -/ |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | open scoped ContDiff BoundedContinuousFunction |
| 26 | |
| 27 | namespace EulerMeanCoefficients.SmoothCoefficientPath |
| 28 | |
| 29 | open EulerSmoothLimit |
| 30 | |
| 31 | theorem jet_joint_continuous {K V : Type*} [TopologicalSpace K] [CompactSpace K] |
| 32 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 33 | (A : SmoothCoefficientPath K V) (n : ℕ) : |
| 34 | Continuous (fun p : K × Space => |
| 35 | iteratedFDeriv ℝ n (A.field p.1 : Space → V) p.2) := by |
| 36 | have heq : (fun p : K × Space => |
| 37 | iteratedFDeriv ℝ n (A.field p.1 : Space → V) p.2) = |
| 38 | fun p => A.jet n p.1 p.2 := by |
| 39 | funext p |
| 40 | exact (A.jet_eq n p.1 p.2).symm |
| 41 | rw [heq] |
| 42 | fun_prop |
| 43 | |
| 44 | end EulerMeanCoefficients.SmoothCoefficientPath |
| 45 | |
| 46 | namespace EulerPacketInverseFlowGevrey |
| 47 | |
| 48 | open Set EulerSmoothLimit EulerGevreyComposition |
| 49 | |
| 50 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 51 | (D : EulerTransversePacketProvider.Data U) |
| 52 | (X Y : Icc (0 : ℝ) D.T → Space → Space) |
| 53 | (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) |
| 54 | (hY : ∀ t, Differentiable ℝ (Y t)) |
| 55 | (hXY : ∀ t x, X t (Y t x) = x) |
| 56 | (hYjoint : Continuous (Function.uncurry Y)) |
| 57 | |
| 58 | include hX hY hXY hYjoint in |
| 59 | /-- Every spatial inverse-flow jet is jointly continuous in time and space, |
| 60 | derived from the original coefficient path and actual inverse relation. -/ |
| 61 | theorem inverseFlow_jet_continuous (n : ℕ) : |
| 62 | Continuous (fun p : Icc (0 : ℝ) D.T × Space => |
| 63 | iteratedFDeriv ℝ n (Y p.1) p.2) := by |
| 64 | exact continuous_iteratedFDeriv_of_fderiv_eq_comp Y |
| 65 | (fun t => (D.FInv.field t : Space → Space →L[ℝ] Space)) hYjoint hY |
| 66 | D.FInv.smooth D.FInv.jet_joint_continuous |
| 67 | (inverseFlow_fderiv D X Y hX hY hXY) n |
| 68 | |
| 69 | end EulerPacketInverseFlowGevrey |
| 70 | end |
| 71 | |
| 72 | end |
| 73 | |
| 74 | noncomputable section |
| 75 | |
| 76 | open scoped ContDiff |
| 77 | |
| 78 | namespace EulerPacketInverseFlowGevrey |
| 79 | |
| 80 | open Set EulerSmoothLimit EulerContinuousInverseDerivative |
| 81 | |
| 82 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 83 | (D : EulerTransversePacketProvider.Data U) |
| 84 | (X Y : Icc (0 : ℝ) D.T → Space → Space) |
| 85 | (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) |
| 86 | (hXY : ∀ t x, X t (Y t x) = x) |
| 87 | (hY : Continuous (Function.uncurry Y)) |
| 88 | |
| 89 | include hX hXY hY in |
| 90 | theorem continuousInverse_hasFDerivAt (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 91 | HasFDerivAt (Y t) (D.FInv.field t (Y t x)) x := |
| 92 | hasFDerivAt_inverse (X t) (Y t) x (D.F.field t (Y t x)) (D.FInv.field t (Y t x)) |
| 93 | (hY.uncurry_left t).continuousAt (hX t (Y t x)) |
| 94 | (Filter.Eventually.of_forall (hXY t)) (D.inverse_left t (Y t x)) |
| 95 | |
| 96 | include hX hXY hY in |
| 97 | theorem continuousInverse_differentiable (t : Icc (0 : ℝ) D.T) : |
| 98 | Differentiable ℝ (Y t) := |
| 99 | fun x => (continuousInverse_hasFDerivAt D X Y hX hXY hY t x).differentiableAt |
| 100 | |
| 101 | include hX hXY hY in |
| 102 | theorem continuousInverse_contDiff (t : Icc (0 : ℝ) D.T) : ContDiff ℝ ∞ (Y t) := |
| 103 | inverseFlow_contDiff D X Y hX (continuousInverse_differentiable D X Y hX hXY hY) hXY t |
| 104 | |
| 105 | include hX hXY hY in |
| 106 | theorem continuousInverse_jet_continuous (n : ℕ) : |
| 107 | Continuous (fun p : Icc (0 : ℝ) D.T × Space => |
| 108 | iteratedFDeriv ℝ n (Y p.1) p.2) := |
| 109 | inverseFlow_jet_continuous D X Y hX |
| 110 | (continuousInverse_differentiable D X Y hX hXY hY) hXY hY n |
| 111 | |
| 112 | end EulerPacketInverseFlowGevrey |