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.TransverseFixedSpaceInverse |
| 2 | import Euler.TransverseStrongEquation |
| 3 | import Euler.TimeLpGramInverse |
| 4 | import Euler.TimeH1Reconstruction |
| 5 | import Euler.ContinuousGramAcceleration |
| 6 | import Euler.TimeH1ContinuousDerivative |
| 7 | |
| 8 | /-! |
| 9 | # Continuous coordinate velocity of the actual fixed Dirichlet inverse |
| 10 | |
| 11 | The acceleration is constructed by the true Gram inverse. The weak solve |
| 12 | proves it is the derivative of the solved coordinate velocity; bounded H¹ |
| 13 | reconstruction then supplies the actual continuous history path. |
| 14 | -/ |
| 15 | |
| 16 | /-! ## From `Euler/TransverseFixedStrong.lean` |
| 17 | |
| 18 | The text of `Euler/TransverseFixedStrong.lean`, folded into this file, which was its only importer. -/ |
| 19 | |
| 20 | section |
| 21 | |
| 22 | /-! |
| 23 | # The actual fixed-coordinate Dirichlet inverse satisfies the strong equation |
| 24 | |
| 25 | This version uses the range of the frame directly. It applies to supported |
| 26 | spatial or cylinder L² spaces, where a pointwise transverse constraint must |
| 27 | not be replaced by orthogonality to a single Hilbert-space vector. |
| 28 | -/ |
| 29 | |
| 30 | noncomputable section |
| 31 | |
| 32 | namespace EulerTransverseFixedStrong |
| 33 | |
| 34 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerTimeLp |
| 35 | EulerTerminalTimePrimitive EulerVolterraConvolution EulerTimeH1OperatorProduct |
| 36 | EulerTimeH1FrameTransport EulerTransverseFixedSpaceInverse |
| 37 | EulerTransverseCoordinateRegularity EulerTransverseMomentumRegularity |
| 38 | EulerTransverseStrongEquation EulerTransverseGramInverse |
| 39 | |
| 40 | variable {U E : Type*} |
| 41 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 42 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 43 | (T : ℝ) (hT : 0 ≤ T) |
| 44 | (Q Q₁ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) |
| 45 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) |
| 46 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 47 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 48 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t v, ⟪H t v,v⟫_ℝ ≤ K*‖v‖^2) |
| 49 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 50 | |
| 51 | /-- The actual derivative of the physical displacement from the fixed inverse. -/ |
| 52 | def physicalDerivative : TimeLp T E →L[ℝ] TimeLp T E := |
| 53 | (fixedFrameDerivative T hT Q Q₁).comp |
| 54 | (fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall) |
| 55 | |
| 56 | theorem physicalDerivative_range (f : TimeLp T E) (t : Icc (0 : ℝ) T) : |
| 57 | ∃ v : U, Q t v = realPrimitive T |
| 58 | (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) t := by |
| 59 | let w := fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall f |
| 60 | refine ⟨terminalPrimitive T hT (w : TimeLp T U) t, ?_⟩ |
| 61 | exact (terminalPrimitive_productDerivative T hT Q Q₁ hd (w : TimeLp T U) t).symm |
| 62 | |
| 63 | /-- The existing coordinate derivative is exactly the solved fixed-space field. -/ |
| 64 | theorem coordinateDerivative_eq (f : TimeLp T E) : |
| 65 | coordinateDerivative T hT Q Q₁ c hc hQ |
| 66 | (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) = |
| 67 | (fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : TimeLp T U) := |
| 68 | coordinateDerivative_productDerivative T hT Q Q₁ c hc hQ hd _ |
| 69 | |
| 70 | /-- Actual product tests supply the weak momentum identity for this inverse. -/ |
| 71 | theorem momentum_weak (f : TimeLp T E) (v : TimeLp T U) |
| 72 | (hv : initialTrace T hT v = 0) : |
| 73 | ⟪momentum T hT Q (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f),v⟫_ℝ = |
| 74 | -⟪momentumForcing T hT Q Q₁ H |
| 75 | (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) f, |
| 76 | primitiveTimeLp T hT v⟫_ℝ := by |
| 77 | apply momentum_weak_of_product_tests T hT Q Q₁ hd H |
| 78 | (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) f v |
| 79 | exact fixedFrameSolver_weak T hT Q Q₁ H c hc hQ hd K hK hH hsmall f ⟨v,hv⟩ |
| 80 | |
| 81 | variable (Q₂ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) |
| 82 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 83 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 84 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 85 | |
| 86 | include hd₁ hframe in |
| 87 | /-- A true H¹ coordinate velocity and equation (10) follow from the fixed |
| 88 | coercive solve. There is no assumed strong solution or ambient normal. -/ |
| 89 | theorem exists_strong (hTpos : 0 < T) (f : TimeLp T E) : |
| 90 | let u := physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f |
| 91 | ∃ v : ℝ → U, |
| 92 | AbsolutelyContinuousOnInterval v 0 T ∧ |
| 93 | (fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] v ∧ |
| 94 | (∀ᵐ t ∂timeMeasure T, |
| 95 | HasDerivAt v (coordinateSecondDerivative T hT Q Q₁ Q₂ c hc hQ H u f t) t) ∧ |
| 96 | ∀ᵐ t ∂timeMeasure T, |
| 97 | gram (extendPath T hT Q t) (coordinateSecondDerivative T hT Q Q₁ Q₂ c hc hQ H u f t) = |
| 98 | (extendPath T hT Q t).adjoint (f t-(2 : ℝ) • extendPath T hT Q₁ t (v t)) := by |
| 99 | let u := physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f |
| 100 | obtain ⟨v,_,hv,hrep,_,hder,heq⟩ := exists_strong_of_weak_momentum T hT Q Q₁ Q₂ c hc hQ hd hd₁ |
| 101 | hTpos H u f (physicalDerivative_range T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) |
| 102 | hframe (momentum_weak T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) |
| 103 | refine ⟨v,hv,?_,hder,heq⟩ |
| 104 | change (coordinateDerivative T hT Q Q₁ c hc hQ |
| 105 | (physicalDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) : ℝ → U) =ᵐ[timeMeasure T] v at hrep |
| 106 | rw [coordinateDerivative_eq T hT Q Q₁ H c hc hQ hd K hK hH hsmall f] at hrep |
| 107 | exact hrep |
| 108 | |
| 109 | end EulerTransverseFixedStrong |
| 110 | end |
| 111 | |
| 112 | end |
| 113 | |
| 114 | noncomputable section |
| 115 | |
| 116 | namespace EulerTransverseFixedEvolution |
| 117 | |
| 118 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerTimeLp |
| 119 | EulerTerminalTimePrimitive EulerVolterraConvolution EulerTimeH1OperatorProduct |
| 120 | EulerTimeH1FrameTransport EulerTransverseFixedSpaceInverse EulerTransverseFixedStrong |
| 121 | EulerTransverseCoordinateRegularity EulerTransverseMomentumRegularity |
| 122 | EulerTransverseStrongEquation EulerTransverseGramInverse EulerTransverseGramPath |
| 123 | EulerTimeLpGramInverse EulerTimeH1Reconstruction |
| 124 | |
| 125 | variable {U E : Type*} |
| 126 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 127 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 128 | (T : ℝ) (hT : 0 ≤ T) |
| 129 | (Q Q₁ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) |
| 130 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) |
| 131 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 132 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 133 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t v, ⟪H t v,v⟫_ℝ ≤ K*‖v‖^2) |
| 134 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 135 | |
| 136 | def velocityLp : TimeLp T E →L[ℝ] TimeLp T U := |
| 137 | (zeroTraceDerivatives (U := U) T hT).subtypeL.comp |
| 138 | (fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall) |
| 139 | |
| 140 | def accelerationLp : TimeLp T E →L[ℝ] TimeLp T U := |
| 141 | (gramSolver T hT Q c hc hQ).comp ((timeMultiplier T hT Q).adjoint.comp |
| 142 | (ContinuousLinearMap.id ℝ (TimeLp T E)-(2 : ℝ) • (timeMultiplier T hT Q₁).comp |
| 143 | (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall))) |
| 144 | |
| 145 | def velocityPath : TimeLp T E →L[ℝ] C(Icc (0 : ℝ) T,U) := |
| 146 | (valuePart T hT).comp (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall)+ |
| 147 | (derivativePart T hT).comp (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall) |
| 148 | |
| 149 | theorem accelerationLp_ae (f : TimeLp T E) : |
| 150 | (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] |
| 151 | fun t => gramInverse (Q (projIcc 0 T hT t)) c hc (hQ (projIcc 0 T hT t)) |
| 152 | ((Q (projIcc 0 T hT t)).adjoint (f t-(2 : ℝ) • Q₁ (projIcc 0 T hT t) |
| 153 | (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t))) := by |
| 154 | let v := velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f |
| 155 | let w := f-(2 : ℝ) • timeMultiplier T hT Q₁ v |
| 156 | change (gramSolver T hT Q c hc hQ ((timeMultiplier T hT Q).adjoint w) : ℝ → U) =ᵐ[timeMeasure T] _ |
| 157 | rw [gramSolver_eq_multiplier] |
| 158 | filter_upwards [timeMultiplier_ae T hT (gramInversePath T Q c hc hQ) |
| 159 | ((timeMultiplier T hT Q).adjoint w), momentum_ae T hT Q w, |
| 160 | Lp.coeFn_sub f ((2 : ℝ) • timeMultiplier T hT Q₁ v), |
| 161 | Lp.coeFn_smul (2 : ℝ) (timeMultiplier T hT Q₁ v),timeMultiplier_ae T hT Q₁ v] |
| 162 | with t ha hm hw hs hv |
| 163 | change w t = _ at hw |
| 164 | change ((timeMultiplier T hT Q).adjoint w) t = _ at hm |
| 165 | rw [ha,hm,hw,Pi.sub_apply,hs,Pi.smul_apply,hv] |
| 166 | rfl |
| 167 | |
| 168 | theorem accelerationLp_equation (f : TimeLp T E) : |
| 169 | ∀ᵐ t ∂timeMeasure T, |
| 170 | gram (extendPath T hT Q t) (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t) = |
| 171 | (extendPath T hT Q t).adjoint (f t-(2 : ℝ) • extendPath T hT Q₁ t |
| 172 | (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t)) := by |
| 173 | filter_upwards [accelerationLp_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall f] with t ht |
| 174 | change gram (Q (projIcc 0 T hT t)) _ = _ |
| 175 | rw [ht] |
| 176 | exact gram_inverse_apply _ c hc (hQ (projIcc 0 T hT t)) _ |
| 177 | |
| 178 | variable (Q₂ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) |
| 179 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 180 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 181 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 182 | |
| 183 | include hd₁ hframe in |
| 184 | theorem velocityLp_h1 (hTpos : 0 < T) (f : TimeLp T E) : |
| 185 | ∃ v : ℝ → U, AbsolutelyContinuousOnInterval v 0 T ∧ |
| 186 | (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] v ∧ |
| 187 | ∀ᵐ t ∂timeMeasure T, |
| 188 | HasDerivAt v (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t) t := by |
| 189 | obtain ⟨v,hv,hrep,hder,heq⟩ := EulerTransverseFixedStrong.exists_strong T hT Q Q₁ H c hc hQ |
| 190 | hd K hK hH hsmall Q₂ hd₁ hframe hTpos f |
| 191 | refine ⟨v,hv,hrep,?_⟩ |
| 192 | filter_upwards [hder,heq,hrep,accelerationLp_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall f] |
| 193 | with t hdt het hvt hat |
| 194 | dsimp only [extendPath] at het |
| 195 | have hi := congrArg (gramInverse (Q (projIcc 0 T hT t)) c hc (hQ (projIcc 0 T hT t))) het |
| 196 | rw [inverse_gram_apply] at hi |
| 197 | change (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) t = v t at hvt |
| 198 | rw [← hvt,← hat] at hi |
| 199 | rw [← hi] |
| 200 | exact hdt |
| 201 | |
| 202 | theorem velocityPath_eq (hTpos : 0 < T) (f : TimeLp T E) (v : ℝ → U) |
| 203 | (hv : AbsolutelyContinuousOnInterval v 0 T) |
| 204 | (hrep : (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] v) |
| 205 | (hder : ∀ᵐ t ∂timeMeasure T, |
| 206 | HasDerivAt v (accelerationLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t) t) |
| 207 | (t : Icc (0 : ℝ) T) : |
| 208 | velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f t = v t := |
| 209 | reconstruction_eq_path T hTpos _ _ v hv hrep hder t |
| 210 | |
| 211 | include hd₁ hframe in |
| 212 | theorem velocityPath_ae (hTpos : 0 < T) (f : TimeLp T E) : |
| 213 | (velocityLp T hT Q Q₁ H c hc hQ hd K hK hH hsmall f : ℝ → U) =ᵐ[timeMeasure T] |
| 214 | extendPath T hT (velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f) := by |
| 215 | obtain ⟨v,hv,hrep,hder⟩ := velocityLp_h1 T hT Q Q₁ H c hc hQ hd K hK hH hsmall Q₂ hd₁ hframe hTpos f |
| 216 | filter_upwards [hrep,ae_restrict_mem measurableSet_Icc] with t ht hmem |
| 217 | rw [ht] |
| 218 | change v t = velocityPath T hT Q Q₁ H c hc hQ hd K hK hH hsmall f (projIcc 0 T hT t) |
| 219 | rw [projIcc_of_mem hT hmem] |
| 220 | exact (velocityPath_eq T hT Q Q₁ H c hc hQ hd K hK hH hsmall hTpos f v hv hrep hder ⟨t,hmem⟩).symm |
| 221 | |
| 222 | end EulerTransverseFixedEvolution |