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.MixedCandidateAssembly |
| 2 | import NavierStokes.PhysicalParticularWave |
| 3 | |
| 4 | /-! |
| 5 | # Finite background bounds from the raw increments |
| 6 | |
| 7 | The raw-stage interface starts at index one. A bound for the actual |
| 8 | initialized stage is therefore kept explicit. Together with the raw |
| 9 | increment bounds it controls every finite prefix with one derivative-loss |
| 10 | function, independent of the number of correction stages. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.MixedFiniteBackground |
| 16 | |
| 17 | open Set Filter DiagonalResidual ProblemStatement |
| 18 | open scoped ContDiff Topology BigOperators |
| 19 | |
| 20 | section General |
| 21 | |
| 22 | variable {D V : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 23 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 24 | |
| 25 | theorem raw_jetRate {l : Filter D} {q : D → ℝ} {A : ℕ → D → V} |
| 26 | {g L : ℕ → ℝ} {C : ℕ → ℕ → ℝ} {S : Set D} |
| 27 | (hraw : CutStageEstimates.RawStageBounds q A g L C (fun _ _ => 0) S) |
| 28 | (hS : ∀ᶠ x in l, x ∈ S) (hq : ∀ᶠ x in l, 0 < q x ∧ q x ≤ 1) |
| 29 | {j : ℕ} (hj : 1 ≤ j) (m : ℕ) : |
| 30 | JetRate l q (A j) m (g j - L m) := by |
| 31 | refine ⟨max (C j m) 0, le_max_right _ _, ?_⟩ |
| 32 | filter_upwards [hS, hq] with x hx hqx |
| 33 | have hb : ‖iteratedFDeriv ℝ m (A j) x‖ ≤ C j m * q x ^ (g j - L m) := by |
| 34 | simpa only [Real.rpow_zero, mul_one] using hraw j hj m x hx hqx.2 |
| 35 | exact hb.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) |
| 36 | (Real.rpow_nonneg hqx.1.le _)) |
| 37 | |
| 38 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedSpace ℝ V] in |
| 39 | theorem uncutPrefix_succ (A : ℕ → D → V) (N : ℕ) : |
| 40 | DiagonalJetBounds.uncutPrefix A (N + 1) = |
| 41 | fun x => DiagonalJetBounds.uncutPrefix A N x + A N x := by |
| 42 | funext x |
| 43 | exact Finset.sum_range_succ (fun j => A j x) N |
| 44 | |
| 45 | theorem nonemptyPrefix_jetRate {l : Filter D} {q : D → ℝ} {A : ℕ → D → V} |
| 46 | {U : Set D} {m : ℕ} {r : ℝ} |
| 47 | (hU : IsOpen U) (hlU : ∀ᶠ x in l, x ∈ U) |
| 48 | (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) |
| 49 | (hzero : JetRate l q (A 0) m r) |
| 50 | (hpos : ∀ j, 1 ≤ j → JetRate l q (A j) m r) (J : ℕ) : |
| 51 | JetRate l q (DiagonalJetBounds.uncutPrefix A (J + 1)) m r := by |
| 52 | induction J with |
| 53 | | zero => |
| 54 | have he : DiagonalJetBounds.uncutPrefix A (0 + 1) = A 0 := by |
| 55 | funext x |
| 56 | simp [DiagonalJetBounds.uncutPrefix] |
| 57 | rw [he] |
| 58 | exact hzero |
| 59 | | succ J ih => |
| 60 | rw [show J.succ + 1 = (J + 1) + 1 from rfl, uncutPrefix_succ] |
| 61 | exact ih.add (hpos (J + 1) (by omega)) hU hlU |
| 62 | (ContDiffOn.sum (fun j _ => hA j)) (hA (J + 1)) |
| 63 | |
| 64 | theorem prefix_background {l : Filter D} {q : D → ℝ} {A : ℕ → D → V} |
| 65 | {g L Lzero : ℕ → ℝ} {C : ℕ → ℕ → ℝ} {U S : Set D} |
| 66 | (hU : IsOpen U) (hlU : ∀ᶠ x in l, x ∈ U) |
| 67 | (hS : ∀ᶠ x in l, x ∈ S) (hq : ∀ᶠ x in l, 0 < q x ∧ q x ≤ 1) |
| 68 | (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) |
| 69 | (hraw : CutStageEstimates.RawStageBounds q A g L C (fun _ _ => 0) S) |
| 70 | (hg : ∀ j, 1 ≤ j → 0 ≤ g j) |
| 71 | (hzero : ∀ m, JetRate l q (A 0) m (-Lzero m)) (J m : ℕ) : |
| 72 | JetRate l q (DiagonalJetBounds.uncutPrefix A (J + 1)) m (-max (L m) (Lzero m)) := by |
| 73 | apply nonemptyPrefix_jetRate hU hlU hA |
| 74 | · exact (hzero m).weaken hq (neg_le_neg (le_max_right _ _)) |
| 75 | · intro j hj |
| 76 | apply (raw_jetRate hraw hS hq hj m).weaken hq |
| 77 | have hmax := le_max_left (L m) (Lzero m) |
| 78 | have hgain := hg j hj |
| 79 | linarith |
| 80 | |
| 81 | end General |
| 82 | |
| 83 | /-- The one derivative needed for the potential is paid independently of |
| 84 | the correction index. The direct field pays no curl derivative. -/ |
| 85 | noncomputable def backgroundLoss (LA LB LAzero LBzero : ℕ → ℝ) (m : ℕ) : ℝ := |
| 86 | max (max (LA (m + 1)) (LAzero (m + 1))) (max (LB m) (LBzero m)) |
| 87 | |
| 88 | theorem mixed_background {l : Filter SpaceTime} {q : SpaceTime → ℝ} |
| 89 | {A B : ℕ → VelocityField} {g LA LB LAzero LBzero : ℕ → ℝ} |
| 90 | {CA CB : ℕ → ℕ → ℝ} {U S : Set SpaceTime} |
| 91 | (hU : IsOpen U) (hlU : ∀ᶠ x in l, x ∈ U) |
| 92 | (hS : ∀ᶠ x in l, x ∈ S) (hq : ∀ᶠ x in l, 0 < q x ∧ q x ≤ 1) |
| 93 | (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) |
| 94 | (hB : ∀ j, ContDiffOn ℝ ∞ (B j) U) |
| 95 | (hrawA : CutStageEstimates.RawStageBounds q A g LA CA (fun _ _ => 0) S) |
| 96 | (hrawB : CutStageEstimates.RawStageBounds q B g LB CB (fun _ _ => 0) S) |
| 97 | (hg : ∀ j, 1 ≤ j → 0 ≤ g j) |
| 98 | (hzeroA : ∀ m, JetRate l q (A 0) m (-LAzero m)) |
| 99 | (hzeroB : ∀ m, JetRate l q (B 0) m (-LBzero m)) (J m : ℕ) : |
| 100 | JetRate l q (MixedDiagonalResidual.uncutVelocity A B J) m |
| 101 | (-backgroundLoss LA LB LAzero LBzero m) := by |
| 102 | have hpA := prefix_background hU hlU hS hq hA hrawA hg hzeroA J (m + 1) |
| 103 | have hpB := prefix_background hU hlU hS hq hB hrawB hg hzeroB J m |
| 104 | have hsA : ContDiffOn ℝ ∞ (DiagonalJetBounds.uncutPrefix A (J + 1)) U := |
| 105 | ContDiffOn.sum (fun j _ => hA j) |
| 106 | have hsB : ContDiffOn ℝ ∞ (DiagonalJetBounds.uncutPrefix B (J + 1)) U := |
| 107 | ContDiffOn.sum (fun j _ => hB j) |
| 108 | have hc := (hpA.spatialCurl hU hlU hsA).weaken hq |
| 109 | (neg_le_neg (le_max_left (max (LA (m + 1)) (LAzero (m + 1))) (max (LB m) (LBzero m)))) |
| 110 | have hb := hpB.weaken hq |
| 111 | (neg_le_neg (le_max_right (max (LA (m + 1)) (LAzero (m + 1))) (max (LB m) (LBzero m)))) |
| 112 | have hsCurl : ContDiffOn ℝ ∞ |
| 113 | (SpatialCurl.spatialCurl (DiagonalJetBounds.uncutPrefix A (J + 1))) U := by |
| 114 | intro x hx |
| 115 | exact (SpatialCurl.contDiffAt_spatialCurl (hsA.contDiffAt (hU.mem_nhds hx)) |
| 116 | (by simp)).contDiffWithinAt |
| 117 | exact hc.add hb hU hlU hsCurl hsB |
| 118 | |
| 119 | noncomputable def stageVelocity (A B : ℕ → VelocityField) (j : ℕ) : VelocityField := |
| 120 | fun x => SpatialCurl.spatialCurl (A j) x + B j x |
| 121 | |
| 122 | theorem uncutVelocity_zero (A B : ℕ → VelocityField) : |
| 123 | MixedDiagonalResidual.uncutVelocity A B 0 = stageVelocity A B 0 := by |
| 124 | have hA : DiagonalJetBounds.uncutPrefix A (0 + 1) = A 0 := by |
| 125 | funext x |
| 126 | simp [DiagonalJetBounds.uncutPrefix] |
| 127 | have hB : DiagonalJetBounds.uncutPrefix B (0 + 1) = B 0 := by |
| 128 | funext x |
| 129 | simp [DiagonalJetBounds.uncutPrefix] |
| 130 | funext x |
| 131 | change SpatialCurl.spatialCurl (DiagonalJetBounds.uncutPrefix A (0 + 1)) x + |
| 132 | DiagonalJetBounds.uncutPrefix B (0 + 1) x = |
| 133 | SpatialCurl.spatialCurl (A 0) x + B 0 x |
| 134 | rw [hA, hB] |
| 135 | |
| 136 | theorem uncutVelocity_eq_stagePrefix {U : Set SpaceTime} (hU : IsOpen U) |
| 137 | (A B : ℕ → VelocityField) (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) (J : ℕ) : |
| 138 | EqOn (MixedDiagonalResidual.uncutVelocity A B J) |
| 139 | (DiagonalJetBounds.uncutPrefix (stageVelocity A B) (J + 1)) U := by |
| 140 | intro x hx |
| 141 | have hcurl := PhysicalParticularWave.spatialCurl_finset_sum (Finset.range (J + 1)) A |
| 142 | (fun j _ => (hA j).contDiffAt (hU.mem_nhds hx) |>.differentiableAt (by simp)) |
| 143 | change SpatialCurl.spatialCurl (fun w => ∑ i ∈ Finset.range (J + 1), A i w) x + |
| 144 | (∑ i ∈ Finset.range (J + 1), B i x) = |
| 145 | ∑ i ∈ Finset.range (J + 1), (SpatialCurl.spatialCurl (A i) x + B i x) |
| 146 | rw [hcurl] |
| 147 | rw [Finset.sum_add_distrib] |
| 148 | |
| 149 | /-- This version only needs a bound for the initialized physical velocity. |
| 150 | It imposes no growth assumption on the gauge of the initial potential. -/ |
| 151 | noncomputable def initialBackgroundLoss (Lzero LA LB : ℕ → ℝ) (m : ℕ) : ℝ := |
| 152 | max (Lzero m) (max (LA (m + 1)) (LB m)) |
| 153 | |
| 154 | theorem mixed_background_from_initial {l : Filter SpaceTime} {q : SpaceTime → ℝ} |
| 155 | {A B : ℕ → VelocityField} {g LA LB Lzero : ℕ → ℝ} |
| 156 | {CA CB : ℕ → ℕ → ℝ} {U S : Set SpaceTime} |
| 157 | (hU : IsOpen U) (hlU : ∀ᶠ x in l, x ∈ U) |
| 158 | (hS : ∀ᶠ x in l, x ∈ S) (hq : ∀ᶠ x in l, 0 < q x ∧ q x ≤ 1) |
| 159 | (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) |
| 160 | (hB : ∀ j, ContDiffOn ℝ ∞ (B j) U) |
| 161 | (hrawA : CutStageEstimates.RawStageBounds q A g LA CA (fun _ _ => 0) S) |
| 162 | (hrawB : CutStageEstimates.RawStageBounds q B g LB CB (fun _ _ => 0) S) |
| 163 | (hg : ∀ j, 1 ≤ j → 0 ≤ g j) |
| 164 | (hzero : ∀ m, JetRate l q (MixedDiagonalResidual.uncutVelocity A B 0) m (-Lzero m)) |
| 165 | (J m : ℕ) : |
| 166 | JetRate l q (MixedDiagonalResidual.uncutVelocity A B J) m |
| 167 | (-initialBackgroundLoss Lzero LA LB m) := by |
| 168 | have hLzero : Lzero m ≤ initialBackgroundLoss Lzero LA LB m := le_max_left _ _ |
| 169 | have hLA : LA (m + 1) ≤ initialBackgroundLoss Lzero LA LB m := |
| 170 | (le_max_left _ _).trans (le_max_right _ _) |
| 171 | have hLB : LB m ≤ initialBackgroundLoss Lzero LA LB m := |
| 172 | (le_max_right _ _).trans (le_max_right _ _) |
| 173 | have hcurl (j : ℕ) : ContDiffOn ℝ ∞ (SpatialCurl.spatialCurl (A j)) U := by |
| 174 | intro x hx |
| 175 | exact (SpatialCurl.contDiffAt_spatialCurl ((hA j).contDiffAt (hU.mem_nhds hx)) |
| 176 | (by simp)).contDiffWithinAt |
| 177 | have hstage (j : ℕ) : ContDiffOn ℝ ∞ (stageVelocity A B j) U := |
| 178 | (hcurl j).add (hB j) |
| 179 | have hinit : JetRate l q (stageVelocity A B 0) m |
| 180 | (-initialBackgroundLoss Lzero LA LB m) := by |
| 181 | have hz := (hzero m).weaken hq (neg_le_neg hLzero) |
| 182 | rwa [uncutVelocity_zero] at hz |
| 183 | have hpos (j : ℕ) (hj : 1 ≤ j) : JetRate l q (stageVelocity A B j) m |
| 184 | (-initialBackgroundLoss Lzero LA LB m) := by |
| 185 | have hgain := hg j hj |
| 186 | have ha := ((raw_jetRate hrawA hS hq hj (m + 1)).spatialCurl hU hlU (hA j)).weaken hq |
| 187 | (show -initialBackgroundLoss Lzero LA LB m ≤ g j - LA (m + 1) by linarith) |
| 188 | have hb := (raw_jetRate hrawB hS hq hj m).weaken hq |
| 189 | (show -initialBackgroundLoss Lzero LA LB m ≤ g j - LB m by linarith) |
| 190 | exact ha.add hb hU hlU (hcurl j) (hB j) |
| 191 | exact (nonemptyPrefix_jetRate hU hlU hstage hinit hpos J).congr_on hU hlU |
| 192 | (uncutVelocity_eq_stagePrefix hU A B hA J).symm |
| 193 | |
| 194 | end NavierStokes.MixedFiniteBackground |