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 Mathlib.Analysis.Normed.Operator.ContinuousLinearMap |
| 2 | import Mathlib.Topology.Algebra.Module.ContinuousLinearMap.PiProd |
| 3 | import Mathlib.Topology.Instances.Int |
| 4 | import Mathlib.Data.Rat.Cast.Order |
| 5 | import Mathlib.Tactic.FieldSimp |
| 6 | import Mathlib.Tactic.Linarith |
| 7 | import Mathlib.Tactic.NormNum |
| 8 | import Mathlib.Tactic.Positivity |
| 9 | import Mathlib.Tactic.Ring |
| 10 | import Mathlib.Tactic.Abel |
| 11 | |
| 12 | /-! |
| 13 | # Rational auxiliary slots separated under bounded covering powers |
| 14 | |
| 15 | This file constructs the rational centers required in Lemma 8.3 for the |
| 16 | specific covering matrix `J = [[3,1],[1,5]]`. The centers are explicit. |
| 17 | Finite-dimensional continuity then gives a single positive rectangle radius, |
| 18 | including padding and injectivity modulo the integer lattice. |
| 19 | -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | namespace NavierStokes.SlotGeometry |
| 24 | |
| 25 | open Set |
| 26 | open scoped Topology |
| 27 | |
| 28 | abbrev Plane := ℝ × ℝ |
| 29 | |
| 30 | /-- The actual integer covering matrix from the manuscript. -/ |
| 31 | def cover : Plane →L[ℝ] Plane := |
| 32 | (3 • ContinuousLinearMap.fst ℝ ℝ ℝ + ContinuousLinearMap.snd ℝ ℝ ℝ).prod |
| 33 | (ContinuousLinearMap.fst ℝ ℝ ℝ + 5 • ContinuousLinearMap.snd ℝ ℝ ℝ) |
| 34 | |
| 35 | @[simp] theorem cover_apply (x : Plane) : |
| 36 | cover x = (3 * x.1 + x.2, x.1 + 5 * x.2) := by |
| 37 | simp [cover] |
| 38 | |
| 39 | theorem cover_injective : Function.Injective cover := by |
| 40 | intro x y h |
| 41 | have h1 := congrArg Prod.fst h |
| 42 | have h2 := congrArg Prod.snd h |
| 43 | simp only [cover_apply] at h1 h2 |
| 44 | apply Prod.ext <;> linarith |
| 45 | |
| 46 | theorem cover_pow_injective (n : ℕ) : Function.Injective (cover ^ n : Plane →L[ℝ] Plane) := by |
| 47 | induction n with |
| 48 | | zero => simpa using Function.injective_id |
| 49 | | succ n ih => |
| 50 | intro x y h |
| 51 | rw [pow_succ', _root_.mul_apply_eq_comp, _root_.mul_apply_eq_comp] at h |
| 52 | exact ih (cover_injective h) |
| 53 | |
| 54 | theorem norm_cover_le (x : Plane) : ‖cover x‖ ≤ 6 * ‖x‖ := by |
| 55 | have hx : |x.1| ≤ ‖x‖ := le_max_left _ _ |
| 56 | have hy : |x.2| ≤ ‖x‖ := le_max_right _ _ |
| 57 | rw [cover_apply] |
| 58 | change max |3 * x.1 + x.2| |x.1 + 5 * x.2| ≤ 6 * ‖x‖ |
| 59 | apply max_le |
| 60 | · calc |
| 61 | |3 * x.1 + x.2| ≤ |3 * x.1| + |x.2| := abs_add_le _ _ |
| 62 | _ ≤ 6 * ‖x‖ := by rw [abs_mul]; norm_num; linarith [norm_nonneg x] |
| 63 | · calc |
| 64 | |x.1 + 5 * x.2| ≤ |x.1| + |5 * x.2| := abs_add_le _ _ |
| 65 | _ ≤ 6 * ‖x‖ := by rw [abs_mul]; norm_num; linarith |
| 66 | |
| 67 | theorem norm_cover_pow_le (n : ℕ) (x : Plane) : |
| 68 | ‖(cover ^ n) x‖ ≤ (6 : ℝ) ^ n * ‖x‖ := by |
| 69 | induction n with |
| 70 | | zero => simp |
| 71 | | succ n ih => |
| 72 | rw [pow_succ', _root_.mul_apply_eq_comp, pow_succ'] |
| 73 | calc |
| 74 | ‖cover ((cover ^ n) x)‖ ≤ 6 * ‖(cover ^ n) x‖ := norm_cover_le _ |
| 75 | _ ≤ 6 * ((6 : ℝ) ^ n * ‖x‖) := mul_le_mul_of_nonneg_left ih (by norm_num) |
| 76 | _ = _ := by ring |
| 77 | |
| 78 | theorem cover_pow_positive (n : ℕ) (x : Plane) (hx : 0 < x.1) (hy : 0 ≤ x.2) : |
| 79 | 0 < ((cover ^ n) x).1 ∧ 0 ≤ ((cover ^ n) x).2 := by |
| 80 | induction n with |
| 81 | | zero => simpa using And.intro hx hy |
| 82 | | succ n ih => |
| 83 | rw [pow_succ', _root_.mul_apply_eq_comp, cover_apply] |
| 84 | dsimp |
| 85 | constructor <;> linarith [ih.1, ih.2] |
| 86 | |
| 87 | theorem cover_pow_second_positive {n : ℕ} (hn : 0 < n) (x : Plane) |
| 88 | (hx : 0 < x.1) (hy : 0 ≤ x.2) : 0 < ((cover ^ n) x).2 := by |
| 89 | obtain ⟨k, rfl⟩ := Nat.exists_eq_succ_of_ne_zero (Nat.ne_of_gt hn) |
| 90 | have hp := cover_pow_positive k x hx hy |
| 91 | rw [pow_succ', _root_.mul_apply_eq_comp, cover_apply] |
| 92 | dsimp |
| 93 | linarith [hp.1, hp.2] |
| 94 | |
| 95 | def denominator (m D : ℕ) : ℝ := ((m : ℝ) + 1) * (6 : ℝ) ^ D |
| 96 | |
| 97 | theorem denominator_pos (m D : ℕ) : 0 < denominator m D := by |
| 98 | unfold denominator |
| 99 | positivity |
| 100 | |
| 101 | /-- Explicit rational centers: they lie on the horizontal line `Y₂=0`. -/ |
| 102 | def center (m D : ℕ) (i : Fin m) : Plane := |
| 103 | (((i.val : ℝ) + 1) / denominator m D, 0) |
| 104 | |
| 105 | theorem center_rational (m D : ℕ) (i : Fin m) : |
| 106 | ∃ a b : ℚ, center m D i = ((a : ℝ), (b : ℝ)) := by |
| 107 | refine ⟨((i.val : ℚ) + 1) / (((m : ℚ) + 1) * 6 ^ D), 0, ?_⟩ |
| 108 | simp [center, denominator] |
| 109 | |
| 110 | theorem center_first_pos (m D : ℕ) (i : Fin m) : 0 < (center m D i).1 := by |
| 111 | exact div_pos (by positivity) (denominator_pos m D) |
| 112 | |
| 113 | theorem center_norm (m D : ℕ) (i : Fin m) : ‖center m D i‖ = (center m D i).1 := by |
| 114 | change max |(center m D i).1| |(0 : ℝ)| = (center m D i).1 |
| 115 | rw [abs_zero, abs_of_pos (center_first_pos m D i), |
| 116 | max_eq_left (center_first_pos m D i).le] |
| 117 | |
| 118 | theorem scaled_center_lt_one (m D : ℕ) (i : Fin m) : |
| 119 | (6 : ℝ) ^ D * ‖center m D i‖ < 1 := by |
| 120 | rw [center_norm] |
| 121 | have heq : (6 : ℝ) ^ D * (center m D i).1 = ((i.val : ℝ) + 1) / ((m : ℝ) + 1) := by |
| 122 | unfold center denominator |
| 123 | dsimp |
| 124 | field_simp |
| 125 | rw [heq] |
| 126 | apply (div_lt_one (by positivity : 0 < (m : ℝ) + 1)).mpr |
| 127 | exact_mod_cast Nat.add_lt_add_right i.isLt 1 |
| 128 | |
| 129 | theorem center_injective (m D : ℕ) : Function.Injective (center m D) := by |
| 130 | intro i j h |
| 131 | have h1 := congrArg Prod.fst h |
| 132 | change ((i.val : ℝ) + 1) / denominator m D = |
| 133 | ((j.val : ℝ) + 1) / denominator m D at h1 |
| 134 | have hnum := (div_left_inj' (ne_of_gt (denominator_pos m D))).mp h1 |
| 135 | apply Fin.ext |
| 136 | exact_mod_cast (add_right_cancel hnum) |
| 137 | |
| 138 | def lattice : Set Plane := (Set.range (Int.cast : ℤ → ℝ)) ×ˢ (Set.range (Int.cast : ℤ → ℝ)) |
| 139 | |
| 140 | /-- Equality on the torus, stated on its universal cover. -/ |
| 141 | def torusEq (x y : Plane) : Prop := x - y ∈ lattice |
| 142 | |
| 143 | theorem isClosed_lattice : IsClosed lattice := |
| 144 | Int.isClosedEmbedding_coe_real.isClosed_range.prod Int.isClosedEmbedding_coe_real.isClosed_range |
| 145 | |
| 146 | theorem lattice_norm_lt_one {x : Plane} (hx : x ∈ lattice) (hn : ‖x‖ < 1) : x = 0 := by |
| 147 | rcases hx with ⟨⟨a, ha⟩, ⟨b, hb⟩⟩ |
| 148 | have hx1 : |x.1| < 1 := lt_of_le_of_lt (le_max_left _ _) hn |
| 149 | have hx2 : |x.2| < 1 := lt_of_le_of_lt (le_max_right _ _) hn |
| 150 | rw [← ha] at hx1 |
| 151 | rw [← hb] at hx2 |
| 152 | have ha0 : a = 0 := by |
| 153 | have : |a| < (1 : ℤ) := by exact_mod_cast hx1 |
| 154 | have := abs_lt.mp this |
| 155 | omega |
| 156 | have hb0 : b = 0 := by |
| 157 | have : |b| < (1 : ℤ) := by exact_mod_cast hx2 |
| 158 | have := abs_lt.mp this |
| 159 | omega |
| 160 | apply Prod.ext |
| 161 | · simpa [ha0] using ha.symm |
| 162 | · simpa [hb0] using hb.symm |
| 163 | |
| 164 | theorem torusEq_of_unit_square {x y : Plane} (hxy : torusEq x y) |
| 165 | (hx1 : 0 ≤ x.1) (hx2 : 0 ≤ x.2) (hy1 : 0 ≤ y.1) (hy2 : 0 ≤ y.2) |
| 166 | (hx : ‖x‖ < 1) (hy : ‖y‖ < 1) : x = y := by |
| 167 | have hx1' : x.1 < 1 := lt_of_le_of_lt (le_trans (le_abs_self _) (le_max_left _ _)) hx |
| 168 | have hx2' : x.2 < 1 := lt_of_le_of_lt (le_trans (le_abs_self _) (le_max_right _ _)) hx |
| 169 | have hy1' : y.1 < 1 := lt_of_le_of_lt (le_trans (le_abs_self _) (le_max_left _ _)) hy |
| 170 | have hy2' : y.2 < 1 := lt_of_le_of_lt (le_trans (le_abs_self _) (le_max_right _ _)) hy |
| 171 | apply sub_eq_zero.mp |
| 172 | apply lattice_norm_lt_one hxy |
| 173 | change max |x.1 - y.1| |x.2 - y.2| < 1 |
| 174 | rw [max_lt_iff, abs_lt, abs_lt] |
| 175 | constructor <;> constructor <;> linarith |
| 176 | |
| 177 | theorem cover_center_norm_lt_one (m D : ℕ) (i : Fin m) (n : ℕ) (hn : n ≤ D) : |
| 178 | ‖(cover ^ n) (center m D i)‖ < 1 := by |
| 179 | calc |
| 180 | ‖(cover ^ n) (center m D i)‖ ≤ (6 : ℝ) ^ n * ‖center m D i‖ := norm_cover_pow_le _ _ |
| 181 | _ ≤ (6 : ℝ) ^ D * ‖center m D i‖ := |
| 182 | mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hn) (norm_nonneg _) |
| 183 | _ < 1 := scaled_center_lt_one m D i |
| 184 | |
| 185 | /-- All forbidden coincidences are ruled out for the explicit centers, |
| 186 | including self-coincidence under every positive allowed covering power. -/ |
| 187 | theorem centers_avoid_covering (m D : ℕ) (i j : Fin m) (n : ℕ) (hn : n ≤ D) |
| 188 | (hij : 0 < n ∨ i ≠ j) : ¬ torusEq ((cover ^ n) (center m D i)) (center m D j) := by |
| 189 | intro h |
| 190 | have hi := cover_pow_positive n (center m D i) (center_first_pos m D i) le_rfl |
| 191 | have hj : ‖center m D j‖ < 1 := by |
| 192 | simpa using cover_center_norm_lt_one m D j 0 (Nat.zero_le D) |
| 193 | have heq := torusEq_of_unit_square h hi.1.le hi.2 (center_first_pos m D j).le le_rfl |
| 194 | (cover_center_norm_lt_one m D i n hn) hj |
| 195 | rcases hij with hpos | hne |
| 196 | · have hp := cover_pow_second_positive hpos (center m D i) (center_first_pos m D i) le_rfl |
| 197 | rw [heq] at hp |
| 198 | exact (lt_irrefl 0) hp |
| 199 | · by_cases hn0 : n = 0 |
| 200 | · subst n |
| 201 | exact hne (center_injective m D (by simpa using heq)) |
| 202 | · have hp := cover_pow_second_positive (Nat.pos_of_ne_zero hn0) |
| 203 | (center m D i) (center_first_pos m D i) le_rfl |
| 204 | rw [heq] at hp |
| 205 | exact (lt_irrefl 0) hp |
| 206 | |
| 207 | /-- Closed rectangles in the product supremum norm. -/ |
| 208 | def rectangle (c : Plane) (r : ℝ) : Set Plane := {x | ‖x - c‖ ≤ r} |
| 209 | |
| 210 | private def separationOffsets (m D : ℕ) (n : Fin (D + 1)) (i j : Fin m) : |
| 211 | Set (Plane × Plane) := |
| 212 | if 0 < n.val ∨ i ≠ j then |
| 213 | {e | ¬ torusEq ((cover ^ n.val) (center m D i + e.1)) (center m D j + e.2)} |
| 214 | else Set.univ |
| 215 | |
| 216 | private def injectiveOffsets (n : ℕ) : Set (Plane × Plane) := |
| 217 | {e | ‖(cover ^ n) (e.1 - e.2)‖ < 1} |
| 218 | |
| 219 | private theorem isOpen_separationOffsets (m D : ℕ) (n : Fin (D + 1)) (i j : Fin m) : |
| 220 | IsOpen (separationOffsets m D n i j) := by |
| 221 | unfold separationOffsets |
| 222 | split_ifs |
| 223 | · have hc : Continuous (fun e : Plane × Plane => |
| 224 | (cover ^ n.val) (center m D i + e.1) - (center m D j + e.2)) := |
| 225 | (((cover ^ n.val).continuous).comp (continuous_const.add continuous_fst)).sub |
| 226 | (continuous_const.add continuous_snd) |
| 227 | exact (isClosed_lattice.preimage hc).isOpen_compl |
| 228 | · exact isOpen_univ |
| 229 | |
| 230 | private theorem isOpen_injectiveOffsets (n : ℕ) : IsOpen (injectiveOffsets n) := by |
| 231 | apply isOpen_lt _ continuous_const |
| 232 | exact (((cover ^ n).continuous).comp (continuous_fst.sub continuous_snd)).norm |
| 233 | |
| 234 | private def safeOffsets (m D : ℕ) : Set (Plane × Plane) := |
| 235 | (⋂ n : Fin (D + 1), injectiveOffsets n.val) ∩ |
| 236 | (⋂ n : Fin (D + 1), ⋂ i : Fin m, ⋂ j : Fin m, separationOffsets m D n i j) |
| 237 | |
| 238 | private theorem isOpen_safeOffsets (m D : ℕ) : IsOpen (safeOffsets m D) := by |
| 239 | apply IsOpen.inter |
| 240 | · exact isOpen_iInter_of_finite (fun n => isOpen_injectiveOffsets n.val) |
| 241 | · apply isOpen_iInter_of_finite |
| 242 | intro n |
| 243 | apply isOpen_iInter_of_finite |
| 244 | intro i |
| 245 | exact isOpen_iInter_of_finite (fun j => isOpen_separationOffsets m D n i j) |
| 246 | |
| 247 | private theorem zero_mem_safeOffsets (m D : ℕ) : (0 : Plane × Plane) ∈ safeOffsets m D := by |
| 248 | constructor |
| 249 | · apply mem_iInter.mpr |
| 250 | intro n |
| 251 | simp [injectiveOffsets] |
| 252 | · apply mem_iInter.mpr |
| 253 | intro n |
| 254 | apply mem_iInter.mpr |
| 255 | intro i |
| 256 | apply mem_iInter.mpr |
| 257 | intro j |
| 258 | by_cases hh : 0 < n.val ∨ i ≠ j |
| 259 | · rw [separationOffsets, ite_eq_left hh] |
| 260 | simpa only [Set.mem_ofPred_eq, Prod.fst_zero, Prod.snd_zero, add_zero] using |
| 261 | centers_avoid_covering m D i j n.val (Nat.le_of_lt_succ n.isLt) hh |
| 262 | · rw [separationOffsets, ite_eq_right hh] |
| 263 | exact mem_univ _ |
| 264 | |
| 265 | private theorem exists_safe_offset_radius (m D : ℕ) : |
| 266 | ∃ r : ℝ, 0 < r ∧ ∀ e : Plane × Plane, |
| 267 | ‖e.1‖ ≤ 2 * r → ‖e.2‖ ≤ 2 * r → e ∈ safeOffsets m D := by |
| 268 | obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.mp (isOpen_safeOffsets m D) |
| 269 | (0 : Plane × Plane) (zero_mem_safeOffsets m D) |
| 270 | refine ⟨ε / 4, by linarith, ?_⟩ |
| 271 | intro e he1 he2 |
| 272 | apply hball |
| 273 | rw [Metric.mem_ball, dist_eq_norm, sub_zero, Prod.norm_def] |
| 274 | exact max_lt (by linarith) (by linarith) |
| 275 | |
| 276 | /-- A common positive radius exists for the explicit rational centers. |
| 277 | The rectangles of radius `2*r` already include fixed padding. |
| 278 | |
| 279 | Distinct colors have disjoint slots at equal levels, and every positive |
| 280 | covering difference up to `D` separates even equal colors. Every covering |
| 281 | power up to `D` is also injective modulo the lattice on each padded slot. -/ |
| 282 | theorem exists_common_radius (m D : ℕ) : |
| 283 | ∃ r : ℝ, 0 < r ∧ |
| 284 | (∀ n ≤ D, ∀ i j : Fin m, 0 < n ∨ i ≠ j → |
| 285 | ∀ x ∈ rectangle (center m D i) (2 * r), |
| 286 | ∀ y ∈ rectangle (center m D j) (2 * r), ¬ torusEq ((cover ^ n) x) y) ∧ |
| 287 | (∀ n ≤ D, ∀ i : Fin m, |
| 288 | ∀ x ∈ rectangle (center m D i) (2 * r), |
| 289 | ∀ y ∈ rectangle (center m D i) (2 * r), |
| 290 | torusEq ((cover ^ n) x) ((cover ^ n) y) → x = y) := by |
| 291 | obtain ⟨r, hr, hoffsets⟩ := exists_safe_offset_radius m D |
| 292 | refine ⟨r, hr, ?_, ?_⟩ |
| 293 | · intro n hn i j hij x hx y hy |
| 294 | let n' : Fin (D + 1) := ⟨n, Nat.lt_succ_of_le hn⟩ |
| 295 | have he := hoffsets (x - center m D i, y - center m D j) hx hy |
| 296 | have hs := mem_iInter.mp (mem_iInter.mp (mem_iInter.mp he.2 n') i) j |
| 297 | change (x - center m D i, y - center m D j) ∈ |
| 298 | separationOffsets m D n' i j at hs |
| 299 | have hcx : center m D i + (x - center m D i) = x := by abel |
| 300 | have hcy : center m D j + (y - center m D j) = y := by abel |
| 301 | simpa only [separationOffsets, n', hij, ite_eq_left, Set.mem_ofPred_eq, hcx, hcy] using hs |
| 302 | · intro n hn i x hx y hy hxy |
| 303 | let n' : Fin (D + 1) := ⟨n, Nat.lt_succ_of_le hn⟩ |
| 304 | have he := hoffsets (x - center m D i, y - center m D i) hx hy |
| 305 | have hi := mem_iInter.mp he.1 n' |
| 306 | change ‖(cover ^ n) ((x - center m D i) - (y - center m D i))‖ < 1 at hi |
| 307 | have hsub : (x - center m D i) - (y - center m D i) = x - y := by abel |
| 308 | rw [hsub, map_sub] at hi |
| 309 | exact cover_pow_injective n (sub_eq_zero.mp (lattice_norm_lt_one hxy hi)) |
| 310 | |
| 311 | theorem torusEq_refl (x : Plane) : torusEq x x := by |
| 312 | refine ⟨⟨0, ?_⟩, ⟨0, ?_⟩⟩ <;> simp |
| 313 | |
| 314 | theorem torusEq_symm {x y : Plane} (h : torusEq x y) : torusEq y x := by |
| 315 | rcases h with ⟨⟨a, ha⟩, ⟨b, hb⟩⟩ |
| 316 | refine ⟨⟨-a, ?_⟩, ⟨-b, ?_⟩⟩ |
| 317 | · push_cast |
| 318 | dsimp at ha ⊢ |
| 319 | linarith |
| 320 | · push_cast |
| 321 | dsimp at hb ⊢ |
| 322 | linarith |
| 323 | |
| 324 | theorem torusEq_trans {x y z : Plane} (hxy : torusEq x y) (hyz : torusEq y z) : |
| 325 | torusEq x z := by |
| 326 | rcases hxy with ⟨⟨a, ha⟩, ⟨b, hb⟩⟩ |
| 327 | rcases hyz with ⟨⟨c, hc⟩, ⟨d, hd⟩⟩ |
| 328 | refine ⟨⟨a + c, ?_⟩, ⟨b + d, ?_⟩⟩ |
| 329 | · push_cast |
| 330 | dsimp at ha hc ⊢ |
| 331 | linarith |
| 332 | · push_cast |
| 333 | dsimp at hb hd ⊢ |
| 334 | linarith |
| 335 | |
| 336 | /-- The covering preserves the integer lattice and therefore torus equality. -/ |
| 337 | theorem cover_torusEq {x y : Plane} (h : torusEq x y) : torusEq (cover x) (cover y) := by |
| 338 | rcases h with ⟨⟨a, ha⟩, ⟨b, hb⟩⟩ |
| 339 | refine ⟨⟨3 * a + b, ?_⟩, ⟨a + 5 * b, ?_⟩⟩ |
| 340 | · push_cast |
| 341 | simp only [Prod.fst_sub, cover_apply] |
| 342 | dsimp at ha hb ⊢ |
| 343 | linarith |
| 344 | · push_cast |
| 345 | simp only [Prod.snd_sub, cover_apply] |
| 346 | dsimp at ha hb ⊢ |
| 347 | linarith |
| 348 | |
| 349 | theorem cover_pow_torusEq (n : ℕ) {x y : Plane} (h : torusEq x y) : |
| 350 | torusEq ((cover ^ n) x) ((cover ^ n) y) := by |
| 351 | induction n with |
| 352 | | zero => simpa using h |
| 353 | | succ n ih => |
| 354 | rw [pow_succ', _root_.mul_apply_eq_comp, _root_.mul_apply_eq_comp] |
| 355 | exact cover_torusEq ih |
| 356 | |
| 357 | /-- All periodically reindexed copies of a native slot, on the absolute lift. -/ |
| 358 | def liftedSupport (level : ℕ) (slot : Set Plane) : Set Plane := |
| 359 | {Y | ∃ x ∈ slot, torusEq ((cover ^ level) Y) x} |
| 360 | |
| 361 | theorem liftedSupport_disjoint_of_separation (level n : ℕ) (S T : Set Plane) |
| 362 | (hsep : ∀ x ∈ S, ∀ y ∈ T, ¬ torusEq ((cover ^ n) x) y) : |
| 363 | Disjoint (liftedSupport level S) (liftedSupport (level + n) T) := by |
| 364 | apply Set.disjoint_left.mpr |
| 365 | intro Y hS hT |
| 366 | rcases hS with ⟨x, hx, hYx⟩ |
| 367 | rcases hT with ⟨y, hy, hYy⟩ |
| 368 | have hcover := cover_pow_torusEq n hYx |
| 369 | have hp : (cover ^ n) ((cover ^ level) Y) = (cover ^ (level + n)) Y := by |
| 370 | rw [Nat.add_comm level n, pow_add, _root_.mul_apply_eq_comp] |
| 371 | rw [hp] at hcover |
| 372 | exact hsep x hx y hy (torusEq_trans (torusEq_symm hcover) hYy) |
| 373 | |
| 374 | /-- The padded native slots are disjoint on the actual absolute lift, at |
| 375 | arbitrary levels whose difference is at most `D`. -/ |
| 376 | theorem exists_disjoint_lifted_slots (m D : ℕ) : |
| 377 | ∃ r : ℝ, 0 < r ∧ ∀ level n, n ≤ D → ∀ i j : Fin m, |
| 378 | 0 < n ∨ i ≠ j → |
| 379 | Disjoint (liftedSupport level (rectangle (center m D i) (2 * r))) |
| 380 | (liftedSupport (level + n) (rectangle (center m D j) (2 * r))) := by |
| 381 | obtain ⟨r, hr, hsep, _⟩ := exists_common_radius m D |
| 382 | refine ⟨r, hr, ?_⟩ |
| 383 | intro level n hn i j hij |
| 384 | exact liftedSupport_disjoint_of_separation level n _ _ (hsep n hn i j hij) |
| 385 | |
| 386 | /-- A rectangle in any two prescribed auxiliary directions. -/ |
| 387 | def orientedRectangle (c a b : Plane) (r : ℝ) : Set Plane := |
| 388 | {x | ∃ ξ η : ℝ, |ξ| ≤ r ∧ |η| ≤ r ∧ x = c + ξ • a + η • b} |
| 389 | |
| 390 | theorem orientedRectangle_subset (c a b : Plane) (r : ℝ) (hr : 0 ≤ r) : |
| 391 | orientedRectangle c a b (r / (1 + ‖a‖ + ‖b‖)) ⊆ rectangle c r := by |
| 392 | intro x hx |
| 393 | rcases hx with ⟨ξ, η, hξ, hη, rfl⟩ |
| 394 | change ‖c + ξ • a + η • b - c‖ ≤ r |
| 395 | have hc : c + ξ • a + η • b - c = ξ • a + η • b := by abel |
| 396 | rw [hc] |
| 397 | have hden : 0 < 1 + ‖a‖ + ‖b‖ := by positivity |
| 398 | have hquot : 0 ≤ r / (1 + ‖a‖ + ‖b‖) := div_nonneg hr hden.le |
| 399 | calc |
| 400 | ‖ξ • a + η • b‖ ≤ ‖ξ • a‖ + ‖η • b‖ := norm_add_le _ _ |
| 401 | _ = |ξ| * ‖a‖ + |η| * ‖b‖ := by simp only [norm_smul, Real.norm_eq_abs] |
| 402 | _ ≤ (r / (1 + ‖a‖ + ‖b‖)) * (‖a‖ + ‖b‖) := by |
| 403 | nlinarith [mul_le_mul_of_nonneg_right hξ (norm_nonneg a), |
| 404 | mul_le_mul_of_nonneg_right hη (norm_nonneg b)] |
| 405 | _ ≤ (r / (1 + ‖a‖ + ‖b‖)) * (1 + ‖a‖ + ‖b‖) := by nlinarith |
| 406 | _ = r := div_mul_cancel₀ _ (ne_of_gt hden) |
| 407 | |
| 408 | /-- In particular this applies to the manuscript's two eigendirections. |
| 409 | The same coordinate radius works for all colors, levels, and padded slots. -/ |
| 410 | theorem exists_oriented_slots (m D : ℕ) (a b : Plane) : |
| 411 | ∃ r : ℝ, 0 < r ∧ |
| 412 | (∀ level n, n ≤ D → ∀ i j : Fin m, 0 < n ∨ i ≠ j → |
| 413 | Disjoint (liftedSupport level (orientedRectangle (center m D i) a b (2 * r))) |
| 414 | (liftedSupport (level + n) (orientedRectangle (center m D j) a b (2 * r)))) ∧ |
| 415 | (∀ n ≤ D, ∀ i : Fin m, |
| 416 | ∀ x ∈ orientedRectangle (center m D i) a b (2 * r), |
| 417 | ∀ y ∈ orientedRectangle (center m D i) a b (2 * r), |
| 418 | torusEq ((cover ^ n) x) ((cover ^ n) y) → x = y) := by |
| 419 | obtain ⟨R, hR, hsep, hinj⟩ := exists_common_radius m D |
| 420 | let r := R / (1 + ‖a‖ + ‖b‖) |
| 421 | have hr : 0 < r := div_pos hR (by positivity) |
| 422 | have hsub (i : Fin m) : orientedRectangle (center m D i) a b (2 * r) ⊆ |
| 423 | rectangle (center m D i) (2 * R) := by |
| 424 | simpa only [r, mul_div_assoc] using |
| 425 | orientedRectangle_subset (center m D i) a b (2 * R) (by positivity) |
| 426 | refine ⟨r, hr, ?_, ?_⟩ |
| 427 | · intro level n hn i j hij |
| 428 | apply liftedSupport_disjoint_of_separation |
| 429 | intro x hx y hy |
| 430 | exact hsep n hn i j hij x (hsub i hx) y (hsub j hy) |
| 431 | · intro n hn i x hx y hy hxy |
| 432 | exact hinj n hn i x (hsub i hx) y (hsub i hy) hxy |
| 433 | |
| 434 | /-- The manuscript's axes are `(1,-β)` and `(β,1)`, with `β=sqrt(2)-1`. |
| 435 | They define genuine coordinates for every real `β`. -/ |
| 436 | theorem rotated_axes_injective (β : ℝ) : |
| 437 | Function.Injective (fun q : Plane => |
| 438 | q.1 • ((1, -β) : Plane) + q.2 • ((β, 1) : Plane)) := by |
| 439 | intro q z h |
| 440 | have h1 : q.1 + β * q.2 = z.1 + β * z.2 := by |
| 441 | simpa [mul_comm] using congrArg Prod.fst h |
| 442 | have h2 : -β * q.1 + q.2 = -β * z.1 + z.2 := by |
| 443 | simpa [mul_comm] using congrArg Prod.snd h |
| 444 | have hdet : (1 + β ^ 2) ≠ 0 := by nlinarith [sq_nonneg β] |
| 445 | have hprod : (1 + β ^ 2) * (q.1 - z.1) = 0 := by |
| 446 | have hm := congrArg (fun t : ℝ => β * t) h2 |
| 447 | nlinarith |
| 448 | have hq : q.1 = z.1 := sub_eq_zero.mp ((mul_eq_zero.mp hprod).resolve_left hdet) |
| 449 | exact Prod.ext hq (by rw [hq] at h2; linarith) |
| 450 | |
| 451 | /-- Application to any label family with a finite proper coloring and a |
| 452 | bounded difference of interacting levels. Constructing that coloring from |
| 453 | the physical grid is a separate combinatorial obligation. -/ |
| 454 | theorem colored_labels_have_slots {Label : Type*} (m D : ℕ) (a b : Plane) |
| 455 | (Adj : Label → Label → Prop) (color : Label → Fin m) (level : Label → ℕ) |
| 456 | (hcolor : ∀ i j, Adj i j → color i ≠ color j) |
| 457 | (hlevel : ∀ i j, Adj i j → level i ≤ level j + D ∧ level j ≤ level i + D) : |
| 458 | ∃ r : ℝ, 0 < r ∧ ∀ i j, Adj i j → |
| 459 | Disjoint |
| 460 | (liftedSupport (level i) (orientedRectangle (center m D (color i)) a b (2 * r))) |
| 461 | (liftedSupport (level j) (orientedRectangle (center m D (color j)) a b (2 * r))) := by |
| 462 | obtain ⟨r, hr, hslots, _⟩ := exists_oriented_slots m D a b |
| 463 | refine ⟨r, hr, ?_⟩ |
| 464 | intro i j hij |
| 465 | have hc := hcolor i j hij |
| 466 | have hd := hlevel i j hij |
| 467 | rcases le_total (level i) (level j) with hle | hle |
| 468 | · have hd' : level j - level i ≤ D := by omega |
| 469 | have h := hslots (level i) (level j - level i) hd' (color i) (color j) (Or.inr hc) |
| 470 | have heq : level i + (level j - level i) = level j := by omega |
| 471 | simpa only [heq] using h |
| 472 | · have hd' : level i - level j ≤ D := by omega |
| 473 | have h := hslots (level j) (level i - level j) hd' (color j) (color i) (Or.inr hc.symm) |
| 474 | have heq : level j + (level i - level j) = level i := by omega |
| 475 | simpa only [heq] using h.symm |
| 476 | |
| 477 | end NavierStokes.SlotGeometry |