| | @@ -402,3 +402,188 @@ python3 combine.py 6 60 25 100000 > /tmp/c.log && diff combine_6_60.log /tmp/c.l |
| 402 | 402 | |
| 403 | 403 | The [prime-modulus follow-up](prime_modulus/NOTES.md) gives a faster |
| 404 | 404 | certificate search and records 13 additional prime-modulus exclusions. |
| 405 | + |
| 406 | +# Lam–Turyn extension (t-9fb4ce8f4f) |
| 407 | + |
| 408 | +The following character-sum argument is a paper proof. The counts below |
| 409 | +come from exact offline computation. |
| 410 | + |
| 411 | +## Theorem 3 (local parity for the full self-conjugacy condition) |
| 412 | + |
| 413 | +Use the notation of Theorem 1, and write \(w=p^a w_0\) and \(u=p^b r\) |
| 414 | +with \(p\nmid w_0r\). Use the full self-conjugacy condition that |
| 415 | +\(p^j\equiv-1\pmod{w_0}\) for some \(j\ge1\), with the condition vacuous |
| 416 | +when \(w_0=1\). This is the classical Mann–Turyn character-sum method |
| 417 | +with the prime-free modulus from Turyn's definition of self-conjugacy. |
| 418 | +At \(w=3\) the character norm is \(k\) or \(k-3\), according as |
| 419 | +\(3\nmid d\) or \(3\mid d\). The resulting ternary norm condition also |
| 420 | +follows from Zhang–Lei–Zhang's necessary condition. |
| 421 | +[Mann, *Some Theorems on Difference Sets*](https://doi.org/10.4153/CJM-1952-020-4) |
| 422 | +[Turyn, *Character Sums and Difference Sets*, §2](https://msp.org/pjm/1965/15-1/pjm-v15-n1-p32-p.pdf) |
| 423 | +[Zhang–Lei–Zhang](https://doi.org/10.1109/TIT.2006.872969) |
| 424 | +[Nowak's survey, Theorem 22](https://arxiv.org/abs/1409.0114) |
| 425 | + |
| 426 | +Suppose a near-perfect set with \(k\ge4\) and missing pair \(\pm d\) exists. |
| 427 | +Then the following hold for every \(w>1\) dividing \(n\) and every prime |
| 428 | +\(p\) satisfying the full self-conjugacy condition. |
| 429 | + |
| 430 | +1. If \(a=0\), the even-valuation conclusions of Theorem 1 hold. |
| 431 | +2. If \(a\ge b\ge1\) and \(r>1\), then \(p\nmid\Psi_r(k-1)\). |
| 432 | +3. If \(a\ge1\) and either \(b=0\) or \(r=1\), the local parity |
| 433 | + condition used in this proof holds automatically. |
| 434 | + |
| 435 | +**Proof.** Put \(t=k-1\) and \(L=\mathbb Q(\zeta_w)\). For a primitive |
| 436 | +\(w\)-th root \(z\), the difference identity gives |
| 437 | +\[ |
| 438 | + A(z)\overline{A(z)}=\beta=t-\eta-\eta^{-1},\qquad \eta=z^d. |
| 439 | +\] |
| 440 | +The geometric sum vanishes as \(w\mid n\) and \(z\ne1\). |
| 441 | +As \(z\) ranges over primitive \(w\)-th roots, \(\eta\) ranges over all |
| 442 | +primitive \(u\)-th roots by surjectivity of the reduction of units from |
| 443 | +\(w\) to \(u\). All the values of \(\beta\) are positive since |
| 444 | +\(t-2=k-3>0\). |
| 445 | + |
| 446 | +Fix a prime \(\mathfrak P\) of \(L\) over \(p\) and normalize its integer |
| 447 | +valuation to take value 1 on a uniformizer. In \(\mathbb Q(\zeta_{w_0})\), |
| 448 | +the decomposition group at \(p\) is generated by Frobenius |
| 449 | +\(\zeta_{w_0}\mapsto\zeta_{w_0}^{p}\), and the field is unramified at |
| 450 | +\(p\). If \(a\ge1\), adjoining \(\zeta_{p^a}\) to the completion of that |
| 451 | +field at \(p\) is totally ramified of degree \(\varphi(p^a)\) by the |
| 452 | +Eisenstein polynomial \(\Phi_{p^a}(1+X)\). In particular, there is a unique |
| 453 | +prime of \(L\) over the chosen prime of \(\mathbb Q(\zeta_{w_0})\). |
| 454 | +Self-conjugacy fixes the prime in the unramified field and thus fixes |
| 455 | +\(\mathfrak P\). Therefore |
| 456 | +\[ |
| 457 | + v_{\mathfrak P}(\beta)=2v_{\mathfrak P}(A(z)). |
| 458 | +\] |
| 459 | + |
| 460 | +For \(a=0\) and \(u=1\) this is directly the parity of \(v_p(k-3)\). |
| 461 | +For \(a=0\) and \(u>1\), the product of the distinct factors |
| 462 | +\(t-\eta-\eta^{-1}\), one per inverse pair of primitive roots, is |
| 463 | +\(\Psi_u(t)\). The prime-to-\(p\) roots of unity have distinct reductions |
| 464 | +because \(X^u-1\) has simple roots modulo \(p\). Two reduced roots have |
| 465 | +the same trace only if they form an inverse pair, by the quadratic with |
| 466 | +that trace and constant term one. Thus at most one factor of the |
| 467 | +product is divisible by \(\mathfrak P\). Since the field is unramified, |
| 468 | +\(v_p(\Psi_u(t))\) equals that factor's valuation, or is zero if there is |
| 469 | +no such factor. This proves case 1 and shows that the norm-valued test |
| 470 | +captures every local parity obstruction in the unramified case. |
| 471 | + |
| 472 | +For \(a\ge b\ge1\) and \(r>1\), write \(\eta=\eta_0\xi\) with |
| 473 | +\(\eta_0\) of order \(r\) and \(\xi\) of order \(p^b\). Modulo |
| 474 | +\(\mathfrak P\) we have \(\xi=1\). If \(p\mid\Psi_r(t)\), the |
| 475 | +factorization of \(\Psi_r\) into primitive traces shows that some |
| 476 | +\(\eta_0\) satisfies \(\eta_0+\eta_0^{-1}\equiv t\pmod{\mathfrak P}\). |
| 477 | +We can choose this \(\eta_0\) in the character-sum identity by the |
| 478 | +surjectivity above. The element \(t-\eta_0-\eta_0^{-1}\) lies in the |
| 479 | +unramified field \(\mathbb Q(\zeta_{w_0})\). Its valuation in \(L\) |
| 480 | +is at least \(\varphi(p^a)\). Also, |
| 481 | +\[ |
| 482 | + \eta+\eta^{-1}-\eta_0-\eta_0^{-1} |
| 483 | + = (\xi-1)(\eta_0-\eta_0^{-1}\xi^{-1}). |
| 484 | +\] |
| 485 | +The second factor is a unit at \(\mathfrak P\) because the reduction of |
| 486 | +\(\eta_0\) has odd order \(r>1\). The first factor is a uniformizer in |
| 487 | +\(\mathbb Q_p(\zeta_{p^b})\), again by the Eisenstein polynomial. |
| 488 | +Its valuation in \(L\) is \(\varphi(p^a)/\varphi(p^b)=p^{a-b}\). |
| 489 | +Since \(n\) is odd, \(p\) is odd and \(p^{a-b}<\varphi(p^a)\). |
| 490 | +The two valuations differ, so \(v_{\mathfrak P}(\beta)=p^{a-b}\) is |
| 491 | +odd, a contradiction. If \(p\nmid\Psi_r(t)\), all primitive traces |
| 492 | +differ from \(t\) modulo \(\mathfrak P\), so all these \(\beta\) are |
| 493 | +units there. |
| 494 | + |
| 495 | +If \(a\ge1\) and \(b=0\), then \(\beta\) belongs to the unramified field |
| 496 | +\(\mathbb Q(\zeta_{w_0})\), so its valuation in \(L\) is a multiple of |
| 497 | +the even integer \(\varphi(p^a)\). If \(b\ge1\) and \(r=1\), then |
| 498 | +\(\beta\) belongs to the real subfield of \(\mathbb Q(\zeta_{p^b})\). |
| 499 | +The latter cyclotomic field is totally ramified at \(p\), so the relative |
| 500 | +ramification index over its real subfield is 2. The valuation of \(\beta\) |
| 501 | +in \(L\) is again even by multiplicativity of ramification indices. ∎ |
| 502 | + |
| 503 | +## Bounded search and certificate checks |
| 504 | + |
| 505 | +For \(u>1\) in the unramified case, the search filter of Theorem 1 |
| 506 | +restricts the candidates to \(p\equiv-1\pmod u\). For the ramified case |
| 507 | +it suffices to check the prime divisors \(p\) of \(w\) with \(b>0\) and |
| 508 | +\(r>1\). The same search filter applied to \(r\mid w_0\) shows that a |
| 509 | +ramified certificate requires \(p\equiv-1\pmod r\). |
| 510 | + |
| 511 | +The computation uses an inclusive bound \(B\) on **every** candidate |
| 512 | +prime. It loops over all proper divisors \(g\) of \(n\), all divisors |
| 513 | +\(w>1\) of \(n\), and the applicable primes up to \(B\). It stops |
| 514 | +searching a class once it has a certificate, giving priority to an |
| 515 | +unramified certificate. The prime sieve marks all composites by their |
| 516 | +prime divisors up to the square root of \(B\). Exact factorizations of |
| 517 | +\(k-3\) and of small norms shortcut this search, with the same prime |
| 518 | +bound applied to their factors. The small norm shortcut uses only norms |
| 519 | +strictly below \(2^{64}\) in the range tested, since \(\Psi_u\) is |
| 520 | +monic of degree \(\varphi(u)/2\) and its roots belong to \((-2,2)\). |
| 521 | +For an invertible residue \(p\) modulo the relevant modulus, the code |
| 522 | +tests self-conjugacy by checking whether the midpoint power of its |
| 523 | +even multiplicative order equals \(-1\). This is the only element of |
| 524 | +order 2 in the cyclic subgroup generated by \(p\). |
| 525 | + |
| 526 | +For a prime \(p\nmid u\), let \(x\) be a root of \(X^2-tX+1\) |
| 527 | +over a splitting field of \(\mathbb F_p\). Then \(S_e(t)=2\) if and |
| 528 | +only if \(x^e=1\), since \(x^e+x^{-e}-2=(x^e-1)^2/x^e\). |
| 529 | +Testing this equality for \(u\) and its maximal proper divisors |
| 530 | +therefore detects exactly the primitive \(u\)-traces. To evaluate the |
| 531 | +Lucas sequence by repeated doubling, the formulas are |
| 532 | +\(S_{2j}=S_j^2-2\) and \(S_{2j+1}=S_j S_{j+1}-t\), obtained by substituting |
| 533 | +\(t=X+X^{-1}\). |
| 534 | +The geometric sum identity gives |
| 535 | +\[ |
| 536 | + S_u(t)-2=(t-2)G_u(t)^2,\qquad |
| 537 | + G_u(t)=\prod_{e\mid u,\ e>1}\Psi_e(t). |
| 538 | +\] |
| 539 | +At a primitive \(u\)-trace, \(t-2\) and all proper-divisor factors of |
| 540 | +\(G_u(t)\) are units modulo \(p\). Thus |
| 541 | +\(v_p(\Psi_u(t))=v_p(S_u(t)-2)/2\). The calculation doubles the precision |
| 542 | +until the residue is nonzero. This terminates because \(t\ge3\) gives |
| 543 | +\(S_u(t)>2\), by taking the real root \(X>1\) of \(X^2-tX+1\). |
| 544 | + |
| 545 | +| Inclusive prime bound | Excluded \(k\) in 6…1000 | |
| 546 | +| ---: | ---: | |
| 547 | +| 100,000 | 474 | |
| 548 | +| 1,000,000 | 511 | |
| 549 | +| 10,000,000 | 539 | |
| 550 | + |
| 551 | +The full list for \(B=10^7\) is the `excluded_k` line of |
| 552 | +[`lam_6_1000.log`](lam_6_1000.log), with a certificate for every |
| 553 | +missing-pair class of every excluded \(k\). Each certificate records |
| 554 | +\((w,u,p,v)\), with `U` denoting the unramified test and `R` denoting |
| 555 | +the ramified test. In the latter case \(v\) is the odd local valuation |
| 556 | +\(p^{a-b}\). For example, the new certificate at \(k=665\) has |
| 557 | +\(n=w=u=441563\), \(p=1766251\), and \(v=1\). All 487 exclusions in the |
| 558 | +earlier log appear in the new list. The other 52 are |
| 559 | +```text |
| 560 | +51, 68, 83, 114, 140, 184, 232, 241, 246, 263, 284, 302, 328, 332, 341, |
| 561 | +343, 359, 382, 383, 388, 407, 413, 470, 474, 492, 523, 526, 530, 562, |
| 562 | +569, 575, 584, 587, 593, 657, 661, 665, 673, 676, 701, 744, 757, 768, |
| 563 | +816, 823, 840, 925, 931, 981, 988, 998, 1000. |
| 564 | +``` |
| 565 | + |
| 566 | +The ramified test adds zero classes in this range. The verifier checks |
| 567 | +this independently of the search's priority rule. It scans every |
| 568 | +prime divisor \(p\) of \(n\) and every \(r>1\) dividing \(\gcd(n,p+1)\), |
| 569 | +using the accepted linear recurrence for \(G_r(t)\) to test for a |
| 570 | +primitive trace. There are zero passing triples \((k,p,r)\). All prime |
| 571 | +divisors of \(n\) occur below \(10^7\) here, so this part of the |
| 572 | +search is exhaustive for \(6\le k\le1000\) even without a prime bound. |
| 573 | +The unramified count is exhaustive within the stated bound. The 456 |
| 574 | +remaining values have at least one missing-pair class that survives |
| 575 | +the bounded parity tests. This count concerns these tests alone and |
| 576 | +does not incorporate other nonexistence results above. |
| 577 | + |
| 578 | +Run offline from the repository root with Python 3 and SymPy 1.12. |
| 579 | +The verifier checks all 6,497 recorded certificates using the accepted |
| 580 | +linear recurrence, as well as the class coverage and the log totals. |
| 581 | +The original examples at \(k=4,5\) also survive the bounded test. |
| 582 | + |
| 583 | +```sh |
| 584 | +python3 experiments/nearperfect/lam_obstruct.py 6 1000 10000000 > /tmp/lam_6_1000.log |
| 585 | +diff -u experiments/nearperfect/lam_6_1000.log /tmp/lam_6_1000.log |
| 586 | +python3 experiments/nearperfect/lam_verify.py /tmp/lam_6_1000.log |
| 587 | +python3 experiments/nearperfect/lam_obstruct.py 6 1000 100000 | tail -n 3 |
| 588 | +python3 experiments/nearperfect/lam_obstruct.py 6 1000 1000000 | tail -n 3 |
| 589 | +``` |