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.MovingNormalProjection |
| 2 | import Euler.TerminalProjectionTrial |
| 3 | |
| 4 | /-! |
| 5 | The explicit activation trial and its endpoint-energy bound. The trial uses |
| 6 | the actual moving normal, not a deformation-frame condition number. A layer |
| 7 | of width `1/h` gives `‖Λ‖ ≤ (4 + 64 CM² + 2 CH) h` under the source's low |
| 8 | history bounds. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | |
| 14 | namespace EulerTransverseActivationTrial |
| 15 | |
| 16 | open MeasureTheory Set InnerProductSpace ContinuousLinearMap |
| 17 | EulerTimeLp EulerInitialTimePrimitive EulerVolterraConvolution |
| 18 | EulerTerminalProjectionTrial EulerTerminalLayerRamp |
| 19 | EulerMovingNormalProjection EulerTransverseEndpointEnergy |
| 20 | |
| 21 | variable {E U : Type*} |
| 22 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 23 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 24 | |
| 25 | private local instance : NormedAddCommGroup (E →L[ℝ] E) := inferInstance |
| 26 | private local instance : NormedSpace ℝ (E →L[ℝ] E) := inferInstance |
| 27 | private local instance : AddCommGroup (E →L[ℝ] E) := |
| 28 | (inferInstance : NormedAddCommGroup (E →L[ℝ] E)).toAddCommGroup |
| 29 | private local instance : Module ℝ (E →L[ℝ] E) := |
| 30 | (inferInstance : NormedSpace ℝ (E →L[ℝ] E)).toModule |
| 31 | private local instance : TopologicalSpace (E →L[ℝ] E) := |
| 32 | (inferInstance : PseudoMetricSpace (E →L[ℝ] E)).toUniformSpace.toTopologicalSpace |
| 33 | private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance |
| 34 | private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance |
| 35 | private local instance : AddCommGroup (U →L[ℝ] E) := |
| 36 | (inferInstance : NormedAddCommGroup (U →L[ℝ] E)).toAddCommGroup |
| 37 | private local instance : Module ℝ (U →L[ℝ] E) := |
| 38 | (inferInstance : NormedSpace ℝ (U →L[ℝ] E)).toModule |
| 39 | private local instance : TopologicalSpace (U →L[ℝ] E) := |
| 40 | (inferInstance : PseudoMetricSpace (U →L[ℝ] E)).toUniformSpace.toTopologicalSpace |
| 41 | |
| 42 | variable (T : ℝ) (hT : 0 ≤ T) (m m₁ : C(Icc (0 : ℝ) T, E)) |
| 43 | (hne : ∀ t, m t ≠ 0) (R : U →L[ℝ] E) |
| 44 | |
| 45 | def projectionPath : C(Icc (0 : ℝ) T, U →L[ℝ] E) := |
| 46 | ⟨fun t => (normalProjection (m t)).comp R, |
| 47 | (normalProjection_continuous m.continuous hne).clm_comp continuous_const⟩ |
| 48 | |
| 49 | def projectionDerivativePath : C(Icc (0 : ℝ) T, U →L[ℝ] E) := |
| 50 | ⟨fun t => (normalProjectionDerivative (m t) (m₁ t)).comp R, |
| 51 | (normalProjectionDerivative_continuous m.continuous m₁.continuous hne).clm_comp continuous_const⟩ |
| 52 | |
| 53 | variable (hd : ∀ t : Icc (0 : ℝ) T, |
| 54 | HasDerivWithinAt (extendPath T hT m) (m₁ t) (Icc (0 : ℝ) T) t) |
| 55 | |
| 56 | include hd in |
| 57 | theorem projectionPath_hasDerivWithinAt (t : Icc (0 : ℝ) T) : |
| 58 | HasDerivWithinAt (extendPath T hT (projectionPath T m hne R)) |
| 59 | (projectionDerivativePath T m m₁ hne R t) (Icc (0 : ℝ) T) t := by |
| 60 | have hm : extendPath T hT m t ≠ 0 := by |
| 61 | simpa only [extendPath, projIcc_of_mem hT t.property] using hne t |
| 62 | have hp := normalProjection_hasDerivWithinAt (hd t) hm |
| 63 | have hc := hp.clm_comp (hasDerivWithinAt_const (t : ℝ) (Icc (0 : ℝ) T) R) |
| 64 | convert! hc using 1 |
| 65 | simp only [projectionDerivativePath, ContinuousMap.coe_mk, |
| 66 | extendPath, projIcc_of_mem hT t.property, comp_zero, add_zero] |
| 67 | |
| 68 | theorem projectionPath_norm_le (hR : ‖R‖ ≤ 1) (t : Icc (0 : ℝ) T) : |
| 69 | ‖projectionPath T m hne R t‖ ≤ 1 := by |
| 70 | calc |
| 71 | ‖projectionPath T m hne R t‖ ≤ ‖normalProjection (m t)‖ * ‖R‖ := opNorm_comp_le _ _ |
| 72 | _ ≤ 1 * 1 := mul_le_mul (normalProjection_norm_le (m t) (hne t)) hR |
| 73 | (norm_nonneg R) (by norm_num) |
| 74 | _ = 1 := one_mul 1 |
| 75 | |
| 76 | variable [CompleteSpace E] |
| 77 | |
| 78 | theorem projectionDerivativePath_norm_le (hR : ‖R‖ ≤ 1) |
| 79 | (M : Icc (0 : ℝ) T → E →L[ℝ] E) |
| 80 | (hRay : ∀ t, m₁ t = -(M t).adjoint (m t)) |
| 81 | (B : ℝ) (_hB : 0 ≤ B) (hM : ∀ t, ‖M t‖ ≤ B) (t : Icc (0 : ℝ) T) : |
| 82 | ‖projectionDerivativePath T m m₁ hne R t‖ ≤ 4 * B := by |
| 83 | calc |
| 84 | ‖projectionDerivativePath T m m₁ hne R t‖ ≤ |
| 85 | ‖normalProjectionDerivative (m t) (m₁ t)‖ * ‖R‖ := opNorm_comp_le _ _ |
| 86 | _ ≤ (4 * ‖M t‖) * 1 := by |
| 87 | apply mul_le_mul _ hR (norm_nonneg R) (by positivity) |
| 88 | rw [hRay] |
| 89 | exact normalProjectionDerivative_ray_bound (m t) (hne t) (M t) |
| 90 | _ ≤ 4 * B := by nlinarith only [hM t] |
| 91 | |
| 92 | /-- The actual derivative of the explicit terminal-layer displacement. -/ |
| 93 | def activationTrial (h : ℝ) : U →L[ℝ] TimeLp T E := |
| 94 | trialDerivative T hT h (projectionPath T m hne R) (projectionDerivativePath T m m₁ hne R) |
| 95 | |
| 96 | include hd in |
| 97 | theorem activationTrial_primitive (h : ℝ) (Y : U) (t : Icc (0 : ℝ) T) : |
| 98 | initialPrimitive T hT (activationTrial T hT m m₁ hne R h Y) t = |
| 99 | ramp T h t • normalProjection (m t) (R Y) := |
| 100 | initialPrimitive_trialDerivative T hT h (projectionPath T m hne R) |
| 101 | (projectionDerivativePath T m m₁ hne R) |
| 102 | (projectionPath_hasDerivWithinAt T hT m m₁ hne R hd) Y t |
| 103 | |
| 104 | include hd in |
| 105 | theorem activationTrial_tangent (h : ℝ) (Y : U) (t : Icc (0 : ℝ) T) : |
| 106 | ⟪m t, initialPrimitive T hT (activationTrial T hT m m₁ hne R h Y) t⟫_ℝ = 0 := by |
| 107 | rw [activationTrial_primitive T hT m m₁ hne R hd, real_inner_smul_right, |
| 108 | normalProjection_tangent (m t) (hne t), mul_zero] |
| 109 | |
| 110 | include hd in |
| 111 | theorem activationTrial_terminal (h : ℝ) (hLayer : 1 ≤ h * T) |
| 112 | (hR : ∀ Y, ⟪m ⟨T, hT, le_rfl⟩, R Y⟫_ℝ = 0) (Y : U) : |
| 113 | initialPrimitive T hT (activationTrial T hT m m₁ hne R h Y) ⟨T, hT, le_rfl⟩ = R Y := by |
| 114 | rw [activationTrial_primitive T hT m m₁ hne R hd, ramp_terminal hLayer, |
| 115 | one_smul, normalProjection_fixed _ _ (hR Y)] |
| 116 | |
| 117 | omit [CompleteSpace E] in |
| 118 | theorem potential_abs_bound (H : C(Icc (0 : ℝ) T, E →L[ℝ] E)) (u : TimeLp T E) : |
| 119 | |⟪timeMultiplier T hT H u, u⟫_ℝ| ≤ ‖H‖ * ‖u‖ ^ 2 := by |
| 120 | calc |
| 121 | |⟪timeMultiplier T hT H u, u⟫_ℝ| ≤ ‖timeMultiplier T hT H u‖ * ‖u‖ := |
| 122 | abs_real_inner_le_norm _ _ |
| 123 | _ ≤ (‖H‖ * ‖u‖) * ‖u‖ := |
| 124 | mul_le_mul_of_nonneg_right (timeApply_bound T hT H u) (norm_nonneg u) |
| 125 | _ = _ := by ring |
| 126 | |
| 127 | variable [CompleteSpace U] |
| 128 | |
| 129 | include hd in |
| 130 | /-- All input bounds concern the parent coefficients and the actual ray. The |
| 131 | endpoint operator and its `O(h)` norm are constructed conclusions. -/ |
| 132 | theorem activation_endpoint_norm |
| 133 | (h : ℝ) (hh : 0 < h) (hLayer : 1 ≤ h * T) |
| 134 | (hR : ‖R‖ ≤ 1) (CM CH : ℝ) (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) |
| 135 | (M : Icc (0 : ℝ) T → E →L[ℝ] E) |
| 136 | (hRay : ∀ t, m₁ t = -(M t).adjoint (m t)) (hM : ∀ t, ‖M t‖ ≤ CM * h) |
| 137 | (H : C(Icc (0 : ℝ) T, E →L[ℝ] E)) (hHs : ∀ t, (H t).IsSymmetric) |
| 138 | (hHnorm : ‖H‖ ≤ CH * h ^ 2) |
| 139 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t x, ⟪H t x, x⟫_ℝ ≤ K * ‖x‖ ^ 2) |
| 140 | (hsmall : K * (T ^ 2 / 2) ≤ 1 / 2) : |
| 141 | ‖dirichletToNeumann T hT (fun t => m t) H K hK hH hsmall |
| 142 | (activationTrial T hT m m₁ hne R h)‖ ≤ (4 + 64 * CM ^ 2 + 2 * CH) * h := by |
| 143 | apply dirichletToNeumann_norm_le T hT (fun t => m t) H K hK hH hsmall hHs |
| 144 | (activationTrial T hT m m₁ hne R h) ((4 + 64 * CM ^ 2 + 2 * CH) * h) (by positivity) |
| 145 | intro Y |
| 146 | have hproj := projectionPath_norm_le T m hne R hR |
| 147 | have hproj₁ := projectionDerivativePath_norm_le T m m₁ hne R hR M hRay |
| 148 | (CM * h) (by positivity) hM |
| 149 | have hD := trialDerivative_norm_sq_le T hT h (projectionPath T m hne R) |
| 150 | (projectionDerivativePath T m m₁ hne R) hh hLayer |
| 151 | (4 * (CM * h)) (by positivity) hproj hproj₁ Y |
| 152 | have hη := trialDisplacement_norm_sq_le T hT h (projectionPath T m hne R) |
| 153 | (projectionDerivativePath T m m₁ hne R) |
| 154 | (projectionPath_hasDerivWithinAt T hT m m₁ hne R hd) hh hLayer hproj Y |
| 155 | change ‖activationTrial T hT m m₁ hne R h Y‖ ^ 2 ≤ |
| 156 | (4 * h + 4 * (4 * (CM * h)) ^ 2 / h) * ‖Y‖ ^ 2 at hD |
| 157 | change ‖initialPrimitiveTimeLp T hT (activationTrial T hT m m₁ hne R h Y)‖ ^ 2 ≤ |
| 158 | (2 / h) * ‖Y‖ ^ 2 at hη |
| 159 | let u := activationTrial T hT m m₁ hne R h Y |
| 160 | let η := initialPrimitiveTimeLp T hT u |
| 161 | have hp : -⟪timeMultiplier T hT H η, η⟫_ℝ ≤ CH * h ^ 2 * ‖η‖ ^ 2 := by |
| 162 | exact (neg_le_abs _).trans ((potential_abs_bound T hT H η).trans |
| 163 | (mul_le_mul_of_nonneg_right hHnorm (sq_nonneg _))) |
| 164 | change ‖u‖ ^ 2 - ⟪timeMultiplier T hT H η, η⟫_ℝ ≤ _ |
| 165 | calc |
| 166 | ‖u‖ ^ 2 - ⟪timeMultiplier T hT H η, η⟫_ℝ ≤ ‖u‖ ^ 2 + CH * h ^ 2 * ‖η‖ ^ 2 := by linarith only [hp] |
| 167 | _ ≤ (4 * h + 4 * (4 * (CM * h)) ^ 2 / h) * ‖Y‖ ^ 2 + |
| 168 | CH * h ^ 2 * ((2 / h) * ‖Y‖ ^ 2) := |
| 169 | add_le_add hD (mul_le_mul_of_nonneg_left hη (by positivity)) |
| 170 | _ = (4 + 64 * CM ^ 2 + 2 * CH) * h * ‖Y‖ ^ 2 := by field_simp; ring |
| 171 | |
| 172 | end EulerTransverseActivationTrial |