Optimal difference triangle sets for k = 4, extended six sizes past the newest published table
A ▲ after a number means it has a note at the foot of this page.
The result: Proved, with part of the proof done by an exact computation that anyone can rerun from the public record. Not yet peer reviewed.
Difference triangle sets for k = 4 that meet the lower bound at each of the next six sizes past the newest published table, which was built partly with an FPGA-based search, so each is optimal: no set with that many rulers can be shorter. Three of the sets are perfect, with no distance left unused.
A difference triangle set is a collection of rulers. Each ruler has marks at whole-number positions, the first at 0, and every distance between two marks on the same ruler, across all the rulers, must be different. The length of the longest ruler is called the scope, and the aim is to make it as short as possible. Here every ruler has five marks (written , for the four gaps between them), so each ruler has ten distances. For example, the ruler with marks 0, 1, 4, 9 and 11 has the ten distances 1, 2, 3, 4, 5, 7, 8, 9, 10 and 11, all different. A single ruler whose distances are all different is called a Golomb ruler.
How it was checked, in the ledger →
Why these sets matter. They are used to build error-correcting codes: the classical convolutional self-orthogonal codes, and the newer higher-order staircase codes of a paper first posted in 2023. In these codes the scope bounds how much the encoder has to remember, so a shorter set gives a code with a shorter memory.
The question. With rulers there are distances, all different, so the scope is at least , and at least when is odd (the reason is below). The newest published table, by Shehadeh, Kingsford and Kschischang, states that this bound is conjectured to be reached for every except 2, 3 and 4, and reports it verified for every other up to . It stops there.
What was found. Searches run by Claude agents (AI models made by Anthropic) under my direction, on one laptop, found sets that reach the bound for every from to ▲, the next six sizes past the newest table, which was built partly with a search on FPGA hardware (a reprogrammable chip configured for the search). A set that reaches the bound is optimal: no set with that many rulers can be shorter. The three sets with an even number of rulers are perfect: their distances are exactly 1, 2, 3 and so on up to the scope.
What is not claimed. Novelty is provisional. Some older sources were not read (listed under Novelty below), and any of them could hold sets of these sizes. The sets have not been peer reviewed. Checking one needs no trust in how it was found: all six are in a public record on Zenodo, a research archive that gives each record a permanent DOI (version 2 of the record), with a short checker anyone can run, and one full set is printed at the end of this page.
Definitions and the bound
An difference triangle set (DTS) consists of rulers, each a sequence of integers , such that the differences (), taken over all rulers, are distinct. The scope of the set is its largest mark, and is the least scope of an -DTS. A -DTS is a Golomb ruler. Since the differences are distinct positive integers, , and a set attaining this is called perfect: its differences are exactly .
For the bound sharpens by parity, as stated in [SKK] and [HOSC]: for even and for odd . The ten differences of a ruler sum to , which is even, while is odd when is odd. The same count says more when the bound is met for odd . If the differences are with one value omitted, then , where is the sum of all the differences. Both terms are even for odd , so an -DTS with odd that meets the bound leaves exactly one value unused, and that value is even. Perfect -DTSs exist only for even .
Prior status for k = 4
In short: the newest table reports the bound attained for every size up to 15 rulers except 2, 3 and 4, where by Shearer's tables it fails, and stops there. The details and sources follow.
Shehadeh, Kingsford and Kschischang [SKK] write that the bound above "is conjectured to be exact for all excluding " and extend its verification to ; their Table I lists scopes meeting the bound for ; the and sets were found by a software version of their search in [HOSC], and the set by the FPGA. The only case in that paper is a benchmark of their FPGA search against CPU software, which searches repeatedly for -DTSs of scope , which they call sub-optimal; the paper gives no -DTS of smaller scope. The excluded values are those for which the bound fails: the archived online tables of James B. Shearer [Sh-web] list , and , against bounds of , and . The same tables list , so the smallest perfect -DTS has .
The combining construction of Wild [W] and of Kotzig and Turgeon [KT], in the form given in [HOSC], builds a perfect -DTS from perfect - and -DTSs. With its smallest output has rulers, so it says nothing for the sizes on this page.
The sets
Each set meets the bound, so in each case equals the bound. All six are in version 2 of the Zenodo record [Z2], one ruler per line, with a short checker. The last column gives the one value up to the scope that no difference equals, or "none" for a perfect set.
| Scope | Bound | Unused value up to the scope | |
|---|---|---|---|
| 16 | 160 | 160 | none (perfect) |
| 17 | 171 | 171 | 166 |
| 18 | 180 | 180 | none (perfect) |
| 19 | 191 | 191 | 176 |
| 20 | 200 | 200 | none (perfect) |
| 21 | 211 | 211 | 190 |
Combined with the verification through reported in [SKK], this gives for even and for odd at every other than . That statement does not depend on whether the sets are new.
The higher-order staircase codes paper [HOSC] also proves a lower bound on the sum of the ruler lengths, (plus for odd ), and considers sets meeting it and the scope bound at once. None of the six sets meets the sum-of-lengths bound (each has positive excess, given in the specialist section), so they bear only on the scope bound.
How the search works
The search uses the identity behind the sum-of-lengths bound. Write a ruler by its gaps
(a, i1, i2, b), reversing it if needed so that , and put . Its ten
differences split into four "tile" values and six "small" values
, and the small values sum to twice the ruler's length. For the ruler
0, 1, 4, 9, 11 (gaps 1, 3, 5, 2) the tile is 8, 9, 10, 11 and the small values are 1, 2, 3, 5, 4, 7.
The search assumes, without proof, that sets of minimum scope exist whose small values lie close to
, the case of equality in the sum-of-lengths bound, and it searches only among sets
of that kind. It fixes the set of small values at random within that constraint, tiles the
remaining values up to the target scope with tiles, and then chooses in each tile so that
the small values make up . Every output is checked as an ordinary DTS, so the assumption limits
only which sets the search can reach. The specialist section gives the details.
Before any new target, the search was calibrated on the newest table: it found sets at the published optimal scopes for in seconds to minutes on one processor thread. For 14 rulers it found an optimal set in 34 seconds on one processor thread; the 2025 paper reports that its FPGA search took 10 days, after its software search on a 16-core processor had found none in more than 70 days. The searches look in different places (this one only among sets with a small sum of ruler lengths), so the times compare methods, not machines. For and the sets it found differ from the published ones, since their sum-of-lengths excess is far lower (specialist section). All six new sets then came from a run of four worker threads on one shared laptop, between the evening of November 7, 2026 and the following morning. The runs were set up for only; larger sizes were not tried.
For readers in software:how the software was built, and which parts can be reused
This is computational optimization where structure stood in for hardware. The newest published table came partly from a search on an FPGA, a chip configured to test candidates very fast. The search here ran on ordinary processor threads on one shared laptop and got there by searching less: an identity about the sum of the ruler lengths fixed most of each candidate before any testing, so far fewer candidates needed trying. The general lesson for algorithm design is that a proved constraint on the answer can be worth more than raw speed. The codes these sets feed into are used in communications: staircase codes were designed for high-speed optical fibre links. No code was built here; the sets are the raw material.
For readers in mathematics:the result stated the way a mathematician would
In design theory a difference triangle set is a family of Golomb rulers whose differences are all distinct across the family, and the question is the least possible scope, the largest mark on any ruler, for a given number of rulers and marks. The counting bound, sharpened for an odd number of rulers, gives a floor, and the conjecture recorded with the newest table is that this floor is reached for every number of rulers except two, three and four, the known exceptions. Each set here reaches the floor, so each settles one more case of that conjecture, and the perfect ones use every difference up to the scope exactly once.
The checks
| Check | What it tested | Result | When |
|---|---|---|---|
| Calibration | sets at the published optimal scopes for 12, 13 and 14 rulers | Passed | Nov 7 |
| The search's own checker | rulers start at 0, all differences distinct, the scope, perfectness | Passed, all six | Nov 7 and 8 |
| Two further checkers | one written separately by the Claude session that directed the search, and the checker in the record | Passed, all six | Nov 7 to 9 |
| Optimality | each scope equals the parity bound above | Passed, all six | Nov 8 |
| Novelty | the sources listed under Novelty below | Partial: some older sources not read | Nov 7 |
| Record check | the files and description of each version of the record, with its checker run on every set | Passed | Nov 8 and 9 |
| Publication | my review and publication of the record | Version 1 on Nov 8, version 2 on Nov 9 | Nov 8 and 9 |
| Peer review | a journal referee | Not yet |
All three checkers were written by Claude. The property they test is elementary, the checker in the record is a short Python script, and one complete set is printed in the specialist section, so a reader can verify any set without trusting the search or the checkers.
Novelty
The claim is that these sets lie past the end of the newest published table and are optimal. They may already be known. I read [SKK] and [HOSC]; of the papers that OpenAlex and Semantic Scholar list as citing [SKK], I read Rosin's in full and the abstract of Nourozi and Mitchell's. I also read a paper by Liu, Feng, Wang and Zhang on perfect difference families with block size 4 (the case here), the results of a keyword search of arXiv and a Crossref query for work since 2025, and Shearer's archived online tables [Sh-web], which stop at . None of these reports a set at the bound for any from 16 to 21. I have not read Shearer's Handbook chapter [Sh-HCD], his IBM report [Sh-IBM], Wild [W] or Kotzig and Turgeon [KT], the other papers [SKK] cites for earlier bounds (among them Koubi and coauthors, and Galinier and Jaumard), Chee and Colbourn's paper on constructions for difference triangle sets (only its abstract), or the older literature on perfect systems of difference sets and perfect difference families (Kotzig, Turgeon, Laufer, Bermond, Mathon, and Ge, Miao and Sun, among others), and any of these could contain sets of these sizes. The perfect sets are the ones most likely to appear there. The sets have not been peer reviewed.
How it was found
- November 7, 2026, evening: I asked Claude agents to look for an open problem that could give a real result. One of them proposed difference triangle sets, as a problem where any answer is easy to check, and I approved a search. The search was calibrated on 12 to 14 rulers and then started on the new sizes.
- November 7, late evening: the set, then about twenty minutes later the perfect set. A checker written separately by the main Claude session (the one I work with, which coordinates the agents) passed both that night.
- November 8, early morning: the perfect set, the set and the perfect set; later that morning the set.
- November 8, afternoon: I published version 1 of the record [Z1], with the four sets that had by then passed all three checkers. The and sets went through the same checks that evening.
- November 9, evening: I published version 2 [Z2], with all six sets and the checker passing each.
- Next: reading the unread sources listed above, and a short paper.
Who did what
I asked for the search and approved it. Claude agents (Anthropic), working under my direction, proposed the problem, wrote and ran the search code and the checking code, checked the results and the literature, and helped with the writing. I reviewed both versions of the record, published them and take responsibility for them.
References
- [SKK] M. Shehadeh, W. Kingsford and F. R. Kschischang, New difference triangle sets by an FPGA-based search technique, arXiv:2502.19517 (v2, 2025); published as New difference triangle sets by a field-programmable gate array-based search technique, J. Combin. Des. 34(1), 37 to 50 (online 2025), doi:10.1002/jcd.22009.
- [HOSC] M. Shehadeh, F. R. Kschischang, A. Y. Sukmadji and W. Kingsford, Higher-order staircase codes, arXiv:2312.13415; IEEE Trans. Inf. Theory 71(4), 2517 to 2538 (2025), doi:10.1109/TIT.2025.3544168.
- [Sh-web] J. B. Shearer, Difference triangle sets (online tables of lower bounds, upper bounds and optimal sets, IBM Research), read in Internet Archive copies; the upper-bound table is dated July 2, 2004.
- [Sh-HCD] J. B. Shearer, Difference triangle sets, in C. J. Colbourn and J. H. Dinitz (eds.), Handbook of Combinatorial Designs, 2nd ed., Chapman and Hall/CRC, 2007, pp. 436 to 440. Not read.
- [Sh-IBM] J. B. Shearer, Difference triangle set constructions, IBM Research Report RC24623, 2008. Not read.
- [W] P. Wild, Combining perfect systems of difference sets, Bull. London Math. Soc. 18(2) (1986), 127 to 131. Not read; cited as described in [HOSC].
- [KT] A. Kotzig and J. M. Turgeon, Perfect systems of difference sets and additive sequences of permutations, Proc. 10th Southeastern Conf. on Combinatorics, Graph Theory and Computing (1979), 629 to 636. Not read; cited as described in [HOSC].
- [Z1] T. S. Orden, Four optimal difference triangle sets for k = 4: perfect (16,4) and (18,4) sets, and (17,4) and (19,4) sets, Zenodo, version 1, doi:10.5281/zenodo.24064865.
- [Z2] T. S. Orden, Six optimal difference triangle sets for k = 4: perfect (16,4), (18,4) and (20,4) sets, and (17,4), (19,4) and (21,4) sets, Zenodo, version 2, doi:10.5281/zenodo.24096220.
For specialists
The split. For a ruler with gaps (a, i1, i2, b), , and length
, the tile is (the middle two-gap span, the two
three-gap spans and the length) and the small values are , with sum
. Summing over rulers, is a sum of distinct positive integers, which gives
the bound of [HOSC], with equality for even exactly when the small values of all rulers are
.
Excess and the choice of P. Define the excess . Then the small-value set is obtained from by removing a set and adding a set of larger values with . For odd , is not an integer, so is a half-integer. For odd the search also picks the omitted value in the range to , outside ; the tiles must then cover the values from 1 to outside and other than . For the perfect set, and , so .
The two levels. Level 1 tiles the complement of with tiles with distinct outer gaps (bitmasks, forward checking, minimum-remaining-values branching, Luby restarts). Level 2, for each complete tiling, chooses in each tile so that the values over all tiles partition with the outer gaps removed (exact search). A worker repeats this for a fresh random in slices of nominally 600 seconds.
Excess in calibration and in the runs. At none of about 990 complete tilings found in calibration extended to a full set; this is a sample, not an exhaustive search, so it does not show that is impossible. Small positive excess worked: the calibration sets had from to for , for and for . The published and sets have and , which is why the calibration sets for those two sizes are different sets. In the runs, each slice drew uniformly from about to (integers for even , half-integers for odd ). The six sets found have excess
The set came 280 seconds into the first slice of one worker.
Perfect difference families. Each perfect -DTS also gives a perfect difference family (the rulers, read as base blocks in the integers modulo ), so the three perfect sets give perfect difference families with ; the novelty caveat on this page applies to these as well.
The perfect set, four rulers per line, each starting at 0, in the order of the record:
0 6 64 144 160 0 24 77 126 159 0 26 89 131 158 0 2 92 153 157
0 13 84 116 156 0 7 57 108 152 0 11 94 129 150 0 1 74 120 149
0 5 43 128 147 0 10 55 121 146 0 14 48 100 141 0 9 79 115 133
0 8 68 107 130 0 12 88 110 125 0 3 81 112 140 0 17 47 114 134Notes on numbers used on this page
Each number marked ▲ on this page has its note here.
- Seconds the calibration search took to find an optimal (14,4) set of scope 140, on one processor thread: 34. Wall-clock time on a shared machine; three other parameter settings ran 240 seconds each without a find first.
- Largest number of rulers among the six optimal k = 4 difference triangle sets in version 2 of the record: 21. Novelty is provisional: Shearer’s Handbook of Combinatorial Designs entry, his later research report, the papers of Wild and of Kotzig and Turgeon, other papers the 2025 table cites for earlier bounds, and the older literature on perfect systems of difference sets and perfect difference families have not been read.
These notes appear in every version of this page.
How this was checked
Reproduced known values first
Before any new target, the search was run on the sizes just below the end of the newest published table (named on the page) and found sets at the published optimal scopes; for the smallest and the largest of those sizes the sets it found differ from the published ones.
Nov 7, 2026
Three checkers agreed
Each set passed the search's own checker, a checker written separately by the Claude session that directed the search, and the checker that ships with the record; each confirms that the rulers start at 0, that every difference is distinct and the scope. All of them were written by Claude. The property is elementary to check, and the record's checker passes every set in version 2 of the record.
Nov 9, 2026
Novelty provisional; not peer reviewed
Read: the newest published table, the higher-order staircase codes paper, one paper citing the table in full and another in abstract, keyword searches and the archived online tables of James B. Shearer. Not read: Shearer's chapter in the Handbook of Combinatorial Designs (second edition), his IBM research report RC24623, the papers of Wild and of Kotzig and Turgeon, the other papers the table cites for earlier bounds, and the older literature on perfect systems of difference sets and perfect difference families (the page lists them).
Nov 7, 2026
Revision history
- 2026-11-20 · revised
Added how long the calibration took for its largest size on one processor thread, beside the times the 2025 paper reports for its own searches, with a note that the times compare methods, not machines.
- 2026-11-20 · status-change
The status now reads Public record: the sets are version two of a public Zenodo record, and no paper on them has been submitted. It had read Draft complete, which on this site means a finished manuscript. The page also says more exactly what the newest published table found by software and by FPGA, that its timing runs one size past its table used sets it calls sub-optimal, and that the search ran on one laptop.
- 2026-11-16 · revised
Added doors for readers from software (structure instead of special hardware, and the link to optical communication codes) and from mathematics (design theory and the conjecture each set settles one more case of).
- 2026-11-15 · revised
The title, claim, summary and opening now say the sets reach six sizes past the newest table, which was built partly with an FPGA search, and that three are perfect. Novelty stays provisional, now stated as such.
- 2026-11-12 · revised
Opened with a plain summary with a worked ruler, why the sets matter, the question, the finding and what is not claimed, and shortened the description of the search method.
- 2026-11-12 · revised
Corrected which older sources were not read (Shearer's online tables were read; his Handbook entry, his later report and the older literature on perfect systems were not), described the bound as the counting bound on this page, explained the search's split of each ruler with the worked example, and removed an undefined reference to a third checker.
- 2026-11-12 · revised
Moved the list of unread sources to the checks table, sourced the absence of perfect sets for two and four rulers to the newest table, split the explanation of the combining construction, and said why the first record held four sets.
- 2026-11-12 · revised
Made the next step refer to all the unread sources, said the newest table reports rather than proves the missing small perfect sets, mended a broken sentence, and said that larger sizes were not tried.
- 2026-11-12 · revised
Rewritten after a best-version panel: the conjecture is no longer attributed to the newest table, which states it without attribution; the values for two, three, four and six rulers are now sourced to Shearer's online tables (an earlier revision note said the newest table); the benchmark is described as a repeated search for sets of that scope; the list of what was and was not read is fuller; full references, the excess of every set and the link to perfect difference families were added.
- 2026-11-12 · status-change
Listed after a best-version panel: three independent drafts, blind judging and a final accuracy audit.
- 2026-11-09 · extended
Version 2 of the Zenodo record adds optimal sets for the next two sizes, one of them perfect, and the page now covers every set in it.
- 2026-11-09 · revised
Explained why odd sizes need one extra unit, described the search method more exactly, put the timeline in order and said what the published benchmark set was.
- 2026-11-09 · revised
Described the search's assumption as an assumption rather than a deduction, gave the parity reason for odd sizes, said the calibration matched published scopes with different sets, added run times and one full set.
- 2026-11-08 · status-change
The Zenodo record with the four sets and the checker was published, and the page now links it.
How to cite this
Tyler Satchel Orden (2026). Optimal difference triangle sets for k = 4, extended six sizes past the newest published table. Cyborg Mathematics. https://cyborgmathematics.com/results/difference-triangle-sets-k4 (updated November 20, 2026)
This page has no DOI of its own. Cite the URL and the date; the revision history above keeps a dated citation meaningful.
BibTeX
@misc{orden2026differencetrianglesetsk4,
author = {Tyler Satchel Orden},
title = {Optimal difference triangle sets for k = 4, extended six sizes past the newest published table},
year = {2026},
howpublished = {Cyborg Mathematics},
url = {https://cyborgmathematics.com/results/difference-triangle-sets-k4}
}See also
- Optimal difference triangle sets with five marks per ruler for six more sizes past the newest published table, which was built partly with special hardware, a chip configured for one task; three of them are perfect. Explained from the first definition, with a checker.Optimal difference triangle sets past the published table, explained from the start
- This settles exactly where the lower half of Spiro’s conjecture on signed trees holds. By exhaustive computation over every tree, the path has the smallest minimum signed Wiener index at every size below the one from which Guo, Wang and Wang proved that the lower half fails, so their bound is best possible. The work also gives a formula, with a written proof by Claude agents not yet checked by a human, for the largest minimum signed Wiener index over double stars.Spiro's conjecture on signed trees: exactly where its lower half holds, and a formula for the double-star maximum
- A computer-assisted proof of the exact answer to Heilbronn's triangle problem for nine points in a square: the arrangement found by computer search in 2002 can never be beaten, and no other arrangement ties it. Every certificate is checked in whole-number arithmetic, so nothing is rounded.Heilbronn's triangle problem for nine points in a square: the exact optimum, proved, and the only arrangement that reaches it
- I disproved a conjecture that a 2024 paper in Discrete Mathematics listed as open, with a small shape made of squares, found in one evening, whose only Fries structure is not a Clar structure.A square-grid shape whose only Fries structure is not a Clar structure