\documentclass[11pt,letterpaper]{amsart} % Page layout and typography follow Chan--Pak, ``Equality conditions % for correlation inequalities'' (AD Equality). \usepackage[textwidth=463pt,textheight=660pt,left=77bp,top=85.2bp]{geometry} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{xcolor} \usepackage{url} \definecolor{adblue}{rgb}{0,0,0.7} \definecolor{adpurple}{rgb}{0.36,0,0.36} \usepackage[colorlinks=true,linkcolor=adblue,citecolor=adblue, urlcolor=adpurple]{hyperref} \hypersetup{pdftitle={Monochromatic or rainbow triangles in three dimensions}, pdfauthor={Igor Pak}} \numberwithin{equation}{section} \newtheoremstyle{adplain} {6pt plus 2pt minus 2pt}{6pt plus 2pt minus 2pt} {\itshape}{}{\bfseries}{.}{.5em} {\thmname{#1}\thmnumber{ #2}\thmnote{ \textnormal{(\textcolor{adblue}{#3})}}} \theoremstyle{adplain} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheoremstyle{adremark} {6pt plus 2pt minus 2pt}{6pt plus 2pt minus 2pt} {\normalfont\small}{}{\small\bfseries}{.}{.5em} {\thmname{#1}\thmnumber{ #2}\thmnote{ \textnormal{(\textcolor{adblue}{#3})}}} \theoremstyle{adremark} \newtheorem{remark}[theorem]{Remark} \newcommand{\R}{\mathbb R} \newcommand{\Sphere}{\mathcal S} \renewcommand{\S}{\ensuremath{\mathsection}} \setlength{\parindent}{12pt} \setlength{\parskip}{0pt} \setlength{\emergencystretch}{1em} \allowdisplaybreaks[2] \title[Monochromatic or rainbow triangles]{Monochromatic or rainbow triangles in three dimensions} \author{Igor Pak} \date{\today} \begin{document} \begin{abstract} We prove that every coloring of three-dimensional Euclidean space contains, for every prescribed nondegenerate triangle, a congruent copy whose vertices are either all of the same color or all of different colors. The set of colors is arbitrary and can be infinite. The proof is elementary. Its two geometric ingredients are an odd closed sequence obtained by moving among three concentric circles, and a finite sequence of equal-length steps joining any two points of a sphere. \end{abstract} \maketitle \section{Introduction} \subsection{Main result} For a positive integer $d$, write $\R^d$ for $d$-dimensional Euclidean space. For $x=(x_1,\ldots,x_d)$ and $y=(y_1,\ldots,y_d)$, write \[ x\cdot y=\sum_{j=1}^d x_jy_j, \qquad \|x\|=\sqrt{x\cdot x}, \qquad |XY|=\|X-Y\|. \] Thus $|XY|$ denotes the Euclidean distance between points $X$ and $Y$. Two vectors are \emph{perpendicular} when their dot product is zero. A \emph{nondegenerate triangle} is a set of three noncollinear points. Two triangles are \emph{congruent} if their vertices can be matched so that the three corresponding distances agree. Thus congruent triangles have the same size and shape; reflections are allowed. A \emph{coloring} of $\R^3$ is a function $\chi:\R^3\to\mathcal K$, where $\mathcal K$ is an arbitrary nonempty set, called the \emph{set of colors}. A finite set of points is \emph{monochromatic} if all its points have the same color. A triangle is \emph{rainbow} if its three vertices have pairwise different colors. Hence a triangle that is neither monochromatic nor rainbow has exactly two vertex colors. \begin{theorem}[Main theorem]\label{thm:main} Let $T$ be a nondegenerate triangle, let $\mathcal K$ be a nonempty set of colors, and let $\chi:\R^3\to\mathcal K$ be any coloring. Then $\R^3$ contains a congruent copy of $T$ that is either monochromatic or rainbow. \end{theorem} The set $\mathcal K$ need not be finite or countable, and the coloring $\chi$ need not be measurable, continuous, or otherwise regular. All color deductions in the proof are finite. Continuity is used only for elementary functions of lengths and angles. \subsection{Background and prior work} We recall the terminology needed to place Theorem~\ref{thm:main} in context. For a positive integer $r$, an \emph{$r$-coloring} is a coloring whose set of colors is $\{1,\ldots,r\}$. A finite configuration $A\subset\R^d$ is called \emph{Ramsey} if, for every $r$, there exists an integer $n=n(A,r)$ such that every $r$-coloring of $\R^n$ contains a monochromatic congruent copy of $A$. Erd\H{o}s, Graham, Montgomery, Rothschild, Spencer and Straus initiated Euclidean Ramsey theory in a series of papers beginning with~\cite{EGMRSS73}; for surveys, see Graham~\cite{Gra94}. Among their basic results, every two-coloring of $\R^3$ contains a monochromatic congruent copy of every three-point configuration~\cite[Thm.~8]{EGMRSS73}. Thus Theorem~\ref{thm:main} reduces to a classical theorem when $|\mathcal K|=2$. The high-dimensional theory developed rapidly. Frankl and R\"odl proved that every triangle is Ramsey~\cite{FR86}. They later proved the corresponding statement for every nondegenerate simplex~\cite{FR90}, where a \emph{nondegenerate $d$-simplex} means a set of $d+1$ points not contained in an affine hyperplane of dimension less than $d$. We call a triangle \emph{acute}, \emph{right}, or \emph{obtuse} when all its angles are less than $\pi/2$, one angle equals $\pi/2$, or one angle is greater than $\pi/2$, respectively. These results allow the ambient dimension to depend on the number $r$ of colors. In fixed dimension three, B\'ona proved that every three-coloring contains a monochromatic copy of every prescribed $30^\circ$--$60^\circ$--$90^\circ$ triangle~\cite{Bon93}, and B\'ona and T\'oth extended this to every right triangle~\cite{BT96}. B\'ona also gave a twelve-coloring of $\R^3$ with no monochromatic copy of the prescribed $30^\circ$--$60^\circ$--$90^\circ$ triangle~\cite{Bon93}; this illustrates why a fixed-dimensional theorem for arbitrarily many colors needs a conclusion different from monochromaticity alone. The relevant conclusion is the monochromatic--rainbow alternative. Following Geh\'er, Sagdeev and T\'oth~\cite{GST25}, a finite configuration $A$ is called \emph{canonically Ramsey} if there exists an integer $n_0=n_0(A)$ such that, for every positive integer $r$ and every $n\ge n_0$, every $r$-coloring of $\R^n$ contains a congruent copy of $A$ that is monochromatic or rainbow. Thus the ambient dimension is independent of the number $r$ of colors. Some results, including Theorem~\ref{thm:main}, hold in the stronger form in which the coloring may use an arbitrary set of colors. Mao, Ozeki and Wang introduced the Euclidean Gallai--Ramsey problem, which studies the monochromatic--rainbow alternative in Euclidean space~\cite{MOW22}. Cheng and Xu proved that every right triangle has the required property already in $\R^3$ for every finite number of colors, and asked whether the same holds for all triangles~\cite[Thm.~1.2 and \S5]{CX25}. Geh\'er, Sagdeev and T\'oth proved the stronger arbitrary-color statement in $\R^3$ for every acute triangle~\cite[Thm.~1.2]{GST25}. For arbitrary triangles, Fang, Ge, Shu, Xu, Xu and Yang proved the monochromatic--rainbow statement in $\R^4$ for every finite set of colors and asked whether the dimension could be reduced to three~\cite[Thm.~1.2 and \S5]{FGSXXY25}. Ge, Shu, Xu and Yu subsequently proved that every nondegenerate simplex is canonically Ramsey in some dimension~\cite{GSXY26}. Very recently, Sagdeev announced the more general high-dimensional statement that every Ramsey configuration is canonically Ramsey~\cite{Sag26}. Theorem~\ref{thm:main} is a fixed-dimensional result: it gives a single argument in $\R^3$ for every triangle and every set of colors. In particular, it settles the remaining obtuse-triangle case in dimension three. The corresponding planar questions remain different. Shader proved that every right triangle is Ramsey in $\R^2$ for two colors~\cite{Sha76}, while the classical conjecture that every non-equilateral triangle is Ramsey in the plane remains open. Rauch-M\"uller and Sagdeev recently proved this conjecture for a new family of triangles and, in the canonical setting, proved the monochromatic--rainbow conclusion for thirty-six specific triangles~\cite{RMS26}. The ambient dimension in Theorem~\ref{thm:main} cannot be reduced to two for a statement covering all triangles, since a prescribed equilateral triangle is not Ramsey in the plane \cite{EGMRSS73,Sha76}. \subsection{Proof outline} Assume, for a contradiction, that every congruent copy of $T$ uses exactly two colors. Lemma~\ref{lem:odd} produces a small distance $\varepsilon>0$ and an odd closed sequence of copies of~$T$. This implies a strong color restriction for points that are at the same prescribed distance from two differently colored points separated by $\varepsilon$. Lemma~\ref{lem:sphere} then shows that any two points on a sphere can be joined by finitely many steps of length $\varepsilon$. The color restriction therefore propagates one color across an entire sphere. Finally, equal-length steps propagate that color throughout $\R^3$, giving a contradiction. \textcolor{blue}{ \subsection*{AI disclaimer} % Except for mild editing by the author, this paper is fully written by ChatGPT-6 Pro in response to a single prompt. The author made no mathematical contribution to the paper, made no effort to check the validity of the results, and takes no credit for obtaining them. } \smallskip \section{An odd closed sequence of triangles} A sequence of points $X_0,X_1,\ldots,X_N$ has $N$ \emph{steps}, one from $X_i$ to $X_{i+1}$ for each $i=0,\ldots,N-1$. It is \emph{closed} when $X_N=X_0$. Points in the sequence may be repeated. In the next lemma, consecutive points are distinct because they belong to a nondegenerate triangle. \begin{lemma} \label{lem:odd} Let $T$ be a nondegenerate triangle with side lengths $a,b,c>0$. There exists a real number \[ 0<\varepsilon<\min\{a,b,c\} \] with the following property. Let $A,B\in\R^3$ satisfy $|AB|=\varepsilon$, let $s$ be any one of $a,b,c$, and let $X\in\R^3$ satisfy $|XA|=|XB|=s$. Then there are a positive odd integer $N$ and points \[ X_0=X,\ X_1,\ldots,X_N=X \] such that, for every $i=0,\ldots,N-1$, both triangles $AX_iX_{i+1}$ and $BX_iX_{i+1}$ are congruent to $T$. The number $\varepsilon$ depends only on the side lengths of $T$. \end{lemma} \begin{proof} The construction uses three circles with a common centre, lying in the plane halfway between $A$ and $B$ and perpendicular to the line $AB$. We first choose their radii and the angle of each step so that an odd number of steps returns to the starting point. \medskip \noindent\emph{Choosing the radii and angles.} All angles in this proof are measured in radians, so a full turn is $2\pi$. For $-1\pi\qquad\text{for every }0c>r_c(z)$, and the other two sums satisfy the corresponding inequalities. Denote the angles opposite these three sides by $\phi_a,\phi_b,\phi_c$, respectively. Their sum is $\pi$. Since $c^2=r_c(z)^2+z$, the cosine rule gives \[ \cos\theta_{ab}(z) =\cos\phi_c-\frac{z}{2r_a(z)r_b(z)} <\cos\phi_c. \] Cosine is strictly decreasing on $(0,\pi)$, so $\theta_{ab}(z)>\phi_c$. The corresponding comparisons give $\theta_{bc}(z)>\phi_a$ and $\theta_{ca}(z)>\phi_b$. Adding proves~\eqref{eq:angle-increase}. \medskip \noindent\emph{Making an odd number of steps close up.} Choose an odd integer $q\ge3$ so large that \[ \frac{\pi}{q}0$, write \[ \Sphere_s(P)=\{X\in\R^3:|XP|=s\} \] for the \emph{sphere} with centre $P$ and radius $s$. This denotes the surface, not the solid ball. A plane through $P$ cuts the sphere in a circle of radius $s$, called a \emph{great circle}. \begin{lemma} \label{lem:sphere} Let $P\in\R^3$ and let $s,h$ be real numbers with $00$. Expanding the dot products, using $\|U\|=\|V\|=s$, gives \[ M\cdot(U-V)=0,\qquad M\cdot U=\rho^2. \] Consider the plane \[ H=\{W\in\R^3:W\cdot(U-V)=0\}. \] It passes through $0$ and $M$ and is perpendicular to $U-V$. Every $W\in H$ is equidistant from $U$ and $V$, since \[ |WU|^2-|WV|^2=-2W\cdot(U-V)=0. \] The intersection of $H$ with the sphere is a great circle. It contains the two opposite points \[ W_+=\frac{s}{\rho}M, \qquad W_-=-\frac{s}{\rho}M. \] The first is closer than $h$ to $U$, because \[ |W_+U|^2=2s(s-\rho) =\frac{s\,d^2}{2(s+\rho)}2s^2>h^2. \] Move along either semicircle in $H$ from $W_+$ to $W_-$. Distance to $U$ varies continuously, so the intermediate value theorem supplies a point $W$ on this semicircle with $|WU|=h$. Since $W\in H$, it also satisfies $|WV|=h$. Thus $U,W,V$ is the required two-step sequence, with all three points on the sphere. To join arbitrary distinct $U,V$ on the sphere, choose a great circle containing them. Such a circle comes from a plane through $0,U,V$; if $U$ and $V$ are opposite, choose any plane through their line. Take an arc joining them of length at most $\pi s$, choosing either semicircle for opposite points. Choose a positive integer $n>\pi s/h$ and divide this arc into $n$ equal pieces. The straight distance between the endpoints of each piece is at most its arc length, and is therefore less than $h$. Replace each piece by the two-step sequence just constructed. This gives $2n$ steps of length exactly $h$. When $U=V$, no steps are needed. \end{proof} \section{Proof of the main theorem} \begin{proof}[Proof of Theorem~\ref{thm:main}] Fix a nondegenerate triangle $T$, a nonempty set of colors $\mathcal K$, and a coloring $\chi:\R^3\to\mathcal K$. Suppose that no copy of $T$ is monochromatic or rainbow. Consequently every copy of $T$ has exactly two vertex colors. Write $a,b,c$ for the side lengths of $T$, and fix the number $\varepsilon$ supplied by Lemma~\ref{lem:odd}. In particular, $0<\varepsilon