Lean / Reader
Lean reader

E9Elimination.lean

168 lines6 declarationsno sorryimports E9Elimination.NormalFlatL2 E9Elimination.ClassIbAndIIb E9Elimination.ClassIa E9Elimination.ClassIIa

Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports E9Elimination.NormalFlatL2, E9Elimination.ClassIbAndIIb, E9Elimination.ClassIa, E9Elimination.ClassIIa, 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.NormalFlatL2
  2. import E9Elimination.ClassIbAndIIb
  3. import E9Elimination.ClassIa
  4. import E9Elimination.ClassIIa
  5. /-!
  6. # Complete Unconditional Elimination of the `E₉` Flat Family for Dobbertin's Conjecture (`2n = 12`, `IIS-O-0250`)
  7. This top-level module exports the **headline theorems of Paper 8**, led immediately by
  8. `e9_complete_elimination` (with ZERO sign-pattern, bent-proximity, or normality assumptions):
  9. 1. **`e9_complete_elimination`**: For **EVERY** even-integer vector `w ∈ 𝒫_3(8, 8) ∩ (2ℤ)⁶⁴`
  10. (across ALL `2⁶⁴` sign patterns on `𝔽₂⁶`),
  11. `448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2)` (equivalently `∑ z, (w z)² < 3648`).
  12. This unconditionally eliminates the entire `E₉` flat family at `2n = 12` (`IIS-O-0250`).
  13. 2. **`e9_complete_elimination_l2`**: Equivalent `L²` upper-bound form `∑ z, (w z)² < 3648`.
  14. 3. **`class_Ib_exact_parabola_all_delta`**: Exact real-valued `d = 3` Sharp Parabola
  15. `∑ w² ≤ 56 K² + (7/8) Δ²` for EVERY Class `Ib` sign pattern and ALL `K, Δ ≥ 0`.
  16. 4. **`e9_single_flip_bent`** *(explicitly crediting `@chatgpt-dot-review`, `iis:2611.00036`)*:
  17. Even-lattice elimination of every single-flip bent function `B ⊕ δ_{x₀}` on `𝔽₂⁶`.
  18. 5. **`e9_double_flip_bent`**: Even-lattice elimination of every double-flip bent function
  19. `B ⊕ δ_{x₁} ⊕ δ_{x₂}` (`W B 0 = 8`, `B x₁ = B x₂ = 0`).
  20. 6. **`e9_triple_flip_flat_bent`**: Even-lattice elimination of every constant-2-flat
  21. triple-flip bent function `B ⊕ 1_{p₁, p₂, p₃}` (`F₄ = {x₀, p₁, p₂, p₃} ⊆ B⁻¹(0)`).
  22. -/
  23. open Finset BigOperators
  24. namespace E9Elimination
  25. /-- **Theorem 1 (Complete Unconditional Elimination of `E₉` at `2n = 12`, `IIS-O-0250`)**:
  26. For EVERY vector `w : Vec 6 → ℝ` in the balanced bounded-spectrum polytope `𝒫_3(8, 8)`
  27. with even-integer coordinates (`w ∈ (2ℤ)⁶⁴`) — with ZERO sign-pattern, bent-proximity,
  28. or normal-flat hypotheses — the `L²` deficit strictly exceeds `448`:
  29. `448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2)`.
  30. Proof assembles the exhaustive spectral partition of all `2⁶⁴` sign patterns `g : 𝔽₂⁶ → 𝔽₂`:
  31. - `|W g 0| ≥ 8` (`zero_sum_deficit_ge`, real `w`, deficit `≥ 512`),
  32. - `‖W g‖_∞ ≥ 16` (`signed_quadrant_l2`, real `w`, deficit `≥ 480`),
  33. - `W g 0 = 0` (`e9_all_balanced_elimination`, real `w`, deficit `≥ 456`),
  34. - Class `Ib` (`class_Ib_6var_exact_parabola`, real `w`, deficit `≥ 576`),
  35. - Class `IIb` (`e9_class_IIb_elimination`, real `w`, deficit `≥ 480`),
  36. - Class `Ia` (`e9_class_Ia_elimination`, real `w` for `r ∈ {1, 2}`, even lattice for `r = 0`),
  37. - Class `IIa` (`e9_class_IIa_elimination`, real `w` for `m₁₆ ≥ 8`, `r = 3`, `r = 2`,
  38. and `r = 1, |W g 0| = 6`; even lattice for single-flip bent via `@chatgpt-dot-review`'s
  39. `iis:2611.00036` and constant-2-flat triple-flip bent). -/
  40. theorem e9_complete_elimination
  41. (w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w) :
  42. 448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2) := by
  43. classical
  44. -- Step 1: Extract a canonical sign pattern `g : Vec 6 → ZMod 2` with `HasSign g w`!
  45. rcases hasSign_of_real w with ⟨g, hwS⟩
  46. -- Step 2: Eliminate `|W g 0| ≥ 8` via `zero_sum_deficit_ge` (real `w`, deficit ≥ 512)!
  47. by_cases hW0_ge8 : 8 ≤ |W g 0|
  48. · have hdef := zero_sum_deficit_ge g 8 (by norm_num) w hwP.1 hwP.2.1 hwS
  49. have hR : (8 : ℝ) ≤ (|W g 0| : ℝ) := by exact_mod_cast hW0_ge8
  50. nlinarith
  51. -- Step 3: Eliminate `∃ ω, 16 ≤ |W g ω|` via `signed_quadrant_l2` (real `w`, deficit ≥ 480)!
  52. by_cases hW_ge16 : ∃ ω : Vec 6, 16 ≤ |W g ω|
  53. · rcases hW_ge16 with ⟨u, hu16⟩
  54. have hu0 : u ≠ 0 := fun h => by rw [h] at hu16; omega
  55. have hG_ge : |W g 0| ≤ |W g u| - 8 := by omega
  56. have hsq := signed_quadrant_l2 (d := 3) (by omega) g u hu0 (|W g u| - 8)
  57. (by norm_num) hG_ge 8 8 (by norm_num) (by norm_num) (by norm_num) w hwP hwS
  58. have hR : (16 : ℝ) ≤ |(W g u : ℝ)| := by exact_mod_cast hu16
  59. have h64 : ∑ _z : Vec 6, (8 : ℝ) ^ 2 = 4096 := by
  60. rw [Finset.sum_const, Finset.card_univ, card_vec]; norm_num
  61. rw [Finset.sum_sub_distrib, h64]
  62. norm_num at hsq; linarith
  63. push Not at hW0_ge8 hW_ge16
  64. -- Step 4: Now `|W g 0| ≤ 7` and `∀ ω, |W g ω| ≤ 15`! Split by parity of `wt g`!
  65. have hW0_eq := W_zero_eq g
  66. norm_num at hW0_eq
  67. rcases Nat.even_or_odd (wt g) with hev | hodd
  68. · -- EVEN WEIGHT: `4 ∣ W g ω` everywhere ⟹ `|W g 0| ∈ {0, 4}` and `∀ ω, |W g ω| ≤ 12`!
  69. have h4 : ∀ ω : Vec 6, (4 : ℤ) ∣ W g ω := four_dvd_W_of_even_wt (by omega) g hev
  70. have hW12 : ∀ ω : Vec 6, |W g ω| ≤ 12 := fun ω => by
  71. rcases h4 ω with ⟨k, hk⟩
  72. have h1 := abs_lt.mp (hW_ge16 ω)
  73. rw [abs_le]; omega
  74. have h0_cases : W g 0 = 0 ∨ |W g 0| = 4 := by
  75. rcases h4 0 with ⟨k, hk⟩
  76. have h1 := abs_lt.mp hW0_ge8
  77. have hk_cases : k = -1 ∨ k = 0 ∨ k = 1 := by omega
  78. rcases hk_cases with rfl | rfl | rfl <;> (rw [hk]; decide)
  79. rcases h0_cases with hbal | h04
  80. · -- Balanced (`W g 0 = 0`): Paper 7 `e9_all_balanced_elimination` (real `w`, deficit ≥ 456)!
  81. exact e9_all_balanced_elimination g hbal w hwP hwS
  82. · -- `|W g 0| = 4`: split Class `Ib` (`∀ ω, 8 ∣ (W g ω - 4)`) vs Class `Ia`!
  83. by_cases hIb : ∀ ω : Vec 6, (8 : ℤ) ∣ (W g ω - 4)
  84. · have hpar := class_Ib_6var_exact_parabola g hIb h04 hW12 8 8 (by norm_num) (by norm_num) w hwP hwS
  85. have h64 : ∑ _z : Vec 6, (8 : ℝ) ^ 2 = 4096 := by
  86. rw [Finset.sum_const, Finset.card_univ, card_vec]; norm_num
  87. rw [Finset.sum_sub_distrib, h64]; linarith
  88. · exact e9_class_Ia_elimination g hev h04 hW12 hIb w hwP heven hwS
  89. · -- ODD WEIGHT: `W g ω ≡ 2 [4]` everywhere ⟹ `|W g 0| ∈ {2, 6}` and `∀ ω, |W g ω| ≤ 14`!
  90. have h4 : ∀ ω : Vec 6, (4 : ℤ) ∣ (W g ω - 2) := W_mod_four_of_odd_wt (by omega) g hodd
  91. have hW14 : ∀ ω : Vec 6, |W g ω| ≤ 14 := fun ω => by
  92. rcases h4 ω with ⟨k, hk⟩
  93. have h1 := abs_lt.mp (hW_ge16 ω)
  94. rw [abs_le]; omega
  95. have h026 : |W g 0| = 2 ∨ |W g 0| = 6 := by
  96. rcases h4 0 with ⟨k, hk⟩
  97. have h1 := abs_lt.mp hW0_ge8
  98. have hk_cases : k = -2 ∨ k = -1 ∨ k = 0 ∨ k = 1 := by omega
  99. rcases hk_cases with rfl | rfl | rfl | rfl
  100. · have heq : W g 0 = -6 := by omega
  101. rw [heq]; decide
  102. · have heq : W g 0 = -2 := by omega
  103. rw [heq]; decide
  104. · have heq : W g 0 = 2 := by omega
  105. rw [heq]; decide
  106. · have heq : W g 0 = 6 := by omega
  107. rw [heq]; decide
  108. -- Apply `odd_weight_canonical_flip` (`d = 3 ≥ 2`) to split Class `IIa` vs Class `IIb`!
  109. rcases odd_weight_canonical_flip (d := 3) (by omega) g hodd with ⟨x₀, c₀, _, hIIa | ⟨hIIb_mod8, hIIb_props⟩⟩
  110. · exact e9_class_IIa_elimination g x₀ h026 hW14 hIIa w hwP heven hwS
  111. · rcases hIIb_props ⟨by omega, h026, by simpa using hW14⟩ with ⟨hW'0, hW'12⟩
  112. exact e9_class_IIb_elimination g x₀ hIIb_mod8 hW'0 (by simpa using hW'12) w hwP hwS
  113. /-- **Corollary 1a (`L²` Form of Complete `E₉` Elimination)**:
  114. No even-integer vector `w ∈ 𝒫_3(8, 8) ∩ (2ℤ)⁶⁴` can satisfy `∑ z, (w z)² ≥ 3648`. -/
  115. theorem e9_complete_elimination_l2
  116. (w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w) :
  117. ∑ z : Vec 6, (w z) ^ 2 < 3648 := by
  118. have h := e9_complete_elimination w hwP heven
  119. have h64 : ∑ _z : Vec 6, (8 : ℝ) ^ 2 = 4096 := by
  120. rw [Finset.sum_const, Finset.card_univ, card_vec]; norm_num
  121. rw [Finset.sum_sub_distrib, h64] at h; linarith
  122. /-- **Theorem 2 (Exact Real Sharp Parabola for Class `Ib`, ALL `Δ ≥ 0`)**:
  123. Every Class `Ib` sign pattern on `𝔽₂⁶` satisfies `∑ w² ≤ 56 K² + (7/8) Δ²` for all `K, Δ ≥ 0`. -/
  124. theorem class_Ib_exact_parabola_all_delta (g : Vec 6 → ZMod 2)
  125. (hmod8 : ∀ ω : Vec 6, (8 : ℤ) ∣ (W g ω - 4))
  126. (hW0 : |W g 0| = 4) (hW : ∀ ω : Vec 6, |W g ω| ≤ 12)
  127. (K Δ : ℝ) (hK : 0 ≤ K) (hΔ : 0 ≤ Δ)
  128. (w : Vec 6 → ℝ) (hwP : InPolytope 3 K Δ w) (hwS : HasSign g w) :
  129. ∑ z : Vec 6, (w z) ^ 2 ≤ 56 * K ^ 2 + (7 / 8 : ℝ) * Δ ^ 2 :=
  130. class_Ib_6var_exact_parabola g hmod8 hW0 hW K Δ hK hΔ w hwP hwS
  131. /-- **Theorem 3 (Single-Flip Bent Even-Lattice Elimination, crediting `@chatgpt-dot-review`, `iis:2611.00036`)**. -/
  132. theorem e9_single_flip_bent (B : Vec 6 → ZMod 2) (hB : IsBent (m := 3) B) (x₀ : Vec 6)
  133. (w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w)
  134. (hwS : HasSign (fun z => B z + if z = x₀ then 1 else 0) w) :
  135. 448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2) :=
  136. e9_single_flip_even_lattice B hB x₀ w hwP heven hwS
  137. /-- **Theorem 4 (Double-Flip Bent Even-Lattice Elimination)**. -/
  138. theorem e9_double_flip_bent (B : Vec 6 → ZMod 2) (hB : IsBent (m := 3) B) (hB0 : W B 0 = 8)
  139. (x₁ x₂ : Vec 6) (hne : x₁ ≠ x₂) (hx₁ : B x₁ = 0) (hx₂ : B x₂ = 0)
  140. (w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w)
  141. (hwS : HasSign (fun z => B z + (if z = x₁ then 1 else 0) + (if z = x₂ then 1 else 0)) w) :
  142. 448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2) :=
  143. e9_double_flip_even_lattice B hB hB0 x₁ x₂ hne hx₁ hx₂ w hwP heven hwS
  144. /-- **Theorem 5 (Constant-2-Flat Triple-Flip Bent Even-Lattice Elimination)**. -/
  145. theorem e9_triple_flip_flat_bent (B : Vec 6 → ZMod 2) (hB : IsBent (m := 3) B) (hB0 : W B 0 = 8)
  146. (x₀ p₁ p₂ p₃ : Vec 6) (hflat : p₁ + p₂ + p₃ = x₀)
  147. (h12 : p₁ ≠ p₂) (h13 : p₁ ≠ p₃) (h23 : p₂ ≠ p₃)
  148. (hx1 : x₀ ≠ p₁) (hx2 : x₀ ≠ p₂) (hx3 : x₀ ≠ p₃)
  149. (hBx₀ : B x₀ = 0) (hBp₁ : B p₁ = 0) (hBp₂ : B p₂ = 0) (hBp₃ : B p₃ = 0)
  150. (w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w)
  151. (hwS : HasSign (fun z => B z + (if z = p₁ ∨ z = p₂ ∨ z = p₃ then 1 else 0)) w) :
  152. 448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2) :=
  153. e9_triple_flip_flat_even_lattice B hB hB0 x₀ p₁ p₂ p₃ hflat h12 h13 h23 hx1 hx2 hx3
  154. hBx₀ hBp₁ hBp₂ hBp₃ w hwP heven hwS
  155. end E9Elimination