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.CorrectionEnergyData |
| 2 | import Euler.CorrectionTimeRestriction |
| 3 | |
| 4 | /-! Genuine coefficient and metric budgets persist under restriction to a partial time interval. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerCorrectionBudgetRestriction |
| 9 | |
| 10 | open Set EulerCorrectionOperators EulerCorrectionEnergyData EulerQuadraticSource EulerVolterraConvolution |
| 11 | open scoped Topology |
| 12 | |
| 13 | /-- Clamped restriction agrees with the original continuous path at every time in the shorter interval. -/ |
| 14 | theorem extend_restriction_eq {E : Type*} [NormedAddCommGroup E] {T S : ℝ} |
| 15 | (hT : 0 ≤ T) (hS : 0 ≤ S) (hTS : T ≤ S) (f : C(Icc (0 : ℝ) S,E)) |
| 16 | (t : ℝ) (ht : t ∈ Icc 0 T) : |
| 17 | extendPath T hT (f.comp (timeInclusion hTS)) t = extendPath S hS f t := by |
| 18 | unfold extendPath |
| 19 | simp only [projIcc_of_mem _ ht, projIcc_of_mem _ (show t ∈ Icc 0 S from ⟨ht.1,ht.2.trans hTS⟩)] |
| 20 | rfl |
| 21 | |
| 22 | /-- Restriction of a genuine time derivative gives the same genuine derivative in the shorter interval. -/ |
| 23 | theorem hasDerivAt_restriction {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 24 | {T S : ℝ} (hT : 0 ≤ T) (hS : 0 ≤ S) (hTS : T ≤ S) |
| 25 | (f f' : C(Icc (0 : ℝ) S,E)) |
| 26 | (hf : ∀ t ∈ Ioo 0 S, HasDerivAt (extendPath S hS f) (extendPath S hS f' t) t) |
| 27 | (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 28 | HasDerivAt (extendPath T hT (f.comp (timeInclusion hTS))) |
| 29 | (extendPath T hT (f'.comp (timeInclusion hTS)) t) t := by |
| 30 | rw [extend_restriction_eq hT hS hTS f' t ⟨ht.1.le,ht.2.le⟩] |
| 31 | apply (hf t ⟨ht.1,ht.2.trans_le hTS⟩).congr_of_eventuallyEq |
| 32 | filter_upwards [Ioo_mem_nhds ht.1 ht.2] with r hr |
| 33 | exact extend_restriction_eq hT hS hTS f r ⟨hr.1.le,hr.2.le⟩ |
| 34 | |
| 35 | variable (period : ℝ) [Fact (0 < period)] |
| 36 | |
| 37 | /-- Every concrete spatial budget restricts with exactly the same numerical constants. -/ |
| 38 | def SpatialBudget.restrict {q : ℕ} {T S : ℝ} {hq : 6 ≤ q+1} |
| 39 | {D : CorrectionData period (q+1) (Icc (0 : ℝ) S)} {N : ℕ} {R : C(Icc (0 : ℝ) S,ℝ)} |
| 40 | (B : SpatialBudget period hq D N R) (hTS : T ≤ S) : |
| 41 | SpatialBudget period hq (D.comp period (timeInclusion hTS)) N (R.comp (timeInclusion hTS)) where |
| 42 | Rc := B.Rc |
| 43 | M := B.M |
| 44 | B := B.B |
| 45 | B0 := B.B0 |
| 46 | B1 := B.B1 |
| 47 | A0 := B.A0 |
| 48 | A2 := B.A2 |
| 49 | residual := B.residual |
| 50 | Rc_nonneg := B.Rc_nonneg |
| 51 | M_one_le := B.M_one_le |
| 52 | B_nonneg := B.B_nonneg |
| 53 | B0_nonneg := B.B0_nonneg |
| 54 | B1_nonneg := B.B1_nonneg |
| 55 | A0_nonneg := B.A0_nonneg |
| 56 | A2_nonneg := B.A2_nonneg |
| 57 | residual_pos := B.residual_pos |
| 58 | radius_pos t := B.radius_pos (timeInclusion hTS t) |
| 59 | inverse_five t := B.inverse_five (timeInclusion hTS t) |
| 60 | inverse_six t := B.inverse_six (timeInclusion hTS t) |
| 61 | radius_small t := B.radius_small (timeInclusion hTS t) |
| 62 | metric_derivatives t := B.metric_derivatives (timeInclusion hTS t) |
| 63 | metric_base t := B.metric_base (timeInclusion hTS t) |
| 64 | background t := B.background (timeInclusion hTS t) |
| 65 | background_derivative t := B.background_derivative (timeInclusion hTS t) |
| 66 | linear t := B.linear (timeInclusion hTS t) |
| 67 | quadratic t := B.quadratic (timeInclusion hTS t) |
| 68 | residual_bound t := B.residual_bound (timeInclusion hTS t) |
| 69 | |
| 70 | /-- The actual inverse metric and its genuine derivative restrict with unchanged numerical budgets. -/ |
| 71 | def MetricBudget.restrict {q : ℕ} {T S : ℝ} {hS : 0 ≤ S} |
| 72 | {D : CorrectionData period (q+1) (Icc (0 : ℝ) S)} |
| 73 | (K : MetricBudget period S hS D) (hT : 0 ≤ T) (hTS : T ≤ S) : |
| 74 | MetricBudget period T hT (D.comp period (timeInclusion hTS)) where |
| 75 | metric t := K.metric (timeInclusion hTS t) |
| 76 | continuous := K.continuous.comp (timeInclusion hTS).continuous |
| 77 | derivative := K.derivative.comp (timeInclusion hTS) |
| 78 | hasDeriv t ht := hasDerivAt_restriction hT hS hTS (K.operatorPath period) K.derivative K.hasDeriv t ht |
| 79 | c := K.c |
| 80 | c_pos := K.c_pos |
| 81 | symmetric t := K.symmetric (timeInclusion hTS t) |
| 82 | coercive t := K.coercive (timeInclusion hTS t) |
| 83 | inverse t := K.inverse (timeInclusion hTS t) |
| 84 | bound := K.bound |
| 85 | first := K.first |
| 86 | time := K.time |
| 87 | bound_nonneg := K.bound_nonneg |
| 88 | first_nonneg := K.first_nonneg |
| 89 | time_nonneg := K.time_nonneg |
| 90 | bound_le t := K.bound_le (timeInclusion hTS t) |
| 91 | first_le t := K.first_le (timeInclusion hTS t) |
| 92 | time_le t := K.time_le (timeInclusion hTS t) |
| 93 | |
| 94 | end EulerCorrectionBudgetRestriction |