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 | end General |
| 65 | |
| 66 | /-- The one derivative needed for the potential is paid independently of |
| 67 | the correction index. The direct field pays no curl derivative. -/ |
| 68 | noncomputable def backgroundLoss (LA LB LAzero LBzero : ℕ → ℝ) (m : ℕ) : ℝ := |
| 69 | max (max (LA (m + 1)) (LAzero (m + 1))) (max (LB m) (LBzero m)) |
| 70 | |
| 71 | noncomputable def stageVelocity (A B : ℕ → VelocityField) (j : ℕ) : VelocityField := |
| 72 | fun x => SpatialCurl.spatialCurl (A j) x + B j x |
| 73 | |
| 74 | theorem uncutVelocity_zero (A B : ℕ → VelocityField) : |
| 75 | MixedDiagonalResidual.uncutVelocity A B 0 = stageVelocity A B 0 := by |
| 76 | have hA : DiagonalJetBounds.uncutPrefix A (0 + 1) = A 0 := by |
| 77 | funext x |
| 78 | simp [DiagonalJetBounds.uncutPrefix] |
| 79 | have hB : DiagonalJetBounds.uncutPrefix B (0 + 1) = B 0 := by |
| 80 | funext x |
| 81 | simp [DiagonalJetBounds.uncutPrefix] |
| 82 | funext x |
| 83 | change SpatialCurl.spatialCurl (DiagonalJetBounds.uncutPrefix A (0 + 1)) x + |
| 84 | DiagonalJetBounds.uncutPrefix B (0 + 1) x = |
| 85 | SpatialCurl.spatialCurl (A 0) x + B 0 x |
| 86 | rw [hA, hB] |
| 87 | |
| 88 | theorem uncutVelocity_eq_stagePrefix {U : Set SpaceTime} (hU : IsOpen U) |
| 89 | (A B : ℕ → VelocityField) (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) (J : ℕ) : |
| 90 | EqOn (MixedDiagonalResidual.uncutVelocity A B J) |
| 91 | (DiagonalJetBounds.uncutPrefix (stageVelocity A B) (J + 1)) U := by |
| 92 | intro x hx |
| 93 | have hcurl := PhysicalParticularWave.spatialCurl_finset_sum (Finset.range (J + 1)) A |
| 94 | (fun j _ => (hA j).contDiffAt (hU.mem_nhds hx) |>.differentiableAt (by simp)) |
| 95 | change SpatialCurl.spatialCurl (fun w => ∑ i ∈ Finset.range (J + 1), A i w) x + |
| 96 | (∑ i ∈ Finset.range (J + 1), B i x) = |
| 97 | ∑ i ∈ Finset.range (J + 1), (SpatialCurl.spatialCurl (A i) x + B i x) |
| 98 | rw [hcurl] |
| 99 | rw [Finset.sum_add_distrib] |
| 100 | |
| 101 | /-- This version only needs a bound for the initialized physical velocity. |
| 102 | It imposes no growth assumption on the gauge of the initial potential. -/ |
| 103 | noncomputable def initialBackgroundLoss (Lzero LA LB : ℕ → ℝ) (m : ℕ) : ℝ := |
| 104 | max (Lzero m) (max (LA (m + 1)) (LB m)) |
| 105 | |
| 106 | theorem mixed_background_from_initial {l : Filter SpaceTime} {q : SpaceTime → ℝ} |
| 107 | {A B : ℕ → VelocityField} {g LA LB Lzero : ℕ → ℝ} |
| 108 | {CA CB : ℕ → ℕ → ℝ} {U S : Set SpaceTime} |
| 109 | (hU : IsOpen U) (hlU : ∀ᶠ x in l, x ∈ U) |
| 110 | (hS : ∀ᶠ x in l, x ∈ S) (hq : ∀ᶠ x in l, 0 < q x ∧ q x ≤ 1) |
| 111 | (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) |
| 112 | (hB : ∀ j, ContDiffOn ℝ ∞ (B j) U) |
| 113 | (hrawA : CutStageEstimates.RawStageBounds q A g LA CA (fun _ _ => 0) S) |
| 114 | (hrawB : CutStageEstimates.RawStageBounds q B g LB CB (fun _ _ => 0) S) |
| 115 | (hg : ∀ j, 1 ≤ j → 0 ≤ g j) |
| 116 | (hzero : ∀ m, JetRate l q (MixedDiagonalResidual.uncutVelocity A B 0) m (-Lzero m)) |
| 117 | (J m : ℕ) : |
| 118 | JetRate l q (MixedDiagonalResidual.uncutVelocity A B J) m |
| 119 | (-initialBackgroundLoss Lzero LA LB m) := by |
| 120 | have hLzero : Lzero m ≤ initialBackgroundLoss Lzero LA LB m := le_max_left _ _ |
| 121 | have hLA : LA (m + 1) ≤ initialBackgroundLoss Lzero LA LB m := |
| 122 | (le_max_left _ _).trans (le_max_right _ _) |
| 123 | have hLB : LB m ≤ initialBackgroundLoss Lzero LA LB m := |
| 124 | (le_max_right _ _).trans (le_max_right _ _) |
| 125 | have hcurl (j : ℕ) : ContDiffOn ℝ ∞ (SpatialCurl.spatialCurl (A j)) U := by |
| 126 | intro x hx |
| 127 | exact (SpatialCurl.contDiffAt_spatialCurl ((hA j).contDiffAt (hU.mem_nhds hx)) |
| 128 | (by simp)).contDiffWithinAt |
| 129 | have hstage (j : ℕ) : ContDiffOn ℝ ∞ (stageVelocity A B j) U := |
| 130 | (hcurl j).add (hB j) |
| 131 | have hinit : JetRate l q (stageVelocity A B 0) m |
| 132 | (-initialBackgroundLoss Lzero LA LB m) := by |
| 133 | have hz := (hzero m).weaken hq (neg_le_neg hLzero) |
| 134 | rwa [uncutVelocity_zero] at hz |
| 135 | have hpos (j : ℕ) (hj : 1 ≤ j) : JetRate l q (stageVelocity A B j) m |
| 136 | (-initialBackgroundLoss Lzero LA LB m) := by |
| 137 | have hgain := hg j hj |
| 138 | have ha := ((raw_jetRate hrawA hS hq hj (m + 1)).spatialCurl hU hlU (hA j)).weaken hq |
| 139 | (show -initialBackgroundLoss Lzero LA LB m ≤ g j - LA (m + 1) by linarith) |
| 140 | have hb := (raw_jetRate hrawB hS hq hj m).weaken hq |
| 141 | (show -initialBackgroundLoss Lzero LA LB m ≤ g j - LB m by linarith) |
| 142 | exact ha.add hb hU hlU (hcurl j) (hB j) |
| 143 | exact (nonemptyPrefix_jetRate hU hlU hstage hinit hpos J).congr_on hU hlU |
| 144 | (uncutVelocity_eq_stagePrefix hU A B hA J).symm |
| 145 | |
| 146 | end NavierStokes.MixedFiniteBackground |