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.TransversePacketForcing |
| 2 | import Euler.CylinderAngleAverageTime |
| 3 | |
| 4 | /-! |
| 5 | # The actual transverse forward operator on raw packet fields |
| 6 | |
| 7 | The returned velocity and normalized pressure come from the constructed |
| 8 | supported cylinder solution. All source-frame hypotheses are discharged by |
| 9 | the deformation data. This module covers the forward interval, with genuine |
| 10 | prescribed initial coordinates; the zero initial datum gives the forced |
| 11 | operator used when t₀ = 0. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace EulerTransversePacketProvider |
| 17 | |
| 18 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit |
| 19 | EulerLiftedGradientSpace EulerMeanCoefficients EulerLpCylinderTranslation EulerLpCylinderPaths |
| 20 | EulerCylinderSmoothOrbit EulerCylinderAngleAverage EulerSourceCylinderClassical |
| 21 | EulerPacketPointJets EulerPacketProfileRecursion EulerMetricTransport |
| 22 | open scoped ContDiff |
| 23 | |
| 24 | variable {P : ℝ} [Fact (0 < P)] |
| 25 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 26 | |
| 27 | namespace Forcing |
| 28 | |
| 29 | variable {D : Data U} {raw : VectorField} (G : Forcing P D raw) (I : InitialData P D) |
| 30 | |
| 31 | def vector : VectorField := fun z => |
| 32 | field P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 33 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 34 | G.path_orbit I.orbit (D.clamp z.1) (z.2.1,(z.2.2 : AddCircle P)) |
| 35 | |
| 36 | def vectorDerivative : VectorField := fun z => |
| 37 | derivativeField P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 38 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 39 | G.path_orbit I.orbit (D.clamp z.1) (z.2.1,(z.2.2 : AddCircle P)) |
| 40 | |
| 41 | def scalar : ScalarField := fun z => |
| 42 | pressureField P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 43 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 44 | G.path_orbit I.orbit D.M D.normal D.normalLower D.normalLower_pos D.normal_lower |
| 45 | G.mean_zero I.mean_zero (D.clamp z.1) (z.2.1,(z.2.2 : AddCircle P)) |
| 46 | |
| 47 | theorem vector_hasDerivWithinAt (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 48 | HasDerivWithinAt (fun r => G.vector I (r,(x,θ))) (G.vectorDerivative I (t,(x,θ))) |
| 49 | (Icc (0 : ℝ) D.T) t := by |
| 50 | have h := field_hasDerivWithinAt P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 51 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 52 | G.path_orbit I.orbit D.frame_derivative t (x,(θ : AddCircle P)) |
| 53 | simpa only [vector,vectorDerivative,Data.clamp,projIcc_of_mem D.T_pos.le t.property] using h |
| 54 | |
| 55 | /-- The literal transverse equation, including its constructed angular pressure. -/ |
| 56 | theorem equation (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 57 | G.vectorDerivative I (t,(x,θ))+D.strain (t,(x,θ)) (G.vector I (t,(x,θ)))+ |
| 58 | deriv (fun s : ℝ => G.scalar I (t,(x,s))) θ • D.normalField (t,(x,θ)) = raw (t,(x,θ)) := by |
| 59 | have h := field_pressure_equation P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 60 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 61 | G.path_orbit I.orbit D.M D.normal D.normalLower D.normalLower_pos D.normal_lower |
| 62 | G.mean_zero I.mean_zero D.frame_tangent D.frame_range D.frame_strain t x θ |
| 63 | rw [← G.raw_eq t x θ] at h |
| 64 | simpa only [vector,vectorDerivative,scalar,Data.strain,Data.normalField,Data.clamp_coe] using h |
| 65 | |
| 66 | theorem vector_tangent (t : ℝ) (x : Space) (θ : ℝ) : |
| 67 | ⟪D.normalField (t,(x,θ)),G.vector I (t,(x,θ))⟫_ℝ = 0 := |
| 68 | field_tangent P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 69 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 70 | G.path_orbit I.orbit D.normal D.frame_tangent (D.clamp t) (x,(θ : AddCircle P)) |
| 71 | |
| 72 | theorem scalar_normalized (t : ℝ) (x : Space) : |
| 73 | (∫ θ in (0 : ℝ)..P, G.scalar I (t,(x,θ))) = 0 := |
| 74 | pressureField_mean_zero P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 75 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 76 | G.path_orbit I.orbit D.M D.normal D.normalLower D.normalLower_pos D.normal_lower |
| 77 | G.mean_zero I.mean_zero (D.clamp t) x |
| 78 | |
| 79 | theorem vector_mean_zero (t : ℝ) (x : Space) : |
| 80 | (∫ θ in (0 : ℝ)..P, G.vector I (t,(x,θ))) = 0 := by |
| 81 | have hz := EulerSourceCylinderEquation.velocity_average_zero P D.support D.support_measurable |
| 82 | D.T D.T_pos.le D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower |
| 83 | G.path I.value G.mean_zero I.mean_zero (D.clamp t) |
| 84 | exact (pointField_mean_zero_iff P |
| 85 | (includePath P D.support D.support_measurable (G.velocityPath I)) |
| 86 | (G.velocityPath_orbit I) (D.clamp t)).mp hz x |
| 87 | |
| 88 | theorem vector_spatial_smooth (t : ℝ) : |
| 89 | ContDiff ℝ ∞ (fun y : Space × ℝ => G.vector I (t,y)) := by |
| 90 | have h := field_smooth P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 91 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 92 | G.path_orbit I.orbit (D.clamp t) 0 |
| 93 | convert h using 1 |
| 94 | first |
| 95 | | rfl |
| 96 | | (funext y; simp only [vector,localFieldLift,Prod.fst_zero,Prod.snd_zero,zero_add]) |
| 97 | |
| 98 | theorem vectorDerivative_spatial_smooth (t : ℝ) : |
| 99 | ContDiff ℝ ∞ (fun y : Space × ℝ => G.vectorDerivative I (t,y)) := by |
| 100 | have h := derivativeField_smooth P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 101 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 102 | G.path_orbit I.orbit (D.clamp t) 0 |
| 103 | convert h using 1 |
| 104 | first |
| 105 | | rfl |
| 106 | | (funext y; simp only [vectorDerivative,localFieldLift,Prod.fst_zero,Prod.snd_zero,zero_add]) |
| 107 | |
| 108 | theorem scalar_spatial_smooth (t : ℝ) : |
| 109 | ContDiff ℝ ∞ (fun y : Space × ℝ => G.scalar I (t,y)) := by |
| 110 | have h := pressureField_smooth P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 111 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 112 | G.path_orbit I.orbit D.M D.normal D.normalLower D.normalLower_pos D.normal_lower |
| 113 | G.mean_zero I.mean_zero (D.clamp t) 0 |
| 114 | convert h using 1 |
| 115 | first |
| 116 | | rfl |
| 117 | | (funext y; simp only [scalar,localFieldLift,Prod.fst_zero,Prod.snd_zero,zero_add]) |
| 118 | |
| 119 | theorem vector_zero_outside (t : ℝ) (x : Space) (hx : x ∉ D.support) (θ : ℝ) : |
| 120 | G.vector I (t,(x,θ)) = 0 := by |
| 121 | by_contra h |
| 122 | exact hx (field_tsupport_subset P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 123 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 124 | G.path_orbit I.orbit (D.clamp t) (subset_closure h)) |
| 125 | |
| 126 | theorem scalar_zero_outside (t : ℝ) (x : Space) (hx : x ∉ D.support) (θ : ℝ) : |
| 127 | G.scalar I (t,(x,θ)) = 0 := |
| 128 | pressureField_zero_outside P D.support D.support_measurable D.support_compact D.T D.T_pos.le |
| 129 | D.frame D.frameDerivative D.frameLower D.frameLower_pos D.frame_lower G.path I.value |
| 130 | G.path_orbit I.orbit D.M D.normal D.normalLower D.normalLower_pos D.normal_lower |
| 131 | G.mean_zero I.mean_zero (D.clamp t) x hx θ |
| 132 | |
| 133 | theorem vector_periodic (t : ℝ) (x : Space) : Function.Periodic (fun θ => G.vector I (t,(x,θ))) P := by |
| 134 | intro θ |
| 135 | simp only [vector,AddCircle.coe_add_period] |
| 136 | |
| 137 | theorem scalar_periodic (t : ℝ) (x : Space) : Function.Periodic (fun θ => G.scalar I (t,(x,θ))) P := by |
| 138 | intro θ |
| 139 | simp only [scalar,AddCircle.coe_add_period] |
| 140 | |
| 141 | end Forcing |
| 142 | |
| 143 | /-- A total raw-field map backed by the actual forward solution on its admissible domain. -/ |
| 144 | def highSolve (P : ℝ) [Fact (0 < P)] (D : Data U) (I : InitialData P D) |
| 145 | (raw : VectorField) : VectorField × ScalarField := by |
| 146 | classical |
| 147 | exact if h : Nonempty (Forcing P D raw) then |
| 148 | let G := Classical.choice h |
| 149 | (G.vector I,G.scalar I) |
| 150 | else (0,0) |
| 151 | |
| 152 | theorem highSolve_of_admissible (D : Data U) (I : InitialData P D) (raw : VectorField) |
| 153 | (h : Nonempty (Forcing P D raw)) : |
| 154 | highSolve P D I raw = ((Classical.choice h).vector I,(Classical.choice h).scalar I) := by |
| 155 | simp only [highSolve,dite_eq_left h] |
| 156 | |
| 157 | theorem highSolve_contract (D : Data U) (I : InitialData P D) (raw : VectorField) |
| 158 | (h : Nonempty (Forcing P D raw)) : |
| 159 | ∃ a_t : VectorField, |
| 160 | (∀ (t : Icc (0 : ℝ) D.T) x θ, |
| 161 | HasDerivWithinAt (fun r => (highSolve P D I raw).1 (r,(x,θ))) |
| 162 | (a_t (t,(x,θ))) (Icc (0 : ℝ) D.T) t) ∧ |
| 163 | (∀ (t : Icc (0 : ℝ) D.T) x θ, |
| 164 | a_t (t,(x,θ))+D.strain (t,(x,θ)) ((highSolve P D I raw).1 (t,(x,θ)))+ |
| 165 | deriv (fun s => (highSolve P D I raw).2 (t,(x,s))) θ • D.normalField (t,(x,θ)) = raw (t,(x,θ))) ∧ |
| 166 | (∀ t, ContDiff ℝ ∞ (fun y : Space × ℝ => (highSolve P D I raw).1 (t,y))) ∧ |
| 167 | (∀ t, ContDiff ℝ ∞ (fun y : Space × ℝ => (highSolve P D I raw).2 (t,y))) ∧ |
| 168 | (∀ t x, (∫ θ in (0 : ℝ)..P, (highSolve P D I raw).2 (t,(x,θ))) = 0) := by |
| 169 | rw [highSolve_of_admissible D I raw h] |
| 170 | exact ⟨(Classical.choice h).vectorDerivative I, |
| 171 | (Classical.choice h).vector_hasDerivWithinAt I, |
| 172 | (Classical.choice h).equation I, |
| 173 | (Classical.choice h).vector_spatial_smooth I, |
| 174 | (Classical.choice h).scalar_spatial_smooth I, |
| 175 | (Classical.choice h).scalar_normalized I⟩ |
| 176 | |
| 177 | end EulerTransversePacketProvider |