Lean / Reader
Lean reader

E2nMinus3.lean

159 lines4 declarationsno sorryimports E9Elimination E2nMinus3.BesselDeficit E2nMinus3.ClassIIbAllD E2nMinus3.ClassIIaAllD

Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports E9Elimination, E2nMinus3.BesselDeficit, E2nMinus3.ClassIIbAllD, E2nMinus3.ClassIIaAllD, which it does not have: you can read it there, but it will not check. Build the project itself to check it.

  1. import E9Elimination
  2. import E2nMinus3.BesselDeficit
  3. import E2nMinus3.ClassIIbAllD
  4. import E2nMinus3.ClassIIaAllD
  5. /-!
  6. # Complete Unconditional All-Dimensions Elimination of the `E_{2n-3}` Flat Family (`2n ≥ 12`, `IIS-O-0250`)
  7. This top-level module exports the **headline theorems of Paper 9**, proving two flagship results:
  8. 1. **Sharp Real-Valued Elimination for ALL `2n ≥ 14` (`d = n - 3 ≥ 4`)** (`e2n_minus_3_real_complete`):
  9. For **EVERY** `d ≥ 4` and **EVERY** REAL vector `w ∈ 𝒫_d(8, 8) ⊂ ℝ^{2^{2d}}` — with **ZERO**
  10. even-lattice integrality (`IsEvenInt`), sign-pattern, bent-proximity, or normal-flat assumptions —
  11. `448 < ∑ z : Vec (2 * d), ((8 : ℝ)^2 - (w z)^2)`
  12. (equivalently `∑ z, (w z)^2 < 64 * 2^{2d} - 448`).
  13. 2. **Unified All-Dimensions Elimination for ALL `2n ≥ 12` (`d = n - 3 ≥ 3`)** (`e2n_minus_3_all_dimensions_complete`):
  14. Uniting `e2n_minus_3_real_complete` (`d ≥ 4`, real `w`) with Paper 8's `e9_complete_elimination`
  15. (`d = 3`, even-integer lattice `w ∈ (2ℤ)^{64}` — where `2^d = 8` allows small bent-ball flips
  16. to sit inside `|W g 0| ≤ 6`, marking a sharp dimensional phase transition between `d = 3` and
  17. `d ≥ 4` where `r ∈ {0, 1}` are empty and every class falls unconditionally over `ℝ`!):
  18. for **EVERY** `d ≥ 3` (`2n ≥ 12`) and **EVERY** even-integer vector `w ∈ 𝒫_d(8, 8) ∩ (2ℤ)^{2^{2d}}`,
  19. `448 < ∑ z : Vec (2 * d), ((8 : ℝ)^2 - (w z)^2)`.
  20. -/
  21. open Finset BigOperators E9Elimination
  22. namespace E2nMinus3
  23. /-- **Theorem 1 (Complete Unconditional Real-Valued Elimination of `E_{2n-3}` for ALL `2n ≥ 14`, `d ≥ 4`)**:
  24. For EVERY `d ≥ 4` (`2n = 2d + 6 ≥ 14`) and EVERY REAL vector `w : Vec (2*d) → ℝ` in the balanced
  25. bounded-spectrum polytope `𝒫_d(8, 8)` — with ZERO even-integer, sign-pattern, bent-proximity,
  26. or normal-flat assumptions — the `L²` deficit strictly exceeds `448`:
  27. `448 < ∑ z : Vec (2 * d), ((8 : ℝ)^2 - (w z)^2)`. -/
  28. theorem e2n_minus_3_real_complete {d : ℕ} (hd : 4 ≤ d)
  29. (w : Vec (2 * d) → ℝ) (hwP : InPolytope d 8 8 w) :
  30. 448 < ∑ z : Vec (2 * d), ((8 : ℝ) ^ 2 - (w z) ^ 2) := by
  31. classical
  32. -- Step 1: Extract a canonical sign pattern `g : Vec (2*d) → ZMod 2` with `HasSign g w`!
  33. rcases hasSign_of_real w with ⟨g, hwS⟩
  34. -- Step 2: Eliminate `|W g 0| ≥ 8` via `zero_sum_deficit_ge` (deficit ≥ 512 > 448)!
  35. by_cases hW0_ge8 : 8 ≤ |W g 0|
  36. · have hdef := zero_sum_deficit_ge g 8 (by norm_num) w hwP.1 hwP.2.1 hwS
  37. have hR : (8 : ℝ) ≤ (|W g 0| : ℝ) := by exact_mod_cast hW0_ge8
  38. nlinarith
  39. -- Step 3: Eliminate `∃ ω, 2^d + 8 ≤ |W g ω|` via `signed_quadrant_l2` (deficit ≥ 480 > 448)!
  40. by_cases hW_hi : ∃ ω : Vec (2 * d), (2 : ℤ) ^ d + 8 ≤ |W g ω|
  41. · rcases hW_hi with ⟨u, hu_ge⟩
  42. have hM16 : (16 : ℤ) ≤ (2 : ℤ) ^ d := by
  43. have : (2 : ℤ) ^ 4 ≤ (2 : ℤ) ^ d := pow_le_pow_right₀ (by decide) hd
  44. norm_num at this; exact this
  45. have hu0 : u ≠ 0 := fun h => by rw [h] at hu_ge; omega
  46. have hG_ge : |W g 0| ≤ |W g u| - (2 : ℤ) ^ d := by omega
  47. have hdef := signed_quadrant_l2 (d := d) (by omega) g u hu0 (|W g u| - (2 : ℤ) ^ d)
  48. (by omega) hG_ge 8 8 (by norm_num) (by norm_num) (by norm_num) w hwP hwS
  49. have hGR : (8 : ℝ) ≤ ((|W g u| - (2 : ℤ) ^ d : ℤ) : ℝ) := by
  50. have : (8 : ℤ) ≤ |W g u| - (2 : ℤ) ^ d := by omega
  51. exact_mod_cast this
  52. have hstep : (480 : ℝ) ≤ ((|W g u| - (2 : ℤ) ^ d : ℤ) : ℝ) * (8 : ℝ) ^ 2 - (1 / 2 : ℝ) * (8 : ℝ) ^ 2 := by
  53. linarith
  54. exact lt_of_lt_of_le (by norm_num) (le_trans hstep hdef)
  55. push Not at hW0_ge8 hW_hi
  56. -- Step 4: Now `|W g 0| ≤ 7` and `∀ ω, |W g ω| ≤ 2^d + 7`! Split by parity of `wt g`!
  57. have hM16 : (16 : ℤ) ≤ (2 : ℤ) ^ d := by
  58. have : (2 : ℤ) ^ 4 ≤ (2 : ℤ) ^ d := pow_le_pow_right₀ (by decide) hd
  59. norm_num at this; exact this
  60. have h4M : (4 : ℤ) ∣ (2 : ℤ) ^ d := by
  61. have : (2 : ℤ) ^ d = 4 * (2 : ℤ) ^ (d - 2) := by
  62. calc (2 : ℤ) ^ d = (2 : ℤ) ^ (2 + (d - 2)) := by rw [Nat.add_sub_of_le (by omega)]
  63. _ = 4 * (2 : ℤ) ^ (d - 2) := by rw [pow_add]; norm_num
  64. exact ⟨(2 : ℤ) ^ (d - 2), this⟩
  65. rcases Nat.even_or_odd (wt g) with hev | hodd
  66. · -- EVEN WEIGHT: `4 ∣ W g ω` ⟹ `|W g 0| ≤ 4` and `∀ ω, |W g ω| ≤ 2^d + 4`!
  67. -- `even_weight_walsh_dichotomy` forces Subcase `Ib` (`∀ ω, 8 ∣ (W g ω - 4)` and `|W g 0| = 4`),
  68. -- eliminating balanced (`W g 0 = 0`) and Subcase `Ia` automatically!
  69. have h4 : ∀ ω : Vec (2 * d), (4 : ℤ) ∣ W g ω := four_dvd_W_of_even_wt (by omega) g hev
  70. have hW4 : ∀ ω : Vec (2 * d), |W g ω| ≤ (2 : ℤ) ^ d + 4 := fun ω => by
  71. rcases h4 ω with ⟨k, hk⟩; rcases h4M with ⟨q, hq⟩
  72. have h1 := abs_lt.mp (hW_hi ω); rw [abs_le]; omega
  73. have h0_le4 : |W g 0| ≤ 4 := by
  74. rcases h4 0 with ⟨k, hk⟩
  75. have h1 := abs_lt.mp hW0_ge8; rw [abs_le]; omega
  76. have hmod8 : ∀ ω : Vec (2 * d), (8 : ℤ) ∣ (W g ω - 4) :=
  77. even_weight_walsh_dichotomy hd g hev hW4 ⟨0, h0_le4⟩
  78. have hW0_4 : |W g 0| = 4 := by
  79. rcases hmod8 0 with ⟨k, hk⟩
  80. have h1 := abs_le.mp h0_le4
  81. have hk0 : k = 0 ∨ k = -1 := by omega
  82. rcases hk0 with rfl | rfl <;> (have : W g 0 = 4 ∨ W g 0 = -4 := by omega)
  83. · rcases this with h | h <;> simp [h]
  84. · rcases this with h | h <;> simp [h]
  85. exact e2n_minus_3_subcase_Ib_complete hd g hmod8 hW0_4 hW4 w hwP hwS
  86. · -- ODD WEIGHT: `4 ∣ (W g ω - 2)` ⟹ `|W g 0| ∈ {2, 6}` and `∀ ω, |W g ω| ≤ 2^d + 6`!
  87. have h4 : ∀ ω : Vec (2 * d), (4 : ℤ) ∣ (W g ω - 2) := W_mod_four_of_odd_wt (by omega) g hodd
  88. have hW6 : ∀ ω : Vec (2 * d), |W g ω| ≤ (2 : ℤ) ^ d + 6 := fun ω => by
  89. rcases h4 ω with ⟨k, hk⟩; rcases h4M with ⟨q, hq⟩
  90. have h1 := abs_lt.mp (hW_hi ω); rw [abs_le]; omega
  91. have h026 : |W g 0| = 2 ∨ |W g 0| = 6 := by
  92. rcases h4 0 with ⟨k, hk⟩
  93. have h1 := abs_lt.mp hW0_ge8
  94. have hk_cases : k = -2 ∨ k = -1 ∨ k = 0 ∨ k = 1 := by omega
  95. rcases hk_cases with rfl | rfl | rfl | rfl
  96. · right
  97. have hval : W g 0 = -6 := by omega
  98. rw [hval]; decide
  99. · left
  100. have hval : W g 0 = -2 := by omega
  101. rw [hval]; decide
  102. · left
  103. have hval : W g 0 = 2 := by omega
  104. rw [hval]; decide
  105. · right
  106. have hval : W g 0 = 6 := by omega
  107. rw [hval]; decide
  108. -- Apply `odd_weight_canonical_flip` to split Class `IIa` vs Class `IIb`!
  109. rcases odd_weight_canonical_flip (d := d) (by omega) g hodd with
  110. ⟨x₀, _, _, hIIa | ⟨hIIb_mod8, hIIb_props⟩⟩
  111. · exact e2n_minus_3_class_IIa_complete hd g x₀ hIIa h026 hW6 w hwP hwS
  112. · rcases hIIb_props ⟨by omega, h026, hW6⟩ with ⟨hW'0, hW'4⟩
  113. exact e2n_minus_3_class_IIb_complete hd g x₀ hIIb_mod8 hW'0 hW'4 w hwP hwS
  114. /-- **Corollary 1a (`L²` Form of Real-Valued `E_{2n-3}` Elimination for ALL `d ≥ 4`)**:
  115. No real vector `w ∈ 𝒫_d(8, 8)` (`d ≥ 4`) can satisfy `∑ z, (w z)^2 ≥ 64 * 2^{2d} - 448`. -/
  116. theorem e2n_minus_3_real_complete_l2 {d : ℕ} (hd : 4 ≤ d)
  117. (w : Vec (2 * d) → ℝ) (hwP : InPolytope d 8 8 w) :
  118. ∑ z : Vec (2 * d), (w z) ^ 2 < 64 * (2 : ℝ) ^ (2 * d) - 448 := by
  119. have h := e2n_minus_3_real_complete hd w hwP
  120. have h64 : ∑ _z : Vec (2 * d), (8 : ℝ) ^ 2 = 64 * (2 : ℝ) ^ (2 * d) := by
  121. rw [Finset.sum_const, Finset.card_univ, card_vec, nsmul_eq_mul, Nat.cast_pow, Nat.cast_ofNat]; ring
  122. rw [Finset.sum_sub_distrib, h64] at h; linarith
  123. /-- **Theorem 2 (Unified All-Dimensions Elimination of `E_{2n-3}` for EVERY `2n ≥ 12`, `d ≥ 3`)**:
  124. Unites Paper 8 (`d = 3`, `2n = 12`, `iis:2611.00058`, using even-lattice integrality for the
  125. three bent-ball families inside `|W g 0| ≤ 6`) and Paper 9 (`d ≥ 4`, `2n ≥ 14`, holding
  126. unconditionally over ALL real vectors `w ∈ 𝒫_d(8, 8)`):
  127. for EVERY `d ≥ 3` (`2n ≥ 12`) and EVERY even-integer vector `w ∈ 𝒫_d(8, 8) ∩ (2ℤ)^{2^{2d}}`,
  128. `448 < ∑ z : Vec (2 * d), ((8 : ℝ)^2 - (w z)^2)`. -/
  129. theorem e2n_minus_3_all_dimensions_complete {d : ℕ} (hd : 3 ≤ d)
  130. (w : Vec (2 * d) → ℝ) (hwP : InPolytope d 8 8 w) (heven : IsEvenInt w) :
  131. 448 < ∑ z : Vec (2 * d), ((8 : ℝ) ^ 2 - (w z) ^ 2) := by
  132. by_cases hd4 : 4 ≤ d
  133. · exact e2n_minus_3_real_complete hd4 w hwP
  134. · have hd3 : d = 3 := by omega
  135. subst hd3
  136. exact e9_complete_elimination w hwP heven
  137. /-- **Corollary 2a (`L²` Form of Unified All-Dimensions `E_{2n-3}` Elimination for EVERY `d ≥ 3`)**:
  138. For EVERY `d ≥ 3` (`2n ≥ 12`), no even-integer vector `w ∈ 𝒫_d(8, 8) ∩ (2ℤ)^{2^{2d}}` can
  139. satisfy `∑ z, (w z)^2 ≥ 64 * 2^{2d} - 448`. -/
  140. theorem e2n_minus_3_all_dimensions_l2 {d : ℕ} (hd : 3 ≤ d)
  141. (w : Vec (2 * d) → ℝ) (hwP : InPolytope d 8 8 w) (heven : IsEvenInt w) :
  142. ∑ z : Vec (2 * d), (w z) ^ 2 < 64 * (2 : ℝ) ^ (2 * d) - 448 := by
  143. have h := e2n_minus_3_all_dimensions_complete hd w hwP heven
  144. have h64 : ∑ _z : Vec (2 * d), (8 : ℝ) ^ 2 = 64 * (2 : ℝ) ^ (2 * d) := by
  145. rw [Finset.sum_const, Finset.card_univ, card_vec, nsmul_eq_mul, Nat.cast_pow, Nat.cast_ofNat]; ring
  146. rw [Finset.sum_sub_distrib, h64] at h; linarith
  147. end E2nMinus3