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

| 1 | import NavierStokes.CommonCoverSolve |
| 2 | |
| 3 | /-! |
| 4 | # Normal, clock and amplitude rescaling in the tangent equation |
| 5 | |
| 6 | The normal scales by `s`, its clock derivative by `s * rate`, and the |
| 7 | velocity amplitude by `amp`. The projected equation then scales by |
| 8 | `rate * amp`, whereas the scalar pressure coefficient scales by |
| 9 | `rate * amp / s`. These are identities of the actual operators, including |
| 10 | the totalized zero-normal case. |
| 11 | -/ |
| 12 | |
| 13 | namespace NavierStokes.NormalScaling |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open scoped InnerProductSpace |
| 18 | open TangentProjection |
| 19 | |
| 20 | variable {H : Type} [NormedAddCommGroup H] [InnerProductSpace ℝ H] |
| 21 | |
| 22 | theorem tangentProj_smul_normal (n f : H) {s : ℝ} (hs : s ≠ 0) : |
| 23 | tangentProj (s • n) f = tangentProj n f := by |
| 24 | by_cases hn : n = 0 |
| 25 | · simp [hn, tangentProj] |
| 26 | have hn2 : ⟪n, n⟫_ℝ ≠ 0 := inner_self_ne_zero.mpr hn |
| 27 | simp only [tangentProj, real_inner_smul_left, real_inner_smul_right, smul_smul] |
| 28 | congr 2 |
| 29 | field_simp |
| 30 | |
| 31 | theorem tangentProj_smul_right (n f : H) (amp : ℝ) : |
| 32 | tangentProj n (amp • f) = amp • tangentProj n f := by |
| 33 | simp only [tangentProj, real_inner_smul_right, smul_sub, smul_smul] |
| 34 | congr 1 |
| 35 | congr 1 |
| 36 | ring |
| 37 | |
| 38 | theorem negativeTangentProjection_smul (n : H) {s : ℝ} (hs : s ≠ 0) : |
| 39 | CommonCoverSolve.negativeTangentProjection (s • n) = |
| 40 | CommonCoverSolve.negativeTangentProjection n := by |
| 41 | ext x |
| 42 | simp only [CommonCoverSolve.negativeTangentProjection_apply, |
| 43 | tangentProj_smul_normal n x hs] |
| 44 | |
| 45 | theorem pressureCoefficient_rescale (n nDot u Ku f : H) |
| 46 | (rate amp : ℝ) {s : ℝ} (hs : s ≠ 0) : |
| 47 | pressureCoefficient (s • n) ((s * rate) • nDot) (amp • u) |
| 48 | ((rate * amp) • Ku) ((rate * amp) • f) = |
| 49 | (rate * amp / s) * pressureCoefficient n nDot u Ku f := by |
| 50 | by_cases hn : n = 0 |
| 51 | · simp [hn, pressureCoefficient] |
| 52 | have hn2 : ⟪n, n⟫_ℝ ≠ 0 := inner_self_ne_zero.mpr hn |
| 53 | simp only [pressureCoefficient, real_inner_smul_left, real_inner_smul_right] |
| 54 | field_simp |
| 55 | |
| 56 | theorem projectedRhs_eq_pressure (n nDot u Ku f : H) (δ : ℝ) : |
| 57 | projectedRhs n nDot u Ku f δ = |
| 58 | pressureCoefficient n nDot u Ku f • n - (Ku + δ • u + f) := by |
| 59 | apply eq_sub_iff_add_eq.mpr |
| 60 | simpa only [add_assoc] using projected_balance n nDot u Ku f δ |
| 61 | |
| 62 | theorem projectedRhs_rescale (n nDot u Ku f : H) |
| 63 | (rate amp δ : ℝ) {s : ℝ} (hs : s ≠ 0) : |
| 64 | projectedRhs (s • n) ((s * rate) • nDot) (amp • u) |
| 65 | ((rate * amp) • Ku) ((rate * amp) • f) (rate * δ) = |
| 66 | (rate * amp) • projectedRhs n nDot u Ku f δ := by |
| 67 | rw [projectedRhs_eq_pressure, projectedRhs_eq_pressure, |
| 68 | pressureCoefficient_rescale n nDot u Ku f rate amp hs] |
| 69 | simp only [smul_smul] |
| 70 | have hc : (rate * amp / s * pressureCoefficient n nDot u Ku f) * s = |
| 71 | (rate * amp) * pressureCoefficient n nDot u Ku f := by |
| 72 | field_simp |
| 73 | rw [hc] |
| 74 | module |
| 75 | |
| 76 | theorem projectedOperator_rescale (n nDot : H) (K : H →L[ℝ] H) |
| 77 | (rate δ : ℝ) {s : ℝ} (hs : s ≠ 0) : |
| 78 | TangentODE.projectedOperator (s • n) ((s * rate) • nDot) |
| 79 | (rate • K) (rate * δ) = rate • TangentODE.projectedOperator n nDot K δ := by |
| 80 | ext x |
| 81 | have hn : TangentODE.projectedOperator (s • n) ((s * rate) • nDot) |
| 82 | (rate • K) (rate * δ) x = |
| 83 | projectedRhs (s • n) ((s * rate) • nDot) x (rate • K x) 0 (rate * δ) := by |
| 84 | simpa [tangentProj] using |
| 85 | TangentODE.projectedOperator_apply (s • n) ((s * rate) • nDot) x 0 |
| 86 | (rate • K) (rate * δ) |
| 87 | have ho : TangentODE.projectedOperator n nDot K δ x = |
| 88 | projectedRhs n nDot x (K x) 0 δ := by |
| 89 | simpa [tangentProj] using TangentODE.projectedOperator_apply n nDot x 0 K δ |
| 90 | rw [hn] |
| 91 | simp only [_root_.smul_apply, ho] |
| 92 | simpa only [one_smul, mul_one, smul_zero] using |
| 93 | projectedRhs_rescale n nDot x (K x) 0 rate 1 δ hs |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end NavierStokes.NormalScaling |