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.InitialTimePrimitive |
| 2 | import Euler.TransverseGramPath |
| 3 | import Euler.TimeH1FieldProduct |
| 4 | |
| 5 | /-! |
| 6 | Actual moving-frame coordinates for initial-zero H¹ paths with arbitrary |
| 7 | terminal value. The coordinate derivative is constructed in Bochner L². |
| 8 | The physical reconstruction and its differentiated identity follow from the |
| 9 | coefficient left inverse, the H¹ product rule and uniqueness of derivatives. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | |
| 15 | namespace EulerTransverseInitialCoordinates |
| 16 | |
| 17 | open MeasureTheory Set InnerProductSpace ContinuousLinearMap |
| 18 | EulerTimeLp EulerTerminalTimePrimitive EulerInitialTimePrimitive |
| 19 | EulerVolterraConvolution EulerTimeH1OperatorProduct EulerTimeH1FieldProduct |
| 20 | EulerTransverseGramInverse EulerTransverseGramPath |
| 21 | open scoped Topology |
| 22 | |
| 23 | variable {U E : Type*} |
| 24 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 25 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 26 | |
| 27 | variable (T : ℝ) (hT : 0 ≤ T) |
| 28 | (Q Q₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 29 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t x, c * ‖x‖ ^ 2 ≤ ‖Q t x‖ ^ 2) |
| 30 | |
| 31 | def initialCoordinates (u : TimeLp T E) (t : ℝ) : U := |
| 32 | extendPath T hT (frameLeftInversePath T Q c hc hQ) t (initialRealPrimitive T u t) |
| 33 | |
| 34 | def initialCoordinateField (u : TimeLp T E) : TimeLp T U := |
| 35 | timeMultiplier T hT (frameLeftInversePath T Q c hc hQ) (initialPrimitiveTimeLp T hT u) |
| 36 | |
| 37 | def initialCoordinateDerivative (u : TimeLp T E) : TimeLp T U := |
| 38 | fieldProductDerivative T hT (frameLeftInversePath T Q c hc hQ) |
| 39 | (frameLeftInverseDerivativePath T Q Q₁ c hc hQ) (initialPrimitiveTimeLp T hT u) u |
| 40 | |
| 41 | theorem initialCoordinates_initial (u : TimeLp T E) : |
| 42 | initialCoordinates T hT Q c hc hQ u 0 = 0 := by |
| 43 | simp only [initialCoordinates, initialRealPrimitive_initial, map_zero] |
| 44 | |
| 45 | theorem initialCoordinateField_ae (u : TimeLp T E) : |
| 46 | (initialCoordinateField T hT Q c hc hQ u : ℝ → U) =ᵐ[timeMeasure T] |
| 47 | initialCoordinates T hT Q c hc hQ u := |
| 48 | fieldProduct_ae T hT (frameLeftInversePath T Q c hc hQ) |
| 49 | (initialPrimitiveTimeLp T hT u) (initialRealPrimitive T u) |
| 50 | (initialPrimitiveTimeLp_ae T hT u) |
| 51 | |
| 52 | variable (hd : ∀ t : Icc (0 : ℝ) T, |
| 53 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 54 | |
| 55 | include hd in |
| 56 | theorem initialCoordinates_h1 (u : TimeLp T E) : |
| 57 | AbsolutelyContinuousOnInterval (initialCoordinates T hT Q c hc hQ u) 0 T ∧ |
| 58 | (initialCoordinateField T hT Q c hc hQ u : ℝ → U) =ᵐ[timeMeasure T] |
| 59 | initialCoordinates T hT Q c hc hQ u ∧ |
| 60 | ∀ᵐ t ∂timeMeasure T, |
| 61 | HasDerivAt (initialCoordinates T hT Q c hc hQ u) |
| 62 | (initialCoordinateDerivative T hT Q Q₁ c hc hQ u t) t := |
| 63 | fieldProduct_h1 T hT (frameLeftInversePath T Q c hc hQ) |
| 64 | (frameLeftInverseDerivativePath T Q Q₁ c hc hQ) |
| 65 | (frameLeftInversePath_hasDerivWithinAt T Q Q₁ c hc hQ hT hd) |
| 66 | (initialPrimitiveTimeLp T hT u) u (initialRealPrimitive T u) |
| 67 | (initialRealPrimitive_absolutelyContinuous T u) |
| 68 | (initialPrimitiveTimeLp_ae T hT u) (initialRealPrimitive_hasDerivAt_ae T u) |
| 69 | |
| 70 | /-- The constructed coordinates reconstruct the actual nonzero-terminal path. -/ |
| 71 | theorem initialCoordinates_reconstruct (u : TimeLp T E) |
| 72 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = initialRealPrimitive T u t) |
| 73 | (t : Icc (0 : ℝ) T) : |
| 74 | Q t (initialCoordinates T hT Q c hc hQ u t) = initialRealPrimitive T u t := by |
| 75 | obtain ⟨x, hx⟩ := huRange t |
| 76 | simp only [initialCoordinates, extendPath, projIcc_of_mem hT t.property] |
| 77 | rw [← hx] |
| 78 | change Q t (frameLeftInverse (Q t) c hc (hQ t) (Q t x)) = Q t x |
| 79 | rw [frameLeftInverse_apply] |
| 80 | |
| 81 | include hd in |
| 82 | /-- Differentiating reconstruction gives the literal physical velocity a.e. -/ |
| 83 | theorem initialCoordinateDerivative_reconstruct_ae (u : TimeLp T E) |
| 84 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = initialRealPrimitive T u t) : |
| 85 | ∀ᵐ t ∂timeMeasure T, |
| 86 | u t = extendPath T hT Q₁ t (initialCoordinates T hT Q c hc hQ u t) + |
| 87 | extendPath T hT Q t (initialCoordinateDerivative T hT Q Q₁ c hc hQ u t) := by |
| 88 | let ξ := initialCoordinateField T hT Q c hc hQ u |
| 89 | let v := initialCoordinateDerivative T hT Q Q₁ c hc hQ u |
| 90 | have hξ := initialCoordinates_h1 T hT Q Q₁ c hc hQ hd u |
| 91 | have hprod := fieldProduct_hasDerivAt_ae T hT Q Q₁ hd ξ v |
| 92 | (initialCoordinates T hT Q c hc hQ u) hξ.2.1 hξ.2.2 |
| 93 | have hmem : ∀ᵐ t ∂timeMeasure T, t ∈ Ioo (0 : ℝ) T := by |
| 94 | change ∀ᵐ t ∂volume.restrict (Icc (0 : ℝ) T), t ∈ Ioo (0 : ℝ) T |
| 95 | rw [← restrict_Ioo_eq_restrict_Icc] |
| 96 | exact ae_restrict_mem measurableSet_Ioo |
| 97 | filter_upwards [hmem, initialRealPrimitive_hasDerivAt_ae T u, hprod, |
| 98 | fieldProductDerivative_ae T hT Q Q₁ ξ v, hξ.2.1] with t ht hud hpd hp hξt |
| 99 | have he : initialRealPrimitive T u =ᶠ[𝓝 t] |
| 100 | (fun s => extendPath T hT Q s (initialCoordinates T hT Q c hc hQ u s)) := by |
| 101 | filter_upwards [Icc_mem_nhds ht.1 ht.2] with s hs |
| 102 | simpa only [extendPath, projIcc_of_mem hT hs] using |
| 103 | (initialCoordinates_reconstruct T hT Q c hc hQ u huRange ⟨s, hs⟩).symm |
| 104 | have hu := hud.unique (hpd.congr_of_eventuallyEq he) |
| 105 | change u t = fieldProductDerivative T hT Q Q₁ ξ v t at hu |
| 106 | rw [hu, hp] |
| 107 | exact congrArg (fun a => extendPath T hT Q₁ t a + extendPath T hT Q t (v t)) hξt |
| 108 | |
| 109 | end EulerTransverseInitialCoordinates |