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.PacketExactPhysicalDivergence |
| 2 | |
| 3 | /-! The actual parent velocity plus the constructed exact packet satisfies |
| 4 | both classical Euler equations in physical coordinates. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketPhysicalTransform |
| 9 | |
| 10 | open Set Filter InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 11 | EulerLiftedGradientSpace EulerAllOrderCorrectionData EulerAllOrderDriftCorrection |
| 12 | EulerPacketCorrectionCoefficients EulerLagrangian |
| 13 | open scoped Topology ContDiff |
| 14 | |
| 15 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 16 | (D : EulerTransversePacketProvider.Data U) {P : ℝ} [Fact (0 < P)] |
| 17 | {κ : ℝ} {hκ : |κ| ≤ 1} {Z R : FieldTower P D.T} |
| 18 | {B : Budget P D.T_pos (correctionData D P κ hκ Z R)} |
| 19 | (S : ExactLiftedPacket P D.T_pos (correctionData D P κ hκ Z R) B) |
| 20 | |
| 21 | theorem exact_source_velocity_differentiableAt |
| 22 | (k : ℝ) (F : ℝ × Space → Space →L[ℝ] Space) (X Y : ℝ × Space → Space) |
| 23 | (t : ℝ) (ht : t ∈ Ioo 0 D.T) (x : Space) |
| 24 | (hleft : Y (t,X (t,x)) = x) |
| 25 | (hY : DifferentiableAt ℝ (inverseCoordinates Y) (t,X (t,x))) |
| 26 | (hX : ContDiffAt ℝ 2 X (t,x)) |
| 27 | (hframe : F =ᶠ[𝓝 (t,x)] fun r => (fderiv ℝ X r).comp (inr ℝ ℝ Space)) : |
| 28 | DifferentiableAt ℝ (physicalVelocity κ k D.m₀ F S.rawVelocity Y) (t,X (t,x)) := by |
| 29 | have hDF : DifferentiableAt ℝ (fun r => (fderiv ℝ X r).comp (inr ℝ ℝ Space)) (t,x) := |
| 30 | ((hX.fderiv_right (m := 1) le_rfl).differentiableAt one_ne_zero).clm_comp |
| 31 | (differentiableAt_const (inr ℝ ℝ Space)) |
| 32 | have hF : HasFDerivAt F (fderiv ℝ F (t,x)) (t,x) := |
| 33 | (hDF.congr_of_eventuallyEq hframe).hasFDerivAt |
| 34 | have hz : HasFDerivAt S.rawVelocity |
| 35 | (fderiv ℝ S.rawVelocity (spaceTimeGraph k D.m₀ (t,x))) |
| 36 | (spaceTimeGraph k D.m₀ (t,x)) := |
| 37 | (S.rawVelocity_hasFDerivAt t ht (x,k*⟪D.m₀,x⟫_ℝ)).differentiableAt.hasFDerivAt |
| 38 | have hG := graphVelocity_hasFDerivAt κ k D.m₀ F S.rawVelocity (t,x) _ _ hF hz |
| 39 | have hyx : inverseCoordinates Y (t,X (t,x)) = (t,x) := by |
| 40 | simp only [inverseCoordinates,hleft] |
| 41 | apply DifferentiableAt.comp _ _ hY |
| 42 | rw [hyx] |
| 43 | exact hG.differentiableAt |
| 44 | |
| 45 | /-- The classical momentum and incompressibility equations for the actual |
| 46 | new velocity, using the constructed normalized scalar pressure. -/ |
| 47 | theorem exact_source_euler |
| 48 | (k : ℝ) (hk : k*κ=1) |
| 49 | (F : ℝ × Space → Space →L[ℝ] Space) |
| 50 | (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) (X Y : ℝ × Space → Space) |
| 51 | (hmatch : ∀ s : Icc (0 : ℝ) D.T, ∀ y, F (s,y) = D.F.field s y) |
| 52 | (t : ℝ) (ht : t ∈ Ioo 0 D.T) (x : Space) |
| 53 | (hleft : ∀ s y, Y (s,X (s,y)) = y) |
| 54 | (hY : DifferentiableAt ℝ (inverseCoordinates Y) (t,X (t,x))) |
| 55 | (hX : ContDiffAt ℝ 2 X (t,x)) |
| 56 | (hframe : F =ᶠ[𝓝 (t,x)] fun r => (fderiv ℝ X r).comp (inr ℝ ℝ Space)) |
| 57 | (hflow : (fun r => fderiv ℝ X r (1,0)) =ᶠ[𝓝 (t,x)] fun r => u (r.1,X r)) |
| 58 | (hspace : ∀ y, fderiv ℝ (fun a => X (t,a)) y = F (t,y)) |
| 59 | (hdet : ∀ y, (EulerPacketPiola.operatorMatrix (F (t,y))).det = 1) |
| 60 | (hu : DifferentiableAt ℝ u (t,X (t,x))) |
| 61 | (hp : DifferentiableAt ℝ (fun y => p (t,y)) (X (t,x))) |
| 62 | (hparent : momentumResidual u p (t,X (t,x)) = 0) |
| 63 | (hdiv : divergence (fun y => u (t,y)) (X (t,x)) = 0) : |
| 64 | momentumResidual (fun q => u q+physicalVelocity κ k D.m₀ F S.rawVelocity Y q) |
| 65 | (fun q => p q+physicalPressure (S.rawGraphPotential k) Y q) (t,X (t,x)) = 0 ∧ |
| 66 | divergence (fun y => u (t,y)+physicalVelocity κ k D.m₀ F S.rawVelocity Y (t,y)) |
| 67 | (X (t,x)) = 0 := by |
| 68 | refine ⟨exact_source_momentum D S k hk F u p X Y hmatch t ht x |
| 69 | hleft hY hX hframe hflow hu hp hparent,?_⟩ |
| 70 | have hXs : ContDiffAt ℝ 2 (fun y => X (t,y)) x := |
| 71 | hX.comp x (contDiffAt_const.prodMk contDiffAt_id) |
| 72 | have hYs := hY.snd.comp (X (t,x)) (hasFDerivAt_prodMk_right t (X (t,x))).differentiableAt |
| 73 | change DifferentiableAt ℝ (fun y => Y (t,y)) (X (t,x)) at hYs |
| 74 | have hWdiv := exact_source_divergence D S k hk F X Y ⟨t,ht.1.le,ht.2.le⟩ x |
| 75 | (hmatch ⟨t,ht.1.le,ht.2.le⟩) hXs hspace hdet (hleft t) hYs |
| 76 | have huS : DifferentiableAt ℝ (fun y => u (t,y)) (X (t,x)) := |
| 77 | hu.comp (X (t,x)) (hasFDerivAt_prodMk_right t (X (t,x))).differentiableAt |
| 78 | have hW := exact_source_velocity_differentiableAt D S k F X Y t ht x |
| 79 | (hleft t x) hY hX hframe |
| 80 | have hWS : DifferentiableAt ℝ |
| 81 | (fun y => physicalVelocity κ k D.m₀ F S.rawVelocity Y (t,y)) (X (t,x)) := |
| 82 | hW.comp (X (t,x)) (hasFDerivAt_prodMk_right t (X (t,x))).differentiableAt |
| 83 | rw [divergence_eq_trace,← coordinateTrace_eq_linearTrace,fderiv_fun_add huS hWS, |
| 84 | map_add,coordinateTrace_eq_linearTrace,coordinateTrace_eq_linearTrace] |
| 85 | change divergence (fun y => u (t,y)) (X (t,x)) + |
| 86 | divergence (fun y => physicalVelocity κ k D.m₀ F S.rawVelocity Y (t,y)) (X (t,x)) = 0 |
| 87 | rw [hdiv,hWdiv,add_zero] |
| 88 | |
| 89 | end EulerPacketPhysicalTransform |