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.PacketActivationData |
| 2 | import Euler.PacketActivationRay |
| 3 | import Euler.PacketPrimaryUncut |
| 4 | |
| 5 | /-! Actual center initial data for the geometric propagation theorem. |
| 6 | The selected terminal coordinate drives the same stationary history and |
| 7 | homogeneous continuation used in the constructed packet. -/ |
| 8 | |
| 9 | /-! ## From `Euler/PacketActivationFrame.lean` |
| 10 | |
| 11 | The text of `Euler/PacketActivationFrame.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! Source activation in the actual physical tangent plane. Ambient |
| 16 | strain error and compression bounds imply the compressed terminal-matrix |
| 17 | hypotheses, so no abstract endpoint matrix or plane isometry is supplied. -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace EulerPacketActivationHistory |
| 22 | |
| 23 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 24 | EulerTransversePacketProvider EulerTransverseFrameCoordinates EulerTransverseSourceCoefficientPath |
| 25 | EulerTransverseActivationSelection |
| 26 | |
| 27 | variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [CompleteSpace V] |
| 28 | |
| 29 | theorem terminalPerturbation_compression (T : ℝ) (hT : 0 ≤ T) |
| 30 | (R : V →ₗᵢ[ℝ] Space) (M : C(Icc (0 : ℝ) T,Space →L[ℝ] Space)) (p q : V) (h : ℝ) : |
| 31 | terminalPerturbation T hT R M p q h = |
| 32 | R.toContinuousLinearMap.adjoint.comp |
| 33 | ((M ⟨T,hT,le_rfl⟩-h • rankOne ℝ (R q) (R p)).comp R.toContinuousLinearMap) := by |
| 34 | apply ContinuousLinearMap.ext |
| 35 | intro v |
| 36 | apply ext_inner_right ℝ |
| 37 | intro w |
| 38 | simp only [terminalPerturbation,sub_apply,comp_apply,smul_apply,rankOne_apply, |
| 39 | inner_sub_left,real_inner_smul_left,adjoint_inner_left, |
| 40 | LinearIsometry.coe_toContinuousLinearMap,R.inner_map_map] |
| 41 | |
| 42 | theorem terminalPerturbation_norm_le (T : ℝ) (hT : 0 ≤ T) |
| 43 | (R : V →ₗᵢ[ℝ] Space) (M : C(Icc (0 : ℝ) T,Space →L[ℝ] Space)) (p q : V) (h : ℝ) : |
| 44 | ‖terminalPerturbation T hT R M p q h‖ ≤ ‖M ⟨T,hT,le_rfl⟩-h • rankOne ℝ (R q) (R p)‖ := by |
| 45 | rw [terminalPerturbation_compression] |
| 46 | have hR := R.norm_toContinuousLinearMap_le |
| 47 | have hRa : ‖R.toContinuousLinearMap.adjoint‖ ≤ 1 := by rwa [LinearIsometryEquiv.norm_map] |
| 48 | refine (opNorm_comp_le _ _).trans ?_ |
| 49 | calc |
| 50 | _ ≤ 1*‖(M ⟨T,hT,le_rfl⟩-h • rankOne ℝ (R q) (R p)).comp R.toContinuousLinearMap‖ := |
| 51 | mul_le_mul_of_nonneg_right hRa (norm_nonneg _) |
| 52 | _ = _ := one_mul _ |
| 53 | _ ≤ ‖M ⟨T,hT,le_rfl⟩-h • rankOne ℝ (R q) (R p)‖*‖R.toContinuousLinearMap‖ := opNorm_comp_le _ _ |
| 54 | _ ≤ ‖M ⟨T,hT,le_rfl⟩-h • rankOne ℝ (R q) (R p)‖*1 := |
| 55 | mul_le_mul_of_nonneg_left hR (norm_nonneg _) |
| 56 | _ = _ := mul_one _ |
| 57 | |
| 58 | theorem terminalPerturbation_diagonal (T : ℝ) (hT : 0 ≤ T) |
| 59 | (R : V →ₗᵢ[ℝ] Space) (M : C(Icc (0 : ℝ) T,Space →L[ℝ] Space)) (p q : V) (h : ℝ) |
| 60 | (hpq : ⟪p,q⟫_ℝ=0) : |
| 61 | ⟪terminalPerturbation T hT R M p q h p,p⟫_ℝ = ⟪M ⟨T,hT,le_rfl⟩ (R p),R p⟫_ℝ := by |
| 62 | have hqp : ⟪q,p⟫_ℝ=0 := by rwa [real_inner_comm] |
| 63 | simp only [terminalPerturbation,sub_apply,comp_apply,smul_apply,rankOne_apply, |
| 64 | inner_sub_left,real_inner_smul_left,adjoint_inner_left,hqp,mul_zero,sub_zero, |
| 65 | LinearIsometry.coe_toContinuousLinearMap] |
| 66 | |
| 67 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 68 | {D : Data U} (B : HistoryData D) |
| 69 | |
| 70 | theorem select_physical_history_coordinate |
| 71 | (hHs : ∀ t, (B.H.field t 0).IsSymmetric) |
| 72 | (h CM CH ε : ℝ) (hh : 0 < h) (hLayer : 1 ≤ h*D.T) |
| 73 | (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) (hε : 0 ≤ ε) |
| 74 | (hM : ∀ t, ‖D.M.field t 0‖ ≤ CM*h) |
| 75 | (hHnorm : ‖B.coefficients.labelHessian 0‖ ≤ CH*h^2) |
| 76 | (p q : Space) (hp : ‖p‖=1) (hq : ‖q‖=1) (hpq : ⟪p,q⟫_ℝ=0) |
| 77 | (hpm : ⟪D.normal.field ⟨D.T,D.T_pos.le,le_rfl⟩ 0,p⟫_ℝ=0) |
| 78 | (hqm : ⟪D.normal.field ⟨D.T,D.T_pos.le,le_rfl⟩ 0,q⟫_ℝ=0) |
| 79 | (hεsmall : 16*(activationConstant CM CH+1)*ε ≤ 1) |
| 80 | (hB : ‖D.M.field ⟨D.T,D.T_pos.le,le_rfl⟩ 0-h • rankOne ℝ q p‖ ≤ ε*h) |
| 81 | (hBpp : ⟪D.M.field ⟨D.T,D.T_pos.le,le_rfl⟩ 0 p,p⟫_ℝ < 0) : |
| 82 | ∃ ξ : U, ξ ≠ 0 ∧ |
| 83 | ⟪B.coefficients.labelVelocity 0 ξ ⟨D.T,D.T_pos.le,le_rfl⟩,q⟫_ℝ=1 ∧ |
| 84 | -8*(activationConstant CM CH+1) ≤ |
| 85 | ⟪B.coefficients.labelVelocity 0 ξ ⟨D.T,D.T_pos.le,le_rfl⟩,p⟫_ℝ ∧ |
| 86 | ⟪B.coefficients.labelVelocity 0 ξ ⟨D.T,D.T_pos.le,le_rfl⟩,p⟫_ℝ ≤ 0 ∧ |
| 87 | ‖ξ‖ ≤ (8*(activationConstant CM CH+1)*D.inverseBound)/h := by |
| 88 | let P := referencePlane (D.normal.field ⟨D.T,D.T_pos.le,le_rfl⟩ 0) |
| 89 | let R : P →ₗᵢ[ℝ] Space := P.subtypeₗᵢ |
| 90 | let p' : P := ⟨p,Submodule.mem_orthogonal_singleton_iff_inner_right.mpr hpm⟩ |
| 91 | let q' : P := ⟨q,Submodule.mem_orthogonal_singleton_iff_inner_right.mpr hqm⟩ |
| 92 | have hR : ∀ Y : P, ⟪D.normal.field ⟨D.T,D.T_pos.le,le_rfl⟩ 0,R Y⟫_ℝ=0 := |
| 93 | fun Y => Submodule.mem_orthogonal_singleton_iff_inner_right.mp Y.property |
| 94 | have he : ‖terminalPerturbation D.T D.T_pos.le R (pathEvaluation 0 D.M.field) p' q' h‖ ≤ ε*h := |
| 95 | (terminalPerturbation_norm_le D.T D.T_pos.le R (pathEvaluation 0 D.M.field) p' q' h).trans hB |
| 96 | have hc : ⟪terminalPerturbation D.T D.T_pos.le R (pathEvaluation 0 D.M.field) p' q' h p',p'⟫_ℝ < 0 := by |
| 97 | rw [terminalPerturbation_diagonal D.T D.T_pos.le R (pathEvaluation 0 D.M.field) p' q' h hpq] |
| 98 | exact hBpp |
| 99 | exact select_history_coordinate B R hR hHs h CM CH ε hh hLayer hCM hCH hε hM hHnorm |
| 100 | p' q' hp hq hpq hεsmall he hc |
| 101 | |
| 102 | end EulerPacketActivationHistory |
| 103 | end |
| 104 | |
| 105 | end |
| 106 | |
| 107 | noncomputable section |
| 108 | |
| 109 | namespace EulerPacketActivationHistory |
| 110 | |
| 111 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 112 | EulerTransversePacketProvider EulerTransverseActivationSelection |
| 113 | EulerPacketMovingFrame EulerPacketNormalizedPrimary EulerPacketCrossProduct |
| 114 | EulerPacketPrimaryFactorization |
| 115 | |
| 116 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 117 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 118 | (B : HistoryData (D.initial τ hτ hτT.le)) |
| 119 | |
| 120 | theorem exists_activated_primary |
| 121 | (m v : ℝ → Space) (hm : m τ ≠ 0) (hv : v τ ≠ 0) (hmv : ⟪m τ,v τ⟫_ℝ=0) |
| 122 | (hchoice : D.m₀=activationDirection (D.deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) |
| 123 | (cross (unit (m τ)) (unit (v τ)))) |
| 124 | (hHs : ∀ t, (B.H.field t 0).IsSymmetric) |
| 125 | (h CM CH ζ a ε : ℝ) (hh : 0 < h) (hLayer : 1 ≤ h*τ) |
| 126 | (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) (hζ : 0 ≤ ζ) (hε : 0 < ε) |
| 127 | (hM : ∀ t : Icc (0 : ℝ) τ, ‖(D.initial τ hτ hτT.le).M.field t 0‖ ≤ CM*h) |
| 128 | (hHnorm : ‖B.coefficients.labelHessian 0‖ ≤ CH*h^2) |
| 129 | (hζsmall : 16*(activationConstant CM CH+1)*ζ ≤ 1) |
| 130 | (hB : ‖D.M.field ⟨τ,hτ.le,hτT.le⟩ 0- |
| 131 | h • rankOne ℝ (unit (v τ)) (unit (m τ))‖ ≤ ζ*h) |
| 132 | (hBpp : ⟪D.M.field ⟨τ,hτ.le,hτT.le⟩ 0 (unit (m τ)),unit (m τ)⟫_ℝ < 0) : |
| 133 | let s₀ := activationRayScale (D.deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) |
| 134 | (cross (unit (m τ)) (unit (v τ))) |
| 135 | 0 < s₀ ∧ |
| 136 | scaledRay m v (fun s => D.normal.field (D.clamp s) 0) s₀ τ a ε 0 = ![0,0,1] ∧ |
| 137 | ∃ ξ : U, ∃ lam : ℝ, ξ ≠ 0 ∧ 0 ≤ lam ∧ |
| 138 | lam ≤ 8*(activationConstant CM CH+1)/ε ∧ |
| 139 | ‖ξ‖ ≤ (8*(activationConstant CM CH+1)*D.inverseBound)/h ∧ |
| 140 | scaledVelocity m v (fun s => uncutVelocity τ hτ hτT B ξ s 0) τ a ε 0 0 = -lam ∧ |
| 141 | scaledVelocity m v (fun s => uncutVelocity τ hτ hτT B ξ s 0) τ a ε 0 1 = 1 := by |
| 142 | dsimp only |
| 143 | have hnormal := actual_normal_of_activation_choice D ⟨τ,hτ.le,hτT.le⟩ 0 _ hchoice |
| 144 | have hp : ⟪(D.initial τ hτ hτT.le).normal.field ⟨τ,hτ.le,le_rfl⟩ 0,unit (m τ)⟫_ℝ=0 := by |
| 145 | change ⟪D.normal.field ⟨τ,hτ.le,hτT.le⟩ 0,unit (m τ)⟫_ℝ=0 |
| 146 | rw [hnormal,real_inner_smul_left,real_inner_comm,inner_cross_first,mul_zero] |
| 147 | have hq : ⟪(D.initial τ hτ hτT.le).normal.field ⟨τ,hτ.le,le_rfl⟩ 0,unit (v τ)⟫_ℝ=0 := by |
| 148 | change ⟪D.normal.field ⟨τ,hτ.le,hτT.le⟩ 0,unit (v τ)⟫_ℝ=0 |
| 149 | rw [hnormal,real_inner_smul_left,real_inner_comm,inner_cross_second,mul_zero] |
| 150 | obtain ⟨ξ,hξ,hqξ,hplo,hphi,hξnorm⟩ := select_physical_history_coordinate B hHs |
| 151 | h CM CH ζ hh hLayer hCM hCH hζ hM hHnorm |
| 152 | (unit (m τ)) (unit (v τ)) (unit_norm hm) (unit_norm hv) (unit_inner_zero hmv) |
| 153 | hp hq hζsmall hB hBpp |
| 154 | have hs := actual_activation_scaled_ray D m v ⟨τ,hτ.le,hτT.le⟩ a ε hm hv hmv hchoice |
| 155 | refine ⟨hs.1,hs.2,ξ,-⟪B.coefficients.labelVelocity 0 ξ ⟨τ,hτ.le,le_rfl⟩,unit (m τ)⟫_ℝ/ε, |
| 156 | hξ,?_⟩ |
| 157 | have hw : uncutVelocity τ hτ hτT B ξ τ 0 = B.coefficients.labelVelocity 0 ξ ⟨τ,hτ.le,le_rfl⟩ := |
| 158 | uncutVelocity_history τ hτ hτT B ξ ⟨τ,hτ.le,le_rfl⟩ 0 |
| 159 | have hpw : ⟪unit (m τ),uncutVelocity τ hτ hτT B ξ τ 0⟫_ℝ = |
| 160 | ⟪B.coefficients.labelVelocity 0 ξ ⟨τ,hτ.le,le_rfl⟩,unit (m τ)⟫_ℝ := by |
| 161 | rw [hw,real_inner_comm] |
| 162 | have hqw : ⟪unit (v τ),uncutVelocity τ hτ hτT B ξ τ 0⟫_ℝ=1 := by |
| 163 | rw [hw,real_inner_comm] |
| 164 | exact hqξ |
| 165 | have hplo' : -(8*(activationConstant CM CH+1)) ≤ |
| 166 | ⟪B.coefficients.labelVelocity 0 ξ ⟨τ,hτ.le,le_rfl⟩,unit (m τ)⟫_ℝ := by |
| 167 | convert! hplo using 1 |
| 168 | ring |
| 169 | have hvinit := activation_scaled_velocity (a := a) hε hplo' hphi hpw hqw |
| 170 | refine ⟨hvinit.1,hvinit.2.1,?_,hvinit.2.2.1,hvinit.2.2.2⟩ |
| 171 | apply hξnorm.trans |
| 172 | apply div_le_div_of_nonneg_right _ hh.le |
| 173 | exact mul_le_mul_of_nonneg_left (D.initial_inverseBound_le τ hτ hτT.le) (by |
| 174 | unfold activationConstant |
| 175 | positivity) |
| 176 | |
| 177 | end EulerPacketActivationHistory |