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

perf(NavierStokes/Similarity): 3 files cheaper to elaborate (−3.0%, measured)
Browse filesInside proofs only: `nlinarith` to `linarith` where linear reasoning suffices, a `simp only` list loses `mul_comm`, a `dsimp` set loses `w₁`, and one `by exact` becomes a term. No statement, import line or docstring changes. Measured as instructions retired in user space elaborating each file alone, per unit.json; see the pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main maintainer-statement 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-similarity-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
+1 −1 NavierStokes/SimilarityApproach.lean View file
| @@ -39,7 +39,7 @@ theorem coordinateQ_le_upperScale {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | ||
| 39 | 39 | apply (mul_lt_mul_iff_left₀ hqa).mp |
| 40 | 40 | rw [mul_comm (coordinateQ a p ^ (1 - a)), hprod] |
| 41 | 41 | dsimp [forwardScalar] at he |
| 42 | - nlinarith | |
| 42 | + linarith | |
| 43 | 43 | have hbound := Real.rpow_le_rpow |
| 44 | 44 | (Real.rpow_nonneg hq.le (1 - a)) hpower.le (inv_pos.mpr hd).le |
| 45 | 45 | rw [Real.rpow_rpow_inv hq.le hd.ne'] at hbound |
+4 −5 NavierStokes/SimilarityCoordinates.lean View file
| @@ -40,7 +40,7 @@ theorem exists_positive_solution {a τ : ℝ} (ha : 0 < a) (ha1 : a < 1) | ||
| 40 | 40 | have hp : 0 < p := div_pos ha hd |
| 41 | 41 | let w₁ : ℝ := z ^ 2 + τ + 1 |
| 42 | 42 | let g : ℝ → ℝ := fun w => w ^ p * (w - z ^ 2) |
| 43 | - have hw₁ : 1 ≤ w₁ := by dsimp [w₁]; nlinarith [sq_nonneg z] | |
| 43 | + have hw₁ : 1 ≤ w₁ := by dsimp [w₁]; linarith [sq_nonneg z] | |
| 44 | 44 | have hg : Continuous g := |
| 45 | 45 | (Real.continuous_rpow_const hp.le).mul (continuous_id.sub continuous_const) |
| 46 | 46 | have hg₀ : g (z ^ 2) = 0 := by simp [g] |
| @@ -48,7 +48,7 @@ theorem exists_positive_solution {a τ : ℝ} (ha : 0 < a) (ha1 : a < 1) | ||
| 48 | 48 | have hw : 1 ≤ w₁ ^ p := by |
| 49 | 49 | simpa only [Real.one_rpow] using |
| 50 | 50 | (Real.rpow_le_rpow (by norm_num : (0 : ℝ) ≤ 1) hw₁ hp.le) |
| 51 | - dsimp [g, w₁] at * | |
| 51 | + dsimp [g] at * | |
| 52 | 52 | nlinarith |
| 53 | 53 | have hab : z ^ 2 ≤ w₁ := by dsimp [w₁]; linarith |
| 54 | 54 | obtain ⟨w, hw, hgw⟩ := intermediate_value_Icc hab hg.continuousOn |
| @@ -147,7 +147,7 @@ theorem scalarSlope_pos {a z q : ℝ} (ha : 0 < a) (ha1 : a < 1) | ||
| 147 | 147 | dsimp [forwardScalar] at hf |
| 148 | 148 | linarith |
| 149 | 149 | have hprod := mul_nonneg ha.le (sub_nonneg.mpr hsmall.le) |
| 150 | - have hpos : 0 < 1 - a * (z ^ 2 * q ^ a / q) := by nlinarith | |
| 150 | + have hpos : 0 < 1 - a * (z ^ 2 * q ^ a / q) := by linarith | |
| 151 | 151 | unfold scalarSlope |
| 152 | 152 | rw [Real.rpow_sub_one hq.ne'] |
| 153 | 153 | convert! hpos using 1 |
| @@ -280,8 +280,7 @@ theorem coordinateQ_smooth {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | ||
| 280 | 280 | have hspec := coordinateQ_spec ha ha1 hp |
| 281 | 281 | have hF : 0 < forwardScalar a p.2 (coordinateQ a p) := by rwa [hspec.2] |
| 282 | 282 | have hsm := inverseMap_smooth_at_image ha ha1 (p := (coordinateQ a p, p.2)) hspec.1 hF |
| 283 | - have himage : forwardMap a (coordinateQ a p, p.2) = p := by | |
| 284 | - exact Prod.ext hspec.2 rfl | |
| 283 | + have himage : forwardMap a (coordinateQ a p, p.2) = p := Prod.ext hspec.2 rfl | |
| 285 | 284 | rw [himage] at hsm |
| 286 | 285 | exact hsm.fst |
| 287 | 286 | |
+2 −2 NavierStokes/SimilarityProfile.lean View file
| @@ -173,7 +173,7 @@ theorem hasDerivAt_pullback_time {h b : ℝ} {f : InnerProfile} | ||
| 173 | 173 | q h p ^ b * (partialX f (inner h p) * CoordinateAlgebra.xTime (q h p) h (eta h p) (X h p) + |
| 174 | 174 | partialEta f (inner h p) * CoordinateAlgebra.etaTime (q h p) h (eta h p)) = |
| 175 | 175 | pullback h (b - 1) (T h b f) p := by |
| 176 | - simpa only [pullback, T, inner, mul_comm, mul_left_comm, mul_assoc] using he | |
| 176 | + simpa only [pullback, T, inner, mul_left_comm, mul_assoc] using he | |
| 177 | 177 | exact hm.congr_deriv hr |
| 178 | 178 | |
| 179 | 179 | /-- The physical axial derivative, including the change of both inner coordinates. -/ |
| @@ -193,7 +193,7 @@ theorem hasDerivAt_pullback_z {h b : ℝ} {f : InnerProfile} | ||
| 193 | 193 | q h p ^ b * (partialX f (inner h p) * CoordinateAlgebra.xAxial (q h p) h (eta h p) (X h p) + |
| 194 | 194 | partialEta f (inner h p) * CoordinateAlgebra.etaAxial (q h p) h (eta h p)) = |
| 195 | 195 | pullback h (b - D h) (Z h b f) p := by |
| 196 | - simpa only [pullback, Z, inner, mul_comm, mul_left_comm, mul_assoc] using he | |
| 196 | + simpa only [pullback, Z, inner, mul_left_comm, mul_assoc] using he | |
| 197 | 197 | exact hm.congr_deriv hr |
| 198 | 198 | |
| 199 | 199 | theorem hasDerivAt_pullback_s {h b : ℝ} {f : InnerProfile} |
+20 −0 routes/s2-ns-similarity-1/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-similarity-1 | |
| 6 | + | |
| 7 | +One unit of S-2: the family `NavierStokes/Similarity*` — `SimilarityApproach.lean`, | |
| 8 | +`SimilarityCoordinates.lean` and `SimilarityProfile.lean`. The three files are made | |
| 9 | +cheaper to elaborate by edits inside proofs only: `nlinarith` becomes `linarith` where | |
| 10 | +linear reasoning suffices, a `dsimp` set loses `w₁`, two `simp only` lists lose `mul_comm` | |
| 11 | +and one `by exact` becomes the term directly. No statement, import line or docstring | |
| 12 | +changes, and no `maxHeartbeats`. The edits are Treant's `speedup_trials` stage | |
| 13 | +(TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 at upstream `f9e8bc5`), | |
| 14 | +carried onto main at `d956c7c` and counted there; the before/after counts and how they | |
| 15 | +were taken are in the pull request. | |
| 16 | + | |
| 17 | +## Next | |
| 18 | + | |
| 19 | +Push, open the pull request into `main`, let `challenge` and `build` report, and reply to | |
| 20 | +the maintainer's review. | |