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.SourceCylinderClassical |
| 2 | |
| 3 | /-! |
| 4 | # The actual pointwise forward equation |
| 5 | |
| 6 | The L² coordinate equation and normal balance hold for the reconstructed |
| 7 | smooth field at every cylinder point. The scalar normal residual is the |
| 8 | literal source expression; its angular primitive will supply the pressure. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerSourceCylinderClassical |
| 14 | |
| 15 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerLiftedGradientSpace |
| 16 | EulerMetricTransport EulerMeanCoefficients EulerLpCylinderTranslation EulerLpCylinderPaths |
| 17 | EulerSourceCylinderEquation EulerCylinderSmoothOrbit EulerVolterraConvolution |
| 18 | open scoped ContDiff BoundedContinuousFunction |
| 19 | |
| 20 | variable (period : ℝ) [Fact (0 < period)] |
| 21 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 22 | (S : Set Space) (hS : MeasurableSet S) (hSc : IsCompact S) (T : ℝ) (hT : 0 ≤ T) |
| 23 | (Q Q₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (U →L[ℝ] Space)) |
| 24 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q.field t x v‖^2) |
| 25 | (f : C(Icc (0 : ℝ) T,Supported period Space S hS)) (a₀ : Supported period U S hS) |
| 26 | (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate period a (includePath period S hS f))) |
| 27 | (ha₀ : ContDiff ℝ ∞ (fun a : LiftTangent => translate period a (a₀ : CylinderL2 period U))) |
| 28 | (M : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space)) |
| 29 | (m : SmoothCoefficientPath (Icc (0 : ℝ) T) Space) |
| 30 | |
| 31 | /-- The source's literal scalar normal pressure residual. -/ |
| 32 | def normalResidual (t : Icc (0 : ℝ) T) (x : LiftDomain period) : ℝ := |
| 33 | (⟪m.field t x.1,pointField period (includePath period S hS f) hf t x⟫_ℝ - |
| 34 | 2*⟪m.field t x.1,M.field t x.1 (field period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t x)⟫_ℝ) / |
| 35 | ‖m.field t x.1‖^2 |
| 36 | |
| 37 | theorem normalResidual_continuous (hm : ∀ t x, m.field t x ≠ 0) (t : Icc (0 : ℝ) T) : |
| 38 | Continuous (normalResidual period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t) := by |
| 39 | have hA := smoothField_continuous period _ (field_smooth period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t) |
| 40 | have hF := smoothField_continuous period _ (pointField_smooth period (includePath period S hS f) hf t) |
| 41 | have hM : Continuous (fun x : LiftDomain period => M.field t x.1) := (M.field t).continuous.comp continuous_fst |
| 42 | have hm' : Continuous (fun x : LiftDomain period => m.field t x.1) := (m.field t).continuous.comp continuous_fst |
| 43 | exact ((hm'.inner hF).sub (continuous_const.mul (hm'.inner (hM.clm_apply hA)))).div |
| 44 | (hm'.norm.pow 2) (fun x => pow_ne_zero 2 (norm_ne_zero_iff.mpr (hm t x.1))) |
| 45 | |
| 46 | /-- The literal scalar pressure source is smooth in every spatial and angular variable. -/ |
| 47 | theorem normalResidual_smooth (hm : ∀ t x, m.field t x ≠ 0) |
| 48 | (t : Icc (0 : ℝ) T) (x : LiftDomain period) : |
| 49 | ContDiff ℝ ∞ (localFieldLift period |
| 50 | (normalResidual period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t) x) := by |
| 51 | have hp : ContDiff ℝ ∞ (fun h : LiftTangent => x.1+h.1) := contDiff_const.add contDiff_fst |
| 52 | have hm' : ContDiff ℝ ∞ (fun h : LiftTangent => m.field t (x.1+h.1)) := (m.smooth t).comp hp |
| 53 | have hM : ContDiff ℝ ∞ (fun h : LiftTangent => M.field t (x.1+h.1)) := (M.smooth t).comp hp |
| 54 | have hA := field_smooth period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t x |
| 55 | have hF := pointField_smooth period (includePath period S hS f) hf t x |
| 56 | have hd : ∀ h : LiftTangent, ⟪m.field t (x.1+h.1),m.field t (x.1+h.1)⟫_ℝ ≠ 0 := by |
| 57 | intro h |
| 58 | rw [real_inner_self_eq_norm_sq] |
| 59 | exact pow_ne_zero 2 (norm_ne_zero_iff.mpr (hm t (x.1+h.1))) |
| 60 | have h := ((hm'.inner ℝ hF).sub ((contDiff_const (c := (2 : ℝ))).mul |
| 61 | (hm'.inner ℝ (hM.clm_apply hA)))).div (hm'.inner ℝ hm') hd |
| 62 | convert h using 1 <;> first |
| 63 | | rfl |
| 64 | | (funext z; simp only [localFieldLift,normalResidual,real_inner_self_eq_norm_sq,Pi.div_apply]) |
| 65 | |
| 66 | /-- Pointwise tangency follows from the actual frame representation and continuity. -/ |
| 67 | theorem field_tangent |
| 68 | (hTangent : ∀ t x v, ⟪m.field t x,Q.field t x v⟫_ℝ = 0) |
| 69 | (t : Icc (0 : ℝ) T) (x : LiftDomain period) : |
| 70 | ⟪m.field t x.1,field period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t x⟫_ℝ = 0 := by |
| 71 | have hae : (fun y : LiftDomain period => ⟪m.field t y.1, |
| 72 | field period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t y⟫_ℝ) =ᵐ[liftMeasure period] (fun _ => 0) := by |
| 73 | filter_upwards [velocity_ae period S hS T hT Q Q₁ c hc hQ f a₀ t, |
| 74 | field_ae period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t] with y hq ha |
| 75 | rw [← ha,hq] |
| 76 | exact hTangent t y.1 _ |
| 77 | exact congrFun (Measure.eq_of_ae_eq hae |
| 78 | (((m.field t).continuous.comp continuous_fst).inner (smoothField_continuous period _ |
| 79 | (field_smooth period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t))) continuous_const) x |
| 80 | |
| 81 | /-- Equation (11) before angular integration holds at every cylinder point. -/ |
| 82 | theorem field_balance (hm : ∀ t x, m.field t x ≠ 0) |
| 83 | (hTangent : ∀ t x v, ⟪m.field t x,Q.field t x v⟫_ℝ = 0) |
| 84 | (hRange : ∀ t x η, ⟪m.field t x,η⟫_ℝ = 0 → ∃ v, Q.field t x v = η) |
| 85 | (hFlow : ∀ t x, Q₁.field t x = (M.field t x).comp (Q.field t x)) |
| 86 | (t : Icc (0 : ℝ) T) (x : LiftDomain period) : |
| 87 | derivativeField period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t x + |
| 88 | M.field t x.1 (field period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t x) + |
| 89 | normalResidual period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t x • m.field t x.1 = |
| 90 | pointField period (includePath period S hS f) hf t x := by |
| 91 | have hae : (fun y : LiftDomain period => |
| 92 | derivativeField period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t y + |
| 93 | M.field t y.1 (field period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t y) + |
| 94 | normalResidual period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m t y • m.field t y.1) =ᵐ[liftMeasure period] |
| 95 | pointField period (includePath period S hS f) hf t := by |
| 96 | filter_upwards [velocity_balance_ae period S hS T hT Q Q₁ c hc hQ f a₀ |
| 97 | (fun s y => M.field s y) (fun s y => m.field s y) hm hTangent hRange hFlow t, |
| 98 | field_ae period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t, |
| 99 | derivativeField_ae period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t, |
| 100 | pointField_ae period (includePath period S hS f) hf t] with y he ha hd hforce |
| 101 | change (f t : CylinderL2 period Space) y = pointField period (includePath period S hS f) hf t y at hforce |
| 102 | rw [ha,hd,hforce] at he |
| 103 | exact he |
| 104 | have hA := smoothField_continuous period _ (field_smooth period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t) |
| 105 | have hD := smoothField_continuous period _ (derivativeField_smooth period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ t) |
| 106 | have hF := smoothField_continuous period _ (pointField_smooth period (includePath period S hS f) hf t) |
| 107 | have hM : Continuous (fun y : LiftDomain period => M.field t y.1) := (M.field t).continuous.comp continuous_fst |
| 108 | have hm' : Continuous (fun y : LiftDomain period => m.field t y.1) := (m.field t).continuous.comp continuous_fst |
| 109 | exact congrFun (Measure.eq_of_ae_eq hae ((hD.add (hM.clm_apply hA)).add |
| 110 | ((normalResidual_continuous period S hS hSc T hT Q Q₁ c hc hQ f a₀ hf ha₀ M m hm t).smul hm')) hF) x |
| 111 | |
| 112 | end EulerSourceCylinderClassical |