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

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #559 perf(Euler/Ordinary): 10 files cheaper to elaborate (−6.8%, measured)
1 commit
+1 −1 Euler/OrdinaryEulerLocalCauchy.lean View file
| @@ -42,7 +42,7 @@ theorem short_uniform_h3 (V : ℕ → Evolution T hT) (hpos : 0 < T) | ||
| 42 | 42 | have hLT : L ≤ T := min_le_left _ _ |
| 43 | 43 | have hLe : 3*C*L ≤ log 2 := by |
| 44 | 44 | have h := (le_div_iff₀ (show 0 < 3*C by positivity)).mp (min_le_right T (log 2/(3*C))) |
| 45 | - nlinarith only [h] | |
| 45 | + linarith only [h] | |
| 46 | 46 | have hexp : exp (3*C*L) ≤ 2 := by |
| 47 | 47 | have h := exp_le_exp.mpr hLe |
| 48 | 48 | rwa [exp_log (by norm_num : (0 : ℝ) < 2)] at h |
+2 −2 Euler/OrdinaryGradientProducts.lean View file
| @@ -68,7 +68,7 @@ theorem secondWord_product_gradient (A : SmoothL2Field Space) (K N : ℝ) | ||
| 68 | 68 | (wordField (mapField (EuclideanSpace.proj i) A) w) |
| 69 | 69 | (wordField (mapField (EuclideanSpace.proj j) A) v) |
| 70 | 70 | have hc (j : Fin 3) (x : Space) : (C j).field x=(B.field x) j := by |
| 71 | - simp only [C,B,wordField_map,mapField_field,scalarProduct_field, | |
| 71 | + simp only [C,B,wordField_map,scalarProduct_field, | |
| 72 | 72 | coordinateProduct_field,PiLp.smul_apply,smul_eq_mul] |
| 73 | 73 | rfl |
| 74 | 74 | have hn (j : Fin 3) : |
| @@ -95,7 +95,7 @@ theorem coordinateProduct_gradient (A : SmoothL2Field Space) (K N : ℝ) | ||
| 95 | 95 | ‖(coordinateProduct i (wordField A w) (wordField A v)).toLp‖ ≤ 9*K*N := by |
| 96 | 96 | have hK0 : 0 ≤ K := (norm_nonneg (fderiv ℝ A.field 0)).trans (hK 0) |
| 97 | 97 | have hN0 := wordBound_nonneg hN |
| 98 | - have hc : K*N ≤ 9*K*N := by nlinarith [mul_nonneg hK0 hN0] | |
| 98 | + have hc : K*N ≤ 9*K*N := by linarith [mul_nonneg hK0 hN0] | |
| 99 | 99 | by_cases hk1 : k=1 |
| 100 | 100 | · subst k |
| 101 | 101 | have hs (x : Space) : |
+5 −5 Euler/OrdinaryH3Envelope.lean View file
| @@ -28,9 +28,9 @@ theorem regularized_energy_bound (e ep M δ : ℝ) (he : 0 ≤ e) (hM : 0 ≤ M) | ||
| 28 | 28 | let s := sqrt (e+δ^2) |
| 29 | 29 | have hs : 0 < s := sqrt_pos.mpr (by nlinarith) |
| 30 | 30 | have hs2 : s^2=e+δ^2 := sq_sqrt (by positivity) |
| 31 | - have he2 : e ≤ s^2 := by nlinarith [sq_nonneg δ] | |
| 31 | + have he2 : e ≤ s^2 := by linarith [sq_nonneg δ] | |
| 32 | 32 | have hse : sqrt e ≤ 40*s := by |
| 33 | - have hl : sqrt e ≤ s := sqrt_le_sqrt (by nlinarith [sq_nonneg δ]) | |
| 33 | + have hl : sqrt e ≤ s := sqrt_le_sqrt (by linarith [sq_nonneg δ]) | |
| 34 | 34 | linarith |
| 35 | 35 | have hC := h3ProductConstant_nonneg |
| 36 | 36 | have hb : ep ≤ 3600*h3ProductConstant*(M+40*s)*s^2 := by |
| @@ -43,7 +43,7 @@ theorem regularized_energy_bound (e ep M δ : ℝ) (he : 0 ≤ e) (hM : 0 ≤ M) | ||
| 43 | 43 | apply hd.trans |
| 44 | 44 | have hx : 0 ≤ 40*s := by positivity |
| 45 | 45 | have ha : (M+40*s)*(40*s) ≤ (1+M)*(40*s+(40*s)^2) := by |
| 46 | - nlinarith [mul_nonneg hM (sq_nonneg (40*s))] | |
| 46 | + linarith [mul_nonneg hM (sq_nonneg (40*s))] | |
| 47 | 47 | calc |
| 48 | 48 | _ = (1800*h3ProductConstant)*((M+40*s)*(40*s)) := by ring |
| 49 | 49 | _ ≤ (1800*h3ProductConstant)*((1+M)*(40*s+(40*s)^2)) := |
| @@ -109,7 +109,7 @@ theorem normEnvelope_initial (U V : Evolution T hT) (ε : ℝ) (hε : 0 < ε) | ||
| 109 | 109 | change U.energyPath V ⟨0,le_rfl,hT⟩ ≤ _ at hb |
| 110 | 110 | nlinarith [sqrt_nonneg (U.energyPath V ⟨0,le_rfl,hT⟩+ε^2)] |
| 111 | 111 | change 40*sqrt _ ≤ 320*ε |
| 112 | - nlinarith | |
| 112 | + linarith | |
| 113 | 113 | |
| 114 | 114 | theorem h3_stability (U V : Evolution T hT) (M ε : ℝ) |
| 115 | 115 | (hM : ∀ t, WordBound 4 M (U.velocity t)) (hε : 0 < ε) |
| @@ -122,7 +122,7 @@ theorem h3_stability (U V : Evolution T hT) (M ε : ℝ) | ||
| 122 | 122 | (extendPath T hT (U.normEnvelope V ε)) |
| 123 | 123 | (fun r => U.envelopeDerivative V ε (projIcc 0 T hT r)) |
| 124 | 124 | (stabilityConstant M) (320*ε) T hMp (by positivity) hT |
| 125 | - (by nlinarith [hsmall]) (extendPath_continuous T hT (U.normEnvelope V ε)).continuousOn | |
| 125 | + (by linarith [hsmall]) (extendPath_continuous T hT (U.normEnvelope V ε)).continuousOn | |
| 126 | 126 | (by simpa only [extendPath,projIcc_of_mem hT ⟨le_rfl,hT⟩] using U.normEnvelope_initial V ε hε hinit) |
| 127 | 127 | (fun r hr => by |
| 128 | 128 | have h := U.normEnvelope_hasDerivWithinAt V ε hε ⟨r,hr.1,hr.2.le⟩ |
+2 −2 Euler/OrdinaryH3Products.lean View file
| @@ -23,11 +23,11 @@ theorem h3ProductConstant_nonneg : 0 ≤ h3ProductConstant := by | ||
| 23 | 23 | |
| 24 | 24 | theorem h3ProductConstant_left : 13*smoothEmbeddingConstant ≤ h3ProductConstant := by |
| 25 | 25 | unfold h3ProductConstant |
| 26 | - nlinarith [sq_nonneg (1+3*(sobolevConstant : ℝ))] | |
| 26 | + linarith [sq_nonneg (1+3*(sobolevConstant : ℝ))] | |
| 27 | 27 | |
| 28 | 28 | theorem h3ProductConstant_middle : 4*(1+3*(sobolevConstant : ℝ))^2 ≤ h3ProductConstant := by |
| 29 | 29 | unfold h3ProductConstant |
| 30 | - nlinarith [smoothEmbeddingConstant_nonneg] | |
| 30 | + linarith [smoothEmbeddingConstant_nonneg] | |
| 31 | 31 | |
| 32 | 32 | theorem scalarProduct_h1_bound (A : SmoothL2Field ℝ) (B : SmoothL2Field Space) : |
| 33 | 33 | ‖(scalarProduct A B).toLp‖ ≤ |
+1 −1 Euler/OrdinaryPerturbedEnergy.lean View file
| @@ -59,7 +59,7 @@ theorem perturbed_difference_energy (A B : SmoothL2Field Space) | ||
| 59 | 59 | have hpair : 2*⟪W,e⟫_ℝ ≤ ‖W‖^2+(ea+eb)^2 := by |
| 60 | 60 | have hi : ⟪W,e⟫_ℝ ≤ ‖W‖*(ea+eb) := |
| 61 | 61 | (real_inner_le_norm _ _).trans (mul_le_mul_of_nonneg_left hn (norm_nonneg W)) |
| 62 | - nlinarith [sq_nonneg (‖W‖-(ea+eb))] | |
| 62 | + linarith [sq_nonneg (‖W‖-(ea+eb))] | |
| 63 | 63 | rw [he,inner_add_right,mul_add] |
| 64 | 64 | exact (add_le_add (projected_difference_energy A B hA hB K hK) hpair).trans_eq (by dsimp [W]; ring) |
| 65 | 65 | |
+1 −1 Euler/OrdinaryPressureCancellation.lean View file
| @@ -69,7 +69,7 @@ theorem gradient_mem_of_symmetric (A : SmoothL2Field Space) | ||
| 69 | 69 | rw [hcurl,hdiv] at h |
| 70 | 70 | have hc : vectorCurl (0 : Space → Space) x=0 := by |
| 71 | 71 | ext i |
| 72 | - simp [vectorCurl,curl,partialDerivative] | |
| 72 | + simp [vectorCurl,partialDerivative] | |
| 73 | 73 | have hg : gradient (0 : Space → ℝ) x=0 := by simp [gradient] |
| 74 | 74 | simp only [hc,hg,Pi.sub_apply,zero_sub] at h |
| 75 | 75 | exact neg_eq_zero.mp h.symm |
+1 −1 Euler/OrdinaryQuadraticStability.lean View file
| @@ -36,7 +36,7 @@ theorem quadratic_stability_within (X X' : ℝ → ℝ) (C ε T : ℝ) | ||
| 36 | 36 | rw [he] at hb |
| 37 | 37 | have hfsq : (F t)^2 ≤ F t := by nlinarith [hFp t] |
| 38 | 38 | have hh := mul_le_mul_of_nonneg_left hfsq hC.le |
| 39 | - nlinarith [mul_pos hC (hFp t)] | |
| 39 | + linarith [mul_pos hC (hFp t)] | |
| 40 | 40 | intro t ht |
| 41 | 41 | apply (hbound t ht).trans |
| 42 | 42 | dsimp [F] |
+2 −2 Euler/OrdinaryRegularizedCauchy.lean View file
| @@ -55,7 +55,7 @@ theorem regularized_l2_comparison {T : ℝ} {hT : 0 ≤ T} {j k : ℕ} | ||
| 55 | 55 | (wordBound_gradient (wordBound_mono (hU _) (by omega))) |
| 56 | 56 | (regularized_rhs_error j _ (U.solenoidal _) M (hU _)) |
| 57 | 57 | (regularized_rhs_error k _ (V.solenoidal _) M (hV _)) |
| 58 | - simpa only [X,X',C,E,add_mul] using h | |
| 58 | + simpa only [X,C,E,add_mul] using h | |
| 59 | 59 | have hnorm (t : Icc (0 : ℝ) T) : |
| 60 | 60 | ‖(V.velocity t).toLp-(U.velocity t).toLp‖ ≤ E*Real.sqrt (Real.exp (C*T)) := by |
| 61 | 61 | have h := forced_linear_zero_bound T C E hC X X' hc hx0 hd hb t t.property |
| @@ -86,6 +86,6 @@ theorem regularized_cauchy {T : ℝ} {hT : 0 ≤ T} | ||
| 86 | 86 | apply (regularized_l2_comparison (U j) (U k) M (hM j) (hM k) (hinit j k)).trans_lt |
| 87 | 87 | have hj' := hN j hj |
| 88 | 88 | have hk' := hN k hk |
| 89 | - nlinarith | |
| 89 | + linarith | |
| 90 | 90 | |
| 91 | 91 | end EulerOrdinarySobolev |
+2 −2 Euler/OrdinaryRegularizedEnergy.lean View file
| @@ -82,7 +82,7 @@ theorem energy_quadratic (t : Icc (0 : ℝ) T) : | ||
| 82 | 82 | have hs := Real.sq_sqrt hx |
| 83 | 83 | have hsq : Real.sqrt (U.energy 3 t)*U.energy 3 t ≤ (1+U.energy 3 t)^2 := by |
| 84 | 84 | have hl : Real.sqrt (U.energy 3 t) ≤ 1+U.energy 3 t := by nlinarith |
| 85 | - nlinarith [mul_le_mul_of_nonneg_right hl hx] | |
| 85 | + linarith [mul_le_mul_of_nonneg_right hl hx] | |
| 86 | 86 | simpa only [mul_assoc] using mul_le_mul_of_nonneg_left hsq (tameEnergyConstant_nonneg 3) |
| 87 | 87 | |
| 88 | 88 | theorem short_energy (hsmall : tameEnergyConstant 3*T ≤ (1+U.energy 3 ⟨0,le_rfl,hT⟩)⁻¹/2) |
| @@ -143,7 +143,7 @@ theorem regularized_h3 (A : SmoothL2Field Space) {S : SmoothingOperator} | ||
| 143 | 143 | have hs : tameEnergyConstant 3*regularizedTime A ≤ (1+wordEnergy 3 A)⁻¹/2 := by |
| 144 | 144 | calc |
| 145 | 145 | _ ≤ (1+tameEnergyConstant 3)*regularizedTime A := by |
| 146 | - nlinarith [regularizedTime_pos A] | |
| 146 | + linarith [regularizedTime_pos A] | |
| 147 | 147 | _ = _ := by unfold regularizedTime; field_simp [hc.ne',ha.ne'] |
| 148 | 148 | have hu := U.short_energy (by simpa only [he] using hs) t |
| 149 | 149 | rw [he] at hu |
+1 −1 Euler/OrdinarySobolevL4.lean View file
| @@ -83,7 +83,7 @@ private theorem square_domination (a z : ℝ) (ha : 0 < a) (hz : 0 ≤ z) : | ||
| 83 | 83 | have he : a*z+a⁻¹*z^3=(a^2*z+z^3)/a := by field_simp |
| 84 | 84 | rw [he] |
| 85 | 85 | apply (le_div_iff₀ ha).mpr |
| 86 | - nlinarith | |
| 86 | + linarith | |
| 87 | 87 | |
| 88 | 88 | theorem square_memLp {f : Space → E} (h2 : MemLp f 2 volume) (h6 : MemLp f 6 volume) : |
| 89 | 89 | MemLp (fun x => ‖f x‖^2) 2 volume := by |
+23 −0 routes/s2-euler-ordinary-1/README.md added View file
| @@ -0,0 +1,23 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-ordinary-1 | |
| 6 | + | |
| 7 | +S-2, one unit: the family `Euler/Ordinary*`. The edits are Treant's `speedup_trials` | |
| 8 | +stage (TitiSkywalker/NavierStokesAndEuler, the run of 2026-12-03 at upstream `f9e8bc5`), | |
| 9 | +carried onto main at `d956c7c` and counted there; `unit.json` holds the per-file counts | |
| 10 | +before and after. They are proof-only: tactic lines inside proofs, no statement, import, | |
| 11 | +docstring or `maxHeartbeats` touched. | |
| 12 | + | |
| 13 | +Ten of the eleven files are kept. `Euler/OrdinaryQuadraticControl.lean` was measured | |
| 14 | +cheaper too (9.33 G → 8.83 G) but is left out whole: one of its edits turned | |
| 15 | +`simpa only [mul_comm C] using hb r hr` into `simpa only using hb r hr`, a `simpa` | |
| 16 | +over no lemmas, which reads as a leftover and explains nothing to the reader. Its three | |
| 17 | +edits are counted together, so the file goes, not the one line. | |
| 18 | + | |
| 19 | +## Next | |
| 20 | + | |
| 21 | +Push, let `challenge` and `build` run, and answer the maintainer's review. If it asks | |
| 22 | +for `Euler/OrdinaryQuadraticControl.lean` back, re-apply that file's edits with a | |
| 23 | +readable `exact hb r hr` and measure the file again. | |