Journal / Seven-colour extension bounds and maximal colour classes at… / what changed
What changed from v1 to v3
2026-12-01 → 2026-12-01 · 0 paragraphs edited, 32 added, 0 removed, 33 unchanged. Compared as markdown source.
v1 · v2 · v3 compare v3 with · read v3
abstractAt 78 a colour class has at most 17 positions. All 44 extremal classes occur with eight colours. Two colours together occupy at most 3029 positions on seven colours, and exactly 31 is possible onin eight.every Anyvalid seven-colouring would require atof least78. 16Two recolouringsindependent afterenumerations insertingand atwo positionindependent intoextension thesearches publishedexclude 77-word,all or566,838 13compatible arbitrarypairs unitup edits.to Repeatedsymmetry four-colourat movestotal withsize a30. movingPrescribing holetwo reachcolours preciselyon 84027 partitionsspecific modulopositions labelsforces andnine reversal.colours; Theremoving fullany seven-colourone questionprescription remainspermits open.eight.
added
# Two colours cover at most 29 points in any seven-colouring of 78
added
Colour the integers from 1 through 78 so that every four-term arithmetic progression uses at least three colours. If a seven-colouring exists, any two of its colours together occur on at most 29 positions. We also give a prescription of just 27 positions in two colours for which nine colours are necessary and sufficient on the full interval. Erasing any one of the 27 prescriptions allows an eight-colouring.
added
## Theorem 6. The two largest classes
added
Earlier results place the maximum class size at 16 in a seven-colouring and the sum of its two largest classes at most 30. A sum of 30 could therefore occur only with sizes 16 and 14 or with sizes 15 and 15. We exhaust both possibilities. If a class has size 16, every other class now has size at most 13. If the largest class has size 15, every other class has size at most 14. The minimum palette on the unrestricted interval remains either seven or eight. [Earlier class theorem](https://isitsolved.com/journal/39a010b1757a) · [Canli’s seven-colouring of 77](https://github.com/arhancanli/quantavane-erdos-results/tree/6a4c61d4b873f9cccc66c903993d319d3d2c1250/160) · [Schluer’s finite bounds](https://github.com/scottschluer/erdos160/tree/c5745c8e359e4f0602382c18bc512c0e9559207b/results/erdos160-small-values)
added
A candidate class meets every progression at most twice. Two candidates are compatible when they are disjoint and no progression lies in their union. These conditions suffice to extend the two prescribed classes if arbitrarily many additional colours are available. Assign a different fresh colour to each remaining position. A progression with just one fresh position must already have both prescribed colours, and a progression with two fresh positions has a third colour at one of its other positions.
added
| Class sizes | Compatible pairs up to reversal and exchange of equal classes | Pairs admitting seven colours |
|---|---:|---:|
| 16 and 14 | 238,587 | 0 |
| 15 and 15 | 328,251 | 0 |
added
Two enumerations divide the 78 sites differently. One splits the sites by parity, and one uses the left and right intervals of length 39. In each, a candidate cannot contain three points of any progression. Once two points of a forbidden triple are selected, the third is removed. Every subset avoiding these exclusions appears in the increasing or decreasing traversal corresponding to its two halves. Reflection allows the first half to be at least as large as the second, provided the reflected sets are restored. The two programs agree on the individual sets, including all 25,631 of size 16 and all 2,107,254 of size 15.
added
For the mixed sizes the first pair enumeration fixes each of the 12,869 size-16 representatives and generates its size-14 partners directly. Selecting two members of a progression for the first class forbids selecting both remaining points for the partner. The second enumeration streams 39,898,661 parity representatives of size 14, including both orientations when the two parity counts agree. It compares each representative with the full size-16 table, testing disjoint positions and disjoint sets of progressions met twice. After reversal is accounted for, the complete pair lists agree entry by entry.
added
For the equal sizes one method stores each member of the full size-15 table as a set of 1,053 features. These are the 78 occupied-site indicators and 975 indicators for progressions met twice. Two candidates fit exactly when the feature sets are disjoint. A binary search tree groups the sets by feature membership. A query can discard a group if every member contains a feature of that query. The leaf test takes the full intersection. A separate method first removes candidates sharing an occupied position by intersecting bit masks for groups of eight sites. It then tests the progression intersections of the survivors. The two complete unordered lists agree up to simultaneous reflection. Random sampling is used only to choose the tree’s splitting feature. It removes no candidates.
added
For each retained pair the two colours already used are reserved exactly for their prescribed sets. The other 48 positions have five fresh colours. One exhaustive solver tracks which pairs of free positions may be equal. A progression may contain at most one equal pair. The other solver reads the progression colours directly and prunes a branch whenever the number of distinct colours already present plus its number of blank positions falls below three. At equality every blank must avoid each colour already present. Both solvers try each available unused colour up to renaming and return a word only after checking every progression. Each rejected the entire table for both class-size patterns. The archive regenerates the pair lists and runs both solvers. Its shorter controls include admissible eight-colour completions for each pattern.
added
## Theorem 7. A minimal prescription forcing nine colours
added
Prescribe colour 0 on the following 16 positions.
added
7 9 15 17 20 36 38 41 45 48 50 66 69 70 76 77
added
Prescribe colour 1 on the following 11 positions.
added
1 4 8 13 14 28 32 33 62 65 67
added
Every other site may use any colour, including 0 or 1. This prescription extends to a valid nine-colouring. No eight-colouring extends it. For each of its 27 single-clue deletions the archive supplies a valid eight-colouring. Hence every proper subset of these clues extends to eight colours. The result gives inclusion minimality within this prescription. The smallest possible number of clues in any obstruction remains undetermined.
added
For the eight-colour lower bound, a propositional variable assigns a colour to a blank site, with exactly one choice per site. For each progression and each unordered pair of palette colours, a clause requires at least one of its sites to lie outside that pair. The clause is already true if a prescribed site lies outside the pair. A blank can lose colour 0 or 1 in advance only when assigning it that colour leaves some progression with too few blank sites to reach three distinct colours. The six other colour names can be ordered by first occurrence, since they are absent from the prescription. This yields an equisatisfiable finite formula. CaDiCaL produced an LRAT refutation. A separate LRAT checker verified the refutation against the formula regenerated from the 27 clues. The upper-bound witnesses were checked independently on all 975 progressions. [CaDiCaL](https://github.com/arminbiere/cadical) · [LRAT checker](https://github.com/marijnheule/drat-trim/blob/master/lrat-check.c)
added
The archive also gives a size-16/14 prescription and a size-15/15 prescription for which the exact palette is nine. In each, an attempt to place either prescribed colour on any further site already violates a progression, regardless of how the remaining sites are filled. Separate LRAT refutations and nine-colour witnesses certify both values. The proof of the global 29-position bound uses exhaustive native programs. The LRAT certificates cover the three specific prescriptions.
added
[Download the checks and the three LRAT proofs](https://files.isitsolved.com/files/be8e39ee776c835eed4aac192d0f47deb9773a1379c4818fb0d80a04ef838a44/erdos160-two-class-bound.zip).
33 unchanged paragraphs
# Seven-colour extension bounds and maximal colour classes at 78 in Erdős problem 160
Can seven colours suffice on 78 consecutive positions when every four-term arithmetic progression must use at least three colours? The minimum is seven or eight. Arhan Canli's certificate gives seven on 77 positions. Scott Schluer's six-colour upper limit of 53 positions gives the lower bound of seven, and eight colours work even on 97 positions. This paper measures how far a seven-colouring of 78 would have to depart from the published 77-word. It also determines the largest possible individual colour class on 78 positions and realizes every extremal class with eight colours. [Original problem](https://www.erdosproblems.com/160) · [Canli's 77-word and verification](https://github.com/arhancanli/quantavane-erdos-results/tree/6a4c61d4b873f9cccc66c903993d319d3d2c1250/160) · [Schluer's finite bounds](https://github.com/scottschluer/erdos160)
**Theorem 1 (edit distance).** Let $s$ be Canli's 77-word. Insert a position anywhere and give it any of the seven colours. A valid seven-colouring of the resulting interval differs from this word at a minimum of **16 of the original positions**. With arbitrary unit-cost insertions, deletions and substitutions allowed in any order, a valid 78-word has Levenshtein distance at least **13** from $s$. Both conclusions permit any permutation of the colour names and reversal of the interval. These are lower bounds; the existence of a valid seven-colouring on all 78 positions remains open.
**Theorem 2 (recolouring with a moving hole).** Start with $s$ followed by an empty position, and also allow its reversal. At each move choose up to $j$ colours. Erase every occurrence of those colours. Refill the erased positions and the old hole using the chosen colours, with permission to leave any one position empty. The new hole may be a previously occupied position outside the chosen classes. All other entries retain their colours. Every four-term progression avoiding the hole must still have at least three colours. Under arbitrary repetitions of these moves, the reachable punctured partitions are as follows.
| Colours available per move | Partitions up to colour names and reversal | Partitions up to colour names | Possible hole positions |
|---:|---:|---:|---:|
| 1 | 6 | 12 | 12 |
| 2 | 185 | 370 | 12 |
| 3 | 209 | 418 | 16 |
| 4 | 840 | 1,680 | 22 |
Even allowing four colours to be reassigned simultaneously, these moves can never fill the interval. Nor can any reachable punctured partition be a restriction of a valid seven-colouring of the full interval. In the four-colour row the possible holes, numbered from one, are
$$1,3,24,26,27,28,29,31,32,36,39,40,43,47,48,50,51,52,53,55,76,78.$$
The restriction in the table comes from the starting word and permitted moves. We independently give seven-colourings for **44** different single-position deletions when the starting word is unrestricted. For example position 2 can be omitted even though it never occurs as a hole in the four-colour search. The attached witness file gives the smaller member of each of 22 reversal pairs. Only progressions wholly contained in the remaining 77 positions are tested. The conclusion about 44 positions is a lower bound.
**Theorem 3 (maximum colour class).** In every valid colouring of 78 positions, regardless of the total number of colours, one colour can occupy at most **17** positions. Exactly **44** subsets of size 17 can be a colour class. Every one occurs in a valid **eight-colouring** of the whole interval. In particular any seven-colour solution has a largest class of size between 12 and 17 inclusive. The attached file gives the 22 classes up to reversal and an eight-colouring for each. The largest possible combined size of **two distinct colour classes** is exactly **31** and an eight-colouring attains this bound.
**Theorem 4 (additional restriction at seven).** In any valid seven-colouring of 78 positions, the two largest colour classes together have size **at most 30**. Hence the least palette capable of attaining the unrestricted two-class maximum of 31 is exactly eight.
### Bounding changes at the original positions
Fix the inserted position $h$ and its colour. Begin from the corresponding 78-word. Whenever a progression uses at most two colours, at least one of its original positions must change colour in any valid repair. In the first search, branch on the first such unfixed position that changes, trying each of the six possible replacement colours. Freeze that position to its proposed final colour and all earlier candidates in the same row to their current colours. A failed row with no unfixed position eliminates the branch. A family of failed rows having pairwise disjoint sets of unfixed positions gives a lower bound on the number of additional changes still needed. The algorithm checks a completely repaired word before applying its budget cutoff. The branching exhausts every repair in the budget. It rejects all 78 insertion locations and all seven choices of the inserted colour at budget 15 in 2,682,708,564 recursive calls. The budget-13 replay takes 191,164,416 calls.
A separate Boolean encoding represents each position by exactly one of seven colour variables. For each unordered pair of colours introduce an indicator that must be true if the position has either colour. On each four-term progression forbid all four indicators for the same pair from being true. This is equivalent to requiring three colours: a valid colouring gives a model by using the exact indicators. For an independent check at budget 13, an at-most-13 sequential counter counts the 77 possible mismatches. The inserted position is freely coloured. CaDiCaL produced an unsatisfiability proof at every location and an independent LRAT checker accepted all 78. As a positive control, appending colour 4 violates only the progression with positions 3, 28, 53 and 78. Dropping that progression makes the zero-change extension satisfiable. [CaDiCaL](https://github.com/arminbiere/cadical) · [LRAT checker](https://github.com/marijnheule/drat-trim/blob/master/lrat-check.c)
For general edit scripts the same progression encoding is combined with a path in the edit-distance lattice. At the prefix lengths $i,j$ and cost allowance $e$, a path can delete a source letter, insert a target letter or replace a letter, consuming one unit. It can match equal letters at zero cost. The final state is required to hold. Each asserted nonboundary state forces one of these predecessors, with the equality condition on a zero-cost step. Induction on the sum of prefix lengths proves soundness; an edit script of the allowed cost gives a satisfying path in the reverse direction. Thus one formula covers all alignments simultaneously. An external LRAT checker accepted the radius-twelve exclusion. A separate valid-prefix enumeration, using ordinary edit-distance rows and a lower bound from the remaining string lengths, independently excludes all edit scripts of cost at most six. All 4,805 binary source, target and budget cases through length four agree with an ordinary numerical edit-distance implementation.
### Enumerating the recolourings
For a fixed choice of palette, regard the old hole and every position of the chosen colours as flexible. Keep the classes outside the palette fixed. After choosing the new hole, omit every row meeting it. On a remaining row with one distinct fixed colour, the flexible entries must include two distinct colours. With exactly two distinct fixed colours a single flexible entry suffices, because the free and fixed palettes are disjoint. With three fixed colours there is no further condition. With no fixed colour the four flexible entries must themselves contain at least three colours. A wholly fixed row is tested directly.
Our first program starts from the published word and enumerates all completions of every reachable template. It repeatedly deletes impossible labels from each variable's domain and branches on a smallest remaining domain. A four-position support table filters the all-flexible rows. An unintroduced colour can be chosen canonically because the other unintroduced labels can be permuted. Frozen templates and output words are cached up to relabelling and interval reversal. Using exactly $j$ candidate colours also includes every move with fewer colours: leave the additionally freed positions at their existing colours. All words found use all seven labels. The program attempts a full colouring as well as each possible hole. Its reachability run for four colours exhausts 11,685 templates in 42,107,665 recursive calls.
A second native checker takes the resulting partitions as input and tests closure. It revisits constraints adjacent to each changed domain, with reverse variable order. Its all-flexible-row filter follows from bipartite matching. Four nonempty label lists admit three distinct representatives on three of their positions exactly when their union has at least three labels and no three lists are equal to the same singleton. Indeed, if the maximum matching has size at most two, a vertex cover of size at most two consists either of two labels or of a position and a label. A cover consisting only of positions cannot meet the edges from four nonempty lists. Conversely each stated obstruction rules out a matching of size three. The checker applies this criterion with each candidate label fixed in turn. It uses no precomputed four-position support tables. It branches on each admissible unintroduced label up to permutation, and compares each complete word with the supplied set. Reachability from the seed is checked separately by the first program. A SAT implementation also reconstructs the smaller one-, two- and three-colour sets, agreeing on every individual partition.
The impossibility of filling the last hole has a short general proof. If a legal completion fully colours the interval, the same completion with any one position omitted would also be legal. All tested rows either retain their colours or are removed. A punctured partition from a full valid colouring could be restored in one move by choosing the missing entry's colour. Thus a closed family of reachable punctured partitions that misses even one hole position excludes every full completion, and excludes every punctured restriction of a full solution. The archive proves this implication in Lean and checks the 22 explicit punctured witnesses. Reflection supplies the other 22. The exhaustive edit and reachability bounds are external computations.
The earlier insertion obstruction tested 546 unaltered insertions into the published 77-word. A distinct earlier classification concerned affine symmetries of a full 78-word. The edit bounds and the move enumeration here impose no affine symmetry on a candidate solution. [Earlier insertion result](https://isitsolved.com/journal/2612.00586) · [Affine symmetry classification](https://isitsolved.com/journal/0bb9d29a28c4)
### Classifying the largest possible colour class
A subset $A$ can be one colour class in some valid colouring exactly when every four-term progression meets it in at most two points. Three points in a row would give that row at most two colours. Conversely, colour $A$ uniformly and give every other point a separate colour. The question is whether such a class can still be realized with only eight colours.
To enumerate sets of size at least 17, index positions from zero and split $A$ into even and odd coordinates. Reversal interchanges the parities, so for a given target size it suffices to enumerate cases where the even half is at least as large as the odd half. Within either half, triples lying in a four-term progression are forbidden. A row of odd difference has two even and two odd positions. If both even positions are chosen it excludes both odd positions. If exactly one even position is chosen the two odd positions cannot both be chosen. These rules characterize feasibility on the odd half after the even half has been fixed. The parity search finds no set of size 18, hence none of larger size. At size 17 it finds 22 sets whose even half is larger. Their reversals give the other 22. Brute force gives exactly the same subsets in every even interval from 4 through 16.
An independent Boolean check has one variable per position, forbids each triple contained in a four-term progression, and requires at least 17 selected positions. To exclude a listed assignment we use a clause on all 78 variables so that it excludes only that exact set. After excluding all 44 assignments an LRAT checker verified unsatisfiability, establishing the whole list and the upper bound simultaneously. Finally we fixed one label to each representative class and used seven further labels for the remaining positions. Every resulting word passes all 975 rows. Lean checks the 17 occurrences, the exact positions of that label, and the progression tests for all 22 representatives. Interval reversal preserves the progression condition. This portion of the result makes no assumptions on the starting 77-word.
For the two-class bound, observe that for disjoint individually feasible classes $A,B$ their union can occupy two colours exactly when it contains no entire four-term progression. Sufficiency follows by colouring the other points individually. For each of the 22 largest classes up to reversal we required a disjoint second class of size at least 15, with all forbidden triples excluded and with both remaining points of each row containing two members of the first class forbidden from occurring together. The resulting 22 unsatisfiability proofs were independently checked in LRAT.
It remains to exclude two classes of size 16. The parity enumeration gives exactly 25,631 individual 16-point subsets. A separate program splits into the first and last 39 positions, builds all forbidden triples from the endpoints of the progressions, and enumerates exactly the same subsets. There are 1,257,632 unordered disjoint pairs. For each class record the rows it meets twice. Two disjoint feasible classes cover a full row exactly when their records have a row in common. Every one of the disjoint pairs has such a row. A combined size of at least 32 would require either a 17-point class and at least 15 more positions, or two classes of size 16.
For sharpness the following two classes occur together in the eight-colouring recorded in `classes/largest-pair.json`. Positions are numbered from one.
$$A=\{2,8,10,17,21,22,38,44,45,48,49,64,66,69,73,76,78\},$$
$$B=\{4,5,13,15,18,30,33,34,40,41,61,67,74,77\}.$$
Lean checks the class sizes 17 and 14 and all 975 progressions of this eight-colouring. Thus the individual and combined upper bounds both remain sharp with an eight-colour palette.
### Why a seven-colouring cannot attain 31
The only size profiles attaining 31 are 17 plus 14 and 16 plus 15. For the first profile we fixed each 17-point class up to reversal and enumerated the compatible 14-point partners. There are eight pairs up to reversal. For every fixed class, an independent LRAT proof excludes a missing partner of size at least 14 after blocking the listed partners by their exact site assignments.
For the second profile the parity and half-interval programs independently enumerate the same 2,107,254 possible 15-point classes. Because 15 is odd, reversal exchanges the parity with more selected points, leaving 1,053,627 representatives. For each representative we take every 16-point set disjoint from it. Across all representatives there are 172,445,398 such pairs. Retaining those whose lists of twice-met progressions are disjoint leaves exactly 467 pairs. Thus the two profiles give **475** candidates up to reversal.
Finally fix the two displayed colour classes of each candidate and give the remaining 47 positions five fresh labels. A row containing two different fixed colours and at least one free position already passes. With one distinct fixed colour the free positions must use at least two fresh labels. A wholly free row must use at least three. These conditions exhaust every row because no candidate contains a progression in the union of its two fixed classes. The matching-based native solver rejects all 475 candidates in 96,878 recursive calls. A separately generated SAT formula for each candidate was also refuted, and an external LRAT checker accepted all 475 proofs. The eight-colour example above proves sharpness of the palette threshold. No full seven-colouring is assumed at any point in this argument.
added
## Theorem 5. Seven colours cannot realize a 17-point class
added
At least eight colours are needed to colour 78 consecutive positions if any colour occurs 17 times and every four-term arithmetic progression must use at least three colours. Eight suffice for each of the 44 possible 17-point classes. Consequently, if a seven-colouring of the whole interval exists, its largest colour class occupies between 12 and 16 positions inclusive. The lower bound is the pigeonhole inequality $78>7\cdot11$. The existence of such a seven-colouring remains open. [Erdős problem 160](https://www.erdosproblems.com/160)
added
### Reduction to 22 cases
added
Three points of a single colour in a four-term progression leave room for at most two colours on that progression. The earlier exhaustive classification gives exactly 44 subsets of size 17 meeting every progression at most twice. Reversal exchanges them in 22 pairs. An independently checked LRAT proof excludes every other set of size at least 17, and the earlier Lean project checks eight-colour witnesses for one member of each pair. The remaining question about these particular sets is whether any can be completed using only six further colours. [Earlier classification and data](https://isitsolved.com/journal/89549489e974) · [Lean receipt for the earlier witnesses](https://isitsolved.com/lean/receipts/cc7e67119b1b)
added
### First exhaustive check
added
Fix one of the 22 sets as a complete colour class. At most six fresh labels are available everywhere else. A row containing two fixed positions requires different labels on the other two. A row containing one fixed position forbids three identical free labels. On a wholly free row at least three distinct labels are needed. Equivalently, among its six unordered pairs at most one pair can have equal labels. Indeed three occurrences of the same label would produce three equal pairs, and a two-plus-two split would give two. Every arrangement using at least three labels has at most one equal pair.
added
The first program branches on labels using this characterization. Whenever two points acquire the same label on a wholly free row, each of the two remaining points is forbidden that label and the remaining two must receive different labels. With one fixed point, equality between two free labels forbids that label at the third free point. All these restrictions are necessary in any completion of the partial assignment. For each free site, the program maintains the labels consistent with the restrictions imposed so far. It chooses a site with a smallest available set of labels, takes a forced label when possible and tries every available choice otherwise. Unused labels are interchangeable, so it suffices to try one fresh name. Initially the program fixes distinct names on a clique of sites already forced to differ. Any valid completion can be relabelled to satisfy that choice. Full assignments are tested on every progression before being returned. The search excludes all 22 cases in 334,572,377 recursive calls.
added
### Independent row check
added
The second program enumerates the progressions from their endpoints, whereas the first uses a start position and a difference. It works directly with the colours already assigned in each row. Suppose a row contains $d$ distinct assigned colours and $u$ blank sites. If $d+u<3$ the branch fails. If $d+u=3$, every blank site must avoid each colour already present, and subsequent updates enforce the required distinctions among the blank sites. Once a row uses three colours it imposes no further restriction. Each assignment revisits the rows through that site. This gives another exhaustive search using a different ordering and a different method of propagation. A full valid assignment could survive every such pruning. For both search programs, specifying a complete colour class is legitimate because every 17-point candidate comprises all the points of that colour. Reversal supplies the cases omitted from the list.
added
The row check excluded the 22 classes in 328,353,642 recursive calls. With one additional label, both programs found a valid eight-colouring for each of the 22 prescribed classes. All 44 returned witness words were checked separately against all 975 progressions.
added
Each implementation recovered a valid eight-colouring in a positive control with two prescribed classes of sizes 17 and 14. They both excluded all 475 previously classified seven-colour cases with two classes totalling 31. The addendum includes the independent source files, candidate list, positive-control witnesses and per-case results. Its seven-colour exclusions are exhaustive native computations. The Lean receipt linked above covers the earlier constructive witnesses and general deletion lemmas. The published 77-position construction and the finite eight-colour upper bound on the longer interval supply context for the outstanding 78-position case. [Canli’s 77-position construction](https://github.com/arhancanli/quantavane-erdos-results/tree/6a4c61d4b873f9cccc66c903993d319d3d2c1250/160) · [Schluer’s finite bounds](https://github.com/scottschluer/erdos160)
added
[Original reproduction archive for Theorems 1–4](https://files.isitsolved.com/files/55d5e9524afee9dacb2887c5f976a2874868625207cafa0a7251c90cf9ced575/erdos160-repair-bounds.zip)
added
[Reproduction archive for the 17-point class theorem](https://files.isitsolved.com/files/945afb0f2c1610371806801bd567f3bc1dfea379659d805f058d4e686eb1e91a/erdos160-extremal-class-checks.zip).