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.TimeWeakDerivative |
| 2 | import Euler.TimeH1PointwiseBounds |
| 3 | |
| 4 | /-! |
| 5 | Integration by parts for an actual H¹ representative against zero-endpoint |
| 6 | tests. The identity follows from the proved primitive representation and |
| 7 | does not posit a weak derivative as an additional assumption. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerTimeH1WeakPairing |
| 13 | |
| 14 | open Set MeasureTheory InnerProductSpace EulerTimeLp EulerTerminalTimePrimitive |
| 15 | EulerVolterraConvolution EulerTimeWeakDerivative EulerTimeH1PointwiseBounds |
| 16 | |
| 17 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 18 | |
| 19 | theorem inner_zero_trace (T : ℝ) (hT : 0 ≤ T) (p q : TimeLp T E) |
| 20 | (η : ℝ → E) (hη : AbsolutelyContinuousOnInterval η 0 T) |
| 21 | (hp : (p : ℝ → E) =ᵐ[timeMeasure T] η) |
| 22 | (hder : ∀ᵐ t ∂timeMeasure T, HasDerivAt η (q t) t) |
| 23 | (v : TimeLp T E) (hv : initialTrace T hT v = 0) : |
| 24 | ⟪p,v⟫_ℝ = -⟪q,primitiveTimeLp T hT v⟫_ℝ := by |
| 25 | have he : p = primitiveTimeLp T hT q+constantField T hT (η T) := by |
| 26 | apply Lp.ext |
| 27 | filter_upwards [hp,primitiveTimeLp_ae T hT q,constantField_ae T hT (η T), |
| 28 | Lp.coeFn_add (primitiveTimeLp T hT q) (constantField T hT (η T)), |
| 29 | ae_restrict_mem measurableSet_Icc] with t hpt hqt hct hat hmem |
| 30 | rw [hpt,hat,Pi.add_apply,hqt,hct] |
| 31 | exact eq_primitive_add_terminal T hT q η hη hder t hmem |
| 32 | rw [he,inner_add_left,primitive_inner_zero_trace T hT q v hv, |
| 33 | constantField_inner,hv,inner_zero_right,neg_zero,add_zero] |
| 34 | |
| 35 | /-- A continuous derivative on the closed interval gives the exact weak |
| 36 | pairing of the corresponding genuine time L² elements. -/ |
| 37 | theorem pathLp_inner_zero_trace (T : ℝ) (hT : 0 ≤ T) |
| 38 | (p q : C(Icc (0 : ℝ) T,E)) |
| 39 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 40 | HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) |
| 41 | (v : TimeLp T E) (hv : initialTrace T hT v = 0) : |
| 42 | ⟪pathLp T hT p,v⟫_ℝ = -⟪pathLp T hT q,primitiveTimeLp T hT v⟫_ℝ := by |
| 43 | have hac : AbsolutelyContinuousOnInterval (extendPath T hT p) 0 T := by |
| 44 | have hl : LipschitzOnWith ‖q‖₊ (extendPath T hT p) (Icc (0 : ℝ) T) := by |
| 45 | apply (convex_Icc (0 : ℝ) T).lipschitzOnWith_of_nnnorm_hasDerivWithin_le |
| 46 | (f' := extendPath T hT q) |
| 47 | · intro t ht |
| 48 | simpa only [extendPath,projIcc_of_mem hT ht] using hd ⟨t,ht⟩ |
| 49 | · intro t ht |
| 50 | exact q.norm_coe_le_norm (projIcc 0 T hT t) |
| 51 | exact (show LipschitzOnWith ‖q‖₊ (extendPath T hT p) (uIcc (0 : ℝ) T) by |
| 52 | simpa only [uIcc_of_le hT] using hl).absolutelyContinuousOnInterval |
| 53 | apply inner_zero_trace T hT (pathLp T hT p) (pathLp T hT q) |
| 54 | (extendPath T hT p) hac (pathLp_ae T hT p) _ v hv |
| 55 | have hmem : ∀ᵐ t ∂timeMeasure T, t ∈ Ioo (0 : ℝ) T := by |
| 56 | change ∀ᵐ t ∂volume.restrict (Icc (0 : ℝ) T), t ∈ Ioo (0 : ℝ) T |
| 57 | rw [← restrict_Ioo_eq_restrict_Icc] |
| 58 | exact ae_restrict_mem measurableSet_Ioo |
| 59 | filter_upwards [hmem,pathLp_ae T hT q] with t ht hq |
| 60 | have hti : t ∈ Icc (0 : ℝ) T := ⟨ht.1.le,ht.2.le⟩ |
| 61 | rw [hq] |
| 62 | simpa only [extendPath,projIcc_of_mem hT hti] using |
| 63 | (hd ⟨t,hti⟩).hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 64 | |
| 65 | end EulerTimeH1WeakPairing |