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

Merge pull request #689 from s5-euler-inviscid-1
Browse filesrefactor(Euler/Inviscid): 2 small modules folded into the file that imports them (−11.7%, measured)
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+49 −1 Euler/InviscidCorrectionCompatibility.lean View file
| @@ -1,8 +1,56 @@ | ||
| 1 | -import Euler.InviscidCorrectionRestriction | |
| 1 | +import Euler.CorrectionSourceRestriction | |
| 2 | 2 | import Euler.InviscidCorrectionUniqueness |
| 3 | 3 | |
| 4 | 4 | /-! Actual inviscid corrections agree across compatible Sobolev levels. -/ |
| 5 | 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 | + | |
| 6 | 54 | noncomputable section |
| 7 | 55 | |
| 8 | 56 | namespace EulerInviscidCorrectionCompatibility |
+0 −41 Euler/InviscidCorrectionRestriction.lean deleted
| @@ -1,41 +0,0 @@ | ||
| 1 | -import Euler.CorrectionSourceRestriction | |
| 2 | -import Euler.InviscidCorrectionUniqueness | |
| 3 | - | |
| 4 | -/-! Actual inviscid corrections agree across compatible Sobolev levels. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerInviscidCorrectionRestriction | |
| 9 | - | |
| 10 | -open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | - EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 12 | - EulerCorrectionSourceRestriction EulerQuadraticSource EulerVolterraConvolution | |
| 13 | - EulerCorrectionStabilityBudget EulerInviscidCorrectionUniqueness | |
| 14 | - | |
| 15 | -variable (period : ℝ) [Fact (0 < period)] | |
| 16 | - | |
| 17 | -/-- The literal inviscid equation is preserved by lowering the actual Sobolev order. -/ | |
| 18 | -theorem inviscid_equation_restrict {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 19 | - (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 20 | - (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 21 | - (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 22 | - (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 23 | - (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 24 | - (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 25 | - (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 26 | - (u : C(Icc (0 : ℝ) T,SobolevSpace period ((q+1)+1))) | |
| 27 | - (hu : ∀ t (ht : t ∈ Ioo 0 T), | |
| 28 | - HasDerivAt (fun r => value period (extendPath T hT u r)) | |
| 29 | - (value period ((D.coefficients period (by omega : 6 ≤ q+1)).apply | |
| 30 | - ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩))) t) | |
| 31 | - (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 32 | - HasDerivAt (fun r => value period (extendPath T hT | |
| 33 | - ((truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) u) r)) | |
| 34 | - (value period (((lowerData period D KG KL KQ hG hL hQ).coefficients period hq).apply | |
| 35 | - ⟨t,ht.1.le,ht.2.le⟩ (truncateOperator period (q+1) (u ⟨t,ht.1.le,ht.2.le⟩)))) t := by | |
| 36 | - have hs := congrArg (value period (q := q)) | |
| 37 | - (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⟩)) | |
| 38 | - rw [value_truncateOperator] at hs | |
| 39 | - exact (hu t ht).congr_deriv hs | |
| 40 | - | |
| 41 | -end EulerInviscidCorrectionRestriction | |
+43 −1 Euler/InviscidCorrectionUniqueness.lean View file
| @@ -1,8 +1,50 @@ | ||
| 1 | 1 | import Euler.CorrectionStabilityBudget |
| 2 | -import Euler.InviscidDifferencePDE | |
| 2 | +import Euler.CorrectionDifferencePDE | |
| 3 | 3 | |
| 4 | 4 | /-! Uniqueness of the actual finite-order inviscid correction equation. -/ |
| 5 | 5 | |
| 6 | +/-! ## From `Euler/InviscidDifferencePDE.lean` | |
| 7 | + | |
| 8 | +The text of `Euler/InviscidDifferencePDE.lean`, folded into this file, which was its only importer. -/ | |
| 9 | + | |
| 10 | +section | |
| 11 | + | |
| 12 | +/-! The literal difference equation of two actual inviscid corrections. -/ | |
| 13 | + | |
| 14 | +noncomputable section | |
| 15 | + | |
| 16 | +namespace EulerInviscidDifferencePDE | |
| 17 | + | |
| 18 | +open Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCorrectionOperators | |
| 19 | + EulerCorrectionDifferencePDE EulerVolterraConvolution | |
| 20 | + | |
| 21 | +variable (period : ℝ) [Fact (0 < period)] | |
| 22 | + | |
| 23 | +/-- Subtracting the actual inviscid correction equations gives the zero-viscosity difference equation. -/ | |
| 24 | +theorem inviscid_difference_hasDerivAt {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 25 | + (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 26 | + (u v : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) | |
| 27 | + (hu : ∀ t (ht : t ∈ Ioo 0 T), | |
| 28 | + HasDerivAt (fun r => value period (extendPath T hT u r)) | |
| 29 | + (value period ((D.coefficients period hq).apply ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩))) t) | |
| 30 | + (hv : ∀ t (ht : t ∈ Ioo 0 T), | |
| 31 | + HasDerivAt (fun r => value period (extendPath T hT v r)) | |
| 32 | + (value period ((D.coefficients period hq).apply ⟨t,ht.1.le,ht.2.le⟩ (v ⟨t,ht.1.le,ht.2.le⟩))) t) | |
| 33 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 34 | + HasDerivAt (fun r => value period (extendPath T hT u r)-value period (extendPath T hT v r)) | |
| 35 | + (differenceRhs period D hq 0 0 ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩) (v ⟨t,ht.1.le,ht.2.le⟩)) t := by | |
| 36 | + have hd := (hu t ht).sub (hv t ht) | |
| 37 | + rw [D.source_value period hq,D.source_value period hq] at hd | |
| 38 | + apply hd.congr_deriv | |
| 39 | + have he := differenceRhs_eq_sub period D hq 0 0 ⟨t,ht.1.le,ht.2.le⟩ | |
| 40 | + (u ⟨t,ht.1.le,ht.2.le⟩) (v ⟨t,ht.1.le,ht.2.le⟩) | |
| 41 | + simpa only [zero_smul,zero_sub] using he.symm | |
| 42 | + | |
| 43 | +end EulerInviscidDifferencePDE | |
| 44 | +end | |
| 45 | + | |
| 46 | +end | |
| 47 | + | |
| 6 | 48 | noncomputable section |
| 7 | 49 | |
| 8 | 50 | namespace EulerInviscidCorrectionUniqueness |
+0 −34 Euler/InviscidDifferencePDE.lean deleted
| @@ -1,34 +0,0 @@ | ||
| 1 | -import Euler.CorrectionDifferencePDE | |
| 2 | - | |
| 3 | -/-! The literal difference equation of two actual inviscid corrections. -/ | |
| 4 | - | |
| 5 | -noncomputable section | |
| 6 | - | |
| 7 | -namespace EulerInviscidDifferencePDE | |
| 8 | - | |
| 9 | -open Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCorrectionOperators | |
| 10 | - EulerCorrectionDifferencePDE EulerVolterraConvolution | |
| 11 | - | |
| 12 | -variable (period : ℝ) [Fact (0 < period)] | |
| 13 | - | |
| 14 | -/-- Subtracting the actual inviscid correction equations gives the zero-viscosity difference equation. -/ | |
| 15 | -theorem inviscid_difference_hasDerivAt {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 16 | - (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 17 | - (u v : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) | |
| 18 | - (hu : ∀ t (ht : t ∈ Ioo 0 T), | |
| 19 | - HasDerivAt (fun r => value period (extendPath T hT u r)) | |
| 20 | - (value period ((D.coefficients period hq).apply ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩))) t) | |
| 21 | - (hv : ∀ t (ht : t ∈ Ioo 0 T), | |
| 22 | - HasDerivAt (fun r => value period (extendPath T hT v r)) | |
| 23 | - (value period ((D.coefficients period hq).apply ⟨t,ht.1.le,ht.2.le⟩ (v ⟨t,ht.1.le,ht.2.le⟩))) t) | |
| 24 | - (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 25 | - HasDerivAt (fun r => value period (extendPath T hT u r)-value period (extendPath T hT v r)) | |
| 26 | - (differenceRhs period D hq 0 0 ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩) (v ⟨t,ht.1.le,ht.2.le⟩)) t := by | |
| 27 | - have hd := (hu t ht).sub (hv t ht) | |
| 28 | - rw [D.source_value period hq,D.source_value period hq] at hd | |
| 29 | - apply hd.congr_deriv | |
| 30 | - have he := differenceRhs_eq_sub period D hq 0 0 ⟨t,ht.1.le,ht.2.le⟩ | |
| 31 | - (u ⟨t,ht.1.le,ht.2.le⟩) (v ⟨t,ht.1.le,ht.2.le⟩) | |
| 32 | - simpa only [zero_smul,zero_sub] using he.symm | |
| 33 | - | |
| 34 | -end EulerInviscidDifferencePDE | |
+11 −0 routes/s5-euler-inviscid-1/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-euler-inviscid-1 | |
| 6 | + | |
| 7 | +One unit of S-5 (#14): the `Euler/Inviscid*` family. Two small modules that exactly one file each imported are folded, text unchanged, into that file: `InviscidCorrectionCompatibility.lean` takes `InviscidCorrectionRestriction.lean`, and `InviscidCorrectionUniqueness.lean` takes `InviscidDifferencePDE.lean`. `plan.json` is here; the tool that does the fold and its pages are in `docs/s5-folding`. | |
| 8 | + | |
| 9 | +## Next | |
| 10 | + | |
| 11 | +The pull request is open. What comes next is `challenge` and `build` on its head, then the maintainer's verdict. If it is taken in, the family is done for this series; the other families wait for it, one per pull request. | |
+13 −0 routes/s5-euler-inviscid-1/plan.json added View file
| @@ -0,0 +1,13 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"Euler/InviscidCorrectionCompatibility.lean": [ | |
| 5 | +"Euler/InviscidCorrectionRestriction.lean", | |
| 6 | +"Euler/InviscidCorrectionCompatibility.lean" | |
| 7 | +], | |
| 8 | +"Euler/InviscidCorrectionUniqueness.lean": [ | |
| 9 | +"Euler/InviscidDifferencePDE.lean", | |
| 10 | +"Euler/InviscidCorrectionUniqueness.lean" | |
| 11 | +] | |
| 12 | +} | |
| 13 | +} | |