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.CorrectionSourceRestriction |
| 2 | import Euler.InviscidCorrectionUniqueness |
| 3 | |
| 4 | /-! Actual inviscid corrections agree across compatible Sobolev levels. -/ |
| 5 | |
| 6 | /-! ## From `Euler/InviscidCorrectionRestriction.lean` |
| 7 | |
| 8 | The text of `Euler/InviscidCorrectionRestriction.lean`, folded into this file, which was its only importer. -/ |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Actual inviscid corrections agree across compatible Sobolev levels. -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace EulerInviscidCorrectionRestriction |
| 17 | |
| 18 | open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev |
| 19 | EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData |
| 20 | EulerCorrectionSourceRestriction EulerQuadraticSource EulerVolterraConvolution |
| 21 | EulerCorrectionStabilityBudget EulerInviscidCorrectionUniqueness |
| 22 | |
| 23 | variable (period : ℝ) [Fact (0 < period)] |
| 24 | |
| 25 | /-- The literal inviscid equation is preserved by lowering the actual Sobolev order. -/ |
| 26 | theorem inviscid_equation_restrict {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) |
| 27 | (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) |
| 28 | (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) |
| 29 | (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) |
| 30 | (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) |
| 31 | (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) |
| 32 | (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) |
| 33 | (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) |
| 34 | (u : C(Icc (0 : ℝ) T,SobolevSpace period ((q+1)+1))) |
| 35 | (hu : ∀ t (ht : t ∈ Ioo 0 T), |
| 36 | HasDerivAt (fun r => value period (extendPath T hT u r)) |
| 37 | (value period ((D.coefficients period (by omega : 6 ≤ q+1)).apply |
| 38 | ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩))) t) |
| 39 | (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 40 | HasDerivAt (fun r => value period (extendPath T hT |
| 41 | ((truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) u) r)) |
| 42 | (value period (((lowerData period D KG KL KQ hG hL hQ).coefficients period hq).apply |
| 43 | ⟨t,ht.1.le,ht.2.le⟩ (truncateOperator period (q+1) (u ⟨t,ht.1.le,ht.2.le⟩)))) t := by |
| 44 | have hs := congrArg (value period (q := q)) |
| 45 | (truncate_source period hq D KG KL KQ hG hL hQ ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩)) |
| 46 | rw [value_truncateOperator] at hs |
| 47 | exact (hu t ht).congr_deriv hs |
| 48 | |
| 49 | end EulerInviscidCorrectionRestriction |
| 50 | end |
| 51 | |
| 52 | end |
| 53 | |
| 54 | noncomputable section |
| 55 | |
| 56 | namespace EulerInviscidCorrectionCompatibility |
| 57 | |
| 58 | open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev |
| 59 | EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData |
| 60 | EulerCorrectionSourceRestriction EulerQuadraticSource EulerVolterraConvolution |
| 61 | EulerCorrectionStabilityBudget EulerInviscidCorrectionUniqueness |
| 62 | |
| 63 | variable (period : ℝ) [Fact (0 < period)] |
| 64 | |
| 65 | /-- Actual inviscid corrections constructed at neighboring Sobolev orders coincide after restriction. -/ |
| 66 | theorem inviscid_corrections_compatible {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) |
| 67 | (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) |
| 68 | (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) |
| 69 | (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) |
| 70 | (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) |
| 71 | (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) |
| 72 | (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) |
| 73 | (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) |
| 74 | (u : C(Icc (0 : ℝ) T,SobolevSpace period ((q+1)+1))) |
| 75 | (hu : ∀ t (ht : t ∈ Ioo 0 T), |
| 76 | HasDerivAt (fun r => value period (extendPath T hT u r)) |
| 77 | (value period ((D.coefficients period (by omega : 6 ≤ q+1)).apply |
| 78 | ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩))) t) |
| 79 | (B : StabilityBudget period hT (lowerData period D KG KL KQ hG hL hQ)) |
| 80 | (v : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) |
| 81 | (hv : ∀ t (ht : t ∈ Ioo 0 T), |
| 82 | HasDerivAt (fun r => value period (extendPath T hT v r)) |
| 83 | (value period (((lowerData period D KG KL KQ hG hL hQ).coefficients period hq).apply |
| 84 | ⟨t,ht.1.le,ht.2.le⟩ (v ⟨t,ht.1.le,ht.2.le⟩))) t) |
| 85 | (hi : truncateOperator period (q+1) (u ⟨0,le_rfl,hT⟩) = v ⟨0,le_rfl,hT⟩) |
| 86 | (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) |
| 87 | (hud : ∀ t, value period (u t) ∈ divergenceFreeSpace period D.κ D.direction) |
| 88 | (hvd : ∀ t, value period (v t) ∈ divergenceFreeSpace period D.κ D.direction) : |
| 89 | (truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) u = v := by |
| 90 | let w := (truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) u |
| 91 | apply inviscid_correction_unique period hq T hT (lowerData period D KG KL KQ hG hL hQ) B w v hi |
| 92 | · exact EulerInviscidCorrectionRestriction.inviscid_equation_restrict period hq T hT D KG KL KQ hG hL hQ u hu |
| 93 | · exact hv |
| 94 | · exact hz |
| 95 | · exact hud |
| 96 | · exact hvd |
| 97 | |
| 98 | end EulerInviscidCorrectionCompatibility |