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.TransportPrimitive |
| 2 | import NavierStokes.SmoothFourierData |
| 3 | import NavierStokes.ParametricTorusInverse |
| 4 | import NavierStokes.ChartScales |
| 5 | import NavierStokes.Flatness |
| 6 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.Periodic |
| 7 | |
| 8 | /-! |
| 9 | # Exact radial aliases and Fourier suppression |
| 10 | |
| 11 | The compactification defect is retained as an actual function. Its averaging |
| 12 | and integration-by-parts identities concern genuine Bochner integrals. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set Function Filter MeasureTheory |
| 18 | open scoped ContDiff Interval Topology BigOperators |
| 19 | |
| 20 | namespace NavierStokes.FourierAlias |
| 21 | |
| 22 | open TorusInverse |
| 23 | |
| 24 | abbrev State := ℝ × Plane |
| 25 | |
| 26 | section Averages |
| 27 | |
| 28 | variable {F : Type} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 29 | |
| 30 | /-- Integer translation invariance of an actual function on the universal cover. -/ |
| 31 | noncomputable def TorusPeriodic (f : Plane → F) : Prop := |
| 32 | ∀ Y : Plane, ∀ k : Frequency, f (Y + ((k.1 : ℝ), (k.2 : ℝ))) = f Y |
| 33 | |
| 34 | /-- The actual normalized unit-square average. -/ |
| 35 | noncomputable def torusMean (f : Plane → F) : F := |
| 36 | ∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, f (x, y) |
| 37 | |
| 38 | noncomputable def sliceMean (f : State → F) (U : ℝ) : F := torusMean (fun Y => f (U, Y)) |
| 39 | |
| 40 | omit [NormedAddCommGroup F] [NormedSpace ℝ F] in |
| 41 | theorem torusPeriodic_first {f : Plane → F} (hp : TorusPeriodic f) (y : ℝ) : |
| 42 | Periodic (fun x => f (x, y)) 1 := by |
| 43 | intro x |
| 44 | simpa using hp (x, y) (1, 0) |
| 45 | |
| 46 | omit [NormedAddCommGroup F] [NormedSpace ℝ F] in |
| 47 | theorem torusPeriodic_second {f : Plane → F} (hp : TorusPeriodic f) (x : ℝ) : |
| 48 | Periodic (fun y => f (x, y)) 1 := by |
| 49 | intro y |
| 50 | simpa using hp (x, y) (0, 1) |
| 51 | |
| 52 | theorem periodic_integral_translate {g : ℝ → F} (hg : Periodic g 1) (c : ℝ) : |
| 53 | (∫ x in (0 : ℝ)..1, g (x + c)) = ∫ x in (0 : ℝ)..1, g x := by |
| 54 | rw [intervalIntegral.integral_comp_add_right] |
| 55 | simpa only [zero_add, add_zero, add_comm] using hg.intervalIntegral_add_eq c 0 |
| 56 | |
| 57 | /-- Averaging is invariant under any real torus translation. -/ |
| 58 | theorem torusMean_translate {f : Plane → F} (hp : TorusPeriodic f) (Y : Plane) : |
| 59 | torusMean (fun Z => f (Z + Y)) = torusMean f := by |
| 60 | have hx (y : ℝ) : (∫ x in (0 : ℝ)..1, f (x + Y.1, y + Y.2)) = |
| 61 | ∫ x in (0 : ℝ)..1, f (x, y + Y.2) := |
| 62 | periodic_integral_translate (torusPeriodic_first hp (y + Y.2)) Y.1 |
| 63 | have hy : Periodic (fun y => ∫ x in (0 : ℝ)..1, f (x, y)) 1 := by |
| 64 | intro y |
| 65 | apply intervalIntegral.integral_congr |
| 66 | intro x _ |
| 67 | exact torusPeriodic_second hp x y |
| 68 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, f (x + Y.1, y + Y.2)) = _ |
| 69 | simp_rw [hx] |
| 70 | exact periodic_integral_translate hy Y.2 |
| 71 | |
| 72 | theorem torusMean_smul (c : ℝ) (f : Plane → F) : |
| 73 | torusMean (fun Y => c • f Y) = c • torusMean f := by |
| 74 | simp only [torusMean, intervalIntegral.integral_smul] |
| 75 | |
| 76 | /-- Fubini on two compact real intervals. -/ |
| 77 | theorem intervalIntegral_comm {g : Plane → F} (hg : Continuous g) |
| 78 | {a b c d : ℝ} (hab : a ≤ b) (hcd : c ≤ d) : |
| 79 | (∫ y in c..d, ∫ x in a..b, g (x, y)) = ∫ x in a..b, ∫ y in c..d, g (x, y) := by |
| 80 | simp only [intervalIntegral.integral_of_le hab, intervalIntegral.integral_of_le hcd] |
| 81 | apply (integral_integral_swap ?_).symm |
| 82 | change Integrable g ((volume.restrict (Ioc a b)).prod (volume.restrict (Ioc c d))) |
| 83 | rw [Measure.prod_restrict] |
| 84 | exact (hg.continuousOn.integrableOn_compact (isCompact_Icc.prod isCompact_Icc)).mono_set |
| 85 | (Set.prod_mono Ioc_subset_Icc_self Ioc_subset_Icc_self) |
| 86 | |
| 87 | theorem continuous_parameter_interval {H : Type} [TopologicalSpace H] |
| 88 | [FirstCountableTopology H] [LocallyCompactSpace H] {g : H × ℝ → F} |
| 89 | (hg : Continuous g) {a b : ℝ} (hab : a ≤ b) : |
| 90 | Continuous (fun x => ∫ u in a..b, g (x, u)) := by |
| 91 | have heq : (fun x => ∫ u in a..b, g (x, u)) = |
| 92 | (fun x => ∫ u in Icc a b, g (x, u)) := by |
| 93 | funext x |
| 94 | rw [intervalIntegral.integral_of_le hab, integral_Icc_eq_integral_Ioc] |
| 95 | rw [heq] |
| 96 | exact continuous_parametric_integral_of_continuous (f := fun x u => g (x, u)) hg isCompact_Icc |
| 97 | |
| 98 | theorem torusMean_neg (f : Plane → F) : torusMean (fun Y => -f Y) = -torusMean f := by |
| 99 | simp only [torusMean, intervalIntegral.integral_neg] |
| 100 | |
| 101 | theorem torusMean_add {f g : Plane → F} (hf : Continuous f) (hg : Continuous g) : |
| 102 | torusMean (fun Y => f Y + g Y) = torusMean f + torusMean g := by |
| 103 | have hcf : Continuous (fun y => ∫ x in (0 : ℝ)..1, f (x, y)) := |
| 104 | continuous_parameter_interval (g := fun p : ℝ × ℝ => f (p.2, p.1)) |
| 105 | (hf.comp (continuous_snd.prodMk continuous_fst)) (by norm_num) |
| 106 | have hcg : Continuous (fun y => ∫ x in (0 : ℝ)..1, g (x, y)) := |
| 107 | continuous_parameter_interval (g := fun p : ℝ × ℝ => g (p.2, p.1)) |
| 108 | (hg.comp (continuous_snd.prodMk continuous_fst)) (by norm_num) |
| 109 | have hx (y : ℝ) : (∫ x in (0 : ℝ)..1, f (x, y) + g (x, y)) = |
| 110 | (∫ x in (0 : ℝ)..1, f (x, y)) + ∫ x in (0 : ℝ)..1, g (x, y) := |
| 111 | intervalIntegral.integral_add |
| 112 | ((hf.comp (continuous_id.prodMk continuous_const)).intervalIntegrable _ _) |
| 113 | ((hg.comp (continuous_id.prodMk continuous_const)).intervalIntegrable _ _) |
| 114 | unfold torusMean |
| 115 | simp_rw [hx] |
| 116 | exact intervalIntegral.integral_add (hcf.intervalIntegrable _ _) (hcg.intervalIntegrable _ _) |
| 117 | |
| 118 | theorem torusMean_sub {f g : Plane → F} (hf : Continuous f) (hg : Continuous g) : |
| 119 | torusMean (fun Y => f Y - g Y) = torusMean f - torusMean g := by |
| 120 | simp only [sub_eq_add_neg] |
| 121 | rw [torusMean_add hf hg.fun_neg, torusMean_neg] |
| 122 | |
| 123 | /-- The torus and radial averages commute as actual iterated integrals. -/ |
| 124 | theorem torusMean_intervalIntegral {g : State → F} (hg : Continuous g) |
| 125 | {a b : ℝ} (hab : a ≤ b) : |
| 126 | torusMean (fun Y => ∫ s in a..b, g (s, Y)) = ∫ s in a..b, sliceMean g s := by |
| 127 | have hx (y : ℝ) : (∫ x in (0 : ℝ)..1, ∫ s in a..b, g (s, (x, y))) = |
| 128 | ∫ s in a..b, ∫ x in (0 : ℝ)..1, g (s, (x, y)) := by |
| 129 | exact intervalIntegral_comm (g := fun p : Plane => g (p.1, (p.2, y))) |
| 130 | (hg.comp (continuous_fst.prodMk (continuous_snd.prodMk continuous_const))) hab (by norm_num) |
| 131 | have hc : Continuous (fun p : Plane => ∫ x in (0 : ℝ)..1, g (p.1, (x, p.2))) := by |
| 132 | exact continuous_parameter_interval (g := fun p : Plane × ℝ => g (p.1.1, (p.2, p.1.2))) |
| 133 | (hg.comp (continuous_fst.fst.prodMk (continuous_snd.prodMk continuous_fst.snd))) |
| 134 | (by norm_num : (0 : ℝ) ≤ 1) |
| 135 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, ∫ s in a..b, g (s, (x, y))) = _ |
| 136 | simp_rw [hx] |
| 137 | exact intervalIntegral_comm hc hab (by norm_num) |
| 138 | |
| 139 | variable [CompleteSpace F] |
| 140 | |
| 141 | end Averages |
| 142 | |
| 143 | section IntegrationByParts |
| 144 | |
| 145 | end IntegrationByParts |
| 146 | |
| 147 | section ActualFourierInverse |
| 148 | |
| 149 | open ParametricTorusInverse |
| 150 | |
| 151 | end ActualFourierInverse |
| 152 | |
| 153 | section SmallScale |
| 154 | |
| 155 | end SmallScale |
| 156 | |
| 157 | end NavierStokes.FourierAlias |