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.PacketSourceGeometryGrowth |
| 2 | |
| 3 | /-! Actual primary size and sign estimates on the good, early, and |
| 4 | stationary-history portions of the packet horizon. The amplitude is the |
| 5 | one selected by its genuine center target size. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketGeometryLowBounds |
| 10 | |
| 11 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 12 | EulerGevreyCutoff EulerGevrey EulerPacketMovingFrame |
| 13 | |
| 14 | def cutoffBound : ℝ := 1+(9/rawBump 0)^3 |
| 15 | |
| 16 | theorem cutoffBound_pos : 0 < cutoffBound := by |
| 17 | unfold cutoffBound |
| 18 | positivity [rawBump_pos_zero] |
| 19 | |
| 20 | theorem cutoff_le (x : Space) : innerCutoff x ≤ cutoffBound := by |
| 21 | have h := innerCutoff_gevrey 0 x |
| 22 | simp only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 23 | Nat.cast_one,pow_zero,one_pow,mul_one] at h |
| 24 | have he := (le_abs_self (innerCutoff x)).trans (by simpa only [Real.norm_eq_abs] using h) |
| 25 | exact he.trans (by unfold cutoffBound; linarith) |
| 26 | |
| 27 | def goodRatio : ℝ := cutoffBound*(64*Real.exp 6) |
| 28 | |
| 29 | theorem goodRatio_pos : 0 < goodRatio := by unfold goodRatio; positivity [cutoffBound_pos] |
| 30 | |
| 31 | variable {ι : Type*} (G : PhysicalGeometryData ι) |
| 32 | |
| 33 | theorem amplitude_size_of_ratio (value R : ℝ) (h : value/G.targetSize ≤ R) : |
| 34 | G.amplitude*value ≤ G.δ*G.hchild*R := by |
| 35 | have hh := mul_le_mul_of_nonneg_left h (mul_nonneg G.delta_nonneg G.child_nonneg) |
| 36 | calc |
| 37 | _ = (G.δ*G.hchild)*(value/G.targetSize) := by |
| 38 | unfold PhysicalGeometryData.amplitude primaryAmplitude PhysicalGeometryData.targetSize |
| 39 | PhysicalGeometryData.size PhysicalGeometryData.targetTime |
| 40 | ring |
| 41 | _ ≤ _ := hh |
| 42 | |
| 43 | theorem good_amplitude_size (x : ι) (s : ℝ) (hs : s ∈ Icc 1 G.H) : |
| 44 | G.amplitude*G.size x s ≤ G.δ*G.hchild*(64*Real.exp 6) := by |
| 45 | obtain ⟨F,F1,Z,Z1,J⟩ := G.exists_geometry |
| 46 | have hh := mul_le_mul_of_nonneg_left (J.horizon_size x s hs) J.amplitude_nonneg |
| 47 | calc |
| 48 | _ ≤ G.amplitude*(64*Real.exp 6*G.targetSize) := hh |
| 49 | _ = (64*Real.exp 6)*(G.amplitude*G.targetSize) := by ring |
| 50 | _ = _ := by rw [J.amplitude_normalization]; ring |
| 51 | |
| 52 | theorem early_amplitude_size (x : ι) (s : ℝ) (hs : s ∈ Icc 0 1) : |
| 53 | G.amplitude*G.size x s ≤ G.δ*G.hchild* |
| 54 | (8232*Real.exp 9*G.Θ^5*Real.exp (-(1/(4*G.σ)))) := by |
| 55 | obtain ⟨F,F1,Z,Z1,J⟩ := G.exists_geometry |
| 56 | exact amplitude_size_of_ratio G _ _ (J.early_size x s hs) |
| 57 | |
| 58 | theorem amplitude_nonneg : 0 ≤ G.amplitude := by |
| 59 | obtain ⟨F,F1,Z,Z1,J⟩ := G.exists_geometry |
| 60 | exact J.amplitude_nonneg |
| 61 | |
| 62 | theorem good_flux (x : ι) (s : ℝ) (hs : s ∈ Icc 1 G.H) : |
| 63 | 0 < ⟪G.r x (G.time s),G.M x (G.time s) (G.w x (G.time s))⟫_ℝ := by |
| 64 | obtain ⟨F,F1,Z,Z1,J⟩ := G.exists_geometry |
| 65 | exact J.positive_pressure x s hs |
| 66 | |
| 67 | end EulerPacketGeometryLowBounds |
| 68 | |
| 69 | namespace EulerPacketSourceGeometry.Guards |
| 70 | |
| 71 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 72 | EulerPacketMovingFrame EulerPacketPrimaryFactorization EulerPacketActivationHistory |
| 73 | EulerTransversePacketProvider EulerPacketGeometryLowBounds |
| 74 | |
| 75 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 76 | {D : Data U} {τ : ℝ} {hτ : 0 < τ} {hτT : τ < D.T} {P : ParentFrame D τ} |
| 77 | {H : HistoryData (D.initial τ hτ hτT.le)} (A : Guards hτ hτT P H) |
| 78 | (hball : (1/2 : ℝ) ≤ A.radius) |
| 79 | |
| 80 | def lowGeometry : PhysicalGeometryData {x : Space // ‖x‖ ≤ (1/2 : ℝ)} := |
| 81 | A.geometryData {x | ‖x‖ ≤ (1/2 : ℝ)} (by norm_num) (fun _ hx => hx.trans hball) |
| 82 | |
| 83 | def primaryAmplitude : ℝ := (A.lowGeometry hball).amplitude |
| 84 | |
| 85 | theorem primaryAmplitude_nonneg : 0 ≤ A.primaryAmplitude hball := |
| 86 | EulerPacketGeometryLowBounds.amplitude_nonneg (A.lowGeometry hball) |
| 87 | |
| 88 | def earlyRatio (_A : Guards hτ hτT P H) : ℝ := |
| 89 | cutoffBound*(8232*Real.exp 9*P.horizon^5*Real.exp (-(1/(4*P.sigma)))) |
| 90 | |
| 91 | omit [CompleteSpace U] in |
| 92 | theorem earlyRatio_nonneg : 0 ≤ A.earlyRatio := by |
| 93 | unfold earlyRatio |
| 94 | positivity [cutoffBound_pos,A.horizon_lower] |
| 95 | |
| 96 | include A in |
| 97 | omit [CompleteSpace U] in |
| 98 | theorem scaledTime_upper (t : Icc (0 : ℝ) D.T) : |
| 99 | scaledTime τ P.a P.epsilon t ≤ P.horizon := by |
| 100 | have ha := A.a_pos |
| 101 | have he := A.epsilon_pos |
| 102 | have hh := mul_le_mul_of_nonneg_left (sub_le_sub_right t.property.2 τ) (div_nonneg ha.le he.le) |
| 103 | calc |
| 104 | _ ≤ (P.a/P.epsilon)*(D.T-τ) := hh |
| 105 | _ = _ := by unfold ParentFrame.horizon; ring |
| 106 | |
| 107 | theorem lowGeometry_size (t : Icc (0 : ℝ) D.T) (x : Space) (hx : ‖x‖ ≤ (1/2 : ℝ)) : |
| 108 | (A.lowGeometry hball).size ⟨x,hx⟩ (scaledTime τ P.a P.epsilon t) = |
| 109 | ‖D.normal.field t x‖*‖uncutVelocity τ hτ hτT H A.terminal t x‖ := by |
| 110 | change ‖D.normal.field (D.clamp (physicalTime τ P.a P.epsilon (scaledTime τ P.a P.epsilon t))) x‖* |
| 111 | ‖uncutVelocity τ hτ hτT H A.terminal (physicalTime τ P.a P.epsilon (scaledTime τ P.a P.epsilon t)) x‖ = _ |
| 112 | rw [physicalTime_scaledTime A.a_pos.ne' A.epsilon_pos.ne',Data.clamp_coe] |
| 113 | |
| 114 | theorem cutoff_amplitude_size (t : Icc (0 : ℝ) D.T) (x : Space) |
| 115 | (hs : tsupport innerCutoff ⊆ D.support) : |
| 116 | A.primaryAmplitude hball*(‖D.normal.field t x‖*‖canonicalVelocity τ hτ hτT H A.terminal hs t x‖) = |
| 117 | innerCutoff x*(A.primaryAmplitude hball*(‖D.normal.field t x‖*‖uncutVelocity τ hτ hτT H A.terminal t x‖)) := by |
| 118 | rw [canonicalVelocity_eq_cutoff_uncut,norm_smul,Real.norm_of_nonneg (innerCutoff_nonneg x)] |
| 119 | ring |
| 120 | |
| 121 | theorem good_primary_size (t : Icc (0 : ℝ) D.T) |
| 122 | (ht : 1 ≤ scaledTime τ P.a P.epsilon t) (x : Space) |
| 123 | (hs : tsupport innerCutoff ⊆ D.support) : |
| 124 | A.primaryAmplitude hball*(‖D.normal.field t x‖*‖canonicalVelocity τ hτ hτT H A.terminal hs t x‖) ≤ |
| 125 | A.δ*A.hchild*goodRatio := by |
| 126 | rw [A.cutoff_amplitude_size hball t x hs] |
| 127 | by_cases hcut : innerCutoff x=0 |
| 128 | · rw [hcut,zero_mul] |
| 129 | positivity [A.delta_nonneg,A.child_nonneg,goodRatio_pos] |
| 130 | have hx : ‖x‖ ≤ (1/2 : ℝ) := by |
| 131 | have hm := innerCutoff_support (subset_tsupport _ (Function.mem_support.mpr hcut)) |
| 132 | exact le_of_lt (by simpa only [Metric.mem_ball,dist_zero_right] using hm) |
| 133 | have hg := good_amplitude_size (A.lowGeometry hball) ⟨x,hx⟩ (scaledTime τ P.a P.epsilon t) |
| 134 | ⟨ht,A.scaledTime_upper t⟩ |
| 135 | rw [A.lowGeometry_size hball t x hx] at hg |
| 136 | change A.primaryAmplitude hball*(‖D.normal.field t x‖*‖uncutVelocity τ hτ hτT H A.terminal t x‖) ≤ |
| 137 | A.δ*A.hchild*(64*Real.exp 6) at hg |
| 138 | calc |
| 139 | _ ≤ innerCutoff x*(A.δ*A.hchild*(64*Real.exp 6)) := |
| 140 | mul_le_mul_of_nonneg_left hg (innerCutoff_nonneg x) |
| 141 | _ ≤ cutoffBound*(A.δ*A.hchild*(64*Real.exp 6)) := |
| 142 | mul_le_mul_of_nonneg_right (cutoff_le x) (by positivity [A.delta_nonneg,A.child_nonneg]) |
| 143 | _ = _ := by unfold goodRatio; ring |
| 144 | |
| 145 | include hball in |
| 146 | theorem good_primary_flux (t : Icc (0 : ℝ) D.T) |
| 147 | (ht : 1 ≤ scaledTime τ P.a P.epsilon t) (x : Space) |
| 148 | (hs : tsupport innerCutoff ⊆ D.support) : |
| 149 | 0 ≤ ⟪D.normal.field t x,D.M.field t x (canonicalVelocity τ hτ hτT H A.terminal hs t x)⟫_ℝ := by |
| 150 | rw [canonicalVelocity_eq_cutoff_uncut,map_smul,real_inner_smul_right] |
| 151 | by_cases hcut : innerCutoff x=0 |
| 152 | · simp only [hcut,zero_mul,le_refl] |
| 153 | have hx : ‖x‖ ≤ (1/2 : ℝ) := by |
| 154 | have hm := innerCutoff_support (subset_tsupport _ (Function.mem_support.mpr hcut)) |
| 155 | exact le_of_lt (by simpa only [Metric.mem_ball,dist_zero_right] using hm) |
| 156 | have hg := good_flux (A.lowGeometry hball) ⟨x,hx⟩ (scaledTime τ P.a P.epsilon t) |
| 157 | ⟨ht,A.scaledTime_upper t⟩ |
| 158 | change 0 < ⟪D.normal.field (D.clamp (physicalTime τ P.a P.epsilon (scaledTime τ P.a P.epsilon t))) x, |
| 159 | D.M.field (D.clamp (physicalTime τ P.a P.epsilon (scaledTime τ P.a P.epsilon t))) x |
| 160 | (uncutVelocity τ hτ hτT H A.terminal (physicalTime τ P.a P.epsilon (scaledTime τ P.a P.epsilon t)) x)⟫_ℝ at hg |
| 161 | rw [physicalTime_scaledTime A.a_pos.ne' A.epsilon_pos.ne',Data.clamp_coe] at hg |
| 162 | exact mul_nonneg (innerCutoff_nonneg x) hg.le |
| 163 | |
| 164 | theorem early_primary_size (t : Icc (0 : ℝ) D.T) |
| 165 | (ht : scaledTime τ P.a P.epsilon t ∈ Icc 0 1) (x : Space) |
| 166 | (hs : tsupport innerCutoff ⊆ D.support) : |
| 167 | A.primaryAmplitude hball*(‖D.normal.field t x‖*‖canonicalVelocity τ hτ hτT H A.terminal hs t x‖) ≤ |
| 168 | A.δ*A.hchild*A.earlyRatio := by |
| 169 | rw [A.cutoff_amplitude_size hball t x hs] |
| 170 | by_cases hcut : innerCutoff x=0 |
| 171 | · rw [hcut,zero_mul] |
| 172 | positivity [A.delta_nonneg,A.child_nonneg,A.earlyRatio_nonneg] |
| 173 | have hx : ‖x‖ ≤ (1/2 : ℝ) := by |
| 174 | have hm := innerCutoff_support (subset_tsupport _ (Function.mem_support.mpr hcut)) |
| 175 | exact le_of_lt (by simpa only [Metric.mem_ball,dist_zero_right] using hm) |
| 176 | have hg := early_amplitude_size (A.lowGeometry hball) ⟨x,hx⟩ (scaledTime τ P.a P.epsilon t) ht |
| 177 | rw [A.lowGeometry_size hball t x hx] at hg |
| 178 | change A.primaryAmplitude hball*(‖D.normal.field t x‖*‖uncutVelocity τ hτ hτT H A.terminal t x‖) ≤ |
| 179 | A.δ*A.hchild*(8232*Real.exp 9*P.horizon^5*Real.exp (-(1/(4*P.sigma)))) at hg |
| 180 | calc |
| 181 | _ ≤ innerCutoff x*(A.δ*A.hchild*(8232*Real.exp 9*P.horizon^5*Real.exp (-(1/(4*P.sigma))))) := |
| 182 | mul_le_mul_of_nonneg_left hg (innerCutoff_nonneg x) |
| 183 | _ ≤ cutoffBound*(A.δ*A.hchild*(8232*Real.exp 9*P.horizon^5*Real.exp (-(1/(4*P.sigma))))) := |
| 184 | mul_le_mul_of_nonneg_right (cutoff_le x) (by positivity [A.delta_nonneg,A.child_nonneg,A.horizon_lower]) |
| 185 | _ = _ := by unfold earlyRatio; ring |
| 186 | |
| 187 | /-- This cost is computed from the actual stationary endpoint operator. |
| 188 | It is used only on the history interval; the good interval keeps its |
| 189 | sharp universal target-size ratio. -/ |
| 190 | def historySizeCost : ℝ := |
| 191 | D.inverseBound*historyLabelSizeCost H*P.terminalBound A.CM A.CH |
| 192 | |
| 193 | theorem historySizeCost_nonneg : 0 ≤ A.historySizeCost := by |
| 194 | have hh : 0 ≤ historyLabelSizeCost H := |
| 195 | (norm_nonneg (H.coefficients.labelVelocity 0)).trans (labelVelocity_norm H 0) |
| 196 | unfold historySizeCost |
| 197 | positivity [D.inverseBound_pos,A.terminalBound_nonneg] |
| 198 | |
| 199 | def historyRatio : ℝ := |
| 200 | cutoffBound*(4*P.horizon*A.historySizeCost/(P.rayScale hτ hτT))* |
| 201 | Real.exp (-(1/(4*P.sigma))) |
| 202 | |
| 203 | theorem historyRatio_nonneg : 0 ≤ A.historyRatio := by |
| 204 | unfold historyRatio |
| 205 | positivity [cutoffBound_pos,A.horizon_lower,A.historySizeCost_nonneg,rayScale_pos hτ hτT P] |
| 206 | |
| 207 | def badRatio : ℝ := A.earlyRatio+A.historyRatio |
| 208 | |
| 209 | theorem badRatio_nonneg : 0 ≤ A.badRatio := add_nonneg A.earlyRatio_nonneg A.historyRatio_nonneg |
| 210 | |
| 211 | omit [CompleteSpace U] in |
| 212 | theorem badRatio_formula : A.badRatio = cutoffBound* |
| 213 | (8232*Real.exp 9*P.horizon^5+4*P.horizon*A.historySizeCost/(P.rayScale hτ hτT))* |
| 214 | Real.exp (-(1/(4*P.sigma))) := by |
| 215 | unfold badRatio earlyRatio historyRatio |
| 216 | ring |
| 217 | |
| 218 | theorem history_uncut_size (t : Icc (0 : ℝ) D.T) (ht : (t : ℝ) ≤ τ) (x : Space) : |
| 219 | ‖D.normal.field t x‖*‖uncutVelocity τ hτ hτT H A.terminal t x‖ ≤ A.historySizeCost := by |
| 220 | have hn : ‖D.normal.field t x‖ ≤ D.inverseBound := by |
| 221 | change ‖(D.FInv.field t x).adjoint D.m₀‖ ≤ _ |
| 222 | calc |
| 223 | _ ≤ ‖(D.FInv.field t x).adjoint‖*‖D.m₀‖ := (D.FInv.field t x).adjoint.le_opNorm _ |
| 224 | _ = ‖D.FInv.field t x‖ := by rw [ContinuousLinearMap.adjoint.norm_map,D.m₀_unit,mul_one] |
| 225 | _ ≤ _ := D.inverse_norm t x |
| 226 | have hv : ‖uncutVelocity τ hτ hτT H A.terminal t x‖ ≤ |
| 227 | historyLabelSizeCost H*P.terminalBound A.CM A.CH := by |
| 228 | rw [uncutVelocity_history τ hτ hτT H A.terminal ⟨t,t.property.1,ht⟩ x] |
| 229 | calc |
| 230 | _ ≤ ‖H.coefficients.labelVelocity x A.terminal‖ := |
| 231 | (H.coefficients.labelVelocity x A.terminal).norm_coe_le_norm _ |
| 232 | _ ≤ ‖H.coefficients.labelVelocity x‖*‖A.terminal‖ := |
| 233 | (H.coefficients.labelVelocity x).le_opNorm _ |
| 234 | _ ≤ historyLabelSizeCost H*P.terminalBound A.CM A.CH := |
| 235 | mul_le_mul (labelVelocity_norm H x) A.terminal_properties.2.2.2.1 |
| 236 | (norm_nonneg _) ((norm_nonneg (H.coefficients.labelVelocity x)).trans (labelVelocity_norm H x)) |
| 237 | calc |
| 238 | _ ≤ D.inverseBound*(historyLabelSizeCost H*P.terminalBound A.CM A.CH) := |
| 239 | mul_le_mul hn hv (norm_nonneg _) D.inverseBound_pos.le |
| 240 | _ = _ := by unfold historySizeCost; ring |
| 241 | |
| 242 | theorem history_primary_size (t : Icc (0 : ℝ) D.T) (ht : (t : ℝ) ≤ τ) (x : Space) |
| 243 | (hs : tsupport innerCutoff ⊆ D.support) : |
| 244 | A.primaryAmplitude hball*(‖D.normal.field t x‖*‖canonicalVelocity τ hτ hτT H A.terminal hs t x‖) ≤ |
| 245 | A.δ*A.hchild*A.historyRatio := by |
| 246 | let G := A.lowGeometry hball |
| 247 | obtain ⟨F,F1,Z,Z1,J⟩ := G.exists_geometry |
| 248 | have hr := (ratio_bound_from_target_growth G.ray_scale_pos G.Theta_pos |
| 249 | A.historySizeCost_nonneg (A.history_uncut_size t ht x) J.target_growth).2 |
| 250 | have ha := amplitude_size_of_ratio G _ _ hr |
| 251 | change A.primaryAmplitude hball*(‖D.normal.field t x‖*‖uncutVelocity τ hτ hτT H A.terminal t x‖) ≤ |
| 252 | A.δ*A.hchild*((4*P.horizon*A.historySizeCost/(P.rayScale hτ hτT))*Real.exp (-(1/(4*P.sigma)))) at ha |
| 253 | rw [A.cutoff_amplitude_size hball t x hs] |
| 254 | calc |
| 255 | _ ≤ innerCutoff x*(A.δ*A.hchild*((4*P.horizon*A.historySizeCost/(P.rayScale hτ hτT))*Real.exp (-(1/(4*P.sigma))))) := |
| 256 | mul_le_mul_of_nonneg_left ha (innerCutoff_nonneg x) |
| 257 | _ ≤ cutoffBound*(A.δ*A.hchild*((4*P.horizon*A.historySizeCost/(P.rayScale hτ hτT))*Real.exp (-(1/(4*P.sigma))))) := |
| 258 | mul_le_mul_of_nonneg_right (cutoff_le x) |
| 259 | (by positivity [A.delta_nonneg,A.child_nonneg,A.horizon_lower,A.historySizeCost_nonneg,rayScale_pos hτ hτT P]) |
| 260 | _ = _ := by unfold historyRatio; ring |
| 261 | |
| 262 | /-- One exponential target-ratio bound covers every time before scaled |
| 263 | time one, including the stationary history. -/ |
| 264 | theorem bad_primary_size (t : Icc (0 : ℝ) D.T) |
| 265 | (ht : scaledTime τ P.a P.epsilon t ≤ 1) (x : Space) |
| 266 | (hs : tsupport innerCutoff ⊆ D.support) : |
| 267 | A.primaryAmplitude hball*(‖D.normal.field t x‖*‖canonicalVelocity τ hτ hτT H A.terminal hs t x‖) ≤ |
| 268 | A.δ*A.hchild*A.badRatio := by |
| 269 | by_cases hh : (t : ℝ) ≤ τ |
| 270 | · exact (A.history_primary_size hball t hh x hs).trans |
| 271 | (mul_le_mul_of_nonneg_left (le_add_of_nonneg_left A.earlyRatio_nonneg) |
| 272 | (mul_nonneg A.delta_nonneg A.child_nonneg)) |
| 273 | · have htime : 0 ≤ scaledTime τ P.a P.epsilon t := by |
| 274 | unfold scaledTime |
| 275 | exact mul_nonneg (div_nonneg A.a_pos.le A.epsilon_pos.le) (sub_nonneg.mpr (le_of_not_ge hh)) |
| 276 | exact (A.early_primary_size hball t ⟨htime,ht⟩ x hs).trans |
| 277 | (mul_le_mul_of_nonneg_left (le_add_of_nonneg_right A.historyRatio_nonneg) |
| 278 | (mul_nonneg A.delta_nonneg A.child_nonneg)) |
| 279 | |
| 280 | end EulerPacketSourceGeometry.Guards |