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.TransverseEndpointDifferentiation |
| 2 | import Euler.TransverseEndpointUniqueness |
| 3 | import Euler.TransverseForwardInverse |
| 4 | |
| 5 | /-! |
| 6 | The actual nonzero-terminal stationary displacement satisfies source (10). |
| 7 | Its coordinate velocity solves the very same homogeneous first-order |
| 8 | generator used by the packet's forward inverse. The identity is proved by |
| 9 | differentiating the constructed momentum, including the endpoint derivatives. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | |
| 15 | namespace EulerTransverseEndpointEquation |
| 16 | |
| 17 | open MeasureTheory Set InnerProductSpace ContinuousLinearMap |
| 18 | EulerTimeLp EulerTerminalTimePrimitive EulerInitialTimePrimitive |
| 19 | EulerVolterraConvolution EulerTransverseGramInverse EulerTransverseGramPath |
| 20 | EulerTransverseInitialCoordinates EulerTransverseStrongAlgebra |
| 21 | EulerTransverseMomentumRegularity EulerTransverseEndpointMomentum |
| 22 | EulerTransverseEndpointVelocity EulerTransverseEndpointDifferentiation |
| 23 | EulerTransverseEndpointEnergy EulerTransverseForwardInverse EulerLinearDuhamel |
| 24 | |
| 25 | variable {U E : Type*} |
| 26 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 27 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 28 | |
| 29 | variable (T : ℝ) (hT : 0 ≤ T) |
| 30 | (Q Q₁ Q₂ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 31 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t x, c * ‖x‖ ^ 2 ≤ ‖Q t x‖ ^ 2) |
| 32 | (H : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 33 | |
| 34 | theorem rawCoordinateAcceleration_projected (hTpos : 0 < T) |
| 35 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 36 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 37 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 38 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 39 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 40 | (u : TimeLp T E) |
| 41 | (hweak : ∀ v : TimeLp T U, initialTrace T hT v = 0 → |
| 42 | ⟪momentum T hT Q u, v⟫_ℝ = |
| 43 | -⟪initialMomentumForcing T hT Q Q₁ H u, primitiveTimeLp T hT v⟫_ℝ) |
| 44 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = initialRealPrimitive T u t) |
| 45 | (t : Icc (0 : ℝ) T) : |
| 46 | gram (Q t) (rawCoordinateAcceleration T hT Q Q₁ Q₂ c hc hQ H u t) = |
| 47 | (Q t).adjoint (0 - (2 : ℝ) • Q₁ t (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t)) := by |
| 48 | have hp := momentumPath_hasDerivWithinAt T hT Q Q₁ c hc hQ H hTpos hd u hweak huRange t |
| 49 | have hξ := initialCoordinates_hasDerivWithinAt T hT Q Q₁ c hc hQ H hTpos hd u hweak huRange t |
| 50 | have hv := coordinateVelocityPath_hasDerivWithinAt_raw T hT Q Q₁ Q₂ c hc hQ H |
| 51 | hTpos hd hd₁ u hweak huRange t |
| 52 | have hG := gramPath_hasDerivWithinAt T Q Q₁ hT hd t |
| 53 | have hC := mixedPath_hasDerivWithinAt T Q Q₁ Q₂ hT hd hd₁ t |
| 54 | have hb := (hG.clm_apply hv).add (hC.clm_apply hξ) |
| 55 | change HasDerivWithinAt |
| 56 | (fun s => extendPath T hT (gramPath T Q) s (coordinateVelocityPath T hT Q Q₁ c hc hQ H u s) + |
| 57 | extendPath T hT (mixedPath T Q Q₁) s (initialCoordinates T hT Q c hc hQ u s)) _ _ _ at hb |
| 58 | have he : (fun s => extendPath T hT (gramPath T Q) s |
| 59 | (coordinateVelocityPath T hT Q Q₁ c hc hQ H u s) + |
| 60 | extendPath T hT (mixedPath T Q Q₁) s (initialCoordinates T hT Q c hc hQ u s)) = |
| 61 | momentumPath T hT Q Q₁ H u := |
| 62 | funext (coordinateMomentum_identity T hT Q Q₁ c hc hQ H u) |
| 63 | rw [he] at hb |
| 64 | have hbal := (hp.derivWithin ((uniqueDiffOn_Icc hTpos) t t.property)).symm.trans |
| 65 | (hb.derivWithin ((uniqueDiffOn_Icc hTpos) t t.property)) |
| 66 | have hη := initialCoordinates_reconstruct T hT Q c hc hQ u huRange t |
| 67 | simp only [momentumDerivativePath, extendPath, projIcc_of_mem hT t.property] at hbal |
| 68 | rw [← hη] at hbal |
| 69 | apply projected_equation_of_momentum_balance (Q t) (Q₁ t) (Q₂ t) (H t) |
| 70 | (initialCoordinates T hT Q c hc hQ u t) (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t) |
| 71 | (rawCoordinateAcceleration T hT Q Q₁ Q₂ c hc hQ H u t) |
| 72 | (physicalVelocityPath T hT Q Q₁ c hc hQ H u t) 0 |
| 73 | · simp only [physicalVelocityPath, extendPath, projIcc_of_mem hT t.property] |
| 74 | · exact hframe t |
| 75 | · change _ = |
| 76 | ((Q₁ t).adjoint.comp (Q t) + (Q t).adjoint.comp (Q₁ t)) |
| 77 | (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t) + |
| 78 | gram (Q t) (rawCoordinateAcceleration T hT Q Q₁ Q₂ c hc hQ H u t) + |
| 79 | (((Q₁ t).adjoint.comp (Q₁ t) + (Q t).adjoint.comp (Q₂ t)) |
| 80 | (initialCoordinates T hT Q c hc hQ u t) + |
| 81 | (Q t).adjoint (Q₁ t (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t))) at hbal |
| 82 | simpa only [map_zero, add_zero, add_assoc] using hbal |
| 83 | |
| 84 | theorem rawCoordinateAcceleration_eq_generator (hTpos : 0 < T) |
| 85 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 86 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 87 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 88 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 89 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 90 | (u : TimeLp T E) |
| 91 | (hweak : ∀ v : TimeLp T U, initialTrace T hT v = 0 → |
| 92 | ⟪momentum T hT Q u, v⟫_ℝ = |
| 93 | -⟪initialMomentumForcing T hT Q Q₁ H u, primitiveTimeLp T hT v⟫_ℝ) |
| 94 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = initialRealPrimitive T u t) |
| 95 | (t : Icc (0 : ℝ) T) : |
| 96 | rawCoordinateAcceleration T hT Q Q₁ Q₂ c hc hQ H u t = |
| 97 | generator T Q Q₁ c hc hQ t (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t) := by |
| 98 | have he := congrArg (gramInverse (Q t) c hc (hQ t)) |
| 99 | (rawCoordinateAcceleration_projected T hT Q Q₁ Q₂ c hc hQ H |
| 100 | hTpos hd hd₁ hframe u hweak huRange t) |
| 101 | rw [inverse_gram_apply] at he |
| 102 | change _ = (-2 : ℝ) • gramInverse (Q t) c hc (hQ t) |
| 103 | ((Q t).adjoint (Q₁ t (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t))) |
| 104 | simpa only [map_sub, map_zero, map_smul, zero_sub, neg_smul, map_neg] using he |
| 105 | |
| 106 | /-- Equation (10) for the actual coordinate displacement, written as the |
| 107 | first-order equation for its genuine derivative. -/ |
| 108 | theorem coordinateVelocityPath_hasDerivWithinAt_generator (hTpos : 0 < T) |
| 109 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 110 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 111 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 112 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 113 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 114 | (u : TimeLp T E) |
| 115 | (hweak : ∀ v : TimeLp T U, initialTrace T hT v = 0 → |
| 116 | ⟪momentum T hT Q u, v⟫_ℝ = |
| 117 | -⟪initialMomentumForcing T hT Q Q₁ H u, primitiveTimeLp T hT v⟫_ℝ) |
| 118 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = initialRealPrimitive T u t) |
| 119 | (t : Icc (0 : ℝ) T) : |
| 120 | HasDerivWithinAt (coordinateVelocityPath T hT Q Q₁ c hc hQ H u) |
| 121 | (generator T Q Q₁ c hc hQ t (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t)) |
| 122 | (Icc (0 : ℝ) T) t := by |
| 123 | have hdv := coordinateVelocityPath_hasDerivWithinAt_raw T hT Q Q₁ Q₂ c hc hQ H |
| 124 | hTpos hd hd₁ u hweak huRange t |
| 125 | rwa [rawCoordinateAcceleration_eq_generator T hT Q Q₁ Q₂ c hc hQ H |
| 126 | hTpos hd hd₁ hframe u hweak huRange t] at hdv |
| 127 | |
| 128 | /-- The stationary history velocity is the same actual solution as the packet's |
| 129 | homogeneous forward inverse, whenever both are placed on this time interval. -/ |
| 130 | theorem coordinateVelocity_eq_forward (hTpos : 0 < T) |
| 131 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 132 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 133 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 134 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 135 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 136 | (u : TimeLp T E) |
| 137 | (hweak : ∀ v : TimeLp T U, initialTrace T hT v = 0 → |
| 138 | ⟪momentum T hT Q u, v⟫_ℝ = |
| 139 | -⟪initialMomentumForcing T hT Q Q₁ H u, primitiveTimeLp T hT v⟫_ℝ) |
| 140 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = initialRealPrimitive T u t) |
| 141 | (evolution : Evolution T hT (generator T Q Q₁ c hc hQ)) (t : Icc (0 : ℝ) T) : |
| 142 | coordinateVelocityPath T hT Q Q₁ c hc hQ H u t = |
| 143 | coordinates T hT Q Q₁ c hc hQ evolution 0 |
| 144 | (coordinateVelocityPath T hT Q Q₁ c hc hQ H u 0) t := by |
| 145 | change _ = evolution.solution (forcingOperator T Q c hc hQ 0) |
| 146 | (coordinateVelocityPath T hT Q Q₁ c hc hQ H u 0) t |
| 147 | rw [map_zero] |
| 148 | apply evolution.solution_unique 0 _ (coordinateVelocityPath T hT Q Q₁ c hc hQ H u) _ rfl t |
| 149 | intro s |
| 150 | simpa only [ContinuousMap.zero_apply, add_zero] using |
| 151 | coordinateVelocityPath_hasDerivWithinAt_generator T hT Q Q₁ Q₂ c hc hQ H |
| 152 | hTpos hd hd₁ hframe u hweak huRange s |
| 153 | |
| 154 | /-- The nonzero-terminal inverse used in activation has genuine first and |
| 155 | second coordinate derivatives satisfying the source's homogeneous equation. -/ |
| 156 | theorem endpoint_coordinate_equation (hTpos : 0 < T) |
| 157 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 158 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 159 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 160 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 161 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 162 | (m : Icc (0 : ℝ) T → E) (hm : ∀ t x, ⟪m t, Q t x⟫_ℝ = 0) |
| 163 | (hRange : ∀ t η, ⟪m t, η⟫_ℝ = 0 → ∃ x : U, Q t x = η) |
| 164 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t x, ⟪H t x, x⟫_ℝ ≤ K * ‖x‖ ^ 2) |
| 165 | (hsmall : K * (T ^ 2 / 2) ≤ 1 / 2) |
| 166 | {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 167 | (L : V →L[ℝ] TimeLp T E) |
| 168 | (hL : ∀ Y t, ⟪m t, initialPrimitive T hT (L Y) t⟫_ℝ = 0) |
| 169 | (Y : V) (t : Icc (0 : ℝ) T) : |
| 170 | let u := endpointDerivative T hT m H K hK hH hsmall L Y |
| 171 | HasDerivWithinAt (initialCoordinates T hT Q c hc hQ u) |
| 172 | (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t) (Icc (0 : ℝ) T) t ∧ |
| 173 | HasDerivWithinAt (coordinateVelocityPath T hT Q Q₁ c hc hQ H u) |
| 174 | (generator T Q Q₁ c hc hQ t (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t)) |
| 175 | (Icc (0 : ℝ) T) t := by |
| 176 | let u := endpointDerivative T hT m H K hK hH hsmall L Y |
| 177 | have huRange : ∀ s : Icc (0 : ℝ) T, ∃ x : U, Q s x = initialRealPrimitive T u s := by |
| 178 | intro s |
| 179 | exact hRange s _ (endpointDisplacement_tangent T hT m H K hK hH hsmall L hL Y s) |
| 180 | have hw := initialMomentum_weak T hT Q Q₁ H hd m hm u |
| 181 | (endpointDerivative_weak T hT m H K hK hH hsmall L Y) |
| 182 | exact ⟨initialCoordinates_hasDerivWithinAt T hT Q Q₁ c hc hQ H hTpos hd u hw huRange t, |
| 183 | coordinateVelocityPath_hasDerivWithinAt_generator T hT Q Q₁ Q₂ c hc hQ H |
| 184 | hTpos hd hd₁ hframe u hw huRange t⟩ |
| 185 | |
| 186 | end EulerTransverseEndpointEquation |