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 NavierStokes.HolomorphicFamily |
| 2 | |
| 3 | noncomputable section |
| 4 | |
| 5 | namespace NavierStokes.CompactHolomorphicFamily |
| 6 | |
| 7 | open Set Filter Metric Complex MeasureTheory |
| 8 | open scoped Topology Interval NNReal |
| 9 | |
| 10 | variable {K E : Type*} [TopologicalSpace K] [CompactSpace K] |
| 11 | [NormedAddCommGroup E] [NormedSpace ℂ E] [CompleteSpace E] |
| 12 | |
| 13 | /-- Evaluation commutes with a genuine circle integral of continuous paths. -/ |
| 14 | theorem eval_circleIntegral {F : ℂ → C(K, E)} {c : ℂ} {R : ℝ} |
| 15 | (hF : CircleIntegrable F c R) (x : K) : |
| 16 | (∮ z in C(c, R), F z) x = ∮ z in C(c, R), F z x := by |
| 17 | let L : C(K, E) →L[ℂ] E := ContinuousMap.evalCLM ℂ x |
| 18 | change L (∫ θ in (0 : ℝ)..(2 * Real.pi), deriv (circleMap c R) θ • |
| 19 | F (circleMap c R θ)) = _ |
| 20 | rw [← L.intervalIntegral_comp_comm hF.out] |
| 21 | simp only [map_smul] |
| 22 | rfl |
| 23 | |
| 24 | /-- A continuous compact-valued family with holomorphic evaluations is |
| 25 | holomorphic in the supremum norm. Local uniform bounds follow from compactness. -/ |
| 26 | theorem differentiableOn_of_evaluations {F : ℂ → C(K, E)} {U : Set ℂ} |
| 27 | (hU : IsOpen U) (hF : ContinuousOn F U) |
| 28 | (hhol : ∀ x : K, DifferentiableOn ℂ (fun z => F z x) U) : |
| 29 | DifferentiableOn ℂ F U := by |
| 30 | intro z hz |
| 31 | obtain ⟨δ, hδ, hδU⟩ := Metric.mem_nhds_iff.mp (hU.mem_nhds hz) |
| 32 | let ρ : ℝ≥0 := ⟨δ / 2, by positivity⟩ |
| 33 | have hρ : 0 < ρ := by change (0 : ℝ) < δ / 2; positivity |
| 34 | have hDisk : closedBall z (ρ : ℝ) ⊆ U := fun w hw => |
| 35 | hδU (Metric.mem_ball.mpr ((Metric.mem_closedBall.mp hw).trans_lt (by |
| 36 | change δ / 2 < δ; linarith))) |
| 37 | have hc : ContinuousOn F (closedBall z (ρ : ℝ)) := hF.mono hDisk |
| 38 | have hi : CircleIntegrable F z ρ := |
| 39 | (hc.mono sphere_subset_closedBall).circleIntegrable ρ.2 |
| 40 | have heq : (fun w => (2 * Real.pi * I : ℂ)⁻¹ • |
| 41 | ∮ v in C(z, (ρ : ℝ)), (v - w)⁻¹ • F v) =ᶠ[𝓝 z] F := by |
| 42 | filter_upwards [Metric.isOpen_ball.mem_nhds |
| 43 | (Metric.mem_ball_self (show 0 < (ρ : ℝ) from hρ))] with w hw |
| 44 | ext x |
| 45 | have hkernel : ContinuousOn (fun v : ℂ => (v - w)⁻¹) (sphere z (ρ : ℝ)) := |
| 46 | (continuous_id.sub continuous_const).continuousOn.inv₀ (fun v hv => |
| 47 | sub_ne_zero.mpr (by |
| 48 | intro he |
| 49 | change v = w at he |
| 50 | subst v |
| 51 | exact (Metric.mem_ball.mp hw).ne (Metric.mem_sphere.mp hv))) |
| 52 | have hk : CircleIntegrable (fun v => (v - w)⁻¹ • F v) z ρ := |
| 53 | (hkernel.smul (hc.mono sphere_subset_closedBall)).circleIntegrable ρ.2 |
| 54 | change (2 * Real.pi * I : ℂ)⁻¹ • (∮ v in C(z, (ρ : ℝ)), (v - w)⁻¹ • F v) x = _ |
| 55 | rw [eval_circleIntegral hk] |
| 56 | have hDC := ((hhol x).mono (closure_ball_subset_closedBall.trans hDisk)).diffContOnCl |
| 57 | exact hDC.two_pi_i_inv_smul_circleIntegral_sub_inv_smul hw |
| 58 | have hd := (hasFPowerSeriesOn_cauchy_integral hi hρ).analyticAt.differentiableAt |
| 59 | exact (hd.congr_of_eventuallyEq heq.symm).differentiableWithinAt |
| 60 | |
| 61 | end NavierStokes.CompactHolomorphicFamily |