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.TransverseInitialInverse |
| 2 | import Euler.TransverseEndpointDifference |
| 3 | import Euler.TransverseEndpointEquation |
| 4 | import Euler.TimeH1Reconstruction |
| 5 | |
| 6 | /-! |
| 7 | The coordinate derivative and its continuous history representative for the |
| 8 | actual nonzero-terminal endpoint solution. The coordinate derivative is the |
| 9 | explicit affine constant minus the same fixed-space variational correction. |
| 10 | Equation (10), already proved for that solution, provides its genuine time |
| 11 | derivative; the bounded H¹ reconstruction recovers the actual history path. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | |
| 17 | namespace EulerTransverseEndpointCoordinates |
| 18 | |
| 19 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace |
| 20 | EulerTimeLp EulerTerminalTimePrimitive EulerInitialTimePrimitive |
| 21 | EulerVolterraConvolution EulerTimeH1OperatorProduct EulerTimeH1FrameTransport |
| 22 | EulerTransverseGramInverse EulerTransverseGramPath EulerTransverseInitialCoordinates |
| 23 | EulerTransverseInitialInverse EulerTransverseEndpointEnergy EulerTransverseFixedEndpoint |
| 24 | EulerTransverseEndpointParameter EulerTransverseEndpointDifference |
| 25 | EulerTransverseEndpointMomentum EulerTransverseMomentumRegularity |
| 26 | EulerTransverseEndpointVelocity EulerTransverseEndpointEquation |
| 27 | EulerTransverseForwardInverse EulerTimeH1Reconstruction EulerContinuousTimeIntegral |
| 28 | |
| 29 | variable {U E : Type*} |
| 30 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 31 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 32 | |
| 33 | variable (T : ℝ) (hT : 0 ≤ T) |
| 34 | (Q Q₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 35 | (H : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 36 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c * ‖v‖ ^ 2 ≤ ‖Q t v‖ ^ 2) |
| 37 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 38 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 39 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t v, ⟪H t v, v⟫_ℝ ≤ K * ‖v‖ ^ 2) |
| 40 | (hsmall : K * (T ^ 2 / 2) ≤ 1 / 2) |
| 41 | |
| 42 | /-- The actual derivative of the fixed terminal-coordinate solution. -/ |
| 43 | def coordinateSlope : U →L[ℝ] TimeLp T U := |
| 44 | (constantFieldOperator T hT).comp (T⁻¹ • ContinuousLinearMap.id ℝ U) - |
| 45 | (zeroTraceDerivatives (U := U) T hT).subtypeL.comp |
| 46 | (fixedEndpointCorrection T hT Q Q₁ H c hc hQ hd K hK hH hsmall (affineTrial T hT Q Q₁)) |
| 47 | |
| 48 | theorem coordinateSlope_product (ξ : U) : |
| 49 | initialProductDerivative T hT Q Q₁ |
| 50 | (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ) = |
| 51 | fixedEndpointDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 52 | (affineTrial T hT Q Q₁) ξ := by |
| 53 | let r := fixedEndpointCorrection T hT Q Q₁ H c hc hQ hd K hK hH hsmall (affineTrial T hT Q Q₁) ξ |
| 54 | have hr : initialTrace T hT (r : TimeLp T U) = 0 := r.property |
| 55 | change initialProductDerivative T hT Q Q₁ |
| 56 | (constantFieldOperator T hT (T⁻¹ • ξ) - (r : TimeLp T U)) = _ |
| 57 | rw [map_sub, initialProductDerivative_eq_product_of_trace_zero T hT Q Q₁ _ hr] |
| 58 | rfl |
| 59 | |
| 60 | theorem coordinateSlope_derivative (ξ : U) : |
| 61 | initialCoordinateDerivative T hT Q Q₁ c hc hQ |
| 62 | (fixedEndpointDerivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 63 | (affineTrial T hT Q Q₁) ξ) = |
| 64 | coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ := by |
| 65 | rw [← coordinateSlope_product T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ] |
| 66 | exact initialCoordinateOperator_product T hT Q Q₁ c hc hQ hd _ |
| 67 | |
| 68 | variable (m : Icc (0 : ℝ) T → E) (hm : ∀ t v, ⟪m t, Q t v⟫_ℝ = 0) |
| 69 | (hRange : ∀ t η, ⟪m t, η⟫_ℝ = 0 → ∃ v : U, Q t v = η) |
| 70 | |
| 71 | include hm hRange in |
| 72 | theorem coordinateSlope_physical_derivative (ξ : U) : |
| 73 | initialCoordinateDerivative T hT Q Q₁ c hc hQ |
| 74 | (endpointDerivative T hT m H K hK hH hsmall (affineTrial T hT Q Q₁) ξ) = |
| 75 | coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ := by |
| 76 | rw [← fixedEndpointDerivative_eq_endpoint T hT Q Q₁ H c hc hQ hd K hK hH hsmall m hm hRange] |
| 77 | exact coordinateSlope_derivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ |
| 78 | |
| 79 | include hm hRange in |
| 80 | theorem coordinateSlope_ae (hTpos : 0 < T) (ξ : U) : |
| 81 | (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ : ℝ → U) =ᵐ[timeMeasure T] |
| 82 | coordinateVelocityPath T hT Q Q₁ c hc hQ H |
| 83 | (endpointDerivative T hT m H K hK hH hsmall (affineTrial T hT Q Q₁) ξ) := by |
| 84 | rw [← coordinateSlope_physical_derivative T hT Q Q₁ H c hc hQ hd K hK hH hsmall m hm hRange ξ] |
| 85 | apply coordinateVelocityPath_ae T hT Q Q₁ c hc hQ H hd hTpos |
| 86 | · exact initialMomentum_weak T hT Q Q₁ H hd m hm _ |
| 87 | (endpointDerivative_weak T hT m H K hK hH hsmall (affineTrial T hT Q Q₁) ξ) |
| 88 | · intro t |
| 89 | exact hRange t _ (endpointDisplacement_tangent T hT m H K hK hH hsmall _ |
| 90 | (affineTrial_tangent T hT Q Q₁ hd m hm) ξ t) |
| 91 | |
| 92 | /-- The literal right side of equation (10), in Bochner L². -/ |
| 93 | def coordinateAcceleration : U →L[ℝ] TimeLp T U := |
| 94 | (timeMultiplier T hT (generator T Q Q₁ c hc hQ)).comp |
| 95 | (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall) |
| 96 | |
| 97 | /-- Bounded time reconstruction of the actual coordinate history. -/ |
| 98 | def continuousCoordinateVelocity : U →L[ℝ] C(Icc (0 : ℝ) T, U) := |
| 99 | (valuePart T hT).comp (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall) + |
| 100 | (derivativePart T hT).comp (coordinateAcceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall) |
| 101 | |
| 102 | /-- The source history velocity `Q ξ_t` with the fixed terminal coordinate. -/ |
| 103 | def historyVelocity : U →L[ℝ] C(Icc (0 : ℝ) T, E) := |
| 104 | (multiplier Q).comp (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall) |
| 105 | |
| 106 | section Regularity |
| 107 | |
| 108 | variable (Q₂ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) (hTpos : 0 < T) |
| 109 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 110 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 111 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 112 | |
| 113 | include hm hRange hd₁ hframe hTpos in |
| 114 | theorem coordinateSlope_h1 (ξ : U) : |
| 115 | let v := coordinateVelocityPath T hT Q Q₁ c hc hQ H |
| 116 | (endpointDerivative T hT m H K hK hH hsmall (affineTrial T hT Q Q₁) ξ) |
| 117 | AbsolutelyContinuousOnInterval v 0 T ∧ |
| 118 | (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ : ℝ → U) =ᵐ[timeMeasure T] v ∧ |
| 119 | ∀ᵐ t ∂timeMeasure T, |
| 120 | HasDerivAt v (coordinateAcceleration T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ t) t := by |
| 121 | dsimp only |
| 122 | let u := endpointDerivative T hT m H K hK hH hsmall (affineTrial T hT Q Q₁) ξ |
| 123 | let v := coordinateVelocityPath T hT Q Q₁ c hc hQ H u |
| 124 | have hv := coordinateVelocityPath_continuous T hT Q Q₁ c hc hQ H u |
| 125 | let g : C(Icc (0 : ℝ) T, U) := ⟨fun t => generator T Q Q₁ c hc hQ t (v t), |
| 126 | (generator T Q Q₁ c hc hQ).continuous.clm_apply (hv.comp continuous_subtype_val)⟩ |
| 127 | have hdv (t : Icc (0 : ℝ) T) : HasDerivWithinAt v (g t) (Icc (0 : ℝ) T) t := |
| 128 | (endpoint_coordinate_equation T hT Q Q₁ Q₂ c hc hQ H hTpos hd hd₁ hframe |
| 129 | m hm hRange K hK hH hsmall _ (affineTrial_tangent T hT Q Q₁ hd m hm) ξ t).2 |
| 130 | have hcont : AbsolutelyContinuousOnInterval v 0 T := by |
| 131 | have hl : LipschitzOnWith ‖g‖₊ v (Icc (0 : ℝ) T) := by |
| 132 | apply (convex_Icc (0 : ℝ) T).lipschitzOnWith_of_nnnorm_hasDerivWithin_le |
| 133 | (f' := extendPath T hT g) |
| 134 | · intro t ht |
| 135 | simpa only [extendPath, projIcc_of_mem hT ht] using hdv ⟨t, ht⟩ |
| 136 | · intro t ht |
| 137 | exact g.norm_coe_le_norm (projIcc 0 T hT t) |
| 138 | exact (show LipschitzOnWith ‖g‖₊ v (uIcc (0 : ℝ) T) by |
| 139 | simpa only [uIcc_of_le hT] using hl).absolutelyContinuousOnInterval |
| 140 | have hae := coordinateSlope_ae T hT Q Q₁ H c hc hQ hd K hK hH hsmall m hm hRange hTpos ξ |
| 141 | refine ⟨hcont, hae, ?_⟩ |
| 142 | have hmem : ∀ᵐ t ∂timeMeasure T, t ∈ Ioo (0 : ℝ) T := by |
| 143 | change ∀ᵐ t ∂volume.restrict (Icc (0 : ℝ) T), t ∈ Ioo (0 : ℝ) T |
| 144 | rw [← restrict_Ioo_eq_restrict_Icc] |
| 145 | exact ae_restrict_mem measurableSet_Ioo |
| 146 | filter_upwards [hmem, hae, timeMultiplier_ae T hT (generator T Q Q₁ c hc hQ) |
| 147 | (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ)] with t ht hs ha |
| 148 | have hti : t ∈ Icc (0 : ℝ) T := ⟨ht.1.le, ht.2.le⟩ |
| 149 | change HasDerivAt v (timeMultiplier T hT (generator T Q Q₁ c hc hQ) |
| 150 | (coordinateSlope T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ) t) t |
| 151 | rw [ha, hs] |
| 152 | have hdt := (hdv ⟨t, hti⟩).hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 153 | change HasDerivAt v (generator T Q Q₁ c hc hQ ⟨t, hti⟩ (v t)) t at hdt |
| 154 | simpa only [extendPath, projIcc_of_mem hT hti] using hdt |
| 155 | |
| 156 | include hm hRange hd₁ hframe hTpos in |
| 157 | /-- The bounded reconstruction is the actual classical coordinate velocity at |
| 158 | every time, so the history estimates concern the primary solution itself. -/ |
| 159 | theorem continuousCoordinateVelocity_eq (ξ : U) (t : Icc (0 : ℝ) T) : |
| 160 | continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ t = |
| 161 | coordinateVelocityPath T hT Q Q₁ c hc hQ H |
| 162 | (endpointDerivative T hT m H K hK hH hsmall (affineTrial T hT Q Q₁) ξ) t := by |
| 163 | have hreg := coordinateSlope_h1 T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 164 | m hm hRange Q₂ hTpos hd₁ hframe ξ |
| 165 | exact reconstruction_eq_path T hTpos _ _ _ hreg.1 hreg.2.1 hreg.2.2 t |
| 166 | |
| 167 | include hm hRange hd₁ hframe hTpos in |
| 168 | theorem historyVelocity_eq (ξ : U) (t : Icc (0 : ℝ) T) : |
| 169 | historyVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ t = |
| 170 | Q t (coordinateVelocityPath T hT Q Q₁ c hc hQ H |
| 171 | (endpointDerivative T hT m H K hK hH hsmall (affineTrial T hT Q Q₁) ξ) t) := by |
| 172 | change Q t (continuousCoordinateVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ t) = _ |
| 173 | rw [continuousCoordinateVelocity_eq T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 174 | m hm hRange Q₂ hTpos hd₁ hframe] |
| 175 | |
| 176 | end Regularity |
| 177 | |
| 178 | end EulerTransverseEndpointCoordinates |