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 #732 from s5-ns-smooth-1
Browse filesrefactor(NavierStokes/Smooth): 1 small module folded into the file that imports it (−42.8%, measured)
Checks
challenge Program · challenge files and build config
Details
+57 −1 NavierStokes/SmoothExponentialMomentMatrix.lean View file
| @@ -1,4 +1,7 @@ | ||
| 1 | -import NavierStokes.SmoothPowerMomentMatrix | |
| 1 | +import NavierStokes.PowerMomentMatrix | |
| 2 | +import NavierStokes.ParametricRephase | |
| 3 | +import Mathlib.Analysis.SpecialFunctions.Pow.Deriv | |
| 4 | +import Mathlib.Analysis.Matrix.Normed | |
| 2 | 5 | import NavierStokes.ExponentialMomentMatrix |
| 3 | 6 | |
| 4 | 7 | /-! |
| @@ -10,6 +13,59 @@ matrix and its nonsingular inverse are smooth, with all fixed inverse jets | ||
| 10 | 13 | bounded on compact parameter sets. |
| 11 | 14 | -/ |
| 12 | 15 | |
| 16 | +/-! ## From `NavierStokes/SmoothPowerMomentMatrix.lean` | |
| 17 | + | |
| 18 | +The text of `NavierStokes/SmoothPowerMomentMatrix.lean`, folded into this file, which was its only importer. -/ | |
| 19 | + | |
| 20 | +section | |
| 21 | + | |
| 22 | +/-! | |
| 23 | +# Smooth families of actual power moment matrices | |
| 24 | + | |
| 25 | +The integration intervals may move with the parameter. Locally uniform compact | |
| 26 | +support is derived from their continuous endpoints. Smoothness of the integral | |
| 27 | +matrix and its actual inverse is then proved from the primitive data, and | |
| 28 | +compactness bounds every fixed parameter jet of that inverse. | |
| 29 | +-/ | |
| 30 | + | |
| 31 | +noncomputable section | |
| 32 | + | |
| 33 | +open Set Filter Function MeasureTheory | |
| 34 | +open scoped Topology ContDiff Interval BigOperators Matrix.Norms.Elementwise | |
| 35 | + | |
| 36 | +namespace NavierStokes.SmoothPowerMomentMatrix | |
| 37 | + | |
| 38 | +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 39 | + | |
| 40 | +/-- Primitive smooth data for separated positive bump moments. Endpoint | |
| 41 | +continuity suffices; in particular smoothly moving intervals are allowed. -/ | |
| 42 | +structure Family (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 43 | + (n : ℕ) (U : Set E) where | |
| 44 | + exponent : E → Fin n → ℝ | |
| 45 | + lower : E → Fin n → ℝ | |
| 46 | + upper : E → Fin n → ℝ | |
| 47 | + bump : E → Fin n → ℝ → ℝ | |
| 48 | + exponent_smooth : ∀ i, ContDiffOn ℝ ∞ (fun p => exponent p i) U | |
| 49 | + lower_continuous : ∀ j, ContinuousOn (fun p => lower p j) U | |
| 50 | + upper_continuous : ∀ j, ContinuousOn (fun p => upper p j) U | |
| 51 | + bump_smooth : ∀ j, ContDiffOn ℝ ∞ (fun z : E × ℝ => bump z.1 j z.2) (U ×ˢ univ) | |
| 52 | + exponent_injective : ∀ p ∈ U, Injective (exponent p) | |
| 53 | + lower_pos : ∀ p ∈ U, ∀ j, 0 < lower p j | |
| 54 | + separated : ∀ p ∈ U, ∀ i j, i < j → upper p i < lower p j | |
| 55 | + bump_nonnegative : ∀ p ∈ U, ∀ j t, 0 ≤ bump p j t | |
| 56 | + bump_nonzero : ∀ p ∈ U, ∀ j, ∃ t, bump p j t ≠ 0 | |
| 57 | + bump_support : ∀ p ∈ U, ∀ j, support (bump p j) ⊆ Icc (lower p j) (upper p j) | |
| 58 | + | |
| 59 | +namespace Family | |
| 60 | + | |
| 61 | +variable {n : ℕ} {U : Set E} (D : Family E n U) | |
| 62 | + | |
| 63 | +end Family | |
| 64 | +end NavierStokes.SmoothPowerMomentMatrix | |
| 65 | +end | |
| 66 | + | |
| 67 | +end | |
| 68 | + | |
| 13 | 69 | noncomputable section |
| 14 | 70 | |
| 15 | 71 | open Set Filter Function MeasureTheory |
+0 −48 NavierStokes/SmoothPowerMomentMatrix.lean deleted
| @@ -1,48 +0,0 @@ | ||
| 1 | -import NavierStokes.PowerMomentMatrix | |
| 2 | -import NavierStokes.ParametricRephase | |
| 3 | -import Mathlib.Analysis.SpecialFunctions.Pow.Deriv | |
| 4 | -import Mathlib.Analysis.Matrix.Normed | |
| 5 | - | |
| 6 | -/-! | |
| 7 | -# Smooth families of actual power moment matrices | |
| 8 | - | |
| 9 | -The integration intervals may move with the parameter. Locally uniform compact | |
| 10 | -support is derived from their continuous endpoints. Smoothness of the integral | |
| 11 | -matrix and its actual inverse is then proved from the primitive data, and | |
| 12 | -compactness bounds every fixed parameter jet of that inverse. | |
| 13 | --/ | |
| 14 | - | |
| 15 | -noncomputable section | |
| 16 | - | |
| 17 | -open Set Filter Function MeasureTheory | |
| 18 | -open scoped Topology ContDiff Interval BigOperators Matrix.Norms.Elementwise | |
| 19 | - | |
| 20 | -namespace NavierStokes.SmoothPowerMomentMatrix | |
| 21 | - | |
| 22 | -variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 23 | - | |
| 24 | -/-- Primitive smooth data for separated positive bump moments. Endpoint | |
| 25 | -continuity suffices; in particular smoothly moving intervals are allowed. -/ | |
| 26 | -structure Family (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 27 | - (n : ℕ) (U : Set E) where | |
| 28 | - exponent : E → Fin n → ℝ | |
| 29 | - lower : E → Fin n → ℝ | |
| 30 | - upper : E → Fin n → ℝ | |
| 31 | - bump : E → Fin n → ℝ → ℝ | |
| 32 | - exponent_smooth : ∀ i, ContDiffOn ℝ ∞ (fun p => exponent p i) U | |
| 33 | - lower_continuous : ∀ j, ContinuousOn (fun p => lower p j) U | |
| 34 | - upper_continuous : ∀ j, ContinuousOn (fun p => upper p j) U | |
| 35 | - bump_smooth : ∀ j, ContDiffOn ℝ ∞ (fun z : E × ℝ => bump z.1 j z.2) (U ×ˢ univ) | |
| 36 | - exponent_injective : ∀ p ∈ U, Injective (exponent p) | |
| 37 | - lower_pos : ∀ p ∈ U, ∀ j, 0 < lower p j | |
| 38 | - separated : ∀ p ∈ U, ∀ i j, i < j → upper p i < lower p j | |
| 39 | - bump_nonnegative : ∀ p ∈ U, ∀ j t, 0 ≤ bump p j t | |
| 40 | - bump_nonzero : ∀ p ∈ U, ∀ j, ∃ t, bump p j t ≠ 0 | |
| 41 | - bump_support : ∀ p ∈ U, ∀ j, support (bump p j) ⊆ Icc (lower p j) (upper p j) | |
| 42 | - | |
| 43 | -namespace Family | |
| 44 | - | |
| 45 | -variable {n : ℕ} {U : Set E} (D : Family E n U) | |
| 46 | - | |
| 47 | -end Family | |
| 48 | -end NavierStokes.SmoothPowerMomentMatrix | |
+11 −0 routes/s5-ns-smooth-1/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-ns-smooth-1 | |
| 6 | + | |
| 7 | +One unit of S-5 in the family `NavierStokes/Smooth*`: `NavierStokes/SmoothPowerMomentMatrix.lean` (48 lines), whose only importer was `NavierStokes/SmoothExponentialMomentMatrix.lean`, is folded into that file. Its text moves in unchanged, under a heading that names where it came from and in a `section` of its own, before the file's own text; the file takes over its imports where the folded module's import line stood. The plan is `routes/s5-ns-smooth-1/plan.json`, and the tool and the page's section on statements are under `docs/s5-folding/`. | |
| 8 | + | |
| 9 | +## Next | |
| 10 | + | |
| 11 | +Push, open the pull request into `main`, and let `challenge` and `build` report on it; nothing is left to change here. | |
+9 −0 routes/s5-ns-smooth-1/plan.json added View file
| @@ -0,0 +1,9 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"NavierStokes/SmoothExponentialMomentMatrix.lean": [ | |
| 5 | +"NavierStokes/SmoothPowerMomentMatrix.lean", | |
| 6 | +"NavierStokes/SmoothExponentialMomentMatrix.lean" | |
| 7 | +] | |
| 8 | +} | |
| 9 | +} | |