\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{\exp}{\mathrm{exp}}
\providecommand{\ge}{\mathrm{ge}}
\providecommand{\lceil}{\mathrm{lceil}}
\providecommand{\ldots}{\mathrm{ldots}}
\providecommand{\le}{\mathrm{le}}
\providecommand{\lfloor}{\mathrm{lfloor}}
\providecommand{\log}{\mathrm{log}}
\providecommand{\max}{\mathrm{max}}
\providecommand{\rceil}{\mathrm{rceil}}
\providecommand{\rfloor}{\mathrm{rfloor}}
\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2612.00586 \textperiodcentered{} \href{https://isitsolved.com/journal/daa9a2f5b207}{isitsolved.com/journal/daa9a2f5b207}\\ Timestamped in Bitcoin block 978,266 (2026-12-01), transaction \href{https://mempool.space/tx/ce57939bb2fbffa3063f4ebd9a76e958a0d175f51c9f79c10a462356b6c6de5b}{\texttt{ce57939bb2fbffa3\ldots{}b6c6de5b}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={A Lean formalization of iis:2612.00583 and sharp progression-free domains in Erdős problem 160},pdfauthor={codex-1 (GPT-6.2-Astra xhigh), Ark Deliev}}
\title{\bfseries A Lean formalization of iis:2612.00583 and sharp progression-free domains in Erdős problem 160}
\author{codex-1 (GPT-6.2-Astra xhigh), Ark Deliev}
\date{2026-12-01 \\ \small iis:2612.00586}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
For Erdős problem 160 the largest set of positions guaranteed to avoid monochromatic triples under every valid colouring has size twice the ceiling of N/3 for N \ensuremath{\ge} 2. A packing of disjoint progressions proves optimality. We extend the exact result to all lengths, formalize both earlier growth comparisons from their published analytic inputs, and give a minimum three-progression certificate ruling out every single insertion into the published 77-colouring.
\end{abstract}


\section*{Sharp progression-free domains in Erdős problem 160}

Erdős problem 160 asks for the growth of the least number \(h(N)\) of colours needed on \([N]=\{1,\ldots,N\}\) when every four-term arithmetic progression of positive common difference must use at least three colours. A monochromatic triple in any valid colouring can extend neither one step to the left nor one step to the right. We determine exactly how many positions can be fixed in advance so that no valid colouring has a monochromatic triple on those positions. We also give the answer for every longer progression. The exact growth rate of \(h\), and the seven-colour question on \([78]\), remain open. \href{https://www.erdosproblems.com/160}{Problem statement and history}

\begin{thmpar}\textbf{Theorem 1.} If \(N\ge2\), the maximum size of a subset of \([N]\) on which every valid colouring avoids monochromatic three-term progressions is \(2\lceil N/3\rceil\). One such subset consists of the first and last \(\lceil N/3\rceil\) positions. The quantifier runs over valid colourings with any number of colours.\end{thmpar}

For example, on \([78]\) retain \(1,\allowbreak \ldots,\allowbreak 26\) and \(53,\allowbreak \ldots,\allowbreak 78\). Any triple that cannot extend has its middle in the deleted interval. Conversely, the 26 disjoint triples \((i,\allowbreak i+26,\allowbreak i+52)\), \(1\le i\le26\), each require at least one deletion. To see the necessity for the colouring problem, colour a missed triple with one colour and give all remaining positions distinct colours. No four-term progression contains the whole triple, so the colouring is valid.

\begin{thmpar}\textbf{Theorem 2.} Fix a length \(L\ge2\). Call a positive-step \(L\)-term progression in \([N]\) blocked when adding the preceding or following term takes it out of \([N]\). Write \(N=Lq+r\), \(0\le r<L\). The minimum size of a set meeting all blocked \(L\)-term progressions equals the maximum number of pairwise disjoint blocked \(L\)-term progressions. Both numbers equal\end{thmpar}


\[t=\max\{0,q-r,q-(L-1-r)\}.\]


For \(L\ge3\), the maximum size of a fixed domain on which every colouring that uses at least three colours on every \((L+1)\)-term progression avoids monochromatic \(L\)-term progressions is \(N-t\).

\begin{thmpar}\textbf{Proof.} Use positions \(0,\allowbreak \ldots,\allowbreak N-1\). A blocked progression with start \(a\) and step \(d>0\) satisfies \(a<d\), \(a+(L-1)d<N\) and \(a+Ld\ge N\). Its term at index \(r\) lies in the half-open interval\end{thmpar}


\[[\,r(q+1),\ r(q+1)+t\,).\]


If \(d\le q\), the last inequality gives \(a+rd\ge N-(L-r)q=r(q+1)\) and the first gives \(a+rd<(r+1)q\). If \(d\ge q+1\), the lower endpoint follows from \(a\ge0\), and \(a+rd<N-(L-1-r)(q+1)\). Thus the interval meets every blocked progression. For the matching lower bound, take all the blocked progressions of step \(q\) with starts \(r,\allowbreak \ldots,\allowbreak q-1\), or all those of step \(q+1\) with starts \(0,\allowbreak \ldots,\allowbreak q+r-L\). Ignore empty families. Within either family the starting residues differ modulo the step, so the progressions are disjoint. The larger family has size \(t\).

For \(L\ge3\), if an \(L\)-term progression is contained in an \((L+1)\)-term progression, the step ratio is a positive integer \(s\) with \((L-1)s\le L\). Thus \(s=1\), and the smaller progression is an end segment of the larger one. Every missed blocked progression can consequently be given a common colour while all other points receive distinct colours. This proves sharpness for colourings. Taking \(L=3\) gives Theorem 1.

\textbf{Formalization of the earlier asymptotic comparisons.} The previous report identified two published estimates that answer the catalogue's older comparison questions. The attached Lean development defines the least colour count and proves both implications. For the lower comparison the external input is the Bloom--Sisask bound on progression-free sets with exponent \(1/9\). Lean shows that every colour class restricted to a prefix of length \(M\), where \(3M\le2N+2\), avoids three-term progressions. A finite pigeonhole argument and explicit passage from \(M=\lfloor N/2\rfloor\) to \(N\) give \(h(N)\ge\exp(c(\log N)^{1/9})\) for some \(c>0\) and all sufficiently large \(N\). Lean verifies the little-o comparison to every fixed exponential with exponent \(1/12\). The upper comparison takes Shi and Dong's external \(N^{1/4+o(1)}\) estimate and produces the explicit witness \(N^{1/3}=o(N^{2/3})\). The two outside estimates appear as hypotheses of the respective theorems. \href{https://isitsolved.com/journal/2612.00583}{Earlier desk report} \ensuremath{\cdot} \href{https://arxiv.org/abs/2309.02353}{Bloom and Sisask} \ensuremath{\cdot} \href{https://arxiv.org/abs/2607.20752}{Shi and Dong} \ensuremath{\cdot} \href{https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/ErdosProblems/160.lean}{Formal Conjectures targets}

\textbf{A minimum certificate for the published 77-colouring.} Insert one of the seven colours in any of the 78 available positions. At least one of the following three progressions now has at most two colours, with positions given in one-based notation:

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lll}
\toprule
\textbf{First point} & \textbf{Common difference} & \textbf{Four positions} \\
\midrule
3 & 25 & 3, 28, 53, 78 \\
1 & 25 & 1, 26, 51, 76 \\
14 & 17 & 14, 31, 48, 65 \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

Three is the minimum possible number of tests. Appending colour 4 fails only on the first row. Prepending colour 5 fails only at start 1 with difference 20 or 25. Inserting colour 4 in position 36 passes all three of those particular tests. Hence the sets of failed tests for these three insertions are pairwise disjoint, and any certificate needs at least three progressions. This obstruction applies to the specific published colouring. Other seven-colourings of \([78]\) are still possible. \href{https://github.com/arhancanli/quantavane-erdos-results/tree/6a4c61d4b873f9cccc66c903993d319d3d2c1250/160}{Source colouring and original checker} \ensuremath{\cdot} \href{https://github.com/scottschluer/erdos160/tree/c5745c8e359e4f0602382c18bc512c0e9559207b/results/erdos160-small-values}{Earlier finite bounds}

The independent Python checker constructs the families for 1,655 length and interval-size combinations, exhausts all hitting sets in 119 small cases, checks 30,228 colour partitions across the small colouring cases, and tests all 546 single insertions against all 975 progressions. The all-size proofs use no enumeration cutoff.

\section*{Sources}
\begin{enumerate}\small
  \item Original question and Hunter's observation. \url{https://www.erdosproblems.com/160}
  \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}
