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.LabelSumBounds |
| 2 | import NavierStokes.LinearWaveBounds |
| 3 | import Mathlib.Data.Countable.Defs |
| 4 | |
| 5 | /-! |
| 6 | # Uniform primary weights and curl estimates |
| 7 | |
| 8 | A single enumeration of the joint band/label index transfers the existing |
| 9 | weighted analysis without losing any inverse-edge factors. The reindexed |
| 10 | strip retains the same domain, edge distance, and vanishing weight. Every |
| 11 | constant is chosen before both the original band and the label. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.UniformPrimaryWeights |
| 17 | |
| 18 | open Set Function Filter WeightedClasses LabelSumBounds |
| 19 | open scoped ContDiff Topology BigOperators |
| 20 | |
| 21 | variable {ι E F G : Type*} {D : Type} |
| 22 | [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 23 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 24 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 25 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 26 | |
| 27 | /-- Only the discrete scales are reindexed. The spatial edge geometry and |
| 28 | its possibly vanishing weight are exactly the original ones. -/ |
| 29 | noncomputable def reindexedStrip (s : StripData D) (e : ℕ → ℕ × ι) : StripData D where |
| 30 | domain := s.domain |
| 31 | isOpen_domain := s.isOpen_domain |
| 32 | epsilon k := s.epsilon (e k).1 |
| 33 | epsilon_pos k := s.epsilon_pos (e k).1 |
| 34 | epsilon_le_one k := s.epsilon_le_one (e k).1 |
| 35 | slow k := s.slow (e k).1 |
| 36 | one_le_slow k := s.one_le_slow (e k).1 |
| 37 | delta := s.delta |
| 38 | delta_pos := s.delta_pos |
| 39 | zeta := s.zeta |
| 40 | zeta_smooth := s.zeta_smooth |
| 41 | zeta_nonneg := s.zeta_nonneg |
| 42 | |
| 43 | noncomputable def pull (e : ℕ → ℕ × ι) (f : ι → ℕ → D → E) : ℕ → D → E := |
| 44 | fun k => f (e k).2 (e k).1 |
| 45 | |
| 46 | @[simp] theorem reindexed_growth (s : StripData D) (e : ℕ → ℕ × ι) (k : ℕ) (x : D) : |
| 47 | (reindexedStrip s e).growth k x = s.growth (e k).1 x := rfl |
| 48 | |
| 49 | @[simp] theorem reindexed_majorant (s : StripData D) (e : ℕ → ℕ × ι) |
| 50 | (w : ι → ℕ → D → ℝ) (α C : ℝ) (p k : ℕ) (x : D) : |
| 51 | majorant (reindexedStrip s e) (pull e w) α C p k x = |
| 52 | majorant s (w (e k).2) α C p (e k).1 x := rfl |
| 53 | |
| 54 | theorem pull_class {s : StripData D} {w : ι → ℕ → D → ℝ} {α : ℝ} |
| 55 | {f : ι → ℕ → D → E} (hf : UniformClass s w α f) (e : ℕ → ℕ × ι) : |
| 56 | MemClass (reindexedStrip s e) (pull e w) α (pull e f) := by |
| 57 | refine ⟨fun k => hf.weight_nonneg (e k).2 (e k).1, |
| 58 | fun k => hf.smooth (e k).2 (e k).1, ?_⟩ |
| 59 | intro m |
| 60 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 61 | exact ⟨C, hC, p, fun k => hb (e k).2 (e k).1⟩ |
| 62 | |
| 63 | /-- Surjectivity is the reason the constants also control every original |
| 64 | label. It is never replaced by a separate bound for each label. -/ |
| 65 | theorem uniform_of_pull {s : StripData D} {w : ι → ℕ → D → ℝ} {α : ℝ} |
| 66 | {f : ι → ℕ → D → E} {e : ℕ → ℕ × ι} (he : Surjective e) |
| 67 | (hf : MemClass (reindexedStrip s e) (pull e w) α (pull e f)) : |
| 68 | UniformClass s w α f := by |
| 69 | refine ⟨?_, ?_, ?_⟩ |
| 70 | · intro l n x hx |
| 71 | obtain ⟨k, hk⟩ := he (n, l) |
| 72 | simpa only [pull, hk] using hf.weight_nonneg k x hx |
| 73 | · intro l n |
| 74 | obtain ⟨k, hk⟩ := he (n, l) |
| 75 | have h := hf.smooth k |
| 76 | simp only [pull, hk] at h |
| 77 | exact h |
| 78 | · intro m |
| 79 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 80 | refine ⟨C, hC, p, fun l n x hx j hj => ?_⟩ |
| 81 | obtain ⟨k, hk⟩ := he (n, l) |
| 82 | simpa only [reindexed_majorant, pull, hk] using hb k x hx j hj |
| 83 | |
| 84 | noncomputable def enumeration (ι : Type*) [Countable ι] [Nonempty ι] : ℕ → ℕ × ι := |
| 85 | Classical.choose (exists_surjective_nat (ℕ × ι)) |
| 86 | |
| 87 | theorem enumeration_surjective (ι : Type*) [Countable ι] [Nonempty ι] : |
| 88 | Surjective (enumeration ι) := Classical.choose_spec (exists_surjective_nat (ℕ × ι)) |
| 89 | |
| 90 | section WeightedOperations |
| 91 | |
| 92 | variable [Countable ι] [Nonempty ι] |
| 93 | {s : StripData D} {w g r : ι → ℕ → D → ℝ} {β : ℝ} |
| 94 | |
| 95 | end WeightedOperations |
| 96 | |
| 97 | section Calculus |
| 98 | |
| 99 | variable {s : StripData D} {w v : ι → ℕ → D → ℝ} {α β : ℝ} |
| 100 | |
| 101 | theorem fderiv_class {f : ι → ℕ → D → E} (hf : UniformClass s w α f) : |
| 102 | UniformClass s w α (fun l n => fderiv ℝ (f l n)) := by |
| 103 | refine ⟨hf.weight_nonneg, fun l n => |
| 104 | (contDiffOn_infty_iff_fderiv_of_isOpen s.isOpen_domain).mp (hf.smooth l n) |>.2, ?_⟩ |
| 105 | intro m |
| 106 | obtain ⟨C, hC, p, hb⟩ := hf.bounds (m + 1) |
| 107 | refine ⟨C, hC, p, fun l n x hx j hj => ?_⟩ |
| 108 | rw [norm_iteratedFDeriv_fderiv] |
| 109 | exact hb l n x hx (j + 1) (Nat.add_le_add_right hj 1) |
| 110 | |
| 111 | theorem along_class {V : ι → ℕ → D → D} {f : ι → ℕ → D → E} |
| 112 | (hV : UniformClass s (fun _ _ _ => 1) β V) (hf : UniformClass s w α f) : |
| 113 | UniformClass s w (α + β) (fun l n => HarmonicCalculus.along (V l n) (f l n)) := by |
| 114 | have h := (fderiv_class hf).bilinear hV (ContinuousLinearMap.apply ℝ E).flip |
| 115 | simp only [mul_one] at h ⊢ |
| 116 | exact h |
| 117 | |
| 118 | theorem class_of_single {w : ℕ → D → ℝ} {f : ℕ → D → E} (hf : MemClass s w α f) : |
| 119 | UniformClass s (fun _ : ι => w) α (fun _ : ι => f) := by |
| 120 | refine ⟨fun _ => hf.weight_nonneg, fun _ => hf.smooth, ?_⟩ |
| 121 | intro m |
| 122 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 123 | exact ⟨C, hC, p, fun _ => hb⟩ |
| 124 | |
| 125 | noncomputable def UniformBandBound (s : StripData D) (β : ℝ) (a : ι → ℕ → ℝ) : Prop := |
| 126 | ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ l n, |
| 127 | ‖a l n‖ ≤ C * s.epsilon n ^ β * s.slow n ^ p |
| 128 | |
| 129 | theorem pull_bandBound {a : ι → ℕ → ℝ} (ha : UniformBandBound s β a) |
| 130 | (e : ℕ → ℕ × ι) : BandBound (reindexedStrip s e) β (fun k => a (e k).2 (e k).1) := by |
| 131 | obtain ⟨C, hC, p, hb⟩ := ha |
| 132 | exact ⟨C, hC, p, fun k => hb (e k).2 (e k).1⟩ |
| 133 | |
| 134 | end Calculus |
| 135 | |
| 136 | section Covariance |
| 137 | |
| 138 | variable [Countable ι] [Nonempty ι] |
| 139 | {s : StripData D} {r : ι → ℕ → ℝ} |
| 140 | {H : ι → ℕ → D → SmoothCovariance.Mat2} |
| 141 | {T : ι → ℕ → D → SmoothCovariance.Vec2} {w : ι → ℕ → D → ℝ} |
| 142 | |
| 143 | end Covariance |
| 144 | |
| 145 | section Primary |
| 146 | |
| 147 | variable [Countable ι] [Nonempty ι] {s : StripData D} |
| 148 | {P : ι → ℕ → D → ℝ} {H : ι → ℕ → D → SmoothCovariance.Mat2} |
| 149 | {T : ι → ℕ → D → SmoothCovariance.Vec2} |
| 150 | {mask : ι → ℕ → D → ℝ} {v : ι → ℕ → D → ProblemStatement.Space} |
| 151 | |
| 152 | end Primary |
| 153 | |
| 154 | section Curl |
| 155 | |
| 156 | open CurlClassBounds |
| 157 | |
| 158 | variable {s : StripData D} {w : ι → ℕ → D → ℝ} {α κ : ℝ} |
| 159 | |
| 160 | theorem component_class {a : ι → ℕ → D → ComplexVector} |
| 161 | (ha : UniformClass s w α a) (i : Fin 3) : |
| 162 | UniformClass s w α (fun l n x => a l n x i) := ha.map (ContinuousLinearMap.proj i) |
| 163 | |
| 164 | /-- The half-power frequency gain is uniform even when the nonzero |
| 165 | integer harmonic varies with the label. -/ |
| 166 | theorem harmonic_inverse_bandBound (s : StripData D) (j : ι → ℕ → ℤ) |
| 167 | (hj : ∀ l n, j l n ≠ 0) : |
| 168 | UniformBandBound s (1 / 2) (fun l n => 1 / (carrierFrequency s n * (j l n : ℝ))) := by |
| 169 | refine ⟨1, zero_le_one, 0, fun l n => ?_⟩ |
| 170 | have hk := carrierFrequency_pos s n |
| 171 | have hjabs : (1 : ℝ) ≤ |(j l n : ℝ)| := by exact_mod_cast Int.one_le_abs (hj l n) |
| 172 | have hden : carrierFrequency s n ≤ carrierFrequency s n * |(j l n : ℝ)| := |
| 173 | le_mul_of_one_le_right hk.le hjabs |
| 174 | simp only [Real.norm_eq_abs, abs_div, abs_one, abs_mul, abs_of_pos hk, pow_zero, mul_one, one_mul] |
| 175 | calc |
| 176 | 1 / (carrierFrequency s n * |(j l n : ℝ)|) ≤ 1 / carrierFrequency s n := |
| 177 | div_le_div_of_nonneg_left zero_le_one hk hden |
| 178 | _ ≤ Real.sqrt (s.epsilon n) := |
| 179 | (Scaling.reciprocal_frequency_bounds (s.epsilon_pos n) (s.epsilon_le_one n)).2 |
| 180 | _ = _ := Real.sqrt_eq_rpow _ |
| 181 | |
| 182 | end Curl |
| 183 | |
| 184 | section ActualPhase |
| 185 | |
| 186 | open PrimaryPulseBounds PhaseJetBounds |
| 187 | |
| 188 | variable {U : Domain (ℕ × ι) PhaseCalculus.Slow} |
| 189 | |
| 190 | end ActualPhase |
| 191 | |
| 192 | section ActualCutoff |
| 193 | |
| 194 | open PrimaryPulseBounds PhaseJetBounds |
| 195 | |
| 196 | variable {U : Domain (ℕ × ι) PhaseCalculus.Slow} |
| 197 | |
| 198 | end ActualCutoff |
| 199 | |
| 200 | end NavierStokes.UniformPrimaryWeights |