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.CommonCoverSolve |
| 2 | import NavierStokes.TorusCoverLattice |
| 3 | |
| 4 | /-! |
| 5 | # Sheets of the integer torus cover |
| 6 | |
| 7 | The actual map induced by `[[3,1],[1,5]]` has the lattice quotient as its |
| 8 | fiber. An injective native chart lifts to one disjoint chart per lattice class. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.TorusCoverDegree |
| 14 | |
| 15 | open Set Function TorusInverse SmoothFourierData TorusAverages CommonCoverSolve |
| 16 | |
| 17 | /-- Real representatives of every point on the two-dimensional torus. -/ |
| 18 | theorem quotientPoint_surjective : Surjective quotientPoint := by |
| 19 | rintro ⟨x, y⟩ |
| 20 | refine Quotient.inductionOn' x (fun a => ?_) |
| 21 | refine Quotient.inductionOn' y (fun b => ?_) |
| 22 | exact ⟨(a, b), rfl⟩ |
| 23 | |
| 24 | theorem quotientPoint_add (x y : Plane) : |
| 25 | quotientPoint (x + y) = quotientPoint x + quotientPoint y := by |
| 26 | ext <;> simp [quotientPoint] |
| 27 | |
| 28 | theorem quotientPoint_sub (x y : Plane) : |
| 29 | quotientPoint (x - y) = quotientPoint x - quotientPoint y := by |
| 30 | ext <;> simp [quotientPoint] |
| 31 | |
| 32 | /-- Equality on the torus is precisely translation by an integral vector. -/ |
| 33 | theorem quotientPoint_eq_iff (x y : Plane) : |
| 34 | quotientPoint x = quotientPoint y ↔ ∃ k : Frequency, x = y + latticePoint k := by |
| 35 | constructor |
| 36 | · intro h |
| 37 | have hz : quotientPoint (x - y) = 0 := by rw [quotientPoint_sub, h, sub_self] |
| 38 | have h1 : ((x.1 - y.1 : ℝ) : UnitAddCircle) = 0 := congrArg Prod.fst hz |
| 39 | have h2 : ((x.2 - y.2 : ℝ) : UnitAddCircle) = 0 := congrArg Prod.snd hz |
| 40 | obtain ⟨k1, hk1⟩ := (AddCircle.coe_eq_zero_iff (1 : ℝ)).mp h1 |
| 41 | obtain ⟨k2, hk2⟩ := (AddCircle.coe_eq_zero_iff (1 : ℝ)).mp h2 |
| 42 | refine ⟨(k1, k2), ?_⟩ |
| 43 | simp only [zsmul_eq_mul, mul_one] at hk1 hk2 |
| 44 | ext <;> dsimp [latticePoint] <;> linarith |
| 45 | · rintro ⟨k, rfl⟩ |
| 46 | simpa [add_comm] using quotientPoint_lattice_add k y |
| 47 | |
| 48 | theorem quotient_coverPower (d : ℕ) (x : Plane) : |
| 49 | quotientPoint (coverPower d x) = torusCovering^[d] (quotientPoint x) := by |
| 50 | induction d with |
| 51 | | zero => rfl |
| 52 | | succ d ih => |
| 53 | change quotientPoint (coverEquiv (coverPower d x)) = _ |
| 54 | rw [coverEquiv_apply, SlotGeometry.cover_apply] |
| 55 | change quotientPoint (covering (coverPower d x)) = _ |
| 56 | rw [quotient_covering, ih, Function.iterate_succ_apply'] |
| 57 | |
| 58 | /-- The explicit inverse chart based at the integral label `k`. -/ |
| 59 | def rawLift (d : ℕ) (k : Frequency) (y : Plane) : Torus := |
| 60 | quotientPoint ((coverPower d).symm (y + latticePoint k)) |
| 61 | |
| 62 | theorem covering_rawLift (d : ℕ) (k : Frequency) (y : Plane) : |
| 63 | torusCovering^[d] (rawLift d k y) = quotientPoint y := by |
| 64 | rw [rawLift, ← quotient_coverPower, ContinuousLinearEquiv.apply_symm_apply] |
| 65 | simpa [add_comm] using quotientPoint_lattice_add k y |
| 66 | |
| 67 | /-- Integral deck translations give exactly the same inverse chart. -/ |
| 68 | theorem rawLift_eq_iff (d : ℕ) (k l : Frequency) (y : Plane) : |
| 69 | rawLift d k y = rawLift d l y ↔ ∃ n : Frequency, k = l + coverIndex d n := by |
| 70 | rw [rawLift, rawLift, quotientPoint_eq_iff] |
| 71 | constructor |
| 72 | · rintro ⟨n, hn⟩ |
| 73 | refine ⟨n, latticePoint_injective ?_⟩ |
| 74 | have heq := congrArg (coverPower d) hn |
| 75 | simp only [map_add, ContinuousLinearEquiv.apply_symm_apply, coverPower_lattice] at heq |
| 76 | rw [latticePoint_add] |
| 77 | exact add_left_cancel (by simpa only [add_assoc] using heq) |
| 78 | · rintro ⟨n, rfl⟩ |
| 79 | refine ⟨n, ?_⟩ |
| 80 | rw [latticePoint_add, ← coverPower_lattice, ← add_assoc, map_add, |
| 81 | ContinuousLinearEquiv.symm_apply_apply] |
| 82 | |
| 83 | /-- Every point over a real native point belongs to one integral inverse chart. -/ |
| 84 | theorem covering_eq_iff_rawLift (d : ℕ) (p : Torus) (y : Plane) : |
| 85 | torusCovering^[d] p = quotientPoint y ↔ ∃ k : Frequency, p = rawLift d k y := by |
| 86 | constructor |
| 87 | · intro hp |
| 88 | obtain ⟨x, rfl⟩ := quotientPoint_surjective p |
| 89 | rw [← quotient_coverPower, quotientPoint_eq_iff] at hp |
| 90 | obtain ⟨k, hk⟩ := hp |
| 91 | exact ⟨k, congrArg quotientPoint ((coverPower d).eq_symm_apply.mpr hk)⟩ |
| 92 | · rintro ⟨k, rfl⟩ |
| 93 | exact covering_rawLift d k y |
| 94 | |
| 95 | /-- An injective native chart keeps its native coordinate when lifted. -/ |
| 96 | theorem rawLift_injOn (d : ℕ) (k : Frequency) {s : Set Plane} |
| 97 | (hs : InjOn quotientPoint s) : InjOn (rawLift d k) s := by |
| 98 | intro x hx y hy h |
| 99 | apply hs hx hy |
| 100 | have h' := congrArg (torusCovering^[d]) h |
| 101 | simpa only [covering_rawLift] using h' |
| 102 | |
| 103 | /-- Distinct lattice classes give disjoint lifted copies of an injective chart. -/ |
| 104 | theorem disjoint_rawLift_images (d : ℕ) (k l : Frequency) {s : Set Plane} |
| 105 | (hs : InjOn quotientPoint s) (hkl : ¬ ∃ n : Frequency, k = l + coverIndex d n) : |
| 106 | Disjoint (rawLift d k '' s) (rawLift d l '' s) := by |
| 107 | rw [Set.disjoint_left] |
| 108 | rintro p ⟨x, hx, hxp⟩ ⟨y, hy, hyp⟩ |
| 109 | have hxy : rawLift d k x = rawLift d l y := hxp.trans hyp.symm |
| 110 | have hq : quotientPoint x = quotientPoint y := by |
| 111 | simpa only [covering_rawLift] using congrArg (torusCovering^[d]) hxy |
| 112 | have heq := hs hx hy hq |
| 113 | subst y |
| 114 | exact hkl ((rawLift_eq_iff d k l x).mp hxy) |
| 115 | |
| 116 | /-- The inverse image of a native set is the union of the displayed lifts. -/ |
| 117 | theorem preimage_eq_iUnion_rawLift (d : ℕ) (s : Set Plane) : |
| 118 | (torusCovering^[d]) ⁻¹' (quotientPoint '' s) = ⋃ k : Frequency, rawLift d k '' s := by |
| 119 | ext p |
| 120 | simp only [Set.mem_preimage, Set.mem_image, Set.mem_iUnion] |
| 121 | constructor |
| 122 | · rintro ⟨y, hy, hp⟩ |
| 123 | obtain ⟨k, hk⟩ := (covering_eq_iff_rawLift d p y).mp hp.symm |
| 124 | exact ⟨k, y, hy, hk.symm⟩ |
| 125 | · rintro ⟨k, y, hy, rfl⟩ |
| 126 | exact ⟨y, hy, (covering_rawLift d k y).symm⟩ |
| 127 | |
| 128 | /-- The explicit sheet is the copy-point formula used by the common-cover |
| 129 | ODE construction, with the same center and native basis. -/ |
| 130 | theorem rawLift_geometry_point (g : Geometry) (k : Frequency) (z : Plane) : |
| 131 | rawLift g.gap k (g.center + g.basis z) = quotientPoint (g.point k z) := by |
| 132 | unfold rawLift Geometry.point |
| 133 | congr 2 |
| 134 | abel |
| 135 | |
| 136 | /-- The original native parameter rectangle. -/ |
| 137 | def nativeRectangle (g : Geometry) (r : ℝ) : Set Torus := |
| 138 | (fun z => quotientPoint (g.center + g.basis z)) '' Metric.ball (0 : Plane) r |
| 139 | |
| 140 | /-- One of the inverse parallelograms displayed in the manuscript. -/ |
| 141 | def liftedRectangle (g : Geometry) (r : ℝ) (k : Frequency) : Set Torus := |
| 142 | (fun z => quotientPoint (g.point k z)) '' Metric.ball (0 : Plane) r |
| 143 | |
| 144 | theorem liftedRectangle_eq_rawLift (g : Geometry) (r : ℝ) (k : Frequency) : |
| 145 | liftedRectangle g r k = rawLift g.gap k '' |
| 146 | ((fun z => g.center + g.basis z) '' Metric.ball (0 : Plane) r) := by |
| 147 | rw [Set.image_image] |
| 148 | unfold liftedRectangle |
| 149 | congr 1 |
| 150 | funext z |
| 151 | exact (rawLift_geometry_point g k z).symm |
| 152 | |
| 153 | theorem preimage_nativeRectangle (g : Geometry) (r : ℝ) : |
| 154 | (torusCovering^[g.gap]) ⁻¹' nativeRectangle g r = |
| 155 | ⋃ k : Frequency, liftedRectangle g r k := by |
| 156 | have heq : nativeRectangle g r = quotientPoint '' |
| 157 | ((fun z => g.center + g.basis z) '' Metric.ball (0 : Plane) r) := by |
| 158 | rw [Set.image_image] |
| 159 | rfl |
| 160 | rw [heq, preimage_eq_iUnion_rawLift] |
| 161 | congr 1 |
| 162 | funext k |
| 163 | exact (liftedRectangle_eq_rawLift g r k).symm |
| 164 | |
| 165 | theorem disjoint_liftedRectangles (g : Geometry) (r : ℝ) |
| 166 | (hr : ‖(g.basis : Plane →L[ℝ] Plane)‖ * r < 1 / 2) |
| 167 | (k l : Frequency) (hkl : ¬ ∃ n : Frequency, k = l + coverIndex g.gap n) : |
| 168 | Disjoint (liftedRectangle g r k) (liftedRectangle g r l) := by |
| 169 | rw [liftedRectangle_eq_rawLift, liftedRectangle_eq_rawLift] |
| 170 | exact disjoint_rawLift_images g.gap k l |
| 171 | (quotientPoint_injOn_small_chart g.basis g.center r hr) hkl |
| 172 | |
| 173 | open TorusCoverLattice |
| 174 | |
| 175 | /-- One inverse chart for each class in the actual covering lattice. -/ |
| 176 | def sheetLift (d : ℕ) (i : Sheet d) (y : Plane) : Torus := |
| 177 | Quotient.lift (fun k => rawLift d k y) |
| 178 | (fun k l h => (rawLift_eq_iff d k l y).mpr |
| 179 | ((sheet_eq_iff d k l).mp (Quotient.sound h))) i |
| 180 | |
| 181 | @[simp] theorem sheetLift_mk (d : ℕ) (k : Frequency) (y : Plane) : |
| 182 | sheetLift d (QuotientAddGroup.mk k) y = rawLift d k y := rfl |
| 183 | |
| 184 | theorem covering_sheetLift (d : ℕ) (i : Sheet d) (y : Plane) : |
| 185 | torusCovering^[d] (sheetLift d i y) = quotientPoint y := by |
| 186 | induction i using Quotient.inductionOn with | h k => exact covering_rawLift d k y |
| 187 | |
| 188 | theorem sheetLift_injective (d : ℕ) (y : Plane) : |
| 189 | Injective (fun i : Sheet d => sheetLift d i y) := by |
| 190 | intro i j |
| 191 | induction i, j using Quotient.inductionOn₂ with |
| 192 | | h k l => |
| 193 | intro h |
| 194 | exact (sheet_eq_iff d k l).mpr ((rawLift_eq_iff d k l y).mp h) |
| 195 | |
| 196 | /-- Every point of every fiber occurs once, with no duplicated lattice labels. -/ |
| 197 | def fiberEquiv (d : ℕ) (y : Plane) : |
| 198 | Sheet d ≃ {p : Torus // torusCovering^[d] p = quotientPoint y} := |
| 199 | Equiv.ofBijective (fun i => ⟨sheetLift d i y, covering_sheetLift d i y⟩) (by |
| 200 | constructor |
| 201 | · intro i j h |
| 202 | exact sheetLift_injective d y (congrArg Subtype.val h) |
| 203 | · rintro ⟨p, hp⟩ |
| 204 | obtain ⟨k, hk⟩ := (covering_eq_iff_rawLift d p y).mp hp |
| 205 | exact ⟨QuotientAddGroup.mk k, Subtype.ext hk.symm⟩) |
| 206 | |
| 207 | /-- The degree of the actual matrix cover `[[3,1],[1,5]]` after `d` steps. -/ |
| 208 | theorem card_fiber (d : ℕ) (p : Torus) : |
| 209 | Nat.card {x : Torus // torusCovering^[d] x = p} = 14 ^ d := by |
| 210 | obtain ⟨y, rfl⟩ := quotientPoint_surjective p |
| 211 | exact (Nat.card_congr (fiberEquiv d y)).symm.trans (card_sheet d) |
| 212 | |
| 213 | /-- A native rectangle lifted on the sheet indexed by a lattice class. -/ |
| 214 | def sheetRectangle (g : Geometry) (r : ℝ) (i : Sheet g.gap) : Set Torus := |
| 215 | sheetLift g.gap i '' ((fun z => g.center + g.basis z) '' Metric.ball (0 : Plane) r) |
| 216 | |
| 217 | @[simp] theorem sheetRectangle_mk (g : Geometry) (r : ℝ) (k : Frequency) : |
| 218 | sheetRectangle g r (QuotientAddGroup.mk k) = liftedRectangle g r k := |
| 219 | (liftedRectangle_eq_rawLift g r k).symm |
| 220 | |
| 221 | theorem preimage_nativeRectangle_sheets (g : Geometry) (r : ℝ) : |
| 222 | (torusCovering^[g.gap]) ⁻¹' nativeRectangle g r = |
| 223 | ⋃ i : Sheet g.gap, sheetRectangle g r i := by |
| 224 | rw [preimage_nativeRectangle] |
| 225 | ext p |
| 226 | simp only [Set.mem_iUnion] |
| 227 | constructor |
| 228 | · rintro ⟨k, hk⟩ |
| 229 | exact ⟨QuotientAddGroup.mk k, by simpa using hk⟩ |
| 230 | · rintro ⟨i, hi⟩ |
| 231 | induction i using Quotient.inductionOn with |
| 232 | | h k => exact ⟨k, by simpa using hi⟩ |
| 233 | |
| 234 | theorem pairwise_disjoint_sheetRectangles_of_injOn (g : Geometry) (r : ℝ) |
| 235 | (hr : InjOn quotientPoint |
| 236 | ((fun z => g.center + g.basis z) '' Metric.ball (0 : Plane) r)) : |
| 237 | Pairwise (fun i j : Sheet g.gap => Disjoint (sheetRectangle g r i) |
| 238 | (sheetRectangle g r j)) := by |
| 239 | intro i j |
| 240 | induction i, j using Quotient.inductionOn₂ with |
| 241 | | h k l => |
| 242 | intro hkl |
| 243 | simp only [sheetRectangle_mk, liftedRectangle_eq_rawLift] |
| 244 | exact disjoint_rawLift_images g.gap k l hr (fun h => |
| 245 | hkl ((sheet_eq_iff g.gap k l).mpr h)) |
| 246 | |
| 247 | theorem pairwise_disjoint_sheetRectangles (g : Geometry) (r : ℝ) |
| 248 | (hr : ‖(g.basis : Plane →L[ℝ] Plane)‖ * r < 1 / 2) : |
| 249 | Pairwise (fun i j : Sheet g.gap => Disjoint (sheetRectangle g r i) |
| 250 | (sheetRectangle g r j)) := |
| 251 | pairwise_disjoint_sheetRectangles_of_injOn g r |
| 252 | (quotientPoint_injOn_small_chart g.basis g.center r hr) |
| 253 | |
| 254 | theorem sheetRectangle_nonempty (g : Geometry) {r : ℝ} (hr : 0 < r) |
| 255 | (i : Sheet g.gap) : (sheetRectangle g r i).Nonempty := |
| 256 | ((Metric.nonempty_ball.mpr hr).image _).image _ |
| 257 | |
| 258 | /-- Each of the disjoint pieces maps bijectively to the given native rectangle. -/ |
| 259 | theorem covering_bijOn_sheetRectangle_of_injOn (g : Geometry) (r : ℝ) |
| 260 | (hr : InjOn quotientPoint |
| 261 | ((fun z => g.center + g.basis z) '' Metric.ball (0 : Plane) r)) |
| 262 | (i : Sheet g.gap) : |
| 263 | BijOn (torusCovering^[g.gap]) (sheetRectangle g r i) (nativeRectangle g r) := by |
| 264 | refine ⟨?_, ?_, ?_⟩ |
| 265 | · rintro p ⟨y, ⟨z, hz, rfl⟩, rfl⟩ |
| 266 | exact ⟨z, hz, (covering_sheetLift g.gap i _).symm⟩ |
| 267 | · rintro p ⟨y, hy, rfl⟩ q ⟨z, hz, rfl⟩ h |
| 268 | have heq : y = z := hr hy hz (by simpa only [covering_sheetLift] using h) |
| 269 | rw [heq] |
| 270 | · rintro p ⟨z, hz, rfl⟩ |
| 271 | exact ⟨sheetLift g.gap i (g.center + g.basis z), |
| 272 | ⟨g.center + g.basis z, ⟨z, hz, rfl⟩, rfl⟩, covering_sheetLift g.gap i _⟩ |
| 273 | |
| 274 | theorem covering_bijOn_sheetRectangle (g : Geometry) (r : ℝ) |
| 275 | (hr : ‖(g.basis : Plane →L[ℝ] Plane)‖ * r < 1 / 2) |
| 276 | (i : Sheet g.gap) : |
| 277 | BijOn (torusCovering^[g.gap]) (sheetRectangle g r i) (nativeRectangle g r) := |
| 278 | covering_bijOn_sheetRectangle_of_injOn g r |
| 279 | (quotientPoint_injOn_small_chart g.basis g.center r hr) i |
| 280 | |
| 281 | /-- The collection of distinct, nonempty lifted rectangles has exactly the |
| 282 | degree of the covering, not merely an upper bound on the number of labels. -/ |
| 283 | theorem card_liftedRectangles_of_injOn (g : Geometry) {r : ℝ} (hr : 0 < r) |
| 284 | (hchart : InjOn quotientPoint |
| 285 | ((fun z => g.center + g.basis z) '' Metric.ball (0 : Plane) r)) : |
| 286 | Nat.card (Set.range (sheetRectangle g r)) = 14 ^ g.gap := by |
| 287 | have hinj : Injective (sheetRectangle g r) := by |
| 288 | intro i j hij |
| 289 | by_contra hne |
| 290 | have hdis := pairwise_disjoint_sheetRectangles_of_injOn g r hchart hne |
| 291 | dsimp only at hdis |
| 292 | rw [hij] at hdis |
| 293 | exact (sheetRectangle_nonempty g hr j).ne_empty (disjoint_self.mp hdis) |
| 294 | exact (Nat.card_congr (Equiv.ofInjective _ hinj)).symm.trans (card_sheet g.gap) |
| 295 | |
| 296 | theorem card_liftedRectangles (g : Geometry) {r : ℝ} (hr : 0 < r) |
| 297 | (hsmall : ‖(g.basis : Plane →L[ℝ] Plane)‖ * r < 1 / 2) : |
| 298 | Nat.card (Set.range (sheetRectangle g r)) = 14 ^ g.gap := |
| 299 | card_liftedRectangles_of_injOn g hr |
| 300 | (quotientPoint_injOn_small_chart g.basis g.center r hsmall) |
| 301 | |
| 302 | theorem card_liftedRectangles_le (g : Geometry) {r : ℝ} (hr : 0 < r) |
| 303 | (hsmall : ‖(g.basis : Plane →L[ℝ] Plane)‖ * r < 1 / 2) |
| 304 | {maximumGap : ℕ} (hgap : g.gap ≤ maximumGap) : |
| 305 | Nat.card (Set.range (sheetRectangle g r)) ≤ 14 ^ maximumGap := by |
| 306 | rw [card_liftedRectangles g hr hsmall] |
| 307 | exact Nat.pow_le_pow_right (by decide) hgap |
| 308 | |
| 309 | end NavierStokes.TorusCoverDegree |