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.InviscidSobolevEvolution |
| 2 | |
| 3 | /-! Adding the actual correction removes a genuine approximate-solution residual. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerCorrectionResidualCancellation |
| 8 | |
| 9 | open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace |
| 10 | EulerCorrectionOperators EulerQuadraticSource EulerVolterraConvolution |
| 11 | EulerInviscidSobolevEvolution EulerSobolevCoefficientPressure |
| 12 | open scoped Topology |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- The inherited Sobolev group structure for exact residual cancellation. -/ |
| 17 | local instance residualSobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance |
| 18 | /-- The inherited real Sobolev module structure for exact residual cancellation. -/ |
| 19 | local instance residualSobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance |
| 20 | |
| 21 | /-- The actual linear coefficient plus the full transport-and-algebraic quadratic nonlinearity. -/ |
| 22 | def nonlinearity {q : ℕ} {T : Type*} [TopologicalSpace T] |
| 23 | (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) |
| 24 | (u : SobolevSpace period (q+1)) : SobolevSpace period q := |
| 25 | coefficientSobolevOperator period (D.linear.jet t) (truncateOperator period q u) + |
| 26 | (D.coefficients period hq).quadratic t u u |
| 27 | |
| 28 | /-- The actual raw correction source is exactly the prescribed residual plus the full nonlinear increment about the prescribed approximation. -/ |
| 29 | theorem rawSource_eq_residual_increment {q : ℕ} {T : Type*} [TopologicalSpace T] |
| 30 | (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) (e : SobolevSpace period (q+1)) : |
| 31 | D.rawSource period hq t e = D.residual t + |
| 32 | nonlinearity period D hq t (D.approximation t+e) - |
| 33 | nonlinearity period D hq t (D.approximation t) := by |
| 34 | let B := (D.coefficients period hq).quadratic t |
| 35 | let A := (coefficientSobolevOperator period (D.linear.jet t)).comp (truncateOperator period q) |
| 36 | change D.residual t + linearize B A (D.approximation t) e + B e e = |
| 37 | D.residual t + (A (D.approximation t+e) + B (D.approximation t+e) (D.approximation t+e)) - |
| 38 | (A (D.approximation t) + B (D.approximation t) (D.approximation t)) |
| 39 | simp only [linearize_apply,map_add,add_apply] |
| 40 | abel |
| 41 | |
| 42 | /-- The signed approximate and correction equations cancel the residual and add their actual pressures. -/ |
| 43 | theorem residual_cancellation {q : ℕ} {T : Type*} [TopologicalSpace T] |
| 44 | (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) |
| 45 | (e : SobolevSpace period (q+1)) (pa : SobolevSpace period q) : |
| 46 | (D.residual t-nonlinearity period D hq t (D.approximation t)- |
| 47 | coefficientSobolevOperator period (D.metric.jet t) pa) + |
| 48 | (-D.rawSource period hq t e- |
| 49 | coefficientSobolevOperator period (D.metric.jet t) (D.pressure period hq t e)) = |
| 50 | -nonlinearity period D hq t (D.approximation t+e)- |
| 51 | coefficientSobolevOperator period (D.metric.jet t) (pa+D.pressure period hq t e) := by |
| 52 | rw [rawSource_eq_residual_increment period D hq t e,map_add] |
| 53 | abel |
| 54 | |
| 55 | /-- The actual continuous corrected path is the prescribed approximation plus the constructed error. -/ |
| 56 | def correctedPath {q : ℕ} {T : ℝ} (D : CorrectionData period q (Icc (0 : ℝ) T)) |
| 57 | (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) : |
| 58 | C(Icc (0 : ℝ) T,SobolevSpace period (q+1)) := D.approximation+e |
| 59 | |
| 60 | /-- A zero initial correction preserves the actual initial field. -/ |
| 61 | theorem correctedPath_initial {q : ℕ} (T : ℝ) (hT : 0 ≤ T) |
| 62 | (D : CorrectionData period q (Icc (0 : ℝ) T)) |
| 63 | (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) (he : e ⟨0,le_rfl,hT⟩=0) : |
| 64 | correctedPath period D e ⟨0,le_rfl,hT⟩=D.approximation ⟨0,le_rfl,hT⟩ := by |
| 65 | change D.approximation ⟨0,le_rfl,hT⟩+e ⟨0,le_rfl,hT⟩=_ |
| 66 | rw [he,add_zero] |
| 67 | |
| 68 | /-- The corrected path retains the genuine lifted divergence constraint by addition in its closed subspace. -/ |
| 69 | theorem correctedPath_divergenceFree {q : ℕ} {T : ℝ} |
| 70 | (D : CorrectionData period q (Icc (0 : ℝ) T)) |
| 71 | (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) |
| 72 | (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) |
| 73 | (he : ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) (t : Icc (0 : ℝ) T) : |
| 74 | value period (correctedPath period D e t) ∈ divergenceFreeSpace period D.κ D.direction := |
| 75 | (divergenceFreeSpace period D.κ D.direction).add_mem (hz t) (he t) |
| 76 | |
| 77 | /-- Adding a genuine approximate pressure to the actual correction pressure preserves membership in the lifted gradient space. -/ |
| 78 | theorem corrected_pressure_mem_gradient {q : ℕ} {T : Type*} [TopologicalSpace T] |
| 79 | (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) |
| 80 | (e : SobolevSpace period (q+1)) (pa : SobolevSpace period q) |
| 81 | (hpa : value period pa ∈ gradientSpace period D.κ D.direction) : |
| 82 | value period (pa+D.pressure period hq t e) ∈ gradientSpace period D.κ D.direction := |
| 83 | (gradientSpace period D.κ D.direction).add_mem hpa (D.pressure_mem_gradient period hq t e) |
| 84 | |
| 85 | /-- Actual approximate and correction derivatives give the zero-residual nonlinear equation for their sum, with the sum of their genuine pressures. -/ |
| 86 | theorem correctedPath_hasDerivAt {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) |
| 87 | (D : CorrectionData period q (Icc (0 : ℝ) T)) |
| 88 | (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) |
| 89 | (pa : C(Icc (0 : ℝ) T,SobolevSpace period q)) (t : ℝ) (ht : t ∈ Ioo 0 T) |
| 90 | (hz : HasDerivAt (fun r => truncateOperator period q (extendPath T hT D.approximation r)) |
| 91 | (D.residual ⟨t,ht.1.le,ht.2.le⟩- |
| 92 | nonlinearity period D hq ⟨t,ht.1.le,ht.2.le⟩ (D.approximation ⟨t,ht.1.le,ht.2.le⟩)- |
| 93 | coefficientSobolevOperator period (D.metric.jet ⟨t,ht.1.le,ht.2.le⟩) (pa ⟨t,ht.1.le,ht.2.le⟩)) t) |
| 94 | (he : HasDerivAt (fun r => truncateOperator period q (extendPath T hT e r)) |
| 95 | (-D.rawSource period hq ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩)- |
| 96 | coefficientSobolevOperator period (D.metric.jet ⟨t,ht.1.le,ht.2.le⟩) |
| 97 | (D.pressure period hq ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩))) t) : |
| 98 | HasDerivAt (fun r => truncateOperator period q (extendPath T hT (correctedPath period D e) r)) |
| 99 | (-nonlinearity period D hq ⟨t,ht.1.le,ht.2.le⟩ (correctedPath period D e ⟨t,ht.1.le,ht.2.le⟩)- |
| 100 | coefficientSobolevOperator period (D.metric.jet ⟨t,ht.1.le,ht.2.le⟩) |
| 101 | (pa ⟨t,ht.1.le,ht.2.le⟩+D.pressure period hq ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩))) t := by |
| 102 | have h := (hz.add he).congr_deriv |
| 103 | (residual_cancellation period D hq ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩) (pa ⟨t,ht.1.le,ht.2.le⟩)) |
| 104 | convert h using 1 <;> rfl |
| 105 | |
| 106 | end EulerCorrectionResidualCancellation |