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.TransverseGramPath |
| 2 | |
| 3 | /-! |
| 4 | # Coefficient identities in the strong transverse equation |
| 5 | |
| 6 | The only cancellation used here is the source frame equation `Q_tt = -H Q`. |
| 7 | The time derivatives of the Gram and mixed coefficients are genuine derivatives |
| 8 | of the prescribed coefficient paths. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerTransverseStrongAlgebra |
| 14 | |
| 15 | open Set ContinuousLinearMap EulerVolterraConvolution |
| 16 | EulerTransverseGramInverse EulerTransverseGramPath |
| 17 | |
| 18 | variable {U E : Type*} |
| 19 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 20 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 21 | |
| 22 | variable (T : ℝ) (Q Q₁ Q₂ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 23 | |
| 24 | /-- The mixed coefficient `Q* Q_t` in the transverse momentum. -/ |
| 25 | def mixedPath : C(Icc (0 : ℝ) T, U →L[ℝ] U) := |
| 26 | ⟨fun t => (Q t).adjoint.comp (Q₁ t), |
| 27 | ((realAdjoint (U := U) (E := E)).continuous.comp Q.continuous).clm_comp Q₁.continuous⟩ |
| 28 | |
| 29 | /-- The actual product-rule derivative `Q_t* Q_t + Q* Q_tt`. -/ |
| 30 | def mixedDerivativePath : C(Icc (0 : ℝ) T, U →L[ℝ] U) := |
| 31 | ⟨fun t => (Q₁ t).adjoint.comp (Q₁ t) + (Q t).adjoint.comp (Q₂ t), |
| 32 | (((realAdjoint (U := U) (E := E)).continuous.comp Q₁.continuous).clm_comp |
| 33 | Q₁.continuous).add |
| 34 | (((realAdjoint (U := U) (E := E)).continuous.comp Q.continuous).clm_comp |
| 35 | Q₂.continuous)⟩ |
| 36 | |
| 37 | variable (hT : 0 ≤ T) |
| 38 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 39 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 40 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 41 | HasDerivWithinAt (extendPath T hT Q₁) (Q₂ t) (Icc (0 : ℝ) T) t) |
| 42 | |
| 43 | include hd in |
| 44 | /-- The actual Gram derivative on the time interval. -/ |
| 45 | theorem gramPath_hasDerivWithinAt (t : Icc (0 : ℝ) T) : |
| 46 | HasDerivWithinAt (extendPath T hT (gramPath T Q)) |
| 47 | (gramDerivativePath T Q Q₁ t) (Icc (0 : ℝ) T) t := by |
| 48 | have h := hasDerivWithinAt_gram (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t (hd t) |
| 49 | convert h using 1 |
| 50 | · rfl |
| 51 | · simp only [extendPath, projIcc_of_mem hT t.property] |
| 52 | rfl |
| 53 | |
| 54 | include hd hd₁ in |
| 55 | /-- The actual mixed-coefficient derivative on the time interval. -/ |
| 56 | theorem mixedPath_hasDerivWithinAt (t : Icc (0 : ℝ) T) : |
| 57 | HasDerivWithinAt (extendPath T hT (mixedPath T Q Q₁)) |
| 58 | (mixedDerivativePath T Q Q₁ Q₂ t) (Icc (0 : ℝ) T) t := by |
| 59 | have h := (hasDerivWithinAt_adjoint (extendPath T hT Q) (Q₁ t) |
| 60 | (Icc (0 : ℝ) T) t (hd t)).clm_comp (hd₁ t) |
| 61 | convert h using 1 |
| 62 | · rfl |
| 63 | · simp only [extendPath, projIcc_of_mem hT t.property] |
| 64 | rfl |
| 65 | |
| 66 | /-- The genuine Gram inverse recovers the coordinate velocity from momentum. -/ |
| 67 | theorem inverse_momentum_identity (Q Q₁ : U →L[ℝ] E) |
| 68 | (c : ℝ) (hc : 0 < c) (hQ : ∀ x, c * ‖x‖ ^ 2 ≤ ‖Q x‖ ^ 2) |
| 69 | (ξ v : U) (u : E) (hu : u = Q₁ ξ + Q v) : |
| 70 | gramInverse Q c hc hQ (Q.adjoint u - Q.adjoint (Q₁ ξ)) = v := by |
| 71 | rw [hu, map_add, add_sub_cancel_left] |
| 72 | exact inverse_gram_apply Q c hc hQ v |
| 73 | |
| 74 | /-- The frame equation cancels the potential term and gives exactly the |
| 75 | projected coordinate equation (10). -/ |
| 76 | theorem projected_equation_of_momentum_balance |
| 77 | (Q Q₁ Q₂ : U →L[ℝ] E) (H : E →L[ℝ] E) |
| 78 | (ξ v a : U) (u f : E) |
| 79 | (hu : u = Q₁ ξ + Q v) |
| 80 | (hframe : Q₂ = -(H.comp Q)) |
| 81 | (hbalance : Q₁.adjoint u - Q.adjoint (H (Q ξ)) + Q.adjoint f = |
| 82 | (Q₁.adjoint.comp Q + Q.adjoint.comp Q₁) v + gram Q a + |
| 83 | (Q₁.adjoint.comp Q₁ + Q.adjoint.comp Q₂) ξ + Q.adjoint (Q₁ v)) : |
| 84 | gram Q a = Q.adjoint (f - (2 : ℝ) • Q₁ v) := by |
| 85 | simp only [hu, hframe, comp_apply, add_apply, neg_apply, map_add, map_neg] at hbalance |
| 86 | simp only [map_sub, map_smul] |
| 87 | linear_combination (norm := module) -hbalance |
| 88 | |
| 89 | end EulerTransverseStrongAlgebra |