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 #590 from s2-ns-repair-1
Browse filesperf(NavierStokes/Repair): 1 file cheaper to elaborate (−8.2%, measured)
main maintainer-statement s1-euler-angle-9 s1-ns-harmonic-11 s1-ns-particular-10 s1-ns-radial-9 s1-ns-wave-11 s1-ns-weighted-10 s1-ns-weighted-12 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-euler-1 s2-euler-finite-1 s2-euler-mean-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-transverse-1 s2-ns-actual-1 s2-ns-annular-1 s2-ns-base-1 s2-ns-common-1 s2-ns-correction-1 s2-ns-current-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-global-1 s2-ns-heat-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-outgoing-2 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-physical-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-reserved-1 s2-ns-residual-1 s2-ns-scaled-2 s2-ns-signed-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-temporal-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-2
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+6 −6 NavierStokes/RepairConeBounds.lean View file
| @@ -698,7 +698,7 @@ noncomputable def observations (F : Profile) (z : Control × Point) : Fin 22 → | ||
| 698 | 698 | theorem observations_contDiffOn (F : Profile) : ContDiffOn ℝ ∞ (observations F) (regular F) := by |
| 699 | 699 | apply contDiffOn_pi.mpr |
| 700 | 700 | intro i |
| 701 | - fin_cases i <;> dsimp only [observations, Matrix.cons_val_zero, Matrix.cons_val_succ] | |
| 701 | + fin_cases i <;> dsimp only [Matrix.cons_val_zero, Matrix.cons_val_succ] | |
| 702 | 702 | · exact (value_contDiff (freeE_contDiff F)).contDiffOn |
| 703 | 703 | · exact (value_contDiff (freeU_contDiff F)).contDiffOn |
| 704 | 704 | · exact (radialJet_contDiff (freeE_contDiff F)).contDiffOn |
| @@ -749,7 +749,7 @@ theorem model_margins (F : Profile) (hh : F.data.h ≤ 1 / 100) : | ||
| 749 | 749 | have he := (hb v (hv.trans (min_le_left _ _)) p hp).2 |
| 750 | 750 | have hn : L * ‖v‖ ≤ m := by |
| 751 | 751 | have hd := (le_div_iff₀ (by linarith : 0 < L + 1)).mp (hv.trans (min_le_right _ _)) |
| 752 | - nlinarith [norm_nonneg v] | |
| 752 | + linarith [norm_nonneg v] | |
| 753 | 753 | have hcomp (i : Fin 22) : |observations F (v, p) i - observations F (0, p) i| ≤ m := by |
| 754 | 754 | have hi := norm_le_pi_norm (observations F (v, p) - observations F (0, p)) i |
| 755 | 755 | exact hi.trans (he.trans hn) |
| @@ -940,7 +940,7 @@ theorem physical_transport {F : Profile} {A : NominalProfile.AxisStage F} | ||
| 940 | 940 | apply (eq_div_iff (Real.exp_ne_zero p.1)).mpr |
| 941 | 941 | apply (mul_left_cancel₀ c.radius_pos.ne') |
| 942 | 942 | dsimp only [chart] |
| 943 | - nlinarith [hw] | |
| 943 | + linarith [hw] | |
| 944 | 944 | |
| 945 | 945 | theorem physical_lags {F : Profile} {A : NominalProfile.AxisStage F} |
| 946 | 946 | (c : NominalProfile.Controls A) (hsep : c.separation ≤ Real.exp (-8)) |
| @@ -1142,7 +1142,7 @@ theorem exists_repair_cone_log (F : Profile) : | ||
| 1142 | 1142 | (ActivationContinuation.shearB (c.profiles hsep) (chart c.radius p)) := by |
| 1143 | 1143 | rw [physical_projection c hsep hp.1 heta hs] |
| 1144 | 1144 | have hl := mul_le_mul_of_nonneg_left hb.2.2 c.radius_pos.le |
| 1145 | - nlinarith | |
| 1145 | + linarith | |
| 1146 | 1146 | refine ⟨?_, hproj, ConeAlgebra.relaxed_cone_of_le_two hproj (hspeed.trans (by norm_num))⟩ |
| 1147 | 1147 | rw [ha] |
| 1148 | 1148 | exact lt_of_lt_of_le (by norm_num : (0 : ℝ) < 3 / 5) hb.1 |
| @@ -1168,9 +1168,9 @@ theorem exists_repair_cone (F : Profile) : | ||
| 1168 | 1168 | have hx : 0 < p.1 := (mul_pos c.radius_pos (Real.exp_pos (-8))).trans_le hp.1 |
| 1169 | 1169 | have hxR : 0 < p.1 / c.radius := div_pos hx c.radius_pos |
| 1170 | 1170 | have hlo : Real.exp (-8) ≤ p.1 / c.radius := |
| 1171 | - (le_div_iff₀ c.radius_pos).mpr (by nlinarith [hp.1]) | |
| 1171 | + (le_div_iff₀ c.radius_pos).mpr (by linarith [hp.1]) | |
| 1172 | 1172 | have hhi : p.1 / c.radius ≤ Real.exp (-5) := |
| 1173 | - (div_le_iff₀ c.radius_pos).mpr (by nlinarith [hp.2]) | |
| 1173 | + (div_le_iff₀ c.radius_pos).mpr (by linarith [hp.2]) | |
| 1174 | 1174 | have hy : Real.log (p.1 / c.radius) ∈ Icc (-8) (-5) := by |
| 1175 | 1175 | constructor |
| 1176 | 1176 | · simpa only [Real.log_exp] using Real.log_le_log (Real.exp_pos (-8)) hlo |
+23 −0 routes/s2-ns-repair-1/README.md added View file
| @@ -0,0 +1,23 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-repair-1 | |
| 6 | + | |
| 7 | +One unit of S-2 (#11): make `NavierStokes/RepairConeBounds.lean` of the family | |
| 8 | +`NavierStokes/Repair*` cheaper to elaborate, with edits inside proofs only (6 lines out, 6 in). | |
| 9 | +In `observations_contDiffOn` the `dsimp only` list loses `observations` (an entry that does not | |
| 10 | +change the goal); in `model_margins`, `physical_transport`, `exists_repair_cone_log` and the two | |
| 11 | +`have`s of `exists_repair_cone`, `nlinarith` becomes `linarith` where linear reasoning closes the | |
| 12 | +goal. No statement, import line or docstring changes, and there is no `maxHeartbeats`. | |
| 13 | + | |
| 14 | +The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, the run of | |
| 15 | +2026-12-03 at upstream `f9e8bc5`), carried onto main and counted there file by file: 69.90 G | |
| 16 | +before, 64.18 G after instructions retired (−8.2%), at main `d956c7c`. The file is unchanged | |
| 17 | +between `d956c7c` and this branch's base, so the count applies here; how it was taken is in the | |
| 18 | +pull request. | |
| 19 | + | |
| 20 | +## Next | |
| 21 | + | |
| 22 | +Nothing is left for this unit. Read the `build` check's verdict on the pull request; if it fails, | |
| 23 | +the failing edit is the place to look, and if the maintainer asks for more, add it here. | |