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: #641 perf(Euler/Transverse): 9 files cheaper to elaborate (−3.8%, measured)
1 commit
+3 −3 Euler/TransverseActivationSelection.lean View file
| @@ -103,7 +103,7 @@ theorem select_actual_activation | ||
| 103 | 103 | R.norm_toContinuousLinearMap_le CM CH hCM hCH M hRay hM H hHs hHnorm K hK hH hsmall |
| 104 | 104 | have hC : 1 ≤ activationConstant CM CH := by |
| 105 | 105 | unfold activationConstant |
| 106 | - nlinarith only [sq_nonneg CM, hCH] | |
| 106 | + linarith only [sq_nonneg CM, hCH] | |
| 107 | 107 | obtain ⟨yp, yq, hwq, hwpl, hwpu, hY⟩ := |
| 108 | 108 | select_endpoint_hilbert Λ B p q (activationConstant CM CH) ε h hΛ hp hq hpq |
| 109 | 109 | hC hε hh hεsmall hΛnorm hB hBpp |
| @@ -130,7 +130,7 @@ theorem select_actual_activation | ||
| 130 | 130 | Λ Y - B Y - (h * ⟪p, Y⟫_ℝ) • q := by |
| 131 | 131 | dsimp only [w] |
| 132 | 132 | rw [map_sub, hvt, hηT] |
| 133 | - simp only [B, terminalPerturbation, sub_apply, comp_apply, smul_apply, rankOne_apply, | |
| 133 | + simp only [B, terminalPerturbation, sub_apply, smul_apply, rankOne_apply, | |
| 134 | 134 | smul_smul, extendPath, projIcc_of_mem hT.le (show T ∈ Icc (0 : ℝ) T from ⟨hT.le, le_rfl⟩)] |
| 135 | 135 | abel |
| 136 | 136 | have hwcoord (z : V) : ⟪w T, R z⟫_ℝ = |
| @@ -140,7 +140,7 @@ theorem select_actual_activation | ||
| 140 | 140 | refine ⟨Y, initialRealPrimitive_initial T u, hηT, |
| 141 | 141 | physicalVelocityPath_continuous T hT.le Q Q₁ c hc hQ H u, hdη, ?_, ?_, ?_, ?_, hY⟩ |
| 142 | 142 | · intro t |
| 143 | - simpa only [w, extendPath, projIcc_of_mem hT.le t.property] using | |
| 143 | + simpa only [extendPath, projIcc_of_mem hT.le t.property] using | |
| 144 | 144 | corrected_velocity_tangent T hT m m₁ M hdm hRay η v hdη hηtan t |
| 145 | 145 | · exact (hwcoord q).trans hwq |
| 146 | 146 | · exact (hwcoord p).symm ▸ hwpl |
+1 −1 Euler/TransverseForwardCoefficientGevrey.lean View file
| @@ -30,7 +30,7 @@ theorem inverseRadius_bounds (c C Rc R : ℝ) (hc : 0 < c) (hRc : 0 ≤ Rc) | ||
| 30 | 30 | nlinarith [sq_nonneg C] |
| 31 | 31 | have hp : 0 ≤ (gramCost c C 1-1)*(Rc+1) := |
| 32 | 32 | mul_nonneg (sub_nonneg.mpr hcost) (by linarith) |
| 33 | - constructor <;> nlinarith | |
| 33 | + constructor <;> linarith | |
| 34 | 34 | |
| 35 | 35 | variable {P V E : Type*} |
| 36 | 36 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
+4 −4 Euler/TransversePacketCoefficientBounds.lean View file
| @@ -62,12 +62,12 @@ theorem corrector_coefficient_bounds (R C Ri : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C | ||
| 62 | 62 | have hD : 0 ≤ 3*C^2 := by positivity |
| 63 | 63 | have hDt : 0 ≤ 27*(3*Ri*C)^2*(3*C^2) := by positivity |
| 64 | 64 | have hCc : 0 ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; positivity |
| 65 | - have hC0 : C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; nlinarith | |
| 66 | - have hC1 : 3*C^2 ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; nlinarith | |
| 67 | - have hCN : 3*Ri*C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; nlinarith | |
| 65 | + have hC0 : C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; linarith | |
| 66 | + have hC1 : 3*C^2 ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; linarith | |
| 67 | + have hCN : 3*Ri*C ≤ Cc := by dsimp [Cc,correctorCoefficientAmplitude]; linarith | |
| 68 | 68 | have hCT : 27*(3*Ri*C)^2*(3*C^2) ≤ Cc := by |
| 69 | 69 | dsimp [Cc,correctorCoefficientAmplitude] |
| 70 | - nlinarith | |
| 70 | + linarith | |
| 71 | 71 | have hIb (n : ℕ) (a : Space) : |
| 72 | 72 | ‖iteratedFDeriv ℝ n (translateCoefficientPath D.FInv.field) a‖ ≤ C*majorant Rc 0 n := |
| 73 | 73 | (D.FInv.norm_iteratedFDeriv_translation_le n (C*majorant R 0 n) |
+1 −1 Euler/TransversePacketCorrectorBounds.lean View file
| @@ -84,7 +84,7 @@ theorem correctorTimePath_normalized_bound (n : ℕ) : | ||
| 84 | 84 | have hn := mul_nonneg |
| 85 | 85 | (show 0 ≤ sobolevCoefficientAmplitude (Fin 4) q Rc C*(P*A) by positivity) |
| 86 | 86 | (majorant_nonneg R hRn d j) |
| 87 | - nlinarith | |
| 87 | + linarith | |
| 88 | 88 | have h := EulerCylinderSlowCurl.normalized_derivative_block_bound P D.T g hg |
| 89 | 89 | D.FInv.field D.inverseDerivative (G.potentialPath I) (G.potentialTimePath I) |
| 90 | 90 | (G.potentialPath_orbit I) (G.potentialTimePath_orbit I) D.FInv.translation_contDiff D.inverseDerivative_orbit |
+5 −5 Euler/TransversePacketForwardGradeBounds.lean View file
| @@ -80,27 +80,27 @@ theorem grade_fields : | ||
| 80 | 80 | have hv : ((G.vectorField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 81 | 81 | 6 L.R ((L.commonCost*C)*c) (d+1) := by |
| 82 | 82 | intro n |
| 83 | - simpa only [Field.normalized_path,Forcing.vectorField,mul_assoc,mul_left_comm,mul_comm] using | |
| 83 | + simpa only [Field.normalized_path,Forcing.vectorField,mul_assoc,mul_left_comm] using | |
| 84 | 84 | L.velocity_common_bound G I standardDirection hd (c*C) ha d hforce hinitial n |
| 85 | 85 | have ht : ((G.vectorDerivativeField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 86 | 86 | 6 L.R ((L.commonCost*C)*c) (d+1) := by |
| 87 | 87 | intro n |
| 88 | - simpa only [Field.normalized_path,Forcing.vectorDerivativeField,mul_assoc,mul_left_comm,mul_comm] using | |
| 88 | + simpa only [Field.normalized_path,Forcing.vectorDerivativeField,mul_assoc,mul_left_comm] using | |
| 89 | 89 | L.derivative_common_bound G I standardDirection hd (c*C) ha d hforce hinitial n |
| 90 | 90 | have hC : ((G.curlCorrectorField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 91 | 91 | 6 L.R ((L.correctorAmplitude (P := P) N*C)*c) (d+2) := by |
| 92 | 92 | intro n |
| 93 | - simpa only [Field.normalized_path,Forcing.curlCorrectorField,mul_assoc,mul_left_comm,mul_comm] using | |
| 93 | + simpa only [Field.normalized_path,Forcing.curlCorrectorField,mul_assoc,mul_left_comm] using | |
| 94 | 94 | L.corrector_bound N G I (c*C) ha d hforce hinitial n |
| 95 | 95 | have hCt : ((G.correctorDerivativeField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 96 | 96 | 6 L.R ((L.correctorTimeAmplitude (P := P) N*C)*c) (d+2) := by |
| 97 | 97 | intro n |
| 98 | - simpa only [Field.normalized_path,Forcing.correctorDerivativeField,mul_assoc,mul_left_comm,mul_comm] using | |
| 98 | + simpa only [Field.normalized_path,Forcing.correctorDerivativeField,mul_assoc,mul_left_comm] using | |
| 99 | 99 | L.corrector_time_bound N G I (c*C) ha d hforce hinitial n |
| 100 | 100 | have hπ : ((G.scalarGradientField I).normalized D.T_pos.le L.g L.positive).WordBound |
| 101 | 101 | 6 L.R ((3*L.pressureAmplitude (P := P) N*C)*c) (d+2) := by |
| 102 | 102 | intro n |
| 103 | - simpa only [Field.normalized_path,mul_assoc,mul_left_comm,mul_comm] using | |
| 103 | + simpa only [Field.normalized_path,mul_assoc,mul_left_comm] using | |
| 104 | 104 | L.pressure_gradient_bound N G I (c*C) ha d hforce hinitial n |
| 105 | 105 | refine ⟨?_,?_,?_,?_,?_⟩ |
| 106 | 106 | · exact (hv.scale_profile D.T_pos.le L.g L.positive c hc).absorb_amplitude_to |
+1 −1 Euler/TransversePacketJoinedCorrectorBounds.lean View file
| @@ -85,7 +85,7 @@ theorem correctorTimePath_normalized_bound (n : ℕ) : | ||
| 85 | 85 | have hn := mul_nonneg |
| 86 | 86 | (show 0 ≤ sobolevCoefficientAmplitude (Fin 4) q Rc C*(P*A) by positivity) |
| 87 | 87 | (majorant_nonneg R hRn d j) |
| 88 | - nlinarith | |
| 88 | + linarith | |
| 89 | 89 | have h := EulerCylinderSlowCurl.normalized_derivative_block_bound P D.T g hg |
| 90 | 90 | D.FInv.field D.inverseDerivative (potentialPath τ hτ hτT B G) (potentialTimePath τ hτ hτT B G) |
| 91 | 91 | (potentialPath_orbit τ hτ hτT B G) (potentialTimePath_orbit τ hτ hτT B G) D.FInv.translation_contDiff D.inverseDerivative_orbit |
+2 −2 Euler/TransversePacketPrimaryFullBounds.lean View file
| @@ -89,7 +89,7 @@ theorem correctorTimePath_normalized_bound (n : ℕ) : | ||
| 89 | 89 | have hn := mul_nonneg |
| 90 | 90 | (show 0 ≤ sobolevCoefficientAmplitude (Fin 4) q Rc C*(P*A) by positivity) |
| 91 | 91 | (majorant_nonneg R hRn d j) |
| 92 | - nlinarith | |
| 92 | + linarith | |
| 93 | 93 | have h := EulerCylinderSlowCurl.normalized_derivative_block_bound P D.T g hg |
| 94 | 94 | D.FInv.field D.inverseDerivative (potentialPath τ hτ hτT B Y) (potentialTimePath τ hτ hτT B Y) |
| 95 | 95 | (potentialPath_orbit τ hτ hτT B Y) (potentialTimePath_orbit τ hτ hτT B Y) D.FInv.translation_contDiff D.inverseDerivative_orbit |
| @@ -231,7 +231,7 @@ theorem pressure_gradient_bound (n : ℕ) : | ||
| 231 | 231 | (pressurePath τ hτ hτT B Y) (pressurePath_orbit τ hτ hτT B Y) |
| 232 | 232 | L.fullProfile L.fullProfile_pos q L.R (H.pressureAmplitude (P := P) N*A) (d+3) |
| 233 | 233 | (H.pressure_bound N Y A hA d hYb) n |
| 234 | - simpa only [show d+3+1=d+4 by omega,mul_assoc] using h | |
| 234 | + simpa only [mul_assoc] using h | |
| 235 | 235 | |
| 236 | 236 | theorem corrector_bound (n : ℕ) : |
| 237 | 237 | block standardDirection q (fun a => pathTranslate P a |
+2 −2 Euler/TransversePacketPrimaryUnitBounds.lean View file
| @@ -56,7 +56,7 @@ theorem future_velocity_bound (n : ℕ) : | ||
| 56 | 56 | have hf (j : ℕ) : block directions q (fun a => pathTranslate P a |
| 57 | 57 | (normalize L.g L.positive (HistoryData.forcingPath (zeroForcing (P := P) (D.tail τ hτ.le hτT))))) |
| 58 | 58 | j 0 ≤ 0*majorant L.R (d+2) j := by |
| 59 | - simp only [HistoryData.forcingPath,zeroForcing,map_zero,zero_mul] | |
| 59 | + simp only [HistoryData.forcingPath,zeroForcing,zero_mul] | |
| 60 | 60 | erw [map_zero] |
| 61 | 61 | simp only [map_zero,block_zero_function,le_refl] |
| 62 | 62 | dsimp only [futureVelocity] |
| @@ -80,7 +80,7 @@ theorem future_derivative_bound (n : ℕ) : | ||
| 80 | 80 | have hf (j : ℕ) : block directions q (fun a => pathTranslate P a |
| 81 | 81 | (normalize L.g L.positive (HistoryData.forcingPath (zeroForcing (P := P) (D.tail τ hτ.le hτT))))) |
| 82 | 82 | j 0 ≤ 0*majorant L.R (d+2) j := by |
| 83 | - simp only [HistoryData.forcingPath,zeroForcing,map_zero,zero_mul] | |
| 83 | + simp only [HistoryData.forcingPath,zeroForcing,zero_mul] | |
| 84 | 84 | erw [map_zero] |
| 85 | 85 | simp only [map_zero,block_zero_function,le_refl] |
| 86 | 86 | dsimp only [futureDerivative] |
+1 −1 Euler/TransverseVariationalOperator.lean View file
| @@ -41,7 +41,7 @@ theorem dirichletOperator_coercive (J : V →L[ℝ] W) (H : W →L[ℝ] W) | ||
| 41 | 41 | rw [dirichletOperator_inner, real_inner_self_eq_norm_sq] |
| 42 | 42 | have hj := mul_le_mul_of_nonneg_left (hJ u) hK |
| 43 | 43 | have hs := mul_le_mul_of_nonneg_right hsmall (sq_nonneg ‖u‖) |
| 44 | - nlinarith only [hH (J u), hj, hs] | |
| 44 | + linarith only [hH (J u), hj, hs] | |
| 45 | 45 | |
| 46 | 46 | /-- The actual forcing-to-derivative solution map constructed by Lax--Milgram. -/ |
| 47 | 47 | def dirichletSolver (J : V →L[ℝ] W) (H : W →L[ℝ] W) |
+22 −0 routes/s2-euler-transverse-1/README.md added View file
| @@ -0,0 +1,22 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-transverse-1 | |
| 6 | + | |
| 7 | +S-2, the `Euler/Transverse*` family: nine files, each among the slowest to elaborate. | |
| 8 | +The edits are inside proofs only — a `nlinarith` becomes a `linarith` where the goal is | |
| 9 | +linear once the hypotheses the proof already has are in hand, and a `simp only` argument | |
| 10 | +list loses the entries that rewrite nothing (e.g. the `w` in `simp only [w, …]` when no goal | |
| 11 | +mentions `w`, a repeated `mul_comm` beside `mul_assoc` and `mul_left_comm`, the redundant | |
| 12 | +`show d+3+1=d+4 by omega` beside `mul_assoc`). No statement, import line or docstring | |
| 13 | +changes, and there is no `maxHeartbeats`. The edits are Treant's `speedup_trials` edits | |
| 14 | +from upstream `f9e8bc5` (TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried | |
| 15 | +onto main `df2f18f` and counted there; the before and after counts for each file, and how | |
| 16 | +they were taken, are in the pull request's description. | |
| 17 | + | |
| 18 | +## Next | |
| 19 | + | |
| 20 | +Push, let the `challenge` and `build` checks run, and answer the maintainer's review. The | |
| 21 | +counts in the pull request were measured at `df2f18f`; if the maintainer wants them at the | |
| 22 | +merge base, rerun the same instruction count at the pull request's head. | |