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.PacketChildFieldMatch |
| 2 | import Euler.PacketGeometryLowBounds |
| 3 | import Euler.ParentEulerState |
| 4 | |
| 5 | /-! Sharp whole-horizon low-order propagation for the actual child |
| 6 | fields. On good times only the negative part of f' can increase the |
| 7 | upper pressure bound; history and early times use the exponentially |
| 8 | small target ratio. No child low bound is assumed. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerPacketPhysicalLowBounds |
| 13 | |
| 14 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 15 | EulerTransversePacketProvider EulerPacketPrimaryFactorization |
| 16 | |
| 17 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 18 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 19 | (H : HistoryData (D.initial τ hτ hτT.le)) (ξ : U) |
| 20 | (hs : tsupport innerCutoff ⊆ D.support) (a slope : ℝ) |
| 21 | |
| 22 | theorem pressureTerm_eq_coefficient (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 23 | pressureTerm a slope (D.M.field t x) (D.normal.field t x) |
| 24 | (canonicalVelocity τ hτ hτT H ξ hs t x) = |
| 25 | (EulerPacketPrimaryPressure.coefficient τ hτ hτT H ξ hs a t x*slope) • |
| 26 | rankOne ℝ (D.normal.field t x) (D.normal.field t x) := by |
| 27 | unfold pressureTerm EulerPacketPrimaryPressure.coefficient |
| 28 | congr 1 |
| 29 | ring |
| 30 | |
| 31 | end EulerPacketPhysicalLowBounds |
| 32 | |
| 33 | namespace EulerParentPacketFrames.Evolution |
| 34 | |
| 35 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 36 | EulerTransverseFrameCoordinates EulerTransversePacketProvider |
| 37 | EulerAllOrderCorrectionData EulerAllOrderDriftCorrection EulerPacketCorrectionCoefficients |
| 38 | EulerPacketSourceGeometry EulerPacketMovingFrame EulerPacketGeometryLowBounds |
| 39 | EulerPacketPhysicalLowBounds EulerPacketPrimaryFactorization EulerPeriodicProfile |
| 40 | EulerSpatialCutoffs EulerPacketTerminalDatum |
| 41 | open scoped ContDiff |
| 42 | |
| 43 | variable {A : Parent} (E : Evolution A) |
| 44 | |
| 45 | theorem strain_at_normalized_inverse (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 46 | A.strain.field t (E.inverse.normalized t (A.ell⁻¹ • x)) = |
| 47 | fderiv ℝ (fun y => E.velocity (t,y)) x := by |
| 48 | rw [E.strain_eq] |
| 49 | have hi : A.ell • E.inverse.normalized t (A.ell⁻¹ • x)=E.inverse.field t x := by |
| 50 | simp only [ParticleInverse.normalized,Parent.packetInverse, |
| 51 | projIcc_of_mem A.T_pos.le t.property,smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] |
| 52 | rw [hi,E.inverse.right_inverse] |
| 53 | |
| 54 | |
| 55 | theorem pressure_hessian_eq_force (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 56 | fderiv ℝ (gradient (fun y => E.pressure (t,y))) x=fderiv ℝ (E.force t) x := by |
| 57 | rw [show gradient (fun y => E.pressure (t,y))=E.force t from funext (E.pressure_gradient t)] |
| 58 | |
| 59 | theorem force_quadratic_upper_of_lowBounds (L : LowBounds A) |
| 60 | (t : Icc (0 : ℝ) A.T) (x z : Space) : |
| 61 | ⟪fderiv ℝ (E.force t) x z,z⟫_ℝ ≤ L.K*‖z‖^2 := by |
| 62 | have hh := L.curvature_upper t (A.ell⁻¹ • E.inverse.field t x) z |
| 63 | rw [E.curvature_eq] at hh |
| 64 | simpa only [smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul,E.inverse.right_inverse] using hh |
| 65 | |
| 66 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 67 | (m : Space) (hm : ‖m‖=1) (J : U ≃ₗᵢ[ℝ] referencePlane m) |
| 68 | (support : Set Space) (hSupport : IsCompact support) |
| 69 | {κ : ℝ} {hκ : |κ| ≤ 1} {Z R : FieldTower period A.T} |
| 70 | (B : Budget period A.T_pos (correctionData (A.transverseData m hm J support hSupport) period κ hκ Z R)) |
| 71 | (residual : ApproximationResidual period A.T_pos |
| 72 | (correctionData (A.transverseData m hm J support hSupport) period κ hκ Z R)) |
| 73 | (k : ℝ) (hk : k*κ=1) |
| 74 | |
| 75 | include hk in |
| 76 | omit [CompleteSpace U] in |
| 77 | theorem exactPacket_derivative_split (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 78 | fderiv ℝ (fun y => A.exactPacketVelocity m hm J support hSupport B residual k E.inverse.field E.velocity (t,y)) x = |
| 79 | fderiv ℝ (fun y => E.velocity (t,y)) x+ |
| 80 | fderiv ℝ (A.normalizedPacketVelocity m hm J support hSupport B residual k E.inverse t) (A.ell⁻¹ • x) ∧ |
| 81 | fderiv ℝ (gradient (fun y => A.exactPacketPressure m hm J support hSupport B residual k E.inverse.field E.pressure (t,y))) x = |
| 82 | fderiv ℝ (E.force t) x+ |
| 83 | fderiv ℝ (gradient (A.normalizedPacketPressure m hm J support hSupport B residual k E.inverse t)) (A.ell⁻¹ • x) := by |
| 84 | refine ⟨A.exactPacketVelocity_fderiv m hm J support hSupport B residual k E.inverse E.velocity t x |
| 85 | ((E.velocity_smooth t).differentiable (by simp) x),?_⟩ |
| 86 | have hp1 : DifferentiableAt ℝ (gradient (fun y => E.pressure (t,y))) x := by |
| 87 | rw [show gradient (fun y => E.pressure (t,y))=E.force t from funext (E.pressure_gradient t)] |
| 88 | exact (E.force_smooth t).differentiable (by simp) x |
| 89 | rw [A.exactPacketPressure_hessian m hm J support hSupport B residual k E.inverse hk E.pressure t x |
| 90 | (E.pressure_differentiable t) hp1,E.pressure_hessian_eq_force] |
| 91 | |
| 92 | variable {τ : ℝ} {hτ : 0 < τ} {hτT : τ < A.T} |
| 93 | {F : ParentFrame (A.transverseData m hm J support hSupport) τ} |
| 94 | {H : HistoryData ((A.transverseData m hm J support hSupport).initial τ hτ hτT.le)} |
| 95 | (G : Guards hτ hτT F H) (hball : (1/2 : ℝ) ≤ G.radius) |
| 96 | (hs : tsupport innerCutoff ⊆ support) (hδ : 0 < G.δ) (hδ1 : G.δ ≤ 1) |
| 97 | |
| 98 | /-- The exact source (20) errors, expressed on the same normalized |
| 99 | packet that defines the physical child. These are precisely the two |
| 100 | errors supplied by the same-Q packet choice. -/ |
| 101 | def SourceErrors (ev ep : ℝ) : Prop := |
| 102 | ∀ (t : Icc (0 : ℝ) A.T) (x : Space), |
| 103 | ‖fderiv ℝ (A.normalizedPacketVelocity m hm J support hSupport B residual k E.inverse t) x- |
| 104 | shearTerm (G.primaryAmplitude hball) (deriv (profile G.δ) (k*⟪m,E.inverse.normalized t x⟫_ℝ)) |
| 105 | ((A.transverseData m hm J support hSupport).normal.field t (E.inverse.normalized t x)) |
| 106 | (canonicalVelocity τ hτ hτT H G.terminal hs t (E.inverse.normalized t x))‖ ≤ ev ∧ |
| 107 | ‖fderiv ℝ (gradient (A.normalizedPacketPressure m hm J support hSupport B residual k E.inverse t)) x- |
| 108 | pressureTerm (G.primaryAmplitude hball) (deriv (profile G.δ) (k*⟪m,E.inverse.normalized t x⟫_ℝ)) |
| 109 | ((A.transverseData m hm J support hSupport).M.field t (E.inverse.normalized t x)) |
| 110 | ((A.transverseData m hm J support hSupport).normal.field t (E.inverse.normalized t x)) |
| 111 | (canonicalVelocity τ hτ hτT H G.terminal hs t (E.inverse.normalized t x))‖ ≤ ep |
| 112 | |
| 113 | /-- The literal strict errors returned by the global same-Q packet |
| 114 | theorem imply the error record without any additional analytic bound. -/ |
| 115 | theorem sourceErrors_of_global (ev ep : ℝ) |
| 116 | (herr : ∀ (t : Icc (0 : ℝ) A.T) (x : Space), |
| 117 | ‖fderiv ℝ (A.normalizedPacketVelocity m hm J support hSupport B residual k E.inverse t) x- |
| 118 | (G.primaryAmplitude hball*deriv (profile G.δ) (k*⟪m,E.inverse.normalized t x⟫_ℝ)) • |
| 119 | rankOne ℝ (canonicalVelocity τ hτ hτT H G.terminal hs t (E.inverse.normalized t x)) |
| 120 | ((A.transverseData m hm J support hSupport).normal.field t (E.inverse.normalized t x))‖ < ev ∧ |
| 121 | ‖fderiv ℝ (gradient (A.normalizedPacketPressure m hm J support hSupport B residual k E.inverse t)) x- |
| 122 | (EulerPacketPrimaryPressure.coefficient τ hτ hτT H G.terminal hs (G.primaryAmplitude hball) t |
| 123 | (E.inverse.normalized t x)*deriv (profile G.δ) (k*⟪m,E.inverse.normalized t x⟫_ℝ)) • |
| 124 | rankOne ℝ ((A.transverseData m hm J support hSupport).normal.field t (E.inverse.normalized t x)) |
| 125 | ((A.transverseData m hm J support hSupport).normal.field t (E.inverse.normalized t x))‖ < ep) : |
| 126 | E.SourceErrors m hm J support hSupport B residual k G hball hs ev ep := by |
| 127 | intro t x |
| 128 | refine ⟨(herr t x).1.le,?_⟩ |
| 129 | erw [pressureTerm_eq_coefficient] |
| 130 | exact (herr t x).2.le |
| 131 | |
| 132 | include hk hδ hδ1 in |
| 133 | theorem exactPacket_good_low_bounds |
| 134 | (ev ep CM CH Kupper : ℝ) |
| 135 | (herr : E.SourceErrors m hm J support hSupport B residual k G hball hs ev ep) |
| 136 | (t : Icc (0 : ℝ) A.T) (ht : 1 ≤ scaledTime τ F.a F.epsilon t) (x : Space) |
| 137 | (hCM : ‖fderiv ℝ (fun y => E.velocity (t,y)) x‖ ≤ CM) |
| 138 | (hCH : ‖fderiv ℝ (E.force t) x‖ ≤ CH) |
| 139 | (hupper : ∀ z, ⟪fderiv ℝ (E.force t) x z,z⟫_ℝ ≤ Kupper*‖z‖^2) : |
| 140 | ‖fderiv ℝ (fun y => A.exactPacketVelocity m hm J support hSupport B residual k E.inverse.field E.velocity (t,y)) x‖ ≤ |
| 141 | CM+G.hchild*goodRatio+ev ∧ |
| 142 | ‖fderiv ℝ (gradient (fun y => A.exactPacketPressure m hm J support hSupport B residual k E.inverse.field E.pressure (t,y))) x‖ ≤ |
| 143 | CH+2*CM*(G.hchild*goodRatio)+ep ∧ |
| 144 | ∀ z, ⟪fderiv ℝ (gradient (fun y => A.exactPacketPressure m hm J support hSupport B residual k E.inverse.field E.pressure (t,y))) x z,z⟫_ℝ ≤ |
| 145 | (Kupper+2*CM*G.δ*(G.hchild*goodRatio)+ep)*‖z‖^2 := by |
| 146 | let y := E.inverse.normalized t (A.ell⁻¹ • x) |
| 147 | have herr' := herr t (A.ell⁻¹ • x) |
| 148 | have he := E.exactPacket_derivative_split m hm J support hSupport B residual k hk t x |
| 149 | have hm' : (A.transverseData m hm J support hSupport).M.field t y= |
| 150 | fderiv ℝ (fun y => E.velocity (t,y)) x := E.strain_at_normalized_inverse t x |
| 151 | apply good_step_bounds _ _ _ _ ((A.transverseData m hm J support hSupport).M.field t y) |
| 152 | ((A.transverseData m hm J support hSupport).normal.field t y) |
| 153 | (canonicalVelocity τ hτ hτT H G.terminal hs t y) |
| 154 | (G.primaryAmplitude hball) G.δ (k*⟪m,y⟫_ℝ) ev ep CM CM CH (G.hchild*goodRatio) |
| 155 | (G.primaryAmplitude_nonneg hball) hδ hδ1 |
| 156 | · simpa only [mul_assoc] using G.good_primary_size hball t ht y hs |
| 157 | · rw [hm']; exact hCM |
| 158 | · exact hCM |
| 159 | · exact hCH |
| 160 | · rw [he.1,add_sub_cancel_left] |
| 161 | exact herr'.1 |
| 162 | · rw [he.2,add_sub_cancel_left] |
| 163 | exact herr'.2 |
| 164 | · exact G.good_primary_flux hball t ht y hs |
| 165 | · exact hupper |
| 166 | |
| 167 | include hk hδ hδ1 in |
| 168 | theorem exactPacket_bad_low_bounds |
| 169 | (ev ep CM CH Kupper : ℝ) |
| 170 | (herr : E.SourceErrors m hm J support hSupport B residual k G hball hs ev ep) |
| 171 | (t : Icc (0 : ℝ) A.T) (ht : scaledTime τ F.a F.epsilon t ≤ 1) (x : Space) |
| 172 | (hCM : ‖fderiv ℝ (fun y => E.velocity (t,y)) x‖ ≤ CM) |
| 173 | (hCH : ‖fderiv ℝ (E.force t) x‖ ≤ CH) |
| 174 | (hupper : ∀ z, ⟪fderiv ℝ (E.force t) x z,z⟫_ℝ ≤ Kupper*‖z‖^2) : |
| 175 | ‖fderiv ℝ (fun y => A.exactPacketVelocity m hm J support hSupport B residual k E.inverse.field E.velocity (t,y)) x‖ ≤ |
| 176 | CM+G.hchild*G.badRatio+ev ∧ |
| 177 | ‖fderiv ℝ (gradient (fun y => A.exactPacketPressure m hm J support hSupport B residual k E.inverse.field E.pressure (t,y))) x‖ ≤ |
| 178 | CH+2*CM*(G.hchild*G.badRatio)+ep ∧ |
| 179 | ∀ z, ⟪fderiv ℝ (gradient (fun y => A.exactPacketPressure m hm J support hSupport B residual k E.inverse.field E.pressure (t,y))) x z,z⟫_ℝ ≤ |
| 180 | (Kupper+2*CM*(G.hchild*G.badRatio)+ep)*‖z‖^2 := by |
| 181 | let y := E.inverse.normalized t (A.ell⁻¹ • x) |
| 182 | have herr' := herr t (A.ell⁻¹ • x) |
| 183 | have he := E.exactPacket_derivative_split m hm J support hSupport B residual k hk t x |
| 184 | have hm' : (A.transverseData m hm J support hSupport).M.field t y= |
| 185 | fderiv ℝ (fun y => E.velocity (t,y)) x := E.strain_at_normalized_inverse t x |
| 186 | apply absolute_step_bounds _ _ _ _ ((A.transverseData m hm J support hSupport).M.field t y) |
| 187 | ((A.transverseData m hm J support hSupport).normal.field t y) |
| 188 | (canonicalVelocity τ hτ hτT H G.terminal hs t y) |
| 189 | (G.primaryAmplitude hball) G.δ (k*⟪m,y⟫_ℝ) ev ep CM CM CH (G.hchild*G.badRatio) |
| 190 | (G.primaryAmplitude_nonneg hball) hδ hδ1 |
| 191 | · simpa only [mul_assoc] using G.bad_primary_size hball t ht y hs |
| 192 | · rw [hm']; exact hCM |
| 193 | · exact hCM |
| 194 | · exact hCH |
| 195 | · rw [he.1,add_sub_cancel_left] |
| 196 | exact herr'.1 |
| 197 | · rw [he.2,add_sub_cancel_left] |
| 198 | exact herr'.2 |
| 199 | · exact hupper |
| 200 | |
| 201 | include hk hδ hδ1 in |
| 202 | /-- The full horizon has one fixed absolute-size cost, while the upper |
| 203 | pressure cost retains delta on good times and the exponentially small |
| 204 | bad-time ratio. The parent constants remain the actual sharp CM and CH. -/ |
| 205 | theorem exactPacket_whole_horizon_low_bounds |
| 206 | (ev ep CM CH Kupper : ℝ) |
| 207 | (herr : E.SourceErrors m hm J support hSupport B residual k G hball hs ev ep) |
| 208 | (hCM : ∀ (t : Icc (0 : ℝ) A.T) x, ‖fderiv ℝ (fun y => E.velocity (t,y)) x‖ ≤ CM) |
| 209 | (hCH : ∀ (t : Icc (0 : ℝ) A.T) x, ‖fderiv ℝ (E.force t) x‖ ≤ CH) |
| 210 | (hupper : ∀ (t : Icc (0 : ℝ) A.T) x z, ⟪fderiv ℝ (E.force t) x z,z⟫_ℝ ≤ Kupper*‖z‖^2) |
| 211 | (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 212 | ‖fderiv ℝ (fun y => A.exactPacketVelocity m hm J support hSupport B residual k E.inverse.field E.velocity (t,y)) x‖ ≤ |
| 213 | CM+G.hchild*(goodRatio+G.badRatio)+ev ∧ |
| 214 | ‖fderiv ℝ (gradient (fun y => A.exactPacketPressure m hm J support hSupport B residual k E.inverse.field E.pressure (t,y))) x‖ ≤ |
| 215 | CH+2*CM*G.hchild*(goodRatio+G.badRatio)+ep ∧ |
| 216 | ∀ z, ⟪fderiv ℝ (gradient (fun y => A.exactPacketPressure m hm J support hSupport B residual k E.inverse.field E.pressure (t,y))) x z,z⟫_ℝ ≤ |
| 217 | (Kupper+2*CM*G.hchild*(G.δ*goodRatio+G.badRatio)+ep)*‖z‖^2 := by |
| 218 | have hCM0 : 0 ≤ CM := (norm_nonneg _).trans (hCM t x) |
| 219 | have hchild := G.child_nonneg |
| 220 | have hbad := G.badRatio_nonneg |
| 221 | have hgood := goodRatio_pos.le |
| 222 | by_cases ht : 1 ≤ scaledTime τ F.a F.epsilon t |
| 223 | · obtain ⟨hv,hp,hq⟩ := E.exactPacket_good_low_bounds m hm J support hSupport B residual k hk |
| 224 | G hball hs hδ hδ1 ev ep CM CH Kupper herr t ht x (hCM t x) (hCH t x) (hupper t x) |
| 225 | refine ⟨hv.trans ?_,hp.trans ?_,fun z => (hq z).trans ?_⟩ |
| 226 | · nlinarith only [mul_nonneg hchild hbad] |
| 227 | · nlinarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] |
| 228 | · apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) |
| 229 | nlinarith only [mul_nonneg (mul_nonneg hCM0 hchild) hbad] |
| 230 | · obtain ⟨hv,hp,hq⟩ := E.exactPacket_bad_low_bounds m hm J support hSupport B residual k hk |
| 231 | G hball hs hδ hδ1 ev ep CM CH Kupper herr t (le_of_not_ge ht) x (hCM t x) (hCH t x) (hupper t x) |
| 232 | refine ⟨hv.trans ?_,hp.trans ?_,fun z => (hq z).trans ?_⟩ |
| 233 | · nlinarith only [mul_nonneg hchild hgood] |
| 234 | · nlinarith only [mul_nonneg (mul_nonneg hCM0 hchild) hgood] |
| 235 | · apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) |
| 236 | nlinarith only [mul_nonneg (mul_nonneg (mul_nonneg hCM0 hchild) G.delta_nonneg) hgood] |
| 237 | |
| 238 | end EulerParentPacketFrames.Evolution |