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.TransverseEndpointGreen |
| 2 | import Euler.TransverseStrongAlgebra |
| 3 | |
| 4 | /-! |
| 5 | Classical first-time regularity of the actual endpoint solution. The genuine |
| 6 | momentum and Gram inverse construct a continuous physical velocity, which is |
| 7 | proved to represent the variational derivative and to be the displacement's |
| 8 | within-interval derivative at every time. The endpoint energy operator is |
| 9 | therefore the actual projected terminal derivative. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | |
| 15 | namespace EulerTransverseEndpointVelocity |
| 16 | |
| 17 | open MeasureTheory Set InnerProductSpace ContinuousLinearMap |
| 18 | EulerTimeLp EulerTerminalTimePrimitive EulerInitialTimePrimitive |
| 19 | EulerVolterraConvolution EulerTransverseGramInverse EulerTransverseGramPath |
| 20 | EulerTransverseInitialCoordinates EulerTransverseStrongAlgebra |
| 21 | EulerTransverseMomentumRegularity EulerTransverseEndpointMomentum |
| 22 | EulerTransverseEndpointGreen EulerTransverseEndpointEnergy EulerTransverseVariationalInverse |
| 23 | |
| 24 | variable {U E : Type*} |
| 25 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 26 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 27 | |
| 28 | variable (T : ℝ) (hT : 0 ≤ T) |
| 29 | (Q Q₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 30 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t x, c * ‖x‖ ^ 2 ≤ ‖Q t x‖ ^ 2) |
| 31 | (H : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 32 | |
| 33 | theorem initialCoordinates_continuous (u : TimeLp T E) : |
| 34 | Continuous (initialCoordinates T hT Q c hc hQ u) := |
| 35 | (extendPath_continuous T hT (frameLeftInversePath T Q c hc hQ)).clm_apply |
| 36 | (initialRealPrimitive_continuous T u) |
| 37 | |
| 38 | def coordinateVelocityPath (u : TimeLp T E) (t : ℝ) : U := |
| 39 | extendPath T hT (gramInversePath T Q c hc hQ) t |
| 40 | (momentumPath T hT Q Q₁ H u t - |
| 41 | extendPath T hT (mixedPath T Q Q₁) t (initialCoordinates T hT Q c hc hQ u t)) |
| 42 | |
| 43 | def physicalVelocityPath (u : TimeLp T E) (t : ℝ) : E := |
| 44 | extendPath T hT Q₁ t (initialCoordinates T hT Q c hc hQ u t) + |
| 45 | extendPath T hT Q t (coordinateVelocityPath T hT Q Q₁ c hc hQ H u t) |
| 46 | |
| 47 | theorem coordinateVelocityPath_continuous (u : TimeLp T E) : |
| 48 | Continuous (coordinateVelocityPath T hT Q Q₁ c hc hQ H u) := |
| 49 | (extendPath_continuous T hT (gramInversePath T Q c hc hQ)).clm_apply |
| 50 | ((momentumPath_continuous T hT Q Q₁ H u).sub |
| 51 | ((extendPath_continuous T hT (mixedPath T Q Q₁)).clm_apply |
| 52 | (initialCoordinates_continuous T hT Q c hc hQ u))) |
| 53 | |
| 54 | theorem physicalVelocityPath_continuous (u : TimeLp T E) : |
| 55 | Continuous (physicalVelocityPath T hT Q Q₁ c hc hQ H u) := |
| 56 | ((extendPath_continuous T hT Q₁).clm_apply |
| 57 | (initialCoordinates_continuous T hT Q c hc hQ u)).add |
| 58 | ((extendPath_continuous T hT Q).clm_apply |
| 59 | (coordinateVelocityPath_continuous T hT Q Q₁ c hc hQ H u)) |
| 60 | |
| 61 | /-- The continuous velocity has the exact prescribed momentum at every time. -/ |
| 62 | theorem physicalVelocityPath_momentum (u : TimeLp T E) (t : ℝ) : |
| 63 | (extendPath T hT Q t).adjoint (physicalVelocityPath T hT Q Q₁ c hc hQ H u t) = |
| 64 | momentumPath T hT Q Q₁ H u t := by |
| 65 | change (Q (projIcc 0 T hT t)).adjoint |
| 66 | (Q₁ (projIcc 0 T hT t) (initialCoordinates T hT Q c hc hQ u t) + |
| 67 | Q (projIcc 0 T hT t) |
| 68 | (gramInverse (Q (projIcc 0 T hT t)) c hc (hQ (projIcc 0 T hT t)) |
| 69 | (momentumPath T hT Q Q₁ H u t - |
| 70 | (Q (projIcc 0 T hT t)).adjoint |
| 71 | (Q₁ (projIcc 0 T hT t) (initialCoordinates T hT Q c hc hQ u t))))) = _ |
| 72 | rw [map_add] |
| 73 | change _ + gram (Q (projIcc 0 T hT t)) |
| 74 | (gramInverse (Q (projIcc 0 T hT t)) c hc (hQ (projIcc 0 T hT t)) _) = _ |
| 75 | rw [gram_inverse_apply, add_sub_cancel] |
| 76 | |
| 77 | variable (hd : ∀ t : Icc (0 : ℝ) T, |
| 78 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 79 | |
| 80 | include hd in |
| 81 | theorem coordinateVelocityPath_ae (hTpos : 0 < T) (u : TimeLp T E) |
| 82 | (hweak : ∀ v : TimeLp T U, initialTrace T hT v = 0 → |
| 83 | ⟪momentum T hT Q u, v⟫_ℝ = |
| 84 | -⟪initialMomentumForcing T hT Q Q₁ H u, primitiveTimeLp T hT v⟫_ℝ) |
| 85 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = initialRealPrimitive T u t) : |
| 86 | (initialCoordinateDerivative T hT Q Q₁ c hc hQ u : ℝ → U) =ᵐ[timeMeasure T] |
| 87 | coordinateVelocityPath T hT Q Q₁ c hc hQ H u := by |
| 88 | filter_upwards [momentumPath_ae_of_weak T hT Q Q₁ H hTpos u hweak, |
| 89 | momentum_ae T hT Q u, |
| 90 | initialCoordinateDerivative_reconstruct_ae T hT Q Q₁ c hc hQ hd u huRange] |
| 91 | with t hp hpm hu |
| 92 | have hp' : momentumPath T hT Q Q₁ H u t = (extendPath T hT Q t).adjoint (u t) := |
| 93 | hp.symm.trans hpm |
| 94 | unfold coordinateVelocityPath |
| 95 | rw [hp'] |
| 96 | exact (inverse_momentum_identity (Q (projIcc 0 T hT t)) (Q₁ (projIcc 0 T hT t)) |
| 97 | c hc (hQ (projIcc 0 T hT t)) (initialCoordinates T hT Q c hc hQ u t) |
| 98 | (initialCoordinateDerivative T hT Q Q₁ c hc hQ u t) (u t) hu).symm |
| 99 | |
| 100 | include hd in |
| 101 | /-- The continuous physical velocity represents the original variational derivative. -/ |
| 102 | theorem physicalVelocityPath_ae (hTpos : 0 < T) (u : TimeLp T E) |
| 103 | (hweak : ∀ v : TimeLp T U, initialTrace T hT v = 0 → |
| 104 | ⟪momentum T hT Q u, v⟫_ℝ = |
| 105 | -⟪initialMomentumForcing T hT Q Q₁ H u, primitiveTimeLp T hT v⟫_ℝ) |
| 106 | (huRange : ∀ t : Icc (0 : ℝ) T, ∃ x : U, Q t x = initialRealPrimitive T u t) : |
| 107 | (u : ℝ → E) =ᵐ[timeMeasure T] physicalVelocityPath T hT Q Q₁ c hc hQ H u := by |
| 108 | filter_upwards [initialCoordinateDerivative_reconstruct_ae T hT Q Q₁ c hc hQ hd u huRange, |
| 109 | coordinateVelocityPath_ae T hT Q Q₁ c hc hQ H hd hTpos u hweak huRange] with t hu hv |
| 110 | rw [hu, hv] |
| 111 | rfl |
| 112 | |
| 113 | /-- A continuous representative of a genuine L² derivative differentiates its |
| 114 | initial primitive at every time, including the one-sided endpoint derivative. -/ |
| 115 | theorem initialPrimitive_hasDerivWithinAt_of_continuous (u : TimeLp T E) |
| 116 | (f : ℝ → E) (hf : Continuous f) (hu : (u : ℝ → E) =ᵐ[timeMeasure T] f) |
| 117 | (t : Icc (0 : ℝ) T) : |
| 118 | HasDerivWithinAt (initialRealPrimitive T u) (f t) (Icc (0 : ℝ) T) t := by |
| 119 | have he : ∀ s ∈ Icc (0 : ℝ) T, |
| 120 | initialRealPrimitive T u s = ∫ r in (0 : ℝ)..s, f r := by |
| 121 | intro s hs |
| 122 | rw [initialRealPrimitive_eq_integral] |
| 123 | apply intervalIntegral.integral_congr_ae |
| 124 | have hau : ∀ᵐ r, r ∈ Icc (0 : ℝ) T → zeroExtension T u r = f r := |
| 125 | (ae_restrict_iff' measurableSet_Icc).mp ((zeroExtension_ae T u).trans hu) |
| 126 | filter_upwards [hau] with r hr |
| 127 | intro hrs |
| 128 | rw [uIoc_of_le hs.1] at hrs |
| 129 | exact hr ⟨hrs.1.le, hrs.2.trans hs.2⟩ |
| 130 | have hd' : HasDerivAt (fun s => ∫ r in (0 : ℝ)..s, f r) (f t) t := |
| 131 | intervalIntegral.integral_hasDerivAt_right (hf.intervalIntegrable 0 t) |
| 132 | hf.aestronglyMeasurable.stronglyMeasurableAtFilter hf.continuousAt |
| 133 | exact hd'.hasDerivWithinAt.congr_of_mem he t.property |
| 134 | |
| 135 | include hd in |
| 136 | theorem stationary_displacement_hasDerivWithinAt (hTpos : 0 < T) (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 | (t : Icc (0 : ℝ) T) : |
| 142 | HasDerivWithinAt (initialRealPrimitive T u) |
| 143 | (physicalVelocityPath T hT Q Q₁ c hc hQ H u t) (Icc (0 : ℝ) T) t := |
| 144 | initialPrimitive_hasDerivWithinAt_of_continuous T u _ |
| 145 | (physicalVelocityPath_continuous T hT Q Q₁ c hc hQ H u) |
| 146 | (physicalVelocityPath_ae T hT Q Q₁ c hc hQ H hd hTpos u hweak huRange) t |
| 147 | |
| 148 | variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [CompleteSpace V] |
| 149 | |
| 150 | include hd in |
| 151 | /-- The actual endpoint energy operator is the physical terminal derivative |
| 152 | paired with the prescribed physical terminal trace map. -/ |
| 153 | theorem dirichletToNeumann_eq_terminal_velocity (hTpos : 0 < T) |
| 154 | (m : Icc (0 : ℝ) T → E) (hm : ∀ t x, ⟪m t, Q t x⟫_ℝ = 0) |
| 155 | (hRange : ∀ t η, ⟪m t, η⟫_ℝ = 0 → ∃ x : U, Q t x = η) |
| 156 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t x, ⟪H t x, x⟫_ℝ ≤ K * ‖x‖ ^ 2) |
| 157 | (hsmall : K * (T ^ 2 / 2) ≤ 1 / 2) |
| 158 | (L : V →L[ℝ] TimeLp T E) (R : V →L[ℝ] E) |
| 159 | (hL : ∀ Y t, ⟪m t, initialPrimitive T hT (L Y) t⟫_ℝ = 0) |
| 160 | (hLT : ∀ Y, initialPrimitive T hT (L Y) ⟨T, hT, le_rfl⟩ = R Y) (Y : V) : |
| 161 | dirichletToNeumann T hT m H K hK hH hsmall L Y = |
| 162 | R.adjoint (physicalVelocityPath T hT Q Q₁ c hc hQ H |
| 163 | (endpointDerivative T hT m H K hK hH hsmall L Y) T) := by |
| 164 | rw [dirichletToNeumann_eq_terminalMomentum T hT Q Q₁ c hc hQ H hTpos hd |
| 165 | m hm hRange K hK hH hsmall L R hL hLT] |
| 166 | apply ext_inner_right ℝ |
| 167 | intro Z |
| 168 | have hR : ⟪m ⟨T, hT, le_rfl⟩, R Z⟫_ℝ = 0 := by |
| 169 | rw [← hLT Z] |
| 170 | exact hL Z ⟨T, hT, le_rfl⟩ |
| 171 | obtain ⟨z, hz⟩ := hRange ⟨T, hT, le_rfl⟩ (R Z) hR |
| 172 | have hrec : Q ⟨T, hT, le_rfl⟩ (terminalCoordinates T hT Q c hc hQ R Z) = R Z := by |
| 173 | change Q ⟨T, hT, le_rfl⟩ |
| 174 | (frameLeftInverse (Q ⟨T, hT, le_rfl⟩) c hc (hQ ⟨T, hT, le_rfl⟩) (R Z)) = R Z |
| 175 | rw [← hz, frameLeftInverse_apply] |
| 176 | rw [adjoint_inner_left, adjoint_inner_left, ← momentumPath_terminal T hT Q Q₁ H, |
| 177 | ← physicalVelocityPath_momentum T hT Q Q₁ c hc hQ H, adjoint_inner_left] |
| 178 | congr 1 |
| 179 | simpa only [extendPath, projIcc_of_mem hT (show T ∈ Icc (0 : ℝ) T from ⟨hT, le_rfl⟩)] using hrec |
| 180 | |
| 181 | include hd in |
| 182 | omit [CompleteSpace V] in |
| 183 | /-- The derivative used in the endpoint formula is the actual one at every time. -/ |
| 184 | theorem endpointDisplacement_hasDerivWithinAt (hTpos : 0 < T) |
| 185 | (m : Icc (0 : ℝ) T → E) (hm : ∀ t x, ⟪m t, Q t x⟫_ℝ = 0) |
| 186 | (hRange : ∀ t η, ⟪m t, η⟫_ℝ = 0 → ∃ x : U, Q t x = η) |
| 187 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t x, ⟪H t x, x⟫_ℝ ≤ K * ‖x‖ ^ 2) |
| 188 | (hsmall : K * (T ^ 2 / 2) ≤ 1 / 2) (L : V →L[ℝ] TimeLp T E) |
| 189 | (hL : ∀ Y t, ⟪m t, initialPrimitive T hT (L Y) t⟫_ℝ = 0) |
| 190 | (Y : V) (t : Icc (0 : ℝ) T) : |
| 191 | let u := endpointDerivative T hT m H K hK hH hsmall L Y |
| 192 | HasDerivWithinAt (initialRealPrimitive T u) |
| 193 | (physicalVelocityPath T hT Q Q₁ c hc hQ H u t) (Icc (0 : ℝ) T) t := by |
| 194 | apply stationary_displacement_hasDerivWithinAt T hT Q Q₁ c hc hQ H hd hTpos |
| 195 | · exact initialMomentum_weak T hT Q Q₁ H hd m hm _ |
| 196 | (endpointDerivative_weak T hT m H K hK hH hsmall L Y) |
| 197 | · intro s |
| 198 | exact hRange s _ (endpointDisplacement_tangent T hT m H K hK hH hsmall L hL Y s) |
| 199 | |
| 200 | end EulerTransverseEndpointVelocity |