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 Euler.TransverseStrongAlgebra |
| 2 | |
| 3 | /-! |
| 4 | # Recovering the transverse normal residual |
| 5 | |
| 6 | A residual annihilated by the adjoint of a frame spanning `m⊥` is exactly its |
| 7 | normal component. Applying this elementary Hilbert-space fact to the proved |
| 8 | projected coordinate equation gives the pressure coefficient in equation (11). |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerTransverseNormalResidual |
| 14 | |
| 15 | open InnerProductSpace ContinuousLinearMap EulerTransverseGramInverse |
| 16 | |
| 17 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 18 | |
| 19 | /-- The literal scalar normal component, with the source denominator `D_m`. -/ |
| 20 | def normalCoefficient (m r : E) : ℝ := ⟪m, r⟫_ℝ / ‖m‖^2 |
| 21 | |
| 22 | /-- Orthogonality to the tangent hyperplane determines the normal component. -/ |
| 23 | theorem eq_normal_of_tangent_orthogonal (m r : E) (hm : m ≠ 0) |
| 24 | (hr : ∀ x : E, ⟪m, x⟫_ℝ = 0 → ⟪r, x⟫_ℝ = 0) : |
| 25 | r = normalCoefficient m r • m := by |
| 26 | let w := r - normalCoefficient m r • m |
| 27 | have hn : ‖m‖^2 ≠ 0 := pow_ne_zero 2 (norm_ne_zero_iff.mpr hm) |
| 28 | have hw : ⟪m, w⟫_ℝ = 0 := by |
| 29 | simp only [w, inner_sub_right, inner_smul_right, real_inner_self_eq_norm_sq, normalCoefficient] |
| 30 | field_simp |
| 31 | ring |
| 32 | have hz : w = 0 := by |
| 33 | apply (inner_self_eq_zero (𝕜 := ℝ)).mp |
| 34 | change ⟪r - normalCoefficient m r • m, w⟫_ℝ = 0 |
| 35 | rw [inner_sub_left, real_inner_smul_left, hr w hw, hw, mul_zero, sub_self] |
| 36 | exact sub_eq_zero.mp hz |
| 37 | |
| 38 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 39 | [CompleteSpace U] [CompleteSpace E] |
| 40 | |
| 41 | /-- A frame spanning the tangent hyperplane detects exactly the normal residual. -/ |
| 42 | theorem eq_normal_of_adjoint_zero (Q : U →L[ℝ] E) (m r : E) (hm : m ≠ 0) |
| 43 | (hRange : ∀ η, ⟪m, η⟫_ℝ = 0 → ∃ x : U, Q x = η) |
| 44 | (hr : Q.adjoint r = 0) : r = normalCoefficient m r • m := by |
| 45 | apply eq_normal_of_tangent_orthogonal m r hm |
| 46 | intro η hη |
| 47 | obtain ⟨x, rfl⟩ := hRange η hη |
| 48 | rw [← adjoint_inner_left, hr, inner_zero_left] |
| 49 | |
| 50 | /-- Equation (10), together with `Q_t = M Q`, gives the exact source pressure |
| 51 | coefficient and velocity equation (11). No pressure residual is assumed. -/ |
| 52 | theorem physical_velocity_balance (Q Q₁ : U →L[ℝ] E) (M : E →L[ℝ] E) |
| 53 | (m : E) (hm : m ≠ 0) |
| 54 | (hTangent : ∀ x, ⟪m, Q x⟫_ℝ = 0) |
| 55 | (hRange : ∀ η, ⟪m, η⟫_ℝ = 0 → ∃ x : U, Q x = η) |
| 56 | (hflow : Q₁ = M.comp Q) (v a : U) (f : E) |
| 57 | (heq : gram Q a = Q.adjoint (f - (2 : ℝ) • Q₁ v)) : |
| 58 | (Q₁ v + Q a) + M (Q v) + |
| 59 | ((⟪m, f⟫_ℝ - 2 * ⟪m, M (Q v)⟫_ℝ) / ‖m‖^2) • m = f := by |
| 60 | let r := f - (Q₁ v + Q a) - M (Q v) |
| 61 | have hQr : Q.adjoint r = 0 := by |
| 62 | dsimp only [r] |
| 63 | rw [hflow] at heq ⊢ |
| 64 | simp only [gram, comp_apply, map_sub, map_add, map_smul] at heq ⊢ |
| 65 | linear_combination (norm := module) -heq |
| 66 | have hr := eq_normal_of_adjoint_zero Q m r hm hRange hQr |
| 67 | have hco : normalCoefficient m r = (⟪m, f⟫_ℝ - 2 * ⟪m, M (Q v)⟫_ℝ) / ‖m‖^2 := by |
| 68 | simp only [normalCoefficient, r, inner_sub_right, inner_add_right, hTangent, |
| 69 | add_zero, hflow, comp_apply] |
| 70 | ring |
| 71 | rw [hco] at hr |
| 72 | calc |
| 73 | (Q₁ v + Q a) + M (Q v) + |
| 74 | ((⟪m, f⟫_ℝ - 2 * ⟪m, M (Q v)⟫_ℝ) / ‖m‖^2) • m = |
| 75 | (Q₁ v + Q a) + M (Q v) + r := by rw [hr] |
| 76 | _ = f := by dsimp only [r]; abel |
| 77 | |
| 78 | end EulerTransverseNormalResidual |