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.TransversePacketPrimaryField |
| 2 | import Euler.CylinderScalarAverage |
| 3 | import Euler.CylinderScalarParity |
| 4 | import Euler.PacketCylinderPressureLocality |
| 5 | import Euler.TransversePacketJets |
| 6 | |
| 7 | /-! The primary pressure is the actual mean-zero angular primitive of the |
| 8 | normal residual. Its field satisfies the homogeneous packet equation. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerTransversePacketPrimary |
| 13 | |
| 14 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerMeanCoefficients |
| 15 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderPaths EulerLpCylinderRectangular |
| 16 | EulerCylinderSmoothOrbit EulerCylinderAngleAverage EulerMetricTransport EulerCylinderLocalSupport |
| 17 | EulerSourceNormalResidualBounds EulerSourceNormalCoefficient EulerPacketProfileRecursion |
| 18 | EulerCylinderScalarPrimitive EulerTransversePacketProvider EulerPacketCylinderField |
| 19 | EulerPacketPointJets EulerCylinderFieldReflection |
| 20 | open scoped ContDiff BoundedContinuousFunction |
| 21 | |
| 22 | variable {P : ℝ} [Fact (0 < P)] |
| 23 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 24 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 25 | (B : HistoryData (D.initial τ hτ hτT.le)) (Y : InitialData P D) |
| 26 | |
| 27 | def normalResidual (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : ℝ := |
| 28 | -(2*⟪D.normal.field t x.1,D.M.field t x.1 |
| 29 | (pointField P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t x)⟫_ℝ)/ |
| 30 | ‖D.normal.field t x.1‖^2 |
| 31 | |
| 32 | def residualPath : C(Icc (0 : ℝ) D.T,CylinderL2 P ℝ) := |
| 33 | sourceResidual P D.M D.normal D.normalLower D.normalLower_pos D.normal_lower |
| 34 | 0 (velocityPath τ hτ hτT B Y) |
| 35 | |
| 36 | theorem residualPath_orbit : ContDiff ℝ ∞ (fun a => pathTranslate P a (residualPath τ hτ hτT B Y)) := |
| 37 | sourceResidual_contDiff P D.M D.normal D.normalLower D.normalLower_pos D.normal_lower |
| 38 | 0 (velocityPath τ hτ hτT B Y) (by simpa only [map_zero] using (contDiff_const : |
| 39 | ContDiff ℝ ∞ (fun _ : LiftTangent => (0 : C(Icc (0 : ℝ) D.T,LiftL2 P))))) |
| 40 | (velocityPath_orbit τ hτ hτT B Y) |
| 41 | |
| 42 | theorem residualPath_slice_smooth (t : Icc (0 : ℝ) D.T) : |
| 43 | ContDiff ℝ ∞ (fun a => translate P a (residualPath τ hτ hτT B Y t)) := |
| 44 | (ContinuousMap.evalCLM ℝ t : C(Icc (0 : ℝ) D.T,CylinderL2 P ℝ) →L[ℝ] |
| 45 | CylinderL2 P ℝ).contDiff.comp (residualPath_orbit τ hτ hτT B Y) |
| 46 | |
| 47 | theorem residualPath_average_zero (t : Icc (0 : ℝ) D.T) : |
| 48 | average P (residualPath τ hτ hτT B Y t) = 0 := by |
| 49 | change average P (fullOperatorMap P |
| 50 | (normalFunctional D.normal D.normalLower D.normalLower_pos D.normal_lower t) |
| 51 | (0-(2 : ℝ) • fullOperatorMap P (D.M.field t) (velocityPath τ hτ hτT B Y t))) = 0 |
| 52 | simp only [average_fullOperator,map_sub,map_smul,map_zero, |
| 53 | velocityPath_mean_zero τ hτ hτT B Y t,smul_zero,sub_self] |
| 54 | |
| 55 | theorem normalResidual_continuous (t : Icc (0 : ℝ) D.T) : |
| 56 | Continuous (normalResidual τ hτ hτT B Y t) := by |
| 57 | have hA := smoothField_continuous P _ |
| 58 | (pointField_smooth P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t) |
| 59 | have hM : Continuous (fun x : LiftDomain P => D.M.field t x.1) := |
| 60 | (D.M.field t).continuous.comp continuous_fst |
| 61 | have hm : Continuous (fun x : LiftDomain P => D.normal.field t x.1) := |
| 62 | (D.normal.field t).continuous.comp continuous_fst |
| 63 | exact (continuous_const.mul (hm.inner (hM.clm_apply hA))).neg.div (hm.norm.pow 2) |
| 64 | (fun x => ne_of_gt (D.normalLower_pos.trans_le (D.normal_lower t x.1))) |
| 65 | |
| 66 | theorem normalResidual_smooth (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : |
| 67 | ContDiff ℝ ∞ (localFieldLift P (normalResidual τ hτ hτT B Y t) x) := by |
| 68 | have hp : ContDiff ℝ ∞ (fun h : LiftTangent => x.1+h.1) := contDiff_const.add contDiff_fst |
| 69 | have hm := (D.normal.smooth t).comp hp |
| 70 | have hM := (D.M.smooth t).comp hp |
| 71 | have hA := pointField_smooth P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t x |
| 72 | have hd : ∀ h : LiftTangent, ⟪D.normal.field t (x.1+h.1),D.normal.field t (x.1+h.1)⟫_ℝ ≠ 0 := by |
| 73 | intro h |
| 74 | rw [real_inner_self_eq_norm_sq] |
| 75 | exact ne_of_gt (D.normalLower_pos.trans_le (D.normal_lower t (x.1+h.1))) |
| 76 | have h := ((contDiff_const (c := (2 : ℝ))).mul (hm.inner ℝ (hM.clm_apply hA))).neg.div |
| 77 | (hm.inner ℝ hm) hd |
| 78 | convert! h using 1 |
| 79 | first |
| 80 | | rfl |
| 81 | | (funext z; simp only [localFieldLift,normalResidual,Function.comp_apply, |
| 82 | real_inner_self_eq_norm_sq,Pi.div_apply]) |
| 83 | |
| 84 | theorem residualPath_ae (t : Icc (0 : ℝ) D.T) : |
| 85 | residualPath τ hτ hτT B Y t =ᵐ[liftMeasure P] normalResidual τ hτ hτT B Y t := by |
| 86 | let v := velocityPath τ hτ hτT B Y t |
| 87 | let w := fullOperatorMap P (D.M.field t) v |
| 88 | let N := normalFunctional D.normal D.normalLower D.normalLower_pos D.normal_lower t |
| 89 | have he : residualPath τ hτ hτT B Y t = (-2 : ℝ) • fullOperatorMap P N w := by |
| 90 | change fullOperatorMap P N (0-(2 : ℝ) • w) = _ |
| 91 | simp only [zero_sub,map_neg,map_smul,neg_smul] |
| 92 | rw [he] |
| 93 | filter_upwards [Lp.coeFn_smul (-2 : ℝ) (fullOperatorMap P N w), |
| 94 | EulerLpOperatorField.full_ae (liftMeasure P) (fieldLift P N) w, |
| 95 | EulerLpOperatorField.full_ae (liftMeasure P) (fieldLift P (D.M.field t)) v, |
| 96 | pointField_ae P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t] |
| 97 | with x hs hn hm hv |
| 98 | rw [hs] |
| 99 | change (fullOperatorMap P N w) x = N x.1 (w x) at hn |
| 100 | change w x = D.M.field t x.1 (v x) at hm |
| 101 | change (-2 : ℝ)*((fullOperatorMap P N w) x) = _ |
| 102 | rw [hn] |
| 103 | change (-2 : ℝ)*(normalFunctional D.normal D.normalLower D.normalLower_pos D.normal_lower |
| 104 | t x.1 (w x)) = _ |
| 105 | rw [normalFunctional_apply,hm] |
| 106 | change (-2 : ℝ)*(⟪D.normal.field t x.1,D.M.field t x.1 |
| 107 | (velocityPath τ hτ hτT B Y t x)⟫_ℝ/‖D.normal.field t x.1‖^2) = _ |
| 108 | rw [hv] |
| 109 | unfold normalResidual |
| 110 | ring |
| 111 | |
| 112 | theorem normalResidual_mean_zero (t : Icc (0 : ℝ) D.T) (y : Space) : |
| 113 | (∫ θ in (0 : ℝ)..P, normalResidual τ hτ hτT B Y t (y,(θ : AddCircle P))) = 0 := |
| 114 | scalar_mean_zero P (residualPath τ hτ hτT B Y t) (residualPath_slice_smooth τ hτ hτT B Y t) |
| 115 | (normalResidual τ hτ hτT B Y t) (normalResidual_continuous τ hτ hτT B Y t) |
| 116 | (residualPath_ae τ hτ hτT B Y t) (residualPath_average_zero τ hτ hτT B Y t) y |
| 117 | |
| 118 | def pressureField (t : Icc (0 : ℝ) D.T) : LiftDomain P → ℝ := |
| 119 | classicalPrimitive P (normalResidual τ hτ hτT B Y t) (normalResidual_continuous τ hτ hτT B Y t) |
| 120 | (normalResidual_mean_zero τ hτ hτT B Y t) |
| 121 | |
| 122 | theorem pressureField_ae (t : Icc (0 : ℝ) D.T) : |
| 123 | pressurePath τ hτ hτT B Y t =ᵐ[liftMeasure P] pressureField τ hτ hτT B Y t := |
| 124 | primitive_ae_constructed P (residualPath τ hτ hτT B Y t) (residualPath_slice_smooth τ hτ hτT B Y t) |
| 125 | (normalResidual τ hτ hτT B Y t) (normalResidual_continuous τ hτ hτT B Y t) |
| 126 | (residualPath_ae τ hτ hτT B Y t) (normalResidual_mean_zero τ hτ hτT B Y t) |
| 127 | |
| 128 | theorem pressureField_smooth (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : |
| 129 | ContDiff ℝ ∞ (localFieldLift P (pressureField τ hτ hτT B Y t) x) := |
| 130 | classicalPrimitive_smooth P _ _ _ (normalResidual_smooth τ hτ hτT B Y t) x |
| 131 | |
| 132 | theorem pressureField_eq_scalarPointField (t : Icc (0 : ℝ) D.T) : |
| 133 | pressureField τ hτ hτT B Y t = |
| 134 | scalarPointField P (pressurePath τ hτ hτT B Y) (pressurePath_orbit τ hτ hτT B Y) t := |
| 135 | (scalarPointField_eq P (pressurePath τ hτ hτT B Y) (pressurePath_orbit τ hτ hτT B Y) t |
| 136 | (pressureField τ hτ hτT B Y t) (smoothField_continuous P _ (pressureField_smooth τ hτ hτT B Y t)) |
| 137 | (pressureField_ae τ hτ hτT B Y t)).symm |
| 138 | |
| 139 | theorem scalar_eq_pressureField (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 140 | scalar τ hτ hτT B Y (t,(x,θ)) = pressureField τ hτ hτT B Y t (x,(θ : AddCircle P)) := by |
| 141 | rw [scalar_eq_pointField,pressureField_eq_scalarPointField] |
| 142 | |
| 143 | theorem pressureField_angle (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 144 | HasDerivAt (fun s : ℝ => pressureField τ hτ hτT B Y t (x,(s : AddCircle P))) |
| 145 | (normalResidual τ hτ hτT B Y t (x,(θ : AddCircle P))) θ := |
| 146 | classicalPrimitive_angle P _ _ _ x θ |
| 147 | |
| 148 | theorem scalar_normalized (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 149 | (∫ θ in (0 : ℝ)..P, scalar τ hτ hτT B Y (t,(x,θ))) = 0 := by |
| 150 | simp_rw [scalar_eq_pressureField] |
| 151 | exact classicalPrimitive_mean_zero P _ _ _ x |
| 152 | |
| 153 | theorem normalResidual_zero_outside (t : Icc (0 : ℝ) D.T) (y : Space) (hy : y ∉ D.support) |
| 154 | (θ : AddCircle P) : normalResidual τ hτ hτT B Y t (y,θ) = 0 := by |
| 155 | have hv := pointField_zero_outside P D.support D.support_measurable |
| 156 | (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) D.support_compact.isClosed |
| 157 | (velocityPath_supported τ hτ hτT B Y) t (y,θ) hy |
| 158 | simp only [normalResidual,hv,map_zero,inner_zero_right,mul_zero,neg_zero,zero_div] |
| 159 | |
| 160 | theorem scalar_zero_outside (t : ℝ) (x : Space) (hx : x ∉ D.support) (θ : ℝ) : |
| 161 | scalar τ hτ hτT B Y (t,(x,θ)) = 0 := by |
| 162 | change scalarPointField P (pressurePath τ hτ hτT B Y) (pressurePath_orbit τ hτ hτT B Y) |
| 163 | (D.clamp t) (x,(θ : AddCircle P)) = 0 |
| 164 | rw [← pressureField_eq_scalarPointField] |
| 165 | exact classicalPrimitive_zero P _ _ _ x (normalResidual_zero_outside τ hτ hτT B Y (D.clamp t) x hx) _ |
| 166 | |
| 167 | theorem scalarGradient_zero_outside (t : ℝ) (x : Space) (hx : x ∉ D.support) (θ : ℝ) : |
| 168 | pressureGradient (scalar τ hτ hτT B Y) (t,(x,θ)) = 0 := |
| 169 | pressureGradient_zero_outside (scalar τ hτ hτT B Y) t D.support D.support_compact.isClosed |
| 170 | (scalar_zero_outside τ hτ hτT B Y t) x hx θ |
| 171 | |
| 172 | theorem field_balance (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : |
| 173 | pointField P (derivativePath τ hτ hτT B Y) (derivativePath_orbit τ hτ hτT B Y) t x+ |
| 174 | D.M.field t x.1 (pointField P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t x)+ |
| 175 | normalResidual τ hτ hτT B Y t x • D.normal.field t x.1 = 0 := by |
| 176 | have hae : (fun y : LiftDomain P => |
| 177 | pointField P (derivativePath τ hτ hτT B Y) (derivativePath_orbit τ hτ hτT B Y) t y+ |
| 178 | D.M.field t y.1 (pointField P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t y)+ |
| 179 | normalResidual τ hτ hτT B Y t y • D.normal.field t y.1) =ᵐ[liftMeasure P] (fun _ => 0) := by |
| 180 | filter_upwards [balance_ae τ hτ hτT B Y t, |
| 181 | pointField_ae P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t, |
| 182 | pointField_ae P (derivativePath τ hτ hτT B Y) (derivativePath_orbit τ hτ hτT B Y) t] |
| 183 | with y he hv hd |
| 184 | rw [hv,hd] at he |
| 185 | exact he |
| 186 | have hA := smoothField_continuous P _ |
| 187 | (pointField_smooth P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t) |
| 188 | have hD := smoothField_continuous P _ |
| 189 | (pointField_smooth P (derivativePath τ hτ hτT B Y) (derivativePath_orbit τ hτ hτT B Y) t) |
| 190 | have hM : Continuous (fun y : LiftDomain P => D.M.field t y.1) := |
| 191 | (D.M.field t).continuous.comp continuous_fst |
| 192 | have hm : Continuous (fun y : LiftDomain P => D.normal.field t y.1) := |
| 193 | (D.normal.field t).continuous.comp continuous_fst |
| 194 | exact congrFun (Measure.eq_of_ae_eq hae ((hD.add (hM.clm_apply hA)).add |
| 195 | ((normalResidual_continuous τ hτ hτT B Y t).smul hm)) continuous_const) x |
| 196 | |
| 197 | theorem equation (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 198 | vectorDerivative τ hτ hτT B Y (t,(x,θ))+ |
| 199 | D.strain (t,(x,θ)) (vector τ hτ hτT B Y (t,(x,θ)))+ |
| 200 | deriv (fun s => scalar τ hτ hτT B Y (t,(x,s))) θ • D.normalField (t,(x,θ)) = 0 := by |
| 201 | have hp : (fun s => scalar τ hτ hτT B Y (t,(x,s))) = |
| 202 | fun s : ℝ => pressureField τ hτ hτT B Y t (x,(s : AddCircle P)) := |
| 203 | funext (scalar_eq_pressureField τ hτ hτT B Y t x) |
| 204 | rw [hp,(pressureField_angle τ hτ hτT B Y t x θ).deriv] |
| 205 | simpa only [vectorDerivative,vector,Data.strain,Data.normalField,Data.clamp_coe] using |
| 206 | field_balance τ hτ hτT B Y t (x,(θ : AddCircle P)) |
| 207 | |
| 208 | theorem jet_equation (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 209 | linearPart (D.strain (t,(x,θ))) |
| 210 | (slicedJet (Icc (0 : ℝ) D.T) (vector τ hτ hτT B Y) (t,(x,θ)))+ |
| 211 | fastPressure (D.normalField (t,(x,θ))) (pressureJet (scalar τ hτ hτT B Y) (t,(x,θ))) = 0 := by |
| 212 | change (slicedJet (Icc (0 : ℝ) D.T) (vector τ hτ hτT B Y) (t,(x,θ))).2 timeDirection+ |
| 213 | D.strain (t,(x,θ)) (vector τ hτ hτT B Y (t,(x,θ)))+_ = _ |
| 214 | rw [(vectorField τ hτ hτT B Y).slicedJet_temporal D.T_pos (vectorDerivativeField τ hτ hτT B Y) |
| 215 | (vectorField_time τ hτ hτT B Y),fastPressure_pressureJet _ (scalar τ hτ hτT B Y) t x θ |
| 216 | ((scalar_smooth τ hτ hτT B Y t).differentiable (by simp) (x,θ))] |
| 217 | exact equation τ hτ hτT B Y t x θ |
| 218 | |
| 219 | variable (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) |
| 220 | (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) |
| 221 | (hM : ∀ t x, D.M.field t (-x) = D.M.field t x) |
| 222 | (hH : ∀ t x, B.H.field t (-x) = B.H.field t x) |
| 223 | (hY : reflection P (Y.value : CylinderL2 P U) = -(Y.value : CylinderL2 P U)) |
| 224 | |
| 225 | include hSym hF hM hH hY |
| 226 | |
| 227 | theorem normalResidual_odd (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 228 | normalResidual τ hτ hτT B Y t (-x,((-θ : ℝ) : AddCircle P)) = |
| 229 | -normalResidual τ hτ hτT B Y t (x,(θ : AddCircle P)) := by |
| 230 | have hv := vector_odd τ hτ hτT B Y hSym hF hM hH hY t x θ |
| 231 | simp only [vector,Data.clamp_coe] at hv |
| 232 | simp only [normalResidual,D.normal_even hF,hM,hv,map_neg,inner_neg_right] |
| 233 | ring |
| 234 | |
| 235 | theorem scalar_even (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 236 | scalar τ hτ hτT B Y (t,(-x,-θ)) = scalar τ hτ hτT B Y (t,(x,θ)) := by |
| 237 | rw [scalar_eq_pressureField,scalar_eq_pressureField] |
| 238 | exact classicalPrimitive_joint_even P _ _ _ |
| 239 | (normalResidual_odd τ hτ hτT B Y hSym hF hM hH hY t) x θ |
| 240 | |
| 241 | theorem scalarGradient_odd (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 242 | pressureGradient (scalar τ hτ hτT B Y) (t,(-x,-θ)) = |
| 243 | -pressureGradient (scalar τ hτ hτT B Y) (t,(x,θ)) := |
| 244 | pressureGradient_odd (scalar τ hτ hτT B Y) t (scalar_smooth τ hτ hτT B Y t) |
| 245 | (scalar_even τ hτ hτT B Y hSym hF hM hH hY t) x θ |
| 246 | |
| 247 | end EulerTransversePacketPrimary |