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 Mathlib.Analysis.Calculus.Deriv.Comp |
| 2 | import Mathlib.Analysis.Calculus.Deriv.Prod |
| 3 | import Mathlib.Analysis.Normed.Group.InfiniteSum |
| 4 | import Mathlib.Analysis.SpecialFunctions.Integrals.Basic |
| 5 | |
| 6 | /-! |
| 7 | # Graph restriction and auxiliary averaging |
| 8 | |
| 9 | Sections 8.1 and 11 of the candidate manuscript distinguish the pointwise |
| 10 | restriction of an auxiliary lift from its auxiliary average. This file proves |
| 11 | three independent facts: |
| 12 | |
| 13 | * uniform pointwise majorants on a lift survive restriction to any graph; |
| 14 | * summable uniform majorants give convergent graph-restricted series; |
| 15 | * even a smooth periodic lift with zero auxiliary average can restrict to the |
| 16 | constant function one on a prescribed graph. |
| 17 | |
| 18 | The first derivative chain rule is also recorded. None of these statements |
| 19 | supplies the manuscript's claimed all-order residual estimates. |
| 20 | -/ |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | namespace NavierStokes.GraphRestriction |
| 25 | |
| 26 | open scoped BigOperators |
| 27 | |
| 28 | /-- Evaluate an auxiliary lift on a graph. -/ |
| 29 | def pullback {X Y E : Type*} (F : X → Y → E) (γ : X → Y) (x : X) : E := |
| 30 | F x (γ x) |
| 31 | |
| 32 | section UniformBounds |
| 33 | |
| 34 | variable {X Y E : Type*} [NormedAddCommGroup E] |
| 35 | |
| 36 | /-- The essential hypothesis is a bound at every auxiliary point. -/ |
| 37 | theorem pullback_norm_le (F : X → Y → E) (γ : X → Y) (B : X → ℝ) |
| 38 | (hF : ∀ x y, ‖F x y‖ ≤ B x) (x : X) : |
| 39 | ‖pullback F γ x‖ ≤ B x := |
| 40 | hF x (γ x) |
| 41 | |
| 42 | /-- Uniform errors also remain bounded on every graph. -/ |
| 43 | theorem pullback_sub_norm_le (F G : X → Y → E) (γ : X → Y) (B : X → ℝ) |
| 44 | (hFG : ∀ x y, ‖F x y - G x y‖ ≤ B x) (x : X) : |
| 45 | ‖pullback F γ x - pullback G γ x‖ ≤ B x := |
| 46 | hFG x (γ x) |
| 47 | |
| 48 | theorem pullback_sum {ι : Type*} (s : Finset ι) (F : ι → X → Y → E) |
| 49 | (γ : X → Y) (x : X) : |
| 50 | pullback (fun x y => ∑ i ∈ s, F i x y) γ x = |
| 51 | ∑ i ∈ s, pullback (F i) γ x := rfl |
| 52 | |
| 53 | /-- This is pointwise convergence on the physical graph under a genuinely |
| 54 | uniform, summable bound on the auxiliary lift. -/ |
| 55 | theorem summable_pullback [CompleteSpace E] {ι : Type*} |
| 56 | (F : ι → X → Y → E) (γ : X → Y) (B : ι → ℝ) |
| 57 | (hB : Summable B) (hF : ∀ i x y, ‖F i x y‖ ≤ B i) (x : X) : |
| 58 | Summable (fun i => pullback (F i) γ x) := |
| 59 | Summable.of_norm_bounded hB (fun i => hF i x (γ x)) |
| 60 | |
| 61 | /-- Quantitative control of a graph-restricted sum. The normed group need |
| 62 | not be complete for this bound; completeness in `summable_pullback` supplies |
| 63 | actual convergence. -/ |
| 64 | theorem norm_tsum_pullback_le {ι : Type*} |
| 65 | (F : ι → X → Y → E) (γ : X → Y) (B : ι → ℝ) |
| 66 | (hB : Summable B) (hF : ∀ i x y, ‖F i x y‖ ≤ B i) (x : X) : |
| 67 | ‖∑' i, pullback (F i) γ x‖ ≤ ∑' i, B i := |
| 68 | tsum_of_norm_bounded hB.hasSum (fun i => hF i x (γ x)) |
| 69 | |
| 70 | end UniformBounds |
| 71 | |
| 72 | section Derivative |
| 73 | |
| 74 | variable {A E : Type*} [NormedAddCommGroup A] [NormedSpace ℝ A] |
| 75 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 76 | |
| 77 | /-- The graph derivative includes the derivative in the auxiliary direction. |
| 78 | Here `D` is the complete derivative of the lift at the graph point. -/ |
| 79 | theorem hasDerivAt_pullback (F : ℝ × A → E) (γ : ℝ → A) |
| 80 | (x : ℝ) (γ' : A) (D : (ℝ × A) →L[ℝ] E) |
| 81 | (hF : HasFDerivAt F D (x, γ x)) (hγ : HasDerivAt γ γ' x) : |
| 82 | HasDerivAt (fun t => F (t, γ t)) (D (1, γ')) x := by |
| 83 | exact hF.comp_hasDerivAt x ((hasDerivAt_id x).prodMk hγ) |
| 84 | |
| 85 | /-- A derivative bound must account for the speed of the graph. -/ |
| 86 | theorem graph_derivative_norm_le (D : (ℝ × A) →L[ℝ] E) (γ' : A) : |
| 87 | ‖D (1, γ')‖ ≤ ‖D‖ * max 1 ‖γ'‖ := by |
| 88 | simpa only [Prod.norm_def, norm_one] using D.le_opNorm (1, γ') |
| 89 | |
| 90 | end Derivative |
| 91 | |
| 92 | section ZeroMeanExample |
| 93 | |
| 94 | /-- The normalized average on a two-dimensional torus of period `2π`. |
| 95 | Writing it as an iterated integral avoids imposing a quotient presentation. |
| 96 | The example below is periodic in each auxiliary coordinate. -/ |
| 97 | def auxiliaryMean (f : (ℝ × ℝ) → ℝ) : ℝ := |
| 98 | (∫ z in (0 : ℝ)..(2 * Real.pi), |
| 99 | ∫ y in (0 : ℝ)..(2 * Real.pi), f (y, z)) / (2 * Real.pi) ^ 2 |
| 100 | |
| 101 | /-- A lift adapted to an arbitrary prescribed graph. -/ |
| 102 | def zeroMeanLift {X : Type*} (γ : X → ℝ × ℝ) (x : X) (y : ℝ × ℝ) : ℝ := |
| 103 | Real.cos (y.1 - (γ x).1) |
| 104 | |
| 105 | theorem zeroMeanLift_periodic_first {X : Type*} (γ : X → ℝ × ℝ) |
| 106 | (x : X) (y z : ℝ) : |
| 107 | zeroMeanLift γ x (y + 2 * Real.pi, z) = zeroMeanLift γ x (y, z) := by |
| 108 | unfold zeroMeanLift |
| 109 | dsimp only |
| 110 | rw [add_sub_right_comm, Real.cos_add_two_pi] |
| 111 | |
| 112 | theorem zeroMeanLift_periodic_second {X : Type*} (γ : X → ℝ × ℝ) |
| 113 | (x : X) (y z : ℝ) : |
| 114 | zeroMeanLift γ x (y, z + 2 * Real.pi) = zeroMeanLift γ x (y, z) := rfl |
| 115 | |
| 116 | theorem integral_shifted_cos (a : ℝ) : |
| 117 | (∫ y in (0 : ℝ)..(2 * Real.pi), Real.cos (y - a)) = 0 := by |
| 118 | rw [intervalIntegral.integral_comp_sub_right, integral_cos] |
| 119 | simp only [zero_sub, Real.sin_two_pi_sub, Real.sin_neg, sub_self] |
| 120 | |
| 121 | /-- Exact zero auxiliary mean, for every value of the physical variable. -/ |
| 122 | theorem auxiliaryMean_zeroMeanLift {X : Type*} (γ : X → ℝ × ℝ) (x : X) : |
| 123 | auxiliaryMean (zeroMeanLift γ x) = 0 := by |
| 124 | unfold auxiliaryMean zeroMeanLift |
| 125 | simp only [integral_shifted_cos, intervalIntegral.integral_zero, zero_div] |
| 126 | |
| 127 | /-- Nevertheless, its graph restriction has value one everywhere. -/ |
| 128 | theorem pullback_zeroMeanLift {X : Type*} (γ : X → ℝ × ℝ) (x : X) : |
| 129 | pullback (zeroMeanLift γ) γ x = 1 := by |
| 130 | simp only [pullback, zeroMeanLift, sub_self, Real.cos_zero] |
| 131 | |
| 132 | /-- The example preserves the prescribed graph's differentiability order, |
| 133 | including smoothness when `n = ∞`. -/ |
| 134 | theorem contDiff_zeroMeanLift {n : WithTop ℕ∞} (γ : ℝ → ℝ × ℝ) |
| 135 | (hγ : ContDiff ℝ n γ) : |
| 136 | ContDiff ℝ n |
| 137 | (fun p : ℝ × (ℝ × ℝ) => zeroMeanLift γ p.1 p.2) := by |
| 138 | unfold zeroMeanLift |
| 139 | exact Real.contDiff_cos.comp |
| 140 | ((contDiff_fst.comp contDiff_snd).sub |
| 141 | ((contDiff_fst.comp hγ).comp contDiff_fst)) |
| 142 | |
| 143 | /-- For any prescribed graph, auxiliary mean cancellation alone cannot |
| 144 | imply cancellation after graph restriction. -/ |
| 145 | theorem zero_mean_does_not_force_zero (γ : ℝ → ℝ × ℝ) : |
| 146 | ¬ (∀ F : ℝ → (ℝ × ℝ) → ℝ, |
| 147 | (∀ x, auxiliaryMean (F x) = 0) → ∀ x, pullback F γ x = 0) := by |
| 148 | intro h |
| 149 | have hzero := h (zeroMeanLift γ) (auxiliaryMean_zeroMeanLift γ) 0 |
| 150 | rw [pullback_zeroMeanLift] at hzero |
| 151 | exact one_ne_zero hzero |
| 152 | |
| 153 | end ZeroMeanExample |
| 154 | |
| 155 | end NavierStokes.GraphRestriction |