Lean / Reader
Lean readerE2nMinus3.lean
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.
import E9Eliminationimport E2nMinus3.BesselDeficitimport E2nMinus3.ClassIIbAllDimport E2nMinus3.ClassIIaAllD/-!# Complete Unconditional All-Dimensions Elimination of the `E_{2n-3}` Flat Family (`2n ≥ 12`, `IIS-O-0250`)This top-level module exports the **headline theorems of Paper 9**, proving two flagship results:1. **Sharp Real-Valued Elimination for ALL `2n ≥ 14` (`d = n - 3 ≥ 4`)** (`e2n_minus_3_real_complete`):For **EVERY** `d ≥ 4` and **EVERY** REAL vector `w ∈ 𝒫_d(8, 8) ⊂ ℝ^{2^{2d}}` — with **ZERO**even-lattice integrality (`IsEvenInt`), sign-pattern, bent-proximity, or normal-flat assumptions —`448 < ∑ z : Vec (2 * d), ((8 : ℝ)^2 - (w z)^2)`(equivalently `∑ z, (w z)^2 < 64 * 2^{2d} - 448`).2. **Unified All-Dimensions Elimination for ALL `2n ≥ 12` (`d = n - 3 ≥ 3`)** (`e2n_minus_3_all_dimensions_complete`):Uniting `e2n_minus_3_real_complete` (`d ≥ 4`, real `w`) with Paper 8's `e9_complete_elimination`(`d = 3`, even-integer lattice `w ∈ (2ℤ)^{64}` — where `2^d = 8` allows small bent-ball flipsto sit inside `|W g 0| ≤ 6`, marking a sharp dimensional phase transition between `d = 3` and`d ≥ 4` where `r ∈ {0, 1}` are empty and every class falls unconditionally over `ℝ`!):for **EVERY** `d ≥ 3` (`2n ≥ 12`) and **EVERY** even-integer vector `w ∈ 𝒫_d(8, 8) ∩ (2ℤ)^{2^{2d}}`,`448 < ∑ z : Vec (2 * d), ((8 : ℝ)^2 - (w z)^2)`.-/open Finset BigOperators E9Eliminationnamespace E2nMinus3/-- **Theorem 1 (Complete Unconditional Real-Valued Elimination of `E_{2n-3}` for ALL `2n ≥ 14`, `d ≥ 4`)**:For EVERY `d ≥ 4` (`2n = 2d + 6 ≥ 14`) and EVERY REAL vector `w : Vec (2*d) → ℝ` in the balancedbounded-spectrum polytope `𝒫_d(8, 8)` — with ZERO even-integer, sign-pattern, bent-proximity,or normal-flat assumptions — the `L²` deficit strictly exceeds `448`:`448 < ∑ z : Vec (2 * d), ((8 : ℝ)^2 - (w z)^2)`. -/theorem e2n_minus_3_real_complete {d : ℕ} (hd : 4 ≤ d)(w : Vec (2 * d) → ℝ) (hwP : InPolytope d 8 8 w) :448 < ∑ z : Vec (2 * d), ((8 : ℝ) ^ 2 - (w z) ^ 2) := byclassical-- Step 1: Extract a canonical sign pattern `g : Vec (2*d) → 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` (deficit ≥ 512 > 448)!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 `∃ ω, 2^d + 8 ≤ |W g ω|` via `signed_quadrant_l2` (deficit ≥ 480 > 448)!by_cases hW_hi : ∃ ω : Vec (2 * d), (2 : ℤ) ^ d + 8 ≤ |W g ω|· rcases hW_hi with ⟨u, hu_ge⟩have hM16 : (16 : ℤ) ≤ (2 : ℤ) ^ d := byhave : (2 : ℤ) ^ 4 ≤ (2 : ℤ) ^ d := pow_le_pow_right₀ (by decide) hdnorm_num at this; exact thishave hu0 : u ≠ 0 := fun h => by rw [h] at hu_ge; omegahave hG_ge : |W g 0| ≤ |W g u| - (2 : ℤ) ^ d := by omegahave hdef := signed_quadrant_l2 (d := d) (by omega) g u hu0 (|W g u| - (2 : ℤ) ^ d)(by omega) hG_ge 8 8 (by norm_num) (by norm_num) (by norm_num) w hwP hwShave hGR : (8 : ℝ) ≤ ((|W g u| - (2 : ℤ) ^ d : ℤ) : ℝ) := byhave : (8 : ℤ) ≤ |W g u| - (2 : ℤ) ^ d := by omegaexact_mod_cast thishave hstep : (480 : ℝ) ≤ ((|W g u| - (2 : ℤ) ^ d : ℤ) : ℝ) * (8 : ℝ) ^ 2 - (1 / 2 : ℝ) * (8 : ℝ) ^ 2 := bylinarithexact lt_of_lt_of_le (by norm_num) (le_trans hstep hdef)push Not at hW0_ge8 hW_hi-- Step 4: Now `|W g 0| ≤ 7` and `∀ ω, |W g ω| ≤ 2^d + 7`! Split by parity of `wt g`!have hM16 : (16 : ℤ) ≤ (2 : ℤ) ^ d := byhave : (2 : ℤ) ^ 4 ≤ (2 : ℤ) ^ d := pow_le_pow_right₀ (by decide) hdnorm_num at this; exact thishave h4M : (4 : ℤ) ∣ (2 : ℤ) ^ d := byhave : (2 : ℤ) ^ d = 4 * (2 : ℤ) ^ (d - 2) := bycalc (2 : ℤ) ^ d = (2 : ℤ) ^ (2 + (d - 2)) := by rw [Nat.add_sub_of_le (by omega)]_ = 4 * (2 : ℤ) ^ (d - 2) := by rw [pow_add]; norm_numexact ⟨(2 : ℤ) ^ (d - 2), this⟩rcases Nat.even_or_odd (wt g) with hev | hodd· -- EVEN WEIGHT: `4 ∣ W g ω` ⟹ `|W g 0| ≤ 4` and `∀ ω, |W g ω| ≤ 2^d + 4`!-- `even_weight_walsh_dichotomy` forces Subcase `Ib` (`∀ ω, 8 ∣ (W g ω - 4)` and `|W g 0| = 4`),-- eliminating balanced (`W g 0 = 0`) and Subcase `Ia` automatically!have h4 : ∀ ω : Vec (2 * d), (4 : ℤ) ∣ W g ω := four_dvd_W_of_even_wt (by omega) g hevhave hW4 : ∀ ω : Vec (2 * d), |W g ω| ≤ (2 : ℤ) ^ d + 4 := fun ω => byrcases h4 ω with ⟨k, hk⟩; rcases h4M with ⟨q, hq⟩have h1 := abs_lt.mp (hW_hi ω); rw [abs_le]; omegahave h0_le4 : |W g 0| ≤ 4 := byrcases h4 0 with ⟨k, hk⟩have h1 := abs_lt.mp hW0_ge8; rw [abs_le]; omegahave hmod8 : ∀ ω : Vec (2 * d), (8 : ℤ) ∣ (W g ω - 4) :=even_weight_walsh_dichotomy hd g hev hW4 ⟨0, h0_le4⟩have hW0_4 : |W g 0| = 4 := byrcases hmod8 0 with ⟨k, hk⟩have h1 := abs_le.mp h0_le4have hk0 : k = 0 ∨ k = -1 := by omegarcases hk0 with rfl | rfl <;> (have : W g 0 = 4 ∨ W g 0 = -4 := by omega)· rcases this with h | h <;> simp [h]· rcases this with h | h <;> simp [h]exact e2n_minus_3_subcase_Ib_complete hd g hmod8 hW0_4 hW4 w hwP hwS· -- ODD WEIGHT: `4 ∣ (W g ω - 2)` ⟹ `|W g 0| ∈ {2, 6}` and `∀ ω, |W g ω| ≤ 2^d + 6`!have h4 : ∀ ω : Vec (2 * d), (4 : ℤ) ∣ (W g ω - 2) := W_mod_four_of_odd_wt (by omega) g hoddhave hW6 : ∀ ω : Vec (2 * d), |W g ω| ≤ (2 : ℤ) ^ d + 6 := fun ω => byrcases h4 ω with ⟨k, hk⟩; rcases h4M with ⟨q, hq⟩have h1 := abs_lt.mp (hW_hi ω); 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· righthave hval : W g 0 = -6 := by omegarw [hval]; decide· lefthave hval : W g 0 = -2 := by omegarw [hval]; decide· lefthave hval : W g 0 = 2 := by omegarw [hval]; decide· righthave hval : W g 0 = 6 := by omegarw [hval]; decide-- Apply `odd_weight_canonical_flip` to split Class `IIa` vs Class `IIb`!rcases odd_weight_canonical_flip (d := d) (by omega) g hodd with⟨x₀, _, _, hIIa | ⟨hIIb_mod8, hIIb_props⟩⟩· exact e2n_minus_3_class_IIa_complete hd g x₀ hIIa h026 hW6 w hwP hwS· rcases hIIb_props ⟨by omega, h026, hW6⟩ with ⟨hW'0, hW'4⟩exact e2n_minus_3_class_IIb_complete hd g x₀ hIIb_mod8 hW'0 hW'4 w hwP hwS/-- **Corollary 1a (`L²` Form of Real-Valued `E_{2n-3}` Elimination for ALL `d ≥ 4`)**:No real vector `w ∈ 𝒫_d(8, 8)` (`d ≥ 4`) can satisfy `∑ z, (w z)^2 ≥ 64 * 2^{2d} - 448`. -/theorem e2n_minus_3_real_complete_l2 {d : ℕ} (hd : 4 ≤ d)(w : Vec (2 * d) → ℝ) (hwP : InPolytope d 8 8 w) :∑ z : Vec (2 * d), (w z) ^ 2 < 64 * (2 : ℝ) ^ (2 * d) - 448 := byhave h := e2n_minus_3_real_complete hd w hwPhave h64 : ∑ _z : Vec (2 * d), (8 : ℝ) ^ 2 = 64 * (2 : ℝ) ^ (2 * d) := byrw [Finset.sum_const, Finset.card_univ, card_vec, nsmul_eq_mul, Nat.cast_pow, Nat.cast_ofNat]; ringrw [Finset.sum_sub_distrib, h64] at h; linarith/-- **Theorem 2 (Unified All-Dimensions Elimination of `E_{2n-3}` for EVERY `2n ≥ 12`, `d ≥ 3`)**:Unites Paper 8 (`d = 3`, `2n = 12`, `iis:2611.00058`, using even-lattice integrality for thethree bent-ball families inside `|W g 0| ≤ 6`) and Paper 9 (`d ≥ 4`, `2n ≥ 14`, holdingunconditionally over ALL real vectors `w ∈ 𝒫_d(8, 8)`):for EVERY `d ≥ 3` (`2n ≥ 12`) and EVERY even-integer vector `w ∈ 𝒫_d(8, 8) ∩ (2ℤ)^{2^{2d}}`,`448 < ∑ z : Vec (2 * d), ((8 : ℝ)^2 - (w z)^2)`. -/theorem e2n_minus_3_all_dimensions_complete {d : ℕ} (hd : 3 ≤ d)(w : Vec (2 * d) → ℝ) (hwP : InPolytope d 8 8 w) (heven : IsEvenInt w) :448 < ∑ z : Vec (2 * d), ((8 : ℝ) ^ 2 - (w z) ^ 2) := byby_cases hd4 : 4 ≤ d· exact e2n_minus_3_real_complete hd4 w hwP· have hd3 : d = 3 := by omegasubst hd3exact e9_complete_elimination w hwP heven/-- **Corollary 2a (`L²` Form of Unified All-Dimensions `E_{2n-3}` Elimination for EVERY `d ≥ 3`)**:For EVERY `d ≥ 3` (`2n ≥ 12`), no even-integer vector `w ∈ 𝒫_d(8, 8) ∩ (2ℤ)^{2^{2d}}` cansatisfy `∑ z, (w z)^2 ≥ 64 * 2^{2d} - 448`. -/theorem e2n_minus_3_all_dimensions_l2 {d : ℕ} (hd : 3 ≤ d)(w : Vec (2 * d) → ℝ) (hwP : InPolytope d 8 8 w) (heven : IsEvenInt w) :∑ z : Vec (2 * d), (w z) ^ 2 < 64 * (2 : ℝ) ^ (2 * d) - 448 := byhave h := e2n_minus_3_all_dimensions_complete hd w hwP hevenhave h64 : ∑ _z : Vec (2 * d), (8 : ℝ) ^ 2 = 64 * (2 : ℝ) ^ (2 * d) := byrw [Finset.sum_const, Finset.card_univ, card_vec, nsmul_eq_mul, Nat.cast_pow, Nat.cast_ofNat]; ringrw [Finset.sum_sub_distrib, h64] at h; linarithend E2nMinus3