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.MeanPacketForcing |
| 2 | import Euler.MeanPathTimeDerivative |
| 3 | |
| 4 | /-! |
| 5 | # A concrete raw-field provider for the mean packet equation |
| 6 | |
| 7 | A raw forcing is supplied only through its literal smooth L² slices. The |
| 8 | returned velocity and normalized scalar pressure are constructed by the |
| 9 | actual source variational solve and its genuine classical representatives. |
| 10 | The function is total on raw fields; its PDE contract is proved precisely on |
| 11 | the admissible domain, without a smooth time extension across endpoints. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace EulerMeanPacketProvider |
| 17 | |
| 18 | open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerMeanSolenoidal |
| 19 | EulerMeanCoefficients EulerMeanVariationalInverse EulerMeanScalarPressure |
| 20 | EulerMeanSmoothRepresentative EulerMeanTimeContinuousTranslation |
| 21 | EulerMeanPathTimeDerivative EulerTimeLp EulerVolterraConvolution |
| 22 | EulerPacketPointJets EulerPacketProfileRecursion |
| 23 | open scoped ContDiff |
| 24 | |
| 25 | namespace Data |
| 26 | |
| 27 | /-- A continuous closed-interval retraction, used only to define the raw field outside its domain. -/ |
| 28 | def clamp (D : Data) (t : ℝ) : Icc (0 : ℝ) D.T := projIcc 0 D.T D.T_pos.le t |
| 29 | |
| 30 | @[simp] theorem clamp_coe (D : Data) (t : Icc (0 : ℝ) D.T) : D.clamp t = t := |
| 31 | projIcc_of_mem D.T_pos.le t.property |
| 32 | |
| 33 | def inverseFrame (D : Data) (z : Domain) : Space →L[ℝ] Space := |
| 34 | D.FInv (D.clamp z.1) z.2.1 |
| 35 | |
| 36 | def strain (D : Data) (z : Domain) : Space →L[ℝ] Space := |
| 37 | D.M.field (D.clamp z.1) z.2.1 |
| 38 | |
| 39 | end Data |
| 40 | |
| 41 | namespace Forcing |
| 42 | |
| 43 | variable {D : Data} {raw : VectorField} (G : Forcing D raw) |
| 44 | |
| 45 | /-- Literal velocity returned by the genuine mean inverse. -/ |
| 46 | def vector : VectorField := fun z => |
| 47 | pathRepresentative D.T G.velocityPath G.velocityPath_orbit (D.clamp z.1) z.2.1 |
| 48 | |
| 49 | /-- Literal continuous time derivative of the velocity on the source interval. -/ |
| 50 | def vectorDerivative : VectorField := fun z => |
| 51 | pathRepresentative D.T G.derivativePath G.derivativePath_orbit (D.clamp z.1) z.2.1 |
| 52 | |
| 53 | /-- The normalized scalar pressure returned by the actual radial construction. -/ |
| 54 | def scalar : ScalarField := fun z => |
| 55 | pressureScalar D.T D.T_pos.le D.F D.F₁ D.opInv G.solution |
| 56 | D.frameLower D.frameLower_pos D.frame_lower G.path G.pressureForcePath_orbit |
| 57 | (D.clamp z.1) z.2.1 |
| 58 | |
| 59 | /-- The representative of the prescribed forcing is the original raw field, pointwise. -/ |
| 60 | theorem forcingRepresentative_eq (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 61 | pathRepresentative D.T G.path G.path_orbit t x = raw (t,(x,θ)) := by |
| 62 | have hrep : (G.path t : Space → Space) =ᵐ[volume] (G.slices t).field := by |
| 63 | rw [G.path_eq] |
| 64 | exact (G.slices t).toLp_ae |
| 65 | have he := representative_unique (G.path t) |
| 66 | (pathTranslation_evaluation_contDiff D.T G.path G.path_orbit t) (G.slices t).field |
| 67 | (G.slices t).smooth.continuous hrep |
| 68 | exact (congrFun he x).trans (G.raw_eq t x θ).symm |
| 69 | |
| 70 | theorem vector_angle_independent (t : ℝ) (x : Space) (θ η : ℝ) : |
| 71 | G.vector (t,(x,θ)) = G.vector (t,(x,η)) := rfl |
| 72 | |
| 73 | theorem scalar_angle_independent (t : ℝ) (x : Space) (θ η : ℝ) : |
| 74 | G.scalar (t,(x,θ)) = G.scalar (t,(x,η)) := rfl |
| 75 | |
| 76 | theorem scalar_normalized (t θ : ℝ) : G.scalar (t,(0,θ)) = 0 := |
| 77 | (pressureScalar_spec D.T D.T_pos.le D.F D.F₁ D.opInv G.solution |
| 78 | D.frameLower D.frameLower_pos D.frame_lower G.path G.pressureForcePath_orbit (D.clamp t)).2.1 |
| 79 | |
| 80 | /-- Actual spatial and angular regularity at every time. -/ |
| 81 | theorem vector_spatial_smooth (t : ℝ) : ContDiff ℝ ∞ (fun y : Space × ℝ => G.vector (t,y)) := |
| 82 | (pathRepresentative_smooth D.T G.velocityPath G.velocityPath_orbit (D.clamp t)).comp contDiff_fst |
| 83 | |
| 84 | theorem vectorDerivative_spatial_smooth (t : ℝ) : |
| 85 | ContDiff ℝ ∞ (fun y : Space × ℝ => G.vectorDerivative (t,y)) := |
| 86 | (pathRepresentative_smooth D.T G.derivativePath G.derivativePath_orbit (D.clamp t)).comp contDiff_fst |
| 87 | |
| 88 | theorem scalar_spatial_smooth (t : ℝ) : ContDiff ℝ ∞ (fun y : Space × ℝ => G.scalar (t,y)) := |
| 89 | (pressureScalar_spec D.T D.T_pos.le D.F D.F₁ D.opInv G.solution |
| 90 | D.frameLower D.frameLower_pos D.frame_lower G.path G.pressureForcePath_orbit (D.clamp t)).1.comp contDiff_fst |
| 91 | |
| 92 | /-- The returned velocity has the genuine within-time derivative at both endpoints too. -/ |
| 93 | theorem vector_hasDerivWithinAt (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 94 | HasDerivWithinAt (fun r => G.vector (r,(x,θ))) (G.vectorDerivative (t,(x,θ))) |
| 95 | (Icc (0 : ℝ) D.T) t := by |
| 96 | have ht := representative_hasDerivWithinAt D.T D.T_pos.le G.velocityPath G.derivativePath |
| 97 | G.velocityPath_time G.velocityPath_orbit G.derivativePath_orbit t x |
| 98 | simpa only [vector, vectorDerivative, pathRepresentative, Data.clamp, extendPath, |
| 99 | projIcc_of_mem D.T_pos.le t.property] using ht |
| 100 | |
| 101 | /-- The genuine raw mean equation, with the normalized actual scalar pressure. -/ |
| 102 | theorem equation (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 103 | G.vectorDerivative (t,(x,θ))+D.strain (t,(x,θ)) (G.vector (t,(x,θ)))+ |
| 104 | (D.inverseFrame (t,(x,θ))).adjoint (gradient (fun y => G.scalar (t,(y,θ))) x) = raw (t,(x,θ)) := by |
| 105 | have hp := pressureScalar_equation D.T D.T_pos.le D.F D.F₁ D.opInv G.solution |
| 106 | D.frameLower D.frameLower_pos D.frame_lower G.path G.pressureForcePath_orbit |
| 107 | D.T_pos D.opF_time D.M D.strain_equation D.FInv D.inverse_right |
| 108 | G.velocityPath_orbit G.derivativePath_orbit G.path_orbit t x |
| 109 | have hp := hp.trans (G.forcingRepresentative_eq t x θ) |
| 110 | simpa only [vector, vectorDerivative, scalar, Data.strain, Data.inverseFrame, Data.clamp_coe] using hp |
| 111 | |
| 112 | end Forcing |
| 113 | |
| 114 | /-- A total raw-field operator whose correctness is required on the proved admissible domain. -/ |
| 115 | def meanSolve (D : Data) (raw : VectorField) : VectorField × ScalarField := by |
| 116 | classical |
| 117 | exact if h : Nonempty (Forcing D raw) then |
| 118 | let G := Classical.choice h |
| 119 | (G.vector,G.scalar) |
| 120 | else (0,0) |
| 121 | |
| 122 | theorem meanSolve_of_admissible (D : Data) (raw : VectorField) (h : Nonempty (Forcing D raw)) : |
| 123 | meanSolve D raw = ((Classical.choice h).vector,(Classical.choice h).scalar) := by |
| 124 | simp only [meanSolve, dite_eq_left h] |
| 125 | |
| 126 | /-- The total provider is backed by an actual source solve on every admissible input. -/ |
| 127 | theorem meanSolve_contract (D : Data) (raw : VectorField) (h : Nonempty (Forcing D raw)) : |
| 128 | ∃ bt : VectorField, |
| 129 | (∀ (t : Icc (0 : ℝ) D.T) x θ, |
| 130 | HasDerivWithinAt (fun r => (meanSolve D raw).1 (r,(x,θ))) (bt (t,(x,θ))) (Icc (0 : ℝ) D.T) t) ∧ |
| 131 | (∀ (t : Icc (0 : ℝ) D.T) x θ, |
| 132 | bt (t,(x,θ))+D.strain (t,(x,θ)) ((meanSolve D raw).1 (t,(x,θ)))+ |
| 133 | (D.inverseFrame (t,(x,θ))).adjoint |
| 134 | (gradient (fun y => (meanSolve D raw).2 (t,(y,θ))) x) = raw (t,(x,θ))) ∧ |
| 135 | (∀ t, ContDiff ℝ ∞ (fun y : Space × ℝ => (meanSolve D raw).1 (t,y))) ∧ |
| 136 | (∀ t, ContDiff ℝ ∞ (fun y : Space × ℝ => (meanSolve D raw).2 (t,y))) ∧ |
| 137 | (∀ t θ, (meanSolve D raw).2 (t,(0,θ)) = 0) := by |
| 138 | rw [meanSolve_of_admissible D raw h] |
| 139 | exact ⟨(Classical.choice h).vectorDerivative, (Classical.choice h).vector_hasDerivWithinAt, |
| 140 | (Classical.choice h).equation, (Classical.choice h).vector_spatial_smooth, |
| 141 | (Classical.choice h).scalar_spatial_smooth, (Classical.choice h).scalar_normalized⟩ |
| 142 | |
| 143 | end EulerMeanPacketProvider |