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.TransversePacketPrimaryField |
| 2 | import Euler.CylinderLocalSupport |
| 3 | import Euler.CylinderCorrectorMeanZero |
| 4 | import Euler.TransversePacketCorrectorOperator |
| 5 | import Euler.TransversePacketCorrectorParity |
| 6 | |
| 7 | /-! |
| 8 | # The literal corrector of the terminal-data primary solution |
| 9 | |
| 10 | The actual global velocity and its true time derivative construct Q, Q_t, |
| 11 | C and C_t. The returned Field is for the literal raw curlCorrector used by |
| 12 | the recursion, including at the history/forward junction. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace EulerTransversePacketPrimary |
| 18 | |
| 19 | open Set ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace EulerMeanCoefficients |
| 20 | EulerLpCylinderTranslation EulerLpCylinderPaths EulerCylinderSmoothOrbit EulerSourcePotentialCoefficient |
| 21 | EulerPacketProfileRecursion EulerVolterraConvolution EulerMetricTransport |
| 22 | EulerTransversePacketProvider EulerPacketCylinderField |
| 23 | open scoped ContDiff BoundedContinuousFunction |
| 24 | |
| 25 | variable {P : ℝ} [Fact (0 < P)] |
| 26 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 27 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 28 | (B : HistoryData (D.initial τ hτ hτT.le)) (Y : InitialData P D) |
| 29 | |
| 30 | def potentialPath : C(Icc (0 : ℝ) D.T,LiftL2 P) := |
| 31 | EulerCylinderPotential.potentialPath P D.potentialCoefficientPath (velocityPath τ hτ hτT B Y) |
| 32 | |
| 33 | def potentialTimePath : C(Icc (0 : ℝ) D.T,LiftL2 P) := |
| 34 | EulerCylinderPotential.potentialDerivative P D.T D.potentialCoefficientPath D.potentialDerivative |
| 35 | (velocityPath τ hτ hτT B Y) (derivativePath τ hτ hτT B Y) |
| 36 | |
| 37 | theorem potentialPath_orbit : ContDiff ℝ ∞ (fun a => pathTranslate P a (potentialPath τ hτ hτT B Y)) := |
| 38 | EulerCylinderPotential.potentialPath_orbit P D.potentialCoefficientPath D.potentialCoefficientPath_orbit |
| 39 | (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) |
| 40 | |
| 41 | theorem potentialTimePath_orbit : ContDiff ℝ ∞ (fun a => pathTranslate P a (potentialTimePath τ hτ hτT B Y)) := |
| 42 | EulerCylinderPotential.potentialDerivative_orbit P D.T D.potentialCoefficientPath D.potentialDerivative |
| 43 | D.potentialCoefficientPath_orbit D.potentialDerivative_orbit |
| 44 | (velocityPath τ hτ hτT B Y) (derivativePath τ hτ hτT B Y) |
| 45 | (velocityPath_orbit τ hτ hτT B Y) (derivativePath_orbit τ hτ hτT B Y) |
| 46 | |
| 47 | theorem potentialPath_time (t : Icc (0 : ℝ) D.T) : |
| 48 | HasDerivWithinAt (extendPath D.T D.T_pos.le (potentialPath τ hτ hτT B Y)) |
| 49 | (potentialTimePath τ hτ hτT B Y t) (Icc (0 : ℝ) D.T) t := |
| 50 | EulerCylinderPotential.potentialPath_hasDerivWithinAt P D.T D.T_pos.le |
| 51 | D.potentialCoefficientPath D.potentialDerivative (velocityPath τ hτ hτT B Y) (derivativePath τ hτ hτT B Y) |
| 52 | D.potentialCoefficientPath_time (velocityPath_time τ hτ hτT B Y) t |
| 53 | |
| 54 | def correctorPath : C(Icc (0 : ℝ) D.T,LiftL2 P) := |
| 55 | EulerCylinderSlowCurl.path P D.FInv.field (potentialPath τ hτ hτT B Y) |
| 56 | |
| 57 | def correctorTimePath : C(Icc (0 : ℝ) D.T,LiftL2 P) := |
| 58 | EulerCylinderSlowCurl.derivative P D.T D.FInv.field D.inverseDerivative |
| 59 | (potentialPath τ hτ hτT B Y) (potentialTimePath τ hτ hτT B Y) |
| 60 | |
| 61 | theorem correctorPath_orbit : ContDiff ℝ ∞ (fun a => pathTranslate P a (correctorPath τ hτ hτT B Y)) := |
| 62 | EulerCylinderSlowCurl.path_orbit P D.FInv.field D.FInv.translation_contDiff |
| 63 | (potentialPath τ hτ hτT B Y) (potentialPath_orbit τ hτ hτT B Y) |
| 64 | |
| 65 | theorem correctorTimePath_orbit : ContDiff ℝ ∞ (fun a => pathTranslate P a (correctorTimePath τ hτ hτT B Y)) := |
| 66 | EulerCylinderSlowCurl.derivative_orbit P D.T D.FInv.field D.inverseDerivative |
| 67 | D.FInv.translation_contDiff D.inverseDerivative_orbit |
| 68 | (potentialPath τ hτ hτT B Y) (potentialTimePath τ hτ hτT B Y) |
| 69 | (potentialPath_orbit τ hτ hτT B Y) (potentialTimePath_orbit τ hτ hτT B Y) |
| 70 | |
| 71 | theorem correctorPath_time (t : Icc (0 : ℝ) D.T) : |
| 72 | HasDerivWithinAt (extendPath D.T D.T_pos.le (correctorPath τ hτ hτT B Y)) |
| 73 | (correctorTimePath τ hτ hτT B Y t) (Icc (0 : ℝ) D.T) t := |
| 74 | EulerCylinderSlowCurl.path_hasDerivWithinAt P D.T D.T_pos.le D.FInv.field D.inverseDerivative |
| 75 | (potentialPath τ hτ hτT B Y) (potentialTimePath τ hτ hτT B Y) |
| 76 | (potentialPath_orbit τ hτ hτT B Y) (potentialTimePath_orbit τ hτ hτT B Y) |
| 77 | D.inverse_hasDerivWithinAt (potentialPath_time τ hτ hτT B Y) t |
| 78 | |
| 79 | def corrector : VectorField := fun z => |
| 80 | pointField P (correctorPath τ hτ hτT B Y) (correctorPath_orbit τ hτ hτT B Y) |
| 81 | (D.clamp z.1) (z.2.1,(z.2.2 : AddCircle P)) |
| 82 | |
| 83 | def correctorDerivative : VectorField := fun z => |
| 84 | pointField P (correctorTimePath τ hτ hτT B Y) (correctorTimePath_orbit τ hτ hτT B Y) |
| 85 | (D.clamp z.1) (z.2.1,(z.2.2 : AddCircle P)) |
| 86 | |
| 87 | theorem velocityPath_raw_mean_zero (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 88 | (∫ θ in (0 : ℝ)..P, pointField P (velocityPath τ hτ hτT B Y) |
| 89 | (velocityPath_orbit τ hτ hτT B Y) t (x,(θ : AddCircle P))) = 0 := by |
| 90 | simpa only [vector,Data.clamp_coe] using vector_mean_zero τ hτ hτT B Y t x |
| 91 | |
| 92 | theorem rawPotential_eq (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 93 | D.rawPotential P (vector τ hτ hτT B Y) (t,(x,θ)) = |
| 94 | pointField P (potentialPath τ hτ hτT B Y) (potentialPath_orbit τ hτ hτT B Y) t (x,(θ : AddCircle P)) := by |
| 95 | have he : (fun s : ℝ => vector τ hτ hτT B Y (t,(x,s))) = fun s : ℝ => |
| 96 | pointField P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t (x,(s : AddCircle P)) := |
| 97 | funext (fun s => (vectorField τ hτ hτT B Y).raw_eq t x s) |
| 98 | rw [Data.rawPotential,Data.clamp_coe,he] |
| 99 | exact (EulerCylinderPotential.potentialField_source_formula P D.potentialCoefficientPath |
| 100 | D.potentialCoefficientPath_orbit (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) |
| 101 | (velocityPath_raw_mean_zero τ hτ hτT B Y) (fun t x => D.normal.field t x) |
| 102 | (potentialCoefficient_apply D.normal D.normalLower D.normalLower_pos D.normal_lower) t x θ).symm |
| 103 | |
| 104 | theorem corrector_formula (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 105 | corrector τ hτ hτT B Y (t,(x,θ)) = |
| 106 | EulerMeanBoundary.curlMatrix |
| 107 | ((EulerLiftedWeakDerivative.fieldFDeriv P |
| 108 | (pointField P (potentialPath τ hτ hτT B Y) (potentialPath_orbit τ hτ hτT B Y) t) (x,(θ : AddCircle P))).comp |
| 109 | ((ContinuousLinearMap.inl ℝ Space ℝ).comp (D.FInv.field t x))) := by |
| 110 | change EulerCylinderSlowCurl.field P D.FInv.field D.FInv.translation_contDiff |
| 111 | (potentialPath τ hτ hτT B Y) (potentialPath_orbit τ hτ hτT B Y) (D.clamp t) (x,(θ : AddCircle P)) = _ |
| 112 | rw [Data.clamp_coe] |
| 113 | exact EulerCylinderSlowCurl.field_formula P D.FInv.field D.FInv.translation_contDiff |
| 114 | (potentialPath τ hτ hτT B Y) (potentialPath_orbit τ hτ hτT B Y) t (x,(θ : AddCircle P)) |
| 115 | |
| 116 | theorem curlCorrector_eq (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 117 | D.curlCorrector P (vector τ hτ hτT B Y) (t,(x,θ)) = corrector τ hτ hτT B Y (t,(x,θ)) := by |
| 118 | have he : (fun y : LiftTangent => D.rawPotential P (vector τ hτ hτT B Y) (t,y)) = |
| 119 | fun y : LiftTangent => pointField P (potentialPath τ hτ hτT B Y) (potentialPath_orbit τ hτ hτT B Y) |
| 120 | t (y.1,(y.2 : AddCircle P)) := funext (fun y => rawPotential_eq τ hτ hτT B Y t y.1 y.2) |
| 121 | rw [Data.curlCorrector,Data.clamp_coe,he,coverField_fderiv,corrector_formula τ hτ hτT B Y t x θ] |
| 122 | |
| 123 | def correctorField : Field P D.T (D.curlCorrector P (vector τ hτ hτT B Y)) where |
| 124 | path := correctorPath τ hτ hτT B Y |
| 125 | orbit := correctorPath_orbit τ hτ hτT B Y |
| 126 | raw_eq t x θ := (curlCorrector_eq τ hτ hτT B Y t x θ).trans (by simp only [corrector,Data.clamp_coe]) |
| 127 | |
| 128 | def correctorDerivativeField : Field P D.T (correctorDerivative τ hτ hτT B Y) where |
| 129 | path := correctorTimePath τ hτ hτT B Y |
| 130 | orbit := correctorTimePath_orbit τ hτ hτT B Y |
| 131 | raw_eq t x θ := by simp only [correctorDerivative,Data.clamp_coe] |
| 132 | |
| 133 | theorem correctorField_time : TimeDerivative D.T_pos.le |
| 134 | (correctorField τ hτ hτT B Y) (correctorDerivativeField τ hτ hτT B Y) := |
| 135 | correctorPath_time τ hτ hτT B Y |
| 136 | |
| 137 | end EulerTransversePacketPrimary |
| 138 | |
| 139 | namespace EulerTransversePacketPrimary |
| 140 | |
| 141 | open Set ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace |
| 142 | EulerLpCylinderTranslation EulerLpCylinderPaths EulerCylinderSmoothOrbit EulerCylinderLocalSupport |
| 143 | EulerCylinderAngleAverage EulerCylinderCorrectorMeanZero EulerPacketProfileRecursion |
| 144 | EulerTransversePacketProvider EulerElapsedTimePathGluing |
| 145 | |
| 146 | variable {P : ℝ} [Fact (0 < P)] |
| 147 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 148 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 149 | (B : HistoryData (D.initial τ hτ hτT.le)) (Y : InitialData P D) |
| 150 | |
| 151 | theorem potentialPath_supported (t : Icc (0 : ℝ) D.T) : |
| 152 | potentialPath τ hτ hτT B Y t ∈ Supported P Space D.support D.support_measurable := |
| 153 | EulerCylinderLocalSupport.potentialPath_supported P D.support D.support_measurable |
| 154 | (velocityPath τ hτ hτT B Y) D.potentialCoefficientPath (velocityPath_supported τ hτ hτT B Y) t |
| 155 | |
| 156 | theorem potentialTimePath_supported (t : Icc (0 : ℝ) D.T) : |
| 157 | potentialTimePath τ hτ hτT B Y t ∈ Supported P Space D.support D.support_measurable := by |
| 158 | apply (Supported P Space D.support D.support_measurable).add_mem |
| 159 | · exact EulerCylinderLocalSupport.potentialPath_supported P D.support D.support_measurable |
| 160 | (velocityPath τ hτ hτT B Y) D.potentialDerivative (velocityPath_supported τ hτ hτT B Y) t |
| 161 | · exact EulerCylinderLocalSupport.potentialPath_supported P D.support D.support_measurable |
| 162 | (derivativePath τ hτ hτT B Y) D.potentialCoefficientPath (derivativePath_supported τ hτ hτT B Y) t |
| 163 | |
| 164 | theorem correctorPath_supported (t : Icc (0 : ℝ) D.T) : |
| 165 | correctorPath τ hτ hτT B Y t ∈ Supported P Space D.support D.support_measurable := |
| 166 | slowCurlPath_supported P D.support D.support_measurable (potentialPath τ hτ hτT B Y) |
| 167 | (potentialPath_orbit τ hτ hτT B Y) D.FInv.field D.support_compact.isClosed |
| 168 | (potentialPath_supported τ hτ hτT B Y) t |
| 169 | |
| 170 | theorem correctorTimePath_supported (t : Icc (0 : ℝ) D.T) : |
| 171 | correctorTimePath τ hτ hτT B Y t ∈ Supported P Space D.support D.support_measurable := by |
| 172 | apply (Supported P Space D.support D.support_measurable).add_mem |
| 173 | · exact slowCurlPath_supported P D.support D.support_measurable (potentialPath τ hτ hτT B Y) |
| 174 | (potentialPath_orbit τ hτ hτT B Y) D.inverseDerivative D.support_compact.isClosed |
| 175 | (potentialPath_supported τ hτ hτT B Y) t |
| 176 | · exact slowCurlPath_supported P D.support D.support_measurable (potentialTimePath τ hτ hτT B Y) |
| 177 | (potentialTimePath_orbit τ hτ hτT B Y) D.FInv.field D.support_compact.isClosed |
| 178 | (potentialTimePath_supported τ hτ hτT B Y) t |
| 179 | |
| 180 | theorem potentialPath_average_zero : pathAverage P (potentialPath τ hτ hτT B Y) = 0 := |
| 181 | potentialPath_mean_zero P (velocityPath τ hτ hτT B Y) D.potentialCoefficientPath |
| 182 | (ContinuousMap.ext (velocityPath_mean_zero τ hτ hτT B Y)) |
| 183 | |
| 184 | theorem potentialTimePath_average_zero : pathAverage P (potentialTimePath τ hτ hτT B Y) = 0 := by |
| 185 | rw [potentialTimePath,EulerCylinderPotential.potentialDerivative,map_add, |
| 186 | potentialPath_mean_zero P (velocityPath τ hτ hτT B Y) D.potentialDerivative |
| 187 | (ContinuousMap.ext (velocityPath_mean_zero τ hτ hτT B Y)), |
| 188 | potentialPath_mean_zero P (derivativePath τ hτ hτT B Y) D.potentialCoefficientPath |
| 189 | (ContinuousMap.ext (derivativePath_mean_zero τ hτ hτT B Y)),add_zero] |
| 190 | |
| 191 | theorem correctorPath_average_zero : pathAverage P (correctorPath τ hτ hτT B Y) = 0 := |
| 192 | slowCurl_mean_zero P (potentialPath τ hτ hτT B Y) (potentialPath_orbit τ hτ hτT B Y) |
| 193 | D.FInv.field (potentialPath_average_zero τ hτ hτT B Y) |
| 194 | |
| 195 | theorem correctorTimePath_average_zero : pathAverage P (correctorTimePath τ hτ hτT B Y) = 0 := by |
| 196 | rw [correctorTimePath,EulerCylinderSlowCurl.derivative,map_add, |
| 197 | slowCurl_mean_zero P (potentialPath τ hτ hτT B Y) (potentialPath_orbit τ hτ hτT B Y) |
| 198 | D.inverseDerivative (potentialPath_average_zero τ hτ hτT B Y), |
| 199 | slowCurl_mean_zero P (potentialTimePath τ hτ hτT B Y) (potentialTimePath_orbit τ hτ hτT B Y) |
| 200 | D.FInv.field (potentialTimePath_average_zero τ hτ hτT B Y),add_zero] |
| 201 | |
| 202 | theorem corrector_zero_outside (t : ℝ) (x : Space) (hx : x ∉ D.support) (θ : ℝ) : |
| 203 | corrector τ hτ hτT B Y (t,(x,θ)) = 0 := |
| 204 | pointField_zero_outside P D.support D.support_measurable (correctorPath τ hτ hτT B Y) |
| 205 | (correctorPath_orbit τ hτ hτT B Y) D.support_compact.isClosed |
| 206 | (correctorPath_supported τ hτ hτT B Y) (D.clamp t) (x,(θ : AddCircle P)) hx |
| 207 | |
| 208 | theorem correctorDerivative_zero_outside (t : ℝ) (x : Space) (hx : x ∉ D.support) (θ : ℝ) : |
| 209 | correctorDerivative τ hτ hτT B Y (t,(x,θ)) = 0 := |
| 210 | pointField_zero_outside P D.support D.support_measurable (correctorTimePath τ hτ hτT B Y) |
| 211 | (correctorTimePath_orbit τ hτ hτT B Y) D.support_compact.isClosed |
| 212 | (correctorTimePath_supported τ hτ hτT B Y) (D.clamp t) (x,(θ : AddCircle P)) hx |
| 213 | |
| 214 | theorem curlCorrector_mean_zero (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 215 | (∫ θ in (0 : ℝ)..P, D.curlCorrector P (vector τ hτ hτT B Y) (t,(x,θ))) = 0 := by |
| 216 | have he : (fun θ => D.curlCorrector P (vector τ hτ hτT B Y) (t,(x,θ))) = |
| 217 | fun θ => corrector τ hτ hτT B Y (t,(x,θ)) := funext (curlCorrector_eq τ hτ hτT B Y t x) |
| 218 | rw [he] |
| 219 | exact (pathAverage_eq_zero_iff P (correctorPath τ hτ hτT B Y) (correctorPath_orbit τ hτ hτT B Y)).mp |
| 220 | (correctorPath_average_zero τ hτ hτT B Y) (D.clamp t) x |
| 221 | |
| 222 | end EulerTransversePacketPrimary |
| 223 | |
| 224 | |
| 225 | namespace EulerTransversePacketPrimary |
| 226 | |
| 227 | open Set EulerSmoothLimit EulerLpCylinderTranslation EulerLpCylinderPaths |
| 228 | EulerTransversePacketProvider EulerPacketCylinderField EulerCylinderFieldReflection |
| 229 | |
| 230 | variable {P : ℝ} [Fact (0 < P)] |
| 231 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 232 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 233 | (B : HistoryData (D.initial τ hτ hτT.le)) (Y : InitialData P D) |
| 234 | (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) |
| 235 | (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) |
| 236 | (hM : ∀ t x, D.M.field t (-x) = D.M.field t x) |
| 237 | (hH : ∀ t x, B.H.field t (-x) = B.H.field t x) |
| 238 | (hY : reflection P (Y.value : CylinderL2 P U) = -(Y.value : CylinderL2 P U)) |
| 239 | |
| 240 | include hSym hF hM hH hY |
| 241 | |
| 242 | theorem curlCorrector_odd (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 243 | D.curlCorrector P (vector τ hτ hτT B Y) (t,(-x,-θ)) = |
| 244 | -D.curlCorrector P (vector τ hτ hτT B Y) (t,(x,θ)) := by |
| 245 | apply D.curlCorrector_odd P (vector τ hτ hτT B Y) t |
| 246 | · simpa only [Data.clamp_coe] using D.inverse_even hF t |
| 247 | · exact (vectorField τ hτ hτT B Y).raw_smooth t |
| 248 | · exact vector_periodic τ hτ hτT B Y t |
| 249 | · exact vector_mean_zero τ hτ hτT B Y t |
| 250 | · exact vector_odd τ hτ hτT B Y hSym hF hM hH hY t |
| 251 | |
| 252 | theorem correctorDerivative_odd (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 253 | correctorDerivative τ hτ hτT B Y (t,(-x,-θ)) = |
| 254 | -correctorDerivative τ hτ hτT B Y (t,(x,θ)) := |
| 255 | (correctorField τ hτ hτT B Y).timeDerivative_odd (correctorDerivativeField τ hτ hτT B Y) |
| 256 | D.T_pos (correctorField_time τ hτ hτT B Y) |
| 257 | (curlCorrector_odd τ hτ hτT B Y hSym hF hM hH hY) t x θ |
| 258 | |
| 259 | end EulerTransversePacketPrimary |