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.PacketPrimaryFactorization |
| 2 | import Euler.PacketPrimaryScaling |
| 3 | import Euler.FixedEndpointClassical |
| 4 | import Euler.TransversePacketTimeData |
| 5 | |
| 6 | /-! Tangency, the physical tangent ODE, and nonvanishing of the actual |
| 7 | canonical primary. Nonvanishing follows from the prescribed nonzero |
| 8 | terminal displacement, rather than from an assumption on the solved velocity. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerLinearDuhamel.Evolution |
| 13 | |
| 14 | open Set ContinuousLinearMap EulerVolterraConvolution |
| 15 | |
| 16 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 17 | {T : ℝ} {hT : 0 ≤ T} {G : C(Icc (0 : ℝ) T,E →L[ℝ] E)} |
| 18 | |
| 19 | /-- A zero of a genuine homogeneous solution propagates in either time direction. -/ |
| 20 | theorem homogeneous_zero_at (U : Evolution T hT G) (f : ℝ → E) |
| 21 | (hf : ∀ t : Icc (0 : ℝ) T, |
| 22 | HasDerivWithinAt f (G t (f t)) (Icc (0 : ℝ) T) t) |
| 23 | (s t : Icc (0 : ℝ) T) (hs : f s = 0) : f t = 0 := by |
| 24 | let q : ℝ → E := fun r => extendPath T hT U.backward r (f r) |
| 25 | have hq : ∀ r ∈ Icc (0 : ℝ) T, HasDerivWithinAt q 0 (Icc (0 : ℝ) T) r := by |
| 26 | intro r hr |
| 27 | have hd := (U.backward_derivative ⟨r,hr⟩).clm_apply (hf ⟨r,hr⟩) |
| 28 | convert! hd using 1 |
| 29 | · simp only [neg_apply,comp_apply,extendPath,projIcc_of_mem hT hr] |
| 30 | abel |
| 31 | have he : q t = q s := by |
| 32 | have h := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le (C := 0) hq |
| 33 | (fun r hr => by simp) (convex_Icc (0 : ℝ) T) s.property t.property |
| 34 | simpa only [zero_mul,norm_le_zero_iff,sub_eq_zero] using h |
| 35 | have hqs : q s = 0 := by simp only [q,hs,map_zero] |
| 36 | have ht : U.backward t (f t) = 0 := by |
| 37 | simpa only [q,extendPath,projIcc_of_mem hT t.property] using he.trans hqs |
| 38 | have h := congrArg (U.forward t) ht |
| 39 | change ((U.forward t).comp (U.backward t)) (f t) = U.forward t 0 at h |
| 40 | simpa only [U.forward_backward,id_apply,map_zero] using h |
| 41 | |
| 42 | end EulerLinearDuhamel.Evolution |
| 43 | |
| 44 | namespace EulerCylinderDirichlet.Coefficients |
| 45 | |
| 46 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerVolterraConvolution |
| 47 | EulerTransverseEndpointCoordinates EulerFixedEndpointClassical |
| 48 | |
| 49 | variable {T : ℝ} {U E : Type*} |
| 50 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 51 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 52 | (D : Coefficients T U E) |
| 53 | |
| 54 | /-- A nonzero terminal coordinate forces the actual physical history |
| 55 | velocity to be nonzero at some time. -/ |
| 56 | theorem labelVelocity_exists_ne_zero (x : Space) (ξ : U) (hξ : ξ ≠ 0) : |
| 57 | ∃ t : Icc (0 : ℝ) T, D.labelVelocity x ξ t ≠ 0 := by |
| 58 | classical |
| 59 | by_contra hn |
| 60 | push Not at hn |
| 61 | have hv : ∀ t : Icc (0 : ℝ) T, D.labelCoordinate x ξ t = 0 := by |
| 62 | intro t |
| 63 | have h := D.labelFrame_lower x t (D.labelCoordinate x ξ t) |
| 64 | change D.lower*‖D.labelCoordinate x ξ t‖^2 ≤ ‖D.labelVelocity x ξ t‖^2 at h |
| 65 | rw [hn t,norm_zero,zero_pow (by decide : 2 ≠ 0)] at h |
| 66 | have hs : ‖D.labelCoordinate x ξ t‖^2 ≤ 0 := nonpos_of_mul_nonpos_right h D.lower_pos |
| 67 | exact norm_eq_zero.mp (by nlinarith [norm_nonneg (D.labelCoordinate x ξ t)]) |
| 68 | let z := EulerFixedEndpointClassical.displacement T D.time_pos.le (D.labelFrame x) (D.labelFrameDerivative x) |
| 69 | (D.labelHessian x) D.lower D.lower_pos (D.labelFrame_lower x) (D.labelFrame_derivative x) |
| 70 | D.potential D.potential_nonneg (D.labelHessian_upper x) D.small ξ |
| 71 | have hd : ∀ t ∈ Icc (0 : ℝ) T, |
| 72 | HasDerivWithinAt (extendPath T D.time_pos.le z) 0 (Icc (0 : ℝ) T) t := by |
| 73 | intro t ht |
| 74 | have h := EulerFixedEndpointClassical.displacement_hasDerivWithinAt T D.time_pos.le (D.labelFrame x) |
| 75 | (D.labelFrameDerivative x) (D.labelHessian x) D.lower D.lower_pos (D.labelFrame_lower x) |
| 76 | (D.labelFrame_derivative x) D.potential D.potential_nonneg (D.labelHessian_upper x) D.small |
| 77 | (D.labelFrameSecond x) D.time_pos (D.labelFrame_second_derivative x) (D.labelFrame_equation x) |
| 78 | ξ ⟨t,ht⟩ |
| 79 | change HasDerivWithinAt (extendPath T D.time_pos.le z) (D.labelCoordinate x ξ ⟨t,ht⟩) |
| 80 | (Icc (0 : ℝ) T) t at h |
| 81 | rwa [hv] at h |
| 82 | have he : extendPath T D.time_pos.le z T = extendPath T D.time_pos.le z 0 := by |
| 83 | have h := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le (C := 0) hd |
| 84 | (fun r hr => by simp) (convex_Icc (0 : ℝ) T) |
| 85 | (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,D.time_pos.le⟩) |
| 86 | (show T ∈ Icc (0 : ℝ) T from ⟨D.time_pos.le,le_rfl⟩) |
| 87 | simpa only [zero_mul,norm_le_zero_iff,sub_eq_zero] using h |
| 88 | have hz0 : extendPath T D.time_pos.le z 0 = 0 := by |
| 89 | rw [extendPath,projIcc_of_mem D.time_pos.le (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,D.time_pos.le⟩)] |
| 90 | exact EulerFixedEndpointClassical.displacement_initial T D.time_pos.le (D.labelFrame x) (D.labelFrameDerivative x) |
| 91 | (D.labelHessian x) D.lower D.lower_pos (D.labelFrame_lower x) (D.labelFrame_derivative x) |
| 92 | D.potential D.potential_nonneg (D.labelHessian_upper x) D.small ξ |
| 93 | have hzT : extendPath T D.time_pos.le z T = ξ := by |
| 94 | rw [extendPath,projIcc_of_mem D.time_pos.le (show T ∈ Icc (0 : ℝ) T from ⟨D.time_pos.le,le_rfl⟩)] |
| 95 | exact EulerFixedEndpointClassical.displacement_terminal T D.time_pos.le (D.labelFrame x) (D.labelFrameDerivative x) |
| 96 | (D.labelHessian x) D.lower D.lower_pos (D.labelFrame_lower x) (D.labelFrame_derivative x) |
| 97 | D.potential D.potential_nonneg (D.labelHessian_upper x) D.small D.time_pos ξ |
| 98 | exact hξ (hzT.symm.trans (he.trans hz0)) |
| 99 | |
| 100 | end EulerCylinderDirichlet.Coefficients |
| 101 | |
| 102 | namespace EulerPacketPrimaryFactorization |
| 103 | |
| 104 | open Set InnerProductSpace EulerSmoothLimit EulerTransversePacketProvider |
| 105 | EulerPacketTerminalDatum EulerTransversePacketPrimary EulerSpatialCutoffs |
| 106 | EulerLinearDuhamel EulerVolterraConvolution |
| 107 | |
| 108 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 109 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 110 | (B : HistoryData (D.initial τ hτ hτT.le)) |
| 111 | (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) |
| 112 | |
| 113 | omit [CompleteSpace U] in |
| 114 | theorem canonicalNormal_equation (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 115 | HasDerivWithinAt (fun s => D.normal.field (D.clamp s) x) |
| 116 | (-(D.M.field t x).adjoint (D.normal.field t x)) (Icc (0 : ℝ) D.T) t := by |
| 117 | simpa only [extendPath,Data.clamp,projIcc_of_mem D.T_pos.le t.property, |
| 118 | Data.normalDerivative_apply] using D.normal_hasDerivWithinAt t t.property x |
| 119 | |
| 120 | theorem canonicalVelocity_tangent (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 121 | ⟪D.normal.field t x,canonicalVelocity τ hτ hτT B ξ hs t x⟫_ℝ = 0 := by |
| 122 | have h : ⟪D.normal.field t x, |
| 123 | vector τ hτ hτT B (initialData D 1 zero_lt_one ξ hs) (t,(x,Real.pi/2))⟫_ℝ = 0 := by |
| 124 | simpa only [Data.normalField,Data.clamp_coe] using |
| 125 | vector_tangent τ hτ hτT B (initialData D 1 zero_lt_one ξ hs) t x (Real.pi/2) |
| 126 | simp only [canonicalVelocity,envelopedVelocity,inner_smul_right,h,mul_zero] |
| 127 | |
| 128 | theorem canonicalVelocity_equation (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 129 | HasDerivWithinAt (fun s => canonicalVelocity τ hτ hτT B ξ hs s x) |
| 130 | (-D.M.field t x (canonicalVelocity τ hτ hτT B ξ hs t x)+ |
| 131 | (2*⟪D.normal.field t x,D.M.field t x (canonicalVelocity τ hτ hτT B ξ hs t x)⟫_ℝ/ |
| 132 | ‖D.normal.field t x‖^2) • D.normal.field t x) (Icc (0 : ℝ) D.T) t := by |
| 133 | simpa only [physicalGenerator_apply] using canonicalVelocity_homogeneous_time τ hτ hτT B ξ hs t x |
| 134 | |
| 135 | theorem canonicalVelocity_ne_zero (hξ : ξ ≠ 0) (t : Icc (0 : ℝ) D.T) |
| 136 | (x : Space) (hx : innerCutoff x ≠ 0) : canonicalVelocity τ hτ hτT B ξ hs t x ≠ 0 := by |
| 137 | intro ht |
| 138 | obtain ⟨s,hs0⟩ := B.coefficients.labelVelocity_exists_ne_zero x ξ hξ |
| 139 | let sd : Icc (0 : ℝ) D.T := ⟨s,s.property.1,s.property.2.trans hτT.le⟩ |
| 140 | have hz := (constructedEvolution D.T D.T_pos.le (physicalGenerator D x)).homogeneous_zero_at |
| 141 | (fun r => canonicalVelocity τ hτ hτT B ξ hs r x) |
| 142 | (fun r => canonicalVelocity_homogeneous_time τ hτ hτT B ξ hs r x) t sd ht |
| 143 | change canonicalVelocity τ hτ hτT B ξ hs s x = 0 at hz |
| 144 | rw [canonicalVelocity_history τ hτ hτT B ξ hs s x] at hz |
| 145 | exact hs0 ((smul_eq_zero.mp hz).resolve_left hx) |
| 146 | |
| 147 | theorem canonicalVelocity_center_ne_zero (hξ : ξ ≠ 0) (t : Icc (0 : ℝ) D.T) : |
| 148 | canonicalVelocity τ hτ hτT B ξ hs t 0 ≠ 0 := |
| 149 | canonicalVelocity_ne_zero τ hτ hτT B ξ hs hξ t 0 (by rw [innerCutoff_zero]; exact one_ne_zero) |
| 150 | |
| 151 | theorem canonical_size_pos (hξ : ξ ≠ 0) (t : Icc (0 : ℝ) D.T) : |
| 152 | 0 < ‖D.normal.field t 0‖*‖canonicalVelocity τ hτ hτT B ξ hs t 0‖ := |
| 153 | mul_pos (norm_pos_iff.mpr (HistoryData.normal_ne_zero t 0)) |
| 154 | (norm_pos_iff.mpr (canonicalVelocity_center_ne_zero τ hτ hτT B ξ hs hξ t)) |
| 155 | |
| 156 | def canonicalVelocityPath (x : Space) : C(Icc (0 : ℝ) D.T,Space) where |
| 157 | toFun t := canonicalVelocity τ hτ hτT B ξ hs t x |
| 158 | continuous_toFun := (show ContinuousOn (fun t => canonicalVelocity τ hτ hτT B ξ hs t x) |
| 159 | (Icc (0 : ℝ) D.T) from fun t ht => |
| 160 | (canonicalVelocity_homogeneous_time τ hτ hτT B ξ hs ⟨t,ht⟩ x).continuousWithinAt).domRestrict |
| 161 | |
| 162 | theorem canonical_amplitude_pos (hξ : ξ ≠ 0) (t : Icc (0 : ℝ) D.T) |
| 163 | (δ h : ℝ) (hδ : 0 < δ) (hh : 0 < h) : |
| 164 | 0 < δ*h/(‖D.normal.field t 0‖*‖canonicalVelocity τ hτ hτT B ξ hs t 0‖) := |
| 165 | div_pos (mul_pos hδ hh) (canonical_size_pos τ hτ hτT B ξ hs hξ t) |
| 166 | |
| 167 | /-- The actual scaled terminal datum achieves the requested primary |
| 168 | gradient norm; nonvanishing is proved from its nonzero terminal direction. -/ |
| 169 | theorem scaled_terminal_target_shear (hξ : ξ ≠ 0) (δ : ℝ) (hδ : 0 < δ) |
| 170 | (h k : ℝ) (hh : 0 ≤ h) (hk : k ≠ 0) (t : Icc (0 : ℝ) D.T) |
| 171 | (X Y : Space → Space) (hX : HasFDerivAt X (D.F.field t 0) 0) |
| 172 | (hY : DifferentiableAt ℝ Y (X 0)) (hleft : ∀ y, Y (X y)=y) : |
| 173 | let α := δ*h/(‖D.normal.field t 0‖*‖canonicalVelocity τ hτ hτT B ξ hs t 0‖) |
| 174 | ‖fderiv ℝ (fun x => k⁻¹ • vector τ hτ hτT B (initialData D δ hδ (α • ξ) hs) |
| 175 | (t,(Y x,k*inner ℝ D.m₀ (Y x)))) (X 0)‖ = h := by |
| 176 | dsimp only |
| 177 | have he := EulerPacketPrimaryShear.scaled_terminal_wave_eq τ hτ hτT B δ hδ ξ hs |
| 178 | (δ*h/(‖D.normal.field t 0‖*‖canonicalVelocity τ hτ hτT B ξ hs t 0‖)) k t |
| 179 | change ‖fderiv ℝ ((fun x : Space => k⁻¹ • vector τ hτ hτT B |
| 180 | (initialData D δ hδ ((δ*h/(‖D.normal.field t 0‖* |
| 181 | ‖canonicalVelocity τ hτ hτT B ξ hs t 0‖)) • ξ) hs) |
| 182 | (t,(x,k*inner ℝ D.m₀ x))) ∘ Y) (X 0)‖ = h |
| 183 | rw [he] |
| 184 | exact EulerPacketPrimaryShear.fullWave_target_shear τ hτ hτT B δ hδ ξ hs h k hh hk t X Y |
| 185 | hX hY hleft (canonicalVelocity_center_ne_zero τ hτ hτT B ξ hs hξ t) |
| 186 | |
| 187 | end EulerPacketPrimaryFactorization |