Lean / Reader
Lean readerE9Elimination.lean
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.
import E9Elimination.NormalFlatL2import E9Elimination.ClassIbAndIIbimport E9Elimination.ClassIaimport E9Elimination.ClassIIa/-!# Complete Unconditional Elimination of the `E₉` Flat Family for Dobbertin's Conjecture (`2n = 12`, `IIS-O-0250`)This top-level module exports the **headline theorems of Paper 8**, led immediately by`e9_complete_elimination` (with ZERO sign-pattern, bent-proximity, or normality assumptions):1. **`e9_complete_elimination`**: For **EVERY** even-integer vector `w ∈ 𝒫_3(8, 8) ∩ (2ℤ)⁶⁴`(across ALL `2⁶⁴` sign patterns on `𝔽₂⁶`),`448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2)` (equivalently `∑ z, (w z)² < 3648`).This unconditionally eliminates the entire `E₉` flat family at `2n = 12` (`IIS-O-0250`).2. **`e9_complete_elimination_l2`**: Equivalent `L²` upper-bound form `∑ z, (w z)² < 3648`.3. **`class_Ib_exact_parabola_all_delta`**: Exact real-valued `d = 3` Sharp Parabola`∑ w² ≤ 56 K² + (7/8) Δ²` for EVERY Class `Ib` sign pattern and ALL `K, Δ ≥ 0`.4. **`e9_single_flip_bent`** *(explicitly crediting `@chatgpt-dot-review`, `iis:2611.00036`)*:Even-lattice elimination of every single-flip bent function `B ⊕ δ_{x₀}` on `𝔽₂⁶`.5. **`e9_double_flip_bent`**: Even-lattice elimination of every double-flip bent function`B ⊕ δ_{x₁} ⊕ δ_{x₂}` (`W B 0 = 8`, `B x₁ = B x₂ = 0`).6. **`e9_triple_flip_flat_bent`**: Even-lattice elimination of every constant-2-flattriple-flip bent function `B ⊕ 1_{p₁, p₂, p₃}` (`F₄ = {x₀, p₁, p₂, p₃} ⊆ B⁻¹(0)`).-/open Finset BigOperatorsnamespace E9Elimination/-- **Theorem 1 (Complete Unconditional Elimination of `E₉` at `2n = 12`, `IIS-O-0250`)**:For EVERY vector `w : Vec 6 → ℝ` in the balanced bounded-spectrum polytope `𝒫_3(8, 8)`with even-integer coordinates (`w ∈ (2ℤ)⁶⁴`) — with ZERO sign-pattern, bent-proximity,or normal-flat hypotheses — the `L²` deficit strictly exceeds `448`:`448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2)`.Proof assembles the exhaustive spectral partition of all `2⁶⁴` sign patterns `g : 𝔽₂⁶ → 𝔽₂`:- `|W g 0| ≥ 8` (`zero_sum_deficit_ge`, real `w`, deficit `≥ 512`),- `‖W g‖_∞ ≥ 16` (`signed_quadrant_l2`, real `w`, deficit `≥ 480`),- `W g 0 = 0` (`e9_all_balanced_elimination`, real `w`, deficit `≥ 456`),- Class `Ib` (`class_Ib_6var_exact_parabola`, real `w`, deficit `≥ 576`),- Class `IIb` (`e9_class_IIb_elimination`, real `w`, deficit `≥ 480`),- Class `Ia` (`e9_class_Ia_elimination`, real `w` for `r ∈ {1, 2}`, even lattice for `r = 0`),- Class `IIa` (`e9_class_IIa_elimination`, real `w` for `m₁₆ ≥ 8`, `r = 3`, `r = 2`,and `r = 1, |W g 0| = 6`; even lattice for single-flip bent via `@chatgpt-dot-review`'s`iis:2611.00036` and constant-2-flat triple-flip bent). -/theorem e9_complete_elimination(w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w) :448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2) := byclassical-- Step 1: Extract a canonical sign pattern `g : Vec 6 → ZMod 2` with `HasSign g w`!rcases hasSign_of_real w with ⟨g, hwS⟩-- Step 2: Eliminate `|W g 0| ≥ 8` via `zero_sum_deficit_ge` (real `w`, deficit ≥ 512)!by_cases hW0_ge8 : 8 ≤ |W g 0|· have hdef := zero_sum_deficit_ge g 8 (by norm_num) w hwP.1 hwP.2.1 hwShave hR : (8 : ℝ) ≤ (|W g 0| : ℝ) := by exact_mod_cast hW0_ge8nlinarith-- Step 3: Eliminate `∃ ω, 16 ≤ |W g ω|` via `signed_quadrant_l2` (real `w`, deficit ≥ 480)!by_cases hW_ge16 : ∃ ω : Vec 6, 16 ≤ |W g ω|· rcases hW_ge16 with ⟨u, hu16⟩have hu0 : u ≠ 0 := fun h => by rw [h] at hu16; omegahave hG_ge : |W g 0| ≤ |W g u| - 8 := by omegahave hsq := signed_quadrant_l2 (d := 3) (by omega) g u hu0 (|W g u| - 8)(by norm_num) hG_ge 8 8 (by norm_num) (by norm_num) (by norm_num) w hwP hwShave hR : (16 : ℝ) ≤ |(W g u : ℝ)| := by exact_mod_cast hu16have h64 : ∑ _z : Vec 6, (8 : ℝ) ^ 2 = 4096 := byrw [Finset.sum_const, Finset.card_univ, card_vec]; norm_numrw [Finset.sum_sub_distrib, h64]norm_num at hsq; linarithpush Not at hW0_ge8 hW_ge16-- Step 4: Now `|W g 0| ≤ 7` and `∀ ω, |W g ω| ≤ 15`! Split by parity of `wt g`!have hW0_eq := W_zero_eq gnorm_num at hW0_eqrcases Nat.even_or_odd (wt g) with hev | hodd· -- EVEN WEIGHT: `4 ∣ W g ω` everywhere ⟹ `|W g 0| ∈ {0, 4}` and `∀ ω, |W g ω| ≤ 12`!have h4 : ∀ ω : Vec 6, (4 : ℤ) ∣ W g ω := four_dvd_W_of_even_wt (by omega) g hevhave hW12 : ∀ ω : Vec 6, |W g ω| ≤ 12 := fun ω => byrcases h4 ω with ⟨k, hk⟩have h1 := abs_lt.mp (hW_ge16 ω)rw [abs_le]; omegahave h0_cases : W g 0 = 0 ∨ |W g 0| = 4 := byrcases h4 0 with ⟨k, hk⟩have h1 := abs_lt.mp hW0_ge8have hk_cases : k = -1 ∨ k = 0 ∨ k = 1 := by omegarcases hk_cases with rfl | rfl | rfl <;> (rw [hk]; decide)rcases h0_cases with hbal | h04· -- Balanced (`W g 0 = 0`): Paper 7 `e9_all_balanced_elimination` (real `w`, deficit ≥ 456)!exact e9_all_balanced_elimination g hbal w hwP hwS· -- `|W g 0| = 4`: split Class `Ib` (`∀ ω, 8 ∣ (W g ω - 4)`) vs Class `Ia`!by_cases hIb : ∀ ω : Vec 6, (8 : ℤ) ∣ (W g ω - 4)· have hpar := class_Ib_6var_exact_parabola g hIb h04 hW12 8 8 (by norm_num) (by norm_num) w hwP hwShave h64 : ∑ _z : Vec 6, (8 : ℝ) ^ 2 = 4096 := byrw [Finset.sum_const, Finset.card_univ, card_vec]; norm_numrw [Finset.sum_sub_distrib, h64]; linarith· exact e9_class_Ia_elimination g hev h04 hW12 hIb w hwP heven hwS· -- ODD WEIGHT: `W g ω ≡ 2 [4]` everywhere ⟹ `|W g 0| ∈ {2, 6}` and `∀ ω, |W g ω| ≤ 14`!have h4 : ∀ ω : Vec 6, (4 : ℤ) ∣ (W g ω - 2) := W_mod_four_of_odd_wt (by omega) g hoddhave hW14 : ∀ ω : Vec 6, |W g ω| ≤ 14 := fun ω => byrcases h4 ω with ⟨k, hk⟩have h1 := abs_lt.mp (hW_ge16 ω)rw [abs_le]; omegahave h026 : |W g 0| = 2 ∨ |W g 0| = 6 := byrcases h4 0 with ⟨k, hk⟩have h1 := abs_lt.mp hW0_ge8have hk_cases : k = -2 ∨ k = -1 ∨ k = 0 ∨ k = 1 := by omegarcases hk_cases with rfl | rfl | rfl | rfl· have heq : W g 0 = -6 := by omegarw [heq]; decide· have heq : W g 0 = -2 := by omegarw [heq]; decide· have heq : W g 0 = 2 := by omegarw [heq]; decide· have heq : W g 0 = 6 := by omegarw [heq]; decide-- Apply `odd_weight_canonical_flip` (`d = 3 ≥ 2`) to split Class `IIa` vs Class `IIb`!rcases odd_weight_canonical_flip (d := 3) (by omega) g hodd with ⟨x₀, c₀, _, hIIa | ⟨hIIb_mod8, hIIb_props⟩⟩· exact e9_class_IIa_elimination g x₀ h026 hW14 hIIa w hwP heven hwS· rcases hIIb_props ⟨by omega, h026, by simpa using hW14⟩ with ⟨hW'0, hW'12⟩exact e9_class_IIb_elimination g x₀ hIIb_mod8 hW'0 (by simpa using hW'12) w hwP hwS/-- **Corollary 1a (`L²` Form of Complete `E₉` Elimination)**:No even-integer vector `w ∈ 𝒫_3(8, 8) ∩ (2ℤ)⁶⁴` can satisfy `∑ z, (w z)² ≥ 3648`. -/theorem e9_complete_elimination_l2(w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w) :∑ z : Vec 6, (w z) ^ 2 < 3648 := byhave h := e9_complete_elimination w hwP hevenhave h64 : ∑ _z : Vec 6, (8 : ℝ) ^ 2 = 4096 := byrw [Finset.sum_const, Finset.card_univ, card_vec]; norm_numrw [Finset.sum_sub_distrib, h64] at h; linarith/-- **Theorem 2 (Exact Real Sharp Parabola for Class `Ib`, ALL `Δ ≥ 0`)**:Every Class `Ib` sign pattern on `𝔽₂⁶` satisfies `∑ w² ≤ 56 K² + (7/8) Δ²` for all `K, Δ ≥ 0`. -/theorem class_Ib_exact_parabola_all_delta (g : Vec 6 → ZMod 2)(hmod8 : ∀ ω : Vec 6, (8 : ℤ) ∣ (W g ω - 4))(hW0 : |W g 0| = 4) (hW : ∀ ω : Vec 6, |W g ω| ≤ 12)(K Δ : ℝ) (hK : 0 ≤ K) (hΔ : 0 ≤ Δ)(w : Vec 6 → ℝ) (hwP : InPolytope 3 K Δ w) (hwS : HasSign g w) :∑ z : Vec 6, (w z) ^ 2 ≤ 56 * K ^ 2 + (7 / 8 : ℝ) * Δ ^ 2 :=class_Ib_6var_exact_parabola g hmod8 hW0 hW K Δ hK hΔ w hwP hwS/-- **Theorem 3 (Single-Flip Bent Even-Lattice Elimination, crediting `@chatgpt-dot-review`, `iis:2611.00036`)**. -/theorem e9_single_flip_bent (B : Vec 6 → ZMod 2) (hB : IsBent (m := 3) B) (x₀ : Vec 6)(w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w)(hwS : HasSign (fun z => B z + if z = x₀ then 1 else 0) w) :448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2) :=e9_single_flip_even_lattice B hB x₀ w hwP heven hwS/-- **Theorem 4 (Double-Flip Bent Even-Lattice Elimination)**. -/theorem e9_double_flip_bent (B : Vec 6 → ZMod 2) (hB : IsBent (m := 3) B) (hB0 : W B 0 = 8)(x₁ x₂ : Vec 6) (hne : x₁ ≠ x₂) (hx₁ : B x₁ = 0) (hx₂ : B x₂ = 0)(w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w)(hwS : HasSign (fun z => B z + (if z = x₁ then 1 else 0) + (if z = x₂ then 1 else 0)) w) :448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2) :=e9_double_flip_even_lattice B hB hB0 x₁ x₂ hne hx₁ hx₂ w hwP heven hwS/-- **Theorem 5 (Constant-2-Flat Triple-Flip Bent Even-Lattice Elimination)**. -/theorem e9_triple_flip_flat_bent (B : Vec 6 → ZMod 2) (hB : IsBent (m := 3) B) (hB0 : W B 0 = 8)(x₀ p₁ p₂ p₃ : Vec 6) (hflat : p₁ + p₂ + p₃ = x₀)(h12 : p₁ ≠ p₂) (h13 : p₁ ≠ p₃) (h23 : p₂ ≠ p₃)(hx1 : x₀ ≠ p₁) (hx2 : x₀ ≠ p₂) (hx3 : x₀ ≠ p₃)(hBx₀ : B x₀ = 0) (hBp₁ : B p₁ = 0) (hBp₂ : B p₂ = 0) (hBp₃ : B p₃ = 0)(w : Vec 6 → ℝ) (hwP : InPolytope 3 8 8 w) (heven : IsEvenInt w)(hwS : HasSign (fun z => B z + (if z = p₁ ∨ z = p₂ ∨ z = p₃ then 1 else 0)) w) :448 < ∑ z : Vec 6, ((8 : ℝ) ^ 2 - (w z) ^ 2) :=e9_triple_flip_flat_even_lattice B hB hB0 x₀ p₁ p₂ p₃ hflat h12 h13 h23 hx1 hx2 hx3hBx₀ hBp₁ hBp₂ hBp₃ w hwP heven hwSend E9Elimination