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.CorrectionStabilityBudget |
| 2 | |
| 3 | /-! Genuine finite-interval Lipschitz comparison of actual correction solutions at different viscosities. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerCorrectionViscosityStability |
| 8 | |
| 9 | open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerLiftedPressure |
| 10 | EulerCylinderSobolevSpace EulerCorrectionOperators EulerQuadraticSource EulerVolterraConvolution |
| 11 | EulerSobolevHeat EulerCorrectionDifferencePDE EulerCorrectionDifferenceMetric EulerCorrectionStabilityConstants |
| 12 | EulerCorrectionStabilityBudget EulerSquaredMetricStability EulerMetricEnergyEvolution |
| 13 | open scoped Topology |
| 14 | |
| 15 | variable (period : ℝ) [Fact (0 < period)] |
| 16 | |
| 17 | /-- The existing Sobolev normed-group instance for the actual viscosity comparison. -/ |
| 18 | local instance comparisonSobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance |
| 19 | /-- The existing real Sobolev module instance for the actual viscosity comparison. -/ |
| 20 | local instance comparisonSobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance |
| 21 | |
| 22 | /-- Two actual zero-initial correction mild solutions obey a pointwise L² Lipschitz estimate in viscosity. |
| 23 | The differential energy inequality is derived from their literal equations and the actual spatial cancellations. -/ |
| 24 | theorem correction_viscosity_pointwise {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) |
| 25 | (D : CorrectionData period q (Icc (0 : ℝ) T)) (B : StabilityBudget period hT D) |
| 26 | (ν μ : ℝ) (hν : 0 < ν) (hμ : 0 < μ) (hν1 : ν ≤ 1) |
| 27 | (u v : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) (R : ℝ) |
| 28 | (huR : ‖u‖ ≤ R) (hvR : ‖v‖ ≤ R) |
| 29 | (hu : ∀ t, u t = quadraticDuhamel period ν hν hT le_rfl (D.coefficients period hq) 0 u t) |
| 30 | (hv : ∀ t, v t = quadraticDuhamel period μ hμ hT le_rfl (D.coefficients period hq) 0 v t) |
| 31 | (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) |
| 32 | (hud : ∀ t, value period (u t) ∈ divergenceFreeSpace period D.κ D.direction) |
| 33 | (hvd : ∀ t, value period (v t) ∈ divergenceFreeSpace period D.κ D.direction) : |
| 34 | ∀ t, ‖value period (u t)-value period (v t)‖ ≤ B.comparisonConstant period R*|ν-μ| := by |
| 35 | let K := fun s : ℝ => (B.metric (projIcc 0 T hT s)).operator |
| 36 | let e := fun s : ℝ => value period (extendPath T hT u s)-value period (extendPath T hT v s) |
| 37 | let E := fun s : ℝ => ⟪K s (e s),e s⟫_ℝ |
| 38 | have hR : 0 ≤ R := (norm_nonneg u).trans huR |
| 39 | have hKc : Continuous K := B.continuous.comp continuous_projIcc |
| 40 | have hec : Continuous e := ((valueOperator period (q+1)).continuous.comp (extendPath_continuous T hT u)).sub |
| 41 | ((valueOperator period (q+1)).continuous.comp (extendPath_continuous T hT v)) |
| 42 | have hEc : Continuous E := (hKc.clm_apply hec).inner (𝕜 := ℝ) hec |
| 43 | have hKv (t : Icc (0 : ℝ) T) : K t.val=(B.metric t).operator := by |
| 44 | simp only [K,projIcc_of_mem hT t.property] |
| 45 | have hev (t : Icc (0 : ℝ) T) : e t.val=value period (u t-v t) := by |
| 46 | change value period (u (projIcc 0 T hT t.val))-value period (v (projIcc 0 T hT t.val))=_ |
| 47 | rw [projIcc_of_mem hT t.property] |
| 48 | rfl |
| 49 | have hzero : E 0 ≤ 0 := by |
| 50 | have hu0 := hu ⟨0,le_rfl,hT⟩ |
| 51 | have hv0 := hv ⟨0,le_rfl,hT⟩ |
| 52 | simp only [quadraticDuhamel,mul_zero,Real.toNNReal_zero,heatOperator_zero, |
| 53 | intervalIntegral.integral_same,add_zero] at hu0 hv0 |
| 54 | have he0 : e 0=0 := by rw [hev ⟨0,le_rfl,hT⟩,hu0,hv0,sub_self]; rfl |
| 55 | simp only [E,he0,map_zero,inner_zero_left,le_refl] |
| 56 | have hder (t : ℝ) (ht : t ∈ Ioo 0 T) : HasDerivAt E (deriv E t) t := by |
| 57 | let τ : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ |
| 58 | have he' := correction_difference_hasDerivAt period hq ν μ hν hμ T hT D u v hu hv t ht |
| 59 | have hs : ∀ a b, ⟪K t a,b⟫_ℝ=⟪a,K t b⟫_ℝ := by |
| 60 | rw [hKv τ] |
| 61 | exact coefficientOperator_inner_swap (B.metric τ).coefficient (B.metric τ).measurable |
| 62 | (B.metric τ).bound (B.metric τ).norm_bound (B.symmetric τ) |
| 63 | have hd := metric_energy_hasDerivAt K e t (extendPath T hT B.derivative t) |
| 64 | (differenceRhs period D hq ν μ τ (u τ) (v τ)) (B.hasDeriv t ht) he' hs |
| 65 | exact hd.differentiableAt.hasDerivAt |
| 66 | have hineq (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 67 | deriv E t ≤ B.growth period R*E t+defectConstant B.bound R*|ν-μ|^2 := by |
| 68 | let τ : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ |
| 69 | have hd := correction_difference_hasDerivAt period hq ν μ hν hμ T hT D u v hu hv t ht |
| 70 | have htime : ‖extendPath T hT B.derivative t‖ ≤ B.time := by |
| 71 | change ‖B.derivative (projIcc 0 T hT t)‖ ≤ _ |
| 72 | exact B.time_le _ |
| 73 | exact difference_metric_deriv_bound period D hq τ (u τ) (v τ) (B.metric τ) K e t ν μ |
| 74 | B.c B.bound B.first B.time B.linear B.quadratic ‖D.approximation‖ R (extendPath T hT B.derivative t) |
| 75 | B.c_pos hν.le hν1 (hKv τ) (hev τ) (B.hasDeriv t ht) hd (B.bound_le τ) (B.first_le τ) htime |
| 76 | (B.linear_le τ) (B.quadratic_le τ) (D.approximation.norm_coe_le_norm τ) |
| 77 | ((u.norm_coe_le_norm τ).trans huR) ((v.norm_coe_le_norm τ).trans hvR) |
| 78 | (B.symmetric τ) (B.coercive τ) (B.inverse τ) (hz τ) (hud τ) (hvd τ) |
| 79 | have hbound := linear_growth_bound E (deriv E) (B.growth period R) |
| 80 | (defectConstant B.bound R*|ν-μ|^2) T (B.growth_nonneg period R hR) |
| 81 | (mul_nonneg (sq_nonneg _) (sq_nonneg _)) hT hEc.continuousOn hzero hder hineq |
| 82 | intro t |
| 83 | have hc : B.c^2*‖value period (u t-v t)‖^2 ≤ E t.val := by |
| 84 | change _ ≤ ⟪K t.val (e t.val),e t.val⟫_ℝ |
| 85 | rw [hKv t,hev t] |
| 86 | exact coefficientOperator_coercive (B.metric t).coefficient (B.metric t).measurable |
| 87 | (B.metric t).bound (B.metric t).norm_bound (B.c^2) (B.coercive t) _ |
| 88 | let P := defectConstant B.bound R*T*Real.exp (B.growth period R*T) |
| 89 | have hP : 0 ≤ P := mul_nonneg (mul_nonneg (sq_nonneg _) hT) (Real.exp_pos _).le |
| 90 | have hsqrt := Real.sq_sqrt hP |
| 91 | have heB : E t.val ≤ P*|ν-μ|^2 := (hbound t.val t.property).trans_eq (by dsimp [P]; ring) |
| 92 | have hn : B.c*‖value period (u t-v t)‖ ≤ Real.sqrt P*|ν-μ| := by |
| 93 | have hleft := mul_nonneg B.c_pos.le (norm_nonneg (value period (u t-v t))) |
| 94 | have hright := mul_nonneg (Real.sqrt_nonneg P) (abs_nonneg (ν-μ)) |
| 95 | nlinarith |
| 96 | change ‖value period (u t-v t)‖ ≤ B.comparisonConstant period R*|ν-μ| |
| 97 | have hdiv : ‖value period (u t-v t)‖ ≤ (Real.sqrt P*|ν-μ|)/B.c := |
| 98 | (le_div_iff₀ B.c_pos).mpr (by nlinarith only [hn]) |
| 99 | exact hdiv.trans_eq (by unfold StabilityBudget.comparisonConstant; dsimp [P]; ring) |
| 100 | |
| 101 | end EulerCorrectionViscosityStability |