| | @@ -173,3 +173,229 @@ for which no such obstruction has been established. This includes |
| 173 | 173 | prime-modulus cases beyond the finite search for which we found no |
| 174 | 174 | certificate, such as \(k=20\), \(n=383\). A uniform exclusion for |
| 175 | 175 | \(k\ge6\) remains open in this work. |
| 176 | + |
| 177 | +# Follow-up (t-ff5ef63222): more exclusions |
| 178 | + |
| 179 | +Status of claims in this section: Theorems 1 and 2 are paper proofs |
| 180 | +(no Lean). Every exclusion listed is produced by exact integer |
| 181 | +computation in the scripts named, rerunnable offline (Python 3 + |
| 182 | +sympy 1.12, a C++17 compiler). |
| 183 | + |
| 184 | +## Literature (what is known, what is replication) |
| 185 | + |
| 186 | +These objects are (n,k,0,2) almost difference sets, also called modular |
| 187 | +Golomb rulers with n = k²−k+3, cyclic symmetric configurations n_k, |
| 188 | +(n,k;1) difference packings and optimal OOCs. When d = n/3 they are |
| 189 | +cyclic (n/3,3,k,1) relative difference sets. |
| 190 | + |
| 191 | +- Nonexistence for k = 6…11: Buratti–Stinson, arXiv:2007.01908 |
| 192 | + (Ars Math. Contemp. 2021), Theorem 2.3 and Table 1. Our search for |
| 193 | + k ≤ 11 is a replication. |
| 194 | +- Nonexistence for k ≤ 15: Gordon, arXiv:2408.16721 v3, §III. Our |
| 195 | + k = 12, 13 searches below are **replications**, and k = 14, 15 are |
| 196 | + settled by Gordon, not by this work. |
| 197 | +- Zhang–Lei–Zhang, IEEE Trans. Inform. Theory 52 (2006) 2052–2061 |
| 198 | + (Theorems 11 and 22 in Nowak's survey, arXiv:1409.0114). Their |
| 199 | + Theorem 11 gives the projection equations used in Theorem 2 below, so |
| 200 | + Theorem 2 is theirs, specialised to our parameters. Their Theorem 22 |
| 201 | + (with λ = 0, t = 2: if 3 | n then k or k−3 has the form x²+xy+y²) is |
| 202 | + the ternary condition behind the k ≡ 18, 58 (mod 300) progressions of |
| 203 | + the previous section. Those two progressions are therefore a special |
| 204 | + case of ZLZ. |
| 205 | +- Possibly new here: Theorem 1 in the generality stated (self-conjugacy |
| 206 | + for every divisor w | n, including w = n prime) and the prime-modulus |
| 207 | + certificates at k = 8, 26, 131. The survey lists no self-conjugacy or |
| 208 | + Mann-type test for almost difference sets. We have not found one |
| 209 | + elsewhere either, but the literature check is not exhaustive. |
| 210 | + |
| 211 | +## Exhaustive search extended to k = 12, 13 (replication of Gordon) |
| 212 | + |
| 213 | +`search128.cpp` is `search.cpp` with the distance mask widened to |
| 214 | +`unsigned __int128`, so distances up to 128 fit (n ≤ 257, k ≤ 16), and a |
| 215 | +command line `kmin kmax [g]`. Its output for k = 2…11 is identical to |
| 216 | +`search.log` (checked with diff). Its completeness argument is the one |
| 217 | +above, unchanged. |
| 218 | + |
| 219 | +- `search128_k12.log`: k = 12, n = 135, all 7 classes g: no set (≈ 51 s). |
| 220 | +- `search128_k13.log`: k = 13, n = 159, g = 1, 3, 53: no set (≈ 4.3 CPU-min). |
| 221 | + |
| 222 | +**No near-perfect set exists for 6 ≤ k ≤ 13** (computation; this |
| 223 | +replicates Buratti–Stinson for k ≤ 11 and Gordon for k = 12, 13). |
| 224 | +Our k = 14 runs (classes g = 1, 5) hit their wall-clock limits and did not |
| 225 | +finish. k = 14 and 15 are nevertheless **not open**: Gordon §III excludes |
| 226 | +them. |
| 227 | + |
| 228 | +```sh |
| 229 | +c++ -std=c++17 -O3 experiments/nearperfect/search128.cpp -o /tmp/s128 |
| 230 | +/tmp/s128 12 12 # and: /tmp/s128 13 13 ; /tmp/s128 14 14 1 ; /tmp/s128 14 14 5 |
| 231 | +``` |
| 232 | + |
| 233 | +## Theorem 1 (self-conjugacy obstruction, generalizing the prime one) |
| 234 | + |
| 235 | +Notation: n = k(k−1)+3, D a near-perfect set with missing pair ±d, and |
| 236 | +g = gcd(d, n). Let Ψ_u be the minimal polynomial of 2cos(2π/u). For odd e, |
| 237 | +put G_e(T) = 1 + Σ_{i=1}^{(e−1)/2} S_i(T), with S_i as above, so that |
| 238 | +G_e(X+X⁻¹)·X^{(e−1)/2} = 1+X+…+X^{e−1}. Then Ψ_u = ∏_{e|u, e>1} G_e^{μ(u/e)}. |
| 239 | +A prime p is *self-conjugate mod w* if p^j ≡ −1 (mod w) for some j ≥ 1. |
| 240 | + |
| 241 | +**Theorem 1.** Let w > 1 divide n, put u = w / gcd(w, g), and let p be |
| 242 | +self-conjugate mod w. Assume k ≥ 4. |
| 243 | +(a) If u = 1, then v_p(k−3) is even. |
| 244 | +(b) If u > 1, then v_p(Ψ_u(k−1)) is even. |
| 245 | + |
| 246 | +*Proof.* Let ζ be a primitive w-th root of unity, L = Q(ζ), and |
| 247 | +A(Z) = Σ_{a∈D} Z^a. The difference identity above holds in Z[Z]/(Zⁿ−1), |
| 248 | +and Zⁿ = 1 for Z = ζ^c. Take c with gcd(c, w) = 1, so ζ^c ≠ 1 and |
| 249 | +Σ_{j<n} ζ^{cj} = 0. Hence α = A(ζ^c) ∈ Z[ζ] satisfies αᾱ = β with |
| 250 | +β = k−1−η−η⁻¹ and η = ζ^{cd}. The root η has order exactly u. As c runs |
| 251 | +over units mod w, η runs over all primitive u-th roots of unity |
| 252 | +(units mod w surject onto units mod u). Choose c with η = ζ_u = e^{2πi/u}. |
| 253 | + |
| 254 | +Since p ∤ w, p is unramified in L. The decomposition group of a prime |
| 255 | +𝔓 | p is generated by Frobenius σ_p : ζ ↦ ζ^p, and σ_p^j = complex |
| 256 | +conjugation. So every 𝔓 | p satisfies 𝔓̄ = 𝔓. Then |
| 257 | +v_𝔓(ᾱ) = v_{𝔓̄}(α) = v_𝔓(α), and v_𝔓(β) = 2v_𝔓(α) is even for all 𝔓 | p. |
| 258 | +The element β is nonzero: in case (a), β = k−3 ≠ 0. In case (b), |
| 259 | +β is real and β ≥ k−3 > 0. |
| 260 | + |
| 261 | +(a) β = k−3 ∈ Z, and v_𝔓(k−3) = e(𝔓|p)·v_p(k−3) = v_p(k−3). |
| 262 | +(b) θ = η+η⁻¹ lies in K⁺ = Q(ζ_u + ζ_u⁻¹) ⊆ L, with minimal polynomial |
| 263 | +Ψ_u of degree [K⁺:Q]. Thus N_{K⁺/Q}(k−1−θ) = Ψ_u(k−1). For primes 𝔮 | p |
| 264 | +of K⁺, v_p(Ψ_u(k−1)) = Σ_𝔮 f(𝔮|p)·v_𝔮(k−1−θ). If this sum is odd, some |
| 265 | +term f(𝔮|p)·v_𝔮 is odd, so v_𝔮(k−1−θ) is odd. For any 𝔓 | 𝔮 in L, |
| 266 | +e(𝔓|𝔮) = 1, so v_𝔓(β) = v_𝔮(β) is odd, a contradiction. ∎ |
| 267 | + |
| 268 | +**Lemma (search filter).** If u > 2, p ∤ u, and p | Ψ_u(t) for an integer |
| 269 | +t, then p ≡ ±1 (mod u). If moreover p is self-conjugate mod u, then |
| 270 | +p ≡ −1 (mod u). |
| 271 | +*Proof.* Modulo p, Ψ_u(t) ≡ 0 means some root x of X² − tX + 1 in F_{p²} |
| 272 | +is a primitive u-th root of unity (Ψ_u(X+X⁻¹)X^{φ(u)/2} = Φ_u(X), and Φ_u |
| 273 | +is separable mod p). Either x ∈ F_p, so u | p−1, or x^p = x̄ = x⁻¹, so |
| 274 | +u | p+1. If p ≡ 1 (mod u) then p^j ≡ 1 ≢ −1 for all j. ∎ |
| 275 | +The filter is used only to skip primes that cannot contribute. Every |
| 276 | +reported certificate is checked directly, so the filter affects which |
| 277 | +certificates are found, never whether a reported one is correct. |
| 278 | + |
| 279 | +The earlier prime obstruction is the special case w = m prime with |
| 280 | +p ≡ −1 (mod m). The cases m | d and m ∤ d are u = 1 and u = m. |
| 281 | + |
| 282 | +**Computation** (`obstruct.py`). For each k and each proper divisor g of |
| 283 | +n, it tries w | n, w > 1, in increasing order. For u = 1 it factors k−3 |
| 284 | +exactly. For u > 1, if (k+1)^{φ(u)/2} < 10³⁰ it factors Ψ_u(k−1) |
| 285 | +exactly. Otherwise it tests the primes p ≡ −1 (mod u), p ≤ 2·10⁵, |
| 286 | +computing v_p(Ψ_u(k−1)) as Σ μ(u/e)·v_p(G_e(k−1)) with G_e evaluated |
| 287 | +mod p¹² (with a guard against insufficient precision). It prints the first |
| 288 | +certificate (w, u, p, v) found per class, or OPEN. |
| 289 | +`obstruct_6_1000.log`: **Theorem 1 alone excludes 487 of the 995 values |
| 290 | +6 ≤ k ≤ 1000**, for every missing pair. These include k = 8, 9, 13, 15, 17, |
| 291 | +18, 24, 25, 26, 33, 34, 37, … Many further k have all |
| 292 | +but one or two classes excluded. |
| 293 | +Sanity check: for k = 4, 5, where sets exist, it reports every class |
| 294 | +OPEN, as it must. |
| 295 | + |
| 296 | +## Theorem 2 (projection / residue-count obstruction) |
| 297 | + |
| 298 | +These are the projection equations of Zhang–Lei–Zhang (Nowak's survey, |
| 299 | +Theorem 11) at our parameters. The proof is included to keep this file |
| 300 | +self-contained. |
| 301 | + |
| 302 | +**Theorem 2.** Let w | n and c_i = |{a ∈ D : a ≡ i mod w}|. Then |
| 303 | +Σ_i c_i = k and, for every s mod w, |
| 304 | +Σ_i c_i c_{i+s} = [s=0](k−1) + n/w − #{e ∈ {d, −d} : e ≡ s (mod w)}. |
| 305 | + |
| 306 | +*Proof.* The left side counts ordered pairs (a, b) ∈ D² with a−b ≡ s |
| 307 | +(mod w). The pairs with a = b number k and occur only for s = 0. The pairs |
| 308 | +with a ≠ b correspond bijectively to their differences, which are the |
| 309 | +nonzero residues mod n other than ±d, each once. Among the nonzero residues |
| 310 | +mod n, those ≡ s (mod w) number n/w − [s=0]. Remove the ones equal to d or |
| 311 | +−d (d ≢ −d since n is odd). ∎ |
| 312 | + |
| 313 | +`project.py` searches all nonnegative integer vectors (c_i) exhaustively. |
| 314 | +It normalizes by rotation (translation of D), taking c_0 to be a maximum. |
| 315 | +It prunes only by necessary conditions: partial autocorrelations over |
| 316 | +assigned pairs are ≤ the target (all terms are ≥ 0), and the |
| 317 | +sum-of-squares bound uses Cauchy–Schwarz on the unassigned slots. An empty |
| 318 | +result is therefore a proof of nonexistence for that (k, g). A search that |
| 319 | +hits its node budget is reported as inconclusive and never counted as an |
| 320 | +exclusion. Checks: it finds residue vectors for the known sets: k = 3 with g = 1, |
| 321 | +w = 3, and k = 4 with g = 1, 3, 5 and w = 3, 5. It excludes k = 6, g = 3 (w = 11) and |
| 322 | +k = 7, g = 3, 9, 15 (w = 9), which the search confirms. |
| 323 | + |
| 324 | +## Combined result for 6 ≤ k ≤ 60 |
| 325 | + |
| 326 | +*The 10⁵-node run.* `combine.py 6 60 25 100000` (log `combine_6_60.log`) |
| 327 | +applies Theorem 1, then Theorem 2 for divisors w ≤ 25 of n with a budget |
| 328 | +of 10⁵ nodes. It excludes 22 of the 55 values outright (k = 6, 8, 9, 13, |
| 329 | +15, 17, 18, 24, 25, 26, 33, 34, 37, …). Together with our search for |
| 330 | +k ≤ 13, the values left open *by that run* are 14, 16, 19, 20, 21, 22, 23, |
| 331 | +27, 28, 29, 30, 31, 32, 35, 36, 38, 39, 40, 41, 42, 44, 47, 50, 51, 52, 53, |
| 332 | +55, 56, 60 (29 values; the log lists the open classes g for each). This |
| 333 | +list describes that run only, not the overall status. |
| 334 | + |
| 335 | +*Overall status.* Two further facts remove values from that list: |
| 336 | +- k = 14: excluded by Gordon §III (literature, not this work). |
| 337 | +- k = 30: `combine.py 6 40 25 200000` excludes its last class g = 9 by |
| 338 | + Theorem 2 with w = 9 (the reviewer reproduced this run). |
| 339 | + |
| 340 | +So **the values 6 ≤ k ≤ 60 still open overall are** |
| 341 | + |
| 342 | +16, 19, 20, 21, 22, 23, 27, 28, 29, 31, 32, 35, 36, 38, 39, 40, 41, 42, |
| 343 | +44, 47, 50, 51, 52, 53, 55, 56, 60 (27 values). |
| 344 | + |
| 345 | +*Prime modulus.* The hard cases are prime n. For 6 ≤ k ≤ 60 these are |
| 346 | +k = 8, 11, 20, 23, 26, 35, 38, 56 (n = 59, 113, 383, 509, 653, 1193, 1409, |
| 347 | +3083). There only Theorem 1(b) with u = w = n applies, and it needs a prime |
| 348 | +p ≡ −1 (mod n) with v_p(Ψ_n(k−1)) odd. In `obstruct_6_1000.log`, exactly |
| 349 | +three prime-modulus values are excluded this way: |
| 350 | + |
| 351 | +| k | n (prime) | p | p+1 = | v_p(Ψ_n(k−1)) | |
| 352 | +|---|---|---|---|---| |
| 353 | +| 8 | 59 | 353 | 6·59 | 1 | |
| 354 | +| 26 | 653 | 15671 | 24·653 | 1 | |
| 355 | +| **131** | **17033** | **102197** | **6·17033** | **1** | |
| 356 | + |
| 357 | +The k = 131 certificate (n = 17033) is the largest found. It was checked |
| 358 | +independently: p prime, p ≡ −1 (mod n), and |
| 359 | +Ψ_n(130)² = Res(Φ_n, X²−130X+1) = (2 − V_n(130,1))/(−128), where V is the |
| 360 | +Lucas sequence. Computing V_n modulo p⁴ gives v_p(Ψ_n(130)²) = 2. The |
| 361 | +other 87 prime-modulus values of k ≤ 1000 (k = 11, 20, 23, 35, 38, 56, …) |
| 362 | +have no certificate with p ≤ 2·10⁵. Searching larger p is the obvious next |
| 363 | +step. |
| 364 | + |
| 365 | +## Proved infinite families (carried forward) |
| 366 | + |
| 367 | +The previous section proved three infinite arithmetic progressions of |
| 368 | +excluded k, valid for every k in them and not only within the logs: |
| 369 | +k ≡ 18 (mod 300), k ≡ 58 (mod 300) (both special cases of ZLZ Theorem 22), |
| 370 | +and k ≡ 2 (mod 15), k ≡ 5 (mod 361), k ≡ 32 (mod 841). They are pairwise |
| 371 | +disjoint, since modulo 3 they are k ≡ 0, 1, 2. So the excluded set of k |
| 372 | +has **lower density at least 2/300 + 1/(15·361·841) = 2/300 + 1/4554015** |
| 373 | +(a proof). The fraction 487/995 ≈ 49% for 6 ≤ k ≤ 1000 is a finite count |
| 374 | +from `obstruct_6_1000.log`, not a density. |
| 375 | + |
| 376 | +## Where this stops |
| 377 | + |
| 378 | +There is no proof for all k ≥ 6. Rigorous status: no set for 6 ≤ k ≤ 15 |
| 379 | +(literature: Buratti–Stinson, Gordon; our search replicates k ≤ 13); none |
| 380 | +for the 487 values of k ≤ 1000 in `obstruct_6_1000.log` (Theorem 1); none |
| 381 | +for the further values marked EXCLUDED in `combine_6_60.log` and for |
| 382 | +k = 30 (Theorems 1 and 2); none on the three proved progressions above |
| 383 | +(lower density ≥ 2/300 + 1/4554015). Everything else is open. The |
| 384 | +fraction 487/995 is a finite count, not a proved density. |
| 385 | + |
| 386 | +Independent check: `spotcheck.py LOG UMAX` rechecks each Theorem 1 |
| 387 | +certificate with u ≤ UMAX: primality of p, self-conjugacy mod w, and |
| 388 | +u = w/gcd(w, g). It recomputes v_p by a different route, |
| 389 | +Res(Φ_u(X), X² − (k−1)X + 1) = Ψ_u(k−1)², using sympy's cyclotomic |
| 390 | +polynomial and resultant. Results: `spotcheck.py combine_6_60.log 200` |
| 391 | +checked 157 certificates, and `spotcheck.py obstruct_6_1000.log 60` |
| 392 | +checked 6118 certificates. All were OK. Factor lists are iterated in |
| 393 | +sorted order, so the logs are deterministic. |
| 394 | + |
| 395 | +Reproduce (from the repository root, `cd experiments/nearperfect` first |
| 396 | +for the Python scripts, since they import each other): |
| 397 | + |
| 398 | +```sh |
| 399 | +python3 obstruct.py 6 1000 200000 > /tmp/o.log && diff obstruct_6_1000.log /tmp/o.log |
| 400 | +python3 combine.py 6 60 25 100000 > /tmp/c.log && diff combine_6_60.log /tmp/c.log |
| 401 | +``` |