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.GaussianTailFlat |
| 2 | import NavierStokes.CommonCoverClass |
| 3 | |
| 4 | /-! |
| 5 | # Source envelopes along an entire common-cover slot path |
| 6 | |
| 7 | The common-cover envelope is an actual sum over native copies. Injectivity |
| 8 | of the padded native rectangle identifies the one copy met by a slot path. |
| 9 | The source itself is not assumed periodic on the native torus. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.WaveEnvelopeTransport |
| 15 | |
| 16 | open Set Function Filter |
| 17 | open scoped ContDiff Topology BigOperators |
| 18 | open CommonCoverSolve CommonCoverClass TorusInverse |
| 19 | |
| 20 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 21 | ENat.natCast_le_of_coe_top_le_withTop le_rfl n |
| 22 | |
| 23 | /-- The full padded integration rectangle, including both time endpoints. -/ |
| 24 | noncomputable def rectangle (r L : ℝ) : Set Plane := Icc (-r) r ×ˢ Icc 0 L |
| 25 | |
| 26 | noncomputable def nativeRegion (g : Geometry) (r L : ℝ) : Set Plane := |
| 27 | (fun z => g.center + g.basis z) '' rectangle r L |
| 28 | |
| 29 | /-- A geometric injectivity condition, independent of all source fields. -/ |
| 30 | noncomputable def Separated (g : Geometry) (r L : ℝ) : Prop := |
| 31 | InjOn TorusAverages.quotientPoint (nativeRegion g r L) |
| 32 | |
| 33 | theorem native_coordinate_lattice (g : Geometry) (k : Frequency) (Y : Plane) : |
| 34 | g.center + g.basis (g.coordinates k Y) = |
| 35 | TorusAverages.latticePoint (-k) + coverPower g.gap Y := by |
| 36 | have hneg : TorusAverages.latticePoint (-k) = -TorusAverages.latticePoint k := by |
| 37 | ext <;> simp [TorusAverages.latticePoint] |
| 38 | rw [Geometry.coordinates, ContinuousLinearEquiv.apply_symm_apply, hneg] |
| 39 | abel |
| 40 | |
| 41 | theorem copy_unique {g : Geometry} {r L : ℝ} (hsep : Separated g r L) |
| 42 | {k l : Frequency} {Y : Plane} (hk : g.coordinates k Y ∈ rectangle r L) |
| 43 | (hl : g.coordinates l Y ∈ rectangle r L) : k = l := by |
| 44 | have hkm : TorusAverages.latticePoint (-k) + coverPower g.gap Y ∈ nativeRegion g r L := by |
| 45 | rw [← native_coordinate_lattice] |
| 46 | exact ⟨g.coordinates k Y, hk, rfl⟩ |
| 47 | have hlm : TorusAverages.latticePoint (-l) + coverPower g.gap Y ∈ nativeRegion g r L := by |
| 48 | rw [← native_coordinate_lattice] |
| 49 | exact ⟨g.coordinates l Y, hl, rfl⟩ |
| 50 | exact neg_injective (TorusAverages.latticeTranslate_unique hsep hkm hlm) |
| 51 | |
| 52 | /-- The envelope of the grouped label on the common cover. The summands |
| 53 | are nonzero only on their own native integration rectangles. -/ |
| 54 | noncomputable def copyEnvelope (g : Geometry) (r L : ℝ) (W : ℝ → ℝ) (Y : Plane) : ℝ := by |
| 55 | classical |
| 56 | exact ∑' k : Frequency, if g.coordinates k Y ∈ rectangle r L then W (g.coordinates k Y).2 else 0 |
| 57 | |
| 58 | theorem copyEnvelope_nonneg (g : Geometry) (r L : ℝ) {W : ℝ → ℝ} |
| 59 | (hW : ∀ s, 0 ≤ W s) (Y : Plane) : 0 ≤ copyEnvelope g r L W Y := by |
| 60 | classical |
| 61 | apply tsum_nonneg |
| 62 | intro k |
| 63 | split_ifs |
| 64 | · exact hW _ |
| 65 | · exact le_rfl |
| 66 | |
| 67 | theorem copyEnvelope_eq_copy {g : Geometry} {r L : ℝ} (hsep : Separated g r L) |
| 68 | (W : ℝ → ℝ) {k : Frequency} {Y : Plane} (hk : g.coordinates k Y ∈ rectangle r L) : |
| 69 | copyEnvelope g r L W Y = W (g.coordinates k Y).2 := by |
| 70 | classical |
| 71 | unfold copyEnvelope |
| 72 | rw [tsum_eq_single k] |
| 73 | · simp only [ite_eq_left hk] |
| 74 | · intro l hl |
| 75 | split_ifs with hmem |
| 76 | · exact (hl (copy_unique hsep hmem hk)).elim |
| 77 | · rfl |
| 78 | |
| 79 | theorem coordinates_path_in_rectangle (g : Geometry) (k : Frequency) (Y : Plane) |
| 80 | {r L s : ℝ} (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) (hs : s ∈ Icc 0 L) : |
| 81 | g.coordinates k (g.path k Y s) ∈ rectangle r L := by |
| 82 | rw [g.coordinates_path] |
| 83 | exact ⟨hξ, hs⟩ |
| 84 | |
| 85 | /-- Exact envelope identification at every integration time, including |
| 86 | the entry and exit. No bound at the current point is extrapolated. -/ |
| 87 | theorem copyEnvelope_path {g : Geometry} {r L : ℝ} (hsep : Separated g r L) |
| 88 | (W : ℝ → ℝ) (k : Frequency) (Y : Plane) |
| 89 | (hξ : (g.coordinates k Y).1 ∈ Icc (-r) r) {s : ℝ} (hs : s ∈ Icc 0 L) : |
| 90 | copyEnvelope g r L W (g.path k Y s) = W s := by |
| 91 | rw [copyEnvelope_eq_copy hsep W (coordinates_path_in_rectangle g k Y hξ hs), |
| 92 | g.coordinates_path] |
| 93 | |
| 94 | section SlowCoordinates |
| 95 | |
| 96 | variable {P : Type} {V : Type*} |
| 97 | |
| 98 | end SlowCoordinates |
| 99 | |
| 100 | section GroupedSources |
| 101 | |
| 102 | open WeightedClasses |
| 103 | |
| 104 | variable {P V : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 105 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 106 | |
| 107 | private theorem jet_congr {f g : P × Plane → V} {x : P × Plane} |
| 108 | (he : f =ᶠ[𝓝 x] g) (j : ℕ) : iteratedFDeriv ℝ j f x = iteratedFDeriv ℝ j g x := by |
| 109 | have he' : f =ᶠ[𝓝[univ] x] g := by simpa only [nhdsWithin_univ] using he |
| 110 | simpa only [iteratedFDerivWithin_univ] using |
| 111 | he'.iteratedFDerivWithin_eq (𝕜 := ℝ) he.self_of_nhds j |
| 112 | |
| 113 | end GroupedSources |
| 114 | |
| 115 | section SourceJetTransport |
| 116 | |
| 117 | open WeightedClasses |
| 118 | |
| 119 | variable {P V : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 120 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 121 | |
| 122 | end SourceJetTransport |
| 123 | |
| 124 | section ForcingJetTransport |
| 125 | |
| 126 | open WeightedClasses |
| 127 | |
| 128 | variable {X P V H : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 129 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 130 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 131 | [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 132 | |
| 133 | theorem clm_apply_jet_bound_on {U : Set X} (hU : IsOpen U) |
| 134 | {A : X → V →L[ℝ] H} {f : X → V} (hA : ContDiffOn ℝ ∞ A U) |
| 135 | (hf : ContDiffOn ℝ ∞ f U) {x : X} (hx : x ∈ U) (N : ℕ) {C D : ℝ} |
| 136 | (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 137 | (hAj : ∀ j ≤ N, ‖iteratedFDeriv ℝ j A x‖ ≤ C) |
| 138 | (hfj : ∀ j ≤ N, ‖iteratedFDeriv ℝ j f x‖ ≤ D) (j : ℕ) (hj : j ≤ N) : |
| 139 | ‖iteratedFDeriv ℝ j (fun y => A y (f y)) x‖ ≤ (2 : ℝ) ^ N * C * D := by |
| 140 | have hb := norm_iteratedFDerivWithin_clm_apply hA hf hU.uniqueDiffOn hx (nat_le_infty j) |
| 141 | simp only [iteratedFDerivWithin_of_isOpen _ hU hx] at hb |
| 142 | apply hb.trans |
| 143 | calc |
| 144 | _ ≤ ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * C * D := by |
| 145 | apply Finset.sum_le_sum |
| 146 | intro i hi |
| 147 | have hij : i ≤ j := Nat.le_of_lt_succ (Finset.mem_range.mp hi) |
| 148 | exact mul_le_mul (mul_le_mul_of_nonneg_left (hAj i (hij.trans hj)) (Nat.cast_nonneg _)) |
| 149 | (hfj (j - i) ((Nat.sub_le _ _).trans hj)) (norm_nonneg _) |
| 150 | (mul_nonneg (Nat.cast_nonneg _) hC) |
| 151 | _ = (2 : ℝ) ^ j * C * D := by |
| 152 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 153 | congr 2 |
| 154 | exact_mod_cast Nat.sum_range_choose j |
| 155 | _ ≤ _ := mul_le_mul_of_nonneg_right |
| 156 | (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hj) hC) hD |
| 157 | |
| 158 | end ForcingJetTransport |
| 159 | |
| 160 | section NativePathAndSupport |
| 161 | |
| 162 | variable {P V H : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 163 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 164 | [NormedAddCommGroup H] [NormedSpace ℝ H] [CompleteSpace H] |
| 165 | |
| 166 | end NativePathAndSupport |
| 167 | |
| 168 | end NavierStokes.WaveEnvelopeTransport |