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 | import Euler.InviscidDifferencePDE |
| 3 | |
| 4 | /-! Uniqueness of the actual finite-order inviscid correction equation. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerInviscidCorrectionUniqueness |
| 9 | |
| 10 | open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerLiftedPressure |
| 11 | EulerCylinderSobolevSpace EulerCorrectionOperators EulerQuadraticSource EulerVolterraConvolution |
| 12 | EulerSobolevHeat EulerCorrectionDifferencePDE EulerCorrectionDifferenceMetric EulerCorrectionStabilityConstants |
| 13 | EulerCorrectionStabilityBudget EulerSquaredMetricStability EulerMetricEnergyEvolution EulerInviscidDifferencePDE |
| 14 | open scoped Topology |
| 15 | |
| 16 | variable (period : ℝ) [Fact (0 < period)] |
| 17 | |
| 18 | /-- The existing Sobolev normed-group instance for the actual viscosity comparison. -/ |
| 19 | local instance comparisonSobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance |
| 20 | /-- The existing real Sobolev module instance for the actual viscosity comparison. -/ |
| 21 | local instance comparisonSobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance |
| 22 | |
| 23 | /-- Actual inviscid corrections with equal initial data and the concrete metric/coefficient bounds are unique. |
| 24 | The squared energy inequality and the zero-difference conclusion are derived from their actual equations. -/ |
| 25 | theorem inviscid_correction_unique {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) |
| 26 | (D : CorrectionData period q (Icc (0 : ℝ) T)) (B : StabilityBudget period hT D) |
| 27 | (u v : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) |
| 28 | (hi : u ⟨0,le_rfl,hT⟩ = v ⟨0,le_rfl,hT⟩) |
| 29 | (hu : ∀ t (ht : t ∈ Ioo 0 T), |
| 30 | HasDerivAt (fun r => value period (extendPath T hT u r)) |
| 31 | (value period ((D.coefficients period hq).apply ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩))) t) |
| 32 | (hv : ∀ t (ht : t ∈ Ioo 0 T), |
| 33 | HasDerivAt (fun r => value period (extendPath T hT v r)) |
| 34 | (value period ((D.coefficients period hq).apply ⟨t,ht.1.le,ht.2.le⟩ (v ⟨t,ht.1.le,ht.2.le⟩))) t) |
| 35 | (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) |
| 36 | (hud : ∀ t, value period (u t) ∈ divergenceFreeSpace period D.κ D.direction) |
| 37 | (hvd : ∀ t, value period (v t) ∈ divergenceFreeSpace period D.κ D.direction) : u = v := by |
| 38 | let R := max ‖u‖ ‖v‖ |
| 39 | have huR : ‖u‖ ≤ R := le_max_left _ _ |
| 40 | have hvR : ‖v‖ ≤ R := le_max_right _ _ |
| 41 | let K := fun s : ℝ => (B.metric (projIcc 0 T hT s)).operator |
| 42 | let e := fun s : ℝ => value period (extendPath T hT u s)-value period (extendPath T hT v s) |
| 43 | let E := fun s : ℝ => ⟪K s (e s),e s⟫_ℝ |
| 44 | have hR : 0 ≤ R := (norm_nonneg u).trans huR |
| 45 | have hKc : Continuous K := B.continuous.comp continuous_projIcc |
| 46 | have hec : Continuous e := ((valueOperator period (q+1)).continuous.comp (extendPath_continuous T hT u)).sub |
| 47 | ((valueOperator period (q+1)).continuous.comp (extendPath_continuous T hT v)) |
| 48 | have hEc : Continuous E := (hKc.clm_apply hec).inner (𝕜 := ℝ) hec |
| 49 | have hKv (t : Icc (0 : ℝ) T) : K t.val=(B.metric t).operator := by |
| 50 | simp only [K,projIcc_of_mem hT t.property] |
| 51 | have hev (t : Icc (0 : ℝ) T) : e t.val=value period (u t-v t) := by |
| 52 | change value period (u (projIcc 0 T hT t.val))-value period (v (projIcc 0 T hT t.val))=_ |
| 53 | rw [projIcc_of_mem hT t.property] |
| 54 | rfl |
| 55 | have hzero : E 0 ≤ 0 := by |
| 56 | have he0 : e 0=0 := by rw [hev ⟨0,le_rfl,hT⟩,hi,sub_self]; rfl |
| 57 | simp only [E,he0,map_zero,inner_zero_left,le_refl] |
| 58 | have hder (t : ℝ) (ht : t ∈ Ioo 0 T) : HasDerivAt E (deriv E t) t := by |
| 59 | let τ : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ |
| 60 | have he' := inviscid_difference_hasDerivAt period hq T hT D u v hu hv t ht |
| 61 | have hs : ∀ a b, ⟪K t a,b⟫_ℝ=⟪a,K t b⟫_ℝ := by |
| 62 | rw [hKv τ] |
| 63 | exact coefficientOperator_inner_swap (B.metric τ).coefficient (B.metric τ).measurable |
| 64 | (B.metric τ).bound (B.metric τ).norm_bound (B.symmetric τ) |
| 65 | have hd := metric_energy_hasDerivAt K e t (extendPath T hT B.derivative t) |
| 66 | (differenceRhs period D hq 0 0 τ (u τ) (v τ)) (B.hasDeriv t ht) he' hs |
| 67 | exact hd.differentiableAt.hasDerivAt |
| 68 | have hineq (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 69 | deriv E t ≤ B.growth period R*E t+0 := by |
| 70 | let τ : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ |
| 71 | have hd := inviscid_difference_hasDerivAt period hq T hT D u v hu hv t ht |
| 72 | have htime : ‖extendPath T hT B.derivative t‖ ≤ B.time := by |
| 73 | change ‖B.derivative (projIcc 0 T hT t)‖ ≤ _ |
| 74 | exact B.time_le _ |
| 75 | have hb := difference_metric_deriv_bound period D hq τ (u τ) (v τ) (B.metric τ) K e t 0 0 |
| 76 | B.c B.bound B.first B.time B.linear B.quadratic ‖D.approximation‖ R (extendPath T hT B.derivative t) |
| 77 | B.c_pos (by norm_num : (0 : ℝ) ≤ 0) (by norm_num : (0 : ℝ) ≤ 1) (hKv τ) (hev τ) (B.hasDeriv t ht) hd (B.bound_le τ) (B.first_le τ) htime |
| 78 | (B.linear_le τ) (B.quadratic_le τ) (D.approximation.norm_coe_le_norm τ) |
| 79 | ((u.norm_coe_le_norm τ).trans huR) ((v.norm_coe_le_norm τ).trans hvR) |
| 80 | (B.symmetric τ) (B.coercive τ) (B.inverse τ) (hz τ) (hud τ) (hvd τ) |
| 81 | simpa only [E,StabilityBudget.growth,sub_self,abs_zero,zero_pow (by decide : (2 : ℕ) ≠ 0),mul_zero] using hb |
| 82 | have hbound := linear_growth_bound E (deriv E) (B.growth period R) |
| 83 | 0 T (B.growth_nonneg period R hR) (le_refl 0) hT hEc.continuousOn hzero hder hineq |
| 84 | apply ContinuousMap.ext |
| 85 | intro t |
| 86 | have hc : B.c^2*‖value period (u t-v t)‖^2 ≤ E t.val := by |
| 87 | change _ ≤ ⟪K t.val (e t.val),e t.val⟫_ℝ |
| 88 | rw [hKv t,hev t] |
| 89 | exact coefficientOperator_coercive (B.metric t).coefficient (B.metric t).measurable |
| 90 | (B.metric t).bound (B.metric t).norm_bound (B.c^2) (B.coercive t) _ |
| 91 | have heB : E t.val ≤ 0 := by |
| 92 | simpa only [zero_mul] using hbound t.val t.property |
| 93 | have hn : ‖value period (u t-v t)‖ = 0 := by |
| 94 | have hcpos := sq_pos_of_pos B.c_pos |
| 95 | have hsq : ‖value period (u t-v t)‖^2 ≤ 0 := |
| 96 | (mul_le_mul_iff_right₀ hcpos).mp (by simpa only [mul_zero] using hc.trans heB) |
| 97 | exact (sq_nonpos_iff _).mp hsq |
| 98 | apply value_injective period |
| 99 | exact sub_eq_zero.mp (show value period (u t)-value period (v t)=0 from norm_eq_zero.mp hn) |
| 100 | |
| 101 | end EulerInviscidCorrectionUniqueness |