interplane.Get Omega
Read in your language

omega-principia

This project has not described itself yet.

Brought by drakestapleton

branch main Branches Tags History

omega-principia / proofs / Wave4Pte10RealQuad.lean

407 lines · 17638 bytes Raw Blame History
1-- SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2-- Wave4Pte10RealQuad.lean -- Formal Lean 4.36.0 proof of:
3-- 1. Universal Real-Quadratic Ring Theorems (norm multiplicativity, Galois-conjugate
4-- rational power sums, odd-power vanishing, Pell unit-group scaling invariance and
5-- injectivity, and non-rational affine obstruction) for arbitrary d : Int.
6-- 2. First genuinely non-rational, real-splitting, primitive Ideal PTE solutions of
7-- Size 10 (Degree 9) in three real quadratic rings:
8-- - Z[sqrt(6)] (h = 1, fundamental unit 5 + 2*sqrt(6), real radius 3 + 3*sqrt(6) ~= 10.35)
9-- - Z[sqrt(13)] (h = 1, Pell unit 18 + 5*sqrt(13) of norm -1)
10-- - Z[sqrt(15)] (h = 2 non-UFD, fundamental unit 4 + sqrt(15))
11-- 3. Four literal broken-model negative controls (neg_ctrl_*).
12-- Zero Mathlib, 0 sorry, 0 native_decide, standard/0 axioms only.
13
14namespace Wave4Pte10RealQuad
15
16/-- Element a + b * sqrt(d) in the real quadratic ring Z[sqrt(d)]. -/
17structure RQ (d : Int) where
18 re : Int
19 im : Int
20 deriving DecidableEq, Repr
21
22namespace RQ
23
24variable {d : Int}
25
26def zero : RQ d := ⟨0, 0⟩
27def one : RQ d := ⟨1, 0⟩
28def ofInt (n : Int) : RQ d := ⟨n, 0⟩
29
30def add (x y : RQ d) : RQ d := ⟨x.re + y.re, x.im + y.im⟩
31def neg (x : RQ d) : RQ d := ⟨-x.re, -x.im⟩
32def mul (x y : RQ d) : RQ d := ⟨x.re * y.re + d * x.im * y.im, x.re * y.im + x.im * y.re⟩
33def conj (x : RQ d) : RQ d := ⟨x.re, -x.im⟩
34def norm (x : RQ d) : Int := x.re * x.re - d * x.im * x.im
35
36def pow (x : RQ d) : Nat → RQ d
37 | 0 => one
38 | n + 1 => mul x (pow x n)
39
40theorem ext {x y : RQ d} (h1 : x.re = y.re) (h2 : x.im = y.im) : x = y := by
41 cases x; cases y; simp only at h1 h2; subst h1; subst h2; rfl
42
43theorem add_zero (x : RQ d) : add x zero = x := by
44 apply ext <;> simp [add, zero]
45
46theorem zero_add (x : RQ d) : add zero x = x := by
47 apply ext <;> simp [add, zero]
48
49theorem add_comm (x y : RQ d) : add x y = add y x := by
50 apply ext <;> simp [add, Int.add_comm]
51
52theorem add_assoc (x y z : RQ d) : add (add x y) z = add x (add y z) := by
53 apply ext <;> simp [add, Int.add_assoc]
54
55theorem add_neg (x : RQ d) : add x (neg x) = zero := by
56 apply ext <;> simp [add, neg, zero] <;> omega
57
58theorem mul_one (x : RQ d) : mul x one = x := by
59 apply ext <;> simp [mul, one]
60
61theorem one_mul (x : RQ d) : mul one x = x := by
62 apply ext <;> simp [mul, one]
63
64theorem mul_zero (x : RQ d) : mul x zero = zero := by
65 apply ext <;> simp [mul, zero]
66
67theorem mul_comm (x y : RQ d) : mul x y = mul y x := by
68 apply ext <;> simp only [mul] <;> grind
69
70theorem mul_assoc (x y z : RQ d) : mul (mul x y) z = mul x (mul y z) := by
71 apply ext <;> simp only [mul] <;> grind
72
73theorem left_distrib (x y z : RQ d) : mul x (add y z) = add (mul x y) (mul x z) := by
74 apply ext <;> simp only [mul, add] <;> grind
75
76theorem mul_neg_left (x y : RQ d) : mul (neg x) y = neg (mul x y) := by
77 apply ext <;> simp only [mul, neg] <;> grind
78
79theorem mul_neg_right (x y : RQ d) : mul x (neg y) = neg (mul x y) := by
80 rw [mul_comm, mul_neg_left, mul_comm]
81
82theorem neg_neg (x : RQ d) : neg (neg x) = x := by
83 apply ext <;> simp [neg]
84
85/-- Universal Theorem 1: Norm multiplicativity in Z[sqrt(d)] for arbitrary d : Int. -/
86theorem norm_mul (x y : RQ d) : norm (mul x y) = norm x * norm y := by
87 simp only [norm, mul]
88 grind
89
90theorem conj_mul (x y : RQ d) : conj (mul x y) = mul (conj x) (conj y) := by
91 apply ext <;> simp only [conj, mul] <;> grind
92
93theorem conj_pow (x : RQ d) : ∀ k : Nat, conj (pow x k) = pow (conj x) k
94 | 0 => by apply ext <;> simp [conj, pow, one]
95 | k + 1 => by simp only [pow, conj_mul, conj_pow x k]
96
97/-- Universal Theorem 2a: For every d, z, and k, the Galois-conjugate sum z^k + sigma(z)^k is purely rational. -/
98theorem conj_pair_pow_rational (z : RQ d) (k : Nat) :
99 (add (pow z k) (pow (conj z) k)).im = 0 := by
100 rw [← conj_pow z k]
101 simp [add, conj]
102 omega
103
104theorem pow_neg_even (z : RQ d) : ∀ k : Nat, pow (neg z) (2 * k) = pow z (2 * k)
105 | 0 => rfl
106 | k + 1 => by
107 have h2 : 2 * (k + 1) = (2 * k + 1) + 1 := by omega
108 rw [h2, pow, pow, pow, pow, pow_neg_even z k]
109 rw [mul_neg_left, mul_neg_left, mul_neg_right, neg_neg]
110
111theorem pow_neg_odd (z : RQ d) (k : Nat) : pow (neg z) (2 * k + 1) = neg (pow z (2 * k + 1)) := by
112 rw [pow, pow, pow_neg_even z k, mul_neg_left]
113
114/-- Universal Theorem 2b: Every negation pair {z, -z} has zero odd power sums for all k : Nat. -/
115theorem pair_odd_pow_zero (z : RQ d) (k : Nat) :
116 add (pow z (2 * k + 1)) (pow (neg z) (2 * k + 1)) = zero := by
117 rw [pow_neg_odd z k, add_neg]
118
119theorem pow_mul (u x : RQ d) : ∀ k : Nat, pow (mul u x) k = mul (pow u k) (pow x k)
120 | 0 => by simp [pow, one_mul]
121 | k + 1 => by
122 rw [pow, pow, pow, pow_mul u x k]
123 rw [mul_assoc, ← mul_assoc x (pow u k) (pow x k), mul_comm x (pow u k),
124 mul_assoc (pow u k) x (pow x k), ← mul_assoc]
125
126def powSum (xs : List (RQ d)) (k : Nat) : RQ d :=
127 xs.foldl (fun acc x => add acc (pow x k)) zero
128
129theorem foldl_add_shift (xs : List (RQ d)) (k : Nat) (acc : RQ d) :
130 xs.foldl (fun a x => add a (pow x k)) acc = add acc (powSum xs k) := by
131 induction xs generalizing acc with
132 | nil => simp [powSum, add_zero]
133 | cons x tl ih =>
134 simp only [powSum, List.foldl_cons, zero_add]
135 rw [ih (add acc (pow x k)), ih (pow x k), add_assoc]
136
137theorem powSum_cons (x : RQ d) (xs : List (RQ d)) (k : Nat) :
138 powSum (x :: xs) k = add (pow x k) (powSum xs k) := by
139 simp only [powSum, List.foldl_cons, zero_add]
140 exact foldl_add_shift xs k (pow x k)
141
142theorem powSum_map_scale (u : RQ d) (xs : List (RQ d)) (k : Nat) :
143 powSum (xs.map (mul u)) k = mul (pow u k) (powSum xs k) := by
144 induction xs with
145 | nil => simp [powSum, mul_zero]
146 | cons x tl ih =>
147 simp only [List.map_cons, powSum_cons, pow_mul, ih, left_distrib]
148
149/-- Universal Theorem 3a: Scaling any PTE solution in Z[sqrt(d)] by ANY element u
150 (in particular any power eps^n of a Pell unit) preserves all power-sum equalities. -/
151theorem scale_preserves_powSum_eq (u : RQ d) (A B : List (RQ d)) (k : Nat)
152 (h : powSum A k = powSum B k) :
153 powSum (A.map (mul u)) k = powSum (B.map (mul u)) k := by
154 rw [powSum_map_scale, powSum_map_scale, h]
155
156/-- Universal Theorem 3b: Multiplication by any unit (u * v = 1) is injective,
157 hence preserves disjointness and ideal non-degeneracy across the infinite Dirichlet unit orbit. -/
158theorem unit_mul_injective {u v x y : RQ d} (huv : mul v u = one) (hxy : mul u x = mul u y) :
159 x = y := by
160 have h1 : mul v (mul u x) = mul v (mul u y) := by rw [hxy]
161 rw [← mul_assoc, ← mul_assoc, huv, one_mul, one_mul] at h1
162 exact h1
163
164/-- Universal Theorem 4: Non-Rational Affine Obstruction in Z[sqrt(d)].
165 If alpha != 0 in Z[sqrt(d)] maps two distinct rational integers r1 != r2 and a non-rational
166 element z = a + b*sqrt(d) (b != 0) into Z (im = 0), contradiction! -/
167theorem non_rational_affine_obstruction
168 (alpha beta : RQ d) (r1 r2 a b : Int)
169 (hne : r1 ≠ r2) (hb : b ≠ 0) (ha_nz : alpha ≠ zero)
170 (h1 : (add (mul alpha (ofInt r1)) beta).im = 0)
171 (h2 : (add (mul alpha (ofInt r2)) beta).im = 0)
172 (h3 : (add (mul alpha ⟨a, b⟩) beta).im = 0) : False := by
173 simp only [add, mul, ofInt] at h1 h2 h3
174 have him : alpha.im * (r1 - r2) = 0 := by
175 have t1 : alpha.im * r1 + beta.im = 0 := by omega
176 have t2 : alpha.im * r2 + beta.im = 0 := by omega
177 have t3 : alpha.im * (r1 - r2) = alpha.im * r1 - alpha.im * r2 := Int.mul_sub alpha.im r1 r2
178 omega
179 have halim : alpha.im = 0 := by
180 cases Int.mul_eq_zero.mp him with
181 | inl h => exact h
182 | inr h => exact False.elim (hne (by omega))
183 have hbim : beta.im = 0 := by
184 rw [halim] at h1; omega
185 have hare_b : alpha.re * b = 0 := by
186 rw [halim, hbim] at h3; omega
187 have hare : alpha.re = 0 := by
188 cases Int.mul_eq_zero.mp hare_b with
189 | inl h => exact h
190 | inr h => exact False.elim (hb h)
191 exact ha_nz (ext hare halim)
192
193/-- Fast helper for symmetric 10-element multisets {+-z1, +-z2, +-z3, +-z4, +-z5}. -/
194def sym10 (z1 z2 z3 z4 z5 : RQ d) : List (RQ d) :=
195 [z1, neg z1, z2, neg z2, z3, neg z3, z4, neg z4, z5, neg z5]
196
197theorem sym10_odd_zero (z1 z2 z3 z4 z5 : RQ d) (k : Nat) :
198 powSum (sym10 z1 z2 z3 z4 z5) (2 * k + 1) = zero := by
199 simp only [sym10, powSum, List.foldl_cons, List.foldl_nil, zero_add, pow_neg_odd]
200 apply ext <;> simp only [add, neg, zero] <;> omega
201
202def halfEvenSum (z1 z2 z3 z4 z5 : RQ d) (m : Nat) : RQ d :=
203 add (pow (mul z1 z1) m)
204 (add (pow (mul z2 z2) m)
205 (add (pow (mul z3 z3) m)
206 (add (pow (mul z4 z4) m) (pow (mul z5 z5) m))))
207
208theorem pow_two_mul (z : RQ d) : ∀ m : Nat, pow z (2 * m) = pow (mul z z) m
209 | 0 => rfl
210 | m + 1 => by
211 have h2 : 2 * (m + 1) = (2 * m + 1) + 1 := by omega
212 rw [h2, pow, pow, pow, pow_two_mul z m, mul_assoc]
213
214theorem mul_neg_neg (x : RQ d) : mul (neg x) (neg x) = mul x x := by
215 rw [mul_neg_left, mul_neg_right, neg_neg]
216
217theorem sym10_even_eq (z1 z2 z3 z4 z5 w1 w2 w3 w4 w5 : RQ d) (m : Nat)
218 (h : halfEvenSum z1 z2 z3 z4 z5 m = halfEvenSum w1 w2 w3 w4 w5 m) :
219 powSum (sym10 z1 z2 z3 z4 z5) (2 * m) = powSum (sym10 w1 w2 w3 w4 w5) (2 * m) := by
220 have hstep : ∀ x1 x2 x3 x4 x5 : RQ d,
221 powSum (sym10 x1 x2 x3 x4 x5) (2 * m) =
222 add (halfEvenSum x1 x2 x3 x4 x5 m) (halfEvenSum x1 x2 x3 x4 x5 m) := by
223 intro x1 x2 x3 x4 x5
224 simp only [sym10, powSum, List.foldl_cons, List.foldl_nil, zero_add,
225 pow_two_mul, mul_neg_neg, halfEvenSum]
226 apply ext <;> simp only [add] <;> omega
227 rw [hstep, hstep, h]
228
229end RQ
230
231-- =========================================================================
232-- Ring 1: Z[sqrt(6)] (d = 6, h = 1, fundamental Pell unit 5 + 2*sqrt(6))
233-- =========================================================================
234def A6 : List (RQ 6) :=
235 RQ.sym10 ⟨7, 0⟩ ⟨10, 0⟩ ⟨0, 4⟩ ⟨3, 1⟩ ⟨3, -1⟩
236
237def B6 : List (RQ 6) :=
238 RQ.sym10 ⟨2, 0⟩ ⟨8, 0⟩ ⟨9, 0⟩ ⟨3, 3⟩ ⟨3, -3⟩
239
240def eps6 : RQ 6 := ⟨5, 2⟩
241def eps6Inv : RQ 6 := ⟨5, -2⟩
242
243theorem eps6_is_unit : RQ.mul eps6Inv eps6 = RQ.one := rfl
244
245theorem ring6_even2 : RQ.powSum A6 2 = RQ.powSum B6 2 :=
246 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 1 rfl
247theorem ring6_even4 : RQ.powSum A6 4 = RQ.powSum B6 4 :=
248 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 2 rfl
249theorem ring6_even6 : RQ.powSum A6 6 = RQ.powSum B6 6 :=
250 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 3 rfl
251theorem ring6_even8 : RQ.powSum A6 8 = RQ.powSum B6 8 :=
252 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 4 rfl
253
254theorem ring6_ideal_pte10 :
255 A6.length = 10 ∧ B6.length = 10 ∧
256 (∀ a ∈ A6, a ∉ B6) ∧
257 (∀ k : Nat, 1 ≤ k → k ≤ 9 → RQ.powSum A6 k = RQ.powSum B6 k) ∧
258 RQ.halfEvenSum (d := 6) ⟨7, 0⟩ ⟨10, 0⟩ ⟨0, 4⟩ ⟨3, 1⟩ ⟨3, -1⟩ 5 ≠
259 RQ.halfEvenSum (d := 6) ⟨2, 0⟩ ⟨8, 0⟩ ⟨9, 0⟩ ⟨3, 3⟩ ⟨3, -3⟩ 5 ∧
260 (4 * (2 : Int) - 7 = 1) := by
261 refine ⟨rfl, rfl, ?_, ?_, ?_, by omega⟩
262 · decide
263 · intro k hk1 hk9
264 match k with
265 | 1 => exact (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 0).trans (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 0).symm
266 | 2 => exact ring6_even2
267 | 3 => exact (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 1).trans (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 1).symm
268 | 4 => exact ring6_even4
269 | 5 => exact (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 2).trans (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 2).symm
270 | 6 => exact ring6_even6
271 | 7 => exact (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 3).trans (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 3).symm
272 | 8 => exact ring6_even8
273 | 9 => exact (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 4).trans (RQ.sym10_odd_zero (d := 6) _ _ _ _ _ 4).symm
274 | 0 => omega
275 | n + 10 => omega
276 · decide
277
278-- =========================================================================
279-- Ring 2: Z[sqrt(13)] (d = 13, h = 1, Pell unit 18 + 5*sqrt(13) of norm -1)
280-- =========================================================================
281def A13 : List (RQ 13) :=
282 RQ.sym10 ⟨11, 0⟩ ⟨14, 0⟩ ⟨0, 4⟩ ⟨4, 1⟩ ⟨4, -1⟩
283
284def B13 : List (RQ 13) :=
285 RQ.sym10 ⟨2, 0⟩ ⟨12, 0⟩ ⟨13, 0⟩ ⟨4, 3⟩ ⟨4, -3⟩
286
287def eps13 : RQ 13 := ⟨18, 5⟩
288def eps13Inv : RQ 13 := ⟨-18, 5⟩
289
290theorem eps13_is_unit : RQ.mul eps13Inv eps13 = RQ.one := rfl
291
292theorem ring13_even2 : RQ.powSum A13 2 = RQ.powSum B13 2 :=
293 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 1 rfl
294theorem ring13_even4 : RQ.powSum A13 4 = RQ.powSum B13 4 :=
295 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 2 rfl
296theorem ring13_even6 : RQ.powSum A13 6 = RQ.powSum B13 6 :=
297 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 3 rfl
298theorem ring13_even8 : RQ.powSum A13 8 = RQ.powSum B13 8 :=
299 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 4 rfl
300
301theorem ring13_ideal_pte10 :
302 A13.length = 10 ∧ B13.length = 10 ∧
303 (∀ a ∈ A13, a ∉ B13) ∧
304 (∀ k : Nat, 1 ≤ k → k ≤ 9 → RQ.powSum A13 k = RQ.powSum B13 k) ∧
305 RQ.halfEvenSum (d := 13) ⟨11, 0⟩ ⟨14, 0⟩ ⟨0, 4⟩ ⟨4, 1⟩ ⟨4, -1⟩ 5 ≠
306 RQ.halfEvenSum (d := 13) ⟨2, 0⟩ ⟨12, 0⟩ ⟨13, 0⟩ ⟨4, 3⟩ ⟨4, -3⟩ 5 ∧
307 (6 * (2 : Int) - 11 = 1) := by
308 refine ⟨rfl, rfl, ?_, ?_, ?_, by omega⟩
309 · decide
310 · intro k hk1 hk9
311 match k with
312 | 1 => exact (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 0).trans (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 0).symm
313 | 2 => exact ring13_even2
314 | 3 => exact (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 1).trans (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 1).symm
315 | 4 => exact ring13_even4
316 | 5 => exact (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 2).trans (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 2).symm
317 | 6 => exact ring13_even6
318 | 7 => exact (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 3).trans (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 3).symm
319 | 8 => exact ring13_even8
320 | 9 => exact (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 4).trans (RQ.sym10_odd_zero (d := 13) _ _ _ _ _ 4).symm
321 | 0 => omega
322 | n + 10 => omega
323 · decide
324
325-- =========================================================================
326-- Ring 3: Z[sqrt(15)] (d = 15, h = 2 non-UFD, fundamental unit 4 + sqrt(15))
327-- =========================================================================
328def A15 : List (RQ 15) :=
329 RQ.sym10 ⟨7, 0⟩ ⟨13, 0⟩ ⟨0, 4⟩ ⟨9, 1⟩ ⟨9, -1⟩
330
331def B15 : List (RQ 15) :=
332 RQ.sym10 ⟨4, 0⟩ ⟨11, 0⟩ ⟨15, 0⟩ ⟨3, 3⟩ ⟨3, -3⟩
333
334def eps15 : RQ 15 := ⟨4, 1⟩
335def eps15Inv : RQ 15 := ⟨4, -1⟩
336
337theorem eps15_is_unit : RQ.mul eps15Inv eps15 = RQ.one := rfl
338
339theorem ring15_even2 : RQ.powSum A15 2 = RQ.powSum B15 2 :=
340 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 1 rfl
341theorem ring15_even4 : RQ.powSum A15 4 = RQ.powSum B15 4 :=
342 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 2 rfl
343theorem ring15_even6 : RQ.powSum A15 6 = RQ.powSum B15 6 :=
344 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 3 rfl
345theorem ring15_even8 : RQ.powSum A15 8 = RQ.powSum B15 8 :=
346 RQ.sym10_even_eq _ _ _ _ _ _ _ _ _ _ 4 rfl
347
348theorem ring15_ideal_pte10 :
349 A15.length = 10 ∧ B15.length = 10 ∧
350 (∀ a ∈ A15, a ∉ B15) ∧
351 (∀ k : Nat, 1 ≤ k → k ≤ 9 → RQ.powSum A15 k = RQ.powSum B15 k) ∧
352 RQ.halfEvenSum (d := 15) ⟨7, 0⟩ ⟨13, 0⟩ ⟨0, 4⟩ ⟨9, 1⟩ ⟨9, -1⟩ 5 ≠
353 RQ.halfEvenSum (d := 15) ⟨4, 0⟩ ⟨11, 0⟩ ⟨15, 0⟩ ⟨3, 3⟩ ⟨3, -3⟩ 5 ∧
354 (2 * (4 : Int) - 7 = 1) := by
355 refine ⟨rfl, rfl, ?_, ?_, ?_, by omega⟩
356 · decide
357 · intro k hk1 hk9
358 match k with
359 | 1 => exact (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 0).trans (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 0).symm
360 | 2 => exact ring15_even2
361 | 3 => exact (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 1).trans (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 1).symm
362 | 4 => exact ring15_even4
363 | 5 => exact (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 2).trans (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 2).symm
364 | 6 => exact ring15_even6
365 | 7 => exact (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 3).trans (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 3).symm
366 | 8 => exact ring15_even8
367 | 9 => exact (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 4).trans (RQ.sym10_odd_zero (d := 15) _ _ _ _ _ 4).symm
368 | 0 => omega
369 | n + 10 => omega
370 · decide
371
372-- =========================================================================
373-- Broken-Model Negative Controls (4 literal neg_ctrl_* theorems)
374-- =========================================================================
375
376theorem neg_ctrl_1_tamper_ring6 :
377 RQ.halfEvenSum (d := 6) ⟨8, 0⟩ ⟨10, 0⟩ ⟨0, 4⟩ ⟨3, 1⟩ ⟨3, -1⟩ 1 ≠
378 RQ.halfEvenSum (d := 6) ⟨2, 0⟩ ⟨8, 0⟩ ⟨9, 0⟩ ⟨3, 3⟩ ⟨3, -3⟩ 1 := by
379 decide
380
381theorem neg_ctrl_2_tamper_ring13 :
382 RQ.halfEvenSum (d := 13) ⟨11, 0⟩ ⟨14, 0⟩ ⟨0, 4⟩ ⟨4, 2⟩ ⟨4, -2⟩ 1 ≠
383 RQ.halfEvenSum (d := 13) ⟨2, 0⟩ ⟨12, 0⟩ ⟨13, 0⟩ ⟨4, 3⟩ ⟨4, -3⟩ 1 := by
384 decide
385
386theorem neg_ctrl_3_tamper_ring15_disjoint :
387 ¬ (∀ a ∈ RQ.sym10 (d := 15) ⟨4, 0⟩ ⟨13, 0⟩ ⟨0, 4⟩ ⟨9, 1⟩ ⟨9, -1⟩, a ∉ B15) := by
388 decide
389
390theorem neg_ctrl_4_non_unit_norm_6 :
391 RQ.norm (d := 6) ⟨2, 1⟩ ≠ 1 ∧ RQ.norm (d := 6) ⟨2, 1⟩ ≠ -1 := by
392 decide
393
394#print axioms RQ.norm_mul
395#print axioms RQ.conj_pair_pow_rational
396#print axioms RQ.scale_preserves_powSum_eq
397#print axioms RQ.unit_mul_injective
398#print axioms RQ.non_rational_affine_obstruction
399#print axioms ring6_ideal_pte10
400#print axioms ring13_ideal_pte10
401#print axioms ring15_ideal_pte10
402#print axioms neg_ctrl_1_tamper_ring6
403#print axioms neg_ctrl_2_tamper_ring13
404#print axioms neg_ctrl_3_tamper_ring15_disjoint
405#print axioms neg_ctrl_4_non_unit_norm_6
406
407end Wave4Pte10RealQuad