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.PacketForwardGeometryData |
| 2 | import Euler.PacketGeometrySourceGrowth |
| 3 | import Euler.PacketGeometryLowBounds |
| 4 | |
| 5 | /-! The actual forward primary has the same universal good-time size |
| 6 | and pressure sign as the joined primary. At time zero and on the early |
| 7 | interval its size has the exponential target-ratio gain. -/ |
| 8 | |
| 9 | /-! ## From `Euler/PacketForwardGeometryAssembly.lean` |
| 10 | |
| 11 | The text of `Euler/PacketForwardGeometryAssembly.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! The first normal stage satisfies the full physical amplification |
| 16 | geometry. The source normal, primary and all ODEs are the actual forward |
| 17 | fields, including exact initial data at time zero. -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace EulerPacketSourceGeometry.ForwardGuards |
| 22 | |
| 23 | open Set InnerProductSpace EulerSmoothLimit EulerTransversePacketProvider |
| 24 | EulerPacketMovingFrame EulerPacketNormalizedPrimary EulerPacketRay |
| 25 | EulerPacketGeometrySourceGrowth EulerPacketSourcePropagator |
| 26 | |
| 27 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 28 | {D : Data U} {P : ParentFrame D 0} (G : ForwardGuards P) |
| 29 | |
| 30 | omit [CompleteSpace U] in |
| 31 | theorem error_le_scaled_error : P.forwardError G.radius ≤ |
| 32 | 16*(P.epsilon*P.horizon*(4*P.G)^2+P.forwardError G.radius) := by |
| 33 | have he := G.error_nonneg |
| 34 | have hbase : 0 ≤ P.epsilon*P.horizon*(4*P.G)^2 := |
| 35 | mul_nonneg (mul_nonneg G.epsilon_pos.le (zero_le_one.trans G.horizon_lower)) (sq_nonneg _) |
| 36 | linarith only [he,hbase] |
| 37 | |
| 38 | def geometryData (Ω : Set Space) (h0 : 0 ∈ Ω) (hΩ : ∀ x ∈ Ω, ‖x‖ ≤ G.radius) : |
| 39 | PhysicalGeometryData {x : Space // x ∈ Ω} where |
| 40 | center := ⟨0,h0⟩ |
| 41 | B := P.B |
| 42 | B₁ := P.B₁ |
| 43 | M := fun x => sourceMatrix D x |
| 44 | E := fun x => P.sourceError x |
| 45 | m := P.m |
| 46 | v := P.v |
| 47 | r := fun x => sourceRay D x |
| 48 | w := fun x => G.sourceVelocity x |
| 49 | c := P.c |
| 50 | s₀ := 1 |
| 51 | t₀ := 0 |
| 52 | a := P.a |
| 53 | ε := P.epsilon |
| 54 | σ := P.sigma |
| 55 | y := G.y |
| 56 | Θ := P.horizon |
| 57 | H := P.horizon |
| 58 | G := P.G |
| 59 | d := P.forwardError G.radius |
| 60 | lam := 0 |
| 61 | δ := G.δ |
| 62 | hchild := G.hchild |
| 63 | S := Icc 0 D.T |
| 64 | sigma_pos := G.sigma_pos |
| 65 | sigma_small := G.sigma_small |
| 66 | y_pos := G.y_pos |
| 67 | y_small := G.y_small |
| 68 | target_le_horizon := G.target_le_horizon |
| 69 | horizon_le_Theta := le_rfl |
| 70 | short_extension := G.short_extension |
| 71 | a_lower := G.coupling_lower |
| 72 | epsilon_pos := G.epsilon_pos |
| 73 | Theta_lower := G.horizon_lower |
| 74 | G_lower := P.G_lower |
| 75 | d_nonneg := G.error_nonneg |
| 76 | ray_scale_pos := zero_lt_one |
| 77 | slope_nonneg := le_rfl |
| 78 | delta_nonneg := G.delta_nonneg |
| 79 | child_nonneg := G.child_nonneg |
| 80 | small := G.small |
| 81 | compression_guard := G.compression_guard |
| 82 | time_maps := activation_horizon_maps 0 D.T P.a P.epsilon G.a_pos G.epsilon_pos |
| 83 | M_continuous := fun x => (sourceMatrix_continuous D x).continuousOn |
| 84 | B_derivative := P.B_derivative |
| 85 | old_ray_equation := P.ray_equation |
| 86 | old_velocity_equation := P.velocity_equation |
| 87 | ray_equation := fun x t ht => ForwardGuards.sourceRay_equation x t ht |
| 88 | velocity_equation := fun x t ht => G.sourceVelocity_equation x t ht |
| 89 | old_ray_nonzero := P.ray_nonzero |
| 90 | old_velocity_nonzero := P.velocity_nonzero |
| 91 | old_tangent := P.tangent |
| 92 | initial_tangent := fun x => G.initial_tangent x |
| 93 | B_bound := P.B_bound |
| 94 | B_derivative_bound := P.B₁_bound |
| 95 | E_bound := fun x t ht => G.sourceError_bound x (hΩ x x.property) t ht |
| 96 | parent_decomposition := by |
| 97 | intro x t _ |
| 98 | unfold ParentFrame.sourceError |
| 99 | module |
| 100 | initial_coupling := activation_coupling_match P.B P.m P.v 0 P.epsilon |
| 101 | initial_tilt := activation_tilt_match P.B P.m P.v 0 P.epsilon G.a_pos.ne' |
| 102 | (Real.sqrt_pos.mp G.sigma_pos).le |
| 103 | initial_shear := (activation_shear_match P.c P.m P.v 0 P.a G.a_pos G.shear_pos).2 |
| 104 | initial_ray_error := by |
| 105 | intro x |
| 106 | rw [G.scaled_ray_initial] |
| 107 | change |(0 : ℝ)|+|0|+|(1 : ℝ)-1| ≤ _ |
| 108 | norm_num only [abs_zero,sub_self,add_zero] |
| 109 | exact G.error_nonneg.trans G.error_le_scaled_error |
| 110 | initial_velocity_error := by |
| 111 | intro x |
| 112 | rw [(G.scaled_velocity_initial x).1,(G.scaled_velocity_initial x).2] |
| 113 | norm_num only [sub_self,zero_add,abs_zero,add_zero] |
| 114 | exact G.error_nonneg.trans G.error_le_scaled_error |
| 115 | |
| 116 | theorem source_interval (Ω : Set Space) (h0 : 0 ∈ Ω) (hΩ : ∀ x ∈ Ω, ‖x‖ ≤ G.radius) : |
| 117 | (G.geometryData Ω h0 hΩ).S=Icc (G.geometryData Ω h0 hΩ).t₀ |
| 118 | ((G.geometryData Ω h0 hΩ).t₀+D.T) := by |
| 119 | change Icc 0 D.T=Icc 0 (0+D.T) |
| 120 | rw [zero_add] |
| 121 | |
| 122 | theorem source_horizon (Ω : Set Space) (h0 : 0 ∈ Ω) (hΩ : ∀ x ∈ Ω, ‖x‖ ≤ G.radius) : |
| 123 | (G.geometryData Ω h0 hΩ).time (G.geometryData Ω h0 hΩ).H = |
| 124 | (G.geometryData Ω h0 hΩ).t₀+D.T := by |
| 125 | change physicalTime 0 P.a P.epsilon (P.a*(D.T-0)/P.epsilon)=0+D.T |
| 126 | rw [activation_horizon_exact 0 D.T P.a P.epsilon G.a_pos.ne' G.epsilon_pos.ne',zero_add] |
| 127 | |
| 128 | theorem exists_geometry_and_growth (Ω : Set Space) (h0 : 0 ∈ Ω) |
| 129 | (hΩ : ∀ x ∈ Ω, ‖x‖ ≤ G.radius) : |
| 130 | ∃ F F₁ Z Z₁ : ℝ → ℝ, |
| 131 | ∃ J : PhysicalGeometryConclusion (G.geometryData Ω h0 hΩ) F F₁ Z Z₁, |
| 132 | (∀ t, 0 < growthProfile D (G.geometryData Ω h0 hΩ) J t) ∧ |
| 133 | growthProfile D (G.geometryData Ω h0 hΩ) J ⟨0,le_rfl,D.T_pos.le⟩=1 ∧ |
| 134 | PhysicalGrowth D Ω (growthProfile D (G.geometryData Ω h0 hΩ) J) |
| 135 | (560*P.horizon^10/P.epsilon) := by |
| 136 | obtain ⟨F,F₁,Z,Z₁,J⟩ := (G.geometryData Ω h0 hΩ).exists_geometry |
| 137 | refine ⟨F,F₁,Z,Z₁,J, |
| 138 | growthProfile_pos D _ J (G.source_horizon Ω h0 hΩ),growthProfile_initial D _ J,?_⟩ |
| 139 | apply physicalGrowth_of_geometry D _ J (G.source_interval Ω h0 hΩ) (G.source_horizon Ω h0 hΩ) |
| 140 | · intro x t |
| 141 | change D.M.field (D.clamp (0+t)) x=D.M.field t x |
| 142 | rw [zero_add,Data.clamp_coe] |
| 143 | · intro x t |
| 144 | change D.normal.field (D.clamp (0+t)) x=D.normal.field t x |
| 145 | rw [zero_add,Data.clamp_coe] |
| 146 | |
| 147 | end EulerPacketSourceGeometry.ForwardGuards |
| 148 | end |
| 149 | |
| 150 | end |
| 151 | |
| 152 | noncomputable section |
| 153 | |
| 154 | namespace EulerPacketSourceGeometry.ForwardGuards |
| 155 | |
| 156 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 157 | EulerPacketMovingFrame EulerTransversePacketProvider EulerPacketGeometryLowBounds |
| 158 | EulerPacketForwardFactorization |
| 159 | |
| 160 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 161 | {D : Data U} {P : ParentFrame D 0} (G : ForwardGuards P) |
| 162 | (hball : (1/2 : ℝ) ≤ G.radius) |
| 163 | |
| 164 | def lowGeometry : PhysicalGeometryData {x : Space // ‖x‖ ≤ (1/2 : ℝ)} := |
| 165 | G.geometryData {x | ‖x‖ ≤ (1/2 : ℝ)} (by norm_num) (fun _ hx => hx.trans hball) |
| 166 | |
| 167 | def primaryAmplitude : ℝ := (G.lowGeometry hball).amplitude |
| 168 | |
| 169 | theorem primaryAmplitude_nonneg : 0 ≤ G.primaryAmplitude hball := |
| 170 | EulerPacketGeometryLowBounds.amplitude_nonneg (G.lowGeometry hball) |
| 171 | |
| 172 | def earlyRatio (_G : ForwardGuards P) : ℝ := |
| 173 | cutoffBound*(8232*Real.exp 9*P.horizon^5*Real.exp (-(1/(4*P.sigma)))) |
| 174 | |
| 175 | omit [CompleteSpace U] in |
| 176 | theorem earlyRatio_nonneg : 0 ≤ G.earlyRatio := by |
| 177 | unfold earlyRatio |
| 178 | positivity [cutoffBound_pos,G.horizon_lower] |
| 179 | |
| 180 | include G in |
| 181 | omit [CompleteSpace U] in |
| 182 | theorem scaledTime_mem (t : Icc (0 : ℝ) D.T) : |
| 183 | scaledTime 0 P.a P.epsilon t ∈ Icc 0 P.horizon := by |
| 184 | have ha := G.a_pos |
| 185 | have he := G.epsilon_pos |
| 186 | constructor |
| 187 | · unfold scaledTime |
| 188 | exact mul_nonneg (div_nonneg ha.le he.le) (by simpa using t.property.1) |
| 189 | · have hh := mul_le_mul_of_nonneg_left t.property.2 (div_nonneg ha.le he.le) |
| 190 | calc |
| 191 | _ = (P.a/P.epsilon)*(t : ℝ) := by unfold scaledTime; ring |
| 192 | _ ≤ (P.a/P.epsilon)*D.T := hh |
| 193 | _ = _ := by unfold ParentFrame.horizon; ring |
| 194 | |
| 195 | theorem lowGeometry_size (t : Icc (0 : ℝ) D.T) (x : Space) (hx : ‖x‖ ≤ (1/2 : ℝ)) : |
| 196 | (G.lowGeometry hball).size ⟨x,hx⟩ (scaledTime 0 P.a P.epsilon t) = |
| 197 | ‖D.normal.field t x‖*‖uncutVelocity D G.initialCoordinate t x‖ := by |
| 198 | change ‖D.normal.field (D.clamp (physicalTime 0 P.a P.epsilon (scaledTime 0 P.a P.epsilon t))) x‖* |
| 199 | ‖uncutVelocity D G.initialCoordinate (physicalTime 0 P.a P.epsilon (scaledTime 0 P.a P.epsilon t)) x‖ = _ |
| 200 | rw [physicalTime_scaledTime G.a_pos.ne' G.epsilon_pos.ne',Data.clamp_coe] |
| 201 | |
| 202 | theorem cutoff_amplitude_size (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 203 | G.primaryAmplitude hball*(‖D.normal.field t x‖*‖canonicalVelocity D G.initialCoordinate t x‖) = |
| 204 | innerCutoff x*(G.primaryAmplitude hball*(‖D.normal.field t x‖*‖uncutVelocity D G.initialCoordinate t x‖)) := by |
| 205 | rw [canonicalVelocity,norm_smul,Real.norm_of_nonneg (innerCutoff_nonneg x)] |
| 206 | ring |
| 207 | |
| 208 | theorem good_primary_size (t : Icc (0 : ℝ) D.T) |
| 209 | (ht : 1 ≤ scaledTime 0 P.a P.epsilon t) (x : Space) : |
| 210 | G.primaryAmplitude hball*(‖D.normal.field t x‖*‖canonicalVelocity D G.initialCoordinate t x‖) ≤ |
| 211 | G.δ*G.hchild*goodRatio := by |
| 212 | rw [G.cutoff_amplitude_size hball t x] |
| 213 | by_cases hcut : innerCutoff x=0 |
| 214 | · rw [hcut,zero_mul] |
| 215 | positivity [G.delta_nonneg,G.child_nonneg,goodRatio_pos] |
| 216 | have hx : ‖x‖ ≤ (1/2 : ℝ) := by |
| 217 | have hm := innerCutoff_support (subset_tsupport _ (Function.mem_support.mpr hcut)) |
| 218 | exact le_of_lt (by simpa only [Metric.mem_ball,dist_zero_right] using hm) |
| 219 | have hg := good_amplitude_size (G.lowGeometry hball) ⟨x,hx⟩ (scaledTime 0 P.a P.epsilon t) |
| 220 | ⟨ht,(G.scaledTime_mem t).2⟩ |
| 221 | rw [G.lowGeometry_size hball t x hx] at hg |
| 222 | change G.primaryAmplitude hball*(‖D.normal.field t x‖*‖uncutVelocity D G.initialCoordinate t x‖) ≤ |
| 223 | G.δ*G.hchild*(64*Real.exp 6) at hg |
| 224 | calc |
| 225 | _ ≤ innerCutoff x*(G.δ*G.hchild*(64*Real.exp 6)) := |
| 226 | mul_le_mul_of_nonneg_left hg (innerCutoff_nonneg x) |
| 227 | _ ≤ cutoffBound*(G.δ*G.hchild*(64*Real.exp 6)) := |
| 228 | mul_le_mul_of_nonneg_right (cutoff_le x) (by positivity [G.delta_nonneg,G.child_nonneg]) |
| 229 | _ = _ := by unfold goodRatio; ring |
| 230 | |
| 231 | include hball in |
| 232 | theorem good_primary_flux (t : Icc (0 : ℝ) D.T) |
| 233 | (ht : 1 ≤ scaledTime 0 P.a P.epsilon t) (x : Space) : |
| 234 | 0 ≤ ⟪D.normal.field t x,D.M.field t x (canonicalVelocity D G.initialCoordinate t x)⟫_ℝ := by |
| 235 | rw [canonicalVelocity,map_smul,real_inner_smul_right] |
| 236 | by_cases hcut : innerCutoff x=0 |
| 237 | · simp only [hcut,zero_mul,le_refl] |
| 238 | have hx : ‖x‖ ≤ (1/2 : ℝ) := by |
| 239 | have hm := innerCutoff_support (subset_tsupport _ (Function.mem_support.mpr hcut)) |
| 240 | exact le_of_lt (by simpa only [Metric.mem_ball,dist_zero_right] using hm) |
| 241 | have hg := good_flux (G.lowGeometry hball) ⟨x,hx⟩ (scaledTime 0 P.a P.epsilon t) |
| 242 | ⟨ht,(G.scaledTime_mem t).2⟩ |
| 243 | change 0 < ⟪D.normal.field (D.clamp (physicalTime 0 P.a P.epsilon (scaledTime 0 P.a P.epsilon t))) x, |
| 244 | D.M.field (D.clamp (physicalTime 0 P.a P.epsilon (scaledTime 0 P.a P.epsilon t))) x |
| 245 | (uncutVelocity D G.initialCoordinate (physicalTime 0 P.a P.epsilon (scaledTime 0 P.a P.epsilon t)) x)⟫_ℝ at hg |
| 246 | rw [physicalTime_scaledTime G.a_pos.ne' G.epsilon_pos.ne',Data.clamp_coe] at hg |
| 247 | exact mul_nonneg (innerCutoff_nonneg x) hg.le |
| 248 | |
| 249 | theorem early_primary_size (t : Icc (0 : ℝ) D.T) |
| 250 | (ht : scaledTime 0 P.a P.epsilon t ≤ 1) (x : Space) : |
| 251 | G.primaryAmplitude hball*(‖D.normal.field t x‖*‖canonicalVelocity D G.initialCoordinate t x‖) ≤ |
| 252 | G.δ*G.hchild*G.earlyRatio := by |
| 253 | rw [G.cutoff_amplitude_size hball t x] |
| 254 | by_cases hcut : innerCutoff x=0 |
| 255 | · rw [hcut,zero_mul] |
| 256 | positivity [G.delta_nonneg,G.child_nonneg,G.earlyRatio_nonneg] |
| 257 | have hx : ‖x‖ ≤ (1/2 : ℝ) := by |
| 258 | have hm := innerCutoff_support (subset_tsupport _ (Function.mem_support.mpr hcut)) |
| 259 | exact le_of_lt (by simpa only [Metric.mem_ball,dist_zero_right] using hm) |
| 260 | have hg := early_amplitude_size (G.lowGeometry hball) ⟨x,hx⟩ (scaledTime 0 P.a P.epsilon t) |
| 261 | ⟨(G.scaledTime_mem t).1,ht⟩ |
| 262 | rw [G.lowGeometry_size hball t x hx] at hg |
| 263 | change G.primaryAmplitude hball*(‖D.normal.field t x‖*‖uncutVelocity D G.initialCoordinate t x‖) ≤ |
| 264 | G.δ*G.hchild*(8232*Real.exp 9*P.horizon^5*Real.exp (-(1/(4*P.sigma)))) at hg |
| 265 | calc |
| 266 | _ ≤ innerCutoff x*(G.δ*G.hchild*(8232*Real.exp 9*P.horizon^5*Real.exp (-(1/(4*P.sigma))))) := |
| 267 | mul_le_mul_of_nonneg_left hg (innerCutoff_nonneg x) |
| 268 | _ ≤ cutoffBound*(G.δ*G.hchild*(8232*Real.exp 9*P.horizon^5*Real.exp (-(1/(4*P.sigma))))) := |
| 269 | mul_le_mul_of_nonneg_right (cutoff_le x) (by positivity [G.delta_nonneg,G.child_nonneg,G.horizon_lower]) |
| 270 | _ = _ := by unfold earlyRatio; ring |
| 271 | |
| 272 | end EulerPacketSourceGeometry.ForwardGuards |