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.FixedEndpointStrong |
| 2 | import Euler.TimeH1WeakPairing |
| 3 | import Euler.TransverseFixedClassical |
| 4 | |
| 5 | /-! |
| 6 | # The affine endpoint correction as an actual forced Dirichlet solve |
| 7 | |
| 8 | For the affine coordinate lift `t Y / T`, the Jacobi identity cancels the |
| 9 | potential term. Its variational correction is exactly the already |
| 10 | constructed zero-endpoint inverse applied to `2 Q₁(t) (Y/T)`. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace EulerFixedEndpointForcing |
| 16 | |
| 17 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace |
| 18 | EulerTimeLp EulerTerminalTimePrimitive EulerInitialTimePrimitive |
| 19 | EulerVolterraConvolution EulerTimeH1OperatorProduct EulerTimeH1FrameTransport |
| 20 | EulerTransverseEndpointEnergy EulerTransverseFixedEndpoint |
| 21 | EulerTransverseFixedSpaceInverse EulerTransverseEndpointParameter |
| 22 | EulerTransverseEndpointCoordinates EulerContinuousTimeIntegral |
| 23 | EulerTimeH1WeakPairing |
| 24 | |
| 25 | variable {U E : Type*} |
| 26 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 27 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 28 | (T : ℝ) (hT : 0 ≤ T) |
| 29 | (Q Q₁ Q₂ : C(Icc (0 : ℝ) T,U →L[ℝ] E)) |
| 30 | (H : C(Icc (0 : ℝ) T,E →L[ℝ] E)) |
| 31 | |
| 32 | omit [CompleteSpace U] [CompleteSpace E] in |
| 33 | def affineVelocity (Y : U) : C(Icc (0 : ℝ) T,E) := |
| 34 | ⟨fun t => Q₁ t ((t : ℝ) • (T⁻¹ • Y))+Q t (T⁻¹ • Y), |
| 35 | (Q₁.continuous.clm_apply (continuous_subtype_val.smul continuous_const)).add |
| 36 | (Q.continuous.clm_apply continuous_const)⟩ |
| 37 | |
| 38 | omit [CompleteSpace U] [CompleteSpace E] in |
| 39 | def affineAcceleration (Y : U) : C(Icc (0 : ℝ) T,E) := |
| 40 | ⟨fun t => Q₂ t ((t : ℝ) • (T⁻¹ • Y))+(2 : ℝ) • Q₁ t (T⁻¹ • Y), |
| 41 | (Q₂.continuous.clm_apply (continuous_subtype_val.smul continuous_const)).add |
| 42 | ((Q₁.continuous.clm_apply continuous_const).const_smul (2 : ℝ))⟩ |
| 43 | |
| 44 | omit [CompleteSpace U] [CompleteSpace E] in |
| 45 | /-- The genuine affine forcing, as a bounded linear function of terminal data. -/ |
| 46 | def affineForcing : U →L[ℝ] C(Icc (0 : ℝ) T,E) := |
| 47 | (2 : ℝ) • (multiplier Q₁).comp |
| 48 | ((ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)).comp (T⁻¹ • ContinuousLinearMap.id ℝ U)) |
| 49 | |
| 50 | omit [CompleteSpace E] in |
| 51 | theorem affineTrial_eq_pathLp (Y : U) : |
| 52 | affineTrial T hT Q Q₁ Y = pathLp T hT (affineVelocity T Q Q₁ Y) := by |
| 53 | apply Lp.ext |
| 54 | filter_upwards [initialProductDerivative_ae T hT Q Q₁ |
| 55 | (constantFieldOperator T hT (T⁻¹ • Y)),constantFieldOperator_ae T hT (T⁻¹ • Y), |
| 56 | pathLp_ae T hT (affineVelocity T Q Q₁ Y),ae_restrict_mem measurableSet_Icc] |
| 57 | with t hd hc hp hm |
| 58 | have hi := initialPrimitive_constantFieldOperator T hT (T⁻¹ • Y) ⟨t,hm⟩ |
| 59 | change initialRealPrimitive T (constantFieldOperator T hT (T⁻¹ • Y)) t = t • (T⁻¹ • Y) at hi |
| 60 | change initialProductDerivative T hT Q Q₁ (constantFieldOperator T hT (T⁻¹ • Y)) t = _ |
| 61 | rw [hd,hp,hc,hi] |
| 62 | simp only [extendPath,projIcc_of_mem hT hm] |
| 63 | rfl |
| 64 | |
| 65 | variable (hd : ∀ t : Icc (0 : ℝ) T, |
| 66 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 67 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 68 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 69 | (hframe : ∀ t, Q₂ t = -((H t).comp (Q t))) |
| 70 | |
| 71 | include hd hd₁ in |
| 72 | omit [CompleteSpace U] [CompleteSpace E] in |
| 73 | theorem affineVelocity_hasDerivWithinAt (Y : U) (t : Icc (0 : ℝ) T) : |
| 74 | HasDerivWithinAt (extendPath T hT (affineVelocity T Q Q₁ Y)) |
| 75 | (affineAcceleration T Q₁ Q₂ Y t) (Icc (0 : ℝ) T) t := by |
| 76 | have hlin : HasDerivWithinAt (fun s : ℝ => s • (T⁻¹ • Y)) (T⁻¹ • Y) |
| 77 | (Icc (0 : ℝ) T) t := by |
| 78 | simpa only [id_eq,one_smul] using ((hasDerivAt_id (t : ℝ)).smul_const (T⁻¹ • Y)).hasDerivWithinAt |
| 79 | have h := ((hd₁ t).clm_apply hlin).add |
| 80 | ((hd t).clm_apply (hasDerivWithinAt_const (t : ℝ) (Icc (0 : ℝ) T) (T⁻¹ • Y))) |
| 81 | have he : Q₂ t ((t : ℝ) • (T⁻¹ • Y))+extendPath T hT Q₁ t (T⁻¹ • Y)+ |
| 82 | (Q₁ t (T⁻¹ • Y)+extendPath T hT Q t 0) = affineAcceleration T Q₁ Q₂ Y t := by |
| 83 | simp only [extendPath,projIcc_of_mem hT t.property,map_zero,add_zero] |
| 84 | change Q₂ t ((t : ℝ) • (T⁻¹ • Y))+Q₁ t (T⁻¹ • Y)+Q₁ t (T⁻¹ • Y) = |
| 85 | Q₂ t ((t : ℝ) • (T⁻¹ • Y))+(2 : ℝ) • Q₁ t (T⁻¹ • Y) |
| 86 | module |
| 87 | apply (h.congr_deriv he).congr_of_mem _ t.property |
| 88 | intro s hs |
| 89 | simp only [Pi.add_apply,extendPath,projIcc_of_mem hT hs] |
| 90 | rfl |
| 91 | |
| 92 | include hd hframe in |
| 93 | theorem affineAcceleration_add_potential (Y : U) : |
| 94 | pathLp T hT (affineAcceleration T Q₁ Q₂ Y)+ |
| 95 | timeMultiplier T hT H (initialPrimitiveTimeLp T hT (affineTrial T hT Q Q₁ Y)) = |
| 96 | pathLp T hT (affineForcing T Q₁ Y) := by |
| 97 | apply Lp.ext |
| 98 | filter_upwards [Lp.coeFn_add (pathLp T hT (affineAcceleration T Q₁ Q₂ Y)) |
| 99 | (timeMultiplier T hT H (initialPrimitiveTimeLp T hT (affineTrial T hT Q Q₁ Y))), |
| 100 | pathLp_ae T hT (affineAcceleration T Q₁ Q₂ Y), |
| 101 | timeMultiplier_ae T hT H (initialPrimitiveTimeLp T hT (affineTrial T hT Q Q₁ Y)), |
| 102 | initialPrimitiveTimeLp_ae T hT (affineTrial T hT Q Q₁ Y), |
| 103 | pathLp_ae T hT (affineForcing T Q₁ Y),ae_restrict_mem measurableSet_Icc] |
| 104 | with t ha hq hH hi hf hm |
| 105 | have hp := affineTrial_primitive T hT Q Q₁ hd Y ⟨t,hm⟩ |
| 106 | change initialRealPrimitive T (affineTrial T hT Q Q₁ Y) t = Q ⟨t,hm⟩ ((t/T) • Y) at hp |
| 107 | rw [ha,Pi.add_apply,hq,hH,hi,hf,hp] |
| 108 | simp only [extendPath,projIcc_of_mem hT hm] |
| 109 | change Q₂ ⟨t,hm⟩ (t • (T⁻¹ • Y))+(2 : ℝ) • Q₁ ⟨t,hm⟩ (T⁻¹ • Y)+ |
| 110 | H ⟨t,hm⟩ (Q ⟨t,hm⟩ ((t/T) • Y)) = (2 : ℝ) • Q₁ ⟨t,hm⟩ (T⁻¹ • Y) |
| 111 | rw [hframe] |
| 112 | simp only [neg_apply,comp_apply,div_eq_mul_inv,smul_smul] |
| 113 | module |
| 114 | |
| 115 | include hd hd₁ hframe in |
| 116 | /-- The exact affine energy pairing, obtained by genuine integration by parts. -/ |
| 117 | theorem affine_energy_pairing (Y : U) (v : zeroTraceDerivatives (U := U) T hT) : |
| 118 | ⟪energyOperator T hT H (affineTrial T hT Q Q₁ Y),fixedFrameDerivative T hT Q Q₁ v⟫_ℝ = |
| 119 | -⟪pathLp T hT (affineForcing T Q₁ Y),fixedFramePrimitive T hT Q Q₁ v⟫_ℝ := by |
| 120 | have hv := fixedFrameDerivative_trace_zero T hT Q Q₁ hd v |
| 121 | have hw : ⟪affineTrial T hT Q Q₁ Y,fixedFrameDerivative T hT Q Q₁ v⟫_ℝ = |
| 122 | -⟪pathLp T hT (affineAcceleration T Q₁ Q₂ Y), |
| 123 | primitiveTimeLp T hT (fixedFrameDerivative T hT Q Q₁ v)⟫_ℝ := by |
| 124 | rw [affineTrial_eq_pathLp] |
| 125 | exact pathLp_inner_zero_trace T hT _ _ |
| 126 | (affineVelocity_hasDerivWithinAt T hT Q Q₁ Q₂ hd hd₁ Y) _ hv |
| 127 | have he := congrArg (fun w : TimeLp T E => |
| 128 | ⟪w,primitiveTimeLp T hT (fixedFrameDerivative T hT Q Q₁ v)⟫_ℝ) |
| 129 | (affineAcceleration_add_potential T hT Q Q₁ Q₂ H hd hframe Y) |
| 130 | rw [inner_add_left] at he |
| 131 | rw [energyOperator_inner,initialPrimitiveTimeLp_eq_primitive_of_trace_zero T hT _ hv,hw] |
| 132 | change _ = -⟪pathLp T hT (affineForcing T Q₁ Y), |
| 133 | primitiveTimeLp T hT (fixedFrameDerivative T hT Q Q₁ v)⟫_ℝ |
| 134 | linarith only [he] |
| 135 | |
| 136 | variable (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) |
| 137 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t v, ⟪H t v,v⟫_ℝ ≤ K*‖v‖^2) |
| 138 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 139 | |
| 140 | include hd₁ hframe in |
| 141 | /-- The stationary affine correction is exactly the forced inverse applied |
| 142 | to the explicit source `2 Q₁ Y/T`; no new inverse is assumed. -/ |
| 143 | theorem correction_eq_forced (Y : U) : |
| 144 | fixedEndpointCorrection T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 145 | (affineTrial T hT Q Q₁) Y = |
| 146 | fixedFrameSolver T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 147 | (pathLp T hT (affineForcing T Q₁ Y)) := by |
| 148 | apply fixedFrameSolver_unique T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 149 | intro v |
| 150 | have he := fixedEndpointCorrection_equation T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 151 | (affineTrial T hT Q Q₁) Y v |
| 152 | rw [fixedFrame_energy T hT Q Q₁ H hd,fixedFrameOperator_inner] at he |
| 153 | exact he.trans (affine_energy_pairing T hT Q Q₁ Q₂ H hd hd₁ hframe Y v) |
| 154 | |
| 155 | end EulerFixedEndpointForcing |