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 #725 from s5-ns-reference-1
Browse filesrefactor(NavierStokes/Reference): 2 small modules folded into the file that imports them (−64.4%, measured)
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+85 −1 NavierStokes/ReferenceEndpointRate.lean View file
| @@ -1,8 +1,92 @@ | ||
| 1 | -import NavierStokes.ReferenceUniformStocks | |
| 1 | +import NavierStokes.TransitionRamp | |
| 2 | +import Mathlib.MeasureTheory.Integral.IntervalIntegral.IntegrationByParts | |
| 3 | +import NavierStokes.ClosedIntervalJetAlgebra | |
| 2 | 4 | import NavierStokes.AppendixJoiningResults |
| 3 | 5 | |
| 4 | 6 | /-! # The literal linear joining-width estimate at the actual held endpoint -/ |
| 5 | 7 | |
| 8 | +/-! ## From `NavierStokes/ReferenceUniformJets.lean` | |
| 9 | + | |
| 10 | +The text of `NavierStokes/ReferenceUniformJets.lean`, folded into this file, which was its only importer. -/ | |
| 11 | + | |
| 12 | +section | |
| 13 | + | |
| 14 | +/-! # Uniform parameter jets of the actual reference continuation -/ | |
| 15 | + | |
| 16 | +noncomputable section | |
| 17 | + | |
| 18 | +namespace NavierStokes.ReferenceUniformJets | |
| 19 | + | |
| 20 | +open Set Filter MeasureTheory ProfileHistories ReferencePath | |
| 21 | +open scoped Topology ContDiff | |
| 22 | + | |
| 23 | +section NaturalReference | |
| 24 | + | |
| 25 | +open NaturalProfile NaturalAxisCoefficients TransitionRamp | |
| 26 | + | |
| 27 | +variable {h j σ Λ : ℝ} {P0 : ℝ → ℝ} (d : AnalyticInputs h j σ P0) | |
| 28 | + | |
| 29 | + | |
| 30 | +end NaturalReference | |
| 31 | + | |
| 32 | +end NavierStokes.ReferenceUniformJets | |
| 33 | +end | |
| 34 | + | |
| 35 | +end | |
| 36 | + | |
| 37 | +/-! ## From `NavierStokes/ReferenceUniformStocks.lean` | |
| 38 | + | |
| 39 | +The text of `NavierStokes/ReferenceUniformStocks.lean`, folded into this file, which was its only importer. -/ | |
| 40 | + | |
| 41 | +section | |
| 42 | + | |
| 43 | +/-! # Reference history and stock bounds chosen before amplitude and width -/ | |
| 44 | + | |
| 45 | +noncomputable section | |
| 46 | + | |
| 47 | +namespace NavierStokes.ReferenceUniformStocks | |
| 48 | + | |
| 49 | +open Set Filter MeasureTheory ProfileHistories ReferencePath | |
| 50 | +open ReferenceUniformJets ClosedIntervalJetAlgebra | |
| 51 | +open scoped Topology ContDiff | |
| 52 | + | |
| 53 | +namespace Uniform | |
| 54 | + | |
| 55 | +variable {ι κ : Type*} {k : ℕ} {F G : ι → ℝ → ℝ} | |
| 56 | + | |
| 57 | +end Uniform | |
| 58 | + | |
| 59 | +section ActualReference | |
| 60 | + | |
| 61 | +open NaturalProfile | |
| 62 | + | |
| 63 | +variable {h j σ Λ : ℝ} {P0 : ℝ → ℝ} | |
| 64 | + (d : NaturalAxisCoefficients.AnalyticInputs h j σ P0) | |
| 65 | + | |
| 66 | +/-- All amplitudes and all admissible cutoff widths are quantified together. -/ | |
| 67 | +structure Choice (Λ : ℝ) where | |
| 68 | + C : ℝ | |
| 69 | + C_ge_one : 1 ≤ C | |
| 70 | + profile : NaturalEntrance.CoefficientProfile d Λ C | |
| 71 | + δ : ℝ | |
| 72 | + δ_pos : 0 < δ | |
| 73 | + δ_lt : 2*δ < rampLimit | |
| 74 | + | |
| 75 | +namespace Choice | |
| 76 | + | |
| 77 | +variable {d} | |
| 78 | + | |
| 79 | +end Choice | |
| 80 | + | |
| 81 | +variable (hΛ : 0 < Λ) (hP0 : ContDiff ℝ ∞ P0) | |
| 82 | + | |
| 83 | +end ActualReference | |
| 84 | + | |
| 85 | +end NavierStokes.ReferenceUniformStocks | |
| 86 | +end | |
| 87 | + | |
| 88 | +end | |
| 89 | + | |
| 6 | 90 | noncomputable section |
| 7 | 91 | |
| 8 | 92 | namespace NavierStokes.ReferenceEndpointRate |
+0 −22 NavierStokes/ReferenceUniformJets.lean deleted
| @@ -1,22 +0,0 @@ | ||
| 1 | -import NavierStokes.TransitionRamp | |
| 2 | -import Mathlib.MeasureTheory.Integral.IntervalIntegral.IntegrationByParts | |
| 3 | - | |
| 4 | -/-! # Uniform parameter jets of the actual reference continuation -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace NavierStokes.ReferenceUniformJets | |
| 9 | - | |
| 10 | -open Set Filter MeasureTheory ProfileHistories ReferencePath | |
| 11 | -open scoped Topology ContDiff | |
| 12 | - | |
| 13 | -section NaturalReference | |
| 14 | - | |
| 15 | -open NaturalProfile NaturalAxisCoefficients TransitionRamp | |
| 16 | - | |
| 17 | -variable {h j σ Λ : ℝ} {P0 : ℝ → ℝ} (d : AnalyticInputs h j σ P0) | |
| 18 | - | |
| 19 | - | |
| 20 | -end NaturalReference | |
| 21 | - | |
| 22 | -end NavierStokes.ReferenceUniformJets | |
+0 −46 NavierStokes/ReferenceUniformStocks.lean deleted
| @@ -1,46 +0,0 @@ | ||
| 1 | -import NavierStokes.ReferenceUniformJets | |
| 2 | -import NavierStokes.ClosedIntervalJetAlgebra | |
| 3 | - | |
| 4 | -/-! # Reference history and stock bounds chosen before amplitude and width -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace NavierStokes.ReferenceUniformStocks | |
| 9 | - | |
| 10 | -open Set Filter MeasureTheory ProfileHistories ReferencePath | |
| 11 | -open ReferenceUniformJets ClosedIntervalJetAlgebra | |
| 12 | -open scoped Topology ContDiff | |
| 13 | - | |
| 14 | -namespace Uniform | |
| 15 | - | |
| 16 | -variable {ι κ : Type*} {k : ℕ} {F G : ι → ℝ → ℝ} | |
| 17 | - | |
| 18 | -end Uniform | |
| 19 | - | |
| 20 | -section ActualReference | |
| 21 | - | |
| 22 | -open NaturalProfile | |
| 23 | - | |
| 24 | -variable {h j σ Λ : ℝ} {P0 : ℝ → ℝ} | |
| 25 | - (d : NaturalAxisCoefficients.AnalyticInputs h j σ P0) | |
| 26 | - | |
| 27 | -/-- All amplitudes and all admissible cutoff widths are quantified together. -/ | |
| 28 | -structure Choice (Λ : ℝ) where | |
| 29 | - C : ℝ | |
| 30 | - C_ge_one : 1 ≤ C | |
| 31 | - profile : NaturalEntrance.CoefficientProfile d Λ C | |
| 32 | - δ : ℝ | |
| 33 | - δ_pos : 0 < δ | |
| 34 | - δ_lt : 2*δ < rampLimit | |
| 35 | - | |
| 36 | -namespace Choice | |
| 37 | - | |
| 38 | -variable {d} | |
| 39 | - | |
| 40 | -end Choice | |
| 41 | - | |
| 42 | -variable (hΛ : 0 < Λ) (hP0 : ContDiff ℝ ∞ P0) | |
| 43 | - | |
| 44 | -end ActualReference | |
| 45 | - | |
| 46 | -end NavierStokes.ReferenceUniformStocks | |
+11 −0 routes/s5-ns-reference-1/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-ns-reference-1 | |
| 6 | + | |
| 7 | +One unit of S-5 (#14): the `NavierStokes/Reference*` family. Two small modules are folded, text unchanged, into the one file that imported them, `NavierStokes/ReferenceEndpointRate.lean`: `ReferenceUniformJets.lean` (22 lines) and `ReferenceUniformStocks.lean` (46 lines). `ReferenceEndpointRate` imported `ReferenceUniformStocks`, which imported `ReferenceUniformJets`, and nothing else imported either, so the three were always used together. `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 the maintainer's verdict on whether this kind of change is wanted; the rest of the series' folds wait on it, one family per pull request. | |
+10 −0 routes/s5-ns-reference-1/plan.json added View file
| @@ -0,0 +1,10 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"NavierStokes/ReferenceEndpointRate.lean": [ | |
| 5 | +"NavierStokes/ReferenceUniformJets.lean", | |
| 6 | +"NavierStokes/ReferenceUniformStocks.lean", | |
| 7 | +"NavierStokes/ReferenceEndpointRate.lean" | |
| 8 | +] | |
| 9 | +} | |
| 10 | +} | |