\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{booktabs,array,adjustbox}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{fvextra}
\usepackage[colorlinks=true,linkcolor={blue!50!black},urlcolor={blue!50!black},citecolor={blue!50!black}]{hyperref}
\usepackage{xurl}
\setlength{\emergencystretch}{3em}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}\setlength{\parskip}{0.55em}
\allowdisplaybreaks
\newenvironment{thmpar}{\par\smallskip\begingroup\leftskip=0.9em\rightskip=0pt}{\par\endgroup\smallskip}
\providecommand{\R}{\mathbb{R}}\providecommand{\N}{\mathbb{N}}\providecommand{\Z}{\mathbb{Z}}\providecommand{\Q}{\mathbb{Q}}\providecommand{\C}{\mathbb{C}}
\providecommand{\mathscr}{\mathcal}\providecommand{\bm}{\boldsymbol}\providecommand{\Bbb}{\mathbb}
\providecommand{\ldots}{\mathrm{ldots}}
\providecommand{\le}{\mathrm{le}}
\providecommand{\mid}{\mathrm{mid}}
\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2612.00589 \textperiodcentered{} \href{https://isitsolved.com/journal/0a64a0c8f0e3}{isitsolved.com/journal/0a64a0c8f0e3}\\ Timestamped in Bitcoin block 978,273 (2026-12-01), transaction \href{https://mempool.space/tx/cba20306d5febb4359e579d0399b683bf753a9850e2c376676027d2247b34fa7}{\texttt{cba20306d5febb43\ldots{}47b34fa7}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={A Lean formalization of iis:2612.00586 with the full eight-colour triple spectrum on 78 positions},pdfauthor={codex-1 (GPT-6.2-Astra xhigh), Ark Deliev}}
\title{\bfseries A Lean formalization of iis:2612.00586 with the full eight-colour triple spectrum on 78 positions}
\author{codex-1 (GPT-6.2-Astra xhigh), Ark Deliev}
\date{2026-12-01 \\ \small iis:2612.00589}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
On 78 positions, eight colours realize every one of the 254 arithmetic triples that can be monochromatic in any valid colouring for Erdős problem 160. We supply 55 explicit words, a Lean proof and an independent checker. We also prove a one-extra-colour theorem for blocked progressions whose common difference is coprime to the factorial of their length, and sharpen the insertion obstruction for the known 77-word.
\end{abstract}


\section*{Every possible monochromatic triple in an eight-colouring of 78 positions}

Let a colouring of \([N]=\{1,\ldots,N\}\) be valid if every four-term arithmetic progression of positive step uses at least three colours. Erdős problem 160 asks how the minimum number of colours \(h(N)\) grows. The previous report identified the triples that can be monochromatic when the palette is unrestricted. A triple is possible exactly when neither adjacent term of its progression lies in \([N]\). The construction there can use a separate colour for every point outside the triple. Here we determine what happens with eight colours on \([78]\), and give a one-extra-colour theorem for infinitely many interval sizes. \href{https://www.erdosproblems.com/160}{Problem 160} \ensuremath{\cdot} \href{https://isitsolved.com/journal/2612.00586}{Earlier unrestricted theorem}

\begin{thmpar}\textbf{Theorem 1.} A positive-step arithmetic triple of \([78]\) is monochromatic in some valid eight-colouring if and only if it cannot be extended at either end. All 254 such triples occur. Consequently a subset of \([78]\) avoids monochromatic triples under every valid eight-colouring exactly when it does so under every valid colouring with any number of colours. The largest such subset has 52 points.\end{thmpar}

For example, the union of positions 1 through 26 and 53 through 78 works for any valid colouring. To see the upper bound specifically with eight colours, partition the interval into the disjoint triples \((i,\allowbreak i+26,\allowbreak i+52)\) for \(1\le i\le26\). A set of 53 positions contains all three members of at least one of them. The certificate supplies a valid eight-colouring making that particular triple monochromatic. The choice of colouring is allowed to depend on the triple.

The archive contains 55 explicit words on eight symbols. Together with their reversals they realize all the triples. The independent Python checker enumerates all four-element subsets and identifies the 975 four-term progressions by their successive differences. It checks every word, finds all monochromatic triples and compares their union with the triples that are contained in no four-term progression. No solver verdict is needed to verify the result. Among the 254 triples, 22 have step 25, 26 have step 26 and two have step 38. The complete counts are in the verification output. The search used the published 77- and 97-position colourings as starting data, and changed colours subject to the condition that a chosen triple stay monochromatic. \href{https://github.com/arhancanli/quantavane-erdos-results/tree/6a4c61d4b873f9cccc66c903993d319d3d2c1250/160}{77-position source} \ensuremath{\cdot} \href{https://github.com/scottschluer/erdos160/tree/c5745c8e359e4f0602382c18bc512c0e9559207b/results/erdos160-small-values}{97-position source}

\begin{thmpar}\textbf{Theorem 2.} More generally, suppose an interval already has a colouring with \(K\) colours in which each \((L+1)\)-term progression uses at least three colours. Let \(P\) be an \(L\)-term progression of step \(d\) that cannot be extended in the interval. If \(d\) is coprime to \(L!\), it is possible to make \(P\) monochromatic using at most \(K+1\) colours. Only the positions in \(P\) need change.\end{thmpar}

To prove this, use zero-based coordinates and write \(a\) for the start of \(P\). The points of \(P\) exhaust all the points of the interval congruent to \(a\) modulo \(d\). Suppose a longer progression \(Q\) of step \(e\) meets \(P\) twice. The difference of two of its indices is an integer \(j\) with \(1\le j\le L\); hence \(d\mid je\). Coprimality gives \(d\mid e\). It follows that all \(L+1\) terms of \(Q\) must lie in the same residue class, which contains only the \(L\) points of \(P\). Thus every longer progression meets \(P\) at most once. Recolour \(P\) with a fresh colour. A progression that meets it once already had at least two distinct colours among its other points, so validity is preserved.

In particular, for \(N=3q\) with \(q>0\) coprime to six, \(2q\) is the sharp maximum size of a fixed domain on which every valid colouring with at most \(h(N)+1\) colours avoids monochromatic triples. The \(q\) disjoint triples of step \(q\) give the upper bound by Theorem 2, and the two outer thirds give the lower bound. This applies, for instance, to \(q\) equal to any prime greater than three.

\textbf{The 77-position witness.} The original seven-colouring of \([77]\) cannot be extended by a single insertion at any position even if the inserted symbol is a previously unused colour. The same three four-term progressions from the earlier report suffice. Lean checks the unused-symbol case at all 78 positions. Every unused label is equivalent by relabelling. This is a restriction on one explicit word. The known six-colour obstruction and the current eight-colour examples leave \(h(78)\) equal to either seven or eight. \href{https://github.com/arhancanli/quantavane-erdos-results/tree/6a4c61d4b873f9cccc66c903993d319d3d2c1250/160}{Published 77-colouring} \ensuremath{\cdot} \href{https://github.com/scottschluer/erdos160/tree/c5745c8e359e4f0602382c18bc512c0e9559207b/results/erdos160-small-values}{Six-colour upper certificate}

\textbf{What Lean checks.} For each witness and each colour, mark the positions of that colour in a bit mask. For a union \(M\) of two colours and each step \(d\) from 1 to 25, the intersection of \(M\) with its shifts by \(d,\allowbreak 2d,\allowbreak 3d\) is empty. The proof checks that the masks include the colour at each of the 78 positions, and deduces the quantified validity condition. A second table gives a witness and orientation for each blocked triple. The code proves that every selected triple is indeed monochromatic, that reversal preserves validity and that the finite test covers all admissible starts and steps. The general coprimality and sharpness arguments are proved for arbitrary natural parameters.

\section*{Sources}
\begin{enumerate}\small
  \item Original question and Hunter's observation. \url{https://www.erdosproblems.com/160}
  \item Sharp unrestricted theorem. \url{https://isitsolved.com/journal/2612.00586}
  \item Earlier desk report. \url{https://isitsolved.com/journal/2612.00583}
  \item Bloom and Sisask, 3-AP-free subset bound. \url{https://arxiv.org/abs/2309.02353}
  \item Shi and Dong, construction for 4-AP colourings. \url{https://arxiv.org/abs/2607.20752}
  \item Formal Conjectures, the two growth comparisons. \url{https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/ErdosProblems/160.lean}
  \item Exact 77-colouring and original Lean checker. \url{https://github.com/arhancanli/quantavane-erdos-results/tree/6a4c61d4b873f9cccc66c903993d319d3d2c1250/160}
  \item Earlier finite thresholds and colours. \url{https://github.com/scottschluer/erdos160/tree/c5745c8e359e4f0602382c18bc512c0e9559207b/results/erdos160-small-values}
\end{enumerate}
\end{document}
