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.PacketSourceGeometryData |
| 2 | import Euler.PacketActivationNeighbor |
| 3 | |
| 4 | /-! The actual source ray and selected primary satisfy every analytic |
| 5 | field of `PhysicalGeometryData`. Neighbor errors follow from the source |
| 6 | coefficient derivatives and the genuine stationary-history estimate. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPacketSourceGeometry |
| 11 | |
| 12 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 13 | EulerTransversePacketProvider EulerPacketMovingFrame EulerPacketNormalizedPrimary |
| 14 | EulerPacketCrossProduct EulerPacketActivationHistory EulerTransverseActivationSelection |
| 15 | EulerPacketPrimaryFactorization EulerPacketRay EulerVolterraConvolution |
| 16 | EulerTransverseSourceCoefficientPath |
| 17 | |
| 18 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 19 | |
| 20 | def sourceMatrix (D : Data U) (x : Space) (t : ℝ) : Space →L[ℝ] Space := D.M.field (D.clamp t) x |
| 21 | def sourceRay (D : Data U) (x : Space) (t : ℝ) : Space := D.normal.field (D.clamp t) x |
| 22 | |
| 23 | theorem sourceMatrix_continuous (D : Data U) (x : Space) : Continuous (sourceMatrix D x) := |
| 24 | extendPath_continuous D.T D.T_pos.le (pathEvaluation x D.M.field) |
| 25 | |
| 26 | variable [CompleteSpace U] {D : Data U} {τ : ℝ} |
| 27 | {hτ : 0 < τ} {hτT : τ < D.T} {P : ParentFrame D τ} |
| 28 | {H : HistoryData (D.initial τ hτ hτT.le)} |
| 29 | |
| 30 | def ParentFrame.sourceError (x : Space) (t : ℝ) : Space →L[ℝ] Space := |
| 31 | sourceMatrix D x t-P.B t-primaryShear P.c P.m P.v t • rankOne ℝ (unit (P.v t)) (unit (P.m t)) |
| 32 | |
| 33 | namespace Guards |
| 34 | |
| 35 | variable (A : Guards hτ hτT P H) |
| 36 | |
| 37 | def sourceVelocity (x : Space) (t : ℝ) : Space := uncutVelocity τ hτ hτT H A.terminal t x |
| 38 | |
| 39 | omit [CompleteSpace U] in |
| 40 | include hτ in |
| 41 | theorem sourceRay_equation (x : Space) (t : ℝ) (ht : t ∈ Icc τ D.T) : |
| 42 | HasDerivWithinAt (sourceRay D x) (-(sourceMatrix D x t).adjoint (sourceRay D x t)) |
| 43 | (Icc τ D.T) t := by |
| 44 | have hsub : Icc τ D.T ⊆ Icc (0 : ℝ) D.T := fun _ hs => ⟨hτ.le.trans hs.1,hs.2⟩ |
| 45 | have hclamp : D.clamp t=⟨t,hsub ht⟩ := Data.clamp_coe D ⟨t,hsub ht⟩ |
| 46 | change HasDerivWithinAt (fun s => D.normal.field (D.clamp s) x) |
| 47 | (-(D.M.field (D.clamp t) x).adjoint (D.normal.field (D.clamp t) x)) (Icc τ D.T) t |
| 48 | rw [hclamp] |
| 49 | exact (canonicalNormal_equation (D := D) ⟨t,hsub ht⟩ x).mono hsub |
| 50 | |
| 51 | theorem sourceVelocity_equation (x : Space) (t : ℝ) (ht : t ∈ Icc τ D.T) : |
| 52 | HasDerivWithinAt (A.sourceVelocity x) |
| 53 | (-(sourceMatrix D x t) (A.sourceVelocity x t)+ |
| 54 | (2*⟪sourceRay D x t,(sourceMatrix D x t) (A.sourceVelocity x t)⟫_ℝ/ |
| 55 | ‖sourceRay D x t‖^2) • sourceRay D x t) (Icc τ D.T) t := by |
| 56 | have hsub : Icc τ D.T ⊆ Icc (0 : ℝ) D.T := fun _ hs => ⟨hτ.le.trans hs.1,hs.2⟩ |
| 57 | have hclamp : D.clamp t=⟨t,hsub ht⟩ := Data.clamp_coe D ⟨t,hsub ht⟩ |
| 58 | unfold sourceVelocity sourceRay sourceMatrix |
| 59 | rw [hclamp] |
| 60 | have he := (uncutVelocity_equation τ hτ hτT H A.terminal ⟨t,hsub ht⟩ x).mono hsub |
| 61 | rw [EulerPacketPrimaryFactorization.physicalGenerator_apply] at he |
| 62 | exact he |
| 63 | |
| 64 | theorem source_initial_tangent (x : Space) : ⟪sourceRay D x τ,A.sourceVelocity x τ⟫_ℝ=0 := by |
| 65 | have hclamp : D.clamp τ=⟨τ,hτ.le,hτT.le⟩ := Data.clamp_coe D ⟨τ,hτ.le,hτT.le⟩ |
| 66 | simpa only [sourceRay,sourceVelocity,hclamp] using |
| 67 | uncutVelocity_tangent τ hτ hτT H A.terminal ⟨τ,hτ.le,hτT.le⟩ x |
| 68 | |
| 69 | theorem sourceVelocity_ne_zero (x : Space) (t : Icc (0 : ℝ) D.T) : A.sourceVelocity x t ≠ 0 := |
| 70 | uncutVelocity_ne_zero τ hτ hτT H A.terminal A.terminal_properties.1 t x |
| 71 | |
| 72 | omit [CompleteSpace U] in |
| 73 | theorem neighbor_components : |
| 74 | ‖D.M.derivative.field‖ ≤ P.neighborCost hτ hτT H A.CM A.CH ∧ |
| 75 | 3*‖D.normal.derivative.field‖/(P.rayScale hτ hτT*P.epsilon) ≤ |
| 76 | P.neighborCost hτ hτT H A.CM A.CH ∧ |
| 77 | 2*historyLabelDifferenceCost H*P.terminalBound A.CM A.CH/P.epsilon ≤ |
| 78 | P.neighborCost hτ hτT H A.CM A.CH := by |
| 79 | have hs := rayScale_pos hτ hτT P |
| 80 | have he := A.epsilon_pos |
| 81 | have ht := A.terminalBound_nonneg |
| 82 | have hc := historyLabelDifferenceCost_nonneg H |
| 83 | have hn := norm_nonneg (D.M.derivative.field) |
| 84 | have hr : 0 ≤ 3*‖D.normal.derivative.field‖/(P.rayScale hτ hτT*P.epsilon) := by positivity |
| 85 | have hv : 0 ≤ 2*historyLabelDifferenceCost H*P.terminalBound A.CM A.CH/P.epsilon := by positivity |
| 86 | unfold ParentFrame.neighborCost |
| 87 | constructor |
| 88 | · linarith only [hr,hv] |
| 89 | constructor <;> linarith only [hn,hr,hv] |
| 90 | |
| 91 | omit [CompleteSpace U] in |
| 92 | theorem radius_cost_le_error : P.neighborCost hτ hτT H A.CM A.CH*A.radius ≤ |
| 93 | P.totalError hτ hτT H A.CM A.CH A.radius := by |
| 94 | change _ ≤ P.error+_ |
| 95 | linarith only [P.error_nonneg] |
| 96 | |
| 97 | omit [CompleteSpace U] in |
| 98 | theorem sourceError_bound (x : Space) (hx : ‖x‖ ≤ A.radius) (t : ℝ) (ht : t ∈ Icc τ D.T) : |
| 99 | ‖P.sourceError x t‖ ≤ P.totalError hτ hτT H A.CM A.CH A.radius := by |
| 100 | have hd := coefficient_difference D.M (D.clamp t) x 0 |
| 101 | rw [sub_zero] at hd |
| 102 | have hr := P.remainder_bound t ht |
| 103 | have hm := mul_le_mul A.neighbor_components.1 hx (norm_nonneg x) A.neighborCost_nonneg |
| 104 | calc |
| 105 | ‖P.sourceError x t‖ = ‖(sourceMatrix D x t-sourceMatrix D 0 t)+P.sourceError 0 t‖ := by |
| 106 | congr 1 |
| 107 | unfold ParentFrame.sourceError |
| 108 | module |
| 109 | _ ≤ ‖sourceMatrix D x t-sourceMatrix D 0 t‖+‖P.sourceError 0 t‖ := norm_add_le _ _ |
| 110 | _ ≤ ‖D.M.derivative.field‖*‖x‖+P.error := add_le_add hd hr |
| 111 | _ ≤ P.neighborCost hτ hτT H A.CM A.CH*A.radius+P.error := add_le_add hm le_rfl |
| 112 | _ = P.totalError hτ hτT H A.CM A.CH A.radius := by unfold ParentFrame.totalError; ring |
| 113 | |
| 114 | theorem source_velocity_initial_error (x : Space) (hx : ‖x‖ ≤ A.radius) : |
| 115 | |scaledVelocity P.m P.v (A.sourceVelocity x) τ P.a P.epsilon 0 1-1|+ |
| 116 | |scaledVelocity P.m P.v (A.sourceVelocity x) τ P.a P.epsilon 0 0+A.slope| ≤ |
| 117 | P.totalError hτ hτT H A.CM A.CH A.radius := by |
| 118 | have hp := A.terminal_properties |
| 119 | have he := actual_scaled_velocity_initial_error τ hτ hτT H P.m P.v |
| 120 | (P.ray_nonzero τ ⟨le_rfl,hτT.le⟩) (P.velocity_nonzero τ ⟨le_rfl,hτT.le⟩) |
| 121 | A.terminal P.a P.epsilon A.slope A.epsilon_pos A.epsilon_small hp.2.2.2.2.1 hp.2.2.2.2.2 x |
| 122 | apply he.trans |
| 123 | have hc := historyLabelDifferenceCost_nonneg H |
| 124 | calc |
| 125 | 2*historyLabelDifferenceCost H*‖x‖*‖A.terminal‖/P.epsilon ≤ |
| 126 | 2*historyLabelDifferenceCost H*‖x‖*P.terminalBound A.CM A.CH/P.epsilon := by |
| 127 | apply div_le_div_of_nonneg_right _ A.epsilon_pos.le |
| 128 | exact mul_le_mul_of_nonneg_left hp.2.2.2.1 (by positivity) |
| 129 | _ = (2*historyLabelDifferenceCost H*P.terminalBound A.CM A.CH/P.epsilon)*‖x‖ := by ring |
| 130 | _ ≤ P.neighborCost hτ hτT H A.CM A.CH*A.radius := |
| 131 | mul_le_mul A.neighbor_components.2.2 hx (norm_nonneg x) A.neighborCost_nonneg |
| 132 | _ ≤ P.totalError hτ hτT H A.CM A.CH A.radius := A.radius_cost_le_error |
| 133 | |
| 134 | omit [CompleteSpace U] in |
| 135 | theorem source_ray_initial_error (x : Space) (hx : ‖x‖ ≤ A.radius) : |
| 136 | norm3 (scaledRay P.m P.v (sourceRay D x) (P.rayScale hτ hτT) τ P.a P.epsilon 0 0) |
| 137 | (scaledRay P.m P.v (sourceRay D x) (P.rayScale hτ hτT) τ P.a P.epsilon 0 1) |
| 138 | (scaledRay P.m P.v (sourceRay D x) (P.rayScale hτ hτT) τ P.a P.epsilon 0 2-1) ≤ |
| 139 | P.totalError hτ hτT H A.CM A.CH A.radius := by |
| 140 | have he := actual_scaled_ray_initial_error (D := D) τ hτ hτT P.m P.v |
| 141 | (P.ray_nonzero τ ⟨le_rfl,hτT.le⟩) (P.velocity_nonzero τ ⟨le_rfl,hτT.le⟩) |
| 142 | (P.tangent τ ⟨le_rfl,hτT.le⟩) A.normal_choice P.a P.epsilon A.epsilon_pos A.epsilon_small x |
| 143 | apply he.trans |
| 144 | calc |
| 145 | 3*‖D.normal.derivative.field‖*‖x‖/(P.rayScale hτ hτT*P.epsilon) = |
| 146 | (3*‖D.normal.derivative.field‖/(P.rayScale hτ hτT*P.epsilon))*‖x‖ := by ring |
| 147 | _ ≤ P.neighborCost hτ hτT H A.CM A.CH*A.radius := |
| 148 | mul_le_mul A.neighbor_components.2.1 hx (norm_nonneg x) A.neighborCost_nonneg |
| 149 | _ ≤ P.totalError hτ hτT H A.CM A.CH A.radius := A.radius_cost_le_error |
| 150 | |
| 151 | omit [CompleteSpace U] in |
| 152 | theorem error_le_scaled_error : P.totalError hτ hτT H A.CM A.CH A.radius ≤ |
| 153 | 16*(P.epsilon*P.horizon*(4*P.G)^2+P.totalError hτ hτT H A.CM A.CH A.radius) := by |
| 154 | have he := A.totalError_nonneg |
| 155 | have hbase : 0 ≤ P.epsilon*P.horizon*(4*P.G)^2 := |
| 156 | mul_nonneg (mul_nonneg A.epsilon_pos.le (zero_le_one.trans A.horizon_lower)) (sq_nonneg _) |
| 157 | linarith only [he,hbase] |
| 158 | |
| 159 | /-- Every new analytic component is the actual source field or the |
| 160 | selected stationary/forward primary. The parent input and scalar guard |
| 161 | record contain none of this record's new-field conclusions. -/ |
| 162 | def geometryData (Ω : Set Space) (h0 : 0 ∈ Ω) (hΩ : ∀ x ∈ Ω, ‖x‖ ≤ A.radius) : |
| 163 | PhysicalGeometryData {x : Space // x ∈ Ω} where |
| 164 | center := ⟨0,h0⟩ |
| 165 | B := P.B |
| 166 | B₁ := P.B₁ |
| 167 | M := fun x => sourceMatrix D x |
| 168 | E := fun x => P.sourceError x |
| 169 | m := P.m |
| 170 | v := P.v |
| 171 | r := fun x => sourceRay D x |
| 172 | w := fun x => A.sourceVelocity x |
| 173 | c := P.c |
| 174 | s₀ := P.rayScale hτ hτT |
| 175 | t₀ := τ |
| 176 | a := P.a |
| 177 | ε := P.epsilon |
| 178 | σ := P.sigma |
| 179 | y := A.y |
| 180 | Θ := P.horizon |
| 181 | H := P.horizon |
| 182 | G := P.G |
| 183 | d := P.totalError hτ hτT H A.CM A.CH A.radius |
| 184 | lam := A.slope |
| 185 | δ := A.δ |
| 186 | hchild := A.hchild |
| 187 | S := Icc τ D.T |
| 188 | sigma_pos := A.sigma_pos |
| 189 | sigma_small := A.sigma_small |
| 190 | y_pos := A.y_pos |
| 191 | y_small := A.y_small |
| 192 | target_le_horizon := A.target_le_horizon |
| 193 | horizon_le_Theta := le_rfl |
| 194 | short_extension := A.short_extension |
| 195 | a_lower := A.coupling_lower |
| 196 | epsilon_pos := A.epsilon_pos |
| 197 | Theta_lower := A.horizon_lower |
| 198 | G_lower := P.G_lower |
| 199 | d_nonneg := A.totalError_nonneg |
| 200 | ray_scale_pos := rayScale_pos hτ hτT P |
| 201 | slope_nonneg := A.terminal_properties.2.1 |
| 202 | delta_nonneg := A.delta_nonneg |
| 203 | child_nonneg := A.child_nonneg |
| 204 | small := A.small |
| 205 | compression_guard := A.compression_guard |
| 206 | time_maps := activation_horizon_maps τ D.T P.a P.epsilon A.a_pos A.epsilon_pos |
| 207 | M_continuous := fun x => (sourceMatrix_continuous D x).continuousOn |
| 208 | B_derivative := P.B_derivative |
| 209 | old_ray_equation := P.ray_equation |
| 210 | old_velocity_equation := P.velocity_equation |
| 211 | ray_equation := fun x t ht => sourceRay_equation (hτ := hτ) x t ht |
| 212 | velocity_equation := fun x t ht => A.sourceVelocity_equation x t ht |
| 213 | old_ray_nonzero := P.ray_nonzero |
| 214 | old_velocity_nonzero := P.velocity_nonzero |
| 215 | old_tangent := P.tangent |
| 216 | initial_tangent := fun x => A.source_initial_tangent x |
| 217 | B_bound := P.B_bound |
| 218 | B_derivative_bound := P.B₁_bound |
| 219 | E_bound := fun x t ht => A.sourceError_bound x (hΩ x x.property) t ht |
| 220 | parent_decomposition := by |
| 221 | intro x t _ |
| 222 | unfold ParentFrame.sourceError |
| 223 | module |
| 224 | initial_coupling := activation_coupling_match P.B P.m P.v τ P.epsilon |
| 225 | initial_tilt := activation_tilt_match P.B P.m P.v τ P.epsilon A.a_pos.ne' |
| 226 | (Real.sqrt_pos.mp A.sigma_pos).le |
| 227 | initial_shear := (activation_shear_match P.c P.m P.v τ P.a A.a_pos A.shear_pos).2 |
| 228 | initial_ray_error := fun x => (A.source_ray_initial_error x (hΩ x x.property)).trans A.error_le_scaled_error |
| 229 | initial_velocity_error := fun x => |
| 230 | (A.source_velocity_initial_error x (hΩ x x.property)).trans A.error_le_scaled_error |
| 231 | |
| 232 | theorem geometryData_matrix (Ω : Set Space) (h0 : 0 ∈ Ω) (hΩ : ∀ x ∈ Ω, ‖x‖ ≤ A.radius) |
| 233 | (x : {x : Space // x ∈ Ω}) (t : ℝ) : |
| 234 | (A.geometryData Ω h0 hΩ).M x t=D.M.field (D.clamp t) x := rfl |
| 235 | |
| 236 | theorem geometryData_ray (Ω : Set Space) (h0 : 0 ∈ Ω) (hΩ : ∀ x ∈ Ω, ‖x‖ ≤ A.radius) |
| 237 | (x : {x : Space // x ∈ Ω}) (t : ℝ) : |
| 238 | (A.geometryData Ω h0 hΩ).r x t=D.normal.field (D.clamp t) x := rfl |
| 239 | |
| 240 | theorem geometryData_velocity (Ω : Set Space) (h0 : 0 ∈ Ω) (hΩ : ∀ x ∈ Ω, ‖x‖ ≤ A.radius) |
| 241 | (x : {x : Space // x ∈ Ω}) (t : ℝ) : |
| 242 | (A.geometryData Ω h0 hΩ).w x t=uncutVelocity τ hτ hτT H A.terminal t x := rfl |
| 243 | |
| 244 | end Guards |
| 245 | end EulerPacketSourceGeometry |