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.EulerProof |
| 2 | import Euler.PacketResidualGrades |
| 3 | |
| 4 | /-! The linear and bilinear packet operators on actual space-time value/derivative jets. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | |
| 9 | namespace EulerPacketPointJets |
| 10 | |
| 11 | open EulerSmoothLimit InnerProductSpace EulerFiniteGrades |
| 12 | open scoped ContDiff |
| 13 | |
| 14 | abbrev Domain := ℝ × (Space × ℝ) |
| 15 | abbrev Jet (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] := E × (Domain →L[ℝ] E) |
| 16 | abbrev VectorJet := Jet Space |
| 17 | abbrev ScalarJet := Jet ℝ |
| 18 | |
| 19 | def timeDirection : Domain := (1, (0, 0)) |
| 20 | def angleDirection : Domain := (0, (0, 1)) |
| 21 | |
| 22 | def spatialInjection : Space →L[ℝ] Domain := |
| 23 | (0 : Space →L[ℝ] ℝ).prod ((ContinuousLinearMap.id ℝ Space).prod (0 : Space →L[ℝ] ℝ)) |
| 24 | |
| 25 | def jet {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 26 | (f : Domain → E) (z : Domain) : Jet E := (f z, fderiv ℝ f z) |
| 27 | |
| 28 | def linearPart (M : Space →L[ℝ] Space) : VectorJet →ₗ[ℝ] Space where |
| 29 | toFun J := J.2 timeDirection + M J.1 |
| 30 | map_add' J K := by simp [add_add_add_comm] |
| 31 | map_smul' c J := by simp [smul_add] |
| 32 | |
| 33 | def slowPressure (FInv : Space →L[ℝ] Space) : ScalarJet →ₗ[ℝ] Space where |
| 34 | toFun J := FInv.adjoint ((toDual ℝ Space).symm (J.2.comp spatialInjection)) |
| 35 | map_add' J K := by simp [ContinuousLinearMap.add_comp] |
| 36 | map_smul' c J := by simp [ContinuousLinearMap.smul_comp] |
| 37 | |
| 38 | def fastPressure (m : Space) : ScalarJet →ₗ[ℝ] Space where |
| 39 | toFun J := J.2 angleDirection • m |
| 40 | map_add' J K := by simp [add_smul] |
| 41 | map_smul' c J := by simp [smul_smul] |
| 42 | |
| 43 | def slowAdvection (FInv : Space →L[ℝ] Space) : VectorJet →ₗ[ℝ] VectorJet →ₗ[ℝ] Space where |
| 44 | toFun J := |
| 45 | { toFun := fun K => K.2 (spatialInjection (FInv J.1)) |
| 46 | map_add' K H := by simp |
| 47 | map_smul' c K := by simp } |
| 48 | map_add' J K := by |
| 49 | apply LinearMap.ext |
| 50 | intro H |
| 51 | simp |
| 52 | map_smul' c J := by |
| 53 | apply LinearMap.ext |
| 54 | intro K |
| 55 | simp |
| 56 | |
| 57 | def fastAdvection (m : Space) : VectorJet →ₗ[ℝ] VectorJet →ₗ[ℝ] Space where |
| 58 | toFun J := |
| 59 | { toFun := fun K => ⟪m, J.1⟫_ℝ • K.2 angleDirection |
| 60 | map_add' K H := by simp [smul_add] |
| 61 | map_smul' c K := by simp [smul_smul, mul_comm] } |
| 62 | map_add' J K := by |
| 63 | apply LinearMap.ext |
| 64 | intro H |
| 65 | simp [inner_add_right, add_smul] |
| 66 | map_smul' c J := by |
| 67 | apply LinearMap.ext |
| 68 | intro K |
| 69 | simp [inner_smul_right, smul_smul] |
| 70 | |
| 71 | def fieldSum {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 72 | (M : ℕ) (κ : ℝ) (u : ℕ → Domain → E) (z : Domain) : E := |
| 73 | evaluate M κ (fun n => u n z) |
| 74 | |
| 75 | /-- Taking the actual first jet commutes with a finite packet sum. -/ |
| 76 | theorem jet_fieldSum {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 77 | (M : ℕ) (κ : ℝ) (u : ℕ → Domain → E) (z : Domain) |
| 78 | (hu : ∀ n ≤ M, DifferentiableAt ℝ (u n) z) : |
| 79 | jet (fieldSum M κ u) z = evaluate M κ (fun n => jet (u n) z) := by |
| 80 | have hd := HasFDerivAt.fun_sum (u := Finset.range (M+1)) |
| 81 | (fun n hn => ((hu n (by have h := Finset.mem_range.mp hn; omega)).hasFDerivAt).const_smul (κ^n)) |
| 82 | apply Prod.ext |
| 83 | · change (∑ n ∈ Finset.range (M+1), κ^n • u n z) = |
| 84 | (AddMonoidHom.fst E (Domain →L[ℝ] E)) |
| 85 | (∑ n ∈ Finset.range (M+1), κ^n • jet (u n) z) |
| 86 | rw [map_sum] |
| 87 | rfl |
| 88 | · change fderiv ℝ (fieldSum M κ u) z = _ |
| 89 | rw [show fderiv ℝ (fieldSum M κ u) z = |
| 90 | ∑ n ∈ Finset.range (M+1), κ^n • fderiv ℝ (u n) z from hd.fderiv] |
| 91 | change (∑ n ∈ Finset.range (M+1), κ^n • fderiv ℝ (u n) z) = |
| 92 | (AddMonoidHom.snd E (Domain →L[ℝ] E)) |
| 93 | (∑ n ∈ Finset.range (M+1), κ^n • jet (u n) z) |
| 94 | rw [map_sum] |
| 95 | rfl |
| 96 | |
| 97 | /-- This is the literal normalized momentum expression evaluated through its true first derivatives. -/ |
| 98 | def momentumResidual (κ : ℝ) (FInv M : Space →L[ℝ] Space) (m : Space) |
| 99 | (u : Domain → Space) (p : Domain → ℝ) (z : Domain) : Space := |
| 100 | linearPart M (jet u z) + slowPressure FInv (jet p z) + κ⁻¹ • fastPressure m (jet p z) + |
| 101 | slowAdvection FInv (jet u z) (jet u z) + κ⁻¹ • fastAdvection m (jet u z) (jet u z) |
| 102 | |
| 103 | theorem momentumResidual_formula (κ : ℝ) (FInv M : Space →L[ℝ] Space) (m : Space) |
| 104 | (u : Domain → Space) (p : Domain → ℝ) (z : Domain) : |
| 105 | momentumResidual κ FInv M m u p z = |
| 106 | fderiv ℝ u z timeDirection + M (u z) + |
| 107 | FInv.adjoint ((toDual ℝ Space).symm ((fderiv ℝ p z).comp spatialInjection)) + |
| 108 | κ⁻¹ • (fderiv ℝ p z angleDirection • m) + |
| 109 | fderiv ℝ u z (spatialInjection (FInv (u z))) + |
| 110 | κ⁻¹ • (⟪m, u z⟫_ℝ • fderiv ℝ u z angleDirection) := rfl |
| 111 | |
| 112 | end EulerPacketPointJets |