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 #723 from s5-ns-actual-1
Browse filesrefactor(NavierStokes/Actual): 1 small module folded into the file that imports it (−17.2%, measured)
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −52 NavierStokes/ActualCycleGeometry.lean deleted
| @@ -1,52 +0,0 @@ | ||
| 1 | -import NavierStokes.ActualInitialization | |
| 2 | -import NavierStokes.ActualCycleExcluded | |
| 3 | - | |
| 4 | -/-! | |
| 5 | -# The actual fixed geometry for every correction cycle | |
| 6 | - | |
| 7 | -The numerical data, strip, gauge, and operators below are the ones used by | |
| 8 | -`ActualInitialization`. In particular, compatibility with the excluded-alias | |
| 9 | -estimates is proved independently of the particular and signed wave choices. | |
| 10 | --/ | |
| 11 | - | |
| 12 | -noncomputable section | |
| 13 | - | |
| 14 | -namespace NavierStokes.ActualCycleGeometry | |
| 15 | - | |
| 16 | -open CorrectionInitialization CorrectionStep WeightedClasses | |
| 17 | - | |
| 18 | -abbrev Point := ActualInitialization.Point | |
| 19 | - | |
| 20 | -/-- Initialization supplies all numerical hypotheses of the similarity | |
| 21 | -estimates, including the actual finite-window common index. -/ | |
| 22 | -noncomputable def similarityData : ActualCycleExcluded.SimilarityData where | |
| 23 | - h := ActualPrimary.h | |
| 24 | - h_pos := ActualPrimary.outgoing.data.h_pos | |
| 25 | - inner := PrimaryTargetBounds.leftRadius ActualPrimary.nominal | |
| 26 | - outer := PrimaryTargetBounds.rightRadius ActualPrimary.nominal | |
| 27 | - inner_pos := PrimaryTargetBounds.leftRadius_pos ActualPrimary.nominal | |
| 28 | - inner_lt_outer := PrimaryTargetBounds.radii_ordered ActualPrimary.nominal | |
| 29 | - leftWeight := FinalSlowBase.edgeExponent ActualPrimary.nominal / 4 | |
| 30 | - rightWeight := 1 | |
| 31 | - left_pos := div_pos (FinalSlowBase.edgeExponent_pos ActualPrimary.nominal) (by norm_num) | |
| 32 | - right_pos := zero_lt_one | |
| 33 | - baseScale := 1 | |
| 34 | - baseScale_ne := one_ne_zero | |
| 35 | - region := ActualPrimary.standardRegion | |
| 36 | - index := CommonWindow.index ActualPrimary.h | |
| 37 | - gap := CommonWindow.gap ActualPrimary.h | |
| 38 | - index_lower := CommonWindow.native_le_index_add ActualPrimary.h ActualPrimary.outgoing.data.h_pos.le | |
| 39 | - index_upper := fun n => (CommonWindow.index_le_native ActualPrimary.h n).trans (Nat.le_add_right _ _) | |
| 40 | - slow := BaseContextAssembly.slowScale | |
| 41 | - slow_one := BaseContextAssembly.one_le_slowScale | |
| 42 | - slow_scale := fun _ => le_max_right _ _ | |
| 43 | - | |
| 44 | -/-- The normalization factor is exactly one, so the similarity gauge agrees | |
| 45 | -with the common reconstruction used by initialization. -/ | |
| 46 | -theorem gauge_eq : similarityData.gauge = ActualPrimary.commonGauge := | |
| 47 | - ActualInitialCoherence.commonGauge_eq_similarity.symm | |
| 48 | - | |
| 49 | -theorem gauge_eq_geometry : similarityData.gauge = ActualInitialization.geometry.gauge := | |
| 50 | - gauge_eq | |
| 51 | - | |
| 52 | -end NavierStokes.ActualCycleGeometry | |
+60 −1 NavierStokes/ActualCycleParameters.lean View file
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | import NavierStokes.ActualInitialization |
| 2 | 2 | import NavierStokes.ActualParticularStageControls |
| 3 | 3 | import NavierStokes.ActualSignedStageControls |
| 4 | -import NavierStokes.ActualCycleGeometry | |
| 4 | +import NavierStokes.ActualCycleExcluded | |
| 5 | 5 | |
| 6 | 6 | /-! |
| 7 | 7 | # Literal cycle parameters on the initialized labels |
| @@ -17,6 +17,65 @@ It does not assume or assert the analytic preservation of a correction | ||
| 17 | 17 | cycle. |
| 18 | 18 | -/ |
| 19 | 19 | |
| 20 | +/-! ## From `NavierStokes/ActualCycleGeometry.lean` | |
| 21 | + | |
| 22 | +The text of `NavierStokes/ActualCycleGeometry.lean`, folded into this file, which was its only importer. -/ | |
| 23 | + | |
| 24 | +section | |
| 25 | + | |
| 26 | +/-! | |
| 27 | +# The actual fixed geometry for every correction cycle | |
| 28 | + | |
| 29 | +The numerical data, strip, gauge, and operators below are the ones used by | |
| 30 | +`ActualInitialization`. In particular, compatibility with the excluded-alias | |
| 31 | +estimates is proved independently of the particular and signed wave choices. | |
| 32 | +-/ | |
| 33 | + | |
| 34 | +noncomputable section | |
| 35 | + | |
| 36 | +namespace NavierStokes.ActualCycleGeometry | |
| 37 | + | |
| 38 | +open CorrectionInitialization CorrectionStep WeightedClasses | |
| 39 | + | |
| 40 | +abbrev Point := ActualInitialization.Point | |
| 41 | + | |
| 42 | +/-- Initialization supplies all numerical hypotheses of the similarity | |
| 43 | +estimates, including the actual finite-window common index. -/ | |
| 44 | +noncomputable def similarityData : ActualCycleExcluded.SimilarityData where | |
| 45 | + h := ActualPrimary.h | |
| 46 | + h_pos := ActualPrimary.outgoing.data.h_pos | |
| 47 | + inner := PrimaryTargetBounds.leftRadius ActualPrimary.nominal | |
| 48 | + outer := PrimaryTargetBounds.rightRadius ActualPrimary.nominal | |
| 49 | + inner_pos := PrimaryTargetBounds.leftRadius_pos ActualPrimary.nominal | |
| 50 | + inner_lt_outer := PrimaryTargetBounds.radii_ordered ActualPrimary.nominal | |
| 51 | + leftWeight := FinalSlowBase.edgeExponent ActualPrimary.nominal / 4 | |
| 52 | + rightWeight := 1 | |
| 53 | + left_pos := div_pos (FinalSlowBase.edgeExponent_pos ActualPrimary.nominal) (by norm_num) | |
| 54 | + right_pos := zero_lt_one | |
| 55 | + baseScale := 1 | |
| 56 | + baseScale_ne := one_ne_zero | |
| 57 | + region := ActualPrimary.standardRegion | |
| 58 | + index := CommonWindow.index ActualPrimary.h | |
| 59 | + gap := CommonWindow.gap ActualPrimary.h | |
| 60 | + index_lower := CommonWindow.native_le_index_add ActualPrimary.h ActualPrimary.outgoing.data.h_pos.le | |
| 61 | + index_upper := fun n => (CommonWindow.index_le_native ActualPrimary.h n).trans (Nat.le_add_right _ _) | |
| 62 | + slow := BaseContextAssembly.slowScale | |
| 63 | + slow_one := BaseContextAssembly.one_le_slowScale | |
| 64 | + slow_scale := fun _ => le_max_right _ _ | |
| 65 | + | |
| 66 | +/-- The normalization factor is exactly one, so the similarity gauge agrees | |
| 67 | +with the common reconstruction used by initialization. -/ | |
| 68 | +theorem gauge_eq : similarityData.gauge = ActualPrimary.commonGauge := | |
| 69 | + ActualInitialCoherence.commonGauge_eq_similarity.symm | |
| 70 | + | |
| 71 | +theorem gauge_eq_geometry : similarityData.gauge = ActualInitialization.geometry.gauge := | |
| 72 | + gauge_eq | |
| 73 | + | |
| 74 | +end NavierStokes.ActualCycleGeometry | |
| 75 | +end | |
| 76 | + | |
| 77 | +end | |
| 78 | + | |
| 20 | 79 | noncomputable section |
| 21 | 80 | |
| 22 | 81 | namespace NavierStokes.ActualCycleParameters |
+20 −0 routes/s5-ns-actual-1/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-ns-actual-1 | |
| 6 | + | |
| 7 | +One unit of S-5: Lean Pool's "fewer modules" for the family `NavierStokes/Actual*`. The | |
| 8 | +module `NavierStokes/ActualCycleGeometry.lean` (52 lines) had exactly one importer, | |
| 9 | +`NavierStokes/ActualCycleParameters.lean`, so it is folded into that file, text unchanged, | |
| 10 | +under a heading that names where it came from and in a `section` of its own. The file takes | |
| 11 | +over its imports and the import line is gone. The tool that does it is | |
| 12 | +`docs/s5-folding/fold.py`, the plan is `plan.json` here, and `python3 -I | |
| 13 | +docs/s5-folding/fold.py check . plan.json` rebuilds every changed file from main's text | |
| 14 | +and compares byte for byte. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +The pull request is open. What comes next is the maintainer's verdict on whether this kind | |
| 19 | +of change is wanted; the rest of the series' folds wait on it, one family per pull request. | |
| 20 | +Nothing here reads worse folded than the two files did apart. | |
+9 −0 routes/s5-ns-actual-1/plan.json added View file
| @@ -0,0 +1,9 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"NavierStokes/ActualCycleParameters.lean": [ | |
| 5 | +"NavierStokes/ActualCycleGeometry.lean", | |
| 6 | +"NavierStokes/ActualCycleParameters.lean" | |
| 7 | +] | |
| 8 | +} | |
| 9 | +} | |