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.TransverseGramPath |
| 2 | import Euler.TransverseMomentumRegularity |
| 3 | |
| 4 | /-! |
| 5 | # Genuine time-H¹ transverse coordinates |
| 6 | |
| 7 | The coordinates are obtained by applying the constructed frame left inverse to |
| 8 | the physical displacement. Their time derivative is an actual Bochner L² field, |
| 9 | and differentiating the reconstructed displacement gives the exact kinetic |
| 10 | coordinate identity used in the strong transverse equation. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace EulerTransverseCoordinateRegularity |
| 16 | |
| 17 | open MeasureTheory Set InnerProductSpace ContinuousLinearMap |
| 18 | EulerTimeLp EulerTerminalTimePrimitive EulerVolterraConvolution |
| 19 | EulerTimeH1OperatorProduct EulerTransverseVariationalInverse |
| 20 | EulerTransverseGramInverse EulerTransverseGramPath |
| 21 | |
| 22 | variable {U E : Type*} |
| 23 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 24 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 25 | |
| 26 | variable (T : ℝ) (hT : 0 ≤ T) |
| 27 | (Q Q₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 28 | (c : ℝ) (hc : 0 < c) |
| 29 | (hQ : ∀ t x, c * ‖x‖ ^ 2 ≤ ‖Q t x‖ ^ 2) |
| 30 | |
| 31 | /-- Canonical coordinates obtained from the actual inverse Gram coefficient. -/ |
| 32 | def coordinatePrimitive (u : TimeLp T E) : ℝ → U := |
| 33 | productPrimitive T hT (frameLeftInversePath T Q c hc hQ) u |
| 34 | |
| 35 | /-- The actual L² derivative of the canonical coordinates. -/ |
| 36 | def coordinateDerivative (u : TimeLp T E) : TimeLp T U := |
| 37 | productDerivative T hT (frameLeftInversePath T Q c hc hQ) |
| 38 | (frameLeftInverseDerivativePath T Q Q₁ c hc hQ) u |
| 39 | |
| 40 | variable (hd : ∀ t : Icc (0 : ℝ) T, |
| 41 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 42 | |
| 43 | include hd in |
| 44 | /-- The canonical coordinates are genuinely absolutely continuous. -/ |
| 45 | theorem coordinatePrimitive_absolutelyContinuous (u : TimeLp T E) : |
| 46 | AbsolutelyContinuousOnInterval (coordinatePrimitive T hT Q c hc hQ u) 0 T := |
| 47 | productPrimitive_absolutelyContinuous T hT (frameLeftInversePath T Q c hc hQ) |
| 48 | (frameLeftInverseDerivativePath T Q Q₁ c hc hQ) |
| 49 | (frameLeftInversePath_hasDerivWithinAt T Q Q₁ c hc hQ hT hd) u |
| 50 | |
| 51 | include hd in |
| 52 | /-- The explicitly constructed L² field is the actual a.e. coordinate derivative. -/ |
| 53 | theorem coordinatePrimitive_hasDerivAt_ae (u : TimeLp T E) : |
| 54 | ∀ᵐ t ∂timeMeasure T, |
| 55 | HasDerivAt (coordinatePrimitive T hT Q c hc hQ u) |
| 56 | (coordinateDerivative T hT Q Q₁ c hc hQ u t) t := |
| 57 | productPrimitive_hasDerivAt_ae T hT (frameLeftInversePath T Q c hc hQ) |
| 58 | (frameLeftInverseDerivativePath T Q Q₁ c hc hQ) |
| 59 | (frameLeftInversePath_hasDerivWithinAt T Q Q₁ c hc hQ hT hd) u |
| 60 | |
| 61 | include hd in |
| 62 | /-- Integrating the coordinate derivative recovers the canonical coordinates. -/ |
| 63 | theorem terminalPrimitive_coordinateDerivative (u : TimeLp T E) (t : Icc (0 : ℝ) T) : |
| 64 | terminalPrimitive T hT (coordinateDerivative T hT Q Q₁ c hc hQ u) t = |
| 65 | coordinatePrimitive T hT Q c hc hQ u t := by |
| 66 | exact (productPrimitive_eq_realPrimitive T hT (frameLeftInversePath T Q c hc hQ) |
| 67 | (frameLeftInverseDerivativePath T Q Q₁ c hc hQ) |
| 68 | (frameLeftInversePath_hasDerivWithinAt T Q Q₁ c hc hQ hT hd) u t t.property).symm |
| 69 | |
| 70 | /-- The initial coordinate trace vanishes for every admissible displacement. -/ |
| 71 | theorem coordinatePrimitive_initial (m : Icc (0 : ℝ) T → E) |
| 72 | (u : transverseDerivatives T hT m) : |
| 73 | coordinatePrimitive T hT Q c hc hQ (u : TimeLp T E) 0 = 0 := by |
| 74 | have hu : realPrimitive T (u : TimeLp T E) 0 = 0 := u.property.1 |
| 75 | simp only [coordinatePrimitive, productPrimitive, hu, map_zero] |
| 76 | |
| 77 | /-- The terminal coordinate trace vanishes identically. -/ |
| 78 | theorem coordinatePrimitive_terminal (u : TimeLp T E) : |
| 79 | coordinatePrimitive T hT Q c hc hQ u T = 0 := |
| 80 | productPrimitive_terminal T hT (frameLeftInversePath T Q c hc hQ) u |
| 81 | |
| 82 | /-- Reconstruction only requires the prescribed physical displacement to lie |
| 83 | in the actual range of the frame. This general statement also applies to |
| 84 | infinite-dimensional spatial constraint spaces. -/ |
| 85 | theorem coordinatePrimitive_reconstruct_of_range (u : TimeLp T E) |
| 86 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = realPrimitive T u t) |
| 87 | (t : Icc (0 : ℝ) T) : |
| 88 | Q t (coordinatePrimitive T hT Q c hc hQ u t) = realPrimitive T u t := by |
| 89 | obtain ⟨x, hx⟩ := huRange t |
| 90 | simp only [coordinatePrimitive, productPrimitive, extendPath, projIcc_of_mem hT t.property] |
| 91 | rw [← hx] |
| 92 | change Q t (frameLeftInverse (Q t) c hc (hQ t) (Q t x)) = Q t x |
| 93 | rw [frameLeftInverse_apply] |
| 94 | |
| 95 | include hd in |
| 96 | /-- The kinetic identity follows from injectivity of the genuine time primitive. -/ |
| 97 | theorem coordinateDerivative_reconstruct_of_range (u : TimeLp T E) |
| 98 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = realPrimitive T u t) : |
| 99 | productDerivative T hT Q Q₁ (coordinateDerivative T hT Q Q₁ c hc hQ u) = u := by |
| 100 | apply terminalPrimitive_injective T hT |
| 101 | apply ContinuousMap.ext |
| 102 | intro t |
| 103 | rw [terminalPrimitive_productDerivative T hT Q Q₁ hd, |
| 104 | terminalPrimitive_coordinateDerivative T hT Q Q₁ c hc hQ hd] |
| 105 | exact coordinatePrimitive_reconstruct_of_range T hT Q c hc hQ u huRange t |
| 106 | |
| 107 | include hd in |
| 108 | /-- The L² primitive of the coordinate derivative has the actual coordinate |
| 109 | path as its representative. -/ |
| 110 | theorem coordinatePrimitive_ae (u : TimeLp T E) : |
| 111 | (primitiveTimeLp T hT (coordinateDerivative T hT Q Q₁ c hc hQ u) : ℝ → U) =ᵐ[timeMeasure T] |
| 112 | coordinatePrimitive T hT Q c hc hQ u := by |
| 113 | have hmem : ∀ᵐ t ∂timeMeasure T, t ∈ Icc (0 : ℝ) T := |
| 114 | ae_restrict_mem measurableSet_Icc |
| 115 | filter_upwards [hmem, |
| 116 | primitiveTimeLp_ae T hT (coordinateDerivative T hT Q Q₁ c hc hQ u)] with t ht hp |
| 117 | exact hp.trans (terminalPrimitive_coordinateDerivative T hT Q Q₁ c hc hQ hd u ⟨t, ht⟩) |
| 118 | |
| 119 | include hd in |
| 120 | /-- The physical derivative has the literal expression `Q_t ξ + Q ξ_t` a.e. -/ |
| 121 | theorem coordinateDerivative_reconstruct_ae_of_range (u : TimeLp T E) |
| 122 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = realPrimitive T u t) : |
| 123 | ∀ᵐ t ∂timeMeasure T, |
| 124 | u t = extendPath T hT Q₁ t (coordinatePrimitive T hT Q c hc hQ u t) + |
| 125 | extendPath T hT Q t (coordinateDerivative T hT Q Q₁ c hc hQ u t) := by |
| 126 | have hmem : ∀ᵐ t ∂timeMeasure T, t ∈ Icc (0 : ℝ) T := |
| 127 | ae_restrict_mem measurableSet_Icc |
| 128 | have hid := coordinateDerivative_reconstruct_of_range T hT Q Q₁ c hc hQ hd u huRange |
| 129 | have hprod := productDerivative_ae T hT Q Q₁ (coordinateDerivative T hT Q Q₁ c hc hQ u) |
| 130 | rw [hid] at hprod |
| 131 | filter_upwards [hmem, hprod] with t ht hprod |
| 132 | rw [hprod] |
| 133 | congr 2 |
| 134 | exact terminalPrimitive_coordinateDerivative T hT Q Q₁ c hc hQ hd u ⟨t, ht⟩ |
| 135 | |
| 136 | omit [CompleteSpace U] [CompleteSpace E] in |
| 137 | /-- A transverse constraint puts the physical displacement in the frame's range. -/ |
| 138 | theorem transverse_range (m : Icc (0 : ℝ) T → E) |
| 139 | (hRange : ∀ t η, ⟪m t, η⟫_ℝ = 0 → ∃ x : U, Q t x = η) |
| 140 | (u : transverseDerivatives T hT m) (t : Icc (0 : ℝ) T) : |
| 141 | ∃ x : U, Q t x = realPrimitive T (u : TimeLp T E) t := |
| 142 | hRange t _ (u.property.2 t) |
| 143 | |
| 144 | /-- Canonical coordinates reconstruct every admissible transverse displacement. -/ |
| 145 | theorem coordinatePrimitive_reconstruct (m : Icc (0 : ℝ) T → E) |
| 146 | (hRange : ∀ t η, ⟪m t, η⟫_ℝ = 0 → ∃ x : U, Q t x = η) |
| 147 | (u : transverseDerivatives T hT m) (t : Icc (0 : ℝ) T) : |
| 148 | Q t (coordinatePrimitive T hT Q c hc hQ (u : TimeLp T E) t) = |
| 149 | realPrimitive T (u : TimeLp T E) t := |
| 150 | coordinatePrimitive_reconstruct_of_range T hT Q c hc hQ (u : TimeLp T E) |
| 151 | (transverse_range T hT Q m hRange u) t |
| 152 | |
| 153 | include hd in |
| 154 | /-- The transverse derivative is the derivative of its reconstructed coordinates. -/ |
| 155 | theorem coordinateDerivative_reconstruct (m : Icc (0 : ℝ) T → E) |
| 156 | (hRange : ∀ t η, ⟪m t, η⟫_ℝ = 0 → ∃ x : U, Q t x = η) |
| 157 | (u : transverseDerivatives T hT m) : |
| 158 | productDerivative T hT Q Q₁ |
| 159 | (coordinateDerivative T hT Q Q₁ c hc hQ (u : TimeLp T E)) = |
| 160 | (u : TimeLp T E) := |
| 161 | coordinateDerivative_reconstruct_of_range T hT Q Q₁ c hc hQ hd (u : TimeLp T E) |
| 162 | (transverse_range T hT Q m hRange u) |
| 163 | |
| 164 | include hd in |
| 165 | /-- The transverse physical derivative has its actual coordinate expression a.e. -/ |
| 166 | theorem coordinateDerivative_reconstruct_ae (m : Icc (0 : ℝ) T → E) |
| 167 | (hRange : ∀ t η, ⟪m t, η⟫_ℝ = 0 → ∃ x : U, Q t x = η) |
| 168 | (u : transverseDerivatives T hT m) : |
| 169 | ∀ᵐ t ∂timeMeasure T, |
| 170 | (u : TimeLp T E) t = |
| 171 | extendPath T hT Q₁ t (coordinatePrimitive T hT Q c hc hQ (u : TimeLp T E) t) + |
| 172 | extendPath T hT Q t (coordinateDerivative T hT Q Q₁ c hc hQ (u : TimeLp T E) t) := |
| 173 | coordinateDerivative_reconstruct_ae_of_range T hT Q Q₁ c hc hQ hd (u : TimeLp T E) |
| 174 | (transverse_range T hT Q m hRange u) |
| 175 | |
| 176 | end EulerTransverseCoordinateRegularity |