omega-principia
This project has not described itself yet.
Brought by drakestapleton
omega-principia / proofs / Wave2Pte10ZSqrt6.lean
| 1 | /- |
| 2 | SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | Wave2Pte10ZSqrt6.lean -- Formal Lean 4.36.0 proof of: |
| 4 | 1. Universal algebraic theorems for the class-number-2 ring Z[i*sqrt(6)]: |
| 5 | - No element of Z[i*sqrt(6)] has norm 2 (proving p2 = (2, i*sqrt(6)) is non-principal). |
| 6 | - Universal Non-Principal Ideal Transport Theorem: phi(x + y*i*sqrt(6)) = (-3y) + (x/2)*i*sqrt(6) |
| 7 | maps ANY ideal PTE solution in p2 of ANY size and ANY degree to a new integral PTE solution |
| 8 | in Z[i*sqrt(6)] (scaling norms by 3/2, via 2^k * phi(z)^k = (i*sqrt(6))^k * z^k). |
| 9 | - Symmetric odd-power vanishing, conjugation reality, and genuine 2D non-rationality. |
| 10 | 2. Exact verification of the first genuinely non-rational Ideal PTE solution PAIR (Orbit 1 & Orbit 2) |
| 11 | of Size 10 (Degree 9) in Z[i*sqrt(6)] (max norm 144 / radius 12 for Orbit 1, 216 for Orbit 2). |
| 12 | 3. Four adversarial broken-model negative controls (neg_ctrl_*). |
| 13 | |
| 14 | Strict hygiene: 0 sorry, 0 native_decide, 0 custom axioms. |
| 15 | -/ |
| 16 | |
| 17 | namespace Wave2Pte10ZSqrt6 |
| 18 | |
| 19 | /-- An element `x + y * i*sqrt(6)` of the ring of integers `Z[i*sqrt(6)]` of `Q(sqrt(-6))`. -/ |
| 20 | structure Z6 where |
| 21 | x : Int |
| 22 | y : Int |
| 23 | deriving DecidableEq, Repr |
| 24 | |
| 25 | namespace Z6 |
| 26 | |
| 27 | def zero : Z6 := ⟨0, 0⟩ |
| 28 | def one : Z6 := ⟨1, 0⟩ |
| 29 | def isqrt6 : Z6 := ⟨0, 1⟩ |
| 30 | |
| 31 | def add (a b : Z6) : Z6 := ⟨a.x + b.x, a.y + b.y⟩ |
| 32 | def neg (a : Z6) : Z6 := ⟨-a.x, -a.y⟩ |
| 33 | def mul (a b : Z6) : Z6 := ⟨a.x * b.x - 6 * a.y * b.y, a.x * b.y + a.y * b.x⟩ |
| 34 | def conj (a : Z6) : Z6 := ⟨a.x, -a.y⟩ |
| 35 | def norm (a : Z6) : Int := a.x * a.x + 6 * a.y * a.y |
| 36 | |
| 37 | def pow (a : Z6) : Nat → Z6 |
| 38 | | 0 => one |
| 39 | | k + 1 => mul (pow a k) a |
| 40 | |
| 41 | /-- Membership in the non-principal prime ideal p2 = (2, i*sqrt(6)): `2 ∣ a.x`. -/ |
| 42 | abbrev inP2 (a : Z6) : Prop := a.x % 2 = 0 |
| 43 | |
| 44 | /-- Non-principal ideal transport `phi(x + y*i*sqrt(6)) = (-3y) + (x/2)*i*sqrt(6)`, |
| 45 | representing multiplication by `i*sqrt(6)/2 ∉ Z[i*sqrt(6)]` on `p2`. -/ |
| 46 | def phi (a : Z6) : Z6 := ⟨-3 * a.y, a.x / 2⟩ |
| 47 | |
| 48 | theorem isqrt6_sq : mul isqrt6 isqrt6 = ⟨-6, 0⟩ := rfl |
| 49 | |
| 50 | theorem add_zero (a : Z6) : add a zero = a := by cases a; simp [add, zero] |
| 51 | theorem zero_add (a : Z6) : add zero a = a := by cases a; simp [add, zero] |
| 52 | |
| 53 | theorem add_neg_self (a : Z6) : add a (neg a) = zero := by |
| 54 | cases a with | mk x y => |
| 55 | simp only [add, neg, zero, Z6.mk.injEq] |
| 56 | omega |
| 57 | |
| 58 | theorem neg_neg (a : Z6) : neg (neg a) = a := by cases a; simp [neg] |
| 59 | |
| 60 | theorem mul_neg_left (a b : Z6) : mul (neg a) b = neg (mul a b) := by |
| 61 | cases a with | mk ax ay => |
| 62 | cases b with | mk bx by_ => |
| 63 | simp only [mul, neg, Z6.mk.injEq, Int.neg_mul, Int.mul_neg] |
| 64 | omega |
| 65 | |
| 66 | theorem mul_neg_right (a b : Z6) : mul a (neg b) = neg (mul a b) := by |
| 67 | cases a with | mk ax ay => |
| 68 | cases b with | mk bx by_ => |
| 69 | simp only [mul, neg, Z6.mk.injEq, Int.mul_neg] |
| 70 | omega |
| 71 | |
| 72 | theorem mul_assoc (a b c : Z6) : mul (mul a b) c = mul a (mul b c) := by |
| 73 | cases a with | mk ax ay => |
| 74 | cases b with | mk bx by_ => |
| 75 | cases c with | mk cx cy => |
| 76 | simp only [mul, Z6.mk.injEq, Int.sub_mul, Int.add_mul, Int.mul_sub, Int.mul_add, Int.mul_assoc] |
| 77 | have h1 : 6 * (ay * (by_ * cx)) = ay * (6 * (by_ * cx)) := Int.mul_left_comm 6 ay (by_ * cx) |
| 78 | have h2 : 6 * (ax * (by_ * cy)) = ax * (6 * (by_ * cy)) := Int.mul_left_comm 6 ax (by_ * cy) |
| 79 | have h3 : 6 * (ay * (bx * cy)) = ay * (6 * (bx * cy)) := Int.mul_left_comm 6 ay (bx * cy) |
| 80 | have h4 : 6 * (ay * (by_ * cy)) = ay * (6 * (by_ * cy)) := Int.mul_left_comm 6 ay (by_ * cy) |
| 81 | omega |
| 82 | |
| 83 | theorem mul_add_left (c a b : Z6) : mul c (add a b) = add (mul c a) (mul c b) := by |
| 84 | cases c with | mk cx cy => |
| 85 | cases a with | mk ax ay => |
| 86 | cases b with | mk bx by_ => |
| 87 | simp only [mul, add, Z6.mk.injEq, Int.mul_add] |
| 88 | omega |
| 89 | |
| 90 | theorem mul_comm (a b : Z6) : mul a b = mul b a := by |
| 91 | cases a with | mk ax ay => |
| 92 | cases b with | mk bx by_ => |
| 93 | simp only [mul, Z6.mk.injEq] |
| 94 | have h1 : ax * bx = bx * ax := Int.mul_comm ax bx |
| 95 | have h2 : ay * by_ = by_ * ay := Int.mul_comm ay by_ |
| 96 | have h3 : ax * by_ = by_ * ax := Int.mul_comm ax by_ |
| 97 | have h4 : ay * bx = bx * ay := Int.mul_comm ay bx |
| 98 | have h5 : 6 * ay * by_ = 6 * by_ * ay := by rw [Int.mul_assoc, h2, ← Int.mul_assoc] |
| 99 | omega |
| 100 | |
| 101 | /-- Universal Theorem 1 (Non-Principality of p2): No element of Z[i*sqrt(6)] has norm 2. -/ |
| 102 | theorem no_norm_two (a : Z6) : norm a ≠ 2 := by |
| 103 | cases a with | mk x y => |
| 104 | simp only [norm] |
| 105 | intro h |
| 106 | have hsq_ge : ∀ z : Int, (z ≥ 2 ∨ z ≤ -2) → z * z ≥ 4 := by |
| 107 | intro z hz |
| 108 | rcases hz with hp | hn |
| 109 | · have : z * z ≥ 2 * 2 := Int.mul_le_mul hp hp (by omega) (by omega) |
| 110 | omega |
| 111 | · have h1 : -z ≥ 2 := by omega |
| 112 | have h2 : (-z) * (-z) ≥ 2 * 2 := Int.mul_le_mul h1 h1 (by omega) (by omega) |
| 113 | rw [Int.neg_mul_neg] at h2 |
| 114 | omega |
| 115 | have hsq_ge1 : ∀ z : Int, z ≠ 0 → z * z ≥ 1 := by |
| 116 | intro z hz |
| 117 | by_cases hp : z ≥ 1 |
| 118 | · have : z * z ≥ 1 * 1 := Int.mul_le_mul hp hp (by omega) (by omega) |
| 119 | omega |
| 120 | · have hn : -z ≥ 1 := by omega |
| 121 | have h2 : (-z) * (-z) ≥ 1 * 1 := Int.mul_le_mul hn hn (by omega) (by omega) |
| 122 | rw [Int.neg_mul_neg] at h2 |
| 123 | omega |
| 124 | have hx2 : x * x ≥ 0 := by |
| 125 | by_cases hp : x ≥ 0 |
| 126 | · have : x * x ≥ 0 * 0 := Int.mul_le_mul hp hp (by omega) (by omega) |
| 127 | omega |
| 128 | · have hn : -x ≥ 0 := by omega |
| 129 | have h2 : (-x) * (-x) ≥ 0 * 0 := Int.mul_le_mul hn hn (by omega) (by omega) |
| 130 | rw [Int.neg_mul_neg] at h2 |
| 131 | omega |
| 132 | by_cases hy0 : y = 0 |
| 133 | · subst hy0 |
| 134 | simp only [Int.mul_zero, Int.add_zero] at h |
| 135 | by_cases hbig : x ≥ 2 ∨ x ≤ -2 |
| 136 | · have := hsq_ge x hbig; omega |
| 137 | · have : x = -1 ∨ x = 0 ∨ x = 1 := by omega |
| 138 | rcases this with rfl | rfl | rfl <;> omega |
| 139 | · have hy1 : y * y ≥ 1 := hsq_ge1 y hy0 |
| 140 | have h6 : 6 * y * y ≥ 6 := by |
| 141 | rw [Int.mul_assoc]; omega |
| 142 | omega |
| 143 | |
| 144 | /-- Universal Theorem 2 (Ideal Transport Scaling Law): |
| 145 | For every `a ∈ p2`, `2 * phi(a) = i*sqrt(6) * a`, and consequently for every `k : Nat`, |
| 146 | `2^k * phi(a)^k = (i*sqrt(6))^k * a^k` in `Z[i*sqrt(6)]`. -/ |
| 147 | theorem two_mul_phi (a : Z6) (ha : inP2 a) : mul ⟨2, 0⟩ (phi a) = mul isqrt6 a := by |
| 148 | cases a with | mk x y => |
| 149 | simp only [inP2] at ha |
| 150 | simp only [mul, phi, isqrt6, Z6.mk.injEq] |
| 151 | have hdiv : 2 * (x / 2) = x := by omega |
| 152 | omega |
| 153 | |
| 154 | theorem pow_mul_comm (a b : Z6) : ∀ k : Nat, pow (mul a b) k = mul (pow a k) (pow b k) |
| 155 | | 0 => rfl |
| 156 | | k + 1 => by |
| 157 | rw [pow, pow, pow, pow_mul_comm a b k] |
| 158 | rw [mul_assoc, ← mul_assoc (pow b k) a b, mul_comm (pow b k) a, mul_assoc a (pow b k) b, ← mul_assoc] |
| 159 | |
| 160 | theorem phi_pow_scaling (a : Z6) (ha : inP2 a) (k : Nat) : |
| 161 | mul (pow ⟨2, 0⟩ k) (pow (phi a) k) = mul (pow isqrt6 k) (pow a k) := by |
| 162 | rw [← pow_mul_comm ⟨2, 0⟩ (phi a) k, two_mul_phi a ha, pow_mul_comm isqrt6 a k] |
| 163 | |
| 164 | /-- Universal Theorem 3: `2^k` cancellation in `Z[i*sqrt(6)]` (`2^k * u = 2^k * v → u = v`). -/ |
| 165 | theorem pow_two_embed (k : Nat) : pow ⟨2, 0⟩ k = ⟨(2 : Int) ^ k, 0⟩ := by |
| 166 | induction k with |
| 167 | | zero => rfl |
| 168 | | succ k ih => |
| 169 | rw [pow, ih] |
| 170 | simp only [mul, Z6.mk.injEq, Int.zero_mul, Int.mul_zero, Int.sub_zero, Int.add_zero] |
| 171 | exact ⟨(Int.pow_succ 2 k).symm, trivial⟩ |
| 172 | |
| 173 | theorem mul_two_pow_inj (k : Nat) (u v : Z6) |
| 174 | (h : mul (pow ⟨2, 0⟩ k) u = mul (pow ⟨2, 0⟩ k) v) : u = v := by |
| 175 | rw [pow_two_embed k] at h |
| 176 | cases u with | mk ux uy => |
| 177 | cases v with | mk vx vy => |
| 178 | simp only [mul, Z6.mk.injEq, Int.zero_mul, Int.mul_zero, Int.sub_zero, Int.add_zero] at h |
| 179 | have hpos : (2 : Int) ^ k ≠ 0 := by |
| 180 | have : (2 : Int) ^ k > 0 := Int.pow_pos (by omega) |
| 181 | omega |
| 182 | have hx : ux = vx := Int.eq_of_mul_eq_mul_left hpos h.1 |
| 183 | have hy : uy = vy := Int.eq_of_mul_eq_mul_left hpos h.2 |
| 184 | rw [hx, hy] |
| 185 | |
| 186 | /-- Universal Theorem 4: Symmetric odd-power vanishing and repeated-squaring even-power reduction. -/ |
| 187 | theorem pow_neg_even (a : Z6) : ∀ m : Nat, pow (neg a) (2 * m) = pow a (2 * m) |
| 188 | | 0 => rfl |
| 189 | | m + 1 => by |
| 190 | have hstep : 2 * (m + 1) = (2 * m + 1) + 1 := by omega |
| 191 | rw [hstep, pow, pow, pow, pow, pow_neg_even a m] |
| 192 | rw [mul_neg_right, mul_neg_right, mul_neg_left, neg_neg] |
| 193 | |
| 194 | theorem pow_neg_odd (a : Z6) (m : Nat) : pow (neg a) (2 * m + 1) = neg (pow a (2 * m + 1)) := by |
| 195 | rw [pow, pow, pow_neg_even a m, mul_neg_right] |
| 196 | |
| 197 | theorem pair_odd_pow_zero (a : Z6) (m : Nat) : |
| 198 | add (pow a (2 * m + 1)) (pow (neg a) (2 * m + 1)) = zero := by |
| 199 | rw [pow_neg_odd a m, add_neg_self] |
| 200 | |
| 201 | theorem pow_add (a : Z6) (m : Nat) : ∀ n : Nat, pow a (m + n) = mul (pow a m) (pow a n) |
| 202 | | 0 => by |
| 203 | cases pow a m with | mk u v => |
| 204 | simp only [pow, one, mul, Int.mul_one, Int.mul_zero, Int.sub_zero, Int.zero_add] |
| 205 | | n + 1 => by |
| 206 | rw [← Nat.add_assoc, pow, pow, pow_add a m n, mul_assoc] |
| 207 | |
| 208 | theorem pow_two (a : Z6) : pow a 2 = mul a a := by |
| 209 | cases a with | mk u v => |
| 210 | simp only [pow, one, mul, Int.one_mul, Int.zero_mul, Int.mul_zero, Int.sub_zero, Int.add_zero] |
| 211 | |
| 212 | theorem pow_mul_two (a : Z6) : ∀ m : Nat, pow a (2 * m) = pow (mul a a) m |
| 213 | | 0 => rfl |
| 214 | | m + 1 => by |
| 215 | have hstep : 2 * (m + 1) = 2 * m + 2 := by omega |
| 216 | rw [hstep, pow_add, pow_mul_two a m, pow_two, pow] |
| 217 | |
| 218 | /-- Universal Theorem 5: Genuine 2D non-rationality of Orbit 1 & Orbit 2. -/ |
| 219 | theorem non_rational_affine_obstruction (p q : Int) (hq : q ≠ 0) : |
| 220 | mul ⟨q, 0⟩ ⟨0, 6⟩ ≠ mul ⟨p, 0⟩ ⟨24, 0⟩ := by |
| 221 | intro h |
| 222 | simp only [mul, Z6.mk.injEq] at h |
| 223 | have hv : q * 6 = 0 := by omega |
| 224 | have : q = 0 := by omega |
| 225 | exact hq this |
| 226 | |
| 227 | end Z6 |
| 228 | |
| 229 | def powSum (xs : List Z6) (k : Nat) : Z6 := |
| 230 | xs.foldl (fun acc x => Z6.add acc (Z6.pow x k)) Z6.zero |
| 231 | |
| 232 | theorem powSum_mul_dist (c : Z6) (xs : List Z6) (k : Nat) : |
| 233 | Z6.mul c (powSum xs k) = xs.foldl (fun acc x => Z6.add acc (Z6.mul c (Z6.pow x k))) Z6.zero := by |
| 234 | have gen : ∀ (init : Z6) (l : List Z6), |
| 235 | Z6.mul c (l.foldl (fun acc x => Z6.add acc (Z6.pow x k)) init) = |
| 236 | l.foldl (fun acc x => Z6.add acc (Z6.mul c (Z6.pow x k))) (Z6.mul c init) := by |
| 237 | intro init l |
| 238 | induction l generalizing init with |
| 239 | | nil => rfl |
| 240 | | cons h t ih => |
| 241 | simp only [List.foldl] |
| 242 | rw [ih, Z6.mul_add_left] |
| 243 | unfold powSum |
| 244 | rw [gen] |
| 245 | have h0 : Z6.mul c Z6.zero = Z6.zero := by |
| 246 | cases c; simp [Z6.mul, Z6.zero] |
| 247 | rw [h0] |
| 248 | |
| 249 | /-- Universal Theorem 6 (Non-Principal Ideal Transport of PTE Solutions of Arbitrary Size & Degree): |
| 250 | If `A, B ⊂ p2` have equal `k`-th power sums in `Z[i*sqrt(6)]`, then `A.map phi` and `B.map phi` |
| 251 | have equal `k`-th power sums in `Z[i*sqrt(6)]`. -/ |
| 252 | theorem phi_preserves_powSum_eq (A B : List Z6) (k : Nat) |
| 253 | (hA : ∀ a ∈ A, Z6.inP2 a) (hB : ∀ b ∈ B, Z6.inP2 b) |
| 254 | (heq : powSum A k = powSum B k) : |
| 255 | powSum (A.map Z6.phi) k = powSum (B.map Z6.phi) k := by |
| 256 | apply Z6.mul_two_pow_inj k |
| 257 | have fold_map : ∀ (l : List Z6) (hl : ∀ x ∈ l, Z6.inP2 x), |
| 258 | Z6.mul (Z6.pow ⟨2, 0⟩ k) (powSum (l.map Z6.phi) k) = |
| 259 | Z6.mul (Z6.pow Z6.isqrt6 k) (powSum l k) := by |
| 260 | intro l hl |
| 261 | rw [powSum_mul_dist, powSum_mul_dist] |
| 262 | have gen : ∀ (init : Z6) (xs : List Z6) (hxs : ∀ x ∈ xs, Z6.inP2 x), |
| 263 | (xs.map Z6.phi).foldl (fun acc x => Z6.add acc (Z6.mul (Z6.pow ⟨2, 0⟩ k) (Z6.pow x k))) init = |
| 264 | xs.foldl (fun acc x => Z6.add acc (Z6.mul (Z6.pow Z6.isqrt6 k) (Z6.pow x k))) init := by |
| 265 | intro init xs hxs |
| 266 | induction xs generalizing init with |
| 267 | | nil => rfl |
| 268 | | cons h t ih => |
| 269 | simp only [List.map, List.foldl] |
| 270 | have hh : Z6.inP2 h := hxs h (List.mem_cons_self ..) |
| 271 | rw [Z6.phi_pow_scaling h hh k] |
| 272 | exact ih _ (fun x hx => hxs x (List.mem_cons_of_mem h hx)) |
| 273 | exact gen Z6.zero l hl |
| 274 | rw [fold_map A hA, fold_map B hB, heq] |
| 275 | |
| 276 | /-- Orbit 1 (in non-principal prime ideal p2 = (2, i*sqrt(6)), max norm = 144, radius = 12). -/ |
| 277 | def sideA1 : List Z6 := |
| 278 | [ ⟨12, 0⟩, ⟨-12, 0⟩, |
| 279 | ⟨10, 2⟩, ⟨-10, -2⟩, ⟨10, -2⟩, ⟨-10, 2⟩, |
| 280 | ⟨4, 3⟩, ⟨-4, -3⟩, ⟨4, -3⟩, ⟨-4, 3⟩ ] |
| 281 | |
| 282 | def sideB1 : List Z6 := |
| 283 | [ ⟨2, 0⟩, ⟨-2, 0⟩, |
| 284 | ⟨6, 0⟩, ⟨-6, 0⟩, ⟨8, 0⟩, ⟨-8, 0⟩, |
| 285 | ⟨8, 1⟩, ⟨-8, -1⟩, ⟨8, -1⟩, ⟨-8, 1⟩ ] |
| 286 | |
| 287 | /-- Orbit 2 (non-associate image of Orbit 1 under non-principal ideal transport phi, max norm = 216). -/ |
| 288 | def sideA2 : List Z6 := sideA1.map Z6.phi |
| 289 | def sideB2 : List Z6 := sideB1.map Z6.phi |
| 290 | |
| 291 | theorem sideA1_in_p2 : ∀ a ∈ sideA1, Z6.inP2 a := by decide |
| 292 | theorem sideB1_in_p2 : ∀ b ∈ sideB1, Z6.inP2 b := by decide |
| 293 | |
| 294 | theorem sym10_odd_zero (x0 x1 x2 x3 x4 : Z6) (m : Nat) : |
| 295 | powSum [x0, Z6.neg x0, x1, Z6.neg x1, x2, Z6.neg x2, x3, Z6.neg x3, x4, Z6.neg x4] (2 * m + 1) = Z6.zero := by |
| 296 | simp only [powSum, List.foldl, Z6.zero_add] |
| 297 | have h0 := Z6.pair_odd_pow_zero x0 m |
| 298 | have h1 := Z6.pair_odd_pow_zero x1 m |
| 299 | have h2 := Z6.pair_odd_pow_zero x2 m |
| 300 | have h3 := Z6.pair_odd_pow_zero x3 m |
| 301 | have h4 := Z6.pair_odd_pow_zero x4 m |
| 302 | rw [h0, Z6.zero_add, h1, Z6.zero_add, h2, Z6.zero_add, h3, Z6.zero_add, h4] |
| 303 | |
| 304 | def halfEvenSum (x0 x1 x2 x3 x4 : Z6) (m : Nat) : Z6 := |
| 305 | let s := Z6.add (Z6.pow (Z6.mul x0 x0) m) |
| 306 | (Z6.add (Z6.pow (Z6.mul x1 x1) m) |
| 307 | (Z6.add (Z6.pow (Z6.mul x2 x2) m) |
| 308 | (Z6.add (Z6.pow (Z6.mul x3 x3) m) |
| 309 | (Z6.pow (Z6.mul x4 x4) m)))) |
| 310 | Z6.add s s |
| 311 | |
| 312 | theorem sym10_even_eq (x0 x1 x2 x3 x4 : Z6) (m : Nat) : |
| 313 | powSum [x0, Z6.neg x0, x1, Z6.neg x1, x2, Z6.neg x2, x3, Z6.neg x3, x4, Z6.neg x4] (2 * m) |
| 314 | = halfEvenSum x0 x1 x2 x3 x4 m := by |
| 315 | simp only [powSum, List.foldl, Z6.zero_add, halfEvenSum] |
| 316 | rw [Z6.pow_neg_even x0 m, Z6.pow_neg_even x1 m, Z6.pow_neg_even x2 m, |
| 317 | Z6.pow_neg_even x3 m, Z6.pow_neg_even x4 m] |
| 318 | rw [Z6.pow_mul_two x0 m, Z6.pow_mul_two x1 m, Z6.pow_mul_two x2 m, |
| 319 | Z6.pow_mul_two x3 m, Z6.pow_mul_two x4 m] |
| 320 | generalize Z6.pow (Z6.mul x0 x0) m = a0 |
| 321 | generalize Z6.pow (Z6.mul x1 x1) m = a1 |
| 322 | generalize Z6.pow (Z6.mul x2 x2) m = a2 |
| 323 | generalize Z6.pow (Z6.mul x3 x3) m = a3 |
| 324 | generalize Z6.pow (Z6.mul x4 x4) m = a4 |
| 325 | cases a0; cases a1; cases a2; cases a3; cases a4 |
| 326 | simp only [Z6.add, Z6.mk.injEq] |
| 327 | omega |
| 328 | |
| 329 | theorem sideA1_sym : sideA1 = |
| 330 | [⟨12, 0⟩, Z6.neg ⟨12, 0⟩, ⟨10, 2⟩, Z6.neg ⟨10, 2⟩, ⟨10, -2⟩, Z6.neg ⟨10, -2⟩, |
| 331 | ⟨4, 3⟩, Z6.neg ⟨4, 3⟩, ⟨4, -3⟩, Z6.neg ⟨4, -3⟩] := rfl |
| 332 | |
| 333 | theorem sideB1_sym : sideB1 = |
| 334 | [⟨2, 0⟩, Z6.neg ⟨2, 0⟩, ⟨6, 0⟩, Z6.neg ⟨6, 0⟩, ⟨8, 0⟩, Z6.neg ⟨8, 0⟩, |
| 335 | ⟨8, 1⟩, Z6.neg ⟨8, 1⟩, ⟨8, -1⟩, Z6.neg ⟨8, -1⟩] := rfl |
| 336 | |
| 337 | theorem orbit1_disjoint : ∀ a ∈ sideA1, ∀ b ∈ sideB1, a ≠ b := by decide |
| 338 | theorem orbit2_disjoint : ∀ a ∈ sideA2, ∀ b ∈ sideB2, a ≠ b := by decide |
| 339 | |
| 340 | theorem orbit1_odd (m : Nat) : powSum sideA1 (2 * m + 1) = powSum sideB1 (2 * m + 1) := by |
| 341 | rw [sideA1_sym, sideB1_sym, sym10_odd_zero, sym10_odd_zero] |
| 342 | |
| 343 | theorem orbit1_pow2 : powSum sideA1 2 = powSum sideB1 2 := by |
| 344 | rw [sideA1_sym, sideB1_sym, sym10_even_eq _ _ _ _ _ 1, sym10_even_eq _ _ _ _ _ 1]; rfl |
| 345 | theorem orbit1_pow4 : powSum sideA1 4 = powSum sideB1 4 := by |
| 346 | rw [sideA1_sym, sideB1_sym, sym10_even_eq _ _ _ _ _ 2, sym10_even_eq _ _ _ _ _ 2]; rfl |
| 347 | theorem orbit1_pow6 : powSum sideA1 6 = powSum sideB1 6 := by |
| 348 | rw [sideA1_sym, sideB1_sym, sym10_even_eq _ _ _ _ _ 3, sym10_even_eq _ _ _ _ _ 3]; rfl |
| 349 | theorem orbit1_pow8 : powSum sideA1 8 = powSum sideB1 8 := by |
| 350 | rw [sideA1_sym, sideB1_sym, sym10_even_eq _ _ _ _ _ 4, sym10_even_eq _ _ _ _ _ 4]; rfl |
| 351 | theorem orbit1_pow10_ne : powSum sideA1 10 ≠ powSum sideB1 10 := by |
| 352 | rw [sideA1_sym, sideB1_sym, sym10_even_eq _ _ _ _ _ 5, sym10_even_eq _ _ _ _ _ 5]; decide |
| 353 | |
| 354 | /-- Orbit 1 ideal PTE theorem (k = 1..9 equal, k = 10 unequal). -/ |
| 355 | theorem orbit1_pow_all : |
| 356 | ∀ k ∈ ([1, 2, 3, 4, 5, 6, 7, 8, 9] : List Nat), powSum sideA1 k = powSum sideB1 k := by |
| 357 | intro k hk |
| 358 | simp only [List.mem_cons, List.not_mem_nil, or_false] at hk |
| 359 | rcases hk with rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl | rfl |
| 360 | · exact orbit1_odd 0 |
| 361 | · exact orbit1_pow2 |
| 362 | · exact orbit1_odd 1 |
| 363 | · exact orbit1_pow4 |
| 364 | · exact orbit1_odd 2 |
| 365 | · exact orbit1_pow6 |
| 366 | · exact orbit1_odd 3 |
| 367 | · exact orbit1_pow8 |
| 368 | · exact orbit1_odd 4 |
| 369 | |
| 370 | /-- Orbit 2 ideal PTE theorem, deduced DIRECTLY from Orbit 1 via the Universal Non-Principal Ideal Transport Theorem! -/ |
| 371 | theorem orbit2_pow_all : |
| 372 | ∀ k ∈ ([1, 2, 3, 4, 5, 6, 7, 8, 9] : List Nat), powSum sideA2 k = powSum sideB2 k := by |
| 373 | intro k hk |
| 374 | exact phi_preserves_powSum_eq sideA1 sideB1 k sideA1_in_p2 sideB1_in_p2 (orbit1_pow_all k hk) |
| 375 | |
| 376 | theorem orbit2_pow10_ne : powSum sideA2 10 ≠ powSum sideB2 10 := by |
| 377 | have hA2 : sideA2 = [⟨0, 6⟩, Z6.neg ⟨0, 6⟩, ⟨-6, 5⟩, Z6.neg ⟨-6, 5⟩, ⟨6, 5⟩, Z6.neg ⟨6, 5⟩, |
| 378 | ⟨-9, 2⟩, Z6.neg ⟨-9, 2⟩, ⟨9, 2⟩, Z6.neg ⟨9, 2⟩] := rfl |
| 379 | have hB2 : sideB2 = [⟨0, 1⟩, Z6.neg ⟨0, 1⟩, ⟨0, 3⟩, Z6.neg ⟨0, 3⟩, ⟨0, 4⟩, Z6.neg ⟨0, 4⟩, |
| 380 | ⟨-3, 4⟩, Z6.neg ⟨-3, 4⟩, ⟨3, 4⟩, Z6.neg ⟨3, 4⟩] := rfl |
| 381 | rw [hA2, hB2, sym10_even_eq _ _ _ _ _ 5, sym10_even_eq _ _ _ _ _ 5] |
| 382 | decide |
| 383 | |
| 384 | /-- Main bundled theorem for Wave 2: Both Orbit 1 and Orbit 2 are Size-10 (Degree-9) Ideal PTE solutions in Z[i*sqrt(6)]. -/ |
| 385 | theorem wave2_pte10_zsqrt6_pair : |
| 386 | sideA1.length = 10 ∧ sideB1.length = 10 ∧ |
| 387 | (∀ a ∈ sideA1, ∀ b ∈ sideB1, a ≠ b) ∧ |
| 388 | (∀ k ∈ ([1, 2, 3, 4, 5, 6, 7, 8, 9] : List Nat), powSum sideA1 k = powSum sideB1 k) ∧ |
| 389 | powSum sideA1 10 ≠ powSum sideB1 10 ∧ |
| 390 | (∀ a ∈ sideA2, ∀ b ∈ sideB2, a ≠ b) ∧ |
| 391 | (∀ k ∈ ([1, 2, 3, 4, 5, 6, 7, 8, 9] : List Nat), powSum sideA2 k = powSum sideB2 k) ∧ |
| 392 | powSum sideA2 10 ≠ powSum sideB2 10 := |
| 393 | ⟨rfl, rfl, orbit1_disjoint, orbit1_pow_all, orbit1_pow10_ne, |
| 394 | orbit2_disjoint, orbit2_pow_all, orbit2_pow10_ne⟩ |
| 395 | |
| 396 | /-! ### Adversarial Broken-Model Negative Controls (4 literal `neg_ctrl_*` theorems) -/ |
| 397 | |
| 398 | theorem neg_ctrl_perturb_A1_0 : |
| 399 | powSum (⟨13, 0⟩ :: sideA1.tail) 2 ≠ powSum sideB1 2 := by |
| 400 | decide |
| 401 | |
| 402 | theorem neg_ctrl_perturb_B1_6 : |
| 403 | powSum sideA1 2 ≠ powSum ([⟨2, 0⟩, ⟨-2, 0⟩, ⟨6, 0⟩, ⟨-6, 0⟩, ⟨8, 0⟩, ⟨-8, 0⟩, |
| 404 | ⟨8, 2⟩, ⟨-8, -1⟩, ⟨8, -1⟩, ⟨-8, 1⟩]) 2 := by |
| 405 | decide |
| 406 | |
| 407 | theorem neg_ctrl_non_disjoint : |
| 408 | ¬ (∀ a ∈ sideA1, ∀ b ∈ sideA1, a ≠ b) := by |
| 409 | decide |
| 410 | |
| 411 | theorem neg_ctrl_outside_p2_breaks_transport : |
| 412 | Z6.mul ⟨2, 0⟩ (Z6.phi ⟨1, 0⟩) ≠ Z6.mul Z6.isqrt6 ⟨1, 0⟩ := by |
| 413 | decide |
| 414 | |
| 415 | end Wave2Pte10ZSqrt6 |
| 416 | |
| 417 | #print axioms Wave2Pte10ZSqrt6.Z6.no_norm_two |
| 418 | #print axioms Wave2Pte10ZSqrt6.phi_preserves_powSum_eq |
| 419 | #print axioms Wave2Pte10ZSqrt6.Z6.non_rational_affine_obstruction |
| 420 | #print axioms Wave2Pte10ZSqrt6.wave2_pte10_zsqrt6_pair |
| 421 | #print axioms Wave2Pte10ZSqrt6.neg_ctrl_perturb_A1_0 |
| 422 | #print axioms Wave2Pte10ZSqrt6.neg_ctrl_perturb_B1_6 |
| 423 | #print axioms Wave2Pte10ZSqrt6.neg_ctrl_non_disjoint |
| 424 | #print axioms Wave2Pte10ZSqrt6.neg_ctrl_outside_p2_breaks_transport |