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.PacketPiolaAlgebra |
| 2 | import Euler.TransverseGramInverse |
| 3 | |
| 4 | /-! |
| 5 | The actual curl Piola identity for a determinant-one coordinate map. |
| 6 | The derivative of the Jacobian cancels by symmetry of the genuine second |
| 7 | Fréchet derivative. No curl identity or commutation relation is assumed. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | |
| 13 | namespace EulerPacketPiola |
| 14 | |
| 15 | open EulerSmoothLimit EulerMeanBoundary EulerMeanCutoffCurl EulerVectorCalculus |
| 16 | InnerProductSpace ContinuousLinearMap EulerTransverseGramInverse |
| 17 | open scoped ContDiff |
| 18 | |
| 19 | private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance |
| 20 | private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance |
| 21 | |
| 22 | theorem adjoint_apply_coordinate (A : Space →L[ℝ] Space) (q : Space) (i : Fin 3) : |
| 23 | (A.adjoint q) i = ⟪A (EuclideanSpace.single i 1), q⟫_ℝ := by |
| 24 | simpa only [EuclideanSpace.inner_single_left, conj_trivial, one_mul] using |
| 25 | A.adjoint_inner_right (EuclideanSpace.single i 1) q |
| 26 | |
| 27 | /-- Pull back a Euclidean covector field by the actual derivative of the coordinate map. -/ |
| 28 | def pullbackCovector (Ξ Q : Space → Space) (x : Space) : Space := |
| 29 | (fderiv ℝ Ξ x).adjoint (Q x) |
| 30 | |
| 31 | /-- Symmetric second derivatives remove the entire derivative-of-Jacobian term from curl. -/ |
| 32 | theorem curl_pullbackCovector (Ξ Q : Space → Space) (hΞ : ContDiff ℝ 2 Ξ) |
| 33 | (x : Space) (hQ : DifferentiableAt ℝ Q x) : |
| 34 | vectorCurl (pullbackCovector Ξ Q) x = |
| 35 | curlMatrix ((fderiv ℝ Ξ x).adjoint.comp (fderiv ℝ Q x)) := by |
| 36 | have hD : DifferentiableAt ℝ (fderiv ℝ Ξ) x := |
| 37 | ((hΞ.fderiv_right (m := 1) le_rfl).differentiable one_ne_zero).differentiableAt |
| 38 | have hA : HasFDerivAt (fun y => (fderiv ℝ Ξ y).adjoint) |
| 39 | ((realAdjoint (U := Space) (E := Space)).comp (fderiv ℝ (fderiv ℝ Ξ) x)) x := |
| 40 | (realAdjoint (U := Space) (E := Space)).hasFDerivAt.comp x hD.hasFDerivAt |
| 41 | have hp := hA.clm_apply hQ.hasFDerivAt |
| 42 | have hzero : curlMatrix |
| 43 | (((realAdjoint (U := Space) (E := Space)).comp |
| 44 | (fderiv ℝ (fderiv ℝ Ξ) x)).flip (Q x)) = 0 := by |
| 45 | ext i |
| 46 | change ((fderiv ℝ (fderiv ℝ Ξ) x (EuclideanSpace.single (i + 1) 1)).adjoint (Q x)) (i + 2) - |
| 47 | ((fderiv ℝ (fderiv ℝ Ξ) x (EuclideanSpace.single (i + 2) 1)).adjoint (Q x)) (i + 1) = 0 |
| 48 | rw [adjoint_apply_coordinate, adjoint_apply_coordinate] |
| 49 | have hs := ((hΞ.contDiffAt (x := x)).isSymmSndFDerivAt (n := 2) (by simp)).eq |
| 50 | (EuclideanSpace.single (i + 1) 1) (EuclideanSpace.single (i + 2) 1) |
| 51 | rw [hs, sub_self] |
| 52 | change vectorCurl (fun y => (fderiv ℝ Ξ y).adjoint (Q y)) x = _ |
| 53 | rw [vectorCurl_eq_matrix _ x hp.differentiableAt, hp.fderiv, curlMatrix_add, hzero, add_zero] |
| 54 | |
| 55 | /-- The source's slow transformed curl `d × Q`, with `d=F⁻ᵀ ∇`. -/ |
| 56 | def transformedCurl (F : Space → Space ≃L[ℝ] Space) (Q : Space → Space) (x : Space) : Space := |
| 57 | curlMatrix ((fderiv ℝ Q x).comp (F x).symm.toContinuousLinearMap) |
| 58 | |
| 59 | /-- For the actual Jacobian and unit determinant, `F⁻¹(d×Q)=curl(FᵀQ)`. -/ |
| 60 | theorem piola_curl (Ξ Q : Space → Space) (hΞ : ContDiff ℝ 2 Ξ) |
| 61 | (F : Space ≃L[ℝ] Space) (x : Space) |
| 62 | (hF : fderiv ℝ Ξ x = F.toContinuousLinearMap) |
| 63 | (hdet : (operatorMatrix F.toContinuousLinearMap).det = 1) |
| 64 | (hQ : DifferentiableAt ℝ Q x) : |
| 65 | F.symm (curlMatrix ((fderiv ℝ Q x).comp F.symm.toContinuousLinearMap)) = |
| 66 | vectorCurl (pullbackCovector Ξ Q) x := by |
| 67 | rw [curl_pullbackCovector Ξ Q hΞ x hQ, hF] |
| 68 | exact (curlMatrix_piola F hdet (fderiv ℝ Q x)).symm |
| 69 | |
| 70 | theorem pullbackCovector_smooth (Ξ Q : Space → Space) |
| 71 | (hΞ : ContDiff ℝ ∞ Ξ) (hQ : ContDiff ℝ ∞ Q) : |
| 72 | ContDiff ℝ ∞ (pullbackCovector Ξ Q) := |
| 73 | ((realAdjoint (U := Space) (E := Space)).contDiff.comp |
| 74 | (hΞ.fderiv_right (m := ∞) (by simp))).clm_apply hQ |
| 75 | |
| 76 | /-- The transformed curl produces an actually divergence-free label velocity. -/ |
| 77 | theorem divergence_piola_curl (Ξ Q : Space → Space) |
| 78 | (hΞ : ContDiff ℝ ∞ Ξ) (hQ : ContDiff ℝ ∞ Q) |
| 79 | (F : Space → Space ≃L[ℝ] Space) |
| 80 | (hF : ∀ x, fderiv ℝ Ξ x = (F x).toContinuousLinearMap) |
| 81 | (hdet : ∀ x, (operatorMatrix (F x).toContinuousLinearMap).det = 1) (x : Space) : |
| 82 | divergence (fun y => (F y).symm (transformedCurl F Q y)) x = 0 := by |
| 83 | have he : (fun y => (F y).symm (transformedCurl F Q y)) = |
| 84 | vectorCurl (pullbackCovector Ξ Q) := by |
| 85 | funext y |
| 86 | exact piola_curl Ξ Q (hΞ.of_le (by simp)) (F y) y (hF y) (hdet y) |
| 87 | ((hQ.differentiable (by simp)).differentiableAt) |
| 88 | rw [he] |
| 89 | exact divergence_curl (fun i y => pullbackCovector Ξ Q y i) |
| 90 | ((contDiff_piLp 2).mp (pullbackCovector_smooth Ξ Q hΞ hQ)) x |
| 91 | |
| 92 | end EulerPacketPiola |