<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://michaelnielsen.org/polymath/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mpeake</id>
	<title>Polymath Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://michaelnielsen.org/polymath/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mpeake"/>
	<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Special:Contributions/Mpeake"/>
	<updated>2026-04-07T07:24:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Imo_2010&amp;diff=3174</id>
		<title>Imo 2010</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Imo_2010&amp;diff=3174"/>
		<updated>2010-07-08T17:53:43Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the wiki page for the mini-polymath2 project, which seeks solutions to Question 5 of the 2010 International Mathematical Olympiad.   &lt;br /&gt;
&lt;br /&gt;
The project will start at [http://www.timeanddate.com/worldclock/fixedtime.html?year=2010&amp;amp;month=7&amp;amp;day=8&amp;amp;hour=16&amp;amp;min=0&amp;amp;sec=0&amp;amp;p1=0 16:00 UTC July 8], and is hosted at the [http://polymathprojects.org/ polymath blog].  A discussion thread is hosted at [http://terrytao.wordpress.com Terry Tao&#039;s blog].&lt;br /&gt;
&lt;br /&gt;
== Rules ==&lt;br /&gt;
&lt;br /&gt;
This project will follow the [http://polymathprojects.org/general-polymath-rules/ usual polymath rules].  In particular:&lt;br /&gt;
&lt;br /&gt;
* Everyone is welcome to participate, though people who have already seen an external solution to the problem should probably refrain from giving spoilers throughout the experiment.&lt;br /&gt;
* This is a team effort, not a race between individuals.  Rather than work for extended periods of time in isolation from the rest of the project, the idea is to come up with short observations (or to carry an observation of another participant further) and then report back what one gets to the rest of the team.  Partial results or even failures can be worth reporting.&lt;br /&gt;
* Participants are encouraged to update the wiki, or to summarise progress within threads, for the benefit of others.&lt;br /&gt;
&lt;br /&gt;
== Threads ==&lt;br /&gt;
&lt;br /&gt;
Discussion and planning:&lt;br /&gt;
&lt;br /&gt;
* [http://terrytao.wordpress.com/2010/06/12/future-mini-polymath-project-2010-imo-q6/ Future mini-polymath project: 2010 IMO Q6?]  June 12, 2010.&lt;br /&gt;
* [http://terrytao.wordpress.com/2010/06/21/organising-mini-polymath2/ Organising mini-polymath2] June 21, 2010.&lt;br /&gt;
* [http://terrytao.wordpress.com/2010/06/27/mini-polymath2-start-time/ Mini-polymath2 start time], June 27, 2010.&lt;br /&gt;
* [http://terrytao.wordpress.com/2010/07/08/mini-polymath2-discussion-thread/ Mini-polymath2 discussion thread], July 8 2010.&lt;br /&gt;
&lt;br /&gt;
Research:&lt;br /&gt;
&lt;br /&gt;
* [http://polymathprojects.org/2010/07/08/minipolymath2-project-imo-2010-q5/ Minipolymath2 project: IMO 2010 Q5], July 8 2010.&lt;br /&gt;
&lt;br /&gt;
== The question ==&lt;br /&gt;
&lt;br /&gt;
The question to be solved is Question 5 of the [http://www.imo-official.org/problems.aspx 2010 International Mathematical Olympiad]:&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Problem&#039;&#039;&#039; In each of six boxes &amp;lt;math&amp;gt;B_1, B_2, B_3, B_4, B_5, B_6&amp;lt;/math&amp;gt; there is initially one coin. There are two types of operation allowed:&lt;br /&gt;
: &lt;br /&gt;
: &#039;&#039;Type 1:&#039;&#039; Choose a nonempty box &amp;lt;math&amp;gt;B_j&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;1 \leq j \leq 5&amp;lt;/math&amp;gt;. Remove one coin from &amp;lt;math&amp;gt;B_j&amp;lt;/math&amp;gt; and add two coins to &amp;lt;math&amp;gt;B_{j+1}&amp;lt;/math&amp;gt;.&lt;br /&gt;
:&lt;br /&gt;
: &#039;&#039;Type 2:&#039;&#039; Choose a nonempty box &amp;lt;math&amp;gt;B_k&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;1 \leq k \leq 4&amp;lt;/math&amp;gt;. Remove one coin from &amp;lt;math&amp;gt;B_k&amp;lt;/math&amp;gt; and exchange the contents of (possibly empty) boxes &amp;lt;math&amp;gt;B_{k+1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B_{k+2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
:&lt;br /&gt;
: Determine whether there is a finite sequence of such operations that results in boxes &amp;lt;math&amp;gt;B_1, B_2, B_3, B_4, B_5&amp;lt;/math&amp;gt;  being empty and box &amp;lt;math&amp;gt;B_6&amp;lt;/math&amp;gt; containing exactly &amp;lt;math&amp;gt;2010^{2010^{2010}}&amp;lt;/math&amp;gt; coins. (Note that &amp;lt;math&amp;gt;a^{b^c} := a^{(b^c)}&amp;lt;/math&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
== Observations and partial results ==&lt;br /&gt;
&lt;br /&gt;
* If the left-most box &amp;lt;math&amp;gt;B_1&amp;lt;/math&amp;gt; becomes empty, then it cannot ever become non-empty again.  Furthermore, the left-most box can never have more than one coin; it can be touched exactly once.&lt;br /&gt;
* Define the &#039;&#039;worth&#039;&#039; W of a state to be &amp;lt;math&amp;gt;W = B_6 + 2 B_5 + 4 B_4 + 8 B_3 + 16 B_2 + 32 B_1&amp;lt;/math&amp;gt;.  Then the initial worth is 63, the final desired worth is &amp;lt;math&amp;gt;2010^{2010^{2010}}&amp;lt;/math&amp;gt;, and the Type 1 move does not affect the worth.  On the other hand, the Type 2 move increases the worth when &amp;lt;math&amp;gt;B_{j+2} - B_{j+1} \geq 4&amp;lt;/math&amp;gt;.&lt;br /&gt;
* Once one has a large number of coins in one of the first four boxes, say &amp;lt;math&amp;gt;B_k&amp;lt;/math&amp;gt;, one can apply the Type 2 move repeatedly to remove coins from &amp;lt;math&amp;gt;B_k&amp;lt;/math&amp;gt; while swapping &amp;lt;math&amp;gt;B_{k+1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B_{k+2}&amp;lt;/math&amp;gt; repeatedly.  This suggests that it is relatively easy to remove coins from the system; the difficulty is in adding coins to the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Possible strategies ==&lt;br /&gt;
&lt;br /&gt;
* Split the problem into two pieces.  Part I: try to show the weaker result that the number of coins in the system can eventually be as large as &amp;lt;math&amp;gt;2010^{2010^{2010}}&amp;lt;/math&amp;gt;.  Part II: Show that once one has a lot of coins, one can move to the final state where &amp;lt;math&amp;gt;B_1=\ldots=B_5=0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B_6 = 2010^{2010^{2010}}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
* Try to show that a quantity such as the worth increases or decreases in a controlled manner as one applies the Type 1 and Type 2 moves.&lt;br /&gt;
* We know that the first box can never contain more than one coin.  What can we say about the second box, third box, etc.?&lt;br /&gt;
** There may be a recursive formula for the maximal size of box &amp;lt;math&amp;gt;B_j&amp;lt;/math&amp;gt;, possibly requiring one to solve the five-box, four-box, etc. problems first.&lt;br /&gt;
* Work backwards?&lt;br /&gt;
* Try to completely solve the three-box problem (say) first: starting from &amp;lt;math&amp;gt;[X,Y,Z]&amp;lt;/math&amp;gt;, what is the most number of coins one can generate?&lt;br /&gt;
&lt;br /&gt;
== Compound moves ==&lt;br /&gt;
&lt;br /&gt;
Here we use Type 1 move &amp;lt;math&amp;gt;[X,Y] \mapsto [X-1,Y+2]&amp;lt;/math&amp;gt; and the Type 2 move &amp;lt;math&amp;gt;[N,X,Y] \mapsto [N-1,Y,X]&amp;lt;/math&amp;gt; to create more advanced moves.&lt;br /&gt;
&lt;br /&gt;
# We can create the move &amp;lt;math&amp;gt;[X,Y] \mapsto [0,Y+2X]&amp;lt;/math&amp;gt; from repeated application of Type 1.&lt;br /&gt;
# We have &amp;lt;math&amp;gt;[1,X,Y] \mapsto [0,0,X+2Y]&amp;lt;/math&amp;gt; by applying Type 2 once and then Type 1 Y times.&lt;br /&gt;
#* Or, by using advanced move 1 first, the move &amp;lt;math&amp;gt;[1, X, Y] \to [1, 0, Y+2X] \to [0, Y+2X, 0] \to [0, 0, 2Y+4X]&amp;lt;/math&amp;gt;.&lt;br /&gt;
# More generally, we have &amp;lt;math&amp;gt;[N,0,0] \to [N-1,2,0] \to [N-1,0,4] \to [N-2,4,0] \to [N-2,0,8] \to \ldots \to [0,0,2^{N+1}]&amp;lt;/math&amp;gt;.&lt;br /&gt;
# &amp;lt;math&amp;gt;[a,b,0,0] \to [a,0,0,2^b] \to [a-1,1,0,2^{b+1}] \to [a-2,2^{b+1},0,0] \to [a-2, 0,0,2^{2^{b+1}}] \to \cdots&amp;lt;/math&amp;gt;. So let &amp;lt;math&amp;gt; x_0=b, x_{n+1}=2^{x_n}&amp;lt;/math&amp;gt; then we obtain &amp;lt;math&amp;gt;[0,x_a,0,0]&amp;lt;/math&amp;gt;, which is huge enough.&lt;br /&gt;
&lt;br /&gt;
== World records ==&lt;br /&gt;
&lt;br /&gt;
To make the second box as big as possible:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;[1,1,1] \mapsto [1,0,3] \mapsto [0,3,0]&amp;lt;/math&amp;gt; places 3 coins in box 2.&lt;br /&gt;
&lt;br /&gt;
To make the third box as big as possible:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;[1,1,1] \mapsto [0,3,1] \mapsto [0,0,7]&amp;lt;/math&amp;gt; places 7 coins in box 3.  (Here we use advanced move 2).&lt;br /&gt;
&lt;br /&gt;
To make the fourth box as big as possible&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;[1,1,1,1] \to [0,3,0,3] \to [0,2,2,3] \to [0,2,0,7] \to [0,1,7,0] \to [0,1,0,14]&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt; \to [0,0,14,0] \to [0,0,0,28]&amp;lt;/math&amp;gt; gives 28 coins in box 4.&lt;br /&gt;
&lt;br /&gt;
To make the sixth box as big as possible&lt;br /&gt;
&lt;br /&gt;
* Using the fourth box move we have &amp;lt;math&amp;gt;[0,0,0,28,1,1]&amp;lt;/math&amp;gt;.  We can move &amp;lt;math&amp;gt;[28,1,1]&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;[27,0,7]&amp;lt;/math&amp;gt; through Type 1; then using a variant of advanced move 3 we get &amp;lt;math&amp;gt;[0,0,7 * 2^{27}]&amp;lt;/math&amp;gt;, leading to &amp;lt;math&amp;gt;7 \times 2^{27}&amp;lt;/math&amp;gt; coins in the last box.&lt;br /&gt;
&lt;br /&gt;
== Completed solutions ==&lt;br /&gt;
&lt;br /&gt;
=== First solution ===&lt;br /&gt;
&lt;br /&gt;
=== Second solution ===&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2423</id>
		<title>Integer.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2423"/>
		<updated>2009-12-12T23:11:42Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Integer programming}\label{integer-sec}&lt;br /&gt;
&lt;br /&gt;
Integer programming is linear programming with solutions restricted to the integers.  A number of packages, for example Maple.12, can solve these problems.  It was used in several places during this project.&lt;br /&gt;
&lt;br /&gt;
The first place it was used was to find $c_5$, the size of the maximal subset of $[3]^5$ with no combinatorial lines.  One 0/1-variable was used for each point in the cube, and one linear inequality for each combinatorial line.  The inequalities were $x_i \geq 0$, $x_i\leq 1$, and $x_i+x_j+x_k\leq 2$ whenever the three points $i,j,k$ form a line.  The aim is then to maximize $\sum x_i$.  The computer found twelve solutions with 150 points, and found that there were no solutions with 151 points, so $c_5 = 150$.  It follows easily that $c_6 = 450$, but the same program was used as a check to show that any set of 451 points in $[3]^6$ has a combinatorial line.&lt;br /&gt;
&lt;br /&gt;
The second application of integer programming was the following routine, used for the 5 dimensional Moser problem to show that $c&#039;_5\ge 124$.&lt;br /&gt;
Let G be the 3-hypergraph with vertex set equal to $[3]^5$ as before and set $(I,J,K)\in E_3$ to be a 3-edge if and only if it is a geometric line.  $c&#039;_5$ is then the size of a maximal independent set.&lt;br /&gt;
Let $$ f(x) = \sum_I x_I - \sum_{(I,J,K)\in E_3} x_Ix_Jx_K. $$&lt;br /&gt;
&lt;br /&gt;
Let $A$ be the solid cube $[0,1]^{3^n}$, and $B$ its set of vertices $\{0,1\}^{3^n}$.  The following then holds,&lt;br /&gt;
$$c&#039;_n = \max_{x\in B} f(x) = \max_{x\in A} f(x).$$&lt;br /&gt;
&lt;br /&gt;
To check the first equality, if $V$ is a line-free set in $G$ of size $k$, set $x_J=1$ for $J\in V$, and zero otherwise. Then $f(x) = k$ because $V$ is line-free, so all the cubic terms are zero.  So $c&#039;_n \le max_{x\in\{0,1\}^{3^n}} f(x)$. Conversely, if for some $x\in\{0,1\}^{3^n}$, $f(x)=k$ and if there are triplets $x_I=x_J=x_K=1$ with $(I,J,K)\in E_3$, we change $x_I$ to 0. This reduces $\sum_I x_I$ by 1 but also reduce the second term of $f(x)$ by at least one. So repeating we can find an $x\in\{0,1\}^{3^n}$ with $f(x)\ge k$ and $x_Ix_Jx_K=0$ if $(I,J,K)\in E_3$, i.e. an independent set of size $\ge k$. So $c&#039;_n \ge max_{x\in\{0,1\}^{3^n}} f(x)$. The second equality follows from the maximum principle since $f$ is a square free polynomial.&lt;br /&gt;
$-f$ was minimized using Matlab&#039;s built-in minimization routine, and found a 124-point subset of $[3]^5$ with no geometric lines.&lt;br /&gt;
&lt;br /&gt;
A third application of integer programming is expanded in some detail in Section \ref{moser-upper-sec}.  Each point was classified by how many of its coordinates were 2. All the possible histograms or `statistics&#039; of points in a low-dimensional line-free set were computed by brute-force.  Since a low-dimensional space fits into a higher-dimensional space in many ways, the low-dimensional statistics have consequences for higher-dimensional sets.  Many dozens of inequalities were found for six-dimensional and higher spaces, and Maple&#039;s integer programming routine was used to find upper bounds on $c&#039;_n$.&lt;br /&gt;
&lt;br /&gt;
A fourth application of integer programming found many of our best lower bounds for both the DHJ problem and the Moser problem.  Assume that a solution is made up of complete $\Gamma(a,b,c)$ cells.  This drastically reduces the number of variables, from $3^n$ to $(n+2)(n+1)/2$ binary variables, one for each Gamma set.  In the DHJ problem, points in a combinatorial line will lie in cells of the form $\Gamma(a+r,b,c)$, $\Gamma(a,b+r,c)$ and $\Gamma(a,b,c+r)$ for some positive $r$.  Thus the line-free condition is met if we prevent equilateral triangles of this sort.  The Fujimura problem was to maximize the number of Gamma sets under this restriction, searching over the $(n+2)(n+1)/2$ binary variables.  To maximize the total number of points, each Gamma set $\Gamma(a,b,c)$ is weighted by its size $(a+b+c)!/(a!b!c!)$, but the restrictions are the same.&lt;br /&gt;
&lt;br /&gt;
Conversely, an attempt was made to disprove the `hyper-optimistic conjecture&#039; mentioned in the Introduction.  Each point of $[3]^n$ was given a weight of $1/(a!b!c!)$ when the point&#039;s coordinates included $a$ 1s, $b$ 2s and $c$ 3s.  This gave each $\Gamma_{a,b,c}$ cell an equal weight of 1.  In fact, since an integer programming routine was being used, each point was given the weight $(a+b+c)!/(a!b!c!)$.  These numbers quickly grew too large for the routine.  &lt;br /&gt;
&lt;br /&gt;
In the Moser-Fujimura problem, we look for collections of $\Gamma(a,b,c)$ that do not contain geometric lines.  This is satisfied if there are no isosceles triangles of the form $(a+r,b,c+s)$, $(a,b+r+s,c)$, $(a+s,b,c+r)$.  Again, we run a search over the $(n+2)(n+1)/2$ binary variables, with $\Gamma(a,b,c)$ weighted by $(a+b+c)!/(a!b!c!)$, to maximize the total number of points.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Outline_of_second_paper&amp;diff=2421</id>
		<title>Outline of second paper</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Outline_of_second_paper&amp;diff=2421"/>
		<updated>2009-11-20T06:15:50Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is a proposed outline of the second paper, which will focus on the new bounds on DHJ(3) and Moser numbers, and related quantities.&lt;br /&gt;
&lt;br /&gt;
== Metadata ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Author&#039;&#039;&#039;: D.H.J. Polymath&lt;br /&gt;
* &#039;&#039;&#039;Address&#039;&#039;&#039;: http://michaelnielsen.org/polymath1/index.php  (Do we need a more stable address?)&lt;br /&gt;
* &#039;&#039;&#039;Email&#039;&#039;&#039;: ???&lt;br /&gt;
* &#039;&#039;&#039;Title&#039;&#039;&#039;: Density Hales-Jewett and Moser numbers &lt;br /&gt;
* &#039;&#039;&#039;AMS Subject classification&#039;&#039;&#039;: ???&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
(A draft proposal - please edit)&lt;br /&gt;
&lt;br /&gt;
For any &amp;lt;math&amp;gt;n \geq 0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k \geq 1&amp;lt;/math&amp;gt;, the density Hales-Jewett number &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; is defined as the size of the largest subset of the cube &amp;lt;math&amp;gt;[k]^n := \{1,\ldots,k\}^n&amp;lt;/math&amp;gt; which contains no combinatorial line; similarly, the Moser number &amp;lt;math&amp;gt;c&#039;_{n,k}&amp;lt;/math&amp;gt; is the largest subset of the cube &amp;lt;math&amp;gt;[k]^n&amp;lt;/math&amp;gt; which contains no geometric line.  A deep theorem of Furstenberg and Katznelson [cite] shows that &amp;lt;math&amp;gt;c_{n,k} = o(k^n)&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;n \to \infty&amp;lt;/math&amp;gt; (which implies a similar claim for &amp;lt;math&amp;gt;c&#039;_{n,k}&amp;lt;/math&amp;gt;; this is already non-trivial for &amp;lt;math&amp;gt;k=3&amp;lt;/math&amp;gt;.  Several new proofs of this result have also been recently established [cite Polymath], [cite Austin].&lt;br /&gt;
&lt;br /&gt;
Using both human and computer-assisted arguments, we compute several values of &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_{n,k}&amp;lt;/math&amp;gt; for small &amp;lt;math&amp;gt;n,k&amp;lt;/math&amp;gt;.  For instance the sequence &amp;lt;math&amp;gt;c_{n,3}&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;n=0,\ldots,6&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;1,2,6,18,52,150,450&amp;lt;/math&amp;gt;, while the sequence &amp;lt;math&amp;gt;c&#039;_{n,3}&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;n=0,\ldots,6&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;1,2,6,16,43,124,353&amp;lt;/math&amp;gt;.  We also establish some results for higher &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, showing for instance that an analogue of the LYM inequality (which relates to the &amp;lt;math&amp;gt;k=2&amp;lt;/math&amp;gt; case) does not hold for higher &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Sections ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
Basic definitions.  Definitions and notational conventions include&lt;br /&gt;
&lt;br /&gt;
* [k] = {1, 2, ..., k}&lt;br /&gt;
* Subsets of [k]^n are called A&lt;br /&gt;
* definition of combinatorial line, geometric line&lt;br /&gt;
* Hales-Jewett numbers, Moser numbers&lt;br /&gt;
&lt;br /&gt;
History of and motivation for the problem:&lt;br /&gt;
&lt;br /&gt;
* Sperner&#039;s theorem&lt;br /&gt;
* Density Hales-Jewett theorem, including new proofs&lt;br /&gt;
* Review literature on Moser problem&lt;br /&gt;
&lt;br /&gt;
New results&lt;br /&gt;
&lt;br /&gt;
* Computation of several values of &amp;lt;math&amp;gt;c_{n,3}&amp;lt;/math&amp;gt;&lt;br /&gt;
* Computation of several values of &amp;lt;math&amp;gt;c&#039;_{n,3}&amp;lt;/math&amp;gt;&lt;br /&gt;
* Asymptotic lower bounds for &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt;&lt;br /&gt;
* Genetic algorithm lower bounds&lt;br /&gt;
* Some bounds for &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; for low n and large k&lt;br /&gt;
* Connection between Moser(2k) and DHJ(k)&lt;br /&gt;
* Hyper-optimistic conjecture, and its failure&lt;br /&gt;
* New bounds for colouring Hales-Jewett numbers&lt;br /&gt;
* Kakeya problem for &amp;lt;math&amp;gt;Z_3^n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lower bounds for density Hales-Jewett ===&lt;br /&gt;
&lt;br /&gt;
Fujimura implies DHJ lower bounds; some selected numerics (e.g. lower bounds up to 10 dimensions, plus a few dimensions afterwards).&lt;br /&gt;
&lt;br /&gt;
The precise asymptotic bound of &amp;lt;math&amp;gt;c_{n,k} &amp;gt; C k^{n - \alpha(k)\sqrt[\ell]{\log n}+\beta(k) \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Discussion of genetic algorithm&lt;br /&gt;
&lt;br /&gt;
=== Low-dimensional density Hales-Jewett numbers ===&lt;br /&gt;
&lt;br /&gt;
==== Very small n ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n=0,1,2&amp;lt;/math&amp;gt; are trivial.  But the six-point examples will get mentioned a lot.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;n=3&amp;lt;/math&amp;gt;, one needs to classify the 17-point and 18-point examples.&lt;br /&gt;
&lt;br /&gt;
==== n=4 ====&lt;br /&gt;
&lt;br /&gt;
One needs to classify the 50-point, 51-point, and 52-point examples.&lt;br /&gt;
&lt;br /&gt;
==== n=5 ====&lt;br /&gt;
&lt;br /&gt;
This is the big section, showing there are no 151-point examples.&lt;br /&gt;
&lt;br /&gt;
==== n=6 ====&lt;br /&gt;
&lt;br /&gt;
Easy corollary of n=5 theory&lt;br /&gt;
&lt;br /&gt;
=== Higher k DHJ numbers ===&lt;br /&gt;
&lt;br /&gt;
Exact computations of &amp;lt;math&amp;gt;c_{2,k}, c_{3,k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Connection between Moser&amp;lt;math&amp;gt;(n,2k)&amp;lt;/math&amp;gt; and DHJ&amp;lt;math&amp;gt;(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Numerics&lt;br /&gt;
&lt;br /&gt;
Failure of hyper-optimistic conjecture&lt;br /&gt;
&lt;br /&gt;
=== Lower bounds for Moser ===&lt;br /&gt;
&lt;br /&gt;
Using Gamma sets to get lower bounds&lt;br /&gt;
&lt;br /&gt;
Adding extra points from degenerate triangles&lt;br /&gt;
&lt;br /&gt;
Higher k; Implications between Moser and DHJ&lt;br /&gt;
&lt;br /&gt;
=== Moser in low dimensions ===&lt;br /&gt;
&lt;br /&gt;
There is some general slicing lemma that needs to be proved here that allows inequalities for low-dim Moser to imply inequalities for higher dim.&lt;br /&gt;
&lt;br /&gt;
For n=0,1,2 the theory is trivial.&lt;br /&gt;
&lt;br /&gt;
For n=3 we need the classification of Pareto optimal configurations etc.  So far this is only done by computer brute force search; we may have to find a human version.&lt;br /&gt;
&lt;br /&gt;
n=4 theory: include both computer results and human results&lt;br /&gt;
&lt;br /&gt;
n=5: we have a proof using the n=4 computer data; we should keep looking for a purely human proof.&lt;br /&gt;
&lt;br /&gt;
n=6: we can give the partial results we have.&lt;br /&gt;
&lt;br /&gt;
=== Fujimura&#039;s problem ===&lt;br /&gt;
&lt;br /&gt;
=== Coloring DHJ ===&lt;br /&gt;
&lt;br /&gt;
== Files ==&lt;br /&gt;
&lt;br /&gt;
* [[polymath.tex]]&lt;br /&gt;
* [[introduction.tex]]&lt;br /&gt;
* [[dhj-lown.tex]]&lt;br /&gt;
* [[dhj-lown-lower.tex]]&lt;br /&gt;
* [[moser.tex]]&lt;br /&gt;
* [[moser-lower.tex]]&lt;br /&gt;
* [[fujimura.tex]]&lt;br /&gt;
* [[higherk.tex]]&lt;br /&gt;
* [[genetic.tex]]&lt;br /&gt;
* [[integer.tex]]&lt;br /&gt;
* [[coloring.tex]]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/alllinesin3n.pdf A figure depicting combinatorial lines]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/allgeomlinesin3n.pdf A figure depicting geometric lines]&lt;br /&gt;
* [http://thomas1111.files.wordpress.com/2009/06/moser353new.png A figure depicting a 353-point 6D Moser set]&lt;br /&gt;
&lt;br /&gt;
The above are the master copies of the LaTeX files.  Below are various compiled versions of the source:&lt;br /&gt;
&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/05/polymath.pdf May 24 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/05/polymath1.pdf May 25 version]&lt;br /&gt;
* [http://terrytao.files.wordpress.com/2009/05/polymath2.pdf May 27 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/05/polymath3.pdf Jun 1 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/06/polymath.pdf Jun 3 version]&lt;br /&gt;
* [http://terrytao.files.wordpress.com/2009/06/polymath2.pdf Jun 18 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/polymath.pdf Jul 9 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/polymath1.pdf Jul 25 version]&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2219</id>
		<title>Integer.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2219"/>
		<updated>2009-08-05T04:54:40Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Integer programming}\label{integer-sec}&lt;br /&gt;
&lt;br /&gt;
Integer programming is linear programming with solutions restricted to the integers.  A number of packages, for example Maple.12, can solve these problems.  It was used in several places during this project.&lt;br /&gt;
&lt;br /&gt;
The first place it was used was to find $c_5$, the size of the maximal subset of $[3]^5$ with no combinatorial lines.  One 0/1-variable was used for each point in the cube, and one linear inequality for each combinatorial line.  The inequalities were $x_i \geq 0$, $x_i\leq 1$, and $x_i+x_j+x_k\leq 2$ whenever the three points $i,j,k$ form a line.  The aim is then to maximize $\sum x_i$.  The computer found twelve solutions with 150 points, and found that there were no solutions with 151 points, so $c_5 = 150$.  It follows easily that $c_6 = 450$, but the same program was used as a check to show that any set of 451 points in $[3]^6$ has a combinatorial line.&lt;br /&gt;
&lt;br /&gt;
The following routine was used for the 5 dimensional Moser problem to show that $c&#039;_5\ge 124$.&lt;br /&gt;
Let G be the 3-hypergraph with vertex set equal to $[3]^5$ as before and set $(I,J,K)\in E_3$ to be a 3-edge if and only if it is a geometric line.  $c&#039;_5$ is then the size of a maximal independent set.&lt;br /&gt;
Let $$ f(x) = \sum_I x_I - \sum_{(I,J,K)\in E_3} x_Ix_Jx_K. $$&lt;br /&gt;
&lt;br /&gt;
Let $A$ be the solid cube $[0,1]^{3^n}$, and $B$ its set of vertices $\{0,1\}^{3^n}$.  The following then holds,&lt;br /&gt;
$$c&#039;_n = \max_{x\in B} f(x) = \max_{x\in A} f(x).$$&lt;br /&gt;
&lt;br /&gt;
To check the first equality, if $V$ is a line-free set in $G$ of size $k$, set $x_J=1$ for $J\in V$, and zero otherwise. Then $f(x) = k$ because $V$ is line-free, so all the cubic terms are zero.  So $c&#039;_n \le max_{x\in\{0,1\}^{3^n}} f(x)$. Conversely, if for some $x\in\{0,1\}^{3^n}$, $f(x)=k$ and if there are triplets $x_I=x_J=x_K=1$ with $(I,J,K)\in E_3$, we change $x_I$ to 0. This reduces $\sum_I x_I$ by 1 but also reduce the second term of $f(x)$ by at least one. So repeating we can find an $x\in\{0,1\}^{3^n}$ with $f(x)\ge k$ and $x_Ix_Jx_K=0$ if $(I,J,K)\in E_3$, i.e. an independent set of size $\ge k$. So $c&#039;_n \ge max_{x\in\{0,1\}^{3^n}} f(x)$. The second equality follows from the maximum principle since $f$ is a square free polynomial.&lt;br /&gt;
$-f$ was minimized using Matlab&#039;s built-in minimization routine, and found a 124-point subset of $[3]^5$ with no geometric lines.&lt;br /&gt;
&lt;br /&gt;
A third application of integer programming is expanded in some detail in Section \ref{moser-upper-sec}.  Each point was classified by how many of its coordinates were 2. All the possible histograms or `statistics&#039; of points in a low-dimensional line-free set were computed by brute-force.  Since a low-dimensional space fits into a higher-dimensional space in many ways, the low-dimensional statistics have consequences for higher-dimensional sets.  Many dozens of inequalities were found for six-dimensional and higher spaces, and Maple&#039;s integer programming routine was used to find upper bounds on $c&#039;_n$.&lt;br /&gt;
&lt;br /&gt;
A fourth application of integer programming found many of our best lower bounds for both the DHJ problem and the Moser problem.  Assume that a solution is made up of complete $\Gamma(a,b,c)$ cells.  This drastically reduces the number of variables, from $3^n$ to $(n+2)(n+1)/2$ binary variables, one for each Gamma set.  In the DHJ problem, points in a combinatorial line will lie in cells of the form $\Gamma(a+r,b,c)$, $\Gamma(a,b+r,c)$ and $\Gamma(a,b,c+r)$ for some positive $r$.  Thus the line-free condition is met if we prevent equilateral triangles of this sort.  The Fujimura problem was to maximize the number of Gamma sets under this restriction, searching over the $(n+2)(n+1)/2$ binary variables.  To maximize the total number of points, each Gamma set $\Gamma(a,b,c)$ is weighted by its size $(a+b+c)!/(a!b!c!)$, but the restrictions are the same.&lt;br /&gt;
&lt;br /&gt;
Conversely, an attempt was made to disprove the `hyper-optimistic conjecture&#039; mentioned in the Introduction.  Each point of $[3]^n$ was given a weight of $1/(a!b!c!)$ when the point&#039;s coordinates included $a$ 1s, $b$ 2s and $c$ 3s.  This gave each $\Gamma_{a,b,c}$ cell an equal weight of 1.  In fact, since an integer programming routine was being used, each point was given the weight $(a+b+c)!/(a!b!c!)$.  These numbers quickly grew too large for the routine.  &lt;br /&gt;
&lt;br /&gt;
In the Moser-Fujimura problem, we look for collections of $\Gamma(a,b,c)$ that do not contain geometric lines.  This is satisfied if there are no isosceles triangles of the form $(a+r,b,c+s)$, $(a,b+r+s,c)$, $(a+s,b,c+r)$.  Again, we run a search over the $(n+2)(n+1)/2$ binary variables, with $\Gamma(a,b,c)$ weighted by $(a+b+c)!/(a!b!c!)$, to maximize the total number of points.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2046</id>
		<title>Integer.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2046"/>
		<updated>2009-07-27T14:06:55Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Integer programming}\label{integer-sec}&lt;br /&gt;
&lt;br /&gt;
Integer programming is linear programming with solutions restricted to the integers.  A number of packages, for example Maple.12, can solve these problems.  It was used in several places during this project.&lt;br /&gt;
&lt;br /&gt;
The first place it was used was to find $c_5$, the size of the maximal subset of $[3]^5$ with no combinatorial lines.  One 0/1-variable was used for each point in the cube, and one linear inequality for each combinatorial line.  The computer found twelve solutions with 150 points, and found that there were no solutions with 151 points, so $c_5 = 150$.  It follows easily that $c_6 = 450$, but the same program was used as a check to show that any set of 451 points in $[3]^6$ has a combinatorial line.&lt;br /&gt;
&lt;br /&gt;
The following routine was used for the 5 dimensional Moser problem to show that $c&#039;_5\ge 124$.&lt;br /&gt;
Let G be the 3-hypergraph with vertex set equal to $[3]^5$ as before and set $(I,J,K)\in E_3$ to be a 3-edge if and only if it is a geometric line.  $c&#039;_5$ is then the size of a maximal independent set.&lt;br /&gt;
Let $$ f(x) = \sum_I x_I - \sum_{(I,J,K)\in E_3} x_Ix_Jx_K. $$&lt;br /&gt;
&lt;br /&gt;
The following then holds,&lt;br /&gt;
$$c&#039;_n = \max_{x\in\{0,1\}^{3^n}} f(x) = \max_{x\in [0,1]^{3^n}} f(x).$$&lt;br /&gt;
&lt;br /&gt;
To check the first equality, if $V$ is a line-free set in $G$ of size $k$, set $x_J=1$ for $J\in V$, and zero otherwise. Then $f(x) = k$ because $V$ is line-free, so all the cubic terms are zero.  So $c&#039;_n \le max_{x\in\{0,1\}^{3^n}} f(x)$. Conversely, if for some $x\in\{0,1\}^{3^n}$, $f(x)=k$ and if there are triplets $x_I=x_J=x_K=1$ with $(I,J,K)\in E_3$, we change $x_I$ to 0. This reduces $\sum_I x_I$ by 1 but also reduce the second term of $f(x)$ by at least one. So repeating we can find an $x\in\{0,1\}^{3^n}$ with $f(x)\ge k$ and $x_Ix_Jx_K=0$ if $(I,J,K)\in E_3$, i.e. an independent set of size $\ge k$. So $c&#039;_n \ge max_{x\in\{0,1\}^{3^n}} f(x)$. The second equality follows from the maximum principle since $f$ is a square free polynomial.&lt;br /&gt;
$-f$ was then minimized using Matlab&#039;s built-in minimization routine, and found a 124-point subset of $[3]^5$ with no geometric lines.&lt;br /&gt;
&lt;br /&gt;
A third application of integer programming is expanded in some detail in Section \ref{moser-upper-sec}.  Each point was classified by how many of its coordinates were 2. All the possible histograms or `statistics&#039; of points in a low-dimensional line-free set were computed by brute-force.  Since a low-dimensional space fits into a higher-dimensional space in many ways, the low-dimensional statistics have consequences for higher-dimensional sets.  Many dozens of inequalities were found for six-dimensional and higher spaces, and Maple&#039;s integer programming routine was used to find upper bounds on $c&#039;_n$.&lt;br /&gt;
&lt;br /&gt;
A fourth application of integer programming found many of our best lower bounds for both the DHJ problem and the Moser problem.  Assume that a solution is made up of complete $\Gamma(a,b,c)$ cells.  This drastically reduces the number of variables, from $3^n$ to $(n+2)(n+1)/2$ binary variables, one for each Gamma set.  In the DHJ problem, points in a combinatorial line will lie in cells of the form $\Gamma(a+r,b,c)$, $\Gamma(a,b+r,c)$ and $\Gamma(a,b,c+r)$ for some positive $r$.  Thus the line-free condition is met if we prevent equilateral triangles of this sort.  The Fujimura problem was to maximize the number of Gamma sets under this restriction, searching over the $(n+2)(n+1)/2$ binary variables.  To maximize the total number of points, each Gamma set $\Gamma(a,b,c)$ is weighted by its size $(a+b+c)!/(a!b!c!)$, but the restrictions are the same.&lt;br /&gt;
&lt;br /&gt;
Conversely, an attempt was made to disprove the `hyper-optimistic conjecture&#039; mentioned in the Introduction.  Each point of $[3]^n$ was given a weight of $1/(a!b!c!)$ when the point&#039;s coordinates included $a$ 1s, $b$ 2s and $c$ 3s.  This gave each $\Gamma_{a,b,c}$ cell an equal weight of 1.  In fact, since an integer programming routine was being used, each point was given the weight $(a+b+c)!/(a!b!c!)$.  These numbers quickly grew too large for the routine.  &lt;br /&gt;
&lt;br /&gt;
In the Moser-Fujimura problem, we look for collections of $\Gamma(a,b,c)$ that do not contain geometric lines.  This is satisfied if there are no isosceles triangles of the form $(a+r,b,c+s)$, $(a,b+r+s,c)$, $(a+s,b,c+r)$.  Again, we run a search over the $(n+2)(n+1)/2$ binary variables, with $\Gamma(a,b,c)$ weighted by $(a+b+c)!/(a!b!c!)$, to maximize the total number of points.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Higherk.tex&amp;diff=2045</id>
		<title>Higherk.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Higherk.tex&amp;diff=2045"/>
		<updated>2009-07-27T13:48:59Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Higher-k DHJ numbers}\label{higherk-sec}&lt;br /&gt;
&lt;br /&gt;
For any $n$, $k$ let $c_{n,k}$ denote the cardinality of the largest subset of $[k]{}^n$ that does not contain a combinatorial line. When $k=3$, the quantity $c_{n,k} = c_n$ is studied in Sections \ref{dhj-lower-sec}, \ref{dhj-upper-sec}. The density Hales-Jewett theorem asserts that for any fixed $k$, $\lim_{n\rightarrow\infty} c_n/k^n = 0$ .&lt;br /&gt;
We trivially have $c_{n,1} = 0$ for $n &amp;gt; 0$, and Sperner&#039;s theorem tells us that &lt;br /&gt;
$$c_{n,2} = \binom{n}{\lfloor n/2 \rfloor}$$.&lt;br /&gt;
Now we look at the opposite regime, in which $n$ is small and $k$ is large. We easily have $c_{1,k} = k-1$ together with the trivial bound $c_{n+1,k} \leq kc_{n,k}$.  This implies that &lt;br /&gt;
$$c_{n,k}\leq (k-1)k^{n-1}$$&lt;br /&gt;
for any $n\geq 1$. Let us call a pair $(n,k)$ with $n &amp;gt; 0$ \emph{saturated} if $c_{n,k}=(k-1)k^{n-1}$, thus there exists a line-free set with exactly one point omitted from every row and column.&lt;br /&gt;
The question naturally arises, Which pairs $(n,k)$ are saturated?  From the above discussion we see that $(1,k)$ is saturated for all $k \geq 1$, and $(n,1)$ is (rather trivially) saturated for all $n$.  Sperner&#039;s theorem tells us that $(n,2)$ is saturated only for $n= 1, 2$. Note that if $(n,k)$ is unsaturated then $(n&#039;,k)$ will be unsaturated for all $n&#039; &amp;gt; n$.&lt;br /&gt;
A computer search has found the following $c_{n,k}$ values for different values of dimension $n$ and edgelength $k$. Several of these values reach the upper bound of  $(k - 1)k^{n-1}$.&lt;br /&gt;
&lt;br /&gt;
\begin{tabular}{|l|cccccc} &lt;br /&gt;
$n\backslash k$ &amp;amp; 2&amp;amp; 3 &amp;amp; 4 &amp;amp;  5 &amp;amp; 6 &amp;amp; 7 \\&lt;br /&gt;
\hline&lt;br /&gt;
2 &amp;amp; 2 &amp;amp; 6 &amp;amp; 12 &amp;amp; 20 &amp;amp; 30 &amp;amp; 42\\&lt;br /&gt;
3 &amp;amp; 3 &amp;amp; 18 &amp;amp; 48 &amp;amp; 100 &amp;amp; 180 &amp;amp; 294\\&lt;br /&gt;
4 &amp;amp; 6 &amp;amp; 52 &amp;amp; 183 &amp;amp; 500 &amp;amp; 1051-1079 &amp;amp; 2058\\&lt;br /&gt;
5 &amp;amp; 10 &amp;amp; 150 &amp;amp; 712-732 &amp;amp; 2500 &amp;amp; 6325-6480 &amp;amp; 14406&lt;br /&gt;
\end{tabular}&lt;br /&gt;
&lt;br /&gt;
$(2,k)$ is saturated when $k$ is at least $1$.  In dimension two the maximal set size is $k(k-1)$. This can be done by removing the diagonal values $11, 22, 33, \ldots, kk$. Since they are in disjoint lines this removal is minimal.&lt;br /&gt;
The $k$ missing points are one per line and one per column. So their $y$-coordinates are a shuffle of their $x$-coordinates. There are $k!$ rearrangements of the numbers $1$ to $k$. The $k$ points include a point on the diagonal, so this shuffle is not a derangement. There are $k!/e$ derangements of the numbers $1$ to $k$, so $k!(1-1/e)$ optimal solutions.  This number of optimal solutions is sequence A002467 from the Online Encyclopedia of Integer Sequences. &lt;br /&gt;
 &lt;br /&gt;
$(3,k)$ is saturated when $k&amp;gt;2$.  Let $S$ be a latin square of side $k$ on the symbols $1…k$, with colour $i$ in position $(i,i)$ (This is not possible for $k=2$)&lt;br /&gt;
Let axis one in $S$ correspond to coordinate $1$ in $[k]{}^3$, axis two to coordinate $2$ and interpret the colour in position $(i,j)$ as the third coordinate. Delete the points so defined.&lt;br /&gt;
The line with three wild cards has now been removed. A line with two wildcards will be missing the point corresponding to the diagonal in $S$. A line with a single wildcard will be missing a point corresponding to an off diagonal point in $S$.&lt;br /&gt;
&lt;br /&gt;
$(n,k)$ is saturated when all prime divisors of $k$ are at least $n$.&lt;br /&gt;
First consider the case when $k$ is prime and at least $n$: Delete those points whose coordinates add up to a multiple of $k$. Every combinatorial line has one point deleted, except for the major diagonal of $n=k$, which has all points deleted.&lt;br /&gt;
Now consider for instance the case $(n,k) = (4,35)$. Select one value modulo $35$ and eliminate it. Combinatorial lines with one, two, three or four moving coordinates will realize all values modulo $35$ as one, two, three, or four are units modulo $35$, thus $(4,35)$ is saturated.&lt;br /&gt;
The same argument tells us that $(n,k)$ is saturated when all prime divisors of $k$ are at least $n$.&lt;br /&gt;
On the other hand, computer data shows that $(4,4)$ and $(4,6)$ are not saturated.&lt;br /&gt;
&lt;br /&gt;
\subsection{Failure of Hyper-optimistic conjecture}\label{HOCfailure}&lt;br /&gt;
Let $\overline{c}^\mu_{n,4}$ be the largest subset of the tetrahedral grid:&lt;br /&gt;
$$\{(a,b,c,d)\in\mathbb{Z}^4_+ : a+b+c+d = n\}$$&lt;br /&gt;
which contains no tetrahedrons $(a + r,b,c,d)$,$(a,b + r,c,d)$,$(a,b,c + r,d)$,$(a,b,c,d + r)$ with $r &amp;gt; 0$; call such sets tetrahedron-free.&lt;br /&gt;
The first few values, for $n$ from 0 to 7, were found by an integer programming routine, and are given in Figure \ref{Fujimura4}.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]\centerline{&lt;br /&gt;
\begin{tabular}{lllllllll}&lt;br /&gt;
                       n &amp;amp; 0 &amp;amp; 1 &amp;amp; 2 &amp;amp; 3  &amp;amp; 4  &amp;amp; 5  &amp;amp; 6  &amp;amp; 7 \\&lt;br /&gt;
$\overline{c}^\mu_{n,4}$ &amp;amp; 1 &amp;amp; 3 &amp;amp; 7 &amp;amp; 14 &amp;amp; 24 &amp;amp; 37 &amp;amp; 55 &amp;amp; 78&lt;br /&gt;
\end{tabular}&lt;br /&gt;
}&lt;br /&gt;
\label{Fujimura4}&lt;br /&gt;
\caption{Fujimura numbers $\overline{c}^\mu_{n,4}$}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
Recall the &#039;hyper-optimistic&#039; Conjecture \ref{hoc} that the weighted sum of the points in any combinatorial line-free set is at most $\overline{c}^\mu_{n,4}$.  The following example with $n=2$ and $k=4$ has a weighted sum of $7.5$, and therefore disproves the conjecture for these values of $n$ and $k$.  (Note that for all odd numbers including the case $k=3$, which is at the centre of most of Polymath&#039;s interest, is still open.&lt;br /&gt;
&lt;br /&gt;
$$\{(1, 1), (1, 2), (1, 3), (2, 1), (2, 3), (2, 4), (3, 2), (3, 3), (3,&lt;br /&gt;
4), (4, 1), (4, 2), (4, 4)\}$$&lt;br /&gt;
&lt;br /&gt;
The above counterexample can be extended to all even numbers  greater than 2 as follows. One takes one element on the diagonal say $(n,n)$ then one can take $(a,a+1)$ for all $n-1$ values 0 through $n-2$ and $(n-1,0)$ this will block all combinatorial lines and it has weight (n+1)/2. The complement of this thus line free. Its weight is greater than any set of slices. For each such set must contain at least one diagonal blocking point and $n-1$ other blocking points if it has two or more diagonal blocking points the complement will be less than the above set(there must be at least $n$ blocking points so 2 or more diagonal points increase the weight by $1/2$ and pushes it over the limit constructed above. If it has one then because of parity reasons it must have an additional point (there are an odd number of coordinates to take care of and since if $(a,b)$ is in the blocking set $(b,a)$ must be as well, coordinates must be blocked by pairs there is one left over which requires an addition point or an addition point of the form $(a,a)$ which makes the line free set lower than the above construction. The HOC is known to be true for 2 and for even numbers greater than 2 by the above it is false.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=2044</id>
		<title>Fujimura.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=2044"/>
		<updated>2009-07-27T13:46:05Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Fujimura&#039;s problem}\label{fujimura-sec}&lt;br /&gt;
&lt;br /&gt;
Let $\overline{c}^\mu_n$ be the size of the largest subset of the trianglular grid &lt;br /&gt;
$$\Delta_n := \{(a,b,c)\in {\mathbb Z}^3_+ : a+b+c = n\}$$&lt;br /&gt;
which contains no equilateral triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ with $r&amp;gt;0$.  These are upward-pointing equilateral triangles.  We shall refer to such sets as &#039;triangle-free&#039;.&lt;br /&gt;
(Kobon Fujimura is a prolific inventor of puzzles, and in [http://www.puzzles.com/PuzzlePlayground/CoinsAndTriangles/CoinsAndTriangles.htm this] puzzle asked the related question of eliminating all equilateral triangles.)&lt;br /&gt;
&lt;br /&gt;
The table in Figure \ref{lowFujimura} was formed mostly by computer searches for optimal solutions. We also found human proofs for most of them (see {\tt http://michaelnielsen.org/polymath1/index.php?title=Fujimura&#039;s\_problem}).&lt;br /&gt;
&lt;br /&gt;
\begin{figure}&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{l|llllllllllllll}&lt;br /&gt;
$n$                  &amp;amp; 0 &amp;amp; 1 &amp;amp; 2 &amp;amp; 3 &amp;amp; 4 &amp;amp;  5 &amp;amp;  6 &amp;amp;  7 &amp;amp;  8 &amp;amp;  9 &amp;amp; 10 &amp;amp; 11 &amp;amp; 12 &amp;amp; 13\\&lt;br /&gt;
\hline &lt;br /&gt;
$\overline{c}^\mu_n$ &amp;amp; 1 &amp;amp; 2 &amp;amp; 4 &amp;amp; 6 &amp;amp; 9 &amp;amp; 12 &amp;amp; 15 &amp;amp; 18 &amp;amp; 22 &amp;amp; 26 &amp;amp; 31 &amp;amp; 35 &amp;amp; 40 &amp;amp; 46&lt;br /&gt;
\end{tabular}&lt;br /&gt;
}&lt;br /&gt;
\label{lowFujimura}&lt;br /&gt;
\caption{Fujimura numbers}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
For any equilateral triangle $(a+r,b,c)$,$(a,b+r,c)$ and $(a,b,c+r)$, the value $y+2z$ forms an arithmetic progression of length 3. A Behrend set is a finite set of integers with no arithmetic progression of length 3 (see {\tt http://arxiv.org/PS\_cache/arxiv/pdf/0811/0811.3057v2.pdf}). By looking at those triples $(a,b,c)$ with $a+2b$ inside a Behrend set, one can obtain the lower bound of $\overline{c}^\mu_n \geq n^2 exp(-O(\sqrt{\log n}))$.&lt;br /&gt;
&lt;br /&gt;
It can be shown by a `corners theorem&#039; of Ajtai and Szemeredi \cite{ajtai} that $\overline{c}^\mu_n = o(n^2)$ as $n \rightarrow \infty$.&lt;br /&gt;
&lt;br /&gt;
An explicit lower bound is $3(n-1)$, made of all points in $\Delta_n$ with exactly one coordinate equal to zero.  &lt;br /&gt;
&lt;br /&gt;
An explicit upper bound comes from counting the triangles. There are $\binom{n+2}{3}$ triangles, and each point belongs to $n$ of them. So you must remove at least $(n+2)(n+1)/6$ points to remove all triangles, leaving $(n+2)(n+1)/3$ points as an upper bound for $\overline{c}^\mu_n$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=2043</id>
		<title>Moser-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=2043"/>
		<updated>2009-07-27T13:43:20Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the Moser problem}\label{moser-lower-sec}&lt;br /&gt;
&lt;br /&gt;
Just as for the DHJ problem, we found that Gamma sets $\Gamma_{a,b,c}$ were useful in providing large lower bounds for the Moser problem.  This is despite the fact that the symmetries of the cube do not respect Gamma sets.&lt;br /&gt;
&lt;br /&gt;
Observe that if $B \subset \Delta_n$, then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a Moser set as long as $B$ does not contain any ``isosceles triangles&#039;&#039; $(a+r,b,c+s), (a+s,b,c+r), (a,b+r+s,c)$ for any $r,s \geq 0$ not both zero; in particular, $B$ cannot contain any ``vertical line segments&#039;&#039; $(a+r,b,c+r), (a,b+2r,c)$.  An example of such a set is provided by selecting $0 \leq i \leq n-3$ and letting $B$ consist of the triples $(a, n-i, i-a)$ when $a \neq 3 \mod 3$, $(a,n-i-1,i+1-a)$ when $a \neq 1 \mod 3$, $(a,n-i-2,i+2-a)$ when $a=0 \mod 3$, and $(a,n-i-3,i+3-a)$ when $a=2 \mod 3$.  Asymptotically, this set includes about two thirds of the spheres $S_{n,i}$, $S_{n,i+1}$ and one third of the spheres $S_{n,i+2}, S_{n,i+3}$ and (setting $i$ close to $n/3$) gives a lower bound \eqref{cpn3} with $C = 2 \times \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
&lt;br /&gt;
An integer program was run to obtain the optimal lower bounds achievable by the $A_B$ construction (using \eqref{cn3}, of course).  The results for&lt;br /&gt;
$1 \leq n \leq 20$ are displayed in Figure \ref{nlow-moser}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	71766\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	212423\\&lt;br /&gt;
3 &amp;amp;	16 &amp;amp; 13&amp;amp;	614875\\&lt;br /&gt;
4 &amp;amp;	43 &amp;amp; 14&amp;amp;	1794212\\&lt;br /&gt;
5 &amp;amp;	122&amp;amp; 15&amp;amp;	5321796\\&lt;br /&gt;
6 &amp;amp;	353&amp;amp; 16&amp;amp;	15455256\\&lt;br /&gt;
7 &amp;amp;	1017&amp;amp; 17&amp;amp;	45345052\\&lt;br /&gt;
8 &amp;amp;	2902&amp;amp;18&amp;amp;	134438520\\&lt;br /&gt;
9 &amp;amp;	8622&amp;amp;19&amp;amp;	391796798\\&lt;br /&gt;
10&amp;amp;	24786&amp;amp; 20&amp;amp;	1153402148\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c&#039;_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow-moser}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at &lt;br /&gt;
\centerline{{\tt http://abel.math.umu.se/~klasm/Data/HJ/}.}&lt;br /&gt;
&lt;br /&gt;
Note that the lower bound $c&#039;_{6,3} \geq 353$ was first located by a genetic algorithm: see Appendix \ref{genetic-alg}.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{moser353new.png}}&lt;br /&gt;
\caption{One of the examples of $353$-point sets in $[3]^6$ (elements of the set being indicated by white squares).}&lt;br /&gt;
\label{moser353-fig}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
However, we have been unable to locate a lower bound which is asymptotically better than \eqref{cpn3}.  Indeed, any method based purely on the $A_B$ construction cannot do asymptotically better than the previous constructions:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  Let $B \subset \Delta_n$ be such that $A_B$ is a Moser set.  Then $|A_B| \leq (2 \sqrt{\frac{9}{4\pi}} + o(1)) \frac{3^n}{\sqrt{n}}$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  By the previous discussion, $B$ cannot contain any pair of the form $(a,b+2r,c), (a+r,b,c+r)$ with $r&amp;gt;0$.  In other words, for any $-n \leq h \leq n$, $B$ can contain at most one triple $(a,b,c)$ with $c-a=h$.  From this and \eqref{cn3}, we see that&lt;br /&gt;
$$ |A_B| \leq \sum_{h=-n}^n \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!}.$$&lt;br /&gt;
From the Chernoff inequality (or the Stirling formula computation below) we see that $\frac{n!}{a! b! c!} \leq \frac{1}{n^{10}} 3^n$ unless $a,b,c = n/3 + O( n^{1/2} \log^{1/2} n )$, so we may restrict to this regime, which also forces $h = O( n^{1/2}\log^{1/2} n)$.  If we write $a = n/3 + \alpha$, $b = n/3 + \beta$, $c = n/3+\gamma$ and apply Stirling&#039;s formula $n! = (1+o(1)) \sqrt{2\pi n} n^n e^{-n}$, we obtain &lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - (\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) - (\frac{n}{3}+\beta) \log (1 + \frac{3\beta}{n} ) - (\frac{n}{3}+\gamma) \log (1 + \frac{3\gamma}{n} ) ).$$&lt;br /&gt;
From Taylor expansion one has&lt;br /&gt;
$$ -(\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) = -\alpha - \frac{3}{2} \frac{\alpha^2}{n} + o(1)$$&lt;br /&gt;
and similarly for $\beta,\gamma$; since $\alpha+\beta+\gamma=0$, we conclude that&lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{2n} (\alpha^2+\beta^2+\gamma^2) ).$$&lt;br /&gt;
If $c-a=h$, then $\alpha^2+\beta^2+\gamma^2 = \frac{3\beta^2}{2} + \frac{h^2}{2}$.  Thus we see that&lt;br /&gt;
$$ \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!} \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{4n} h^2 ).$$&lt;br /&gt;
Using the integral test, we thus have&lt;br /&gt;
$$ |A_B| \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n  \int_\R \exp( - \frac{3}{4n} x^2 )\ dx.$$&lt;br /&gt;
Since $\int_\R \exp( - \frac{3}{4n} x^2 )\ dx = \sqrt{\frac{4\pi n}{3}}$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually it is possible to improve upon these bounds by a slight amount.  Observe that if $B$ is a maximiser for the right-hand side of \eqref{cn3} (subject to $B$ not containing isosceles triangles), then any triple $(a,b,c)$ not in $B$ must be the vertex of a (possibly degenerate) isosceles triangle with the other vertices in $B$.  If this triangle is non-degenerate, or if $(a,b,c)$ is the upper vertex of a degenerate isosceles triangle, then no point from $\Gamma_{a,b,c}$ can be added to $A_B$ without creating a geometric line. However, if $(a,b,c) = (a&#039;+r,b&#039;,c&#039;+r)$ is only the lower vertex of a degenerate isosceles triangle $(a&#039;+r,b&#039;,c&#039;+r), (a&#039;,b&#039;+2r,c&#039;)$, then one can add any subset of $\Gamma_{a,b,c}$ to $A_B$ and still have a Moser set as long as no pair of elements in that subset is separated by Hamming distance $2r$.  For instance, in the $n=5$ case, we can start with the 122-point set built from &lt;br /&gt;
$$B = \{ (0 0 5),(0 2 3),(1 1 3 ),(1 2 2 ),(2 2 1 ),(3 1 1 ),(3 2 0 ),(5 0 0))\}$$, and add a point each from (1 0 4) and (4 0 1).&lt;br /&gt;
This gives an example of the maximal, 124-point solution.  Again, in the $n=10$ case, the set&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B &amp;amp;= \{(0 0 10),(0 2 8 ),(0 3 7 ),(0 4 6 ),(1 4 5 ),(2 1 7 ),(2 3 5 ), &lt;br /&gt;
(3 2 5 ),(3 3 4 ),(3 4 3 ),(4 4 2 ),(5 1 4 ), \\&lt;br /&gt;
&amp;amp;\quad (5 3 2 ),(6 2 2 ), &lt;br /&gt;
(6 3 1 ),(6 4 0 ),(8 1 1 ),(9 0 1 ),(9 1 0 ) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
generates the lower bound $c&#039;_{10,3} \geq 24786$ given above (and, up to reflection $a \leftrightarrow c$, is the only such set that does so); but by adding the following twelve elements from $\Gamma_{5,0,5}$ one can increase the lower bound slightly to $24798$: $1111133333$, $1111313333$,&lt;br /&gt;
$1113113333$, $1133331113$, $1133331131$, $1133331311$, $3311333111$,&lt;br /&gt;
$3313133111$, $3313313111$, $3331111133$, $3331111313$, $3331111331$&lt;br /&gt;
&lt;br /&gt;
A more general form goes with the $B$ set described at the start of this section.  Include points from $\Gamma_{(a,n-i-4,i+4-a)}$ when $a=1 (\operatorname{mod}\ 3)$, subject to no two points being included if they differ by the interchange of a $1$ and a $3$.  Each of these Gamma sets is the feet of a degenerate isosceles triangle with vertex $\Gamma_{(a-1,n-i-2,a+3-a)}$.  &lt;br /&gt;
&lt;br /&gt;
\begin{lemma} If $A$ is a subset of $\Gamma_{(a,b,c)}$ such that no two points of $A$ differ by the interchange of a $1$ and a $3$, then $|A| \leq |\Gamma_{a,b,c}|/(1+\max(a,c))$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Say that two points of $\Gamma_{a,b,c}$ are neighbours if they differ by the exchange of a $1$ and a $3$.  Each point of $A$ has $ac$ neighbours, none of which are in $A$. Each point of $\Gamma_{(a,b,c)}\backslash A$ has $ac$ neighbours, but only $min(a,c)$ of them may be in $A$. So for each point of $A$ there are on average $ac/\min(a,c) = \max(a,c)$ points not in $A$. So the proportion of points of $\Gamma_{(a,b,c)}$ that are in $A$ is at most one in $1+\max(a,c)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
The proportion of extra points for each of the cells $\Gamma_{(a,n-i-4,i+4-a)}$ is no more than $2/(i+6)$.  Only one cell in three is included from the  $b=n-i-4$ layer, so we expect no more than $\binom{n}{i+4}2^{i+5}/(3i+18)$ new points, all from $S_{n,i+4}$.  One can also find extra points from $S_{n,i+5}$ and higher spheres.&lt;br /&gt;
&lt;br /&gt;
Earlier solutions may also give insight into the problem.  In this section we discuss lower bounds for $c&#039;_{n,3}$. Clearly we have &lt;br /&gt;
$c&#039;_{0,3}=1$ and $c&#039;_{1,3}=2$, so we focus on the case $n \ge 2$.&lt;br /&gt;
The first lower bounds may be due to Koml\&#039;{o}s \cite{komlos}, who observed &lt;br /&gt;
that the sphere $S_{i,n}$ of elements with exactly $n-i$ 2 entries&lt;br /&gt;
(see Section \ref{notation-sec} for definition),&lt;br /&gt;
is a Moser set, so that &lt;br /&gt;
\begin{equation}\label{cin}&lt;br /&gt;
c&#039;_{n,3}\geq \vert S_{i,n}\vert&lt;br /&gt;
\end{equation}&lt;br /&gt;
holds for all $i$. Choosing $i=\lfloor \frac{2n}{3}\rfloor$  and &lt;br /&gt;
applying Stirling&#039;s formula, we see that this lower bound takes the form &lt;br /&gt;
\begin{equation}\label{cpn3}&lt;br /&gt;
c&#039;_{n,3} \geq (C-o(1)) 3^n / \sqrt{n} &lt;br /&gt;
\end{equation} &lt;br /&gt;
for some absolute constant $C&amp;gt;0$; in fact \eqref{cin} gives \eqref{cpn3} with $C := \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
In particular $c&#039;_{3,3} \geq 12, c&#039;_{4,3}\geq 24, c&#039;_{5,3}\geq 80, &lt;br /&gt;
c&#039;_{6,3}\geq 240$.&lt;br /&gt;
&lt;br /&gt;
These values can be improved by studying combinations of several spheres or&lt;br /&gt;
semispheres or applying elementary results from coding theory.&lt;br /&gt;
&lt;br /&gt;
Observe that if $\{w(1),w(2),w(3)\}$ is a geometric line in $[3]^n$, &lt;br /&gt;
then $w(1), w(3)$ both lie in the same sphere $S_{i,n}$, &lt;br /&gt;
and that $w(2)$ lies in a lower &lt;br /&gt;
sphere $S_{i-r,n}$ for some $1 \leq r \leq i \leq n$. Furthermore, &lt;br /&gt;
$w(1)$ and $w(3)$ are separated by Hamming distance $r$.&lt;br /&gt;
&lt;br /&gt;
As a consequence, we see that $S_{i-1,n} \cup S_{i,n}^e$ (or $S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^o$) is a Moser set for any $1 \leq i \leq n$, since any two &lt;br /&gt;
distinct elements $S_{i,n}^e$ are separated by a Hamming distance of at &lt;br /&gt;
least two. &lt;br /&gt;
(Recall Section \ref{notation-sec} for definitions),&lt;br /&gt;
This leads to the lower bound &lt;br /&gt;
\begin{equation}\label{cn3-low}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n}{i-1} &lt;br /&gt;
2^{i-1} + \binom{n}{i} 2^{i-1} = \binom{n+1}{i} 2^{i-1}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
It is not &lt;br /&gt;
hard to see that $\binom{n+1}{i+1} 2^{i} &amp;gt; \binom{n+1}{i} 2^{i-1}$ if &lt;br /&gt;
and only if $3i &amp;lt; 2n+1$, and so this lower bound is maximised when $i = &lt;br /&gt;
\lfloor \frac{2n+1}{3} \rfloor$ for $n \geq 2$, giving the formula &lt;br /&gt;
\eqref{binom}. This leads to the lower bounds $$ c&#039;_{2,3} \geq 6; &lt;br /&gt;
c&#039;_{3,3} \geq 16; c&#039;_{4,3} \geq 40; c&#039;_{5,3} \geq 120; c&#039;_{6,3} \geq &lt;br /&gt;
336$$ which gives the right lower bounds for $n=2,3$, but is slightly &lt;br /&gt;
off for $n=4,5$.  Asymptotically, Stirling&#039;s formula and \eqref{cn3-low} then&lt;br /&gt;
give the lower bound \eqref{cpn3} with $C = \frac{3}{2} \times \sqrt{\frac{9}{4\pi}}$, which is asymptotically $50\%$ better than the bound \eqref{cin}.&lt;br /&gt;
&lt;br /&gt;
The work of Chv\&#039;{a}tal \cite{chvatal1} &lt;br /&gt;
already contained a refinement of this idea&lt;br /&gt;
which we here translate into the usual notation of coding theory:&lt;br /&gt;
Let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
and minimal distance $d$.&lt;br /&gt;
&lt;br /&gt;
Then &lt;br /&gt;
\begin{equation}\label{cnchvatal}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
With the following values for $A(n,d)$:&lt;br /&gt;
{\tiny{&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llllllll}&lt;br /&gt;
A(1,1)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(2,1)=4&amp;amp; A(2,2)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(3,1)=8&amp;amp;A(3,2)=4&amp;amp;A(3,3)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(4,1)=16&amp;amp;A(4,2)=8&amp;amp; A(4,3)=2&amp;amp; A(4,4)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(5,1)=32&amp;amp;A(5,2)=16&amp;amp; A(5,3)=4&amp;amp; A(5,4)=2&amp;amp;A(5,5)=2&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(6,1)=64&amp;amp;A(6,2)=32&amp;amp; A(6,3)=8&amp;amp; A(6,4)=4&amp;amp;A(6,5)=2&amp;amp;A(6,6)=2&amp;amp;&amp;amp;\\&lt;br /&gt;
A(7,1)=128&amp;amp;A(7,2)=64&amp;amp; A(7,3)=16&amp;amp; A(7,4)=8&amp;amp;A(7,5)=2&amp;amp;A(7,6)=2&amp;amp;A(7,7)=2&amp;amp;\\&lt;br /&gt;
A(8,1)=256&amp;amp;A(8,2)=128&amp;amp; A(8,3)=20&amp;amp; A(8,4)=16&amp;amp;A(8,5)=4&amp;amp;A(8,6)=2&lt;br /&gt;
&amp;amp;A(8,7)=2&amp;amp;A(8,8)=2\\&lt;br /&gt;
A(9,1)=512&amp;amp;A(9,2)=256&amp;amp; A(9,3)=40&amp;amp; A(9,4)=20&amp;amp;A(9,5)=6&amp;amp;A(9,6)=4&lt;br /&gt;
&amp;amp;A(9,7)=2&amp;amp;A(9,8)=2\\&lt;br /&gt;
A(10,1)=1024&amp;amp;A(10,2)=512&amp;amp; A(10,3)=72&amp;amp; A(10,4)=40&amp;amp;A(10,5)=12&amp;amp;A(10,6)=6&lt;br /&gt;
&amp;amp;A(10,7)=2&amp;amp;A(10,8)=2\\&lt;br /&gt;
A(11,1)=2048&amp;amp;A(11,2)=1024&amp;amp; A(11,3)=144&amp;amp; A(11,4)=72&amp;amp;A(11,5)=24&amp;amp;A(11,6)=12&lt;br /&gt;
&amp;amp;A(11,7)=2&amp;amp;A(11,8)=2\\&lt;br /&gt;
A(12,1)=4096&amp;amp;A(12,2)=2048&amp;amp; A(12,3)=256&amp;amp; A(12,4)=144&amp;amp;A(12,5)=32&amp;amp;A(12,6)=24&lt;br /&gt;
&amp;amp;A(12,7)=4&amp;amp;A(12,8)=2\\&lt;br /&gt;
A(13,1)=8192&amp;amp;A(13,2)=4096&amp;amp; A(13,3)=512&amp;amp; A(13,4)=256&amp;amp;A(13,5)=64&amp;amp;A(12,6)=32&lt;br /&gt;
&amp;amp;A(13,7)=8&amp;amp;A(13,8)=4\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Generally, $A(n,1)=2^n, A(n,2)=2^{n-1}, A(n-1,2e-1)=A(n,2e), A(n,d)=2$, &lt;br /&gt;
if $d&amp;gt;\frac{2n}{3}$.&lt;br /&gt;
The values were taken or derived from Andries Brower&#039;s table at&lt;br /&gt;
\centerline{\tt http://www.win.tue.nl/$\sim$aeb/codes/binary-1.html}&lt;br /&gt;
\textbf{include to references? or other book with explicit values of $A(n,d)$ }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For  $c&#039;_{n,3}$ we obtain the following lower bounds:&lt;br /&gt;
with $k=2$&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{4,3}&amp;amp;\geq &amp;amp;\binom{4}{0}A(4,3)+\binom{4}{1}A(3,2)+\binom{4}{2}A(2,1)&lt;br /&gt;
=1\cdot 2+4 \cdot 4+6\cdot 4&amp;amp;=42.\\&lt;br /&gt;
c&#039;_{5,3}&amp;amp;\geq &amp;amp;\binom{5}{0}A(5,3)+\binom{5}{1}A(4,2)+\binom{5}{2}A(3,1)&lt;br /&gt;
=1\cdot 4+5 \cdot 8+10\cdot 8&amp;amp;=124.\\&lt;br /&gt;
c&#039;_{6,3}&amp;amp;\geq &amp;amp;\binom{6}{0}A(6,3)+\binom{6}{1}A(5,2)+\binom{6}{2}A(4,1)&lt;br /&gt;
=1\cdot 8+6 \cdot 16+15\cdot 16&amp;amp;=344.&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
With k=3&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{7,3}&amp;amp;\geq&amp;amp; \binom{7}{0}A(7,4)+\binom{7}{1}A(6,3)+\binom{7}{2}A(5,2)&lt;br /&gt;
+ \binom{7}{3}A(4,1)&amp;amp;=960.\\&lt;br /&gt;
c&#039;_{8,3}&amp;amp;\geq &amp;amp;\binom{8}{0}A(8,4)+\binom{8}{1}A(7,3)+\binom{8}{2}A(6,2)&lt;br /&gt;
+ \binom{8}{3}A(5,1)&amp;amp;=2832.\\&lt;br /&gt;
c&#039;_{9,3}&amp;amp;\geq &amp;amp; \binom{9}{0}A(9,4)+\binom{9}{1}A(8,3)+\binom{9}{2}A(7,2)&lt;br /&gt;
+ \binom{9}{3}A(6,1)&amp;amp;=7880.&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With k=4&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{10,3}&amp;amp;\geq &amp;amp;\binom{10}{0}A(10,5)+\binom{10}{1}A(9,4)+\binom{10}{2}A(8,3)&lt;br /&gt;
+ \binom{10}{3}A(7,2)+\binom{10}{4}A(6,1)&amp;amp;=22232.\\&lt;br /&gt;
c&#039;_{11,3}&amp;amp;\geq &amp;amp;\binom{11}{0}A(11,5)+\binom{11}{1}A(10,4)+\binom{11}{2}A(9,3)&lt;br /&gt;
+ \binom{11}{3}A(8,2)+\binom{11}{4}A(7,1)&amp;amp;=66024.\\&lt;br /&gt;
c&#039;_{12,3}&amp;amp;\geq &amp;amp;\binom{12}{0}A(12,5)+\binom{12}{1}A(11,4)+\binom{12}{2}A(10,3)&lt;br /&gt;
+ \binom{12}{3}A(9,2)+\binom{12}{4}A(8,1)&amp;amp;=188688.\\&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With $k=5$&lt;br /&gt;
\[ c&#039;_{13,3}\geq 539168.\]&lt;br /&gt;
&lt;br /&gt;
It should be pointed out that these bounds are even numbers, so that &lt;br /&gt;
$c&#039;_{4,3}=43$ shows that one cannot generally expect this lower bound &lt;br /&gt;
gives the optimum.&lt;br /&gt;
&lt;br /&gt;
The maximum value  appears to occur for $k=\lfloor\frac{n+2}{3}\rfloor$, &lt;br /&gt;
so that using &lt;br /&gt;
Stirling&#039;s formula and explicit bounds on $A(n,d)$ the &lt;br /&gt;
best possible value known to date&lt;br /&gt;
of the constant $C$ in &lt;br /&gt;
equation \eqref{cpn3} can be worked out, but we refrain from doing this here.&lt;br /&gt;
Using the Singleton bound $A(n,d)\leq 2^{n-d+1}$ Chv\&#039;{a}tal  &lt;br /&gt;
\cite{chvatal1} proved that the expression on the right hand side of&lt;br /&gt;
\eqref{cnchvatal} is also &lt;br /&gt;
$O\left( \frac{3^n}{\sqrt{n}}\right)$, so that the refinement described &lt;br /&gt;
above gains a constant factor over the initial construction only.&lt;br /&gt;
 &lt;br /&gt;
For $n=4$ the above does not yet give the exact value.&lt;br /&gt;
The value $c&#039;_{4,3}=43$ was first proven by Chandra \cite{chandra}.&lt;br /&gt;
A uniform way of describing examples for the optimum values of &lt;br /&gt;
$c&#039;_{4,3}=43$ and $c&#039;_{5,3}=124$ is the following:&lt;br /&gt;
&lt;br /&gt;
Let us consider the sets $$ A := S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^e \cup A&#039;$$ where $A&#039; \subset S_{i+1,n}$ has the property &lt;br /&gt;
that any two elements in $A&#039;$ are separated by a Hamming distance of at &lt;br /&gt;
least three, or have a Hamming distance of exactly one but their &lt;br /&gt;
midpoint lies in $S_{i,n}^o$. By the previous discussion we see that &lt;br /&gt;
this is a Moser set, and we have the lower bound &lt;br /&gt;
\begin{equation}\label{cnn}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{i} 2^{i-1} + |A&#039;|.&lt;br /&gt;
\end{equation} This gives some improved lower bounds for $c&#039;_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize} \item By taking $n=4$, $i=3$, and $A&#039; = \{ 1111, 3331, &lt;br /&gt;
3333\}$, we obtain $c&#039;_{4,3} \geq 43$; \item By taking $n=5$, $i=4$, and &lt;br /&gt;
$A&#039; = \{ 11111, 11333, 33311, 33331 \}$, we obtain $c&#039;_{5,3} \geq 124$. &lt;br /&gt;
\item By taking $n=6$, $i=5$, and $A&#039; = \{ 111111, 111113, 111331, &lt;br /&gt;
111333, 331111, 331113\}$, we obtain $c&#039;_{6,3} \geq 342$. \end{itemize}&lt;br /&gt;
&lt;br /&gt;
This gives the lower bounds in Theorem \ref{moser} up to $n=5$, but &lt;br /&gt;
the bound for $n=6$ is inferior to the lower bound $c&#039;_{6,3}\geq 344$ given above. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
\subsection{Higher $k$ values}&lt;br /&gt;
One can consider subsets of $[k]{}^n$ that contain no geometric lines.  Section \ref{moser-lower-sec} has considered the case $k=3$.  Let $c&#039;_{n,k}$ be the greatest number of points in $[k]{}^n$ with no geometric line.  For example, $c&#039;_{n,3} = c&#039;_n$.  We have the following lower bounds:&lt;br /&gt;
&lt;br /&gt;
$c&#039;_{n,4} \ge \binom{n}{n/2}2^n$.&lt;br /&gt;
The set of points with $a$ $1$s,$b$ $2$s,$c$ $3$s and $d$ $4$s, where $a+d$ has the constant value $n/2$, does not form geometric lines because points at the ends of a geometric line have more $a$ or $d$ values than points in the middle of the line.&lt;br /&gt;
&lt;br /&gt;
The following lower bound is asymptotically twice as large.  Take all points with $a$ $1$s, $b$ $2$s, $c$ $3$s and $d$ $4$s, for which:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Either $a+d = q$ or $q-1$, $a$ and $b$ have the same parity; or&lt;br /&gt;
\item $a+d = q-2$ or $q-3$, $a$ and $b$ have opposite parity.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
This includes half the points of four adjacent layers, and therefore may include $(1+o(1))\binom{n}{n/2}2^{n+1}$ points.&lt;br /&gt;
&lt;br /&gt;
We also have a DHJ(3)-like lower bound for $c&#039;_{n,5}$, namely $c&#039;_{n,5} = 5^{n-O(\sqrt{\log n})}$.&lt;br /&gt;
Consider points with $a$ $1$s, $b$ $2$s, $c$ $3$s, $d$ $4$s and $e$ $5$s.  For each point, take the value $a+e+2(b+d)+3c$.  The first three points in any geometric line give values that form an arithmetic progression of length three.  &lt;br /&gt;
&lt;br /&gt;
Select a set of integers with no arithmetic progression of length 3.  Select all points whose value belongs to that sequence; there will be no geometric line among those points.  By Behrend theory, it is possible to choose these points with density $\exp{-O(\sqrt{\log n})}$.&lt;br /&gt;
&lt;br /&gt;
The $k=6$ version of Moser implies DHJ(3). Indeed, any $k=3$ combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a $k=6$ geometric line-free set of the same density by pulling back the set from the map that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends $k=6$ geometric lines to $k=3$ combinatorial lines.  So $c&#039;_{k,6} \geq 2^k c_k$, and more generally, $c&#039;_{k,2n} \geq 2^k c_{k,n}$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Dhj-lown-lower.tex&amp;diff=2042</id>
		<title>Dhj-lown-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Dhj-lown-lower.tex&amp;diff=2042"/>
		<updated>2009-07-27T13:40:47Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the density Hales-Jewett problem}\label{dhj-lower-sec}&lt;br /&gt;
&lt;br /&gt;
The purpose of this section is to establish various lower bounds for $c_{n,3}$, in particular establishing Theorem \ref{dhj-lower} and the lower bound component of Theorem \ref{dhj-upper}.&lt;br /&gt;
&lt;br /&gt;
As observed in the introduction, if $B \subset \Delta_{3,n}$ is a Fujimura set (i.e. a subset of $\Delta_{3,n} = \{ (a,b,c) \in \N^3: a+b+c=n\}$ which contains no upward equilateral triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$), then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a line-free subset of $[3]^n$, which gives the lower bound&lt;br /&gt;
\begin{equation}\label{cn3}&lt;br /&gt;
 c_{n,3} \geq |A_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
All of the lower bounds for $c_{n,3}$ in this paper will be constructed via this device.&lt;br /&gt;
&lt;br /&gt;
In order to use \eqref{cn3}, one of course needs to build Fujimura sets $B$ which are ``large&#039;&#039; in the sense that the right-hand side of \eqref{cn3} is large.  A fruitful starting point for this goal is the sets &lt;br /&gt;
$$B_{j,n} := \{ (a,b,c) \in \Delta_{3,n}: a + 2b \neq j \hbox{ mod } 3 \}$$&lt;br /&gt;
for $j=0,1,2$.  Observe that in order for a triangle $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ to lie in $B_{j,n}$, the length $r$ of the triangle must be a multiple of $3$.  This already makes $B_{j,n}$ a Fujimura set for $n &amp;lt; 3$	(and $B_{0,n}$ a Fujimura set for $n = 3$).&lt;br /&gt;
&lt;br /&gt;
When $n$ is not a multiple of $3$, the $B_{j,n}$ are all rotations of each other and give equivalent sets (of size $2 \times 3^{n-1}$).  When $n$ is a multiple of $3$, the sets $B_{1,n}$ and $B_{2,n}$ are reflections of each other, but $B_{0,n}$ is not equivalent to the other two sets (in particular, it omits all three corners of $\Delta_{3,n}$); the associated set $A_{B_{0,n}}$ is slightly larger than $A_{B_{1,n}}$ and $A_{B_{2,n}}$ and thus is slightly better for constructing line-free sets.&lt;br /&gt;
&lt;br /&gt;
As mentioned already, $B_{0,n}$ is a Fujimura set for $n \leq 3$, and hence $A_{B_{0,n}}$ is line-free for $n \leq 3$.  Applying \eqref{cn3} one obtains the lower bounds&lt;br /&gt;
$$ c_{0,3} \geq 1; c_{1,3} \geq 2; c_{2,3} \geq 6; c_{3,3} \geq 18.$$&lt;br /&gt;
&lt;br /&gt;
For $n&amp;gt;3$, $B_{0,n}$ contains some triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ and so is not a Fujimura set, but one can remove points from this set to recover the Fujimura property.  For instance, for $n \leq 6$, the only triangles in $B_{0,n}$ have side length $r=3$.  One can ``delete&#039;&#039; these triangles by removing one vertex from each; in order to optimise the bound \eqref{cn3} it is preferable to delete vertices near the corners of $\Delta_{3,n}$ rather than near the centre.  These considerations lead to the Fujimura sets&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B_{0,4} &amp;amp;\backslash \{ (0,0,4), (0,4,0), (4,0,0) \}\\&lt;br /&gt;
B_{0,5} &amp;amp;\backslash \{ (0,4,1), (0,5,0), (4,0,1), (5,0,0) \}\\&lt;br /&gt;
B_{0,6} &amp;amp;\backslash \{ (0,1,5), (0,5,1), (1,0,5), (0,1,5), (1,5,0), (5,1,0) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
which by \eqref{cn3} gives the lower bounds&lt;br /&gt;
$$ c_{4,3} \geq 52; c_{5,3} \geq 150; c_{6,3} \geq 450.$$&lt;br /&gt;
Thus we have established all the lower bounds needed for Theorem \ref{dhj-upper}.&lt;br /&gt;
&lt;br /&gt;
One can of course continue this process by hand, for instance the set&lt;br /&gt;
$$ B_{0,7} \backslash \{(0,1,6),(1,0,6),(0,5,2),(5,0,2),(1,5,1),(5,1,1),(1,6,0),(6,1,0) \}$$&lt;br /&gt;
gives the lower bound $c_{7,3} \geq 1302$, which we tentatively conjecture to be the correct bound. &lt;br /&gt;
&lt;br /&gt;
A simplification was found when $n$ is a multiple of $3$.  Observe that for $n=6$, the sets excluded from $B_{0,6}$ are all permutations of $(0,1,5)$.  So the remaining sets are all the permutations of $(1,2,3)$ and $(0,2,4)$.  In the same way, sets for $n=9$, $12$ and $15$ can be described as:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item $n=9$: $(2,3,4),(1,3,5),(0,4,5)$ and permutations;&lt;br /&gt;
\item $n=12$: $(3,4,5),(2,4,6),(1,5,6),(0,2,10),(0,5,7)$ and permutations;&lt;br /&gt;
\item $n=15$: $(4,5,6),(3,5,7),(2,6,7),(1,3,11),(1,6,8),(0,4,11),(0,7,8)$ and permutations.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
When $n$ is not a multiple of $3$, say $n=3m-1$ or $n=3m-2$, one first finds a solution for $n=3m$.  Then for $n=3m-1$, one restricts the first digit of the $3m$ sequence to equal $1$.  This leaves exactly one-third as many points for $3m-1$ as for $3m$.  For $n=3m-1$, one restricts the first two digits of the $3m$ sequence to be $12$.  This leaves roughly one-ninth as many points for $3m-2$ as for $3m$.&lt;br /&gt;
&lt;br /&gt;
The following is an effective method to find good, though not optimal, solutions for any $n=3m$.  (For $n&amp;lt;21$, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
Start with thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to $M := (m,m,m)$, when $n=3m$:&lt;br /&gt;
$$(-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4)$$&lt;br /&gt;
$$(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1)$$&lt;br /&gt;
Then include eight strings of points, stretching to the edges of the triangle $\Delta_n$;&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item $M+(-8-2x,-6-2x,14+4x)$, $M+(-8-2x,-3-2x,11+4x)$, $M+(-8-2x,x,8+x)$, $M+(-8-2x,3+x,5+x)$ and permutations ($0\le 2x \le M-8$);&lt;br /&gt;
\item $M+(-9-2x,-5-2x,14+4x)$, $M+(-9-2x,-2-2x,11+4x)$, $M+(-9-2x,1+x,8+x)$, $M+(-9-2x,4+x,5+x)$ and permutations ($0\le 2x \le M-9$).&lt;br /&gt;
\end{itemize}&lt;br /&gt;
This solution gives $O(2.7 \sqrt(\log (n)/n)3^n$ points for values of $n$ up to around $1000$.  This is asymptotically smaller than the known optimum of $3^{n-O(\sqrt(\log(n)))}$.  When $n=99$, it gives more than $3^n/3$ points.&lt;br /&gt;
&lt;br /&gt;
The following solution gives more points for $n&amp;gt;1000$, but not for moderate $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.  It starts $1,2,7,8,19,20,25,26,55, \ldots$;&lt;br /&gt;
\item List all the $(abc)$ triples that sum to $n$, for which the larger two differ by a number from the sequence;&lt;br /&gt;
\item Exclude the case when the smaller two differ by 1;&lt;br /&gt;
\item Include the case when $(a,b,c)$ is a permutation of $n/3+(-1,0,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
An integer program was run to obtain the maximum lower bound one could establish from \eqref{cn3} (see Appendix \ref{integer-sec}).  The results for $1 \leq n \leq 20$ are displayed in Figure \ref{nlow}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	96338\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	287892\\&lt;br /&gt;
3 &amp;amp;	18 &amp;amp; 13&amp;amp;	854139\\&lt;br /&gt;
4 &amp;amp;	52 &amp;amp; 14&amp;amp;	2537821\\&lt;br /&gt;
5 &amp;amp;	150&amp;amp; 15&amp;amp;	7528835\\&lt;br /&gt;
6 &amp;amp;	450&amp;amp; 16&amp;amp;	22517082\\&lt;br /&gt;
7 &amp;amp;	1302&amp;amp; 17&amp;amp;	66944301\\&lt;br /&gt;
8 &amp;amp;	3780&amp;amp;18&amp;amp;	198629224\\&lt;br /&gt;
9 &amp;amp;	11340&amp;amp;19&amp;amp;	593911730\\&lt;br /&gt;
10&amp;amp;	32864&amp;amp; 20&amp;amp;	1766894722\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at \cite{markstrom}&lt;br /&gt;
&lt;br /&gt;
If $B$ maximises the right-hand side of \eqref{cn3}, it is easy to see that $A_B$ is a line-free set which is maximal in the sense that the addition of any further point to $A_B$ will create a combinatorial line.  Thus one might conjecture that the maximal value of the right-hand side \eqref{cn3} is in fact equal to $c_{n,3}$ for all $n$; Theorem \ref{dhj-upper} asserts that this conjecture is true for $n \leq 6$.  &lt;br /&gt;
&lt;br /&gt;
Now we prove Theorem \ref{dhj-lower}.&lt;br /&gt;
&lt;br /&gt;
\begin{proof}[Proof of Theorem \ref {dhj-lower}] &lt;br /&gt;
Let $M$ be the circulant matrix with first row $(1,2,\ldots,k-1)$, second row $(k-1,1,2,\dots,k-2)$, and so on. Note that $M$ has nonzero determinant by well-known properties of circulant matrices.&lt;br /&gt;
&lt;br /&gt;
Let $S$ be a subset of the interval $[-\sqrt {n}/2, \sqrt {n}/2)$ that contains no nonconstant arithmetic progressions of length k, and let $B\subset\Delta_{n, k}$ be the set &lt;br /&gt;
    \[ B := \{(n-\sum_{i=1}^{k-1} a_i ,a_1,a_2,\dots, a_{k-1}) : &lt;br /&gt;
            (a_1,\dots,a_{k-1})= n/k + \det(M) M^{-1}\vec{s} , \vec{s}\in S^{k-1}\}.\] &lt;br /&gt;
The map $(m,a_1,\dots,a_{k-1}) \mapsto M (a_1,\dots,a_{k-1})$ takes simplices to nonconstant arithmetic progressions in ${\mathbb Z}^{k-1}$, and takes $B$ to $\{c+det(M) \, \vec{s} \colon \vec{s} \in S^{k-1}\}$, which is a set containing no nonconstant arithmetic progressions. Thus, $B$ is a Fujimura set and so does not contain any combinatorial lines. &lt;br /&gt;
&lt;br /&gt;
If all of $a_1,\ldots,a_k$ are within $C_1\sqrt{n}$ of $n/k$, then $|\Gamma_{\vec{a}}| \geq C k^n/n^{(k-1)/2}$ (where $C$ depends on $C_1$) by the central limit theorem. By our choice of $S$ and applying~\eqref{cn3}, we obtain &lt;br /&gt;
     $$ c_ {n, k}\geq C k^n/n^{(k-1)/2} |S|^{k-1} = C k^n \left( \frac{|S|}{\sqrt{n}} \right)^{k-1}. $$&lt;br /&gt;
One can take $S$ to have cardinality $r_ k (\sqrt {n}) $, which from the results of O&#039;Bryant~\cite {obryant}) satisfies (for all sufficiently large $n$, some $C&amp;gt;0$, and $\ell$ the largest integer satisfying $k&amp;gt; 2^{\ell-1}$) &lt;br /&gt;
     $$ \frac{r_k (\sqrt{n})}{\sqrt{n}} \geq C  (\log n)^{1/(2\ell)}\exp_2 (-\ell 2^{(\ell-1)/2-1/\ell} \sqrt[\ell]{\log_2 n}),$$&lt;br /&gt;
which completes the proof.&lt;br /&gt;
\end {proof}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Introduction.tex&amp;diff=2041</id>
		<title>Introduction.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Introduction.tex&amp;diff=2041"/>
		<updated>2009-07-27T13:38:19Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Introduction}&lt;br /&gt;
&lt;br /&gt;
For any integers $k \geq 1$ and $n \geq 0$, let $[k] := \{1,\ldots,k\}$, and define $[k]^n$ to be the cube of words of length $n$ with alphabet in $[k]$.  Thus for instance $[3]^2 = \{11,12,13,21,22,23,31,32,33\}$.&lt;br /&gt;
&lt;br /&gt;
We define a \emph{combinatorial line} in $[k]^n$ to be a set of the form $\{ w(i): i = 1,\ldots,k\} \subset [k]^n$, where $w \in ([k] \cup \{x\})^n \backslash [k]^n$ is a word of length $n$ with alphabet in $[k]$ together with a ``wildcard&#039;&#039; letter $x$ which appears at least once, and $w(i) \in [k]^n$ is the word obtained from $w$ by replacing $x$ by $i$; we often abuse notation and identify $w$ with the combinatorial line $\{ w(i): i = 1,\ldots,k\}$ it generates.  Thus for instance, in $[3]^2$ we have $x2 = \{12,22,32\}$ and $xx = \{11,22,33\}$ as typical examples of combinatorial lines. In general, $[k]^n$ has $k^n$ words and $(k+1)^n-k^n$ lines.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{AllLinesIn3n.pdf}}&lt;br /&gt;
\caption{Combinatorial lines in $[3]^2$.}&lt;br /&gt;
\label{fig-line}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
A set $A \subset [k]^n$ is said to be \emph{line-free} if it contains no combinatorial lines.  Define the \emph{$(n,k)$ density Hales-Jewett number} $c_{n,k}$ to be the maximum cardinality $|A|$ of a line-free subset of $[k]^n$.  Clearly, one has the trivial bound $c_{n,k} \leq k^n$.  A deep theorem of Furstenberg and Katznelson~\cite{fk1}, \cite{fk2} asserts that this bound can be asymptotically improved:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Density Hales-Jewett theorem]\label{dhj}  For any fixed $k \geq 2$, one has $\lim_{n \to \infty} c_{n,k}/k^n = 0$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} The difficulty of this theorem increases with $k$.  For $k=1$, one clearly has $c_{n,1}=1$.  For $k=2$, a classical theorem of Sperner~\cite{sperner} asserts, in our language, that $c_{n,2} = \binom{n}{\lfloor n/2\rfloor}$.  The case $k=3$ is already non-trivial (for instance, it implies Roth&#039;s theorem~\cite{roth} on arithmetic progressions of length three) and was first established in \cite{fk1} (see also \cite{mcc}).  The case of general $k$ was first established in~\cite{fk2} and has a number of implications, in particular implying Szemer\&#039;edi&#039;s theorem~\cite{szem} on arithmetic progressions of arbitrary length.&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
The Furstenberg-Katznelson proof of Theorem~\ref{dhj} relied on ergodic-theory techniques and did not give an explicit decay rate for $c_{n,k}$.  Recently, two further proofs of this theorem have appeared, by Austin~\cite{austin} and by the sister Polymath project to this one~\cite{poly}.  The proof of~\cite{austin} also used ergodic theory, but the proof in~\cite{poly} was combinatorial and gave effective bounds for $c_{n,k}$ in the limit $n \to \infty$. For example, if $n$ can be written as an exponential tower $2 \uparrow 2 \uparrow 2 \uparrow \ldots \uparrow 2$ with $m$ 2s, then $c_{n,3} \le 3^n m^{-1/3}$.  However, these bounds are not believed to be sharp, and in any case are only non-trivial in the asymptotic regime when $n$ is sufficiently large depending on $k$.&lt;br /&gt;
&lt;br /&gt;
Our first result is the following asymptotic lower bound. The construction is based on the recent refinements \cite{elkin,greenwolf,obryant} of a well-known construction of Behrend~\cite{behrend} and Rankin~\cite{rankin}. The proof of Theorem~\ref{dhj-lower} is in Section~\ref{dhj-lower-sec}. Let $r_k(n)$ be the maximum size of a subset of $[n]$ that does not contain a $k$-term arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Asymptotic lower bound for $c_{n,k}$]\label{dhj-lower}  For each $k\geq 3$, there is an absolute constant $C&amp;gt;0$ such that &lt;br /&gt;
  \[ c_{n,k} \geq C k^n \left(\frac{r_k(\sqrt{n})}{\sqrt{n}}\right)^{k-1} = k^n \exp\left( - O(\sqrt[\ell]{\log n}) \right), \]&lt;br /&gt;
where $\ell$ is the largest integer satisfying $2k&amp;gt;2^{\ell}$. Specifically,&lt;br /&gt;
  \[ c_{n,k} \geq C k^{n-\alpha(k) \sqrt[\ell]{\log n} + \beta(k) \log\log n},\]&lt;br /&gt;
where all logarithms are base-$k$, and $\alpha(k) = (\log 2)^{1-1/\ell} \ell 2^{(\ell-1)/2-1/\ell}$ and $\beta(k)=(k-1)/(2\ell)$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
In the case of small $n$, we focus primarily on the first non-trivial case $k=3$.  We have computed the following explicit values of $c_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Explicit values of $c_{n,3}$]\label{dhj-upper}  We have $c_{0,3} = 1$, $c_{1,3} = 2$, $c_{2,3} = 6$, $c_{3,3} = 18$, $c_{4,3} = 52$, $c_{5,3}=150$, and $c_{6,3}=450$.  (This has been entered in the OEIS~\cite{oeis} as A156762.)&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
This result is established in Sections~\ref{dhj-lower-sec},~\ref{dhj-upper-sec}.  Initially these results were established by an integer program (see Appendix~\ref{integer-sec}, but we provide completely computer-free proofs here.  The constructions used in Section~\ref{dhj-lower-sec} give reasonably efficient constructions for larger values of $n$; for instance, they show that $3^{99} \leq c_{100,3} \leq 2 \times 3^{99}$.  See Section~\ref{dhj-lower-sec} for further discussion.&lt;br /&gt;
&lt;br /&gt;
We also have several partial results for higher values of $k$: see Section~\ref{higherk-sec}.  For results on the closely related \emph{Hales-Jewett numbers} $HJ(k,r)$, see Section~\ref{coloring-sec}.&lt;br /&gt;
&lt;br /&gt;
A variant of the density Hales-Jewett theorem has also been studied in the literature.  Define a \emph{geometric line} in $[k]^n$ to be any set of the form $\{ a+ir: i=1,\ldots,k\}$ in $[k]^n$, where we identify $[k]^n$ with a subset of $\Z^n$, and $a, r \in \Z^n$ with $r \neq 0$.  Equivalently, a geometric line takes the form $\{ w( i, k+1-i ): i =1,\ldots,k \}$, where $w \in ([k] \cup \{x,\overline{x}\})^n \backslash [k]^n$ is a word of length $n$ using the numbers in $[k]$ and two wildcards $x, \overline{x}$ as the alphabet, with at least one wildcard occuring in $w$, and $w(i,j) \in [k]^n$ is the word formed by substituting $i,j$ for $x,\overline{x}$ respectively.  Figure~\ref{fig-geomline} shows the eight geometric lines in $[3]^2$.  Clearly every combinatorial line is a geometric line, but not conversely.  In general, $[k]^n$ has $((k+2)^n-k^n)/2$ geometric lines. &lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{AllGeomLinesIn3n.pdf}}&lt;br /&gt;
\caption{Geometric lines in $[3]^2$.}&lt;br /&gt;
\label{fig-geomline}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{Moser set} in $[k]^n$ to be a subset of $[k]^n$ that contains no geometric lines, and let $c&#039;_{n,k}$ be the maximum cardinality $|A|$ of a Moser set in $[k]^n$.  Clearly one has $c&#039;_{n,k} \leq c_{n,k}$, so in particular from Theorem~\ref{dhj} one has $c&#039;_{n,k}/k^n \to 0$ as $n \to \infty$.  (Interestingly, there is no known proof of this fact that does not go through Theorem~\ref{dhj}, even for $k=3$.)  Again, $k=3$ is the first non-trivial case: it is clear that $c&#039;_{n,1}=0$ and $c&#039;_{n,2}=1$ for all $n$.&lt;br /&gt;
&lt;br /&gt;
The question of computing $c&#039;_{n,3}$ was first posed by Moser~\cite{moser}.  Prior to our work, the values&lt;br /&gt;
$$ c&#039;_{0,3}=1; c&#039;_{1,3}=2; c&#039;_{2,3}=6; c&#039;_{3,3}=16; c&#039;_{4,3}=43$$&lt;br /&gt;
were known~\cite{chvatal2},~\cite{chandra} (this is Sequence A003142 in the OEIS~\cite{oeis}).  We extend this sequence slightly:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Values of $c&#039;_{n,3}$ for small $n$]\label{moser}  We have $c&#039;_{0,3} = 1$, $c&#039;_{1,3} = 2$, $c&#039;_{2,3} = 6$, $c&#039;_{3,3} = 16$, $c&#039;_{4,3} = 43$, $c&#039;_{5,3} = 124$, and $c&#039;_{6,3} = 353$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
This result is established in Sections \ref{moser-lower-sec}, \ref{moser-upper-sec}.  The arguments given here are computer-assisted; however, we have found alternate (but lengthier) computer-free proofs for the above claims with the the exception of the proof of $c&#039;_{6,3}=353$, which requires one non-trivial computation (Lemma \ref{paretop-4}).  These alternate proofs are not given in this paper to save space, but can be found on the wiki for this project at &lt;br /&gt;
&lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Main\_Page}.}&lt;br /&gt;
&lt;br /&gt;
We establish a lower bound for this problem of $(2+o(1))\binom{n}{i}2^i\leq c&#039;_{n,3}$, which is maximized for $i$ near $2n/3$.  This bound is around one-third better than the literature.  We also give methods to improve on this construction.&lt;br /&gt;
&lt;br /&gt;
Earlier lower bounds were known:&lt;br /&gt;
let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
 and minimal distance $d$. Then&lt;br /&gt;
\begin{equation}\label{cnchvatalintro}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
which, with $A(n,1)=2^n$ and $A(n,2)=2^{n-1}$,  implies in particular that&lt;br /&gt;
\begin{equation}\label{binom}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{\lfloor \frac{2n+1}{3} \rfloor} 2^{\lfloor \frac{2n+1}{3} \rfloor - 1} &lt;br /&gt;
\end{equation}&lt;br /&gt;
for $n \geq 2$.  This bound is not quite optimal; for instance, it gives a lower bound of $c&#039;_{6,3}=344$.  &lt;br /&gt;
&lt;br /&gt;
\begin{remark} Let $c&#039;&#039;_{n,3}$ be the size of the largest subset of ${\mathbb F}_3^n$ which contains no lines $x, x+r, x+2r$ with $x,r \in {\mathbb F}_3^n$ and $r \neq 0$, where ${\mathbb F}_3$ is the field of three elements.  Clearly one has $c&#039;&#039;_{n,3} \leq c&#039;_{n,3} \leq c_{n,3}$.  It is known that&lt;br /&gt;
$$ c&#039;&#039;_{0,3}=1; c&#039;&#039;_{1,3}=2; c&#039;&#039;_{2,3}=4; c&#039;_{3,3}=9; c&#039;_{4,3}=20; c&#039;&#039;_{5,3}=45; c&#039;&#039;_{6,3} = 112;$$&lt;br /&gt;
see \cite{potenchin}.&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
As mentioned earlier, the sharp bound on $c_{n,2}$ comes from Sperner&#039;s theorem.  It is known that Sperner&#039;s theorem can be refined to the \emph{Lubell-Meshalkin-Yamamoto (LMY) inequality}, which in our language asserts that&lt;br /&gt;
$$&lt;br /&gt;
\sum_{a_1,a_2 \geq 0; a_1+a_2 = n} \frac{|A \cap \Gamma_{a_1,a_2}|}{|\Gamma_{a_1,a_2}|} \leq 1&lt;br /&gt;
$$&lt;br /&gt;
for any line-free subset $A \subset [2]^n$, where the \emph{cell} $\Gamma_{a_1,\ldots,a_k} \subset [k]^n$ is the set of words in $[k]^n$ which contain exactly $a_i$ $i$&#039;s for each $i=1,\ldots,k$.  It is natural to ask whether this inequality can be extended to higher $k$.  Let $\Delta_{k,n}$ denote the set of all tuples $(a_1,\ldots,a_k)$ of non-negative integers summing to $n$, define a \emph{simplex} to be a set of $k$ points in $\Delta_{k,n}$ of the form&lt;br /&gt;
$(a_1+r,a_2,\ldots,a_k), (a_1,a_2+r,\ldots,a_k),\ldots,(a_1,a_2,\ldots,a_k+r)$ for some $0 &amp;lt; r \leq n$ and $a_1,\ldots,a_k$ summing to $n-r$, and define a \emph{Fujimura set} to be a subset $B \subset \Delta_{k,n}$ which contains no simplices.  Observe that if $w$ is a combinatorial line in $[k]^n$, then&lt;br /&gt;
$$ w(1) \in \Gamma_{a_1+r,a_2,\ldots,a_k}, w(2) \in \Gamma_{a_1,a_2+r,\ldots,a_k}, \ldots, w(k) = \Gamma_{a_1,a_2,\ldots,a_k+r}$$&lt;br /&gt;
for some simplex $(a_1+r,a_2,\ldots,a_k), (a_1,a_2+r,\ldots,a_k),\ldots,(a_1,a_2,\ldots,a_k+r)$.  Thus, if $B$ is a Fujimura set, then $A := \bigcup_{\vec a \in B} \Gamma_{\vec a}$ is line-free.  Note also that&lt;br /&gt;
$$&lt;br /&gt;
\sum_{\vec a \in \Delta_{k,n}} \frac{|A \cap \Gamma_{\vec a}|}{|\Gamma_{\vec a}|} = |B|.&lt;br /&gt;
$$&lt;br /&gt;
This motivates a ``hyper-optimistic&#039;&#039; conjecture:&lt;br /&gt;
&lt;br /&gt;
{\bf a picture showing a Fujimura set?}&lt;br /&gt;
&lt;br /&gt;
\begin{conjecture}\label{hoc}  For any $k \geq 1$ and $n \geq 0$, and any line-free subset $A$ of $[k]^n$, one has&lt;br /&gt;
$$&lt;br /&gt;
\sum_{\vec a \in \Delta_{k,n}} \frac{|A \cap \Gamma_{\vec a}|}{|\Gamma_{\vec a}|} \leq c^\mu_{k,n},$$&lt;br /&gt;
where $c^\mu_{k,n}$ is the maximal size of a Fujimura set in $\Delta_{k,n}$.&lt;br /&gt;
\end{conjecture}&lt;br /&gt;
&lt;br /&gt;
One can show that this conjecture for a fixed value of $k$ would imply Theorem \ref{dhj} for the same value of $k$, in much the same way that the LYM inequality is known to imply Sperner&#039;s theorem.  The LYM inequality asserts that Conjecture \ref{hoc} is true for $k \leq 2$.  As far as we know this conjecture could hold in $k=3$.  However, we know that it fails for all even $k\ge 4$, see Section~\ref{higherk-sec}.&lt;br /&gt;
&lt;br /&gt;
We are interested in removing all upward-pointing equilateral triangles from a triangular grid.  Fujimura actually proposed the similar problem of removing all equilateral triangles at this website: www.puzzles.com/PuzzlePlayground/CoinsAndTriangles/CoinsAndTriangles.htm&lt;br /&gt;
&lt;br /&gt;
In Section \ref{fujimura-sec} we give some bounds on these numbers.  Explicit values are given for $\overline{c}^\mu_n$ up to $n=13$, and general upper and lower bounds are given for all $n$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Notation}\label{notation-sec}&lt;br /&gt;
&lt;br /&gt;
There are several subsets of $[k]^n$ which will be useful in our analysis.  We have already introduced combinatorial lines, geometric lines, and cells.  One can generalise the notion of a combinatorial line to that of a \emph{combinatorial subspace} in $[k]^n$ of dimension $d$, which is indexed by a word $w$ in $([k] \cup \{x_1,\ldots,x_d\})^n$ containing at least one of each wildcard $x_1,\ldots,x_d$, and which forms the set $\{ w(i_1,\ldots,i_d): i_1,\ldots,i_d \in [k]\}$, where $w(i_1,\ldots,i_d) \in [k]^d$ is the word formed by replacing $x_1,\ldots,x_d$ with $i_1,\ldots,i_d$ respectively.  Thus for instance, in $[3]^3$, we have the two-dimensional combinatorial subspace $xxy = \{111,112,113,221,222,223,331,332,333\}$.  We similarly have the notion of a \emph{geometric subspace} in $[k]^n$ of dimension $d$, which is defined similarly but with $d$ wildcards $x_1,\ldots,x_d,\overline{x_1},\ldots,\overline{x_d}$, with at least one of either $x_i$ or $\overline{x_i}$ appearing in the word $w$ for each $1 \leq i \leq d$, and the space taking the form $\{ w(i_1,\ldots,i_d,k+1-i_1,\ldots,k+1-i_d): i_1,\ldots,i_d \in [k] \}$.  Thus for instance $[3]^3$ contains the two-dimensional geometric subspace $x\overline{x}y = \{ 131, 132, 133, 221, 222, 223, 311, 312, 313\}$.&lt;br /&gt;
&lt;br /&gt;
An important class of combinatorial subspaces in $[k]^n$ will be the \emph{slices} consisting of $n-1$ distinct wildcards and one fixed coordinate.  We will denote the distinct wildcards here by asterisks, thus for instance in $[3]^3$ we have $2** = \{ 211, 212, 213, 221, 222, 223, 231, 232, 233\}$.  Two slices are \emph{parallel} if their fixed coordinate are in the same position, thus for instance $1**$ and $2**$ are parallel, and one can subdivide $[k]^n$ into $k$ parallel slices, each of which is isomorphic to $[k]^{n-1}$.  In the analysis of Moser slices with $k=3$, we will make a distinction between \emph{centre slices}, whose fixed coordinate is equal to $2$, and \emph{side slices}, in which the fixed coordinate is either $1$ or $3$, thus $[3]^n$ can be partitioned into one centre slice and two side slices.&lt;br /&gt;
&lt;br /&gt;
Another important set in the study of $k=3$ Moser sets are the \emph{spheres} $S_{i,n} \subset [3]^n$, defined as those words in $[3]^n$ with exactly $n-i$ $2$&#039;s (and hence $i$ letters that are $1$ or $3$).  Thus for instance $S_{1,3} = \{ 122, 322, 212, 232, 221, 223\}$.  Observe that $[3]^n = \bigcup_{i=0}^n S_{i,n}$, and each $S_{i,n}$ has cardinality $|S_{i,n}| = \binom{n}{i} 2^{i}$.&lt;br /&gt;
&lt;br /&gt;
It is also convenient to subdivide each sphere $S_{i,n}$ into two components $S_{i,n} = S_{i,n}^o \cup S_{i,n}^e$, where $S_{i,n}^o$ are the words in $S_{i,n}$ with an odd number of $1$&#039;s, and $S_{i,n}^e$ are the words with an even number of $1$&#039;s. Thus for instance $S_{1,3}^o = \{122,212,221\}$ and $S_{1,3}^e = \{322,232,223\}$.  Observe that for $i&amp;gt;0$, $S_{i,n}^o$ and $S_{i,n}^e$ both have cardinality $\binom{n}{i} 2^{i-1}$.&lt;br /&gt;
&lt;br /&gt;
The \emph{Hamming distance} between two words $w,w&#039;$ is the number of coordinates in which $w, w&#039;$ differ, e.g. the Hamming distance between $123$ and $321$ is two.  Note that $S_{i,n}$ is nothing more than the set of words whose Hamming distance from $2\ldots2$ is $i$, which justifies the terminology ``sphere&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the density Hales-Jewett problem, there are two types of symmetries on $[k]^n$ which map combinatorial lines to combinatorial lines (and hence line-free sets to line-free sets).  The first is a permutation of the alphabet $[k]$; the second is a permutation of the $n$ coordinates.  Together, this gives a symmetry group of order $k!n!$ on the cube $[k]^n$, which we refer to as the \emph{combinatorial symmetry group} of the cube $[k]^n$.  Two sets which are related by an element of this symmetry group will be called (combinatorially) \emph{equivalent}, thus for instance any two slices are combinatorially equivalent.&lt;br /&gt;
&lt;br /&gt;
For the analysis of Moser sets in $[k]^n$, the symmetries are a bit different.  One can still permute the $n$ coordinates, but one is no longer free to permute the alphabet $[k]$.  Instead, one can \emph{reflect} an individual coordinate, for instance sending each word $x_1 \ldots x_n$ to its reflection $x_1 \ldots x_{i-1} (k+1-x_i) x_{i+1} \ldots x_n$.  Together, this gives a symmetry group of order $2^n n!$ on the cube $[k]^n$, which we refer to as the \emph{geometric symmetry group} of the cube $[k]^n$; this group maps geometric lines to geometric lines, and thus maps Moser sets to Moser sets.  Two Moser sets which are related by an element of this symmetry group will be called (geometrically) \emph{equivalent}.  For instance, a sphere $S_{i,n}$ is equivalent only to itself, and $S_{i,n}^o$, $S_{i,n}^e$ are equivalent only to each other.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Polymath.tex&amp;diff=2029</id>
		<title>Polymath.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Polymath.tex&amp;diff=2029"/>
		<updated>2009-07-26T02:20:10Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\documentclass[12pt,a4paper,reqno]{amsart}&lt;br /&gt;
\usepackage{amssymb}&lt;br /&gt;
\usepackage{amscd}&lt;br /&gt;
%\usepackage{psfig}&lt;br /&gt;
\usepackage{graphicx}&lt;br /&gt;
%\usepackage{showkeys}  &lt;br /&gt;
% uncomment this when editing cross-references&lt;br /&gt;
\numberwithin{equation}{section}&lt;br /&gt;
&lt;br /&gt;
\addtolength{\textwidth}{3 truecm}&lt;br /&gt;
\addtolength{\textheight}{1 truecm}&lt;br /&gt;
\setlength{\voffset}{-.6 truecm}&lt;br /&gt;
\setlength{\hoffset}{-1.3 truecm}&lt;br /&gt;
     &lt;br /&gt;
\theoremstyle{plain}&lt;br /&gt;
&lt;br /&gt;
\newtheorem{theorem}{Theorem}[section]&lt;br /&gt;
%\newtheorem{theorem}[theorem]{Theorem}&lt;br /&gt;
\newtheorem{proposition}[theorem]{Proposition}&lt;br /&gt;
\newtheorem{lemma}[theorem]{Lemma}&lt;br /&gt;
\newtheorem{corollary}[theorem]{Corollary}&lt;br /&gt;
\newtheorem{conjecture}[theorem]{Conjecture}&lt;br /&gt;
\newtheorem{principle}[theorem]{Principle}&lt;br /&gt;
\newtheorem{claim}[theorem]{Claim}&lt;br /&gt;
&lt;br /&gt;
\theoremstyle{definition}&lt;br /&gt;
&lt;br /&gt;
%\newtheorem{roughdef}[subsection]{Rough Definition}&lt;br /&gt;
\newtheorem{definition}[theorem]{Definition}&lt;br /&gt;
\newtheorem{remark}[theorem]{Remark}&lt;br /&gt;
\newtheorem{remarks}[theorem]{Remarks}&lt;br /&gt;
\newtheorem{example}[theorem]{Example}&lt;br /&gt;
\newtheorem{examples}[theorem]{Examples}&lt;br /&gt;
%\newtheorem{problem}[subsection]{Problem}&lt;br /&gt;
%\newtheorem{question}[subsection]{Question}&lt;br /&gt;
&lt;br /&gt;
\newcommand\E{\mathbb{E}}&lt;br /&gt;
\newcommand\R{\mathbb{R}}&lt;br /&gt;
\newcommand\Z{\mathbb{Z}}&lt;br /&gt;
\newcommand\N{\mathbb{N}}&lt;br /&gt;
\renewcommand\P{\mathbb{P}}&lt;br /&gt;
&lt;br /&gt;
\parindent 0mm&lt;br /&gt;
\parskip   5mm &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\begin{document}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\title{Density Hales-Jewett and Moser numbers}&lt;br /&gt;
&lt;br /&gt;
\author{D.H.J. Polymath}&lt;br /&gt;
\address{http://michaelnielsen.org/polymath1/index.php}&lt;br /&gt;
\email{???}&lt;br /&gt;
&lt;br /&gt;
\subjclass{???}&lt;br /&gt;
&lt;br /&gt;
\begin{abstract}  &lt;br /&gt;
For any $n \geq 0$ and $k \geq 1$, the density Hales-Jewett number $c_{n,k}$ is defined as the size of the largest subset of the cube $[k]^n$ := $\{1,\ldots,k\}^n$ which contains no combinatorial line; similarly, the Moser number $c&#039;_{n,k}$ is the largest subset of the cube $[k]^n$ which contains no geometric line. A deep theorem of Furstenberg and Katznelson \cite{fk1}, \cite{fk2}, \cite{mcc} shows that $c_{n,k}$ = $o(k^n)$ as $n \to \infty$ (which implies a similar claim for $c&#039;_{n,k}$; this is already non-trivial for $k = 3$. Several new proofs of this result have also been recently established \cite{poly}, \cite{austin}.&lt;br /&gt;
&lt;br /&gt;
Using both human and computer-assisted arguments, we compute several values of $c_{n,k}$ and $c&#039;_{n,k}$ for small $n,k$. For instance the sequence $c_{n,3}$ for $n=0,\ldots,6$ is $1,2,6,18,52,150,450$, while the sequence $c&#039;_{n,3}$ for $n=0,\ldots,6$ is $1,2,6,16,43,124,353$. We also establish some results for higher $k$, showing for instance that an analogue of the LYM inequality (which relates to the $k = 2$ case) does not hold for higher $k$. &lt;br /&gt;
\end{abstract}&lt;br /&gt;
&lt;br /&gt;
\maketitle&lt;br /&gt;
%\today&lt;br /&gt;
&lt;br /&gt;
\setcounter{tocdepth}{1}&lt;br /&gt;
\tableofcontents&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
\include{introduction}&lt;br /&gt;
\include{dhj-lown-lower}&lt;br /&gt;
\include{dhj-lown}&lt;br /&gt;
\include{moser-lower}&lt;br /&gt;
\include{moser}&lt;br /&gt;
\include{fujimura}&lt;br /&gt;
\include{higherk}&lt;br /&gt;
\include{coloring}&lt;br /&gt;
&lt;br /&gt;
\appendix&lt;br /&gt;
&lt;br /&gt;
\include{genetic}&lt;br /&gt;
\include{integer}&lt;br /&gt;
&lt;br /&gt;
\begin{thebibliography}{10}&lt;br /&gt;
&lt;br /&gt;
\bibitem{ajtai}  Ajtai M, Szemerédi E, \emph{Sets of lattice points that form no squares}, Studia Scientiarum Mathematicarum Hungarica, 9, 9-11 (1974), (1975)&lt;br /&gt;
&lt;br /&gt;
\bibitem{austin}  T. Austin, \emph{Deducing the density Hales-Jewett theorem from an infinitary removal lemma}, preprint. &lt;br /&gt;
&lt;br /&gt;
\bibitem{behrend}&lt;br /&gt;
F. Behrend, \emph{On the sets of integers which contain no three in arithmetic progression}, Proceedings of the National Academy of Sciences \textbf{23} (1946), 331–-332.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chandra}&lt;br /&gt;
A. Chandra, \emph{On the solution of Moser&#039;s problem in four dimensions}, Canad. Math. Bull. \textbf{16} (1973), 507--511.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chvatal1} V. Chv\&#039;{a}tal, \emph{Remarks on a problem of Moser}, Canadian Math Bulletin, Vol 15, 1972, 19--21.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chvatal2} V. Chv\&#039;{a}tal, \emph{Edmonds polytopes and a hierarchy of combinatorial problems}, Discrete Math. 4 (1973) 305-337.&lt;br /&gt;
&lt;br /&gt;
\bibitem{elkin}&lt;br /&gt;
M. Elkin, \emph{An Improved Construction of Progression-Free Sets}, preprint.&lt;br /&gt;
&lt;br /&gt;
\bibitem{fk1} H. Furstenberg, Y. Katznelson, \emph{A density version of the Hales-Jewett theorem for $k = 3$}, Graph Theory and Combinatorics (Cambridge, 1988). Discrete Math. 75 (1989), no. 1-3, 227–-241.&lt;br /&gt;
&lt;br /&gt;
\bibitem{fk2} H. Furstenberg, Y. Katznelson, \emph{A density version of the Hales-Jewett theorem}, J. Anal. Math. 57 (1991), 64–-119. MR1191743&lt;br /&gt;
&lt;br /&gt;
\bibitem{greenwolf}&lt;br /&gt;
B. Green, J. Wolf, \emph{A note on Elkin&#039;s improvement of Behrend&#039;s construction}, preprint.&lt;br /&gt;
&lt;br /&gt;
\bibitem{heule} Marijn Heule, presentation at {\tt http://www.st.ewi.tudelft.nl/sat/slides/waerden.pdf}&lt;br /&gt;
&lt;br /&gt;
\bibitem{komlos}&lt;br /&gt;
J. Koml\&#039;{o}s, solution to problem P.170 by Leo Moser, Canad. Math.. Bull. vol {\bf (??check)} (1972), 312--313, 1970.&lt;br /&gt;
&lt;br /&gt;
\bibitem{Krisha} K. Krishna, M. Narasimha Murty, &amp;quot;Genetic K-means algorithm,&amp;quot; Systems, Man, and Cybernetics, Part B: Cybernetics, IEEE Transactions on , vol.29, no.3, pp.433-439, Jun 1999&lt;br /&gt;
&lt;br /&gt;
\bibitem{markstrom} {{\tt http://abel.math.umu.se/~klasm/Data/HJ/}}&lt;br /&gt;
&lt;br /&gt;
\bibitem{moser} L. Moser, Problem P.170 in Canad. Math. Bull. 13 (1970), 268.   &lt;br /&gt;
&lt;br /&gt;
\bibitem{mcc} R. McCutcheon, \emph{The conclusion of the proof of the density Hales-Jewett theorem for k=3}, unpublished. &lt;br /&gt;
&lt;br /&gt;
\bibitem{obryant}&lt;br /&gt;
K. O&#039;Bryant, \emph{Sets of integers that do not contain long arithmetic progressions}, preprint. &lt;br /&gt;
&lt;br /&gt;
\bibitem{oeis}&lt;br /&gt;
N. J. A. Sloane, Ed. (2008), The On-Line Encyclopedia of Integer Sequences, {\tt www.research.att.com/~njas/sequences/}&lt;br /&gt;
&lt;br /&gt;
\bibitem{potenchin}&lt;br /&gt;
A. Potechin, \emph{Maximal caps in $AG(6, 3)$}, Journal Designs, Codes and Cryptography, Volume 46, Number 3 / March, 2008.&lt;br /&gt;
&lt;br /&gt;
\bibitem{poly} D.H.J. Polymath, ???, preprint.  {\bf need title}&lt;br /&gt;
&lt;br /&gt;
\bibitem{rankin} &lt;br /&gt;
R. A. Rankin, Sets of integers containing not more than a given number of terms in arithmetical progression, Proc. Roy. Soc. Edinburgh Sect. A 65 (1960/1961), 332–344 (1960/61). MR 0142526 (26 \#95) &lt;br /&gt;
&lt;br /&gt;
\bibitem{roth}&lt;br /&gt;
K. Roth, \emph{On certain sets of integers, I}, Journal of the London Mathematical Society \textbf{28} (1953), 104-–109.&lt;br /&gt;
&lt;br /&gt;
\bibitem{Rothlauf} F. Rothlauf, D. E. Goldberg, Representations for Genetic and Evolutionary Algorithms. Physica-Verlag, 2002.&lt;br /&gt;
&lt;br /&gt;
\bibitem{sperner} &lt;br /&gt;
E. Sperner, \emph{Ein Satz \&amp;quot;uber Untermengen einer endlichen Menge}, Mathematische Zeitschrift \textbf{27} (1928), 544-–548.&lt;br /&gt;
&lt;br /&gt;
\bibitem{szem}&lt;br /&gt;
E. Szemer\&#039;edi, \emph{On sets of integers containing no $k$ elements in arithmetic progression}, Acta Arithmetica \textbf{27} (1975), 199-–245.&lt;br /&gt;
&lt;br /&gt;
\bibitem{waerden} {\tt http://en.wikipedia.org/wiki/Van\_der\_Waerden\_number}&lt;br /&gt;
&lt;br /&gt;
\end{thebibliography}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\end{document}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Dhj-lown-lower.tex&amp;diff=2028</id>
		<title>Dhj-lown-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Dhj-lown-lower.tex&amp;diff=2028"/>
		<updated>2009-07-26T02:18:38Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the density Hales-Jewett problem}\label{dhj-lower-sec}&lt;br /&gt;
&lt;br /&gt;
The purpose of this section is to establish various lower bounds for $c_{n,3}$, in particular establishing Theorem \ref{dhj-lower} and the lower bound component of Theorem \ref{dhj-upper}.&lt;br /&gt;
&lt;br /&gt;
As observed in the introduction, if $B \subset \Delta_{3,n}$ is a Fujimura set (i.e. a subset of $\Delta_{3,n} = \{ (a,b,c) \in \N^3: a+b+c=n\}$ which contains no upward equilateral triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$), then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a line-free subset of $[3]^n$, which gives the lower bound&lt;br /&gt;
\begin{equation}\label{cn3}&lt;br /&gt;
 c_{n,3} \geq |A_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
All of the lower bounds for $c_{n,3}$ in this paper will be constructed via this device.&lt;br /&gt;
&lt;br /&gt;
In order to use \eqref{cn3}, one of course needs to build Fujimura sets $B$ which are ``large&#039;&#039; in the sense that the right-hand side of \eqref{cn3} is large.  A fruitful starting point for this goal is the sets &lt;br /&gt;
$$B_{j,n} := \{ (a,b,c) \in \Delta_{3,n}: a + 2b \neq j \hbox{ mod } 3 \}$$&lt;br /&gt;
for $j=0,1,2$.  Observe that in order for a triangle $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ to lie in $B_{j,n}$, the length $r$ of the triangle must be a multiple of $3$.  This already makes $B_{j,n}$ a Fujimura set for $n &amp;lt; 3$	(and $B_{0,n}$ a Fujimura set for $n = 3$).&lt;br /&gt;
&lt;br /&gt;
When $n$ is not a multiple of $3$, the $B_{j,n}$ are all rotations of each other and give equivalent sets (of size $2 \times 3^{n-1}$).  When $n$ is a multiple of $3$, the sets $B_{1,n}$ and $B_{2,n}$ are reflections of each other, but $B_{0,n}$ is not equivalent to the other two sets (in particular, it omits all three corners of $\Delta_{3,n}$); the associated set $A_{B_{0,n}}$ is slightly larger than $A_{B_{1,n}}$ and $A_{B_{2,n}}$ and thus is slightly better for constructing line-free sets.&lt;br /&gt;
&lt;br /&gt;
As mentioned already, $B_{0,n}$ is a Fujimura set for $n \leq 3$, and hence $A_{B_{0,n}}$ is line-free for $n \leq 3$.  Applying \eqref{cn3} one obtains the lower bounds&lt;br /&gt;
$$ c_{0,3} \geq 1; c_{1,3} \geq 2; c_{2,3} \geq 6; c_{3,3} \geq 18.$$&lt;br /&gt;
&lt;br /&gt;
For $n&amp;gt;3$, $B_{0,n}$ contains some triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ and so is not a Fujimura set, but one can remove points from this set to recover the Fujimura property.  For instance, for $n \leq 6$, the only triangles in $B_{0,n}$ have side length $r=3$.  One can ``delete&#039;&#039; these triangles by removing one vertex from each; in order to optimise the bound \eqref{cn3} it is preferable to delete vertices near the corners of $\Delta_{3,n}$ rather than near the centre.  These considerations lead to the Fujimura sets&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B_{0,4} &amp;amp;\backslash \{ (0,0,4), (0,4,0), (4,0,0) \}\\&lt;br /&gt;
B_{0,5} &amp;amp;\backslash \{ (0,4,1), (0,5,0), (4,0,1), (5,0,0) \}\\&lt;br /&gt;
B_{0,6} &amp;amp;\backslash \{ (0,1,5), (0,5,1), (1,0,5), (0,1,5), (1,5,0), (5,1,0) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
which by \eqref{cn3} gives the lower bounds&lt;br /&gt;
$$ c_{4,3} \geq 52; c_{5,3} \geq 150; c_{6,3} \geq 450.$$&lt;br /&gt;
Thus we have established all the lower bounds needed for Theorem \ref{dhj-upper}.&lt;br /&gt;
&lt;br /&gt;
One can of course continue this process by hand, for instance the set&lt;br /&gt;
$$ B_{0,7} \backslash \{(0,1,6),(1,0,6),(0,5,2),(5,0,2),(1,5,1),(5,1,1),(1,6,0),(6,1,0) \}$$&lt;br /&gt;
gives the lower bound $c_{7,3} \geq 1302$, which we tentatively conjecture to be the correct bound. &lt;br /&gt;
&lt;br /&gt;
A simplification was found when $n$ is a multiple of $3$.  Observe that for $n=6$, the sets excluded from $B_{0,6}$ are all permutations of $(0,1,5)$.  So the remaining sets are all the permutations of $(1,2,3)$ and $(0,2,4)$.  In the same way, sets for $n=9$, $12$ and $15$ can be described as:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item $n=9$: $(2,3,4),(1,3,5),(0,4,5)$ and permutations;&lt;br /&gt;
\item $n=12$: $(3,4,5),(2,4,6),(1,5,6),(0,2,10),(0,5,7)$ and permutations;&lt;br /&gt;
\item $n=15$: $(4,5,6),(3,5,7),(2,6,7),(1,3,11),(1,6,8),(0,4,11),(0,7,8)$ and permutations.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
When $n$ is not a multiple of $3$, say $n=3m-1$ or $n=3m-2$, one first finds a solution for $n=3m$.  Then for $n=3m-1$, one restricts the first digit of the $3m$ sequence to equal $1$.  This leaves exactly one-third as many points for $3m-1$ as for $3m$.  For $n=3m-1$, one restricts the first two digits of the $3m$ sequence to be $12$.  This leaves roughly one-ninth as many points for $3m-2$ as for $3m$.&lt;br /&gt;
&lt;br /&gt;
The following is an effective method to find good, though not optimal, solutions for any $n=3m$.  (For $n&amp;lt;21$, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
Start with thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to $M := (m,m,m)$, when $n=3m$:&lt;br /&gt;
$$(-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4)$$&lt;br /&gt;
$$(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1)$$&lt;br /&gt;
Then include eights string of points, stretching to the edges of the triangle $\Delta_n$;&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item $M+(-8-2x,-6-2x,14+4x)$, $M+(-8-2x,-3-2x,11+4x)$, $M+(-8-2x,x,8+x)$, $M+(-8-2x,3+x,5+x)$ and permutations ($0\le 2x \le M-8$);&lt;br /&gt;
\item $M+(-9-2x,-5-2x,14+4x)$, $M+(-9-2x,-2-2x,11+4x)$, $M+(-9-2x,1+x,8+x)$, $M+(-9-2x,4+x,5+x)$ and permutations ($0\le 2x \le M-9$).&lt;br /&gt;
\end{itemize}&lt;br /&gt;
This solution gives $O(2.7 \sqrt(\log (n)/n)3^n$ points for values of $n$ up to around $1000$.  This is asymptotically smaller than the known optimum of $3^{n-O(\sqrt(\log(n)))}$.  When $n=99$, it gives more than $3^n/3$ points.&lt;br /&gt;
&lt;br /&gt;
The following solution gives more points for $n&amp;gt;1000$, but not for moderate $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.  It starts $1,2,7,8,19,20,25,26,55, \ldots$;&lt;br /&gt;
\item List all the $(abc)$ triples that sum to $n$, for which the larger two differ by a number from the sequence;&lt;br /&gt;
\item Exclude the case when the smaller two differ by 1;&lt;br /&gt;
\item Include the case when $(a,b,c)$ is a permutation of $n/3+(-1,0,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
An integer program was run obtain the maximum lower bound one could establish from \eqref{cn3} (see Appendix \ref{integer-sec}).  The results for $1 \leq n \leq 20$ are displayed in Figure \ref{nlow}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	96338\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	287892\\&lt;br /&gt;
3 &amp;amp;	18 &amp;amp; 13&amp;amp;	854139\\&lt;br /&gt;
4 &amp;amp;	52 &amp;amp; 14&amp;amp;	2537821\\&lt;br /&gt;
5 &amp;amp;	150&amp;amp; 15&amp;amp;	7528835\\&lt;br /&gt;
6 &amp;amp;	450&amp;amp; 16&amp;amp;	22517082\\&lt;br /&gt;
7 &amp;amp;	1302&amp;amp; 17&amp;amp;	66944301\\&lt;br /&gt;
8 &amp;amp;	3780&amp;amp;18&amp;amp;	198629224\\&lt;br /&gt;
9 &amp;amp;	11340&amp;amp;19&amp;amp;	593911730\\&lt;br /&gt;
10&amp;amp;	32864&amp;amp; 20&amp;amp;	1766894722\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at \cite{markstrom}&lt;br /&gt;
&lt;br /&gt;
If $B$ maximises the right-hand side of \eqref{cn3}, it is easy to see that $A_B$ is a line-free set which is maximal in the sense that the addition of any further point to $A_B$ will create a combinatorial line.  Thus one might conjecture that the maximal value of the right-hand side \eqref{cn3} is in fact equal to $c_{n,3}$ for all $n$; Theorem \ref{dhj-upper} asserts that this conjecture is true for $n \leq 6$.  &lt;br /&gt;
&lt;br /&gt;
Now we prove Theorem \ref{dhj-lower}.&lt;br /&gt;
&lt;br /&gt;
\begin{proof}[Proof of Theorem \ref {dhj-lower}] &lt;br /&gt;
Let $M$ be the circulant matrix with first row $(1,2,\ldots,k-1)$, second row $(k-1,1,2,\dots,k-2)$, and so on. Note that $M$ has nonzero determinant by well-known properties of circulant matrices.&lt;br /&gt;
&lt;br /&gt;
Let $S$ be a subset of the interval $[-\sqrt {n}/2, \sqrt {n}/2)$ that contains no nonconstant arithmetic progressions of length k, and let $B\subset\Delta_{n, k}$ be the set &lt;br /&gt;
    \[ B := \{(n-\sum_{i=1}^{k-1} a_i ,a_1,a_2,\dots, a_{k-1}) : &lt;br /&gt;
            (a_1,\dots,a_{k-1})= n/k + \det(M) M^{-1}\vec{s} , \vec{s}\in S^{k-1}\}.\] &lt;br /&gt;
The map $(m,a_1,\dots,a_{k-1}) \mapsto M (a_1,\dots,a_{k-1})$ takes simplices to nonconstant arithmetic progressions in ${\mathbb Z}^{k-1}$, and takes $B$ to $\{c+det(M) \, \vec{s} \colon \vec{s} \in S^{k-1}\}$, which is a set containing no nonconstant arithmetic progressions. Thus, $B$ is a Fujimora set and so does not contain any combinatorial lines. &lt;br /&gt;
&lt;br /&gt;
If all of $a_1,\ldots,a_k$ are within $C_1\sqrt{n}$ of $n/k$, then $|\Gamma_{\vec{a}}| \geq C k^n/n^{(k-1)/2}$ (where $C$ depends on $C_1$) by the central limit theorem. By our choice of $S$ and applying~\eqref{cn3}, we obtain &lt;br /&gt;
     $$ c_ {n, k}\geq C k^n/n^{(k-1)/2} |S|^{k-1} = C k^n \left( \frac{|S|}{\sqrt{n}} \right)^{k-1}. $$&lt;br /&gt;
One can take $S$ to have cardinality $r_ k (\sqrt {n}) $, which from the results of O&#039;Bryant~\cite {obryant}) satisfies (for all sufficiently large $n$, some $C&amp;gt;0$, and $\ell$ the largest integer satisfying $k&amp;gt; 2^{\ell-1}$) &lt;br /&gt;
     $$ \frac{r_k (\sqrt{n})}{\sqrt{n}} \geq C  (\log n)^{1/(2\ell)}\exp_2 (-\ell 2^{(\ell-1)/2-1/\ell} \sqrt[\ell]{\log_2 n}),$$&lt;br /&gt;
which completes the proof.&lt;br /&gt;
\end {proof}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Dhj-lown-lower.tex&amp;diff=2027</id>
		<title>Dhj-lown-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Dhj-lown-lower.tex&amp;diff=2027"/>
		<updated>2009-07-26T02:13:29Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the density Hales-Jewett problem}\label{dhj-lower-sec}&lt;br /&gt;
&lt;br /&gt;
The purpose of this section is to establish various lower bounds for $c_{n,3}$, in particular establishing Theorem \ref{dhj-lower} and the lower bound component of Theorem \ref{dhj-upper}.&lt;br /&gt;
&lt;br /&gt;
As observed in the introduction, if $B \subset \Delta_{3,n}$ is a Fujimura set (i.e. a subset of $\Delta_{3,n} = \{ (a,b,c) \in \N^3: a+b+c=n\}$ which contains no upward equilateral triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$), then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a line-free subset of $[3]^n$, which gives the lower bound&lt;br /&gt;
\begin{equation}\label{cn3}&lt;br /&gt;
 c_{n,3} \geq |A_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
All of the lower bounds for $c_{n,3}$ in this paper will be constructed via this device.&lt;br /&gt;
&lt;br /&gt;
In order to use \eqref{cn3}, one of course needs to build Fujimura sets $B$ which are ``large&#039;&#039; in the sense that the right-hand side of \eqref{cn3} is large.  A fruitful starting point for this goal is the sets &lt;br /&gt;
$$B_{j,n} := \{ (a,b,c) \in \Delta_{3,n}: a + 2b \neq j \hbox{ mod } 3 \}$$&lt;br /&gt;
for $j=0,1,2$.  Observe that in order for a triangle $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ to lie in $B_{j,n}$, the length $r$ of the triangle must be a multiple of $3$.  This already makes $B_{j,n}$ a Fujimura set for $n &amp;lt; 3$	(and $B_{0,n}$ a Fujimura set for $n = 3$).&lt;br /&gt;
&lt;br /&gt;
When $n$ is not a multiple of $3$, the $B_{j,n}$ are all rotations of each other and give equivalent sets (of size $2 \times 3^{n-1}$).  When $n$ is a multiple of $3$, the sets $B_{1,n}$ and $B_{2,n}$ are reflections of each other, but $B_{0,n}$ is not equivalent to the other two sets (in particular, it omits all three corners of $\Delta_{3,n}$); the associated set $A_{B_{0,n}}$ is slightly larger than $A_{B_{1,n}}$ and $A_{B_{2,n}}$ and thus is slightly better for constructing line-free sets.&lt;br /&gt;
&lt;br /&gt;
As mentioned already, $B_{0,n}$ is a Fujimura set for $n \leq 3$, and hence $A_{B_{0,n}}$ is line-free for $n \leq 3$.  Applying \eqref{cn3} one obtains the lower bounds&lt;br /&gt;
$$ c_{0,3} \geq 1; c_{1,3} \geq 2; c_{2,3} \geq 6; c_{3,3} \geq 18.$$&lt;br /&gt;
&lt;br /&gt;
For $n&amp;gt;3$, $B_{0,n}$ contains some triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ and so is not a Fujimura set, but one can remove points from this set to recover the Fujimura property.  For instance, for $n \leq 6$, the only triangles in $B_{0,n}$ have side length $r=3$.  One can ``delete&#039;&#039; these triangles by removing one vertex from each; in order to optimise the bound \eqref{cn3} it is preferable to delete vertices near the corners of $\Delta_{3,n}$ rather than near the centre.  These considerations lead to the Fujimura sets&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B_{0,4} &amp;amp;\backslash \{ (0,0,4), (0,4,0), (4,0,0) \}\\&lt;br /&gt;
B_{0,5} &amp;amp;\backslash \{ (0,4,1), (0,5,0), (4,0,1), (5,0,0) \}\\&lt;br /&gt;
B_{0,6} &amp;amp;\backslash \{ (0,1,5), (0,5,1), (1,0,5), (0,1,5), (1,5,0), (5,1,0) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
which by \eqref{cn3} gives the lower bounds&lt;br /&gt;
$$ c_{4,3} \geq 52; c_{5,3} \geq 150; c_{6,3} \geq 450.$$&lt;br /&gt;
Thus we have established all the lower bounds needed for Theorem \ref{dhj-upper}.&lt;br /&gt;
&lt;br /&gt;
One can of course continue this process by hand, for instance the set&lt;br /&gt;
$$ B_{0,7} \backslash \{(0,1,6),(1,0,6),(0,5,2),(5,0,2),(1,5,1),(5,1,1),(1,6,0),(6,1,0) \}$$&lt;br /&gt;
gives the lower bound $c_{7,3} \geq 1302$, which we tentatively conjecture to be the correct bound. &lt;br /&gt;
&lt;br /&gt;
A simplification was found when $n$ is a multiple of $3$.  Observe that for $n=6$, the sets excluded from $B_{0,6}$ are all permutations of $(0,1,5)$.  So the remaining sets are all the permutations of $(1,2,3)$ and $(0,2,4)$.  In the same way, sets for $n=9$, $12$ and $15$ can be described as:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item $n=9$: $(2,3,4),(1,3,5),(0,4,5)$ and permutations;&lt;br /&gt;
\item $n=12$: $(3,4,5),(2,4,6),(1,5,6),(0,2,10),(0,5,7)$ and permutations;&lt;br /&gt;
\item $n=15$: $(4,5,6),(3,5,7),(2,6,7),(1,3,11),(1,6,8),(0,4,11),(0,7,8)$ and permutations.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
When $n$ is not a multiple of $3$, say $n=3m-1$ or $n=3m-2$, one first finds a solution for $n=3m$.  Then for $n=3m-1$, one restricts the first digit of the $3m$ sequence to equal $1$.  This leaves exactly one-third as many points for $3m-1$ as for $3m$.  For $n=3m-1$, one restricts the first two digits of the $3m$ sequence to be $12$.  This leaves roughly one-ninth as many points for $3m-2$ as for $3m$.&lt;br /&gt;
&lt;br /&gt;
The following is an effective method to find good, though not optimal, solutions for any $n=3m$.  (For $n&amp;lt;21$, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
Start with thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to $M := (m,m,m)$, when $n=3m$:&lt;br /&gt;
$$(-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4)$$&lt;br /&gt;
$$(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1)$$&lt;br /&gt;
Then include eights string of points, stretching to the edges of the triangle $\Delta_n$;&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item $M+(-8-2x,-6-2x,14+4x)$, $M+(-8-2x,-3-2x,11+4x)$, $M+(-8-2x,x,8+x)$, $M+(-8-2x,3+x,5+x)$ and permutations ($0\le 2x \le M-8$);&lt;br /&gt;
\item $M+(-9-2x,-5-2x,14+4x)$, $M+(-9-2x,-2-2x,11+4x)$, $M+(-9-2x,1+x,8+x)$, $M+(-9-2x,4+x,5+x)$ and permutations ($0\le 2x \le M-9$).&lt;br /&gt;
\end{itemize}&lt;br /&gt;
This solution gives $O(2.7 \sqrt(\log (n)/n)3^n$ points for values of $n$ up to around $1000$.  This is asymptotically smaller than the known optimum of $3^{n-O(\sqrt(\log(n)))}$.  When $n=99$, it gives more than $3^n/3$ points.&lt;br /&gt;
&lt;br /&gt;
The following solution gives more points for $n&amp;gt;1000$, but not for moderate $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.  It starts $1,2,7,8,19,20,25,26,55, \ldots$;&lt;br /&gt;
\item List all the $(abc)$ triples that sum to $n$, for which the larger two differ by a number from the sequence;&lt;br /&gt;
\item Exclude the case when the smaller two differ by 1;&lt;br /&gt;
\item Include the case when $(a,b,c)$ is a permutation of $n/3+(-1,0,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
An integer program was run obtain the maximum lower bound one could establish from \eqref{cn3} (see Appendix \ref{integer-sec}).  The results for $1 \leq n \leq 20$ are displayed in Figure \ref{nlow}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	96338\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	287892\\&lt;br /&gt;
3 &amp;amp;	18 &amp;amp; 13&amp;amp;	854139\\&lt;br /&gt;
4 &amp;amp;	52 &amp;amp; 14&amp;amp;	2537821\\&lt;br /&gt;
5 &amp;amp;	150&amp;amp; 15&amp;amp;	7528835\\&lt;br /&gt;
6 &amp;amp;	450&amp;amp; 16&amp;amp;	22517082\\&lt;br /&gt;
7 &amp;amp;	1302&amp;amp; 17&amp;amp;	66944301\\&lt;br /&gt;
8 &amp;amp;	3780&amp;amp;18&amp;amp;	198629224\\&lt;br /&gt;
9 &amp;amp;	11340&amp;amp;19&amp;amp;	593911730\\&lt;br /&gt;
10&amp;amp;	32864&amp;amp; 20&amp;amp;	1766894722\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at &lt;br /&gt;
\centerline{{\tt http://abel.math.umu.se/~klasm/Data/HJ/}.}&lt;br /&gt;
&lt;br /&gt;
If $B$ maximises the right-hand side of \eqref{cn3}, it is easy to see that $A_B$ is a line-free set which is maximal in the sense that the addition of any further point to $A_B$ will create a combinatorial line.  Thus one might conjecture that the maximal value of the right-hand side \eqref{cn3} is in fact equal to $c_{n,3}$ for all $n$; Theorem \ref{dhj-upper} asserts that this conjecture is true for $n \leq 6$.  &lt;br /&gt;
&lt;br /&gt;
Now we prove Theorem \ref{dhj-lower}.&lt;br /&gt;
&lt;br /&gt;
\begin{proof}[Proof of Theorem \ref {dhj-lower}] &lt;br /&gt;
Let $M$ be the circulant matrix with first row $(1,2,\ldots,k-1)$, second row $(k-1,1,2,\dots,k-2)$, and so on. Note that $M$ has nonzero determinant by well-known properties of circulant matrices.&lt;br /&gt;
&lt;br /&gt;
Let $S$ be a subset of the interval $[-\sqrt {n}/2, \sqrt {n}/2)$ that contains no nonconstant arithmetic progressions of length k, and let $B\subset\Delta_{n, k}$ be the set &lt;br /&gt;
    \[ B := \{(n-\sum_{i=1}^{k-1} a_i ,a_1,a_2,\dots, a_{k-1}) : &lt;br /&gt;
            (a_1,\dots,a_{k-1})= n/k + \det(M) M^{-1}\vec{s} , \vec{s}\in S^{k-1}\}.\] &lt;br /&gt;
The map $(m,a_1,\dots,a_{k-1}) \mapsto M (a_1,\dots,a_{k-1})$ takes simplices to nonconstant arithmetic progressions in ${\mathbb Z}^{k-1}$, and takes $B$ to $\{c+det(M) \, \vec{s} \colon \vec{s} \in S^{k-1}\}$, which is a set containing no nonconstant arithmetic progressions. Thus, $B$ is a Fujimora set and so does not contain any combinatorial lines. &lt;br /&gt;
&lt;br /&gt;
If all of $a_1,\ldots,a_k$ are within $C_1\sqrt{n}$ of $n/k$, then $|\Gamma_{\vec{a}}| \geq C k^n/n^{(k-1)/2}$ (where $C$ depends on $C_1$) by the central limit theorem. By our choice of $S$ and applying~\eqref{cn3}, we obtain &lt;br /&gt;
     $$ c_ {n, k}\geq C k^n/n^{(k-1)/2} |S|^{k-1} = C k^n \left( \frac{|S|}{\sqrt{n}} \right)^{k-1}. $$&lt;br /&gt;
One can take $S$ to have cardinality $r_ k (\sqrt {n}) $, which from the results of O&#039;Bryant~\cite {obryant}) satisfies (for all sufficiently large $n$, some $C&amp;gt;0$, and $\ell$ the largest integer satisfying $k&amp;gt; 2^{\ell-1}$) &lt;br /&gt;
     $$ \frac{r_k (\sqrt{n})}{\sqrt{n}} \geq C  (\log n)^{1/(2\ell)}\exp_2 (-\ell 2^{(\ell-1)/2-1/\ell} \sqrt[\ell]{\log_2 n}),$$&lt;br /&gt;
which completes the proof.&lt;br /&gt;
\end {proof}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=2026</id>
		<title>Fujimura.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=2026"/>
		<updated>2009-07-26T01:38:59Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Fujimura&#039;s problem}\label{fujimura-sec}&lt;br /&gt;
&lt;br /&gt;
Let $\overline{c}^\mu_n$ be the size of the largest subset of the trianglular grid &lt;br /&gt;
$$\Delta_n := \{(a,b,c)\in {\mathbb Z}^3_+ : a+b+c = n\}$$&lt;br /&gt;
which contains no equilateral triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ with $r&amp;gt;0$.  These are upward-pointing equilateral triangles.  We shall refer to such sets as &#039;triangle-free&#039;.&lt;br /&gt;
(Kobon Fujimura is a prolific inventor of puzzles, and in [http://www.puzzles.com/PuzzlePlayground/CoinsAndTriangles/CoinsAndTriangles.htm this] puzzle asked the related question of eliminating all equilateral triangles.)&lt;br /&gt;
&lt;br /&gt;
The following table was formed mostly by computer searches for optimal solutions. We also found human proofs for most of them (see {\tt http://michaelnielsen.org/polymath1/index.php?title=Fujimura&#039;s\_problem}).&lt;br /&gt;
&lt;br /&gt;
\begin{figure}&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{l|llllllllllllll}&lt;br /&gt;
$n$                  &amp;amp; 0 &amp;amp; 1 &amp;amp; 2 &amp;amp; 3 &amp;amp; 4 &amp;amp;  5 &amp;amp;  6 &amp;amp;  7 &amp;amp;  8 &amp;amp;  9 &amp;amp; 10 &amp;amp; 11 &amp;amp; 12 &amp;amp; 13\\&lt;br /&gt;
\hline &lt;br /&gt;
$\overline{c}^\mu_n$ &amp;amp; 1 &amp;amp; 2 &amp;amp; 4 &amp;amp; 6 &amp;amp; 9 &amp;amp; 12 &amp;amp; 15 &amp;amp; 18 &amp;amp; 22 &amp;amp; 26 &amp;amp; 31 &amp;amp; 35 &amp;amp; 40 &amp;amp; 46&lt;br /&gt;
\end{tabular}&lt;br /&gt;
}&lt;br /&gt;
\label{lowFujimura}&lt;br /&gt;
\caption{Fujimura numbers}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
For any equilateral triangle $(a+r,b,c)$,$(a,b+r,c)$ and $(a,b,c+r)$, the value $y+2z$ forms an arithmetic progression of length 3. A Behrend set is a finite set of integers with no arithmetic progression of length 3 (see {\tt http://arxiv.org/PS\_cache/arxiv/pdf/0811/0811.3057v2.pdf}). By looking at those triples $(a,b,c)$ with $a+2b$ inside a Behrend set, one can obtain the lower bound of $\overline{c}^\mu_n \geq n^2 exp(-O(\sqrt{\log n}))$.&lt;br /&gt;
&lt;br /&gt;
It can be shown by a &#039;corners theorem&#039; of Ajtai and Szemeredi \cite{ajtai} that $\overline{c}^\mu_n = o(n^2)$ as $n \rightarrow \infty$.&lt;br /&gt;
&lt;br /&gt;
An explicit lower bound is $3(n-1)$, made of all points in $\Delta_n$ with exactly one coordinate equal to zero.  &lt;br /&gt;
&lt;br /&gt;
An explicit upper bound comes from counting the triangles. There are $\binom{n+2}{3}$ triangles, and each point belongs to $n$ of them. So you must remove at least $(n+2)(n+1)/6$ points to remove all triangles, leaving $(n+2)(n+1)/3$ points as an upper bound for $\overline{c}^\mu_n$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Polymath.tex&amp;diff=2025</id>
		<title>Polymath.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Polymath.tex&amp;diff=2025"/>
		<updated>2009-07-26T01:38:16Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\documentclass[12pt,a4paper,reqno]{amsart}&lt;br /&gt;
\usepackage{amssymb}&lt;br /&gt;
\usepackage{amscd}&lt;br /&gt;
%\usepackage{psfig}&lt;br /&gt;
\usepackage{graphicx}&lt;br /&gt;
%\usepackage{showkeys}  &lt;br /&gt;
% uncomment this when editing cross-references&lt;br /&gt;
\numberwithin{equation}{section}&lt;br /&gt;
&lt;br /&gt;
\addtolength{\textwidth}{3 truecm}&lt;br /&gt;
\addtolength{\textheight}{1 truecm}&lt;br /&gt;
\setlength{\voffset}{-.6 truecm}&lt;br /&gt;
\setlength{\hoffset}{-1.3 truecm}&lt;br /&gt;
     &lt;br /&gt;
\theoremstyle{plain}&lt;br /&gt;
&lt;br /&gt;
\newtheorem{theorem}{Theorem}[section]&lt;br /&gt;
%\newtheorem{theorem}[theorem]{Theorem}&lt;br /&gt;
\newtheorem{proposition}[theorem]{Proposition}&lt;br /&gt;
\newtheorem{lemma}[theorem]{Lemma}&lt;br /&gt;
\newtheorem{corollary}[theorem]{Corollary}&lt;br /&gt;
\newtheorem{conjecture}[theorem]{Conjecture}&lt;br /&gt;
\newtheorem{principle}[theorem]{Principle}&lt;br /&gt;
\newtheorem{claim}[theorem]{Claim}&lt;br /&gt;
&lt;br /&gt;
\theoremstyle{definition}&lt;br /&gt;
&lt;br /&gt;
%\newtheorem{roughdef}[subsection]{Rough Definition}&lt;br /&gt;
\newtheorem{definition}[theorem]{Definition}&lt;br /&gt;
\newtheorem{remark}[theorem]{Remark}&lt;br /&gt;
\newtheorem{remarks}[theorem]{Remarks}&lt;br /&gt;
\newtheorem{example}[theorem]{Example}&lt;br /&gt;
\newtheorem{examples}[theorem]{Examples}&lt;br /&gt;
%\newtheorem{problem}[subsection]{Problem}&lt;br /&gt;
%\newtheorem{question}[subsection]{Question}&lt;br /&gt;
&lt;br /&gt;
\newcommand\E{\mathbb{E}}&lt;br /&gt;
\newcommand\R{\mathbb{R}}&lt;br /&gt;
\newcommand\Z{\mathbb{Z}}&lt;br /&gt;
\newcommand\N{\mathbb{N}}&lt;br /&gt;
\renewcommand\P{\mathbb{P}}&lt;br /&gt;
&lt;br /&gt;
\parindent 0mm&lt;br /&gt;
\parskip   5mm &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\begin{document}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\title{Density Hales-Jewett and Moser numbers}&lt;br /&gt;
&lt;br /&gt;
\author{D.H.J. Polymath}&lt;br /&gt;
\address{http://michaelnielsen.org/polymath1/index.php}&lt;br /&gt;
\email{???}&lt;br /&gt;
&lt;br /&gt;
\subjclass{???}&lt;br /&gt;
&lt;br /&gt;
\begin{abstract}  &lt;br /&gt;
For any $n \geq 0$ and $k \geq 1$, the density Hales-Jewett number $c_{n,k}$ is defined as the size of the largest subset of the cube $[k]^n$ := $\{1,\ldots,k\}^n$ which contains no combinatorial line; similarly, the Moser number $c&#039;_{n,k}$ is the largest subset of the cube $[k]^n$ which contains no geometric line. A deep theorem of Furstenberg and Katznelson \cite{fk1}, \cite{fk2}, \cite{mcc} shows that $c_{n,k}$ = $o(k^n)$ as $n \to \infty$ (which implies a similar claim for $c&#039;_{n,k}$; this is already non-trivial for $k = 3$. Several new proofs of this result have also been recently established \cite{poly}, \cite{austin}.&lt;br /&gt;
&lt;br /&gt;
Using both human and computer-assisted arguments, we compute several values of $c_{n,k}$ and $c&#039;_{n,k}$ for small $n,k$. For instance the sequence $c_{n,3}$ for $n=0,\ldots,6$ is $1,2,6,18,52,150,450$, while the sequence $c&#039;_{n,3}$ for $n=0,\ldots,6$ is $1,2,6,16,43,124,353$. We also establish some results for higher $k$, showing for instance that an analogue of the LYM inequality (which relates to the $k = 2$ case) does not hold for higher $k$. &lt;br /&gt;
\end{abstract}&lt;br /&gt;
&lt;br /&gt;
\maketitle&lt;br /&gt;
%\today&lt;br /&gt;
&lt;br /&gt;
\setcounter{tocdepth}{1}&lt;br /&gt;
\tableofcontents&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
\include{introduction}&lt;br /&gt;
\include{dhj-lown-lower}&lt;br /&gt;
\include{dhj-lown}&lt;br /&gt;
\include{moser-lower}&lt;br /&gt;
\include{moser}&lt;br /&gt;
\include{fujimura}&lt;br /&gt;
\include{higherk}&lt;br /&gt;
\include{coloring}&lt;br /&gt;
&lt;br /&gt;
\appendix&lt;br /&gt;
&lt;br /&gt;
\include{genetic}&lt;br /&gt;
\include{integer}&lt;br /&gt;
&lt;br /&gt;
\begin{thebibliography}{10}&lt;br /&gt;
&lt;br /&gt;
\bibitem{ajtai}  Ajtai M, Szemerédi E, \emph{Sets of lattice points that form no squares}, Studia Scientiarum Mathematicarum Hungarica, 9, 9-11 (1974), (1975)&lt;br /&gt;
&lt;br /&gt;
\bibitem{austin}  T. Austin, \emph{Deducing the density Hales-Jewett theorem from an infinitary removal lemma}, preprint. &lt;br /&gt;
&lt;br /&gt;
\bibitem{behrend}&lt;br /&gt;
F. Behrend, \emph{On the sets of integers which contain no three in arithmetic progression}, Proceedings of the National Academy of Sciences \textbf{23} (1946), 331–-332.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chandra}&lt;br /&gt;
A. Chandra, \emph{On the solution of Moser&#039;s problem in four dimensions}, Canad. Math. Bull. \textbf{16} (1973), 507--511.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chvatal1} V. Chv\&#039;{a}tal, \emph{Remarks on a problem of Moser}, Canadian Math Bulletin, Vol 15, 1972, 19--21.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chvatal2} V. Chv\&#039;{a}tal, \emph{Edmonds polytopes and a hierarchy of combinatorial problems}, Discrete Math. 4 (1973) 305-337.&lt;br /&gt;
&lt;br /&gt;
\bibitem{elkin}&lt;br /&gt;
M. Elkin, \emph{An Improved Construction of Progression-Free Sets}, preprint.&lt;br /&gt;
&lt;br /&gt;
\bibitem{fk1} H. Furstenberg, Y. Katznelson, \emph{A density version of the Hales-Jewett theorem for $k = 3$}, Graph Theory and Combinatorics (Cambridge, 1988). Discrete Math. 75 (1989), no. 1-3, 227–-241.&lt;br /&gt;
&lt;br /&gt;
\bibitem{fk2} H. Furstenberg, Y. Katznelson, \emph{A density version of the Hales-Jewett theorem}, J. Anal. Math. 57 (1991), 64–-119. MR1191743&lt;br /&gt;
&lt;br /&gt;
\bibitem{greenwolf}&lt;br /&gt;
B. Green, J. Wolf, \emph{A note on Elkin&#039;s improvement of Behrend&#039;s construction}, preprint.&lt;br /&gt;
&lt;br /&gt;
\bibitem{heule} Marijn Heule, presentation at {\tt http://www.st.ewi.tudelft.nl/sat/slides/waerden.pdf}&lt;br /&gt;
&lt;br /&gt;
\bibitem{komlos}&lt;br /&gt;
J. Koml\&#039;{o}s, solution to problem P.170 by Leo Moser, Canad. Math.. Bull. vol {\bf (??check)} (1972), 312--313, 1970.&lt;br /&gt;
&lt;br /&gt;
\bibitem{Krisha} K. Krishna, M. Narasimha Murty, &amp;quot;Genetic K-means algorithm,&amp;quot; Systems, Man, and Cybernetics, Part B: Cybernetics, IEEE Transactions on , vol.29, no.3, pp.433-439, Jun 1999&lt;br /&gt;
&lt;br /&gt;
\bibitem{moser} L. Moser, Problem P.170 in Canad. Math. Bull. 13 (1970), 268.   &lt;br /&gt;
&lt;br /&gt;
\bibitem{mcc} R. McCutcheon, \emph{The conclusion of the proof of the density Hales-Jewett theorem for k=3}, unpublished. &lt;br /&gt;
&lt;br /&gt;
\bibitem{obryant}&lt;br /&gt;
K. O&#039;Bryant, \emph{Sets of integers that do not contain long arithmetic progressions}, preprint. &lt;br /&gt;
&lt;br /&gt;
\bibitem{oeis}&lt;br /&gt;
N. J. A. Sloane, Ed. (2008), The On-Line Encyclopedia of Integer Sequences, {\tt www.research.att.com/~njas/sequences/}&lt;br /&gt;
&lt;br /&gt;
\bibitem{potenchin}&lt;br /&gt;
A. Potechin, \emph{Maximal caps in $AG(6, 3)$}, Journal Designs, Codes and Cryptography, Volume 46, Number 3 / March, 2008.&lt;br /&gt;
&lt;br /&gt;
\bibitem{poly} D.H.J. Polymath, ???, preprint.  {\bf need title}&lt;br /&gt;
&lt;br /&gt;
\bibitem{rankin} &lt;br /&gt;
R. A. Rankin, Sets of integers containing not more than a given number of terms in arithmetical progression, Proc. Roy. Soc. Edinburgh Sect. A 65 (1960/1961), 332–344 (1960/61). MR 0142526 (26 \#95) &lt;br /&gt;
&lt;br /&gt;
\bibitem{roth}&lt;br /&gt;
K. Roth, \emph{On certain sets of integers, I}, Journal of the London Mathematical Society \textbf{28} (1953), 104-–109.&lt;br /&gt;
&lt;br /&gt;
\bibitem{Rothlauf} F. Rothlauf, D. E. Goldberg, Representations for Genetic and Evolutionary Algorithms. Physica-Verlag, 2002.&lt;br /&gt;
&lt;br /&gt;
\bibitem{sperner} &lt;br /&gt;
E. Sperner, \emph{Ein Satz \&amp;quot;uber Untermengen einer endlichen Menge}, Mathematische Zeitschrift \textbf{27} (1928), 544-–548.&lt;br /&gt;
&lt;br /&gt;
\bibitem{szem}&lt;br /&gt;
E. Szemer\&#039;edi, \emph{On sets of integers containing no $k$ elements in arithmetic progression}, Acta Arithmetica \textbf{27} (1975), 199-–245.&lt;br /&gt;
&lt;br /&gt;
\bibitem{waerden} {\tt http://en.wikipedia.org/wiki/Van\_der\_Waerden\_number}&lt;br /&gt;
&lt;br /&gt;
\end{thebibliography}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\end{document}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2010</id>
		<title>Integer.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2010"/>
		<updated>2009-07-25T02:57:42Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Integer programming}\label{integer-sec}&lt;br /&gt;
&lt;br /&gt;
Integer programming is linear programming with solutions restricted to the integers.  A number of packages, for example Maple.12, can solve these problems.  It was used in several places during this project.&lt;br /&gt;
&lt;br /&gt;
The first place it was used was to find $c_5$, the maximal subset of $[3]^5$ with no combinatorial lines.  One 0/1-variable was used for each point in the cube, and one linear inequality for each combinatorial line.  The computer found twelve solutions with 150 points, and found that there were no solutions with 151 points, so $c_5 = 150$.  It follows easily that $c_6 = 450$, but the same program was used as a check to show that any set of 451 points in $[3]^6$ has a combinatorial line.&lt;br /&gt;
&lt;br /&gt;
The following routine was used for the 5 dimensional Moser problem to show that $c&#039;_5\ge 124$.&lt;br /&gt;
Let G be the 3-hypergraph with vertex set equal to $[3]^5$ as before and set $(I,J,K)\in E_3$ to be a 3-edge if and only if it is a geometric line.  $c&#039;_5$ is then the size of a maximal independent set.&lt;br /&gt;
Let &lt;br /&gt;
&lt;br /&gt;
$$ f(x) = \Sum_I x_I - \Sum_{(I,J,K)\in E_3} x_Ix_Jx_K. $$&lt;br /&gt;
&lt;br /&gt;
The following then holds,&lt;br /&gt;
&lt;br /&gt;
$$c&#039;_n = max_{x\in\{0,1\}^{3^n}} f(x) = max_{x\in [0,1]^{3^n}} f(x).$$&lt;br /&gt;
&lt;br /&gt;
To check the first equality, if $V$ is a line-free set in $G$ of size $k$, set $x_J=1$ for $J\in V$, and zero otherwise. Then $f(x) = $k$ because $V$ is line-free, so all the cubic terms are zero.  So $c&#039;_n \le max_{x\in\{0,1\}^{3^n}} f(x)$. Conversely, if for some $x\in\{0,1\}^{3^n}$, $f(x)=k$ and if there are triplets $x_I=x_J=x_K=1$ with $(I,J,K)\in E_3$, we change $x_I$ to 0. This reduces $\sum_I x_I$ by 1 but also reduce the second term of $f(x)$ by at least one. So repeating we can find an $x\in\{0,1\}^{3^n}$ with $f(x)\ge k$ and $x_Ix_Jx_K=0$ if $(I,J,K)\in E_3$, i.e. an independent set of size $\ge k$. So $c&#039;_n \ge max_{x\in\{0,1\}^{3^n}} f(x)$. The second equality follows from the maximum principle since $f$ is a square free polynomial.&lt;br /&gt;
$-f$ was then minimized using Matlab&#039;s built-in minimization routine, and found a 124-point subset of $[3]^5$ with no geometric lines.&lt;br /&gt;
&lt;br /&gt;
A third application of integer programming is expanded in some detail in Section \ref{moser-upper-sec}.  Each point is classified by how many of its coordinates are 2. Then the possible histograms or &#039;statistics&#039; of points in a low-dimensional line-free set were computed by brute-force.  Since a low-dimensional space fits into a higher-dimensional space in many ways, the low-dimensional statistics had consequences for higher-dimensional sets.  Many dozens of inequalities were found for six-dimensional and higher spaces, and Maple&#039;s integer programming routine was used to find limits on $c&#039;_n$.&lt;br /&gt;
&lt;br /&gt;
A fourth application of integer programming found many of our best lower bounds for both the DHJ problem and the Moser problem.  Assume that a solution is made up of complete $\Gamma(a,b,c)$ cells.  This drastically reduces the number of variables, from $3^n$ to $(n+2)(n+1)/2$ binary variables, one for each Gamma set.  In the DHJ problem, points in a combinatorial line will lie in cells of the form $\Gamma(a+r,b,c)$, $\Gamma(a,b+r,c)$ and $\Gamma(a,b,c+r)$ for some positive $r$.  Thus the line-free condition is met if we prevent equilateral triangles of this sort.  The Fujimora problem was to maximize the number of Gamma sets under this restriction, searching over the $(n+2)(n+1)/2$ binary variables.  The weighted Fujimora problem was to maximize the total number of points.  Thus each Gamma set $\Gamma(a,b,c)$ is weighted by its size $(a+b+c)!/(a!b!c!)$, but the restrictions are the same.&lt;br /&gt;
&lt;br /&gt;
In the Moser-Fujimura problem, we look for collections of $\Gamma(a,b,c)$ that do not contain geometric lines.  This is satisfied if there are no isosceles triangles of the form $(a+r,b,c+s)$, $(a,b+r+s,c)$, $(a+s,b,c+r)$.  Again, we run a search over the $(n+2)(n+1)/2$ binary variables, with $\Gamma(a,b,c)$ weighted by $(a+b+c)!/(a!b!c!)$, to maximize the total number of points.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2005</id>
		<title>Integer.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Integer.tex&amp;diff=2005"/>
		<updated>2009-07-24T12:53:53Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Integer programming}\label{integer-sec}&lt;br /&gt;
&lt;br /&gt;
Integer programming is linear programming with solutions restricted to the integers.  A number of packages, for example Maple.12, can solve these problems.  It was used in several places during this project.&lt;br /&gt;
&lt;br /&gt;
The first place it was used was to find $c_5$, the maximal subset of $[3]^5$ with no combinatorial lines.  One 0/1-variable was used for each point in the cube, and one linear inequality for each combinatorial line.  The computer found twelve solutions with 150 points, and found that there were no solutions with 151 points, so $c_5 = 150$.  It follows easily that $c_6 = 450$, but the same program was used as a check to show that any set of 451 points in $[3]^6$ has a combinatorial line.&lt;br /&gt;
&lt;br /&gt;
The following routine was used for the 5 dimensional Moser problem to show that $c&#039;_5\ge 124$.&lt;br /&gt;
Let G be the 3-hypergraph with vertex set equal to $[3]^5$ as before and set $(I,J,K)\in E_3$ to be a 3-edge if and only if it is a geometric line.  $c&#039;_5$ is then the size of a maximal independent set.&lt;br /&gt;
Let &lt;br /&gt;
&lt;br /&gt;
$$ f(x) = \Sum_I x_I - \Sum_{(I,J,K)\in E_3} x_Ix_Jx_K. $$&lt;br /&gt;
&lt;br /&gt;
The following then holds,&lt;br /&gt;
&lt;br /&gt;
$$c&#039;_n = max_{x\in\{0,1\}^{3^n}} f(x) = max_{x\in [0,1]^{3^n}} f(x).$$&lt;br /&gt;
&lt;br /&gt;
To check the first equality, if $V$ is a line-free set in $G$ of size $k$, set $x_J=1$ for $J\in V$, and zero otherwise. Then $f(x) = $k$ because $V$ is line-free, so all the cubic terms are zero.  So $c&#039;_n \le max_{x\in\{0,1\}^{3^n}} f(x)$. Conversely, if for some $x\in\{0,1\}^{3^n}$, $f(x)=k$ and if there are triplets $x_I=x_J=x_K=1$ with $(I,J,K)\in E_3$, we change $x_I$ to 0. This reduces $\sum_I x_I$ by 1 but also reduce the second term of $f(x)$ by at least one. So repeating we can find an $x\in\{0,1\}^{3^n}$ with $f(x)\ge k$ and $x_Ix_Jx_K=0$ if $(I,J,K)\in E_3$, i.e. an independent set of size $\ge k$. So $c&#039;_n \ge max_{x\in\{0,1\}^{3^n}} f(x)$. The second equality follows from the maximum principle since $f$ is a square free polynomial.&lt;br /&gt;
$-f$ was then minimized using Matlab&#039;s built-in minimization routine, and found a 124-point subset of $[3]^5$ with no geometric lines.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is where we will discuss the integer programming algorithms used in the paper, including those for DHJ, Moser, Fujimura, weighted Fujimura, and weighted Moser-Fujimura.  &lt;br /&gt;
Please edit at&lt;br /&gt;
&lt;br /&gt;
http://michaelnielsen.org/polymath1/index.php?title=Integer.tex&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1973</id>
		<title>Moser.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1973"/>
		<updated>2009-07-23T03:48:03Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Upper bounds for the $k=3$ Moser problem in small dimensions}\label{moser-upper-sec}&lt;br /&gt;
&lt;br /&gt;
In this section we finish the proof of Theorem \ref{moser} by obtaining the upper bounds on  $c&#039;_{n,3}$ for $n \leq 6$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Statistics, densities and slices}&lt;br /&gt;
&lt;br /&gt;
Our analysis will revolve around various \emph{statistics} of Moser sets $A \subset [3]^n$, their associated \emph{densities}, and the behavior of such statistics and densities with respect to the operation of passing from the cube $[3]^n$ to various \emph{slices} of that cube.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Statistics and densities]  Let $A \subset [3]^n$ be a set.  For any $0 \leq i \leq n$, set $a_i(A) := |A \cap S_{n-i,n}|$; thus we have&lt;br /&gt;
$$ 0 \leq a_i(A) \leq |S_{n-i,n}| = \binom{n}{i} 2^{n-i}$$&lt;br /&gt;
for $0 \leq i \leq n$ and&lt;br /&gt;
$$ a_0(A) + \ldots + a_n(A) = |A|.$$&lt;br /&gt;
We refer to the vector $(a_0(A),\ldots,a_n(A))$ as the \emph{statistics} of $A$.  We define the $i^{th}$ \emph{density} $\alpha_i(A)$ to be the quantity&lt;br /&gt;
$$ \alpha_i(A) := \frac{a_i(A) }{\binom{n}{i} 2^{n-i}},$$&lt;br /&gt;
thus $0 \leq \alpha_i(A) \leq 1$ and&lt;br /&gt;
$$ |A| = \sum_{i=0}^n \binom{n}{i} 2^{n-i} a_i(A).$$&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
\begin{example}\label{2mos}  Let $n=2$ and $A$ be the Moser set $A := \{ 12, 13, 21, 23, 31, 32 \}$.  Then the statistics $(a_0(A), a_1(A), a_2(A))$ of $A$ are $(2,4,0)$, and the densities $(\alpha_0(A), \alpha_1(A), \alpha_2(A))$ are $(\frac{1}{2}, 1, 0)$.  \textbf{Include picture here? with colours?}&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
When working with small values of $n$, it will be convenient to write $a(A)$, $b(A)$, $c(A)$, etc. for $a_0(A)$, $a_1(A)$, $a_2(A)$, etc., and similarly write $\alpha(A), \beta(A), \gamma(A)$, etc. for $\alpha_0(A)$, $\alpha_1(A)$, $\alpha_2(A)$, etc.  Thus for instance in Example \ref{2mos} we have $b(A) = 4$ and $\alpha(A) = \frac{1}{2}$.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Subspace statistics and densities]  If $V$ is a $k$-dimensional geometric subspace of $[3]^n$, then we have a map $\phi_V: [3]^k \to [3]^n$ from the $k$-dimensional cube to the $n$-dimensional cube.  If $A \subset [3]^n$ is a set and $0 \leq i \leq k$, we write $a_i(V,A)$ for $a_i(\phi_V^{-1}(A))$ and $\alpha_i(V,A)$ for $\alpha_i(\phi_V^{-1}(A))$.  If the set $A$ is clear from context, we abbreviate $a_i(V,A)$ as $a_i(V)$ and $\alpha_i(V,A)$ as $\alpha_i(V)$.&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
For our problem, a particularly important type of subspace of $[3]^n$ will be the \emph{slices} formed by fixing one coordinate and letting the other $n-1$ coordinates vary.  We will denote this by a single string in which the $n-1$ varying coordinates are denoted by asterisks.  For instance, in $[3]^2$, $1*$ denotes the slice $1*=\{11,12,13\}$, $*2$ denotes the slice $*2=\{12,22,32\}$, etc.; similarly, in $[3]^3$, $1**$ is the slice $\{111, 112, 113, 121, 122, 123, 131, 132, 133\}$, etc.  We call a slice a \emph{centre slice} if the fixed coordinate is $2$ and a \emph{side slice} if it is $1$ or $3$.&lt;br /&gt;
 &lt;br /&gt;
\begin{example}  We continue Example \ref{2mos}.  Then the statistics of the side slice $1*$ are $(a(1*),b(1*)) = (1,1)$, while the statistics of the centre slice $2*$ are $(a(2*),b(2*))=(2,0)$.  The corresponding densities are $(\alpha(1*),\beta(1*)) = (1/2,1)$ and $(\alpha(2*),\beta(2*))=(1,0)$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
A simple double counting argument gives the following useful identity:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Double counting identity]\label{dci}  Let $A \subset [3]^n$ and $0 \leq i \leq n-1$.  Then we have&lt;br /&gt;
$$ \frac{1}{n-i-1} \sum_{V \hbox{ a side slice}} a_{i+1}(V) = \frac{1}{i+1} \sum_{W \hbox{ a centre slice}} a_i(W) = a_{i+1}(A)$$&lt;br /&gt;
where $V$ ranges over the $2n$ side slices of $[3]^n$, and $W$ ranges over the $n$ centre slices.  In other words, the average value of $\alpha_{i+1}(V)$ for side slices $V$ equals the average value of $\alpha_i(W)$ for centre slices $W$, which is in turn equal to $\alpha_{i+1}(A)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Indeed, this lemma follows from the observation that every string in $A \cap S_{n-i-1,n}$ belongs to $i+1$ centre slices $W$ (and contributes to $a_i(W)$) and to $n-i-1$ side slices $V$ (and contributes to $a_{i+1}(V)$).  One can also view this lemma probabilistically, as the assertion that there are three equivalent ways to generate a random string of length $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick a side slice $V$ at random, and randomly fill in the wildcards in such a way that $i+1$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-2,n-1}$).&lt;br /&gt;
\item Pick a centre slice $V$ at random, and randomly fill in the wildcards in such a way that $i$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-1,n-1}$).&lt;br /&gt;
\item Randomly choose an element of $S_{n-i-1,n}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
\begin{example} We continue Example \ref{2mos}.  The average value of $\beta$ for side slices is equal to the average value of $\alpha$ for centre slices, which is equal to $\beta(A) = 1$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
Another very useful fact (essentially due to \cite{chvatal2}) is that linear inequalities for statistics of Moser sets at one dimension propagate to linear inequalities in higher dimensions:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Propagation lemma]\label{prop}  Let $n \geq 1$ be an integer.  Suppose one has a linear inequality of the form&lt;br /&gt;
\begin{equation}\label{alphav}&lt;br /&gt;
 \sum_{i=0}^n v_i \alpha_i(A) \leq s&lt;br /&gt;
\end{equation}&lt;br /&gt;
for all Moser sets $A \subset [3]^n$ and some real numbers $v_0,\ldots,v_n,s$.  Then we also have the linear inequality&lt;br /&gt;
$$ \sum_{i=0}^n v_i \alpha_{qi+r}(A) \leq s$$&lt;br /&gt;
whenever $q \geq 1$, $r \geq 0$, $N \geq nq+r$ are integers and $A \subset [3]^N$ is a Moser set.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  We run a probabilistic argument (one could of course also use a double counting argument instead).  Let $n,v_0,\ldots,v_n,s,q,r,N,A$ be as in the lemma.  Let $V$ be a random $n$-dimensional geometric subspace of $[3]^N$, created in the following fashion:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $n$ wildcards $x_1,\ldots,x_n$ to run independently from $1$ to $3$.  We also introduce dual wildcards $\overline{x_1},\ldots,\overline{x_n}$; each $\overline{x_j}$ will take the value $4-x_j$.&lt;br /&gt;
\item We randomly subdivide the $N$ coordinates into $n$ groups of $q$ coordinates, plus a remaining group of $N-nq$ ``fixed&#039;&#039; coordinates.&lt;br /&gt;
\item For each coordinate in the $j^{th}$ group of $q$ coordinates for $1 \leq j \leq n$, we randomly assign either a $x_j$ or $\overline{x_j}$.&lt;br /&gt;
\item For each coordinate in the $N-nq$ fixed coordinates, we randomly assign a digit $1,2,3$, but condition on the event that exactly $r$ of the digits are equal to $2$ (i.e. we use a random element of $S_{N-nq-r,N-nq}$).&lt;br /&gt;
\item Let $V$ be the subspace created by allowing $x_1,\ldots,x_n$ to run independently from $1$ to $3$, and $\overline{x_j}$ to take the value $4-x_j$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
For instance, if $n=2, q=2, r=1, N=6$, then a typical subspace $V$ generated in this fashion is&lt;br /&gt;
$$ 2x_1\overline{x_2}3x_2x_1 = \{ 213311, 212321, 211331, 223312, 222322, 221332, 233313, 232323, 231333\}.$$&lt;br /&gt;
Observe from that the following two ways to generate a random element of $[3]^N$ are equivalent:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $V$ randomly as above, and then assign $(x_1,\ldots,x_n)$ randomly from $S_{n-i,n}$.  Assign $4-x_j$ to $\overline{x_j}$ for all $1 \leq j \leq n$.&lt;br /&gt;
\item Pick a random string in $S_{N-qi-r,N}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
Indeed, both random variables are invariant under the symmetries of the cube, and both random variables always pick out strings in $S_{N-qi-r,N}$, and the claim follows.  As a consequence, we see that the expectation of $\alpha_i(V)$ (as $V$ ranges over the recipe described above) is equal to $\alpha_{qi+r}(A)$.  On the other hand, from \eqref{alphav} we have&lt;br /&gt;
$$  \sum_{i=0}^n v_i \alpha_i(V) \leq s$$&lt;br /&gt;
for all such $V$; taking expectations over $V$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
In view of Lemma \ref{prop}, it is of interest to locate linear inequalities relating the densities $\alpha_i(A)$, or (equivalently) the statistics $a_i(A)$.  For this, it is convenient to introduce the following notation.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}  Let $n \geq 1$ be an integer.  &lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item A vector $(a_0,\ldots,a_n)$ of non-negative integers is \emph{feasible} if it is the statistics of some Moser set $A$.&lt;br /&gt;
\item A feasible vector $(a_0,\ldots,a_n)$ is \emph{Pareto-optimal} if there is no other feasible vector $(b_0,\ldots,b_n) \neq (a_0,\ldots,a_n)$ such that $b_i \geq a_i$ for all $0 \leq i \leq n$.&lt;br /&gt;
\item A Pareto-optimal vector $(a_0,\ldots,a_n)$ is \emph{extremal} if it is not a non-trivial convex linear combination of other Pareto-optimal vectors.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
To establish a linear inequality of the form \eqref{alphav} with the $v_i$ non-negative, it suffices to test the inequality against densities associated to extremal vectors of statistics.  (There is no point considering linear inequalities with negative coefficients $v_i$, since one always has the freedom to reduce a density $\alpha_i(A)$ of a Moser set $A$ to zero, simply by removing all elements of $A$ with exactly $i$ $2$&#039;s.)&lt;br /&gt;
&lt;br /&gt;
We will classify exactly the Pareto-optimal and extremal vectors for $n \leq 3$, which by Lemma \ref{prop} will lead to useful linear inequalities for $n \geq 4$.  Using a computer, we have also located a partial list of Pareto-optimal and extremal vectors for $n=4$, which are also useful for the $n=5$ and $n=6$ theory.&lt;br /&gt;
&lt;br /&gt;
\subsection{Up to three dimensions}&lt;br /&gt;
&lt;br /&gt;
We now establish Theorem \ref{moser} for $n \leq 3$, and establish some auxiliary inequalities which will be of use in higher dimensions.&lt;br /&gt;
&lt;br /&gt;
The case $n=0$ is trivial. When $n=1$, it is clear that $c&#039;_{1,3} = 2$, and furthermore that the Pareto-optimal statistics are $(2,0)$ and $(1,1)$, which are both extremal.  This leads to the linear inequality&lt;br /&gt;
$$ 2\alpha(A) + \beta(A) \leq 2$$&lt;br /&gt;
for all Moser sets $A \subset [3]^1$, which by Lemma \ref{prop} implies that&lt;br /&gt;
\begin{equation}\label{alpha-1}&lt;br /&gt;
2\alpha_r(A) + \alpha_{r+q}(A) \leq 2&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
For $n=2$, we see by partitioning $[3]^2$ into three slices that $c&#039;_{2,3} \leq 3 c&#039;_{1,3} = 6$, and so (by the lower bounds in the previous section) $c&#039;_{2,3} = 6$.  Writing $(a,b,c) = (a(A),b(A),c(A)) = (4\alpha(A), 4\beta(A), \gamma(A))$, the inequalities \eqref{alpha-1} become&lt;br /&gt;
\begin{equation}\label{abc}&lt;br /&gt;
a + 2c \leq 4; b+2c \leq 4; 2a+b &amp;lt;= 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}  When $n=2$, the Pareto-optimal statistics are $(4,0,0), (3,2,0), (2,4,0), (2,2,1)$. In particular, the extremal statistics are $(4,0,0), (2,4,0), (2,2,1)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  One easily checks that all the statistics listed above are feasible.&lt;br /&gt;
Consider the statistics $(a,b,c)$ of a Moser set $A \subset [3]^2$.  $c$ is either equal to $0$ or $1$.  If $c=1$, then \eqref{abc} implies that $a,b \leq 2$, so the only Pareto-optimal statistic here is $(2,2,1)$.  When instead $c=0$, the inequalities \eqref{abc} can easily imply the Pareto-optimality of $(4,0,0), (3,2,0), (2,4,0)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this lemma we see that we obtain a new inequality $2a+b+2c \leq 8$.  Converting this back to densities and using Lemma \ref{prop}, we conclude that&lt;br /&gt;
\begin{equation}\label{alpha-2}&lt;br /&gt;
4\alpha_r(A) + 2\alpha_{r+q}(A) + \alpha_{r+2q} \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+2r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
One can also check by computer that there are exactly $230$ line-free subsets of $[3]^2$.&lt;br /&gt;
&lt;br /&gt;
Now we look at three dimensions.  Writing $(a,b,c,d)$ for the statistics of a Moser set $A \subset [3]^n$ (which thus range between $(0,0,0,0)$ and $(8,12,6,1)$), the inequalities \eqref{alpha-1} imply in particular that&lt;br /&gt;
\begin{equation}\label{abc-3d}&lt;br /&gt;
a+4d \leq 8; b+6d \leq 12; c+3d \leq 6; 3a+2c \leq 24; b+c \leq 12&lt;br /&gt;
\end{equation}&lt;br /&gt;
while \eqref{alpha-2} implies that&lt;br /&gt;
\begin{equation}\label{abcd-3d}&lt;br /&gt;
3a+b+c \leq 24; b+c+3d \leq 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Summing the inequalities $b+c \leq 12, 3a+b+c \leq 24, b+c+3d \leq 12$ yields&lt;br /&gt;
$$ 3(a+b+c+d) \leq 48$$&lt;br /&gt;
and hence $|A| = a+b+c+d \leq 16$; comparing this with the lower bounds of the preceding section we obtain $c&#039;_{3,3} = 16$ as required.  (This argument is essentially identical to the one in \cite{chvatal2}).&lt;br /&gt;
&lt;br /&gt;
We have the following useful computation:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[3D Pareto-optimals]\label{paretop} When $n=3$, the Pareto-optimal statistics are $$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0),$$ &lt;br /&gt;
$$ (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0),$$&lt;br /&gt;
$$ (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).$$  &lt;br /&gt;
In particular, the extremal statistics are &lt;br /&gt;
$$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0).$$&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} This can be established by a brute-force search over the $2^{27} \approx 1.3 \times 10^8$ different subsets of $[3]^3$.  Actually, one can perform a much faster search than this.  Firstly, as noted earlier, there are only $230$ line-free subsets of $[3]^2$, so one could search over $230^3 \approx 1.2 \times 10^7$ configurations instead.  Secondly, by symmetry we may assume (after enumerating the $230$ sets in a suitable fashion) that the first slice $A \cap 1**$ has an index less than or equal to the third $A \cap 3**$, leading to $\binom{231}{2} \times 230 \approx 6 \times 10^6$ configurations instead.  Finally, using the first and third slice one can quickly determine which elements of the second slice $2**$ are prohibited from $A$.  There are $2^9 = 512$ possible choices for the prohibited set in $2**$.  By crosschecking these against the list of $230$ line-free sets one can compute the Pareto-optimal statistics for the second slices inside the prohibited set (the lists of such statistics turns out to length at most $23$).  Storing these statistics in a lookup table, and then running over all choices of the first and third slice (using symmetry), one now has to perform $O( 512 \times 230 ) + O( \binom{231}{2} \times 23) \approx O( 10^6 )$ computations, which is quite a feasible computation.&lt;br /&gt;
&lt;br /&gt;
One could in principle reduce the computations even further, by a factor of up to $8$, by using the symmetry group $D_4$ of the square $[3]^2$ to reduce the number of cases one needs to consider, but we did not implement this.&lt;br /&gt;
&lt;br /&gt;
A computer-free proof of this lemma can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Human\_proof\_of\_the\_3D\_Pareto-optimal\_Moser\_statistics}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} A similar computation revealed that the total number of line-free subsets of $[3]^3$ was $3813884$.  With respect to the $2^3 \times 3!=48$-element group of geometric symmetries of $[3]^3$, these sets partitioned into $83158$ equivalence classes:&lt;br /&gt;
$$&lt;br /&gt;
3813884 = 76066 \times 48+6527 \times 24+51 \times 16+338 \times 12 +109 \times 8+41 \times 6+13 \times 4 +5 \times 3+3 \times 2+5 \times 1.&lt;br /&gt;
$$&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
Lemma \ref{paretop} yields the following new inequalities:&lt;br /&gt;
\begin{align*}&lt;br /&gt;
2a+b+2c+4d &amp;amp;\leq 22 \\&lt;br /&gt;
3a+2b+3c+6d &amp;amp;\leq 36 \\&lt;br /&gt;
7a+2b+4c+8d &amp;amp;\leq 56 \\&lt;br /&gt;
6a+2b+3c+6d &amp;amp;\leq 48 \\&lt;br /&gt;
a+2c+4d &amp;amp;\leq 14 \\&lt;br /&gt;
5a+4c+8d &amp;amp;\leq 40.&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
Applying Lemma \ref{prop}, we obtain new inequalities:&lt;br /&gt;
\begin{align}&lt;br /&gt;
8\alpha_r(A)+ 6\alpha_{r+q}(A) + 6\alpha_{r+2q}(A) + 2\alpha_{r+3q}(A) &amp;amp;\leq 11 \label{eleven}\\&lt;br /&gt;
4\alpha_r(A)+4\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 6\label{six}\\&lt;br /&gt;
7\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
8\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 8\label{eight}\\&lt;br /&gt;
4\alpha_{r+q}(A)+2\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 4\nonumber\\&lt;br /&gt;
4\alpha_r(A)+6\alpha_{r+2q}(A)+2\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
5\alpha_r(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 5\nonumber &lt;br /&gt;
\end{align}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq r+3q$, and Moser sets $A \subset [3]^n$.&lt;br /&gt;
&lt;br /&gt;
We also note some further corollaries of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Statistics of large 3D Moser sets]\label{paretop2}  Let $(a,b,c,d)$ be the statistics of a Moser set $A$ in $[3]^3$.  Then $|A| = a+b+c+d \leq 16$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $|A|=16$, then $(a,b,c,d) = (4,12,0,0)$.&lt;br /&gt;
\item If $|A|=15$, then $(a,b,c,d) = (4,11,0,0)$ or $(3,12,0,0)$.&lt;br /&gt;
\item If $|A| \geq 14$, then $b \geq 6$ and $d=0$.&lt;br /&gt;
\item If $|A| = 13$ and $d=1$, then $(a,b,c,d) = (4,6,2,1)$ or $(3,6,3,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\subsection{Four dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{4,3}=43$.  Let $A$ be a Moser set in $[3]^4$, with attendant statistics $(a,b,c,d,e)$, which range between $(0,0,0,0,0)$ and $(16,32,24,8,1)$.  In view of the lower bounds, our task here is to establish the upper bound $a+b+c+d+e \leq 43$.&lt;br /&gt;
&lt;br /&gt;
The linear inequalities already established just barely fail to achieve this bound, but we can obtain the upper bound $a+b+c+d+e \leq 44$ as follows.&lt;br /&gt;
First suppose that $e=1$; then from the inequalities \eqref{alpha-1} (or by considering lines passing through $2222$) we see that $a \leq 8, b \leq 16, c \leq 12, d \leq 4$ and hence $a+b+c+d+e \leq 41$, so we may assume that $e=0$.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{dci}, we see that $a+b+c+d+e$ is now equal to the sum of $a(V)/4+b(V)/3+c(V)/2+d(V)$, where $V$ ranges over all side slices of $[3]^4$.  But from Lemma \ref{paretop} we see that $a(V)/4+b(V)/3+c(V)/2+d(V)$ is at most $\frac{11}{4}$, with equality occuring only when $(a(V),b(V),c(V),d(V))=(2,6,6,0)$.  This gives the upper bound $a+b+c+d+e \leq 44$.&lt;br /&gt;
&lt;br /&gt;
The above argument shows that $a+b+c+d+e=44$ can only occur if $e=0$ and if $(a(V),b(V),c(V),d(V))=(2,6,6,0)$ for all side slices $V$.  Applying Lemma \ref{paretop} again this implies $(a,b,c,d,e)=(4,16,24,0,0)$.  But then $A$ contains all of the sphere $S_{2,4}$, which implies that the four-element set $A \cap S_{4,4}$ cannot contain a pair of strings which differ in exactly two positions (as their midpoint would then lie in $S_{2,4}$, contradicting the hypothesis that $A$ is a Moser set).  &lt;br /&gt;
&lt;br /&gt;
Recall that we may partition $S_{4,4} = S_{4,4}^e \cup S_{4,4}^o$, where &lt;br /&gt;
$$S_{4,4}^e := \{ 1111, 1133, 1313, 3113, 1331, 3131, 3311, 3333\}$$&lt;br /&gt;
is the strings in $S_{4,4}$ with an even number of $1$&#039;s, and &lt;br /&gt;
$$S_{4,4}^o := \{ 1113, 1131, 1311, 3111, 1333, 3133, 3313, 3331\}$$&lt;br /&gt;
are the strings in $S_{4,4}$ with an odd number.  Observe that any two distinct elements in $S_{4,4}^e$ differ in exactly two positions unless they are antipodal.  Thus $A \cap S_{4,4}^e$ has size at most two, with equality only when $A \cap S_{4,4}^e$ consists of an antipodal pair.  Similarly for $A \cap S_{4,4}^o$.  Thus $A$ must consist of two antipodal pairs, one from $S_{4,4}^e$ and one from $S_{4,4}^o$.&lt;br /&gt;
&lt;br /&gt;
By the symmetries of the cube we may assume without loss of generality that these pairs are $\{ 1111, 3333\}$ and $\{1113,3331\}$ respectively.  But as $A$ is a Moser set, $A$ must now exclude the strings $1112$ and $3332$.  These two strings form two corners of the eight-element set&lt;br /&gt;
$$ ***2 \cap S_{3,4} = \{ 1112, 1132, 1312, 3112, 1332, 3132, 3312, 3332 \}.$$&lt;br /&gt;
Any pair of points in this set which are ``adjacent&#039;&#039; in the sense that they differ by exactly one entry cannot both lie in $A$, as their midpoint would then lie in $S_{3,4}$, and so $A$ can contain at most four elements from this set, with equality only if $A$ contains all the points in $***2 \cap S_{3,4}$ of the same parity (either all the elements with an even number of $3$s, or all the elements with an odd number of $3$s).  But because the two corners removed from this set have the opposite parity (one has an even number of $1$s and one has an odd number), we see in fact that $A$ can contain at most $3$ points from this set.  Meanwhile, the same arguments give that $A$ contains at most four points from $**2* \cap S_{3,4}$, $*2** \cap S_{3,4}$, and $2*** \cap S_{3,4}$.  Summing we see that $b = |A \cap S_{3,4}| \leq 3+4+4+4=15$, a contradiction.  Thus we have $c&#039;_{4,3}=43$ as claimed.&lt;br /&gt;
&lt;br /&gt;
We have the following four-dimensional version of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[4D Pareto-optimals]\label{paretop-4} When $n=4$, the Pareto-optimal statistics listed on Table \ref{table4}.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centered{\tiny&lt;br /&gt;
$(3, 16, 24, 0, 0)$,&lt;br /&gt;
$(4, 14, 19, 2, 0)$,&lt;br /&gt;
$(4, 15, 24, 0, 0)$,&lt;br /&gt;
$(4, 16, 8, 4, 1)$,&lt;br /&gt;
$(4, 16, 14, 4, 0)$,&lt;br /&gt;
$(4, 16, 23, 0, 0)$,&lt;br /&gt;
$(4, 17, 21, 0, 0)$,&lt;br /&gt;
$(4, 18, 19, 0, 0)$,&lt;br /&gt;
$(5, 12, 12, 4, 1)$,&lt;br /&gt;
$(5, 12, 13, 6, 0)$,&lt;br /&gt;
$(5, 12, 15, 5, 0)$,&lt;br /&gt;
$(5, 12, 19, 2, 0)$,&lt;br /&gt;
$(5, 13, 10, 4, 1)$,&lt;br /&gt;
$(5, 13, 14, 5, 0)$,&lt;br /&gt;
$(5, 13, 21, 1, 0)$,&lt;br /&gt;
$(5, 15, 9, 4, 1)$,&lt;br /&gt;
$(5, 15, 12, 3, 1)$,&lt;br /&gt;
$(5, 15, 13, 5, 0)$,&lt;br /&gt;
$(5, 15, 18, 3, 0)$,&lt;br /&gt;
$(5, 15, 20, 1, 0)$,&lt;br /&gt;
$(5, 15, 22, 0, 0)$,&lt;br /&gt;
$(5, 16, 7, 4, 1)$,&lt;br /&gt;
$(5, 16, 10, 3, 1)$,&lt;br /&gt;
$(5, 16, 11, 5, 0)$,&lt;br /&gt;
$(5, 16, 12, 2, 1)$,&lt;br /&gt;
$(5, 16, 16, 3, 0)$,&lt;br /&gt;
$(5, 16, 19, 1, 0)$,&lt;br /&gt;
$(5, 16, 21, 0, 0)$,&lt;br /&gt;
$(5, 17, 12, 4, 0)$,&lt;br /&gt;
$(5, 17, 14, 3, 0)$,&lt;br /&gt;
$(5, 17, 16, 2, 0)$,&lt;br /&gt;
$(5, 17, 18, 1, 0)$,&lt;br /&gt;
$(5, 17, 20, 0, 0)$,&lt;br /&gt;
$(5, 18, 13, 3, 0)$,&lt;br /&gt;
$(5, 18, 14, 2, 0)$,&lt;br /&gt;
$(5, 20, 8, 4, 0)$,&lt;br /&gt;
$(5, 20, 10, 3, 0)$,&lt;br /&gt;
$(5, 20, 13, 2, 0)$,&lt;br /&gt;
$(5, 20, 14, 1, 0)$,&lt;br /&gt;
$(5, 20, 18, 0, 0)$,&lt;br /&gt;
$(5, 21, 10, 2, 0)$,&lt;br /&gt;
$(5, 21, 15, 0, 0)$,&lt;br /&gt;
$(5, 22, 13, 0, 0)$,&lt;br /&gt;
$(6, 8, 12, 8, 0)$,&lt;br /&gt;
$(6, 10, 11, 4, 1)$,&lt;br /&gt;
$(6, 11, 12, 7, 0)$,&lt;br /&gt;
$(6, 12, 10, 7, 0)$,&lt;br /&gt;
$(6, 12, 13, 5, 0)$,&lt;br /&gt;
$(6, 12, 18, 4, 0)$,&lt;br /&gt;
$(6, 13, 16, 4, 0)$,&lt;br /&gt;
$(6, 14, 9, 4, 1)$,&lt;br /&gt;
$(6, 14, 9, 7, 0)$,&lt;br /&gt;
$(6, 14, 12, 6, 0)$,&lt;br /&gt;
$(6, 14, 16, 3, 0)$,&lt;br /&gt;
$(6, 14, 19, 1, 0)$,&lt;br /&gt;
$(6, 14, 21, 0, 0)$,&lt;br /&gt;
$(6, 15, 7, 4, 1)$,&lt;br /&gt;
$(6, 15, 10, 3, 1)$,&lt;br /&gt;
$(6, 15, 10, 6, 0)$,&lt;br /&gt;
$(6, 15, 11, 2, 1)$,&lt;br /&gt;
$(6, 15, 12, 5, 0)$,&lt;br /&gt;
$(6, 15, 15, 4, 0)$,&lt;br /&gt;
$(6, 15, 20, 0, 0)$,&lt;br /&gt;
$(6, 16, 7, 3, 1)$,&lt;br /&gt;
$(6, 16, 8, 6, 0)$,&lt;br /&gt;
$(6, 16, 9, 2, 1)$,&lt;br /&gt;
$(6, 16, 10, 5, 0)$,&lt;br /&gt;
$(6, 16, 12, 1, 1)$,&lt;br /&gt;
$(6, 16, 13, 4, 0)$,&lt;br /&gt;
$(6, 16, 14, 3, 0)$,&lt;br /&gt;
$(6, 16, 18, 2, 0)$,&lt;br /&gt;
$(6, 16, 19, 0, 0)$,&lt;br /&gt;
$(6, 17, 9, 5, 0)$,&lt;br /&gt;
$(6, 17, 10, 4, 0)$,&lt;br /&gt;
$(6, 17, 13, 3, 0)$,&lt;br /&gt;
$(6, 17, 15, 2, 0)$,&lt;br /&gt;
$(6, 17, 17, 1, 0)$,&lt;br /&gt;
$(6, 17, 18, 0, 0)$,&lt;br /&gt;
$(6, 18, 13, 2, 0)$,&lt;br /&gt;
$(6, 18, 16, 1, 0)$,&lt;br /&gt;
$(6, 18, 17, 0, 0)$,&lt;br /&gt;
$(6, 19, 9, 4, 0)$,&lt;br /&gt;
$(6, 19, 12, 3, 0)$,&lt;br /&gt;
$(6, 19, 15, 1, 0)$,&lt;br /&gt;
$(6, 20, 7, 4, 0)$,&lt;br /&gt;
$(6, 20, 9, 3, 0)$,&lt;br /&gt;
$(6, 20, 12, 2, 0)$,&lt;br /&gt;
$(6, 20, 13, 1, 0)$,&lt;br /&gt;
$(6, 20, 15, 0, 0)$,&lt;br /&gt;
$(6, 21, 8, 3, 0)$,&lt;br /&gt;
$(6, 21, 9, 2, 0)$,&lt;br /&gt;
$(6, 21, 12, 1, 0)$,&lt;br /&gt;
$(6, 21, 14, 0, 0)$,&lt;br /&gt;
$(6, 22, 7, 3, 0)$,&lt;br /&gt;
$(6, 22, 8, 2, 0)$,&lt;br /&gt;
$(6, 22, 10, 1, 0)$,&lt;br /&gt;
$(6, 23, 9, 1, 0)$,&lt;br /&gt;
$(6, 24, 7, 2, 0)$,&lt;br /&gt;
$(6, 24, 8, 1, 0)$,&lt;br /&gt;
$(6, 24, 12, 0, 0)$,&lt;br /&gt;
$(6, 25, 9, 0, 0)$,&lt;br /&gt;
$(6, 26, 7, 0, 0)$,&lt;br /&gt;
$(7, 8, 6, 8, 0)$,&lt;br /&gt;
$(7, 11, 9, 4, 1)$,&lt;br /&gt;
$(7, 11, 12, 6, 0)$,&lt;br /&gt;
$(7, 12, 8, 4, 1)$,&lt;br /&gt;
$(7, 12, 8, 6, 0)$,&lt;br /&gt;
$(7, 12, 12, 3, 1)$,&lt;br /&gt;
$(7, 12, 12, 5, 0)$,&lt;br /&gt;
$(7, 12, 13, 4, 0)$,&lt;br /&gt;
$(7, 12, 15, 3, 0)$,&lt;br /&gt;
$(7, 12, 17, 2, 0)$,&lt;br /&gt;
$(7, 13, 7, 4, 1)$,&lt;br /&gt;
$(7, 13, 10, 3, 1)$,&lt;br /&gt;
$(7, 13, 11, 5, 0)$,&lt;br /&gt;
$(7, 13, 12, 2, 1)$,&lt;br /&gt;
$(7, 13, 12, 4, 0)$,&lt;br /&gt;
$(7, 13, 14, 3, 0)$,&lt;br /&gt;
$(7, 13, 16, 2, 0)$,&lt;br /&gt;
$(7, 14, 6, 4, 1)$,&lt;br /&gt;
$(7, 14, 6, 7, 0)$,&lt;br /&gt;
$(7, 14, 9, 5, 0)$,&lt;br /&gt;
$(7, 14, 10, 2, 1)$,&lt;br /&gt;
$(7, 14, 12, 1, 1)$,&lt;br /&gt;
$(7, 14, 17, 1, 0)$,&lt;br /&gt;
$(7, 14, 19, 0, 0)$,&lt;br /&gt;
$(7, 15, 7, 5, 0)$,&lt;br /&gt;
$(7, 15, 8, 3, 1)$,&lt;br /&gt;
$(7, 15, 9, 2, 1)$,&lt;br /&gt;
$(7, 15, 11, 1, 1)$,&lt;br /&gt;
$(7, 15, 11, 4, 0)$,&lt;br /&gt;
$(7, 15, 13, 3, 0)$,&lt;br /&gt;
$(7, 15, 16, 1, 0)$,&lt;br /&gt;
$(7, 16, 6, 3, 1)$,&lt;br /&gt;
$(7, 16, 6, 6, 0)$,&lt;br /&gt;
$(7, 16, 8, 2, 1)$,&lt;br /&gt;
$(7, 16, 10, 1, 1)$,&lt;br /&gt;
$(7, 16, 10, 4, 0)$,&lt;br /&gt;
$(7, 16, 12, 0, 1)$,&lt;br /&gt;
$(7, 16, 12, 3, 0)$,&lt;br /&gt;
$(7, 16, 15, 2, 0)$,&lt;br /&gt;
$(7, 16, 17, 0, 0)$,&lt;br /&gt;
$(7, 17, 6, 5, 0)$,&lt;br /&gt;
$(7, 17, 7, 4, 0)$,&lt;br /&gt;
$(7, 17, 11, 3, 0)$,&lt;br /&gt;
$(7, 17, 13, 2, 0)$,&lt;br /&gt;
$(7, 17, 14, 1, 0)$,&lt;br /&gt;
$(7, 17, 16, 0, 0)$,&lt;br /&gt;
$(7, 18, 10, 3, 0)$,&lt;br /&gt;
$(7, 18, 13, 1, 0)$,&lt;br /&gt;
$(7, 18, 15, 0, 0)$,&lt;br /&gt;
$(7, 19, 9, 3, 0)$,&lt;br /&gt;
$(7, 20, 6, 4, 0)$,&lt;br /&gt;
$(7, 20, 11, 2, 0)$,&lt;br /&gt;
$(7, 20, 12, 1, 0)$,&lt;br /&gt;
$(7, 20, 14, 0, 0)$,&lt;br /&gt;
$(7, 21, 8, 2, 0)$,&lt;br /&gt;
$(7, 21, 10, 1, 0)$,&lt;br /&gt;
$(7, 21, 12, 0, 0)$,&lt;br /&gt;
$(7, 22, 9, 1, 0)$,&lt;br /&gt;
$(7, 22, 11, 0, 0)$,&lt;br /&gt;
$(7, 23, 6, 3, 0)$,&lt;br /&gt;
$(7, 23, 7, 1, 0)$,&lt;br /&gt;
$(7, 23, 10, 0, 0)$,&lt;br /&gt;
$(7, 24, 6, 2, 0)$,&lt;br /&gt;
$(7, 24, 9, 0, 0)$,&lt;br /&gt;
$(7, 25, 6, 1, 0)$,&lt;br /&gt;
$(7, 25, 8, 0, 0)$,&lt;br /&gt;
$(7, 26, 3, 1, 0)$,&lt;br /&gt;
$(7, 28, 6, 0, 0)$,&lt;br /&gt;
$(7, 29, 3, 0, 0)$,&lt;br /&gt;
$(7, 30, 1, 0, 0)$,&lt;br /&gt;
$(8, 8, 0, 8, 0)$,&lt;br /&gt;
$(8, 8, 9, 7, 0)$,&lt;br /&gt;
$(8, 8, 12, 6, 0)$,&lt;br /&gt;
$(8, 9, 9, 4, 1)$,&lt;br /&gt;
$(8, 9, 10, 6, 0)$,&lt;br /&gt;
$(8, 9, 12, 3, 1)$,&lt;br /&gt;
$(8, 9, 12, 5, 0)$,&lt;br /&gt;
$(8, 9, 13, 4, 0)$,&lt;br /&gt;
$(8, 9, 15, 3, 0)$,&lt;br /&gt;
$(8, 10, 7, 4, 1)$,&lt;br /&gt;
$(8, 10, 10, 3, 1)$,&lt;br /&gt;
$(8, 10, 10, 5, 0)$,&lt;br /&gt;
$(8, 10, 12, 2, 1)$,&lt;br /&gt;
$(8, 10, 12, 4, 0)$,&lt;br /&gt;
$(8, 10, 13, 3, 0)$,&lt;br /&gt;
$(8, 10, 15, 2, 0)$,&lt;br /&gt;
$(8, 11, 6, 4, 1)$,&lt;br /&gt;
$(8, 11, 9, 6, 0)$,&lt;br /&gt;
$(8, 11, 10, 2, 1)$,&lt;br /&gt;
$(8, 11, 11, 4, 0)$,&lt;br /&gt;
$(8, 12, 7, 6, 0)$,&lt;br /&gt;
$(8, 12, 9, 3, 1)$,&lt;br /&gt;
$(8, 12, 9, 5, 0)$,&lt;br /&gt;
$(8, 12, 10, 4, 0)$,&lt;br /&gt;
$(8, 12, 12, 1, 1)$,&lt;br /&gt;
$(8, 12, 14, 2, 0)$,&lt;br /&gt;
$(8, 12, 16, 1, 0)$,&lt;br /&gt;
$(8, 12, 18, 0, 0)$,&lt;br /&gt;
$(8, 13, 7, 3, 1)$,&lt;br /&gt;
$(8, 13, 7, 5, 0)$,&lt;br /&gt;
$(8, 13, 9, 2, 1)$,&lt;br /&gt;
$(8, 13, 12, 0, 1)$,&lt;br /&gt;
$(8, 13, 12, 3, 0)$,&lt;br /&gt;
$(8, 14, 0, 7, 0)$,&lt;br /&gt;
$(8, 14, 6, 6, 0)$,&lt;br /&gt;
$(8, 14, 7, 2, 1)$,&lt;br /&gt;
$(8, 14, 8, 1, 1)$,&lt;br /&gt;
$(8, 14, 9, 4, 0)$,&lt;br /&gt;
$(8, 14, 11, 0, 1)$,&lt;br /&gt;
$(8, 14, 11, 3, 0)$,&lt;br /&gt;
$(8, 14, 13, 2, 0)$,&lt;br /&gt;
$(8, 14, 15, 1, 0)$,&lt;br /&gt;
$(8, 14, 17, 0, 0)$,&lt;br /&gt;
$(8, 15, 6, 3, 1)$,&lt;br /&gt;
$(8, 15, 6, 5, 0)$,&lt;br /&gt;
$(8, 15, 7, 1, 1)$,&lt;br /&gt;
$(8, 16, 0, 6, 0)$,&lt;br /&gt;
$(8, 16, 4, 3, 1)$,&lt;br /&gt;
$(8, 16, 4, 5, 0)$,&lt;br /&gt;
$(8, 16, 6, 2, 1)$,&lt;br /&gt;
$(8, 16, 8, 4, 0)$,&lt;br /&gt;
$(8, 16, 9, 0, 1)$,&lt;br /&gt;
$(8, 16, 10, 3, 0)$,&lt;br /&gt;
$(8, 16, 12, 2, 0)$,&lt;br /&gt;
$(8, 16, 14, 1, 0)$,&lt;br /&gt;
$(8, 16, 16, 0, 0)$,&lt;br /&gt;
$(8, 17, 0, 5, 0)$,&lt;br /&gt;
$(8, 17, 3, 4, 0)$,&lt;br /&gt;
$(8, 17, 8, 3, 0)$,&lt;br /&gt;
$(8, 17, 10, 2, 0)$,&lt;br /&gt;
$(8, 17, 12, 1, 0)$,&lt;br /&gt;
$(8, 17, 14, 0, 0)$,&lt;br /&gt;
$(8, 18, 9, 2, 0)$,&lt;br /&gt;
$(8, 18, 11, 1, 0)$,&lt;br /&gt;
$(8, 18, 12, 0, 0)$,&lt;br /&gt;
$(8, 19, 6, 3, 0)$,&lt;br /&gt;
$(8, 19, 8, 2, 0)$,&lt;br /&gt;
$(8, 20, 0, 4, 0)$,&lt;br /&gt;
$(8, 20, 4, 3, 0)$,&lt;br /&gt;
$(8, 20, 7, 2, 0)$,&lt;br /&gt;
$(8, 20, 9, 1, 0)$,&lt;br /&gt;
$(8, 20, 11, 0, 0)$,&lt;br /&gt;
$(8, 21, 4, 2, 0)$,&lt;br /&gt;
$(8, 21, 7, 1, 0)$,&lt;br /&gt;
$(8, 22, 3, 2, 0)$,&lt;br /&gt;
$(8, 22, 6, 1, 0)$,&lt;br /&gt;
$(8, 22, 9, 0, 0)$,&lt;br /&gt;
$(8, 23, 0, 3, 0)$,&lt;br /&gt;
$(8, 23, 4, 1, 0)$,&lt;br /&gt;
$(8, 24, 0, 2, 0)$,&lt;br /&gt;
$(8, 24, 3, 1, 0)$,&lt;br /&gt;
$(8, 24, 8, 0, 0)$,&lt;br /&gt;
$(8, 25, 1, 1, 0)$,&lt;br /&gt;
$(8, 25, 6, 0, 0)$,&lt;br /&gt;
$(8, 26, 0, 1, 0)$,&lt;br /&gt;
$(8, 26, 4, 0, 0)$,&lt;br /&gt;
$(8, 28, 3, 0, 0)$,&lt;br /&gt;
$(8, 32, 0, 0, 0)$,&lt;br /&gt;
$(9, 8, 10, 4, 0)$,&lt;br /&gt;
$(9, 9, 9, 4, 0)$,&lt;br /&gt;
$(9, 9, 12, 3, 0)$,&lt;br /&gt;
$(9, 10, 8, 4, 0)$,&lt;br /&gt;
$(9, 10, 10, 3, 0)$,&lt;br /&gt;
$(9, 10, 12, 2, 0)$,&lt;br /&gt;
$(9, 10, 13, 1, 0)$,&lt;br /&gt;
$(9, 10, 15, 0, 0)$,&lt;br /&gt;
$(9, 11, 11, 2, 0)$,&lt;br /&gt;
$(9, 12, 7, 4, 0)$,&lt;br /&gt;
$(9, 12, 9, 3, 0)$,&lt;br /&gt;
$(9, 12, 12, 1, 0)$,&lt;br /&gt;
$(9, 12, 14, 0, 0)$,&lt;br /&gt;
$(9, 13, 7, 3, 0)$,&lt;br /&gt;
$(9, 13, 10, 2, 0)$,&lt;br /&gt;
$(9, 14, 9, 2, 0)$,&lt;br /&gt;
$(9, 14, 11, 1, 0)$,&lt;br /&gt;
$(9, 14, 13, 0, 0)$,&lt;br /&gt;
$(9, 15, 6, 3, 0)$,&lt;br /&gt;
$(9, 16, 0, 4, 0)$,&lt;br /&gt;
$(9, 16, 4, 3, 0)$,&lt;br /&gt;
$(9, 16, 8, 2, 0)$,&lt;br /&gt;
$(9, 16, 10, 1, 0)$,&lt;br /&gt;
$(9, 16, 12, 0, 0)$,&lt;br /&gt;
$(9, 17, 3, 3, 0)$,&lt;br /&gt;
$(9, 17, 6, 2, 0)$,&lt;br /&gt;
$(9, 17, 8, 1, 0)$,&lt;br /&gt;
$(9, 17, 10, 0, 0)$,&lt;br /&gt;
$(9, 18, 2, 3, 0)$,&lt;br /&gt;
$(9, 18, 4, 2, 0)$,&lt;br /&gt;
$(9, 18, 7, 1, 0)$,&lt;br /&gt;
$(9, 18, 9, 0, 0)$,&lt;br /&gt;
$(9, 19, 0, 3, 0)$,&lt;br /&gt;
$(9, 19, 3, 2, 0)$,&lt;br /&gt;
$(9, 19, 6, 1, 0)$,&lt;br /&gt;
$(9, 20, 1, 2, 0)$,&lt;br /&gt;
$(9, 20, 5, 1, 0)$,&lt;br /&gt;
$(9, 20, 8, 0, 0)$,&lt;br /&gt;
$(9, 21, 4, 1, 0)$,&lt;br /&gt;
$(9, 21, 6, 0, 0)$,&lt;br /&gt;
$(9, 22, 1, 1, 0)$,&lt;br /&gt;
$(9, 22, 5, 0, 0)$,&lt;br /&gt;
$(9, 24, 4, 0, 0)$,&lt;br /&gt;
$(9, 25, 2, 0, 0)$,&lt;br /&gt;
$(9, 28, 0, 0, 0)$,&lt;br /&gt;
$(10, 8, 6, 4, 0)$,&lt;br /&gt;
$(10, 8, 8, 3, 0)$,&lt;br /&gt;
$(10, 9, 7, 3, 0)$,&lt;br /&gt;
$(10, 9, 10, 2, 0)$,&lt;br /&gt;
$(10, 9, 11, 1, 0)$,&lt;br /&gt;
$(10, 9, 13, 0, 0)$,&lt;br /&gt;
$(10, 10, 5, 4, 0)$,&lt;br /&gt;
$(10, 10, 9, 2, 0)$,&lt;br /&gt;
$(10, 10, 12, 0, 0)$,&lt;br /&gt;
$(10, 11, 6, 3, 0)$,&lt;br /&gt;
$(10, 12, 4, 4, 0)$,&lt;br /&gt;
$(10, 12, 5, 3, 0)$,&lt;br /&gt;
$(10, 12, 7, 2, 0)$,&lt;br /&gt;
$(10, 12, 10, 1, 0)$,&lt;br /&gt;
$(10, 12, 11, 0, 0)$,&lt;br /&gt;
$(10, 13, 6, 2, 0)$,&lt;br /&gt;
$(10, 13, 8, 1, 0)$,&lt;br /&gt;
$(10, 13, 10, 0, 0)$,&lt;br /&gt;
$(10, 14, 3, 3, 0)$,&lt;br /&gt;
$(10, 14, 5, 2, 0)$,&lt;br /&gt;
$(10, 14, 9, 0, 0)$,&lt;br /&gt;
$(10, 15, 2, 3, 0)$,&lt;br /&gt;
$(10, 15, 7, 1, 0)$,&lt;br /&gt;
$(10, 16, 4, 2, 0)$,&lt;br /&gt;
$(10, 16, 6, 1, 0)$,&lt;br /&gt;
$(10, 16, 8, 0, 0)$,&lt;br /&gt;
$(10, 17, 4, 1, 0)$,&lt;br /&gt;
$(10, 17, 6, 0, 0)$,&lt;br /&gt;
$(10, 18, 2, 1, 0)$,&lt;br /&gt;
$(10, 18, 5, 0, 0)$,&lt;br /&gt;
$(10, 20, 4, 0, 0)$,&lt;br /&gt;
$(10, 21, 2, 0, 0)$,&lt;br /&gt;
$(10, 22, 1, 0, 0)$,&lt;br /&gt;
$(10, 24, 0, 0, 0)$,&lt;br /&gt;
$(11, 4, 6, 4, 0)$,&lt;br /&gt;
$(11, 6, 5, 4, 0)$,&lt;br /&gt;
$(11, 7, 6, 3, 0)$,&lt;br /&gt;
$(11, 8, 4, 4, 0)$,&lt;br /&gt;
$(11, 8, 5, 3, 0)$,&lt;br /&gt;
$(11, 9, 6, 2, 0)$,&lt;br /&gt;
$(11, 9, 8, 1, 0)$,&lt;br /&gt;
$(11, 9, 10, 0, 0)$,&lt;br /&gt;
$(11, 10, 3, 3, 0)$,&lt;br /&gt;
$(11, 10, 5, 2, 0)$,&lt;br /&gt;
$(11, 10, 9, 0, 0)$,&lt;br /&gt;
$(11, 11, 2, 3, 0)$,&lt;br /&gt;
$(11, 11, 7, 1, 0)$,&lt;br /&gt;
$(11, 12, 4, 2, 0)$,&lt;br /&gt;
$(11, 12, 6, 1, 0)$,&lt;br /&gt;
$(11, 12, 8, 0, 0)$,&lt;br /&gt;
$(11, 13, 4, 1, 0)$,&lt;br /&gt;
$(11, 13, 6, 0, 0)$,&lt;br /&gt;
$(11, 14, 2, 1, 0)$,&lt;br /&gt;
$(11, 14, 5, 0, 0)$,&lt;br /&gt;
$(11, 16, 4, 0, 0)$,&lt;br /&gt;
$(11, 17, 2, 0, 0)$,&lt;br /&gt;
$(11, 18, 1, 0, 0)$,&lt;br /&gt;
$(11, 20, 0, 0, 0)$,&lt;br /&gt;
$(12, 4, 3, 3, 0)$,&lt;br /&gt;
$(12, 6, 2, 3, 0)$,&lt;br /&gt;
$(12, 6, 5, 2, 0)$,&lt;br /&gt;
$(12, 6, 7, 1, 0)$,&lt;br /&gt;
$(12, 6, 9, 0, 0)$,&lt;br /&gt;
$(12, 8, 4, 2, 0)$,&lt;br /&gt;
$(12, 8, 6, 1, 0)$,&lt;br /&gt;
$(12, 8, 8, 0, 0)$,&lt;br /&gt;
$(12, 9, 4, 1, 0)$,&lt;br /&gt;
$(12, 9, 6, 0, 0)$,&lt;br /&gt;
$(12, 10, 2, 1, 0)$,&lt;br /&gt;
$(12, 10, 5, 0, 0)$,&lt;br /&gt;
$(12, 12, 4, 0, 0)$,&lt;br /&gt;
$(12, 13, 2, 0, 0)$,&lt;br /&gt;
$(12, 14, 1, 0, 0)$,&lt;br /&gt;
$(12, 16, 0, 0, 0)$,&lt;br /&gt;
$(13, 6, 5, 0, 0)$,&lt;br /&gt;
$(13, 8, 4, 0, 0)$,&lt;br /&gt;
$(13, 9, 2, 0, 0)$,&lt;br /&gt;
$(13, 10, 1, 0, 0)$,&lt;br /&gt;
$(13, 12, 0, 0, 0)$,&lt;br /&gt;
$(14, 4, 3, 0, 0)$,&lt;br /&gt;
$(14, 5, 2, 0, 0)$,&lt;br /&gt;
$(14, 6, 1, 0, 0)$,&lt;br /&gt;
$(14, 8, 0, 0, 0)$,&lt;br /&gt;
$(15, 4, 0, 0, 0)$,&lt;br /&gt;
$(16, 0, 0, 0, 0)$}}&lt;br /&gt;
\caption{The Pareto-optimal statistics of Moser sets in $[3]^4$.  This table can also be found at {\tt http://spreadsheets.google.com/ccc?key=rwXB\_Rn3Q1Zf5yaeMQL-RDw}}&lt;br /&gt;
\label{table4}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This was computed by computer search as follows.  First, one observed that if $(a,b,c,d,e)$ was Pareto-optimal, then $a\geq 3$.  To see this, it suffices to show that for any Moser set $A \subset [3]^4$ with $a(A)=0$, it is possible to add three points from $S_{4,4}$ to $A$ and still have a Moser set.  To show this, suppose first that $A$ contains a point from $S_{1,4}$, such as $2221$. Then $A$ must omit either $2211$ or $2231$; without loss of generality we may assume that it omits $2211$. Similarly we may assume it omits $2121$ and $1221$. Then we can add $1131$, $1311$, $3111$ to $A$, as required. Thus we may assume that $A$ contains no points from $S_{1,4}$.  Now suppose that $A$ omits a point from $S_{2,4}$, such as $2211$. Then one can add $3333$, $3111$, $1311$ to $A$, as required. Thus we may assume that A contains all of $S_{2,4}$, which forces $A$ to omit $2222$, as well as at least one point from $S_{3,4}$, such as $2111$. But then $3111$, $1111$, $3333$ can be added to the set, a contradiction. &lt;br /&gt;
&lt;br /&gt;
Thus we only need to search through sets $A \subset [3]^4$ for which $|A \cap S_{4,4}| \geq 3$.  A straightforward computer search shows that up to the symmetries of the cube, there are $391$ possible choices for $A \cap S_{4,4}$.  For each such choice, we looped through all the possible values of the slices $A \cap 1***$ and $A \cap 3***$, i.e. all three-dimensional Moser sets which had the indicated intersection with $S_{3,3}$.  (For fixed $A \cap S_{4,4}$, the number of possibilities for $A \cap 1***$ ranges from $1$ to $87123$, and similarly for $A \cap 3***$).  For each pair of slices $A \cap 1***$ and $A \cap 3***$, we computed the lines connecting these two sets to see what subset of $2***$ was excluded from $A$; there are $2^{27}$ possible such exclusion sets.  We precomputed a lookup table that gave the Pareto-optimal statistics for $A \cap 2***$ for each such choice of exclusion set; using this lookup table for each choice of $A \cap 1***$ and $A \cap 3***$ and collating the results, we obtained the above list. On a linux cluster, the lookup table took 22 minutes to create, and the loop over the $A \cap 1***$ and $A \cap 3***$ slices took two hours, spread out over $391$ machines (one for each choice of $A \cap S_{4,4}$). Further details (including source code) can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=4D\_Moser\_brute\_force\_search}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this data, we have the following facts about the statistics of large Moser sets:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}\label{stat} Let $A \subset [3]^4$ be a Moser set with statistics $(a,b,c,d,e)$.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] If $|A| \geq 40$, then $e=0$.&lt;br /&gt;
\item[(ii)] If $|A| \geq 43$, then $d=0$.&lt;br /&gt;
\item[(iii)] If $|A| \geq 42$, then $d \leq 2$.&lt;br /&gt;
\item[(iv)] If $|A| \geq 41$, then $d \leq 3$.&lt;br /&gt;
\item[(v)] If $|A| \geq 40$, then $d \leq 6$.&lt;br /&gt;
\item[(vi)] If $|A| \geq 43$, then $c \geq 18$.&lt;br /&gt;
\item[(vii)] If $|A| \geq 42$, then $c \geq 12$.&lt;br /&gt;
\item[(viii)] If $|A| \geq 43$, then $b \geq 15$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{remark}  This proposition was first established by an integer program, see Appendix \ref{integer-sec}.  A computer-free proof can be found at \centerline{{\tt http://terrytao.files.wordpress.com/2009/06/polymath2.pdf}.}&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\subsection{Five dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{5,3}=124$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=125$.  &lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,f(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{fvan} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $f(A)$ is non-zero, then $A$ contains $22222$, then each of the $\frac{3^5-1}{2} = 121$ antipodal pairs in $[3]^5$ can have at most one point in $A$, leading to only $122$ points.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let us slice $[3]^5$ into three parallel slices, e.g. $1****, 2****, 3****$.  The intersection of $A$ with each of these slices has size at most $43$.  In particular, this implies that&lt;br /&gt;
\begin{equation}\label{boo}&lt;br /&gt;
 |A \cap 1****| + |A \cap 3****| = 125 - |A \cap 2****| \geq 82.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Thus at least one of $A \cap 1****$, $A \cap 3****$ has cardinality at least $41$; by Proposition \ref{stat}(iv) we conclude that&lt;br /&gt;
\begin{equation}\label{d13}&lt;br /&gt;
\min( d(1****), d(3****) ) \leq 3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Furthermore, equality can only hold in \eqref{d13} if $A \cap 1****$, $A \cap 3****$ both have cardinality exactly $41$, in which case from Proposition \ref{stat}(iv) again we must have&lt;br /&gt;
\begin{equation}\label{d13a}&lt;br /&gt;
d(1****)=d(3****)=3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Of course, we have a similar result for permutations.&lt;br /&gt;
&lt;br /&gt;
Now we improve the bound $|A \cap 2****| \leq 43$:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $|A \cap 2****| \leq 41$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose first that $|A \cap 2****|=43$.  Let $A&#039; \subset [3]^4$ be the subset of $[3]^4$ corresponding to $A \cap 2****$, thus $A&#039;$ is a Moser set of cardinality $43$.  By Proposition \ref{stat}(vi), $c(A&#039;) \geq 18$.  By Lemma \ref{dci}, the sum of the $c(V)$, where $V$ ranges over the eight side slices of $[3]^4$, is therefore at least $36$.  By the pigeonhole principle, we may thus find two opposing side slices, say $1***$ and $3***$, with $c(1***)+c(3****) \geq 9$.  Since $c(1***), c(3***)$ cannot exceed $6$, we thus have $c(1***), c(3***) \geq 3$, with at least one of $c(1***), c(3***)$ being at least $5$.  Passing back to $A$, this implies that $d(*1***), d(*3***) \geq 3$, with at least one of $d(*1***), d(*3***)$ being at least $5$.  But this contradicts \eqref{d13} together with the refinement \eqref{d13a}.&lt;br /&gt;
&lt;br /&gt;
We have just shown that $|A \cap 2****| \leq 42$; we can thus improve \eqref{boo} to&lt;br /&gt;
$$ |A \cap 1****| + |A \cap 3****| \geq 83.$$&lt;br /&gt;
Combining this with Proposition \ref{stat}(ii)-(v) we see that&lt;br /&gt;
\begin{equation}\label{d13-6}&lt;br /&gt;
 d(1****)+d(3****) \leq 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
with equality only if $|A \cap 2****|=42$, and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
Now let $A&#039;$ be defined as before.  Then we have&lt;br /&gt;
$$ c(1***) + c(3***) \leq 6$$&lt;br /&gt;
and similarly for permutations.  Applying Lemma \ref{dci}, this implies that $c(2****) = c(A&#039;) \leq 12$.&lt;br /&gt;
&lt;br /&gt;
Now suppose for contradiction that $|A&#039;|=|A \cap 2****|=42$.  Then by Proposition \ref{stat}(vii) we have &lt;br /&gt;
\begin{equation}\label{coo-1}&lt;br /&gt;
c(2****) = 12; &lt;br /&gt;
\end{equation}&lt;br /&gt;
applying Lemma \ref{dci} again, this forces $c(1***)+c(3***)=6$ and similarly for permutations, which then implies that&lt;br /&gt;
\begin{equation}\label{doo}&lt;br /&gt;
d(*1***)+d(*3***) = d(**1**)+d(**3**) = d(***1*)+d(***3*) = d(****1)+d(****3) = 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
and hence&lt;br /&gt;
$$ |A \cap *2***| = |A \cap **2**| = |A \cap ***2*| = |A \cap ****2| = 42$$&lt;br /&gt;
and thus&lt;br /&gt;
\begin{equation}\label{coo-2}&lt;br /&gt;
c(*2***) = c(**2**) = c(***2*) = c(****2) = 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Combining \eqref{coo-1}, \eqref{doo}, \eqref{coo-2} we conclude that&lt;br /&gt;
$$ d(1****)+d(3****) = 16,$$&lt;br /&gt;
contradicting \eqref{d13-6}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
With this proposition, the bound \eqref{boo} now improves to&lt;br /&gt;
\begin{equation}\label{84}&lt;br /&gt;
|A \cap 1****| + |A \cap 3****| \geq 84&lt;br /&gt;
\end{equation}&lt;br /&gt;
and in particular&lt;br /&gt;
\begin{equation}\label{41}&lt;br /&gt;
|A \cap 1****|, |A \cap 3****| \geq 41.&lt;br /&gt;
\end{equation}&lt;br /&gt;
from this and Proposition \ref{stat}(ii)-(iv) we now have&lt;br /&gt;
\begin{equation}\label{d13-improv}&lt;br /&gt;
 d(1****)+d(3****) \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{evan} $e(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From \eqref{84}, the intersection of $A$ with any side slice has cardinality at least $41$, and thus by Proposition \ref{stat}(i) such a side slice has an $e$-statistic of zero.  The claim then follows from Lemma \ref{dci}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We need a technical lemma:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{tech} Let $B \subset S_{5,5}$.  Then there exist at least $|B|-4$ pairs of strings in $B$ which differ in exactly two positions.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} The first non-vacuous case is $|B|=5$.  It suffices to establish this case, as the higher cases then follow by induction (locating a pair of the desired form, then deleting one element of that pair from $B$).&lt;br /&gt;
&lt;br /&gt;
Suppose for contradiction that one can find a $5$-element set $B \subset S_{5,5}$ such that no two strings in $B$ differ in exactly two positions.  Recall that we may split $S_{5,5}=S_{5,5}^e \cup S_{5,5}^o$, where $S_{5,5}^e$ are those strings with an even number of $1$&#039;s, and $S_{5,5}^o$ are those strings with an odd number of $1$&#039;s.  By the pigeonhole principle and symmetry we may assume $B$ has at least three elements in $S_{5,5}^o$.  Without loss of generality, we can take one of them to be $11111$, thus excluding all elements in $S_{5,5}^o$ with exactly two $3$s, leaving only the elements with exactly four $3$s.  But any two of them differ in exactly two positions, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now improve the trivial bound $c(A) \leq 80$:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Non-maximal $c$]\label{cmax} $c(A) \leq 79$.  If $a(A) \geq 7$, then $c(A) \leq 78$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $c(A)=80$, then $A$ contains all of $S_{3,5}$, which then implies that no two elements in $A \cap S_{5,5}$ can differ in exactly two places.  It also implies (from \eqref{alpha-1}) that $d(A)$ must vanish, and that $b(A)$ is at most $40$. By Lemma \ref{tech}, we also have that $a(A) = |A \cap S_{5,5}|$ is at most $4$.  Thus $|A| \leq 4 + 40 + 80 + 0 + 0 = 124$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $a(A) \geq 7$.  Then by Lemma \ref{tech} there are at least three pairs in $A \cap S_{5,5}$ that differ in exactly two places.  Each such pair eliminates one point from $A \cap S_{3,5}$; but each point in $S_{3,5}$ can be eliminated by at most two such pairs, and so we have at least two points eliminated from $A \cap S_{3,5}$, i.e. $c(A) \leq 78$ as required.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Next, we rewrite the quantity $125=|A|$ in terms of side slices.  From Lemmas \ref{fvan}, \ref{evan} we have&lt;br /&gt;
$$ a(A) + b(A) + c(A) + d(A) = 125$$&lt;br /&gt;
and hence by Lemma \ref{dci}, the quantity&lt;br /&gt;
$$ s(V) := a(V) + \frac{5}{4} b(V) + \frac{5}{3} c(V) + \frac{5}{2} d(V) - \frac{125}{2},$$&lt;br /&gt;
where $V$ ranges over side slices, has an average value of zero.  &lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Large values of $s(V)$]\label{suv}  For all side slices, we have $s(V) \leq 1/2$.  Furthermore, we have $s(V) &amp;lt; -1/2$ unless the statistics $(a(V), b(V), c(V), d(V), e(V))$ are of one of the following four cases:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Type 1) $(a(V),b(V),c(V),d(V),e(V)) = (2,16,24,0,0)$ (and $s(V) = -1/2$ and $|A \cap V| = 42$);&lt;br /&gt;
\item (Type 2) $(a(V),b(V),c(V),d(V),e(V)) = (4,16,23,0,0)$ (and $s(V) = -1/6$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 3) $(a(V),b(V),c(V),d(V),e(V)) = (4,15,24,0,0)$ (and $s(V) = 1/4$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 4) $(a(V),b(V),c(V),d(V),e(V)) = (3,16,24,0,0)$ (and $s(V) = 1/2$ and $|A \cap V| = 43$);&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $V$ be a side slice.  From \eqref{41} we have&lt;br /&gt;
$$ 41 \leq a(V)+b(V)+c(V)+d(V) = |A \cap V| \leq 43.$$&lt;br /&gt;
First suppose that $|A \cap V| = 43$, then from Proposition \ref{stat}(ii), (viii), $d(V)=0$ and $b(V) \geq 15$.&lt;br /&gt;
Also, we have the trivial bound $c(V) \leq 24$, together with the inequality&lt;br /&gt;
$$ 3b(V) + 2c(V) \leq 96$$&lt;br /&gt;
from \eqref{alpha-1}.  To exploit these facts, we rewrite $s(V)$ as&lt;br /&gt;
$$ s(V) = \frac{1}{2} - \frac{1}{2}( 24 - c(V) ) - \frac{1}{12} (96-3b(V)-2c(V)).$$&lt;br /&gt;
Thus $s(V) \leq 1/2$ in this case.  If $s(V) \geq -1/2$, then&lt;br /&gt;
$$ 6 (24-c(V)) + (96-3b(V)-2c(V)) \leq 12,$$&lt;br /&gt;
which together with the inequalities $b(V) \leq 15$, $c(V) \leq 24$, $3b(V)+2c(V) \leq 96$ we conclude that $(b(V),c(V))$ must be one of $(16,24)$, $(15, 24)$, $(16, 23)$, $(15, 23)$.  The first three possibilities lead to Types 4,3,2 respectively.  The fourth type would lead to $(a(V),b(V),c(V),d(V),e(V)) = (5,15,23,0,0)$, but this contradicts \eqref{eleven}.&lt;br /&gt;
&lt;br /&gt;
Next, suppose $|A \cap V| = 42$, so by Proposition \ref{stat}(iii) we have $d(V) \leq 2$.  From \eqref{alpha-1} we have&lt;br /&gt;
\begin{equation}\label{2cd}&lt;br /&gt;
2c(V) + 3d(V) \leq 48&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from \eqref{alpha-2} we have&lt;br /&gt;
\begin{equation}\label{3cd}&lt;br /&gt;
3b(V)+2c(V)+3d(V) \leq 96&lt;br /&gt;
\end{equation}&lt;br /&gt;
and so we can rewrite $s(V)$ as&lt;br /&gt;
\begin{equation}\label{sv2}&lt;br /&gt;
s(V) = -\frac{1}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V).&lt;br /&gt;
\end{equation}&lt;br /&gt;
This already gives $s(V) \leq 1/2$.  If $d(V)=0$, then $s(V) \leq -1/2$, with equality only in Type 1.  If $d(V)=1$, then the set $A&#039; \subset [3]^4$ corresponding to $A \cap V$ contains a point in $S_{3,4}$, which without loss of generality we can take to be $2221$.  Considering the three lines $*221$, $2*21$, $22*1$, we see that at least three points in $S_{2,4}$ must be missing from $A&#039;$, thus $c(V) \leq 21$.  This forces $48-2c(V)-3d(V) \geq 3$, and so $s(V) &amp;lt; -3/4$.  Finally, if $d(V)=2$, then $A&#039;$ contains two points in $S_{3,4}$.  If they are antipodal (e.g. $2221$ and $2223$), the same argument as above shows that at least six points in $S_{2,4}$ are missing from $A&#039;$; if they are not antipodal (e.g. $2221$ and $2212$) then by considering the lines $*221$, $2*21$, $22*1$, $*212$, $2*12$ we see that five points are missing.  Thus we have $c(V) \leq 19$, which forces $48-2c(V)-3d(V) \geq 4$.  This forces $s(V) \leq -1/2$, with equality only when $c(V)=19$ and $3b(V)+2c(V)+3d(V)=96$, but this forces $b(V)$ to be the non-integer $52/3$, a contradiction, which concludes the treatment of the $|A \cap V|=42$ case.&lt;br /&gt;
&lt;br /&gt;
Finally, suppose $|A \cap V| = 41$.  Using \eqref{2cd}, \eqref{3cd} as before we have&lt;br /&gt;
\begin{equation}\label{sv3}&lt;br /&gt;
 s(V) = -\frac{3}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V),&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from Proposition \ref{stat}(vi) we have $d(V) \leq 3$.  This already gives $s(V) \leq 0$, and $s(V) \leq -1$ when $d(V)=1$.  In order to have $s(V) \geq -1/2$, we must then have $d(V)=2$ or $d(V)=3$.  But then the arguments of the preceding paragraph give $48-2c(V)-3d(V) \geq 4$, and so $s(V) \leq -1$ in this case.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Since the $s(V)$ average to zero, by the pigeonhole principle we may find two opposing side slices (e.g. $1****$ and $3****$), whose total $s$-value is non-negative.  Actually we can do a little better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{side-off} There exists two opposing side slices whose total $s$-value is strictly positive.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If this is not the case, then we must have $s(1****)+s(3****)=0$ and similarly for permutations.  Using Proposition \ref{suv} we thus see that for every opposing pair of side slices, one is Type 1 and one is Type 4.  In particular $c(V)=24$ for all side slices $V$.  But then by Lemma \ref{dci} we have $c(A)=80$, contradicting Lemma \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let $V, V&#039;$ be the side slices in Lemma \ref{side-off}&lt;br /&gt;
By Proposition \ref{suv}, the $V, V&#039;$ slices must then be either Type 2, Type 3, or Type 4, and they cannot both be Type 2.  Since $a(A) = a(V)+a(V&#039;)$, we conclude&lt;br /&gt;
\begin{equation}\label{amix}&lt;br /&gt;
6 \leq a(A) \leq 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
In a similar spirit, we have&lt;br /&gt;
$$ c(V) + c(V&#039;) \leq 23+24.$$&lt;br /&gt;
On the other hand, by considering the $24$ lines connecting $c$-points of $V, V&#039;$ to $c$-points of the centre slice $W$ between $V$ and $V&#039;$, each of which contains at most two points in $A$, we have&lt;br /&gt;
$$ c(V) + c(W) + c(V&#039;) \leq 24 \times 2.$$&lt;br /&gt;
Thus $c(W) \leq 1$; since&lt;br /&gt;
$$ d(A) = d(V) + d(V&#039;) + c(W)$$&lt;br /&gt;
we conclude from Proposition \ref{suv} that $d(A) \leq 1$.  Actually we can do better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $d(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that $d(A)=1$; without loss of generality we may take $11222 \in A$.  This implies that $d(1****)=d(*1***)=1$.  Also, by the above discussion, $c(**1**)$ and $c(**3**)$ cannot both be $24$, so by Proposition \ref{suv}, $s(**1**)+s(**3**) \leq 1/3$; similarly&lt;br /&gt;
$s(***1*)+s(***3*) \leq 1/3$ and $s(****1)+s(****3) \leq 1/3$.  Since the $s$ average to zero, we see from the pigeonhole principle that either $s(1****)+s(3****) \geq -1/2$ or $s(*1***)+s(*3***) \geq -1/2$.  We may assume by symmetry that &lt;br /&gt;
\begin{equation}\label{star-2}&lt;br /&gt;
s(1****)+s(3****) \geq -1/2.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Since $s(3****) \leq 1/2$ by Proposition \ref{suv}, we conclude that&lt;br /&gt;
\begin{equation}\label{star}&lt;br /&gt;
 s(1****) \geq -1.&lt;br /&gt;
\end{equation}&lt;br /&gt;
If $|A \cap 1****|=41$, then by \eqref{sv3} we have&lt;br /&gt;
$$ s(1****) = -1 - \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
but the arguments in Proposition \ref{suv} give $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$, a contradiction.  So we must have $|A \cap 1****|=42$ (by Proposition \ref{stat}(ii) and \eqref{41}).  In that case, from \eqref{sv2} we have&lt;br /&gt;
$$ s(1****) = \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
while also having $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$.  Since $s(1****) \geq -1$ and $d(1****)=1$, we soon see that we must have $48 - 2c(1****) - 3d(1****) = 3$ and $96-3b(1****)-2c(1****)-3d(1****) \leq 3$, which forces $c(1****)=21$ and $b(1****)=16$ or $b(1****)=17$; thus the statistics of $1****$ are either $(4,16,21,1,0)$ or $(3,17,21,1,0)$.&lt;br /&gt;
&lt;br /&gt;
We first eliminate the $(3,17,21,1,0)$ case.  In this case $s(1****)$ is exactly $-1$.  Inspecting the proof of \eqref{star}, we conclude that $s(3****)$ must be $+1/2$ and that $s(**1**)+s(**3**)=1/3$.  From the former fact and Proposition \ref{suv} we see that $a(A) = a(1****)+a(3****)=3+3=6$; on the other hand, from the latter fact and Proposition \ref{suv} we have $a(A) = a(**1**)+a(**3**) = 4+3=7$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
So $1****$ has statistics $(4,16,21,1,0)$, which implies that $s(1****)=-3/4$ and $|A \cap 1****|=42$.  By \eqref{star-2} we conclude &lt;br /&gt;
\begin{equation}\label{s3}&lt;br /&gt;
s(3****) \geq 1/4,&lt;br /&gt;
\end{equation} &lt;br /&gt;
which by Proposition \ref{suv} implies that $|A \cap 3****|=43$, and hence $|A \cap 2****|=40$.  On the other hand, since $e(A)=f(A)=0$ and $d(A)=1$, with the latter being caused by $11222$, we see that $c(2****)=d(2****)=e(2****)=0$.  From \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$, and we also have the trivial inequality $b(2****) \leq 32$; these inequalities are only compatible if $2****$ has statistics $(8,32,0,0,0)$, thus $A \cap 2****$ contains $S_{2,5} \cap 2****$.&lt;br /&gt;
&lt;br /&gt;
If $a(3****)=4$, then $a(A)=a(1****)+a(3****)=8$, which by Proposition \ref{suv} implies that $s(**1**)+s(**3**)$ cannot exceed $1/12$, and similarly for permutations.  On the other hand, from Proposition \ref{suv} $s(**1**)+s(**3**)$ cannot exceed $-3/4 + 1/4 = -1/2$, and so the average value of $s$ cannot be zero, a contradiction.  Thus $a(3****) \neq 4$, which by \eqref{s3} and Proposition \ref{suv} implies that $**3**$ has statistics $(3,16,24,0,0)$.&lt;br /&gt;
&lt;br /&gt;
In particular, $A$ contains $16$ points from $3**** \cap S_{1,5}$ and all of $3**** \cap S_{2,5}$.  As a consequence, no pair of the $16$ points in $A \cap 3**** \cap S_{1,5}$ can differ in only one coordinate; partitioning the $32$-point set $3**** \cap S_{1,5}$ into $16$ such pairs, we conclude that every such pair contains exactly one element of $A$.  We conclude that $A \cap 3**** \cap S_{1,5}$ is equal to either $3**** \cap S_{1,5}^e$ or $3**** \cap S_{1,5}^o$.&lt;br /&gt;
&lt;br /&gt;
On the other hand, $A$ contains all of $2**** \cap S_{2,5}$, and exactly sixteen points from $1**** \cap S_{1,5}$.  Considering the vertical lines $*xyzw$ where $xyzw \in S_{1,4}$, we conclude that $A \cap 1**** \cap S_{1,5}$ is either equal to $1**** \cap S_{1,5}^o$ or $1**** \cap S_{1,5}^e$.&lt;br /&gt;
But either case is incompatible with the fact that $A$ contains $11222$ (consider either the line $11xx2$ or $11x\overline{x}2$, where $x=1,2,3$ and $\overline{x}=4-x$), obtaining the required contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now eliminate all but three cases for the statistics of $A$:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Statistics of $A$]  The statistics $(a(A),b(A),c(A),d(A),e(A),f(A))$ of $A$ must be one of the following three tuples:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Case 1) $(6,40,79,0,0)$;&lt;br /&gt;
\item (Case 2) $(7,40,78,0,0)$;&lt;br /&gt;
\item (Case 3) $(8,39,78,0,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Since $d(A)=e(A)=f(A)=0$, we have&lt;br /&gt;
$$ c(2****)=d(2****)=e(2****)=0.$$&lt;br /&gt;
On the other hand, from \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$ as well as the trivial inequality $b(2****) \leq 24$, and also we have&lt;br /&gt;
$$ |A \cap 2****| = 125 - |A \cap 1****| - |A \cap 3****| \geq 125 - 43 - 43 = 39.$$&lt;br /&gt;
Putting all this together, we see that the only possible statistics for $2****$ are $(8,32,0,0,0)$, $(7,32,0,0,0)$, or $(8,31,0,0,0)$.  In particular, $7 \leq a(2****) \leq 8$ and $31 \leq b(2****) \leq 32$, and similarly for permutations. Applying Lemma \ref{dci} we conclude that&lt;br /&gt;
$$ 35 \leq b(A) \leq 40$$&lt;br /&gt;
and&lt;br /&gt;
$$ 77.5 \leq c(A) \leq 80.$$&lt;br /&gt;
Combining this with the first part of Corollary \ref{cmax} we conclude that $c(A)$ is either $78$ or $79$.  From this and \eqref{amix} we see that the only cases that remain to be eliminated are $(7,39,79,0,0)$ and $(8,38,79,0,0)$, but these cases are incompatible with the second part of Corollary \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We now eliminate each of the three remaining cases in turn.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(6,40,79,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has six points.  By Lemma \ref{tech}, there are at least two pairs in this set which differ in two positions.  Their midpoints are eliminated from $A \cap S_{3,5}$.  But $A$ omits exactly one point from $S_{3,5}$, so these midpoints must be the same.  By symmetry, we may then assume that these two pairs are $(11111,11133)$ and $(11113,11131)$.  Thus the eliminated point in $S_{3,5}$ is $11122$, i.e. $A$ contains $S_{3,5} \backslash \{11122\}$.  Also, $A$ contains $\{11111,11133,11113,11131\}$ and thus must omit $\{11121, 11123, 11112, 11132\}$.&lt;br /&gt;
&lt;br /&gt;
Since $11322 \in A$, at most one of  $11312, 11332$ lie in $A$. By symmetry we may assume $11312 \not \in A$, thus there is a pair $(xy1z2, xy3z2)$ with $x,y,z = 1,3$ that is totally omitted from $A$, namely $(11112,11312)$. On the other hand, every other pair of this form can have at most one point in the $A$, thus there are at most seven points in $A$ of the form $xyzw2$ with $x,y,z,w = 1,3$. Similarly there are at most 8 points of the form $xyz2w$, or of $xy2zw$, $x2yzw$, $2xyzw$, leading to $b(A) \leq 7+8+8+8+8=39$, contradicting the statistic $b(A)=40$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(7,40,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has seven points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of the midpoints of these pairs must be the same; thus, as in the previous section, we may assume that $A$ contains $\{11111,11133,11113,11131\}$ and omits $\{11121, 11123, 11112, 11132\}$ and $11122$.&lt;br /&gt;
&lt;br /&gt;
Now consider the $160$ lines $\ell$ connecting two points in $S_{4,5}$ to one point in $S_{3,5}$ (i.e. $*2xyz$ and permutations, where $x,y,z=1,3$).  By double counting, the total sum of $|\ell \cap A|$ over all $160$ lines is $4b(A)+2c(A) = 316 = 158 \times 2$.  On the other hand, each of these lines contain at most two points in $A$, but two of them (namely $1112*$ and $1112*$) contain no points.  Thus we must have $|\ell \cap A|=2$ for the remaining $158$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Since $A$ omits $1112x$ and $111x2$ for $x=1,3$, we thus conclude (by considering the lines $11*2x$ and $11*x2$) that $A$ must contain $1132x$, $113x2$, $1312x$, and $131x2$.  Taking midpoints, we conclude that $A$ omits $11322$ and $13122$.  But together with $11122$ this implies that at least three points are missing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(8,39,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Now $A \cap S_{5,5}$ has eight points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of these pairs $(a,b), (c,d)$ must have the same midpoint $p$, and two other pairs $(a&#039;,b&#039;), (c&#039;,d&#039;)$ must have the same midpoint $p&#039;$, and $A$ contains $S_{3,5} \backslash \{p,p&#039;\}$.  As $p,p&#039;$ are distinct, the plane containing $a,b,c,d$ is distinct from the plane containing $a&#039;,b&#039;,c&#039;,d&#039;$.&lt;br /&gt;
&lt;br /&gt;
Again consider the $160$ lines $\ell$ from the previous section.  This time, the sum of the $|\ell \cap A|$ is $4b(A)+2c(A) = 312 = 156 \times 2$.&lt;br /&gt;
But the two lines in the plane of $a,b,c,d$ passing through $p$, and the two lines in the plane of $a&#039;,b&#039;,c&#039;,d&#039;$ passing through $p&#039;$, have no points; thus we must have $|\ell \cap A|=2$ for the remaining $156$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have $(a,b)=(11111,11133)$, $(c,d) = (11113,11131)$, thus $p = 11122$. By permuting the first three indices, we may assume that $p&#039;$ is not of the form $x2y2z, x2yz2, xy22z, xy2z2$ for any $x,y,z=1,3$. Then we have $1112x \not \in A$ and $1122x \in A$ for every $x=1,3$, so by the preceding paragraph we have $1132x \in A$; similarly for $113x2, 1312x, 131x2$. Taking midpoints, this implies that $13122, 11322 \not \in A$, but this (together with 11122) shows that at least three points aremissing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Six dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{6,3}=353$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=354$.&lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,g(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{g6} $g(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
  &lt;br /&gt;
\begin{proof} For any four-dimensional slice $V$ of $A$, define &lt;br /&gt;
$$S(V) := 15 a(V) + 5 b(V) + 5 c(V)/2 + 3d(V)/2 + e(V).$$&lt;br /&gt;
From Lemma \ref{dci} we see that $|A|$ is equal to $a(A)+b(A)$ plus the average of $S(V)$ where $V$ ranges over the twenty slices which are some permutation of the center slice $22****$.&lt;br /&gt;
&lt;br /&gt;
If $g(A)=1$, then $a(A) \leq 32$ and $b(A) \leq 96$ by \eqref{alpha-1}.  Meanwhile, $e(V)=g(A)=1$ for every center slice $V$, so from Lemma \ref{paretop-4}, one can show that $S(V) \leq 223.5$ for every such slice.  We conclude that $|A| \leq 351.5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
For any four-dimensional slice $V$ of $A$, define the \emph{defects} to be&lt;br /&gt;
$$ D(V) := 356 - [4a(V)+6b(V)+10c(V)+20d(V)+60e(V)].$$&lt;br /&gt;
Define a \emph{corner slice} to be one of the permutations or reflections of $11****$, thus there are $60$ corner slices.  From Lemma \ref{dci} we see that $356-|A|+f(A)=2+f(A)$ is the average of the defects of all the $60$ corner slices.  On the other hand, from Lemma \ref{paretop-4} and a straightforward computation, one concludes&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{defects}  Let $A$ be a four-dimensional Moser set.  Then $D(A) \geq 0$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $A$ has statistics $(6,12,18,4,0)$, then $D(A)=0$.&lt;br /&gt;
\item If $A$ has statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$, then $D(A)=4$.&lt;br /&gt;
\item For all other $A$, $D(A) \geq 6$.&lt;br /&gt;
\item If $a(A) = 4$, then $D(A) \geq 8$.&lt;br /&gt;
\item If $a(A) \geq 7$, then $D(A) \geq 16$.&lt;br /&gt;
\item If $a(A) \geq 8$, then $D(A) \geq 30$.&lt;br /&gt;
\item If $a(A) \geq 9$, then $D(A) \geq 86$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{family} to be a set of four parallel corner slices, thus there are $15$ families, which are all a permutation of $\{11****, 13****, 31****, 33**** \}$.  We refer to the family $\{11****, 13****, 31****, 33**** \}$ as $ab****$, and similarly define the family $a*b***$, etc.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{f6} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  For any four-dimensional slice $V$ of $A$, define&lt;br /&gt;
$$ s(V) := 12 a(V)+15 b(V)/2+20 c(V)/3+15 d(V)/2 + 12 e(V),$$&lt;br /&gt;
and define an \emph{edge slice} to be one of the $30$ permutations or reflections of $12****$.  From double counting we see that $|A|-a(A)$ is equal to the average of the $30$ values of $s(V)$ as $V$ ranges over edge slices.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{paretop-4} one can verify that $s(V) \leq 336$, and that $s(V) \leq 296 = 336-40$ if $e(V)=1$.  The number of edge slices $V$ for which $e(V)=1$ is equal to $5f(A)$, and so the average value of the $s(V)$ is at most $336 - \frac{40 \times 5}{30} f(A)$, and so&lt;br /&gt;
$$ |A| - a(A) \leq 336 - \frac{40 \times 5}{30} f(A)$$&lt;br /&gt;
which we can rearrange (using $|A|=354$) as&lt;br /&gt;
$$ a(A) \geq 18 + \frac{20}{3} f(A).$$&lt;br /&gt;
Suppose first that $f(A)=1$; then $a(A) \geq 25$.  This means that in any given family, one of the four corner slices has an $a$ value of at least $7$, and thus by Lemma \ref{defects} has a defect of at least $16$.  Thus the average defect is at least $4$; on the other hand, the average defect is $2+f(A)=3$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $f(A) \geq 2$; then $a(A) \geq 32$.   Then in any given family, there is a corner slice with an $a$ value at least $9$, or four slices with $a$ value at least $8$, leading to a total defect of at least $86$ by Lemma \ref{defects}.  Thus the average defect is at least $21.5$; on the other hand, the average defect is $2+f(A) \leq 2+12$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of the above lemma, we see that the average defect of all corner slices is $2$, or equivalently that the total defect of these slices is $120$.&lt;br /&gt;
&lt;br /&gt;
Call a corner slice \emph{good} if it has statistics $(6,12,18,4,0)$, and \emph{bad} otherwise.  Thus good slices have zero defect, and bad slices have defect at least four.  Since the average defect of the $60$ corner slices is $2$, there are at least $30$ good slices.&lt;br /&gt;
&lt;br /&gt;
One can describe the structure of the good slices completely:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{sixt}  The subset of $[3]^4$ consisting of the strings $1111, 1113, 3333, 1332, 1322, 1222, 3322$ and permutations is a Moser set with statistics $(6,12,18,4,0)$.  Conversely, every Moser set with statistics $(6,12,18,4,0)$ is of this form up to the symmetries of the cube $[3]^4$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified by computer.  By symmetry, one assumes 1222,2122,2212 and 2221 are in the set.  Then 18 of the 24 &#039;c&#039; points with two 2s must be included; it is quick to check that 1122 and permutations must be the six excluded.  Next, one checks that the only possible set of six &#039;a&#039; points with no 2s is 1111,1113,3333 and permutations.  Lastly, in a rather longer computation, one finds there is only possible set of twelve &#039;b&#039; points, that is points with one 2.  A computer-free proof can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Classification\_of\_\%286\%2C12\%2C18\%2C4\%2C0\%29\_sets}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this lemma, given any $x,y,z,w \in \{1,3\}$, there is a unique good Moser set in $[3]^4$ set whose intersection with $S_{1,4}$ is $\{x222, 2y22, 22z2, 222w\}$, and these are the only 16 possibilities. Call this set the \emph{good set of type $xyzw$}. It consists of&lt;br /&gt;
\begin{itemize} &lt;br /&gt;
\item The four points $x222, 2y22, 22z2, 222w$ in $S_{1,4}$;&lt;br /&gt;
\item All $24$ elements of $S_{2,4}$ except for $xy22, x2z2, x22w, 2yz2, 2y2w, 22zw$;&lt;br /&gt;
\item The twelve points $xYZ2$, $xY2W$, $x2ZW$, $XyZ2$, $Xy2W$, $2yZW$, $XYz2$, $X2zW$, $2YzW$, $XY2w$, $X2Zw$, $2YZw$ in $S_{3,4}$, where $X=4-x$, $Y=4-y$, $Z=4-z$, $W=4-w$;&lt;br /&gt;
\item The six points $xyzw, xyzW, xyZw, xYzw, Xyzw, XYZW$ in $S_{4,4}$.&lt;br /&gt;
\end{itemize} &lt;br /&gt;
&lt;br /&gt;
We can use this to constrain the types of two intersecting good slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{pqs} Suppose that the $pq****$ slice is of type $xyzw$, and the $p*r***$ slice is of type $x&#039;y&#039;z&#039;w&#039;$, where $p,q,r,x,y,z,w,x&#039;,y&#039;,z&#039;,w&#039;$ are in $\{1,3\}$. Then $x&#039;=x$ iff $q=r$, and $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$. If $x=r$ (or equivalently if $x&#039;=q$), then $y&#039;z&#039;w&#039;=yzw$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} By reflection symmetry we can take $p=q=r=1$. Observe that the $11****$ slice contains $111222$ iff $x=1$, and the $1*1***$ slice similarly contains $111222$ iff $x&#039;=1$. This shows that $x=x&#039;$.&lt;br /&gt;
&lt;br /&gt;
Suppose now that $x=x&#039;=1$. Then the $111***$ slice contains the three elements $111y22, 1112z2, 11122w$, and excludes $111Y22, 1112Z2, 11122W$, and similarly with the primes, which forces $yzw=y&#039;z&#039;w&#039;$ as claimed.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $x=x&#039;=3$. Then the $111***$ slice contains the two elements $111yzw, 111YZW$, but does not contain any of the other six points in $S_{6,6} \cap 111***$, and similarly for the primes. Thus $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$ as claimed. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two adjacent parallel good slices, such as $11****$ and $13****$.  The following lemma asserts that such slices either have opposite type, or else will create a huge amount of defect in other slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l18} Suppose that the $11****$ and $13****$ slices are good with types $xyzw$ and $x&#039;y&#039;z&#039;w&#039;$ respectively. If $x=x&#039;$, then the $1*x***$ slice has defect at least $30$, and the $1*X***$ slice has defect at least $8$. Also, the $1**1**$, $1**3**$, $1***1*$, $1***3*$, $1****1$, $1****3$ slices have defect at least $6$. In particular, the total defect of slices beginning with $1*$ is at least $74$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Observe from the $11****, 13****$ hypotheses that $a(1*x***)=9$ and $a(1*X***)=4$, which gives the first two claims by Lemma \ref{defects}.  For the other claims, one sees from Lemma \ref{pqs} that the other six slices cannot be good; also, they have an $a$-value of $6$ and a $d$-value of at most $7$, and the claims then follow from Lemma \ref{defects}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two diagonally opposite parallel good slices, such as $11****$ and $33****$. &lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l14} The $11****$ and $33****$ slices cannot both be good and of the same type.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****$ and $33****$ are of type $1111$. This excludes a lot of points from $22****$. Indeed, by connecting lines between the $11****$ and $33****$ slices, we see that the only points that can still survive in $22****$ are $221133, 221333, 221132, 223332$, and permutations of the last four indices. Double counting the lines $22133*$ and permutations we see that there are at most $12$ points one can place in the permutations of $221133, 221333, 221132$, and so the $22****$ slice has at most $16$ points. Meanwhile, the two five-dimensional slices $1*****, 3*****$ have at most $c&#039;_{5,3} = 124$ points, and the other two four-dimensional slices $21****, 23****$ have at most $c&#039;_{4,3} = 43$ points, leading to at most $16 + 124 * 2 + 43 * 2 = 350$ points in all, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
\begin{lemma}\label{l19} It is not possible for all four slices in a family to be good.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****, 13****, 31****, 33****$ are good.   By Lemma \ref{l14}, the $11****$ and $33****$ slices cannot be of the same type, and so they cannot both be of the opposite type to either $13****$ or $31****$. If $13****$ is not of the opposite type to $11****$, then by (a permutation of) Lemma \ref{l18}, the total defect of slices beginning with $1*$ is at least $74$; otherwise, if $13****$ is not of the opposite type to $33****$, then by (a permutation and reflection of) Lemma \ref{l18}, the total defect of slices beginning with $*3$ is at least $74$. Similarly, the total defect of slices beginning with $3*$ or $*1$ is at least $74$, leading to a total defect of at least $148$. But the total defect of all the corner slices is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{l20} At most one family can have a total defect of at least $38$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose there are two families with defect at least $38$. The remaining thirteen family have defect at least $4$ by Lemma \ref{l19} and Lemma \ref{defects}, leading to a total defect of at least $38*2+13*4=128$. But the total defect is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually we can refine this:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  No family can have a total defect of at least $38$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that the $ab****$ family (say) had a total defect of at least $38$, then by Corollary \ref{l20} no other families have total defect at least $38$.&lt;br /&gt;
&lt;br /&gt;
We claim that the $**ab**$ family can have at most two good slices. Indeed, suppose the $**ab**$ has three good slices, say $**11**, **13**, **33**$. By Lemma \ref{l14}, the $**11**$ and $**33**$ slices cannot be of the same type, and so cannot both be of opposite type to $**13**$. Suppose $**11**$ and $**13**$ are not of opposite type. Then by (a permutation of) Lemma \ref{l18}, one of the families $a*b***, *ab***, **b*a*, **b**a$ has a net defect of at least $38$, contradicting the normalisation.&lt;br /&gt;
&lt;br /&gt;
Thus each of the six families $**ab**, **a*b*, **a**b, ***ab*, ***a*b, ****ab$ have at least two bad slices. Meanwhile, the eight families $a*b***, a**b**, a***b*, a****b, *ab***, *a*b**, *a**b*, *a***b$ have at least one bad slice by Corollary \ref{l19}, leading to twenty bad slices in addition to the defect of at least $38$ arising from the $ab****$ slice. To add up to a total defect of $120$, we conclude from Lemma \ref{defects} that all bad slices outside of the $ab****$ family have a defect of four, with at most one exception; but then by Lemma \ref{l18} this shows that (for instance) the $1*1***$ and $1*3***$ slices cannot be good unless they are of opposite type. The previous argument then shows that the a*b*** slice cannot have three good slices, which increases the number of bad slices outside of $ab****$ to at least twenty-one, and now there is no way to add up to $120$, a contradiction. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary} Every family can have at most two good slices.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If for instance $11****, 13****, 33****$ are all good, then by Lemma \ref{l14} at least one of $11****, 33****$ is not of the opposite type to $13****$, which by Lemma \ref{l18} implies that there is a family with a total defect of at least $38$, contradicting the previous proposition.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this corollary and Lemma \ref{defects}, we see that every family has a defect of at least $8$.  Since there are $15$ families, and $8 \times 15$ is exactly equal to $120$, we conclude&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{coda} Every family has \emph{exactly} two good slices, and the remaining two slices have defect $4$.  In particular, by Lemma \ref{defects}, the bad slices must have statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$.  &lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
We now limit how these slices can interact with good slices.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{goodgood}  Suppose that $1*1***$ is a good slice.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] The $11****$ slice cannot have statistics $(6,8,12,8,0)$.&lt;br /&gt;
\item[(ii)] The $11****$ slice cannot have statistics $(5,12,12,4,1)$.&lt;br /&gt;
\item[(iii)] If the $11****$ slice has statistics $(5,12,18,4,0)$, then the $112***$ slice has statistics $(3,9,3,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified through computer search; there are $16$ possible configurations for the good slices, and one can calculate that there are $27520$ configurations for the $(5,12,12,4,1)$ slices, $4368$ configurations for the $(5,12,18,4,0)$ slices, and $80000$ configurations for the $(6,8,12,8,0)$ slices. {\bf we could put human proofs for all this somewhere, presumably.}&lt;br /&gt;
&lt;br /&gt;
%We first prove (i).  Suppose for contradiction that the $11****$ slice has statistics $(6,8,12,8,0)$, then $A$ contains $111222$, and so the $1*1***$ slice is of type $1xyz$ for some $x,y,z$.  By symmetry we may assume it is of type $1111$, thus the $111***$ slice consists of&lt;br /&gt;
%$111111, 111113, 111332, 111322, 111222$ and permutations of the last three indices.  On the other hand, the $11****$ slice has all eight of the points in $11**** \cap S_{2,6}$.  Drawing lines between these points and $111111, 111113$ and permutations, we see that the $113***$ slice cannot contain $113111, 113113, 113133$, or permutations, leaving $113333$ as the only possible element of $113*** \cap S_{6,6}$.  This makes $a(11****)=5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic}  The $111***$ slice has statistics $(4,3,3,1)$, $(2,6,6,0)$, $(3,3,3,1)$, or $(1,6,6,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From Corollary \ref{coda}, we know that at least one of the slices $13****, 31****, 11****$ are good.  If $11****$ or $1*1***$ is good, then the slice $111***$ has statistics $(4,3,3,1)$ or $(2,6,6,0)$, by Lemma \ref{sixt}.  By symmetry we may thus reduce to the case where $13****$ is good and $1*1***$ is bad.  Then by Lemma \ref{goodgood}, the $1*1***$ slice has statistics $(5,12,18,4,0)$ and the $121***$ slice has statistics $(3,9,3,0)$.  Since the $131***$ slice, as a side slice of the good $13****$ slice, has statistics $(4,3,3,1)$ or $(2,6,6,0)$, we conclude that the $111***$ slice has statistics $(1,6,6,0)$ or $(3,3,3,1)$, and the claim follows.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic2} All corner slices have statistics $(6,12,18,4,0)$ or $(5,12,18,4,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  Suppose first that a corner slice, say $11****$ has statistic $(6,8,12,8,0)$.  Then $111***$ and $113***$ contain one ``d&#039;&#039; point each, and have six ``a&#039;&#039; points between them, so by Corollary \ref{slic}, they both have statistic $(3,3,3,1)$.  This forces the $1*1***$, $1*3***$ slices to be bad, which by Corollary \ref{coda} forces the $3*1***,3*3***$ slices to be good.  This forces the $311***, 313***$ slices to have statistics either $(2,6,6,0)$ or $(4,3,3,1)$.  But the $311***$ slice (say) cannot have statistic $(4,3,3,1)$, since when combined with the $(3,3,3,1)$ statistics of $111***$ would give $a(*11***)=7$, which contradicts Corollary \ref{coda}; thus the $311***$ slice has statistic $(2,6,6,0)$, and similarly for $331***$.  But then $a(3*1***)=4$, which again contradicts Corollary \ref{coda}.&lt;br /&gt;
&lt;br /&gt;
Thus no corner slice has statistic $(6,8,12,8,0)$.  Now suppose that a corner slice, say $11****$ has statistic $(5,12,12,4,1)$.  By Lemma \ref{goodgood}, the $1*1***, 1*3***$ slices are bad, so by repeating the preceding arguments we conclude that the $311***, 313***$ slices have statistics $(2,6,6,0)$ or $(4,3,3,1)$; in particular, their $a$-value is even.  However, the $*11***$ and $*13***$ slices are bad by Lemma \ref{goodgood}, and thus have an $a$-value of $5$; thus the $111***$ and $113***$ slices have an odd $a$-value.  Thus forces $a(11****)$ to be even; but it is equal to $5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this and Lemma \ref{dci}, we see that $A$ has statistics $(22,72,180,80,0,0,0)$.  In particular, we have $2\alpha_2(A)+\alpha_3(A) = 2$, which by double counting (cf. \eqref{alpha-1}) shows that for every line of the form $11122*$ (or a reflection or permutation thereof) intersects $A$ in exactly two points.  Note that such lines connect a ``$d$&#039;&#039; point to two ``$c$&#039;&#039; points.&lt;br /&gt;
&lt;br /&gt;
Also, we observe that two adjacent ``$d$&#039;&#039; points, such as $111222$ and $113222$, cannot both lie in $A$; for this would force the $*13***$ and $*11***$ slices to have statistics $(4,3,3,1)$ or $(3,3,3,1)$ by Corollary \ref{slic}, which forces $a(*1****)=6$, and thus $*1****$ must be good by Corollary \ref{slic2}; but this contradicts Lemma \ref{sixt}.  Since $\alpha_3(A)=1/2$, we conclude that given any two adjacent ``$d$&#039;&#039; points, exactly one of them lies in $A$.  In particular, the d points of the form $***222$ consist either of those strings with an even number of $1$s, or those with an odd number of $1$s.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say it&#039;s the former, thus the set contains $111222, 133222$, and permutations of the first three coordinates, but omits $113222, 333222$ and permutations of the first three coordinates. Since the ``$d$&#039;&#039; points $113222, 333222$ are omitted, we conclude that the ``$c$&#039;&#039; points $113122, 113322, 333122, 333322$ must lie in the set, and similarly for permutations of the first three and last three coordinates. But this gives at least $15$ of the $16$ ``$c$&#039;&#039; points ending in $22$; by symmetry this leads to $225$ $c$-points in all; but $c(A)=180$, contradiction.  This (finally!) completes the proof that $c&#039;_{6,3}=353$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1971</id>
		<title>Moser.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1971"/>
		<updated>2009-07-22T12:22:47Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Upper bounds for the $k=3$ Moser problem in small dimensions}\label{moser-upper-sec}&lt;br /&gt;
&lt;br /&gt;
In this section we finish the proof of Theorem \ref{moser} by obtaining the upper bounds on  $c&#039;_{n,3}$ for $n \leq 6$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Statistics, densities and slices}&lt;br /&gt;
&lt;br /&gt;
Our analysis will revolve around various \emph{statistics} of Moser sets $A \subset [3]^n$, their associated \emph{densities}, and the behavior of such statistics and densities with respect to the operation of passing from the cube $[3]^n$ to various \emph{slices} of that cube.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Statistics and densities]  Let $A \subset [3]^n$ be a set.  For any $0 \leq i \leq n$, set $a_i(A) := |A \cap S_{n-i,n}|$; thus we have&lt;br /&gt;
$$ 0 \leq a_i(A) \leq |S_{n-i,n}| = \binom{n}{i} 2^{n-i}$$&lt;br /&gt;
for $0 \leq i \leq n$ and&lt;br /&gt;
$$ a_0(A) + \ldots + a_n(A) = |A|.$$&lt;br /&gt;
We refer to the vector $(a_0(A),\ldots,a_n(A))$ as the \emph{statistics} of $A$.  We define the $i^{th}$ \emph{density} $\alpha_i(A)$ to be the quantity&lt;br /&gt;
$$ \alpha_i(A) := \frac{a_i(A) }{\binom{n}{i} 2^{n-i}},$$&lt;br /&gt;
thus $0 \leq \alpha_i(A) \leq 1$ and&lt;br /&gt;
$$ |A| = \sum_{i=0}^n \binom{n}{i} 2^{n-i} a_i(A).$$&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
\begin{example}\label{2mos}  Let $n=2$ and $A$ be the Moser set $A := \{ 12, 13, 21, 23, 31, 32 \}$.  Then the statistics $(a_0(A), a_1(A), a_2(A))$ of $A$ are $(2,4,0)$, and the densities $(\alpha_0(A), \alpha_1(A), \alpha_2(A))$ are $(\frac{1}{2}, 1, 0)$.  \textbf{Include picture here? with colours?}&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
When working with small values of $n$, it will be convenient to write $a(A)$, $b(A)$, $c(A)$, etc. for $a_0(A)$, $a_1(A)$, $a_2(A)$, etc., and similarly write $\alpha(A), \beta(A), \gamma(A)$, etc. for $\alpha_0(A)$, $\alpha_1(A)$, $\alpha_2(A)$, etc.  Thus for instance in Example \ref{2mos} we have $b(A) = 4$ and $\alpha(A) = \frac{1}{2}$.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Subspace statistics and densities]  If $V$ is a $k$-dimensional geometric subspace of $[3]^n$, then we have a map $\phi_V: [3]^k \to [3]^n$ from the $k$-dimensional cube to the $n$-dimensional cube.  If $A \subset [3]^n$ is a set and $0 \leq i \leq k$, we write $a_i(V,A)$ for $a_i(\phi_V^{-1}(A))$ and $\alpha_i(V,A)$ for $\alpha_i(\phi_V^{-1}(A))$.  If the set $A$ is clear from context, we abbreviate $a_i(V,A)$ as $a_i(V)$ and $\alpha_i(V,A)$ as $\alpha_i(V)$.&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
For our problem, a particularly important type of subspace of $[3]^n$ will be the \emph{slices} formed by fixing one coordinate and letting the other $n-1$ coordinates vary.  We will denote this by a single string in which the $n-1$ varying coordinates are denoted by asterisks.  For instance, in $[3]^2$, $1*$ denotes the slice $1*=\{11,12,13\}$, $*2$ denotes the slice $*2=\{12,22,32\}$, etc.; similarly, in $[3]^3$, $1**$ is the slice $\{111, 112, 113, 121, 122, 123, 131, 132, 133\}$, etc.  We call a slice a \emph{centre slice} if the fixed coordinate is $2$ and a \emph{side slice} if it is $1$ or $3$.&lt;br /&gt;
 &lt;br /&gt;
\begin{example}  We continue Example \ref{2mos}.  Then the statistics of the side slice $1*$ are $(a(1*),b(1*)) = (1,1)$, while the statistics of the centre slice $2*$ are $(a(2*),b(2*))=(2,0)$.  The corresponding densities are $(\alpha(1*),\beta(1*)) = (1/2,1)$ and $(\alpha(2*),\beta(2*))=(1,0)$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
A simple double counting argument gives the following useful identity:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Double counting identity]\label{dci}  Let $A \subset [3]^n$ and $0 \leq i \leq n-1$.  Then we have&lt;br /&gt;
$$ \frac{1}{n-i-1} \sum_{V \hbox{ a side slice}} a_{i+1}(V) = \frac{1}{i+1} \sum_{W \hbox{ a centre slice}} a_i(W) = a_{i+1}(A)$$&lt;br /&gt;
where $V$ ranges over the $2n$ side slices of $[3]^n$, and $W$ ranges over the $n$ centre slices.  In other words, the average value of $\alpha_{i+1}(V)$ for side slices $V$ equals the average value of $\alpha_i(W)$ for centre slices $W$, which is in turn equal to $\alpha_{i+1}(A)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Indeed, this lemma follows from the observation that every string in $A \cap S_{n-i-1,n}$ belongs to $i+1$ centre slices $W$ (and contributes to $a_i(W)$) and to $n-i-1$ side slices $V$ (and contributes to $a_{i+1}(V)$).  One can also view this lemma probabilistically, as the assertion that there are three equivalent ways to generate a random string of length $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick a side slice $V$ at random, and randomly fill in the wildcards in such a way that $i+1$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-2,n-1}$).&lt;br /&gt;
\item Pick a centre slice $V$ at random, and randomly fill in the wildcards in such a way that $i$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-1,n-1}$).&lt;br /&gt;
\item Randomly choose an element of $S_{n-i-1,n}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
\begin{example} We continue Example \ref{2mos}.  The average value of $\beta$ for side slices is equal to the average value of $\alpha$ for centre slices, which is equal to $\beta(A) = 1$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
Another very useful fact (essentially due to \cite{chvatal2}) is that linear inequalities for statistics of Moser sets at one dimension propagate to linear inequalities in higher dimensions:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Propagation lemma]\label{prop}  Let $n \geq 1$ be an integer.  Suppose one has a linear inequality of the form&lt;br /&gt;
\begin{equation}\label{alphav}&lt;br /&gt;
 \sum_{i=0}^n v_i \alpha_i(A) \leq s&lt;br /&gt;
\end{equation}&lt;br /&gt;
for all Moser sets $A \subset [3]^n$ and some real numbers $v_0,\ldots,v_n,s$.  Then we also have the linear inequality&lt;br /&gt;
$$ \sum_{i=0}^n v_i \alpha_{qi+r}(A) \leq s$$&lt;br /&gt;
whenever $q \geq 1$, $r \geq 0$, $N \geq nq+r$ are integers and $A \subset [3]^N$ is a Moser set.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  We run a probabilistic argument (one could of course also use a double counting argument instead).  Let $n,v_0,\ldots,v_n,s,q,r,N,A$ be as in the lemma.  Let $V$ be a random $n$-dimensional geometric subspace of $[3]^N$, created in the following fashion:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $n$ wildcards $x_1,\ldots,x_n$ to run independently from $1$ to $3$.  We also introduce dual wildcards $\overline{x_1},\ldots,\overline{x_n}$; each $\overline{x_j}$ will take the value $4-x_j$.&lt;br /&gt;
\item We randomly subdivide the $N$ coordinates into $n$ groups of $q$ coordinates, plus a remaining group of $N-nq$ ``fixed&#039;&#039; coordinates.&lt;br /&gt;
\item For each coordinate in the $j^{th}$ group of $q$ coordinates for $1 \leq j \leq n$, we randomly assign either a $x_j$ or $\overline{x_j}$.&lt;br /&gt;
\item For each coordinate in the $N-nq$ fixed coordinates, we randomly assign a digit $1,2,3$, but condition on the event that exactly $r$ of the digits are equal to $2$ (i.e. we use a random element of $S_{N-nq-r,N-nq}$).&lt;br /&gt;
\item Let $V$ be the subspace created by allowing $x_1,\ldots,x_n$ to run independently from $1$ to $3$, and $\overline{x_j}$ to take the value $4-x_j$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
For instance, if $n=2, q=2, r=1, N=6$, then a typical subspace $V$ generated in this fashion is&lt;br /&gt;
$$ 2x_1\overline{x_2}3x_2x_1 = \{ 213311, 212321, 211331, 223312, 222322, 221332, 233313, 232323, 231333\}.$$&lt;br /&gt;
Observe from that the following two ways to generate a random element of $[3]^N$ are equivalent:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $V$ randomly as above, and then assign $(x_1,\ldots,x_n)$ randomly from $S_{n-i,n}$.  Assign $4-x_j$ to $\overline{x_j}$ for all $1 \leq j \leq n$.&lt;br /&gt;
\item Pick a random string in $S_{N-qi-r,N}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
Indeed, both random variables are invariant under the symmetries of the cube, and both random variables always pick out strings in $S_{N-qi-r,N}$, and the claim follows.  As a consequence, we see that the expectation of $\alpha_i(V)$ (as $V$ ranges over the recipe described above) is equal to $\alpha_{qi+r}(A)$.  On the other hand, from \eqref{alphav} we have&lt;br /&gt;
$$  \sum_{i=0}^n v_i \alpha_i(V) \leq s$$&lt;br /&gt;
for all such $V$; taking expectations over $V$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
In view of Lemma \ref{prop}, it is of interest to locate linear inequalities relating the densities $\alpha_i(A)$, or (equivalently) the statistics $a_i(A)$.  For this, it is convenient to introduce the following notation.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}  Let $n \geq 1$ be an integer.  &lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item A vector $(a_0,\ldots,a_n)$ of non-negative integers is \emph{feasible} if it is the statistics of some Moser set $A$.&lt;br /&gt;
\item A feasible vector $(a_0,\ldots,a_n)$ is \emph{Pareto-optimal} if there is no other feasible vector $(b_0,\ldots,b_n) \neq (a_0,\ldots,a_n)$ such that $b_i \geq a_i$ for all $0 \leq i \leq n$.&lt;br /&gt;
\item A Pareto-optimal vector $(a_0,\ldots,a_n)$ is \emph{extremal} if it is not a non-trivial convex linear combination of other Pareto-optimal vectors.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
To establish a linear inequality of the form \eqref{alphav} with the $v_i$ non-negative, it suffices to test the inequality against densities associated to extremal vectors of statistics.  (There is no point considering linear inequalities with negative coefficients $v_i$, since one always has the freedom to reduce a density $\alpha_i(A)$ of a Moser set $A$ to zero, simply by removing all elements of $A$ with exactly $i$ $2$&#039;s.)&lt;br /&gt;
&lt;br /&gt;
We will classify exactly the Pareto-optimal and extremal vectors for $n \leq 3$, which by Lemma \ref{prop} will lead to useful linear inequalities for $n \geq 4$.  Using a computer, we have also located a partial list of Pareto-optimal and extremal vectors for $n=4$, which are also useful for the $n=5$ and $n=6$ theory.&lt;br /&gt;
&lt;br /&gt;
\subsection{Up to three dimensions}&lt;br /&gt;
&lt;br /&gt;
We now establish Theorem \ref{moser} for $n \leq 3$, and establish some auxiliary inequalities which will be of use in higher dimensions.&lt;br /&gt;
&lt;br /&gt;
The case $n=0$ is trivial. When $n=1$, it is clear that $c&#039;_{1,3} = 2$, and furthermore that the Pareto-optimal statistics are $(2,0)$ and $(1,1)$, which are both extremal.  This leads to the linear inequality&lt;br /&gt;
$$ 2\alpha(A) + \beta(A) \leq 2$$&lt;br /&gt;
for all Moser sets $A \subset [3]^1$, which by Lemma \ref{prop} implies that&lt;br /&gt;
\begin{equation}\label{alpha-1}&lt;br /&gt;
2\alpha_r(A) + \alpha_{r+q}(A) \leq 2&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
For $n=2$, we see by partitioning $[3]^2$ into three slices that $c&#039;_{2,3} \leq 3 c&#039;_{1,3} = 6$, and so (by the lower bounds in the previous section) $c&#039;_{2,3} = 6$.  Writing $(a,b,c) = (a(A),b(A),c(A)) = (4\alpha(A), 4\beta(A), \gamma(A))$, the inequalities \eqref{alpha-1} become&lt;br /&gt;
\begin{equation}\label{abc}&lt;br /&gt;
a + 2c \leq 4; b+2c \leq 4; 2a+b &amp;lt;= 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}  When $n=2$, the Pareto-optimal statistics are $(4,0,0), (3,2,0), (2,4,0), (2,2,1)$. In particular, the extremal statistics are $(4,0,0), (2,4,0), (2,2,1)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  One easily checks that all the statistics listed above are feasible.&lt;br /&gt;
Consider the statistics $(a,b,c)$ of a Moser set $A \subset [3]^2$.  $c$ is either equal to $0$ or $1$.  If $c=1$, then \eqref{abc} implies that $a,b \leq 2$, so the only Pareto-optimal statistic here is $(2,2,1)$.  When instead $c=0$, the inequalities \eqref{abc} can easily imply the Pareto-optimality of $(4,0,0), (3,2,0), (2,4,0)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this lemma we see that we obtain a new inequality $2a+b+2c \leq 8$.  Converting this back to densities and using Lemma \ref{prop}, we conclude that&lt;br /&gt;
\begin{equation}\label{alpha-2}&lt;br /&gt;
4\alpha_r(A) + 2\alpha_{r+q}(A) + \alpha_{r+2q} \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+2r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
One can also check by computer that there are exactly $230$ line-free subsets of $[3]^2$.&lt;br /&gt;
&lt;br /&gt;
Now we look at three dimensions.  Writing $(a,b,c,d)$ for the statistics of a Moser set $A \subset [3]^n$ (which thus range between $(0,0,0,0)$ and $(8,12,6,1)$), the inequalities \eqref{alpha-1} imply in particular that&lt;br /&gt;
\begin{equation}\label{abc-3d}&lt;br /&gt;
a+4d \leq 8; b+6d \leq 12; c+3d \leq 6; 3a+2c \leq 24; b+c \leq 12&lt;br /&gt;
\end{equation}&lt;br /&gt;
while \eqref{alpha-2} implies that&lt;br /&gt;
\begin{equation}\label{abcd-3d}&lt;br /&gt;
3a+b+c \leq 24; b+c+3d \leq 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Summing the inequalities $b+c \leq 12, 3a+b+c \leq 24, b+c+3d \leq 12$ yields&lt;br /&gt;
$$ 3(a+b+c+d) \leq 48$$&lt;br /&gt;
and hence $|A| = a+b+c+d \leq 16$; comparing this with the lower bounds of the preceding section we obtain $c&#039;_{3,3} = 16$ as required.  (This argument is essentially identical to the one in \cite{chvatal2}).&lt;br /&gt;
&lt;br /&gt;
We have the following useful computation:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[3D Pareto-optimals]\label{paretop} When $n=3$, the Pareto-optimal statistics are $$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0),$$ &lt;br /&gt;
$$ (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0),$$&lt;br /&gt;
$$ (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).$$  &lt;br /&gt;
In particular, the extremal statistics are &lt;br /&gt;
$$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0).$$&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} This can be established by a brute-force search over the $2^{27} \approx 1.3 \times 10^8$ different subsets of $[3]^3$.  Actually, one can perform a much faster search than this.  Firstly, as noted earlier, there are only $230$ line-free subsets of $[3]^2$, so one could search over $230^3 \approx 1.2 \times 10^7$ configurations instead.  Secondly, by symmetry we may assume (after enumerating the $230$ sets in a suitable fashion) that the first slice $A \cap 1**$ has an index less than or equal to the third $A \cap 3**$, leading to $\binom{231}{2} \times 230 \approx 6 \times 10^6$ configurations instead.  Finally, using the first and third slice one can quickly determine which elements of the second slice $2**$ are prohibited from $A$.  There are $2^9 = 512$ possible choices for the prohibited set in $2**$.  By crosschecking these against the list of $230$ line-free sets one can compute the Pareto-optimal statistics for the second slices inside the prohibited set (the lists of such statistics turns out to length at most $23$).  Storing these statistics in a lookup table, and then running over all choices of the first and third slice (using symmetry), one now has to perform $O( 512 \times 230 ) + O( \binom{231}{2} \times 23) \approx O( 10^6 )$ computations, which is quite a feasible computation.&lt;br /&gt;
&lt;br /&gt;
One could in principle reduce the computations even further, by a factor of up to $8$, by using the symmetry group $D_4$ of the square $[3]^2$ to reduce the number of cases one needs to consider, but we did not implement this.&lt;br /&gt;
&lt;br /&gt;
A computer-free proof of this lemma can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Human\_proof\_of\_the\_3D\_Pareto-optimal\_Moser\_statistics}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} A similar computation revealed that the total number of line-free subsets of $[3]^3$ was $3813884$.  With respect to the $2^3 \times 3!=48$-element group of geometric symmetries of $[3]^3$, these sets partitioned into $83158$ equivalence classes:&lt;br /&gt;
$$&lt;br /&gt;
3813884 = 76066 \times 48+6527 \times 24+51 \times 16+338 \times 12 +109 \times 8+41 \times 6+13 \times 4 +5 \times 3+3 \times 2+5 \times 1.&lt;br /&gt;
$$&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
Lemma \ref{paretop} yields the following new inequalities:&lt;br /&gt;
\begin{align*}&lt;br /&gt;
2a+b+2c+4d &amp;amp;\leq 22 \\&lt;br /&gt;
3a+2b+3c+6d &amp;amp;\leq 36 \\&lt;br /&gt;
7a+2b+4c+8d &amp;amp;\leq 56 \\&lt;br /&gt;
6a+2b+3c+6d &amp;amp;\leq 48 \\&lt;br /&gt;
a+2c+4d &amp;amp;\leq 14 \\&lt;br /&gt;
5a+4c+8d &amp;amp;\leq 40.&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
Applying Lemma \ref{prop}, we obtain new inequalities:&lt;br /&gt;
\begin{align}&lt;br /&gt;
8\alpha_r(A)+ 6\alpha_{r+q}(A) + 6\alpha_{r+2q}(A) + 2\alpha_{r+3q}(A) &amp;amp;\leq 11 \label{eleven}\\&lt;br /&gt;
4\alpha_r(A)+4\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 6\label{six}\\&lt;br /&gt;
7\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
8\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 8\label{eight}\\&lt;br /&gt;
4\alpha_{r+q}(A)+2\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 4\nonumber\\&lt;br /&gt;
4\alpha_r(A)+6\alpha_{r+2q}(A)+2\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
5\alpha_r(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 5\nonumber &lt;br /&gt;
\end{align}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq r+3q$, and Moser sets $A \subset [3]^n$.&lt;br /&gt;
&lt;br /&gt;
We also note some further corollaries of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Statistics of large 3D Moser sets]\label{paretop2}  Let $(a,b,c,d)$ be the statistics of a Moser set $A$ in $[3]^3$.  Then $|A| = a+b+c+d \leq 16$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $|A|=16$, then $(a,b,c,d) = (4,12,0,0)$.&lt;br /&gt;
\item If $|A|=15$, then $(a,b,c,d) = (4,11,0,0)$ or $(3,12,0,0)$.&lt;br /&gt;
\item If $|A| \geq 14$, then $b \geq 6$ and $d=0$.&lt;br /&gt;
\item If $|A| = 13$ and $d=1$, then $(a,b,c,d) = (4,6,2,1)$ or $(3,6,3,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\subsection{Four dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{4,3}=43$.  Let $A$ be a Moser set in $[3]^4$, with attendant statistics $(a,b,c,d,e)$, which range between $(0,0,0,0,0)$ and $(16,32,24,8,1)$.  In view of the lower bounds, our task here is to establish the upper bound $a+b+c+d+e \leq 43$.&lt;br /&gt;
&lt;br /&gt;
The linear inequalities already established just barely fail to achieve this bound, but we can obtain the upper bound $a+b+c+d+e \leq 44$ as follows.&lt;br /&gt;
First suppose that $e=1$; then from the inequalities \eqref{alpha-1} (or by considering lines passing through $2222$) we see that $a \leq 8, b \leq 16, c \leq 12, d \leq 4$ and hence $a+b+c+d+e \leq 41$, so we may assume that $e=0$.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{dci}, we see that $a+b+c+d+e$ is now equal to the sum of $a(V)/4+b(V)/3+c(V)/2+d(V)$, where $V$ ranges over all side slices of $[3]^4$.  But from Lemma \ref{paretop} we see that $a(V)/4+b(V)/3+c(V)/2+d(V)$ is at most $\frac{11}{4}$, with equality occuring only when $(a(V),b(V),c(V),d(V))=(2,6,6,0)$.  This gives the upper bound $a+b+c+d+e \leq 44$.&lt;br /&gt;
&lt;br /&gt;
The above argument shows that $a+b+c+d+e=44$ can only occur if $e=0$ and if $(a(V),b(V),c(V),d(V))=(2,6,6,0)$ for all side slices $V$.  Applying Lemma \ref{paretop} again this implies $(a,b,c,d,e)=(4,16,24,0,0)$.  But then $A$ contains all of the sphere $S_{2,4}$, which implies that the four-element set $A \cap S_{4,4}$ cannot contain a pair of strings which differ in exactly two positions (as their midpoint would then lie in $S_{2,4}$, contradicting the hypothesis that $A$ is a Moser set).  &lt;br /&gt;
&lt;br /&gt;
Recall that we may partition $S_{4,4} = S_{4,4}^e \cup S_{4,4}^o$, where &lt;br /&gt;
$$S_{4,4}^e := \{ 1111, 1133, 1313, 3113, 1331, 3131, 3311, 3333\}$$&lt;br /&gt;
is the strings in $S_{4,4}$ with an even number of $1$&#039;s, and &lt;br /&gt;
$$S_{4,4}^o := \{ 1113, 1131, 1311, 3111, 1333, 3133, 3313, 3331\}$$&lt;br /&gt;
are the strings in $S_{4,4}$ with an odd number.  Observe that any two distinct elements in $S_{4,4}^e$ differ in exactly two positions unless they are antipodal.  Thus $A \cap S_{4,4}^e$ has size at most two, with equality only when $A \cap S_{4,4}^e$ consists of an antipodal pair.  Similarly for $A \cap S_{4,4}^o$.  Thus $A$ must consist of two antipodal pairs, one from $S_{4,4}^e$ and one from $S_{4,4}^o$.&lt;br /&gt;
&lt;br /&gt;
By the symmetries of the cube we may assume without loss of generality that these pairs are $\{ 1111, 3333\}$ and $\{1113,3331\}$ respectively.  But as $A$ is a Moser set, $A$ must now exclude the strings $1112$ and $3332$.  These two strings form two corners of the eight-element set&lt;br /&gt;
$$ ***2 \cap S_{3,4} = \{ 1112, 1132, 1312, 3112, 1332, 3132, 3312, 3332 \}.$$&lt;br /&gt;
Any pair of points in this set which are ``adjacent&#039;&#039; in the sense that they differ by exactly one entry cannot both lie in $A$, as their midpoint would then lie in $S_{3,4}$, and so $A$ can contain at most four elements from this set, with equality only if $A$ contains all the points in $***2 \cap S_{3,4}$ of the same parity (either all the elements with an even number of $3$s, or all the elements with an odd number of $3$s).  But because the two corners removed from this set have the opposite parity (one has an even number of $1$s and one has an odd number), we see in fact that $A$ can contain at most $3$ points from this set.  Meanwhile, the same arguments give that $A$ contains at most four points from $**2* \cap S_{3,4}$, $*2** \cap S_{3,4}$, and $2*** \cap S_{3,4}$.  Summing we see that $b = |A \cap S_{3,4}| \leq 3+4+4+4=15$, a contradiction.  Thus we have $c&#039;_{4,3}=43$ as claimed.&lt;br /&gt;
&lt;br /&gt;
We have the following four-dimensional version of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[4D Pareto-optimals]\label{paretop-4} When $n=4$, the Pareto-optimal statistics listed on Table \ref{table4}.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centered{\tiny&lt;br /&gt;
$(3, 16, 24, 0, 0)$,&lt;br /&gt;
$(4, 14, 19, 2, 0)$,&lt;br /&gt;
$(4, 15, 24, 0, 0)$,&lt;br /&gt;
$(4, 16, 8, 4, 1)$,&lt;br /&gt;
$(4, 16, 14, 4, 0)$,&lt;br /&gt;
$(4, 16, 23, 0, 0)$,&lt;br /&gt;
$(4, 17, 21, 0, 0)$,&lt;br /&gt;
$(4, 18, 19, 0, 0)$,&lt;br /&gt;
$(5, 12, 12, 4, 1)$,&lt;br /&gt;
$(5, 12, 13, 6, 0)$,&lt;br /&gt;
$(5, 12, 15, 5, 0)$,&lt;br /&gt;
$(5, 12, 19, 2, 0)$,&lt;br /&gt;
$(5, 13, 10, 4, 1)$,&lt;br /&gt;
$(5, 13, 14, 5, 0)$,&lt;br /&gt;
$(5, 13, 21, 1, 0)$,&lt;br /&gt;
$(5, 15, 9, 4, 1)$,&lt;br /&gt;
$(5, 15, 12, 3, 1)$,&lt;br /&gt;
$(5, 15, 13, 5, 0)$,&lt;br /&gt;
$(5, 15, 18, 3, 0)$,&lt;br /&gt;
$(5, 15, 20, 1, 0)$,&lt;br /&gt;
$(5, 15, 22, 0, 0)$,&lt;br /&gt;
$(5, 16, 7, 4, 1)$,&lt;br /&gt;
$(5, 16, 10, 3, 1)$,&lt;br /&gt;
$(5, 16, 11, 5, 0)$,&lt;br /&gt;
$(5, 16, 12, 2, 1)$,&lt;br /&gt;
$(5, 16, 16, 3, 0)$,&lt;br /&gt;
$(5, 16, 19, 1, 0)$,&lt;br /&gt;
$(5, 16, 21, 0, 0)$,&lt;br /&gt;
$(5, 17, 12, 4, 0)$,&lt;br /&gt;
$(5, 17, 14, 3, 0)$,&lt;br /&gt;
$(5, 17, 16, 2, 0)$,&lt;br /&gt;
$(5, 17, 18, 1, 0)$,&lt;br /&gt;
$(5, 17, 20, 0, 0)$,&lt;br /&gt;
$(5, 18, 13, 3, 0)$,&lt;br /&gt;
$(5, 18, 14, 2, 0)$,&lt;br /&gt;
$(5, 20, 8, 4, 0)$,&lt;br /&gt;
$(5, 20, 10, 3, 0)$,&lt;br /&gt;
$(5, 20, 13, 2, 0)$,&lt;br /&gt;
$(5, 20, 14, 1, 0)$,&lt;br /&gt;
$(5, 20, 18, 0, 0)$,&lt;br /&gt;
$(5, 21, 10, 2, 0)$,&lt;br /&gt;
$(5, 21, 15, 0, 0)$,&lt;br /&gt;
$(5, 22, 13, 0, 0)$,&lt;br /&gt;
$(6, 8, 12, 8, 0)$,&lt;br /&gt;
$(6, 10, 11, 4, 1)$,&lt;br /&gt;
$(6, 11, 12, 7, 0)$,&lt;br /&gt;
$(6, 12, 10, 7, 0)$,&lt;br /&gt;
$(6, 12, 13, 5, 0)$,&lt;br /&gt;
$(6, 12, 18, 4, 0)$,&lt;br /&gt;
$(6, 13, 16, 4, 0)$,&lt;br /&gt;
$(6, 14, 9, 4, 1)$,&lt;br /&gt;
$(6, 14, 9, 7, 0)$,&lt;br /&gt;
$(6, 14, 12, 6, 0)$,&lt;br /&gt;
$(6, 14, 16, 3, 0)$,&lt;br /&gt;
$(6, 14, 19, 1, 0)$,&lt;br /&gt;
$(6, 14, 21, 0, 0)$,&lt;br /&gt;
$(6, 15, 7, 4, 1)$,&lt;br /&gt;
$(6, 15, 10, 3, 1)$,&lt;br /&gt;
$(6, 15, 10, 6, 0)$,&lt;br /&gt;
$(6, 15, 11, 2, 1)$,&lt;br /&gt;
$(6, 15, 12, 5, 0)$,&lt;br /&gt;
$(6, 15, 15, 4, 0)$,&lt;br /&gt;
$(6, 15, 20, 0, 0)$,&lt;br /&gt;
$(6, 16, 7, 3, 1)$,&lt;br /&gt;
$(6, 16, 8, 6, 0)$,&lt;br /&gt;
$(6, 16, 9, 2, 1)$,&lt;br /&gt;
$(6, 16, 10, 5, 0)$,&lt;br /&gt;
$(6, 16, 12, 1, 1)$,&lt;br /&gt;
$(6, 16, 13, 4, 0)$,&lt;br /&gt;
$(6, 16, 14, 3, 0)$,&lt;br /&gt;
$(6, 16, 18, 2, 0)$,&lt;br /&gt;
$(6, 16, 19, 0, 0)$,&lt;br /&gt;
$(6, 17, 9, 5, 0)$,&lt;br /&gt;
$(6, 17, 10, 4, 0)$,&lt;br /&gt;
$(6, 17, 13, 3, 0)$,&lt;br /&gt;
$(6, 17, 15, 2, 0)$,&lt;br /&gt;
$(6, 17, 17, 1, 0)$,&lt;br /&gt;
$(6, 17, 18, 0, 0)$,&lt;br /&gt;
$(6, 18, 13, 2, 0)$,&lt;br /&gt;
$(6, 18, 16, 1, 0)$,&lt;br /&gt;
$(6, 18, 17, 0, 0)$,&lt;br /&gt;
$(6, 19, 9, 4, 0)$,&lt;br /&gt;
$(6, 19, 12, 3, 0)$,&lt;br /&gt;
$(6, 19, 15, 1, 0)$,&lt;br /&gt;
$(6, 20, 7, 4, 0)$,&lt;br /&gt;
$(6, 20, 9, 3, 0)$,&lt;br /&gt;
$(6, 20, 12, 2, 0)$,&lt;br /&gt;
$(6, 20, 13, 1, 0)$,&lt;br /&gt;
$(6, 20, 15, 0, 0)$,&lt;br /&gt;
$(6, 21, 8, 3, 0)$,&lt;br /&gt;
$(6, 21, 9, 2, 0)$,&lt;br /&gt;
$(6, 21, 12, 1, 0)$,&lt;br /&gt;
$(6, 21, 14, 0, 0)$,&lt;br /&gt;
$(6, 22, 7, 3, 0)$,&lt;br /&gt;
$(6, 22, 8, 2, 0)$,&lt;br /&gt;
$(6, 22, 10, 1, 0)$,&lt;br /&gt;
$(6, 23, 9, 1, 0)$,&lt;br /&gt;
$(6, 24, 7, 2, 0)$,&lt;br /&gt;
$(6, 24, 8, 1, 0)$,&lt;br /&gt;
$(6, 24, 12, 0, 0)$,&lt;br /&gt;
$(6, 25, 9, 0, 0)$,&lt;br /&gt;
$(6, 26, 7, 0, 0)$,&lt;br /&gt;
$(7, 8, 6, 8, 0)$,&lt;br /&gt;
$(7, 11, 9, 4, 1)$,&lt;br /&gt;
$(7, 11, 12, 6, 0)$,&lt;br /&gt;
$(7, 12, 8, 4, 1)$,&lt;br /&gt;
$(7, 12, 8, 6, 0)$,&lt;br /&gt;
$(7, 12, 12, 3, 1)$,&lt;br /&gt;
$(7, 12, 12, 5, 0)$,&lt;br /&gt;
$(7, 12, 13, 4, 0)$,&lt;br /&gt;
$(7, 12, 15, 3, 0)$,&lt;br /&gt;
$(7, 12, 17, 2, 0)$,&lt;br /&gt;
$(7, 13, 7, 4, 1)$,&lt;br /&gt;
$(7, 13, 10, 3, 1)$,&lt;br /&gt;
$(7, 13, 11, 5, 0)$,&lt;br /&gt;
$(7, 13, 12, 2, 1)$,&lt;br /&gt;
$(7, 13, 12, 4, 0)$,&lt;br /&gt;
$(7, 13, 14, 3, 0)$,&lt;br /&gt;
$(7, 13, 16, 2, 0)$,&lt;br /&gt;
$(7, 14, 6, 4, 1)$,&lt;br /&gt;
$(7, 14, 6, 7, 0)$,&lt;br /&gt;
$(7, 14, 9, 5, 0)$,&lt;br /&gt;
$(7, 14, 10, 2, 1)$,&lt;br /&gt;
$(7, 14, 12, 1, 1)$,&lt;br /&gt;
$(7, 14, 17, 1, 0)$,&lt;br /&gt;
$(7, 14, 19, 0, 0)$,&lt;br /&gt;
$(7, 15, 7, 5, 0)$,&lt;br /&gt;
$(7, 15, 8, 3, 1)$,&lt;br /&gt;
$(7, 15, 9, 2, 1)$,&lt;br /&gt;
$(7, 15, 11, 1, 1)$,&lt;br /&gt;
$(7, 15, 11, 4, 0)$,&lt;br /&gt;
$(7, 15, 13, 3, 0)$,&lt;br /&gt;
$(7, 15, 16, 1, 0)$,&lt;br /&gt;
$(7, 16, 6, 3, 1)$,&lt;br /&gt;
$(7, 16, 6, 6, 0)$,&lt;br /&gt;
$(7, 16, 8, 2, 1)$,&lt;br /&gt;
$(7, 16, 10, 1, 1)$,&lt;br /&gt;
$(7, 16, 10, 4, 0)$,&lt;br /&gt;
$(7, 16, 12, 0, 1)$,&lt;br /&gt;
$(7, 16, 12, 3, 0)$,&lt;br /&gt;
$(7, 16, 15, 2, 0)$,&lt;br /&gt;
$(7, 16, 17, 0, 0)$,&lt;br /&gt;
$(7, 17, 6, 5, 0)$,&lt;br /&gt;
$(7, 17, 7, 4, 0)$,&lt;br /&gt;
$(7, 17, 11, 3, 0)$,&lt;br /&gt;
$(7, 17, 13, 2, 0)$,&lt;br /&gt;
$(7, 17, 14, 1, 0)$,&lt;br /&gt;
$(7, 17, 16, 0, 0)$,&lt;br /&gt;
$(7, 18, 10, 3, 0)$,&lt;br /&gt;
$(7, 18, 13, 1, 0)$,&lt;br /&gt;
$(7, 18, 15, 0, 0)$,&lt;br /&gt;
$(7, 19, 9, 3, 0)$,&lt;br /&gt;
$(7, 20, 6, 4, 0)$,&lt;br /&gt;
$(7, 20, 11, 2, 0)$,&lt;br /&gt;
$(7, 20, 12, 1, 0)$,&lt;br /&gt;
$(7, 20, 14, 0, 0)$,&lt;br /&gt;
$(7, 21, 8, 2, 0)$,&lt;br /&gt;
$(7, 21, 10, 1, 0)$,&lt;br /&gt;
$(7, 21, 12, 0, 0)$,&lt;br /&gt;
$(7, 22, 9, 1, 0)$,&lt;br /&gt;
$(7, 22, 11, 0, 0)$,&lt;br /&gt;
$(7, 23, 6, 3, 0)$,&lt;br /&gt;
$(7, 23, 7, 1, 0)$,&lt;br /&gt;
$(7, 23, 10, 0, 0)$,&lt;br /&gt;
$(7, 24, 6, 2, 0)$,&lt;br /&gt;
$(7, 24, 9, 0, 0)$,&lt;br /&gt;
$(7, 25, 6, 1, 0)$,&lt;br /&gt;
$(7, 25, 8, 0, 0)$,&lt;br /&gt;
$(7, 26, 3, 1, 0)$,&lt;br /&gt;
$(7, 28, 6, 0, 0)$,&lt;br /&gt;
$(7, 29, 3, 0, 0)$,&lt;br /&gt;
$(7, 30, 1, 0, 0)$,&lt;br /&gt;
$(8, 8, 0, 8, 0)$,&lt;br /&gt;
$(8, 8, 9, 7, 0)$,&lt;br /&gt;
$(8, 8, 12, 6, 0)$,&lt;br /&gt;
$(8, 9, 9, 4, 1)$,&lt;br /&gt;
$(8, 9, 10, 6, 0)$,&lt;br /&gt;
$(8, 9, 12, 3, 1)$,&lt;br /&gt;
$(8, 9, 12, 5, 0)$,&lt;br /&gt;
$(8, 9, 13, 4, 0)$,&lt;br /&gt;
$(8, 9, 15, 3, 0)$,&lt;br /&gt;
$(8, 10, 7, 4, 1)$,&lt;br /&gt;
$(8, 10, 10, 3, 1)$,&lt;br /&gt;
$(8, 10, 10, 5, 0)$,&lt;br /&gt;
$(8, 10, 12, 2, 1)$,&lt;br /&gt;
$(8, 10, 12, 4, 0)$,&lt;br /&gt;
$(8, 10, 13, 3, 0)$,&lt;br /&gt;
$(8, 10, 15, 2, 0)$,&lt;br /&gt;
$(8, 11, 6, 4, 1)$,&lt;br /&gt;
$(8, 11, 9, 6, 0)$,&lt;br /&gt;
$(8, 11, 10, 2, 1)$,&lt;br /&gt;
$(8, 11, 11, 4, 0)$,&lt;br /&gt;
$(8, 12, 7, 6, 0)$,&lt;br /&gt;
$(8, 12, 9, 3, 1)$,&lt;br /&gt;
$(8, 12, 9, 5, 0)$,&lt;br /&gt;
$(8, 12, 10, 4, 0)$,&lt;br /&gt;
$(8, 12, 12, 1, 1)$,&lt;br /&gt;
$(8, 12, 14, 2, 0)$,&lt;br /&gt;
$(8, 12, 16, 1, 0)$,&lt;br /&gt;
$(8, 12, 18, 0, 0)$,&lt;br /&gt;
$(8, 13, 7, 3, 1)$,&lt;br /&gt;
$(8, 13, 7, 5, 0)$,&lt;br /&gt;
$(8, 13, 9, 2, 1)$,&lt;br /&gt;
$(8, 13, 12, 0, 1)$,&lt;br /&gt;
$(8, 13, 12, 3, 0)$,&lt;br /&gt;
$(8, 14, 0, 7, 0)$,&lt;br /&gt;
$(8, 14, 6, 6, 0)$,&lt;br /&gt;
$(8, 14, 7, 2, 1)$,&lt;br /&gt;
$(8, 14, 8, 1, 1)$,&lt;br /&gt;
$(8, 14, 9, 4, 0)$,&lt;br /&gt;
$(8, 14, 11, 0, 1)$,&lt;br /&gt;
$(8, 14, 11, 3, 0)$,&lt;br /&gt;
$(8, 14, 13, 2, 0)$,&lt;br /&gt;
$(8, 14, 15, 1, 0)$,&lt;br /&gt;
$(8, 14, 17, 0, 0)$,&lt;br /&gt;
$(8, 15, 6, 3, 1)$,&lt;br /&gt;
$(8, 15, 6, 5, 0)$,&lt;br /&gt;
$(8, 15, 7, 1, 1)$,&lt;br /&gt;
$(8, 16, 0, 6, 0)$,&lt;br /&gt;
$(8, 16, 4, 3, 1)$,&lt;br /&gt;
$(8, 16, 4, 5, 0)$,&lt;br /&gt;
$(8, 16, 6, 2, 1)$,&lt;br /&gt;
$(8, 16, 8, 4, 0)$,&lt;br /&gt;
$(8, 16, 9, 0, 1)$,&lt;br /&gt;
$(8, 16, 10, 3, 0)$,&lt;br /&gt;
$(8, 16, 12, 2, 0)$,&lt;br /&gt;
$(8, 16, 14, 1, 0)$,&lt;br /&gt;
$(8, 16, 16, 0, 0)$,&lt;br /&gt;
$(8, 17, 0, 5, 0)$,&lt;br /&gt;
$(8, 17, 3, 4, 0)$,&lt;br /&gt;
$(8, 17, 8, 3, 0)$,&lt;br /&gt;
$(8, 17, 10, 2, 0)$,&lt;br /&gt;
$(8, 17, 12, 1, 0)$,&lt;br /&gt;
$(8, 17, 14, 0, 0)$,&lt;br /&gt;
$(8, 18, 9, 2, 0)$,&lt;br /&gt;
$(8, 18, 11, 1, 0)$,&lt;br /&gt;
$(8, 18, 12, 0, 0)$,&lt;br /&gt;
$(8, 19, 6, 3, 0)$,&lt;br /&gt;
$(8, 19, 8, 2, 0)$,&lt;br /&gt;
$(8, 20, 0, 4, 0)$,&lt;br /&gt;
$(8, 20, 4, 3, 0)$,&lt;br /&gt;
$(8, 20, 7, 2, 0)$,&lt;br /&gt;
$(8, 20, 9, 1, 0)$,&lt;br /&gt;
$(8, 20, 11, 0, 0)$,&lt;br /&gt;
$(8, 21, 4, 2, 0)$,&lt;br /&gt;
$(8, 21, 7, 1, 0)$,&lt;br /&gt;
$(8, 22, 3, 2, 0)$,&lt;br /&gt;
$(8, 22, 6, 1, 0)$,&lt;br /&gt;
$(8, 22, 9, 0, 0)$,&lt;br /&gt;
$(8, 23, 0, 3, 0)$,&lt;br /&gt;
$(8, 23, 4, 1, 0)$,&lt;br /&gt;
$(8, 24, 0, 2, 0)$,&lt;br /&gt;
$(8, 24, 3, 1, 0)$,&lt;br /&gt;
$(8, 24, 8, 0, 0)$,&lt;br /&gt;
$(8, 25, 1, 1, 0)$,&lt;br /&gt;
$(8, 25, 6, 0, 0)$,&lt;br /&gt;
$(8, 26, 0, 1, 0)$,&lt;br /&gt;
$(8, 26, 4, 0, 0)$,&lt;br /&gt;
$(8, 28, 3, 0, 0)$,&lt;br /&gt;
$(8, 32, 0, 0, 0)$,&lt;br /&gt;
$(9, 8, 10, 4, 0)$,&lt;br /&gt;
$(9, 9, 9, 4, 0)$,&lt;br /&gt;
$(9, 9, 12, 3, 0)$,&lt;br /&gt;
$(9, 10, 8, 4, 0)$,&lt;br /&gt;
$(9, 10, 10, 3, 0)$,&lt;br /&gt;
$(9, 10, 12, 2, 0)$,&lt;br /&gt;
$(9, 10, 13, 1, 0)$,&lt;br /&gt;
$(9, 10, 15, 0, 0)$,&lt;br /&gt;
$(9, 11, 11, 2, 0)$,&lt;br /&gt;
$(9, 12, 7, 4, 0)$,&lt;br /&gt;
$(9, 12, 9, 3, 0)$,&lt;br /&gt;
$(9, 12, 12, 1, 0)$,&lt;br /&gt;
$(9, 12, 14, 0, 0)$,&lt;br /&gt;
$(9, 13, 7, 3, 0)$,&lt;br /&gt;
$(9, 13, 10, 2, 0)$,&lt;br /&gt;
$(9, 14, 9, 2, 0)$,&lt;br /&gt;
$(9, 14, 11, 1, 0)$,&lt;br /&gt;
$(9, 14, 13, 0, 0)$,&lt;br /&gt;
$(9, 15, 6, 3, 0)$,&lt;br /&gt;
$(9, 16, 0, 4, 0)$,&lt;br /&gt;
$(9, 16, 4, 3, 0)$,&lt;br /&gt;
$(9, 16, 8, 2, 0)$,&lt;br /&gt;
$(9, 16, 10, 1, 0)$,&lt;br /&gt;
$(9, 16, 12, 0, 0)$,&lt;br /&gt;
$(9, 17, 3, 3, 0)$,&lt;br /&gt;
$(9, 17, 6, 2, 0)$,&lt;br /&gt;
$(9, 17, 8, 1, 0)$,&lt;br /&gt;
$(9, 17, 10, 0, 0)$,&lt;br /&gt;
$(9, 18, 2, 3, 0)$,&lt;br /&gt;
$(9, 18, 4, 2, 0)$,&lt;br /&gt;
$(9, 18, 7, 1, 0)$,&lt;br /&gt;
$(9, 18, 9, 0, 0)$,&lt;br /&gt;
$(9, 19, 0, 3, 0)$,&lt;br /&gt;
$(9, 19, 3, 2, 0)$,&lt;br /&gt;
$(9, 19, 6, 1, 0)$,&lt;br /&gt;
$(9, 20, 1, 2, 0)$,&lt;br /&gt;
$(9, 20, 5, 1, 0)$,&lt;br /&gt;
$(9, 20, 8, 0, 0)$,&lt;br /&gt;
$(9, 21, 4, 1, 0)$,&lt;br /&gt;
$(9, 21, 6, 0, 0)$,&lt;br /&gt;
$(9, 22, 1, 1, 0)$,&lt;br /&gt;
$(9, 22, 5, 0, 0)$,&lt;br /&gt;
$(9, 24, 4, 0, 0)$,&lt;br /&gt;
$(9, 25, 2, 0, 0)$,&lt;br /&gt;
$(9, 28, 0, 0, 0)$,&lt;br /&gt;
$(10, 8, 6, 4, 0)$,&lt;br /&gt;
$(10, 8, 8, 3, 0)$,&lt;br /&gt;
$(10, 9, 7, 3, 0)$,&lt;br /&gt;
$(10, 9, 10, 2, 0)$,&lt;br /&gt;
$(10, 9, 11, 1, 0)$,&lt;br /&gt;
$(10, 9, 13, 0, 0)$,&lt;br /&gt;
$(10, 10, 5, 4, 0)$,&lt;br /&gt;
$(10, 10, 9, 2, 0)$,&lt;br /&gt;
$(10, 10, 12, 0, 0)$,&lt;br /&gt;
$(10, 11, 6, 3, 0)$,&lt;br /&gt;
$(10, 12, 4, 4, 0)$,&lt;br /&gt;
$(10, 12, 5, 3, 0)$,&lt;br /&gt;
$(10, 12, 7, 2, 0)$,&lt;br /&gt;
$(10, 12, 10, 1, 0)$,&lt;br /&gt;
$(10, 12, 11, 0, 0)$,&lt;br /&gt;
$(10, 13, 6, 2, 0)$,&lt;br /&gt;
$(10, 13, 8, 1, 0)$,&lt;br /&gt;
$(10, 13, 10, 0, 0)$,&lt;br /&gt;
$(10, 14, 3, 3, 0)$,&lt;br /&gt;
$(10, 14, 5, 2, 0)$,&lt;br /&gt;
$(10, 14, 9, 0, 0)$,&lt;br /&gt;
$(10, 15, 2, 3, 0)$,&lt;br /&gt;
$(10, 15, 7, 1, 0)$,&lt;br /&gt;
$(10, 16, 4, 2, 0)$,&lt;br /&gt;
$(10, 16, 6, 1, 0)$,&lt;br /&gt;
$(10, 16, 8, 0, 0)$,&lt;br /&gt;
$(10, 17, 4, 1, 0)$,&lt;br /&gt;
$(10, 17, 6, 0, 0)$,&lt;br /&gt;
$(10, 18, 2, 1, 0)$,&lt;br /&gt;
$(10, 18, 5, 0, 0)$,&lt;br /&gt;
$(10, 20, 4, 0, 0)$,&lt;br /&gt;
$(10, 21, 2, 0, 0)$,&lt;br /&gt;
$(10, 22, 1, 0, 0)$,&lt;br /&gt;
$(10, 24, 0, 0, 0)$,&lt;br /&gt;
$(11, 4, 6, 4, 0)$,&lt;br /&gt;
$(11, 6, 5, 4, 0)$,&lt;br /&gt;
$(11, 7, 6, 3, 0)$,&lt;br /&gt;
$(11, 8, 4, 4, 0)$,&lt;br /&gt;
$(11, 8, 5, 3, 0)$,&lt;br /&gt;
$(11, 9, 6, 2, 0)$,&lt;br /&gt;
$(11, 9, 8, 1, 0)$,&lt;br /&gt;
$(11, 9, 10, 0, 0)$,&lt;br /&gt;
$(11, 10, 3, 3, 0)$,&lt;br /&gt;
$(11, 10, 5, 2, 0)$,&lt;br /&gt;
$(11, 10, 9, 0, 0)$,&lt;br /&gt;
$(11, 11, 2, 3, 0)$,&lt;br /&gt;
$(11, 11, 7, 1, 0)$,&lt;br /&gt;
$(11, 12, 4, 2, 0)$,&lt;br /&gt;
$(11, 12, 6, 1, 0)$,&lt;br /&gt;
$(11, 12, 8, 0, 0)$,&lt;br /&gt;
$(11, 13, 4, 1, 0)$,&lt;br /&gt;
$(11, 13, 6, 0, 0)$,&lt;br /&gt;
$(11, 14, 2, 1, 0)$,&lt;br /&gt;
$(11, 14, 5, 0, 0)$,&lt;br /&gt;
$(11, 16, 4, 0, 0)$,&lt;br /&gt;
$(11, 17, 2, 0, 0)$,&lt;br /&gt;
$(11, 18, 1, 0, 0)$,&lt;br /&gt;
$(11, 20, 0, 0, 0)$,&lt;br /&gt;
$(12, 4, 3, 3, 0)$,&lt;br /&gt;
$(12, 6, 2, 3, 0)$,&lt;br /&gt;
$(12, 6, 5, 2, 0)$,&lt;br /&gt;
$(12, 6, 7, 1, 0)$,&lt;br /&gt;
$(12, 6, 9, 0, 0)$,&lt;br /&gt;
$(12, 8, 4, 2, 0)$,&lt;br /&gt;
$(12, 8, 6, 1, 0)$,&lt;br /&gt;
$(12, 8, 8, 0, 0)$,&lt;br /&gt;
$(12, 9, 4, 1, 0)$,&lt;br /&gt;
$(12, 9, 6, 0, 0)$,&lt;br /&gt;
$(12, 10, 2, 1, 0)$,&lt;br /&gt;
$(12, 10, 5, 0, 0)$,&lt;br /&gt;
$(12, 12, 4, 0, 0)$,&lt;br /&gt;
$(12, 13, 2, 0, 0)$,&lt;br /&gt;
$(12, 14, 1, 0, 0)$,&lt;br /&gt;
$(12, 16, 0, 0, 0)$,&lt;br /&gt;
$(13, 6, 5, 0, 0)$,&lt;br /&gt;
$(13, 8, 4, 0, 0)$,&lt;br /&gt;
$(13, 9, 2, 0, 0)$,&lt;br /&gt;
$(13, 10, 1, 0, 0)$,&lt;br /&gt;
$(13, 12, 0, 0, 0)$,&lt;br /&gt;
$(14, 4, 3, 0, 0)$,&lt;br /&gt;
$(14, 5, 2, 0, 0)$,&lt;br /&gt;
$(14, 6, 1, 0, 0)$,&lt;br /&gt;
$(14, 8, 0, 0, 0)$,&lt;br /&gt;
$(15, 4, 0, 0, 0)$,&lt;br /&gt;
$(16, 0, 0, 0, 0)$}}&lt;br /&gt;
\caption{The Pareto-optimal statistics of Moser sets in $[3]^4$.  This table can also be found at {\tt http://spreadsheets.google.com/ccc?key=rwXB\_Rn3Q1Zf5yaeMQL-RDw}}&lt;br /&gt;
\label{table4}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This was computed by computer search as follows.  First, one observed that if $(a,b,c,d,e)$ was Pareto-optimal, then $a\geq 3$.  To see this, it suffices to show that for any Moser set $A \subset [3]^4$ with $a(A)=0$, it is possible to add three points from $S_{4,4}$ to $A$ and still have a Moser set.  To show this, suppose first that $A$ contains a point from $S_{1,4}$, such as $2221$. Then $A$ must omit either $2211$ or $2231$; without loss of generality we may assume that it omits $2211$. Similarly we may assume it omits $2121$ and $1221$. Then we can add $1131$, $1311$, $3111$ to $A$, as required. Thus we may assume that $A$ contains no points from $S_{1,4}$.  Now suppose that $A$ omits a point from $S_{2,4}$, such as $2211$. Then one can add $3333$, $3111$, $1311$ to $A$, as required. Thus we may assume that A contains all of $S_{2,4}$, which forces $A$ to omit $2222$, as well as at least one point from $S_{3,4}$, such as $2111$. But then $3111$, $1111$, $3333$ can be added to the set, a contradiction. &lt;br /&gt;
&lt;br /&gt;
Thus we only need to search through sets $A \subset [3]^4$ for which $|A \cap S_{4,4}| \geq 3$.  A straightforward computer search shows that up to the symmetries of the cube, there are $391$ possible choices for $A \cap S_{4,4}$.  For each such choice, we looped through all the possible values of the slices $A \cap 1***$ and $A \cap 3***$, i.e. all three-dimensional Moser sets which had the indicated intersection with $S_{3,3}$.  (For fixed $A \cap S_{4,4}$, the number of possibilities for $A \cap 1***$ ranges from $1$ to $87123$, and similarly for $A \cap 3***$).  For each pair of slices $A \cap 1***$ and $A \cap 3***$, we computed the lines connecting these two sets to see what subset of $2***$ was excluded from $A$; there are $2^{27}$ possible such exclusion sets.  We precomputed a lookup table that gave the Pareto-optimal statistics for $A \cap 2***$ for each such choice of exclusion set; using this lookup table for each choice of $A \cap 1***$ and $A \cap 3***$ and collating the results, we obtained the above list. On a linux cluster, the lookup table took 22 minutes to create, and the loop over the $A \cap 1***$ and $A \cap 3***$ slices took two hours, spread out over $391$ machines (one for each choice of $A \cap S_{4,4}$). Further details (including source code) can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=4D\_Moser\_brute\_force\_search}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this data, we have the following facts about the statistics of large Moser sets:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}\label{stat} Let $A \subset [3]^4$ be a Moser set with statistics $(a,b,c,d,e)$.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] If $|A| \geq 40$, then $e=0$.&lt;br /&gt;
\item[(ii)] If $|A| \geq 43$, then $d=0$.&lt;br /&gt;
\item[(iii)] If $|A| \geq 42$, then $d \leq 2$.&lt;br /&gt;
\item[(iv)] If $|A| \geq 41$, then $d \leq 3$.&lt;br /&gt;
\item[(v)] If $|A| \geq 40$, then $d \leq 6$.&lt;br /&gt;
\item[(vi)] If $|A| \geq 43$, then $c \geq 18$.&lt;br /&gt;
\item[(vii)] If $|A| \geq 42$, then $c \geq 12$.&lt;br /&gt;
\item[(viii)] If $|A| \geq 43$, then $b \geq 15$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{remark}  This proposition was first established by an integer program, see Appendix \ref{integer-sec}.  A computer-free proof can be found at \centerline{{\tt http://terrytao.files.wordpress.com/2009/06/polymath2.pdf}.}&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\subsection{Five dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{5,3}=124$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=125$.  &lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,f(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{fvan} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $f(A)$ is non-zero, then $A$ contains $22222$, then each of the $\frac{3^5-1}{2} = 121$ antipodal pairs in $[3]^5$ can have at most one point in $A$, leading to only $122$ points.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let us slice $[3]^5$ into three parallel slices, e.g. $1****, 2****, 3****$.  The intersection of $A$ with each of these slices has size at most $43$.  In particular, this implies that&lt;br /&gt;
\begin{equation}\label{boo}&lt;br /&gt;
 |A \cap 1****| + |A \cap 3****| = 125 - |A \cap 2****| \geq 82.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Thus at least one of $A \cap 1****$, $A \cap 3****$ has cardinality at least $41$; by Proposition \ref{stat}(iv) we conclude that&lt;br /&gt;
\begin{equation}\label{d13}&lt;br /&gt;
\min( d(1****), d(3****) ) \leq 3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Furthermore, equality can only hold in \eqref{d13} if $A \cap 1****$, $A \cap 3****$ both have cardinality exactly $41$, in which case from Proposition \ref{stat}(iv) again we must have&lt;br /&gt;
\begin{equation}\label{d13a}&lt;br /&gt;
d(1****)=d(3****)=3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Of course, we have a similar result for permutations.&lt;br /&gt;
&lt;br /&gt;
Now we improve the bound $|A \cap 2****| \leq 43$:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $|A \cap 2****| \leq 41$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose first that $|A \cap 2****|=43$.  Let $A&#039; \subset [3]^4$ be the subset of $[3]^4$ corresponding to $A \cap 2****$, thus $A&#039;$ is a Moser set of cardinality $43$.  By Proposition \ref{stat}(vi), $c(A&#039;) \geq 18$.  By Lemma \ref{dci}, the sum of the $c(V)$, where $V$ ranges over the eight side slices of $[3]^4$, is therefore at least $36$.  By the pigeonhole principle, we may thus find two opposing side slices, say $1***$ and $3***$, with $c(1***)+c(3****) \geq 9$.  Since $c(1***), c(3***)$ cannot exceed $6$, we thus have $c(1***), c(3***) \geq 3$, with at least one of $c(1***), c(3***)$ being at least $5$.  Passing back to $A$, this implies that $d(*1***), d(*3***) \geq 3$, with at least one of $d(*1***), d(*3***)$ being at least $5$.  But this contradicts \eqref{d13} together with the refinement \eqref{d13a}.&lt;br /&gt;
&lt;br /&gt;
We have just shown that $|A \cap 2****| \leq 42$; we can thus improve \eqref{boo} to&lt;br /&gt;
$$ |A \cap 1****| + |A \cap 3****| \geq 83.$$&lt;br /&gt;
Combining this with Proposition \ref{stat}(ii)-(v) we see that&lt;br /&gt;
\begin{equation}\label{d13-6}&lt;br /&gt;
 d(1****)+d(3****) \leq 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
with equality only if $|A \cap 2****|=42$, and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
Now let $A&#039;$ be defined as before.  Then we have&lt;br /&gt;
$$ c(1***) + c(3***) \leq 6$$&lt;br /&gt;
and similarly for permutations.  Applying Lemma \ref{dci}, this implies that $c(2****) = c(A&#039;) \leq 12$.&lt;br /&gt;
&lt;br /&gt;
Now suppose for contradiction that $|A&#039;|=|A \cap 2****|=42$.  Then by Proposition \ref{stat}(vii) we have &lt;br /&gt;
\begin{equation}\label{coo-1}&lt;br /&gt;
c(2****) = 12; &lt;br /&gt;
\end{equation}&lt;br /&gt;
applying Lemma \ref{dci} again, this forces $c(1***)+c(3***)=6$ and similarly for permutations, which then implies that&lt;br /&gt;
\begin{equation}\label{doo}&lt;br /&gt;
d(*1***)+d(*3***) = d(**1**)+d(**3**) = d(***1*)+d(***3*) = d(****1)+d(****3) = 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
and hence&lt;br /&gt;
$$ |A \cap *2***| = |A \cap **2**| = |A \cap ***2*| = |A \cap ****2| = 42$$&lt;br /&gt;
and thus&lt;br /&gt;
\begin{equation}\label{coo-2}&lt;br /&gt;
c(*2***) = c(**2**) = c(***2*) = c(****2) = 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Combining \eqref{coo-1}, \eqref{doo}, \eqref{coo-2} we conclude that&lt;br /&gt;
$$ d(1****)+d(3****) = 16,$$&lt;br /&gt;
contradicting \eqref{d13-6}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
With this proposition, the bound \eqref{boo} now improves to&lt;br /&gt;
\begin{equation}\label{84}&lt;br /&gt;
|A \cap 1****| + |A \cap 3****| \geq 84&lt;br /&gt;
\end{equation}&lt;br /&gt;
and in particular&lt;br /&gt;
\begin{equation}\label{41}&lt;br /&gt;
|A \cap 1****|, |A \cap 3****| \geq 41.&lt;br /&gt;
\end{equation}&lt;br /&gt;
from this and Proposition \ref{stat}(ii)-(iv) we now have&lt;br /&gt;
\begin{equation}\label{d13-improv}&lt;br /&gt;
 d(1****)+d(3****) \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{evan} $e(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From \eqref{84}, the intersection of $A$ with any side slice has cardinality at least $41$, and thus by Proposition \ref{stat}(i) such a side slice has an $e$-statistic of zero.  The claim then follows from Lemma \ref{dci}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We need a technical lemma:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{tech} Let $B \subset S_{5,5}$.  Then there exist at least $|B|-4$ pairs of strings in $B$ which differ in exactly two positions.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} The first non-vacuous case is $|B|=5$.  It suffices to establish this case, as the higher cases then follow by induction (locating a pair of the desired form, then deleting one element of that pair from $B$).&lt;br /&gt;
&lt;br /&gt;
Suppose for contradiction that one can find a $5$-element set $B \subset S_{5,5}$ such that no two strings in $B$ differ in exactly two positions.  Recall that we may split $S_{5,5}=S_{5,5}^e \cup S_{5,5}^o$, where $S_{5,5}^e$ are those strings with an even number of $1$&#039;s, and $S_{5,5}^o$ are those strings with an odd number of $1$&#039;s.  By the pigeonhole principle and symmetry we may assume $B$ has at least three elements in $S_{5,5}^o$.  Without loss of generality, we can take one of them to be $11111$, thus excluding all elements in $S_{5,5}^o$ with exactly two $3$s, leaving only the elements with exactly four $3$s.  But any two of them differ in exactly two positions, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now improve the trivial bound $c(A) \leq 80$:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Non-maximal $c$]\label{cmax} $c(A) \leq 79$.  If $a(A) \geq 7$, then $c(A) \leq 78$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $c(A)=80$, then $A$ contains all of $S_{3,5}$, which then implies that no two elements in $A \cap S_{5,5}$ can differ in exactly two places.  It also implies (from \eqref{alpha-1}) that $d(A)$ must vanish, and that $b(A)$ is at most $40$. By Lemma \ref{tech}, we also have that $a(A) = |A \cap S_{5,5}|$ is at most $4$.  Thus $|A| \leq 4 + 40 + 80 + 0 + 0 = 124$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $a(A) \geq 7$.  Then by Lemma \ref{tech} there are at least three pairs in $A \cap S_{5,5}$ that differ in exactly two places.  Each such pair eliminates one point from $A \cap S_{3,5}$; but each point in $S_{3,5}$ can be eliminated by at most two such pairs, and so we have at least two points eliminated from $A \cap S_{3,5}$, i.e. $c(A) \leq 78$ as required.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Next, we rewrite the quantity $125=|A|$ in terms of side slices.  From Lemmas \ref{fvan}, \ref{evan} we have&lt;br /&gt;
$$ a(A) + b(A) + c(A) + d(A) = 125$$&lt;br /&gt;
and hence by Lemma \ref{dci}, the quantity&lt;br /&gt;
$$ s(V) := a(V) + \frac{5}{4} b(V) + \frac{5}{3} c(V) + \frac{5}{2} d(V) - \frac{125}{2},$$&lt;br /&gt;
where $V$ ranges over side slices, has an average value of zero.  &lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Large values of $s(V)$]\label{suv}  For all side slices, we have $s(V) \leq 1/2$.  Furthermore, we have $s(V) &amp;lt; -1/2$ unless the statistics $(a(V), b(V), c(V), d(V), e(V))$ are of one of the following four cases:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Type 1) $(a(V),b(V),c(V),d(V),e(V)) = (2,16,24,0,0)$ (and $s(V) = -1/2$ and $|A \cap V| = 42$);&lt;br /&gt;
\item (Type 2) $(a(V),b(V),c(V),d(V),e(V)) = (4,16,23,0,0)$ (and $s(V) = -1/6$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 3) $(a(V),b(V),c(V),d(V),e(V)) = (4,15,24,0,0)$ (and $s(V) = 1/4$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 4) $(a(V),b(V),c(V),d(V),e(V)) = (3,16,24,0,0)$ (and $s(V) = 1/2$ and $|A \cap V| = 43$);&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $V$ be a side slice.  From \eqref{41} we have&lt;br /&gt;
$$ 41 \leq a(V)+b(V)+c(V)+d(V) = |A \cap V| \leq 43.$$&lt;br /&gt;
First suppose that $|A \cap V| = 43$, then from Proposition \ref{stat}(ii), (viii), $d(V)=0$ and $b(V) \geq 15$.&lt;br /&gt;
Also, we have the trivial bound $c(V) \leq 24$, together with the inequality&lt;br /&gt;
$$ 3b(V) + 2c(V) \leq 96$$&lt;br /&gt;
from \eqref{alpha-1}.  To exploit these facts, we rewrite $s(V)$ as&lt;br /&gt;
$$ s(V) = \frac{1}{2} - \frac{1}{2}( 24 - c(V) ) - \frac{1}{12} (96-3b(V)-2c(V)).$$&lt;br /&gt;
Thus $s(V) \leq 1/2$ in this case.  If $s(V) \geq -1/2$, then&lt;br /&gt;
$$ 6 (24-c(V)) + (96-3b(V)-2c(V)) \leq 12,$$&lt;br /&gt;
which together with the inequalities $b(V) \leq 15$, $c(V) \leq 24$, $3b(V)+2c(V) \leq 96$ we conclude that $(b(V),c(V))$ must be one of $(16,24)$, $(15, 24)$, $(16, 23)$, $(15, 23)$.  The first three possibilities lead to Types 4,3,2 respectively.  The fourth type would lead to $(a(V),b(V),c(V),d(V),e(V)) = (5,15,23,0,0)$, but this contradicts \eqref{eleven}.&lt;br /&gt;
&lt;br /&gt;
Next, suppose $|A \cap V| = 42$, so by Proposition \ref{stat}(iii) we have $d(V) \leq 2$.  From \eqref{alpha-1} we have&lt;br /&gt;
\begin{equation}\label{2cd}&lt;br /&gt;
2c(V) + 3d(V) \leq 48&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from \eqref{alpha-2} we have&lt;br /&gt;
\begin{equation}\label{3cd}&lt;br /&gt;
3b(V)+2c(V)+3d(V) \leq 96&lt;br /&gt;
\end{equation}&lt;br /&gt;
and so we can rewrite $s(V)$ as&lt;br /&gt;
\begin{equation}\label{sv2}&lt;br /&gt;
s(V) = -\frac{1}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V).&lt;br /&gt;
\end{equation}&lt;br /&gt;
This already gives $s(V) \leq 1/2$.  If $d(V)=0$, then $s(V) \leq -1/2$, with equality only in Type 1.  If $d(V)=1$, then the set $A&#039; \subset [3]^4$ corresponding to $A \cap V$ contains a point in $S_{3,4}$, which without loss of generality we can take to be $2221$.  Considering the three lines $*221$, $2*21$, $22*1$, we see that at least three points in $S_{2,4}$ must be missing from $A&#039;$, thus $c(V) \leq 21$.  This forces $48-2c(V)-3d(V) \geq 3$, and so $s(V) &amp;lt; -3/4$.  Finally, if $d(V)=2$, then $A&#039;$ contains two points in $S_{3,4}$.  If they are antipodal (e.g. $2221$ and $2223$), the same argument as above shows that at least six points in $S_{2,4}$ are missing from $A&#039;$; if they are not antipodal (e.g. $2221$ and $2212$) then by considering the lines $*221$, $2*21$, $22*1$, $*212$, $2*12$ we see that five points are missing.  Thus we have $c(V) \leq 19$, which forces $48-2c(V)-3d(V) \geq 4$.  This forces $s(V) \leq -1/2$, with equality only when $c(V)=19$ and $3b(V)+2c(V)+3d(V)=96$, but this forces $b(V)$ to be the non-integer $52/3$, a contradiction, which concludes the treatment of the $|A \cap V|=42$ case.&lt;br /&gt;
&lt;br /&gt;
Finally, suppose $|A \cap V| = 41$.  Using \eqref{2cd}, \eqref{3cd} as before we have&lt;br /&gt;
\begin{equation}\label{sv3}&lt;br /&gt;
 s(V) = -\frac{3}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V),&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from Proposition \ref{stat}(vi) we have $d(V) \leq 3$.  This already gives $s(V) \leq 0$, and $s(V) \leq -1$ when $d(V)=1$.  In order to have $s(V) \geq -1/2$, we must then have $d(V)=2$ or $d(V)=3$.  But then the arguments of the preceding paragraph give $48-2c(V)-3d(V) \geq 4$, and so $s(V) \leq -1$ in this case.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Since the $s(V)$ average to zero, by the pigeonhole principle we may find two opposing side slices (e.g. $1****$ and $3****$), whose total $s$-value is non-negative.  Actually we can do a little better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{side-off} There exists two opposing side slices whose total $s$-value is strictly positive.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If this is not the case, then we must have $s(1****)+s(3****)=0$ and similarly for permutations.  Using Proposition \ref{suv} we thus see that for every opposing pair of side slices, one is Type 1 and one is Type 4.  In particular $c(V)=24$ for all side slices $V$.  But then by Lemma \ref{dci} we have $c(A)=80$, contradicting Lemma \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let $V, V&#039;$ be the side slices in Lemma \ref{side-off}&lt;br /&gt;
By Proposition \ref{suv}, the $V, V&#039;$ slices must then be either Type 2, Type 3, or Type 4, and they cannot both be Type 2.  Since $a(A) = a(V)+a(V&#039;)$, we conclude&lt;br /&gt;
\begin{equation}\label{amix}&lt;br /&gt;
6 \leq a(A) \leq 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
In a similar spirit, we have&lt;br /&gt;
$$ c(V) + c(V&#039;) \leq 23+24.$$&lt;br /&gt;
On the other hand, by considering the $24$ lines connecting $c$-points of $V, V&#039;$ to $c$-points of the centre slice $W$ between $V$ and $V&#039;$, each of which contains at most two points in $A$, we have&lt;br /&gt;
$$ c(V) + c(W) + c(V&#039;) \leq 24 \times 2.$$&lt;br /&gt;
Thus $c(W) \leq 1$; since&lt;br /&gt;
$$ d(A) = d(V) + d(V&#039;) + c(W)$$&lt;br /&gt;
we conclude from Proposition \ref{suv} that $d(A) \leq 1$.  Actually we can do better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $d(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that $d(A)=1$; without loss of generality we may take $11222 \in A$.  This implies that $d(1****)=d(*1***)=1$.  Also, by the above discussion, $c(**1**)$ and $c(**3**)$ cannot both be $24$, so by Proposition \ref{suv}, $s(**1**)+s(**3**) \leq 1/3$; similarly&lt;br /&gt;
$s(***1*)+s(***3*) \leq 1/3$ and $s(****1)+s(****3) \leq 1/3$.  Since the $s$ average to zero, we see from the pigeonhole principle that either $s(1****)+s(3****) \geq -1/2$ or $s(*1***)+s(*3***) \geq -1/2$.  We may assume by symmetry that &lt;br /&gt;
\begin{equation}\label{star-2}&lt;br /&gt;
s(1****)+s(3****) \geq -1/2.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Since $s(3****) \leq 1/2$ by Proposition \ref{suv}, we conclude that&lt;br /&gt;
\begin{equation}\label{star}&lt;br /&gt;
 s(1****) \geq -1.&lt;br /&gt;
\end{equation}&lt;br /&gt;
If $|A \cap 1****|=41$, then by \eqref{sv3} we have&lt;br /&gt;
$$ s(1****) = -1 - \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
but the arguments in Proposition \ref{suv} give $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$, a contradiction.  So we must have $|A \cap 1****|=42$ (by Proposition \ref{stat}(ii) and \eqref{41}).  In that case, from \eqref{sv2} we have&lt;br /&gt;
$$ s(1****) = \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
while also having $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$.  Since $s(1****) \geq -1$ and $d(1****)=1$, we soon see that we must have $48 - 2c(1****) - 3d(1****) = 3$ and $96-3b(1****)-2c(1****)-3d(1****) \leq 3$, which forces $c(1****)=21$ and $b(1****)=16$ or $b(1****)=17$; thus the statistics of $1****$ are either $(4,16,21,1,0)$ or $(3,17,21,1,0)$.&lt;br /&gt;
&lt;br /&gt;
We first eliminate the $(3,17,21,1,0)$ case.  In this case $s(1****)$ is exactly $-1$.  Inspecting the proof of \eqref{star}, we conclude that $s(3****)$ must be $+1/2$ and that $s(**1**)+s(**3**)=1/3$.  From the former fact and Proposition \ref{suv} we see that $a(A) = a(1****)+a(3****)=3+3=6$; on the other hand, from the latter fact and Proposition \ref{suv} we have $a(A) = a(**1**)+a(**3**) = 4+3=7$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
So $1****$ has statistics $(4,16,21,1,0)$, which implies that $s(1****)=-3/4$ and $|A \cap 1****|=42$.  By \eqref{star-2} we conclude &lt;br /&gt;
\begin{equation}\label{s3}&lt;br /&gt;
s(3****) \geq 1/4,&lt;br /&gt;
\end{equation} &lt;br /&gt;
which by Proposition \ref{suv} implies that $|A \cap 3****|=43$, and hence $|A \cap 2****|=40$.  On the other hand, since $e(A)=f(A)=0$ and $d(A)=1$, with the latter being caused by $11222$, we see that $c(2****)=d(2****)=e(2****)=0$.  From \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$, and we also have the trivial inequality $b(2****) \leq 32$; these inequalities are only compatible if $2****$ has statistics $(8,32,0,0,0)$, thus $A \cap 2****$ contains $S_{2,5} \cap 2****$.&lt;br /&gt;
&lt;br /&gt;
If $a(3****)=4$, then $a(A)=a(1****)+a(3****)=8$, which by Proposition \ref{suv} implies that $s(**1**)+s(**3**)$ cannot exceed $1/12$, and similarly for permutations.  On the other hand, from Proposition \ref{suv} $s(**1**)+s(**3**)$ cannot exceed $-3/4 + 1/4 = -1/2$, and so the average value of $s$ cannot be zero, a contradiction.  Thus $a(3****) \neq 4$, which by \eqref{s3} and Proposition \ref{suv} implies that $**3**$ has statistics $(3,16,24,0,0)$.&lt;br /&gt;
&lt;br /&gt;
In particular, $A$ contains $16$ points from $3**** \cap S_{1,5}$ and all of $3**** \cap S_{2,5}$.  As a consequence, no pair of the $16$ points in $A \cap 3**** \cap S_{1,5}$ can differ in only one coordinate; partitioning the $32$-point set $3**** \cap S_{1,5}$ into $16$ such pairs, we conclude that every such pair contains exactly one element of $A$.  We conclude that $A \cap 3**** \cap S_{1,5}$ is equal to either $3**** \cap S_{1,5}^e$ or $3**** \cap S_{1,5}^o$.&lt;br /&gt;
&lt;br /&gt;
On the other hand, $A$ contains all of $2**** \cap S_{2,5}$, and exactly sixteen points from $1**** \cap S_{1,5}$.  Considering the vertical lines $*xyzw$ where $xyzw \in S_{1,4}$, we conclude that $A \cap 1**** \cap S_{1,5}$ is either equal to $1**** \cap S_{1,5}^o$ or $1**** \cap S_{1,5}^e$.&lt;br /&gt;
But either case is incompatible with the fact that $A$ contains $11222$ (consider either the line $11xx2$ or $11x\overline{x}2$, where $x=1,2,3$ and $\overline{x}=4-x$), obtaining the required contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now eliminate all but three cases for the statistics of $A$:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Statistics of $A$]  The statistics $(a(A),b(A),c(A),d(A),e(A),f(A))$ of $A$ must be one of the following three tuples:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Case 1) $(6,40,79,0,0)$;&lt;br /&gt;
\item (Case 2) $(7,40,78,0,0)$;&lt;br /&gt;
\item (Case 3) $(8,39,78,0,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Since $d(A)=e(A)=f(A)=0$, we have&lt;br /&gt;
$$ c(2****)=d(2****)=e(2****)=0.$$&lt;br /&gt;
On the other hand, from \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$ as well as the trivial inequality $b(2****) \leq 24$, and also we have&lt;br /&gt;
$$ |A \cap 2****| = 125 - |A \cap 1****| - |A \cap 3****| \geq 125 - 43 - 43 = 39.$$&lt;br /&gt;
Putting all this together, we see that the only possible statistics for $2****$ are $(8,32,0,0,0)$, $(7,32,0,0,0)$, or $(8,31,0,0,0)$.  In particular, $7 \leq a(2****) \leq 8$ and $31 \leq b(2****) \leq 32$, and similarly for permutations. Applying Lemma \ref{dci} we conclude that&lt;br /&gt;
$$ 35 \leq b(A) \leq 40$$&lt;br /&gt;
and&lt;br /&gt;
$$ 77.5 \leq c(A) \leq 80.$$&lt;br /&gt;
Combining this with the first part of Corollary \ref{cmax} we conclude that $c(A)$ is either $78$ or $79$.  From this and \eqref{amix} we see that the only cases that remain to be eliminated are $(7,39,79,0,0)$ and $(8,38,79,0,0)$, but these cases are incompatible with the second part of Corollary \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We now eliminate each of the three remaining cases in turn.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(6,40,79,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has six points.  By Lemma \ref{tech}, there are at least two pairs in this set which differ in two positions.  Their midpoints are eliminated from $A \cap S_{3,5}$.  But $A$ omits exactly one point from $S_{3,5}$, so these midpoints must be the same.  By symmetry, we may then assume that these two pairs are $(11111,11133)$ and $(11113,11131)$.  Thus the eliminated point in $S_{3,5}$ is $11122$, i.e. $A$ contains $S_{3,5} \backslash \{11122\}$.  Also, $A$ contains $\{11111,11133,11113,11131\}$ and thus must omit $\{11121, 11123, 11112, 11132\}$.&lt;br /&gt;
&lt;br /&gt;
Since $11322 \in A$, at most one of  $11312, 11332$ lie in $A$. By symmetry we may assume $11312 \not \in A$, thus there is a pair $(xy1z2, xy3z2)$ with $x,y,z = 1,3$ that is totally omitted from $A$, namely $(11112,11312)$. On the other hand, every other pair of this form can have at most one point in the $A$, thus there are at most seven points in $A$ of the form $xyzw2$ with $x,y,z,w = 1,3$. Similarly there are at most 8 points of the form $xyz2w$, or of $xy2zw$, $x2yzw$, $2xyzw$, leading to $b(A) \leq 7+8+8+8+8=39$, contradicting the statistic $b(A)=40$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(7,40,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has seven points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of the midpoints of these pairs must be the same; thus, as in the previous section, we may assume that $A$ contains $\{11111,11133,11113,11131\}$ and omits $\{11121, 11123, 11112, 11132\}$ and $11122$.&lt;br /&gt;
&lt;br /&gt;
Now consider the $160$ lines $\ell$ connecting two points in $S_{4,5}$ to one point in $S_{3,5}$ (i.e. $*2xyz$ and permutations, where $x,y,z=1,3$).  By double counting, the total sum of $|\ell \cap A|$ over all $160$ lines is $4b(A)+2c(A) = 316 = 158 \times 2$.  On the other hand, each of these lines contain at most two points in $A$, but two of them (namely $1112*$ and $1112*$) contain no points.  Thus we must have $|\ell \cap A|=2$ for the remaining $158$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Since $A$ omits $1112x$ and $111x2$ for $x=1,3$, we thus conclude (by considering the lines $11*2x$ and $11*x2$) that $A$ must contain $1132x$, $113x2$, $1312x$, and $131x2$.  Taking midpoints, we conclude that $A$ omits $11322$ and $13122$.  But together with $11122$ this implies that at least three points are missing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(8,39,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Now $A \cap S_{5,5}$ has eight points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of these pairs $(a,b), (c,d)$ must have the same midpoint $p$, and two other pairs $(a&#039;,b&#039;), (c&#039;,d&#039;)$ must have the same midpoint $p&#039;$, and $A$ contains $S_{3,5} \backslash \{p,p&#039;\}$.  As $p,p&#039;$ are distinct, the plane containing $a,b,c,d$ is distinct from the plane containing $a&#039;,b&#039;,c&#039;,d&#039;$.&lt;br /&gt;
&lt;br /&gt;
Again consider the $160$ lines $\ell$ from the previous section.  This time, the sum of the $|\ell \cap A|$ is $4b(A)+2c(A) = 312 = 156 \times 2$.&lt;br /&gt;
But the two lines in the plane of $a,b,c,d$ passing through $p$, and the two lines in the plane of $a&#039;,b&#039;,c&#039;,d&#039;$ passing through $p&#039;$, have no points; thus we must have $|\ell \cap A|=2$ for the remaining $156$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have $(a,b)=(11111,11133)$, $(c,d) = (11113,11131)$, thus $p = 11122$. By permuting the first three indices, we may assume that $p&#039;$ is not of the form $x2y2z, x2yz2, xy22z, xy2z2$ for any $x,y,z=1,3$. Then we have $1112x \not \in A$ and $1122x \in A$ for every $x=1,3$, so by the preceding paragraph we have $1132x \in A$; similarly for $113x2, 1312x, 131x2$. Taking midpoints, this implies that $13122, 11322 \not \in A$, but this (together with 11122) shows that at least three points aremissing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Six dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{6,3}=353$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=354$.&lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,g(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{g6} $g(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
  &lt;br /&gt;
\begin{proof} For any four-dimensional slice $V$ of $A$, define &lt;br /&gt;
$$S(V) := 15 a(V) + 5 b(V) + 5 c(V)/2 + 3d(V)/2 + e(V).$$&lt;br /&gt;
From Lemma \ref{dci} we see that $|A|$ is equal to $a(A)+b(A)$ plus the average of $S(V)$ where $V$ ranges over the twenty slices which are some permutation of the center slice $22****$.&lt;br /&gt;
&lt;br /&gt;
If $g(A)=1$, then $a(A) \leq 32$ and $b(A) \leq 96$ by \eqref{alpha-1}.  Meanwhile, $e(V)=g(A)=1$ for every center slice $V$, so from Lemma \ref{paretop-4}, one can show that $S(V) \leq 223.5$ for every such slice.  We conclude that $|A| \leq 351.5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
For any four-dimensional slice $V$ of $A$, define the \emph{defects} to be&lt;br /&gt;
$$ D(V) := 356 - [4a(V)+6b(V)+10c(V)+20d(V)+60e(V)].$$&lt;br /&gt;
Define a \emph{corner slice} to be one of the permutations or reflections of $11****$, thus there are $60$ corner slices.  From Lemma \ref{dci} we see that $356-|A|+f(A)=2+f(A)$ is the average of the defects of all the $60$ corner slices.  On the other hand, from Lemma \ref{paretop-4} and a straightforward computation, one concludes&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{defects}  Let $A$ be a four-dimensional Moser set.  Then $D(A) \geq 0$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $A$ has statistics $(6,12,18,4,0)$, then $D(A)=0$.&lt;br /&gt;
\item If $A$ has statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$, then $D(A)=4$.&lt;br /&gt;
\item For all other $A$, $D(A) \geq 6$.&lt;br /&gt;
\item If $a(A) = 4$, then $D(A) \geq 8$.&lt;br /&gt;
\item If $a(A) \geq 7$, then $D(A) \geq 16$.&lt;br /&gt;
\item If $a(A) \geq 8$, then $D(A) \geq 30$.&lt;br /&gt;
\item If $a(A) \geq 9$, then $D(A) \geq 86$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{family} to be a set of four parallel corner slices, thus there are $15$ families, which are all a permutation of $\{11****, 13****, 31****, 33**** \}$.  We refer to the family $\{11****, 13****, 31****, 33**** \}$ as $ab****$, and similarly define the family $a*b***$, etc.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{f6} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  For any four-dimensional slice $V$ of $A$, define&lt;br /&gt;
$$ s(V) := 12 a(V)+15 b(V)/2+20 c(V)/3+15 d(V)/2 + 12 e(V),$$&lt;br /&gt;
and define an \emph{edge slice} to be one of the $30$ permutations or reflections of $12****$.  From double counting we see that $|A|-a(A)$ is equal to the average of the $30$ values of $s(V)$ as $V$ ranges over edge slices.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{paretop-4} one can verify that $s(V) \leq 336$, and that $s(V) \leq 296 = 336-40$ if $e(V)=1$.  The number of edge slices $V$ for which $e(V)=1$ is equal to $5f(A)$, and so the average value of the $s(V)$ is at most $336 - \frac{40 \times 5}{30} f(A)$, and so&lt;br /&gt;
$$ |A| - a(A) \leq 336 - \frac{40 \times 5}{30} f(A)$$&lt;br /&gt;
which we can rearrange (using $|A|=354$) as&lt;br /&gt;
$$ a(A) \geq 18 + \frac{20}{3} f(A).$$&lt;br /&gt;
Suppose first that $f(A)=1$; then $a(A) \geq 25$.  This means that in any given family, one of the four corner slices has an $a$ value of at least $7$, and thus by Lemma \ref{defects} has a defect of at least $16$.  Thus the average defect is at least $4$; on the other hand, the average defect is $2+f(A)=3$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $f(A) \geq 2$; then $a(A) \geq 32$.   Then in any given family, there is a corner slice with an $a$ value at least $9$, or four slices with $a$ value at least $8$, leading to a total defect of at least $86$ by Lemma \ref{defects}.  Thus the average defect is at least $21.5$; on the other hand, the average defect is $2+f(A) \leq 2+12$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of the above lemma, we see that the average defect of all corner slices is $2$, or equivalently that the total defect of these slices is $120$.&lt;br /&gt;
&lt;br /&gt;
Call a corner slice \emph{good} if it has statistics $(6,12,18,4,0)$, and \emph{bad} otherwise.  Thus good slices have zero defect, and bad slices have defect at least four.  Since the average defect of the $60$ corner slices is $2$, there are at least $30$ good slices.&lt;br /&gt;
&lt;br /&gt;
One can describe the structure of the good slices completely:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{sixt}  The subset of $[3]^4$ consisting of the strings $1111, 1113, 3333, 1332, 1322, 1222, 3322$ and permutations is a Moser set with statistics $(6,12,18,4,0)$.  Conversely, every Moser set with statistics $(6,12,18,4,0)$ is of this form up to the symmetries of the cube $[3]^4$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified by computer.  By symmetry, one assumes 1222,2122,2212 and 2221 are in the set.  Then 18 of the 24 &#039;c&#039; points with two 2s must be included; it is quick to check that 1122 and permutations must be the six excluded.  Next, one checks that the only possible set of six &#039;a&#039; points with no 2s is 1111,1113,3333 and permutations.  Lastly, in a rather longer computation, one finds there is only possible set of twelve &#039;b&#039; points, that is points with one 2.  A computer-free proof can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Classification\_of\_\%286\%2C12\%2C18\%2C4\%2C0\%29\_sets}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this lemma, given any $x,y,z,w \in \{1,3\}$, there is a unique good Moser set in $[3]^4$ set whose intersection with $S_{1,4}$ is $\{x222, 2y22, 22z2, 222w\}$, and these are the only 16 possibilities. Call this set the \emph{good set of type $xyzw$}. It consists of&lt;br /&gt;
\begin{itemize} &lt;br /&gt;
\item The four points $x222, 2y22, 22z2, 222w$ in $S_{1,4}$;&lt;br /&gt;
\item All $24$ elements of $S_{2,4}$ except for $xy22, x2z2, x22w, 2yz2, 2y2w, 22zw$;&lt;br /&gt;
\item The twelve points $xYZ2$, $xY2W$, $x2ZW$, $XyZ2$, $Xy2W$, $2yZW$, $XYz2$, $X2zW$, $2YzW$, $XY2w$, $X2Zw$, $2YZw$ in $S_{3,4}$, where $X=4-x$, $Y=4-y$, $Z=4-z$, $W=4-w$;&lt;br /&gt;
\item The six points $xyzw, xyzW, xyZw, xYzw, Xyzw, XYZW$ in $S_{4,4}$.&lt;br /&gt;
\end{itemize} &lt;br /&gt;
&lt;br /&gt;
We can use this to constrain the types of two intersecting good slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{pqs} Suppose that the $pq****$ slice is of type $xyzw$, and the $p*r***$ slice is of type $x&#039;y&#039;z&#039;w&#039;$, where $p,q,r,x,y,z,w,x&#039;,y&#039;,z&#039;,w&#039;$ are in $\{1,3\}$. Then $x&#039;=x$ iff $q=r$, and $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$. If $x=r$ (or equivalently if $x&#039;=q$), then $y&#039;z&#039;w&#039;=yzw$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} By reflection symmetry we can take $p=q=r=1$. Observe that the $11****$ slice contains $111222$ iff $x=1$, and the $1*1***$ slice similarly contains $111222$ iff $x&#039;=1$. This shows that $x=x&#039;$.&lt;br /&gt;
&lt;br /&gt;
Suppose now that $x=x&#039;=1$. Then the $111***$ slice contains the three elements $111y22, 1112z2, 11122w$, and excludes $111Y22, 1112Z2, 11122W$, and similarly with the primes, which forces $yzw=y&#039;z&#039;w&#039;$ as claimed.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $x=x&#039;=3$. Then the $111***$ slice contains the two elements $111yzw, 111YZW$, but does not contain any of the other six points in $S_{6,6} \cap 111***$, and similarly for the primes. Thus $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$ as claimed. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two adjacent parallel good slices, such as $11****$ and $13****$.  The following lemma asserts that such slices either have opposite type, or else will create a huge amount of defect in other slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l18} Suppose that the $11****$ and $13****$ slices are good with types $xyzw$ and $x&#039;y&#039;z&#039;w&#039;$ respectively. If $x=x&#039;$, then the $1*x***$ slice has defect at least $30$, and the $1*X***$ slice has defect at least $8$. Also, the $1**1**$, $1**3**$, $1***1*$, $1***3*$, $1****1$, $1****3$ slices have defect at least $6$. In particular, the total defect of slices beginning with $1*$ is at least $74$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Observe from the $11****, 13****$ hypotheses that $a(1*x***)=9$ and $a(1*X***)=4$, which gives the first two claims by Lemma \ref{defects}.  For the other claims, one sees from Lemma \ref{pqs} that the other six slices cannot be good; also, they have an $a$-value of $6$ and a $d$-value of at most $7$, and the claims then follow from Lemma \ref{defects}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two diagonally opposite parallel good slices, such as $11****$ and $33****$. &lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l14} The $11****$ and $33****$ slices cannot both be good and of the same type.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****$ and $33****$ are of type $1111$. This excludes a lot of points from $22****$. Indeed, by connecting lines between the $11****$ and $33****$ slices, we see that the only points that can still survive in $22****$ are $221133, 221333, 221132, 223332$, and permutations of the last four indices. Double counting the lines $22133*$ and permutations we see that there are at most $12$ points one can place in the permutations of $221133, 221333, 221132$, and so the $22****$ slice has at most $16$ points. Meanwhile, the two five-dimensional slices $1*****, 3*****$ have at most $c&#039;_{5,3} = 124$ points, and the other two four-dimensional slices $21****, 23****$ have at most $c&#039;_{4,3} = 43$ points, leading to at most $16 + 124 * 2 + 43 * 2 = 350$ points in all, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
\begin{lemma}\label{l19} It is not possible for all four slices in a family to be good.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****, 13****, 31****, 33****$ are good.   By Lemma \ref{l14}, the $11****$ and $33****$ slices cannot be of the same type, and so they cannot both be of the opposite type to either $13****$ or $31****$. If $13****$ is not of the opposite type to $11****$, then by (a permutation of) Lemma \ref{l18}, the total defect of slices beginning with $1*$ is at least $74$; otherwise, if $13****$ is not of the opposite type to $33****$, then by (a permutation and reflection of) Lemma \ref{l18}, the total defect of slices beginning with $*3$ is at least $74$. Similarly, the total defect of slices beginning with $3*$ or $*1$ is at least $74$, leading to a total defect of at least $148$. But the total defect of all the corner slices is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{l20} At most one family can have a total defect of at least $38$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose there are two families with defect at least $38$. The remaining thirteen family have defect at least $4$ by Lemma \ref{l19} and Lemma \ref{defects}, leading to a total defect of at least $38*2+13*4=128$. But the total defect is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually we can refine this:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  No family can have a total defect of at least $38$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that the $ab****$ family (say) had a total defect of at least $38$, then by Corollary \ref{l20} no other families have total defect at least $38$.&lt;br /&gt;
&lt;br /&gt;
We claim that the $**ab**$ family can have at most two good slices. Indeed, suppose the $**ab**$ has three good slices, say $**11**, **13**, **33**$. By Lemma \ref{l14}, the $**11**$ and $**33**$ slices cannot be of the same type, and so cannot both be of opposite type to $**13**$. Suppose $**11**$ and $**13**$ are not of opposite type. Then by (a permutation of) Lemma \ref{l18}, one of the families $a*b***, *ab***, **b*a*, **b**a$ has a net defect of at least $38$, contradicting the normalisation.&lt;br /&gt;
&lt;br /&gt;
Thus each of the six families $**ab**, **a*b*, **a**b, ***ab*, ***a*b, ****ab$ have at least two bad slices. Meanwhile, the eight families $a*b***, a**b**, a***b*, a****b, *ab***, *a*b**, *a**b*, *a***b$ have at least one bad slice by Corollary \ref{l19}, leading to twenty bad slices in addition to the defect of at least $38$ arising from the $ab****$ slice. To add up to a total defect of $120$, we conclude from Lemma \ref{defects} that all bad slices outside of the $ab****$ family have a defect of four, with at most one exception; but then by Lemma \ref{l18} this shows that (for instance) the $1*1***$ and $1*3***$ slices cannot be good unless they are of opposite type. The previous argument then shows that the a*b*** slice cannot have three good slices, which increases the number of bad slices outside of $ab****$ to at least twenty-one, and now there is no way to add up to $120$, a contradiction. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary} Every family can have at most two good slices.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If for instance $11****, 13****, 33****$ are all good, then by Lemma \ref{l14} at least one of $11****, 33****$ is not of the opposite type to $13****$, which by Lemma \ref{l18} implies that there is a family with a total defect of at least $38$, contradicting the previous proposition.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this corollary and Lemma \ref{defects}, we see that every family has a defect of at least $8$.  Since there are $15$ families, and $8 \times 15$ is exactly equal to $120$, we conclude&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{coda} Every family has \emph{exactly} two good slices, and the remaining two slices have defect $4$.  In particular, by Lemma \ref{defects}, the bad slices must have statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$.  &lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
We now limit how these slices can interact with good slices.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{goodgood}  Suppose that $1*1***$ is a good slice.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] The $11****$ slice cannot have statistics $(6,8,12,8,0)$.&lt;br /&gt;
\item[(ii)] The $11****$ slice cannot have statistics $(5,12,12,4,1)$.&lt;br /&gt;
\item[(iii)] If the $11****$ slice has statistics $(5,12,18,4,0)$, then the $112***$ slice has statistics $(3,9,3,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified through computer search; there are $16$ possible configurations for the good slices, and one can calculate that there are $27520$ configurations for the $(5,12,12,4,1)$ slices, $4368$ configurations for the $(5,12,18,4,0)$ slices, and $80000$ configurations for the $(6,8,12,8,0)$ slices. {\bf we could put human proofs for all this somewhere, presumably.}&lt;br /&gt;
&lt;br /&gt;
%We first prove (i).  Suppose for contradiction that the $11****$ slice has statistics $(6,8,12,8,0)$, then $A$ contains $111222$, and so the $1*1***$ slice is of type $1xyz$ for some $x,y,z$.  By symmetry we may assume it is of type $1111$, thus the $111***$ slice consists of&lt;br /&gt;
%$111111, 111113, 111332, 111322, 111222$ and permutations of the last three indices.  On the other hand, the $11****$ slice has all eight of the points in $11**** \cap S_{2,6}$.  Drawing lines between these points and $111111, 111113$ and permutations, we see that the $113***$ slice cannot contain $113111, 113113, 113133$, or permutations, leaving $113333$ as the only possible element of $113*** \cap S_{6,6}$.  This makes $a(11****)=5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic}  The $111***$ slice has statistics $(4,3,3,1)$, $(2,6,6,0)$, $(3,3,3,1)$, or $(1,6,6,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From Corollary \ref{coda}, we know that at least one of the slices $13****, 31****, 11****$ are good.  If $11****$ or $1*1***$ is good, then the slice $111***$ has statistics $(4,3,3,1)$ or $(2,6,6,0)$, by Lemma \ref{sixt}.  By symmetry we may thus reduce to the case where $13****$ is good and $1*1***$ is bad.  Then by Lemma \ref{goodgood}, the $1*1***$ slice has statistics $(5,12,18,4,0)$ and the $121***$ slice has statistics $(3,9,3,0)$.  Since the $131***$ slice, as a side slice of the good $13****$ slice, has statistics $(4,3,3,1)$ or $(2,6,6,0)$, we conclude that the $111***$ slice has statistics $(1,6,6,0)$ or $(3,3,3,1)$, and the claim follows.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic2} All corner slices have statistics $(6,12,18,4,0)$ or $(5,12,18,4,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  Suppose first that a corner slice, say $11****$ has statistic $(6,8,12,8,0)$.  Then $111***$ and $113***$ contain one ``d&#039;&#039; point each, and have six ``a&#039;&#039; points between them, so by Corollary \ref{slic}, they both have statistic $(3,3,3,1)$.  This forces the $1*1***$, $1*3***$ slices to be bad, which by Corollary \ref{coda} forces the $3*1***,3*3***$ slices to be good.  This forces the $311***, 313***$ slices to have statistics either $(2,6,6,0)$ or $(4,3,3,1)$.  But the $311***$ slice (say) cannot have statistic $(4,3,3,1)$, since when combined with the $(3,3,3,1)$ statistics of $111***$ would give $a(*11***)=7$, which contradicts Corollary \ref{coda}; thus the $311***$ slice has statistic $(2,6,6,0)$, and similarly for $331***$.  But then $a(3*1***)=4$, which again contradicts Corollary \ref{coda}.&lt;br /&gt;
&lt;br /&gt;
Thus no corner slice has statistic $(6,8,12,8,0)$.  Now suppose that a corner slice, say $11****$ has statistic $(5,12,12,4,1)$.  By Lemma \ref{goodgood}, the $1*1***, 1*3***$ slices are bad, so by repeating the preceding arguments we conclude that the $311***, 313***$ slices have statistics $(2,6,6,0)$ or $(4,3,3,1)$; in particular, their $a$-value is even.  However, the $*11***$ and $*13***$ slices are bad by Lemma \ref{goodgood}, and thus have an $a$-value of $5$; thus the $111***$ and $113***$ slices have an odd $a$-value.  Thus forces $a(11****)$ to be even; but it is equal to $5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this and Lemma \ref{dci}, we see that $A$ has statistics $(22,72,180,80,0,0,0)$.  In particular, we have $2\alpha_2(A)+\alpha_3(A) = 2$, which by double counting (cf. \eqref{alpha-1}) shows that for every line of the form $12222*$ (or a reflection or permutation thereof) intersects $A$ in exactly two points.  Note that such lines connect a ``$d$&#039;&#039; point to two ``$c$&#039;&#039; points.&lt;br /&gt;
&lt;br /&gt;
Also, we observe that two adjacent ``$d$&#039;&#039; points, such as $111222$ and $113222$, cannot both lie in $A$; for this would force the $*13***$ and $*11***$ slices to have statistics $(4,3,3,1)$ or $(3,3,3,1)$ by Corollary \ref{slic}, which forces $a(*1****)=6$, and thus $*1****$ must be good by Corollary \ref{slic2}; but this contradicts Lemma \ref{sixt}.  Since $\alpha_3(A)=1/2$, we conclude that given any two adjacent ``$d$&#039;&#039; points, exactly one of them lies in $A$.  In particular, the d points of the form $***222$ consist either of those strings with an even number of $1$s, or those with an odd number of $1$s.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say it&#039;s the former, thus the set contains $111222, 133222$, and permutations of the first three coordinates, but omits $113222, 333222$ and permutations of the first three coordinates. Since the ``$d$&#039;&#039; points $113222, 333222$ are omitted, we conclude that the ``$c$&#039;&#039; points $113122, 113322, 333122, 333322$ must lie in the set, and similarly for permutations of the first three and last three coordinates. But this gives at least $15$ of the $16$ ``$c$&#039;&#039; points ending in $22$; by symmetry this leads to $225$ $c$-points in all; but $c(A)=180$, contradiction.  This (finally!) completes the proof that $c&#039;_{6,3}=353$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1970</id>
		<title>Moser.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1970"/>
		<updated>2009-07-22T12:04:54Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Upper bounds for the $k=3$ Moser problem in small dimensions}\label{moser-upper-sec}&lt;br /&gt;
&lt;br /&gt;
In this section we finish the proof of Theorem \ref{moser} by obtaining the upper bounds on  $c&#039;_{n,3}$ for $n \leq 6$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Statistics, densities and slices}&lt;br /&gt;
&lt;br /&gt;
Our analysis will revolve around various \emph{statistics} of Moser sets $A \subset [3]^n$, their associated \emph{densities}, and the behavior of such statistics and densities with respect to the operation of passing from the cube $[3]^n$ to various \emph{slices} of that cube.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Statistics and densities]  Let $A \subset [3]^n$ be a set.  For any $0 \leq i \leq n$, set $a_i(A) := |A \cap S_{n-i,n}|$; thus we have&lt;br /&gt;
$$ 0 \leq a_i(A) \leq |S_{n-i,n}| = \binom{n}{i} 2^{n-i}$$&lt;br /&gt;
for $0 \leq i \leq n$ and&lt;br /&gt;
$$ a_0(A) + \ldots + a_n(A) = |A|.$$&lt;br /&gt;
We refer to the vector $(a_0(A),\ldots,a_n(A))$ as the \emph{statistics} of $A$.  We define the $i^{th}$ \emph{density} $\alpha_i(A)$ to be the quantity&lt;br /&gt;
$$ \alpha_i(A) := \frac{a_i(A) }{\binom{n}{i} 2^{n-i}},$$&lt;br /&gt;
thus $0 \leq \alpha_i(A) \leq 1$ and&lt;br /&gt;
$$ |A| = \sum_{i=0}^n \binom{n}{i} 2^{n-i} a_i(A).$$&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
\begin{example}\label{2mos}  Let $n=2$ and $A$ be the Moser set $A := \{ 12, 13, 21, 23, 31, 32 \}$.  Then the statistics $(a_0(A), a_1(A), a_2(A))$ of $A$ are $(2,4,0)$, and the densities $(\alpha_0(A), \alpha_1(A), \alpha_2(A))$ are $(\frac{1}{2}, 1, 0)$.  \textbf{Include picture here? with colours?}&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
When working with small values of $n$, it will be convenient to write $a(A)$, $b(A)$, $c(A)$, etc. for $a_0(A)$, $a_1(A)$, $a_2(A)$, etc., and similarly write $\alpha(A), \beta(A), \gamma(A)$, etc. for $\alpha_0(A)$, $\alpha_1(A)$, $\alpha_2(A)$, etc.  Thus for instance in Example \ref{2mos} we have $b(A) = 4$ and $\alpha(A) = \frac{1}{2}$.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Subspace statistics and densities]  If $V$ is a $k$-dimensional geometric subspace of $[3]^n$, then we have a map $\phi_V: [3]^k \to [3]^n$ from the $k$-dimensional cube to the $n$-dimensional cube.  If $A \subset [3]^n$ is a set and $0 \leq i \leq k$, we write $a_i(V,A)$ for $a_i(\phi_V^{-1}(A))$ and $\alpha_i(V,A)$ for $\alpha_i(\phi_V^{-1}(A))$.  If the set $A$ is clear from context, we abbreviate $a_i(V,A)$ as $a_i(V)$ and $\alpha_i(V,A)$ as $\alpha_i(V)$.&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
For our problem, a particularly important type of subspace of $[3]^n$ will be the \emph{slices} formed by fixing one coordinate and letting the other $n-1$ coordinates vary.  We will denote this by a single string in which the $n-1$ varying coordinates are denoted by asterisks.  For instance, in $[3]^2$, $1*$ denotes the slice $1*=\{11,12,13\}$, $*2$ denotes the slice $*2=\{12,22,32\}$, etc.; similarly, in $[3]^3$, $1**$ is the slice $\{111, 112, 113, 121, 122, 123, 131, 132, 133\}$, etc.  We call a slice a \emph{centre slice} if the fixed coordinate is $2$ and a \emph{side slice} if it is $1$ or $3$.&lt;br /&gt;
 &lt;br /&gt;
\begin{example}  We continue Example \ref{2mos}.  Then the statistics of the side slice $1*$ are $(a(1*),b(1*)) = (1,1)$, while the statistics of the centre slice $2*$ are $(a(2*),b(2*))=(2,0)$.  The corresponding densities are $(\alpha(1*),\beta(1*)) = (1/2,1)$ and $(\alpha(2*),\beta(2*))=(1,0)$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
A simple double counting argument gives the following useful identity:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Double counting identity]\label{dci}  Let $A \subset [3]^n$ and $0 \leq i \leq n-1$.  Then we have&lt;br /&gt;
$$ \frac{1}{n-i-1} \sum_{V \hbox{ a side slice}} a_{i+1}(V) = \frac{1}{i+1} \sum_{W \hbox{ a centre slice}} a_i(W) = a_{i+1}(A)$$&lt;br /&gt;
where $V$ ranges over the $2n$ side slices of $[3]^n$, and $W$ ranges over the $n$ centre slices.  In other words, the average value of $\alpha_{i+1}(V)$ for side slices $V$ equals the average value of $\alpha_i(W)$ for centre slices $W$, which is in turn equal to $\alpha_{i+1}(A)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Indeed, this lemma follows from the observation that every string in $A \cap S_{n-i-1,n}$ belongs to $i+1$ centre slices $W$ (and contributes to $a_i(W)$) and to $n-i-1$ side slices $V$ (and contributes to $a_{i+1}(V)$).  One can also view this lemma probabilistically, as the assertion that there are three equivalent ways to generate a random string of length $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick a side slice $V$ at random, and randomly fill in the wildcards in such a way that $i+1$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-2,n-1}$).&lt;br /&gt;
\item Pick a centre slice $V$ at random, and randomly fill in the wildcards in such a way that $i$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-1,n-1}$).&lt;br /&gt;
\item Randomly choose an element of $S_{n-i-1,n}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
\begin{example} We continue Example \ref{2mos}.  The average value of $\beta$ for side slices is equal to the average value of $\alpha$ for centre slices, which is equal to $\beta(A) = 1$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
Another very useful fact (essentially due to \cite{chvatal2}) is that linear inequalities for statistics of Moser sets at one dimension propagate to linear inequalities in higher dimensions:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Propagation lemma]\label{prop}  Let $n \geq 1$ be an integer.  Suppose one has a linear inequality of the form&lt;br /&gt;
\begin{equation}\label{alphav}&lt;br /&gt;
 \sum_{i=0}^n v_i \alpha_i(A) \leq s&lt;br /&gt;
\end{equation}&lt;br /&gt;
for all Moser sets $A \subset [3]^n$ and some real numbers $v_0,\ldots,v_n,s$.  Then we also have the linear inequality&lt;br /&gt;
$$ \sum_{i=0}^n v_i \alpha_{qi+r}(A) \leq s$$&lt;br /&gt;
whenever $q \geq 1$, $r \geq 0$, $N \geq nq+r$ are integers and $A \subset [3]^N$ is a Moser set.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  We run a probabilistic argument (one could of course also use a double counting argument instead).  Let $n,v_0,\ldots,v_n,s,q,r,N,A$ be as in the lemma.  Let $V$ be a random $n$-dimensional geometric subspace of $[3]^N$, created in the following fashion:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $n$ wildcards $x_1,\ldots,x_n$ to run independently from $1$ to $3$.  We also introduce dual wildcards $\overline{x_1},\ldots,\overline{x_n}$; each $\overline{x_j}$ will take the value $4-x_j$.&lt;br /&gt;
\item We randomly subdivide the $N$ coordinates into $n$ groups of $q$ coordinates, plus a remaining group of $N-nq$ ``fixed&#039;&#039; coordinates.&lt;br /&gt;
\item For each coordinate in the $j^{th}$ group of $q$ coordinates for $1 \leq j \leq n$, we randomly assign either a $x_j$ or $\overline{x_j}$.&lt;br /&gt;
\item For each coordinate in the $N-nq$ fixed coordinates, we randomly assign a digit $1,2,3$, but condition on the event that exactly $r$ of the digits are equal to $2$ (i.e. we use a random element of $S_{N-nq-r,N-nq}$).&lt;br /&gt;
\item Let $V$ be the subspace created by allowing $x_1,\ldots,x_n$ to run independently from $1$ to $3$, and $\overline{x_j}$ to take the value $4-x_j$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
For instance, if $n=2, q=2, r=1, N=6$, then a typical subspace $V$ generated in this fashion is&lt;br /&gt;
$$ 2x_1\overline{x_2}3x_2x_1 = \{ 213311, 212321, 211331, 223312, 222322, 221332, 233313, 232323, 231333\}.$$&lt;br /&gt;
Observe from that the following two ways to generate a random element of $[3]^N$ are equivalent:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $V$ randomly as above, and then assign $(x_1,\ldots,x_n)$ randomly from $S_{n-i,n}$.  Assign $4-x_j$ to $\overline{x_j}$ for all $1 \leq j \leq n$.&lt;br /&gt;
\item Pick a random string in $S_{N-qi-r,N}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
Indeed, both random variables are invariant under the symmetries of the cube, and both random variables always pick out strings in $S_{N-qi-r,N}$, and the claim follows.  As a consequence, we see that the expectation of $\alpha_i(V)$ (as $V$ ranges over the recipe described above) is equal to $\alpha_{qi+r}(A)$.  On the other hand, from \eqref{alphav} we have&lt;br /&gt;
$$  \sum_{i=0}^n v_i \alpha_i(V) \leq s$$&lt;br /&gt;
for all such $V$; taking expectations over $V$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
In view of Lemma \ref{prop}, it is of interest to locate linear inequalities relating the densities $\alpha_i(A)$, or (equivalently) the statistics $a_i(A)$.  For this, it is convenient to introduce the following notation.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}  Let $n \geq 1$ be an integer.  &lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item A vector $(a_0,\ldots,a_n)$ of non-negative integers is \emph{feasible} if it is the statistics of some Moser set $A$.&lt;br /&gt;
\item A feasible vector $(a_0,\ldots,a_n)$ is \emph{Pareto-optimal} if there is no other feasible vector $(b_0,\ldots,b_n) \neq (a_0,\ldots,a_n)$ such that $b_i \geq a_i$ for all $0 \leq i \leq n$.&lt;br /&gt;
\item A Pareto-optimal vector $(a_0,\ldots,a_n)$ is \emph{extremal} if it is not a non-trivial convex linear combination of other Pareto-optimal vectors.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
To establish a linear inequality of the form \eqref{alphav} with the $v_i$ non-negative, it suffices to test the inequality against densities associated to extremal vectors of statistics.  (There is no point considering linear inequalities with negative coefficients $v_i$, since one always has the freedom to reduce a density $\alpha_i(A)$ of a Moser set $A$ to zero, simply by removing all elements of $A$ with exactly $i$ $2$&#039;s.)&lt;br /&gt;
&lt;br /&gt;
We will classify exactly the Pareto-optimal and extremal vectors for $n \leq 3$, which by Lemma \ref{prop} will lead to useful linear inequalities for $n \geq 4$.  Using a computer, we have also located a partial list of Pareto-optimal and extremal vectors for $n=4$, which are also useful for the $n=5$ and $n=6$ theory.&lt;br /&gt;
&lt;br /&gt;
\subsection{Up to three dimensions}&lt;br /&gt;
&lt;br /&gt;
We now establish Theorem \ref{moser} for $n \leq 3$, and establish some auxiliary inequalities which will be of use in higher dimensions.&lt;br /&gt;
&lt;br /&gt;
The case $n=0$ is trivial. When $n=1$, it is clear that $c&#039;_{1,3} = 2$, and furthermore that the Pareto-optimal statistics are $(2,0)$ and $(1,1)$, which are both extremal.  This leads to the linear inequality&lt;br /&gt;
$$ 2\alpha(A) + \beta(A) \leq 2$$&lt;br /&gt;
for all Moser sets $A \subset [3]^1$, which by Lemma \ref{prop} implies that&lt;br /&gt;
\begin{equation}\label{alpha-1}&lt;br /&gt;
2\alpha_r(A) + \alpha_{r+q}(A) \leq 2&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
For $n=2$, we see by partitioning $[3]^2$ into three slices that $c&#039;_{2,3} \leq 3 c&#039;_{1,3} = 6$, and so (by the lower bounds in the previous section) $c&#039;_{2,3} = 6$.  Writing $(a,b,c) = (a(A),b(A),c(A)) = (4\alpha(A), 4\beta(A), \gamma(A))$, the inequalities \eqref{alpha-1} become&lt;br /&gt;
\begin{equation}\label{abc}&lt;br /&gt;
a + 2c \leq 4; b+2c \leq 4; 2a+b &amp;lt;= 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}  When $n=2$, the Pareto-optimal statistics are $(4,0,0), (3,2,0), (2,4,0), (2,2,1)$. In particular, the extremal statistics are $(4,0,0), (2,4,0), (2,2,1)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  One easily checks that all the statistics listed above are feasible.&lt;br /&gt;
Consider the statistics $(a,b,c)$ of a Moser set $A \subset [3]^2$.  $c$ is either equal to $0$ or $1$.  If $c=1$, then \eqref{abc} implies that $a,b \leq 2$, so the only Pareto-optimal statistic here is $(2,2,1)$.  When instead $c=0$, the inequalities \eqref{abc} can easily imply the Pareto-optimality of $(4,0,0), (3,2,0), (2,4,0)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this lemma we see that we obtain a new inequality $2a+b+2c \leq 8$.  Converting this back to densities and using Lemma \ref{prop}, we conclude that&lt;br /&gt;
\begin{equation}\label{alpha-2}&lt;br /&gt;
4\alpha_r(A) + 2\alpha_{r+q}(A) + \alpha_{r+2q} \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+2r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
One can also check by computer that there are exactly $230$ line-free subsets of $[3]^2$.&lt;br /&gt;
&lt;br /&gt;
Now we look at three dimensions.  Writing $(a,b,c,d)$ for the statistics of a Moser set $A \subset [3]^n$ (which thus range between $(0,0,0,0)$ and $(8,12,6,1)$), the inequalities \eqref{alpha-1} imply in particular that&lt;br /&gt;
\begin{equation}\label{abc-3d}&lt;br /&gt;
a+4d \leq 8; b+6d \leq 12; c+3d \leq 6; 3a+2c \leq 24; b+c \leq 12&lt;br /&gt;
\end{equation}&lt;br /&gt;
while \eqref{alpha-2} implies that&lt;br /&gt;
\begin{equation}\label{abcd-3d}&lt;br /&gt;
3a+b+c \leq 24; b+c+3d \leq 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Summing the inequalities $b+c \leq 12, 3a+b+c \leq 24, b+c+3d \leq 12$ yields&lt;br /&gt;
$$ 3(a+b+c+d) \leq 48$$&lt;br /&gt;
and hence $|A| = a+b+c+d \leq 16$; comparing this with the lower bounds of the preceding section we obtain $c&#039;_{3,3} = 16$ as required.  (This argument is essentially identical to the one in \cite{chvatal2}).&lt;br /&gt;
&lt;br /&gt;
We have the following useful computation:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[3D Pareto-optimals]\label{paretop} When $n=3$, the Pareto-optimal statistics are $$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0),$$ &lt;br /&gt;
$$ (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0),$$&lt;br /&gt;
$$ (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).$$  &lt;br /&gt;
In particular, the extremal statistics are &lt;br /&gt;
$$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0).$$&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} This can be established by a brute-force search over the $2^{27} \approx 1.3 \times 10^8$ different subsets of $[3]^3$.  Actually, one can perform a much faster search than this.  Firstly, as noted earlier, there are only $230$ line-free subsets of $[3]^2$, so one could search over $230^3 \approx 1.2 \times 10^7$ configurations instead.  Secondly, by symmetry we may assume (after enumerating the $230$ sets in a suitable fashion) that the first slice $A \cap 1**$ has an index less than or equal to the third $A \cap 3**$, leading to $\binom{231}{2} \times 230 \approx 6 \times 10^6$ configurations instead.  Finally, using the first and third slice one can quickly determine which elements of the second slice $2**$ are prohibited from $A$.  There are $2^9 = 512$ possible choices for the prohibited set in $2**$.  By crosschecking these against the list of $230$ line-free sets one can compute the Pareto-optimal statistics for the second slices inside the prohibited set (the lists of such statistics turns out to length at most $23$).  Storing these statistics in a lookup table, and then running over all choices of the first and third slice (using symmetry), one now has to perform $O( 512 \times 230 ) + O( \binom{231}{2} \times 23) \approx O( 10^6 )$ computations, which is quite a feasible computation.&lt;br /&gt;
&lt;br /&gt;
One could in principle reduce the computations even further, by a factor of up to $8$, by using the symmetry group $D_4$ of the square $[3]^2$ to reduce the number of cases one needs to consider, but we did not implement this.&lt;br /&gt;
&lt;br /&gt;
A computer-free proof of this lemma can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Human\_proof\_of\_the\_3D\_Pareto-optimal\_Moser\_statistics}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} A similar computation revealed that the total number of line-free subsets of $[3]^3$ was $3813884$.  With respect to the $2^3 \times 3!=48$-element group of geometric symmetries of $[3]^3$, these sets partitioned into $83158$ equivalence classes:&lt;br /&gt;
$$&lt;br /&gt;
3813884 = 76066 \times 48+6527 \times 24+51 \times 16+338 \times 12 +109 \times 8+41 \times 6+13 \times 4 +5 \times 3+3 \times 2+5 \times 1.&lt;br /&gt;
$$&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
Lemma \ref{paretop} yields the following new inequalities:&lt;br /&gt;
\begin{align*}&lt;br /&gt;
2a+b+2c+4d &amp;amp;\leq 22 \\&lt;br /&gt;
3a+2b+3c+6d &amp;amp;\leq 36 \\&lt;br /&gt;
7a+2b+4c+8d &amp;amp;\leq 56 \\&lt;br /&gt;
6a+2b+3c+6d &amp;amp;\leq 48 \\&lt;br /&gt;
a+2c+4d &amp;amp;\leq 14 \\&lt;br /&gt;
5a+4c+8d &amp;amp;\leq 40.&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
Applying Lemma \ref{prop}, we obtain new inequalities:&lt;br /&gt;
\begin{align}&lt;br /&gt;
8\alpha_r(A)+ 6\alpha_{r+q}(A) + 6\alpha_{r+2q}(A) + 2\alpha_{r+3q}(A) &amp;amp;\leq 11 \label{eleven}\\&lt;br /&gt;
4\alpha_r(A)+4\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 6\label{six}\\&lt;br /&gt;
7\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
8\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 8\label{eight}\\&lt;br /&gt;
4\alpha_{r+q}(A)+2\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 4\nonumber\\&lt;br /&gt;
4\alpha_r(A)+6\alpha_{r+2q}(A)+2\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
5\alpha_r(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 5\nonumber &lt;br /&gt;
\end{align}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq r+3q$, and Moser sets $A \subset [3]^n$.&lt;br /&gt;
&lt;br /&gt;
We also note some further corollaries of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Statistics of large 3D Moser sets]\label{paretop2}  Let $(a,b,c,d)$ be the statistics of a Moser set $A$ in $[3]^3$.  Then $|A| = a+b+c+d \leq 16$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $|A|=16$, then $(a,b,c,d) = (4,12,0,0)$.&lt;br /&gt;
\item If $|A|=15$, then $(a,b,c,d) = (4,11,0,0)$ or $(3,12,0,0)$.&lt;br /&gt;
\item If $|A| \geq 14$, then $b \geq 6$ and $d=0$.&lt;br /&gt;
\item If $|A| = 13$ and $d=1$, then $(a,b,c,d) = (4,6,2,1)$ or $(3,6,3,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\subsection{Four dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{4,3}=43$.  Let $A$ be a Moser set in $[3]^4$, with attendant statistics $(a,b,c,d,e)$, which range between $(0,0,0,0,0)$ and $(16,32,24,8,1)$.  In view of the lower bounds, our task here is to establish the upper bound $a+b+c+d+e \leq 43$.&lt;br /&gt;
&lt;br /&gt;
The linear inequalities already established just barely fail to achieve this bound, but we can obtain the upper bound $a+b+c+d+e \leq 44$ as follows.&lt;br /&gt;
First suppose that $e=1$; then from the inequalities \eqref{alpha-1} (or by considering lines passing through $2222$) we see that $a \leq 8, b \leq 16, c \leq 12, d \leq 4$ and hence $a+b+c+d+e \leq 41$, so we may assume that $e=0$.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{dci}, we see that $a+b+c+d+e$ is now equal to the sum of $a(V)/4+b(V)/3+c(V)/2+d(V)$, where $V$ ranges over all side slices of $[3]^4$.  But from Lemma \ref{paretop} we see that $a(V)/4+b(V)/3+c(V)/2+d(V)$ is at most $\frac{11}{4}$, with equality occuring only when $(a(V),b(V),c(V),d(V))=(2,6,6,0)$.  This gives the upper bound $a+b+c+d+e \leq 44$.&lt;br /&gt;
&lt;br /&gt;
The above argument shows that $a+b+c+d+e=44$ can only occur if $e=0$ and if $(a(V),b(V),c(V),d(V))=(2,6,6,0)$ for all side slices $V$.  Applying Lemma \ref{paretop} again this implies $(a,b,c,d,e)=(4,16,24,0,0)$.  But then $A$ contains all of the sphere $S_{2,4}$, which implies that the four-element set $A \cap S_{4,4}$ cannot contain a pair of strings which differ in exactly two positions (as their midpoint would then lie in $S_{2,4}$, contradicting the hypothesis that $A$ is a Moser set).  &lt;br /&gt;
&lt;br /&gt;
Recall that we may partition $S_{4,4} = S_{4,4}^e \cup S_{4,4}^o$, where &lt;br /&gt;
$$S_{4,4}^e := \{ 1111, 1133, 1313, 3113, 1331, 3131, 3311, 3333\}$$&lt;br /&gt;
is the strings in $S_{4,4}$ with an even number of $1$&#039;s, and &lt;br /&gt;
$$S_{4,4}^o := \{ 1113, 1131, 1311, 3111, 1333, 3133, 3313, 3331\}$$&lt;br /&gt;
are the strings in $S_{4,4}$ with an odd number.  Observe that any two distinct elements in $S_{4,4}^e$ differ in exactly two positions unless they are antipodal.  Thus $A \cap S_{4,4}^e$ has size at most two, with equality only when $A \cap S_{4,4}^e$ consists of an antipodal pair.  Similarly for $A \cap S_{4,4}^o$.  Thus $A$ must consist of two antipodal pairs, one from $S_{4,4}^e$ and one from $S_{4,4}^o$.&lt;br /&gt;
&lt;br /&gt;
By the symmetries of the cube we may assume without loss of generality that these pairs are $\{ 1111, 3333\}$ and $\{1113,3331\}$ respectively.  But as $A$ is a Moser set, $A$ must now exclude the strings $1112$ and $3332$.  These two strings form two corners of the eight-element set&lt;br /&gt;
$$ ***2 \cap S_{3,4} = \{ 1112, 1132, 1312, 3112, 1332, 3132, 3312, 3332 \}.$$&lt;br /&gt;
Any pair of points in this set which are ``adjacent&#039;&#039; in the sense that they differ by exactly one entry cannot both lie in $A$, as their midpoint would then lie in $S_{3,4}$, and so $A$ can contain at most four elements from this set, with equality only if $A$ contains all the points in $***2 \cap S_{3,4}$ of the same parity (either all the elements with an even number of $3$s, or all the elements with an odd number of $3$s).  But because the two corners removed from this set have the opposite parity (one has an even number of $1$s and one has an odd number), we see in fact that $A$ can contain at most $3$ points from this set.  Meanwhile, the same arguments give that $A$ contains at most four points from $**2* \cap S_{3,4}$, $*2** \cap S_{3,4}$, and $2*** \cap S_{3,4}$.  Summing we see that $b = |A \cap S_{3,4}| \leq 3+4+4+4=15$, a contradiction.  Thus we have $c&#039;_{4,3}=43$ as claimed.&lt;br /&gt;
&lt;br /&gt;
We have the following four-dimensional version of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[4D Pareto-optimals]\label{paretop-4} When $n=4$, the Pareto-optimal statistics listed on Table \ref{table4}.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centered{\tiny&lt;br /&gt;
$(3, 16, 24, 0, 0)$,&lt;br /&gt;
$(4, 14, 19, 2, 0)$,&lt;br /&gt;
$(4, 15, 24, 0, 0)$,&lt;br /&gt;
$(4, 16, 8, 4, 1)$,&lt;br /&gt;
$(4, 16, 14, 4, 0)$,&lt;br /&gt;
$(4, 16, 23, 0, 0)$,&lt;br /&gt;
$(4, 17, 21, 0, 0)$,&lt;br /&gt;
$(4, 18, 19, 0, 0)$,&lt;br /&gt;
$(5, 12, 12, 4, 1)$,&lt;br /&gt;
$(5, 12, 13, 6, 0)$,&lt;br /&gt;
$(5, 12, 15, 5, 0)$,&lt;br /&gt;
$(5, 12, 19, 2, 0)$,&lt;br /&gt;
$(5, 13, 10, 4, 1)$,&lt;br /&gt;
$(5, 13, 14, 5, 0)$,&lt;br /&gt;
$(5, 13, 21, 1, 0)$,&lt;br /&gt;
$(5, 15, 9, 4, 1)$,&lt;br /&gt;
$(5, 15, 12, 3, 1)$,&lt;br /&gt;
$(5, 15, 13, 5, 0)$,&lt;br /&gt;
$(5, 15, 18, 3, 0)$,&lt;br /&gt;
$(5, 15, 20, 1, 0)$,&lt;br /&gt;
$(5, 15, 22, 0, 0)$,&lt;br /&gt;
$(5, 16, 7, 4, 1)$,&lt;br /&gt;
$(5, 16, 10, 3, 1)$,&lt;br /&gt;
$(5, 16, 11, 5, 0)$,&lt;br /&gt;
$(5, 16, 12, 2, 1)$,&lt;br /&gt;
$(5, 16, 16, 3, 0)$,&lt;br /&gt;
$(5, 16, 19, 1, 0)$,&lt;br /&gt;
$(5, 16, 21, 0, 0)$,&lt;br /&gt;
$(5, 17, 12, 4, 0)$,&lt;br /&gt;
$(5, 17, 14, 3, 0)$,&lt;br /&gt;
$(5, 17, 16, 2, 0)$,&lt;br /&gt;
$(5, 17, 18, 1, 0)$,&lt;br /&gt;
$(5, 17, 20, 0, 0)$,&lt;br /&gt;
$(5, 18, 13, 3, 0)$,&lt;br /&gt;
$(5, 18, 14, 2, 0)$,&lt;br /&gt;
$(5, 20, 8, 4, 0)$,&lt;br /&gt;
$(5, 20, 10, 3, 0)$,&lt;br /&gt;
$(5, 20, 13, 2, 0)$,&lt;br /&gt;
$(5, 20, 14, 1, 0)$,&lt;br /&gt;
$(5, 20, 18, 0, 0)$,&lt;br /&gt;
$(5, 21, 10, 2, 0)$,&lt;br /&gt;
$(5, 21, 15, 0, 0)$,&lt;br /&gt;
$(5, 22, 13, 0, 0)$,&lt;br /&gt;
$(6, 8, 12, 8, 0)$,&lt;br /&gt;
$(6, 10, 11, 4, 1)$,&lt;br /&gt;
$(6, 11, 12, 7, 0)$,&lt;br /&gt;
$(6, 12, 10, 7, 0)$,&lt;br /&gt;
$(6, 12, 13, 5, 0)$,&lt;br /&gt;
$(6, 12, 18, 4, 0)$,&lt;br /&gt;
$(6, 13, 16, 4, 0)$,&lt;br /&gt;
$(6, 14, 9, 4, 1)$,&lt;br /&gt;
$(6, 14, 9, 7, 0)$,&lt;br /&gt;
$(6, 14, 12, 6, 0)$,&lt;br /&gt;
$(6, 14, 16, 3, 0)$,&lt;br /&gt;
$(6, 14, 19, 1, 0)$,&lt;br /&gt;
$(6, 14, 21, 0, 0)$,&lt;br /&gt;
$(6, 15, 7, 4, 1)$,&lt;br /&gt;
$(6, 15, 10, 3, 1)$,&lt;br /&gt;
$(6, 15, 10, 6, 0)$,&lt;br /&gt;
$(6, 15, 11, 2, 1)$,&lt;br /&gt;
$(6, 15, 12, 5, 0)$,&lt;br /&gt;
$(6, 15, 15, 4, 0)$,&lt;br /&gt;
$(6, 15, 20, 0, 0)$,&lt;br /&gt;
$(6, 16, 7, 3, 1)$,&lt;br /&gt;
$(6, 16, 8, 6, 0)$,&lt;br /&gt;
$(6, 16, 9, 2, 1)$,&lt;br /&gt;
$(6, 16, 10, 5, 0)$,&lt;br /&gt;
$(6, 16, 12, 1, 1)$,&lt;br /&gt;
$(6, 16, 13, 4, 0)$,&lt;br /&gt;
$(6, 16, 14, 3, 0)$,&lt;br /&gt;
$(6, 16, 18, 2, 0)$,&lt;br /&gt;
$(6, 16, 19, 0, 0)$,&lt;br /&gt;
$(6, 17, 9, 5, 0)$,&lt;br /&gt;
$(6, 17, 10, 4, 0)$,&lt;br /&gt;
$(6, 17, 13, 3, 0)$,&lt;br /&gt;
$(6, 17, 15, 2, 0)$,&lt;br /&gt;
$(6, 17, 17, 1, 0)$,&lt;br /&gt;
$(6, 17, 18, 0, 0)$,&lt;br /&gt;
$(6, 18, 13, 2, 0)$,&lt;br /&gt;
$(6, 18, 16, 1, 0)$,&lt;br /&gt;
$(6, 18, 17, 0, 0)$,&lt;br /&gt;
$(6, 19, 9, 4, 0)$,&lt;br /&gt;
$(6, 19, 12, 3, 0)$,&lt;br /&gt;
$(6, 19, 15, 1, 0)$,&lt;br /&gt;
$(6, 20, 7, 4, 0)$,&lt;br /&gt;
$(6, 20, 9, 3, 0)$,&lt;br /&gt;
$(6, 20, 12, 2, 0)$,&lt;br /&gt;
$(6, 20, 13, 1, 0)$,&lt;br /&gt;
$(6, 20, 15, 0, 0)$,&lt;br /&gt;
$(6, 21, 8, 3, 0)$,&lt;br /&gt;
$(6, 21, 9, 2, 0)$,&lt;br /&gt;
$(6, 21, 12, 1, 0)$,&lt;br /&gt;
$(6, 21, 14, 0, 0)$,&lt;br /&gt;
$(6, 22, 7, 3, 0)$,&lt;br /&gt;
$(6, 22, 8, 2, 0)$,&lt;br /&gt;
$(6, 22, 10, 1, 0)$,&lt;br /&gt;
$(6, 23, 9, 1, 0)$,&lt;br /&gt;
$(6, 24, 7, 2, 0)$,&lt;br /&gt;
$(6, 24, 8, 1, 0)$,&lt;br /&gt;
$(6, 24, 12, 0, 0)$,&lt;br /&gt;
$(6, 25, 9, 0, 0)$,&lt;br /&gt;
$(6, 26, 7, 0, 0)$,&lt;br /&gt;
$(7, 8, 6, 8, 0)$,&lt;br /&gt;
$(7, 11, 9, 4, 1)$,&lt;br /&gt;
$(7, 11, 12, 6, 0)$,&lt;br /&gt;
$(7, 12, 8, 4, 1)$,&lt;br /&gt;
$(7, 12, 8, 6, 0)$,&lt;br /&gt;
$(7, 12, 12, 3, 1)$,&lt;br /&gt;
$(7, 12, 12, 5, 0)$,&lt;br /&gt;
$(7, 12, 13, 4, 0)$,&lt;br /&gt;
$(7, 12, 15, 3, 0)$,&lt;br /&gt;
$(7, 12, 17, 2, 0)$,&lt;br /&gt;
$(7, 13, 7, 4, 1)$,&lt;br /&gt;
$(7, 13, 10, 3, 1)$,&lt;br /&gt;
$(7, 13, 11, 5, 0)$,&lt;br /&gt;
$(7, 13, 12, 2, 1)$,&lt;br /&gt;
$(7, 13, 12, 4, 0)$,&lt;br /&gt;
$(7, 13, 14, 3, 0)$,&lt;br /&gt;
$(7, 13, 16, 2, 0)$,&lt;br /&gt;
$(7, 14, 6, 4, 1)$,&lt;br /&gt;
$(7, 14, 6, 7, 0)$,&lt;br /&gt;
$(7, 14, 9, 5, 0)$,&lt;br /&gt;
$(7, 14, 10, 2, 1)$,&lt;br /&gt;
$(7, 14, 12, 1, 1)$,&lt;br /&gt;
$(7, 14, 17, 1, 0)$,&lt;br /&gt;
$(7, 14, 19, 0, 0)$,&lt;br /&gt;
$(7, 15, 7, 5, 0)$,&lt;br /&gt;
$(7, 15, 8, 3, 1)$,&lt;br /&gt;
$(7, 15, 9, 2, 1)$,&lt;br /&gt;
$(7, 15, 11, 1, 1)$,&lt;br /&gt;
$(7, 15, 11, 4, 0)$,&lt;br /&gt;
$(7, 15, 13, 3, 0)$,&lt;br /&gt;
$(7, 15, 16, 1, 0)$,&lt;br /&gt;
$(7, 16, 6, 3, 1)$,&lt;br /&gt;
$(7, 16, 6, 6, 0)$,&lt;br /&gt;
$(7, 16, 8, 2, 1)$,&lt;br /&gt;
$(7, 16, 10, 1, 1)$,&lt;br /&gt;
$(7, 16, 10, 4, 0)$,&lt;br /&gt;
$(7, 16, 12, 0, 1)$,&lt;br /&gt;
$(7, 16, 12, 3, 0)$,&lt;br /&gt;
$(7, 16, 15, 2, 0)$,&lt;br /&gt;
$(7, 16, 17, 0, 0)$,&lt;br /&gt;
$(7, 17, 6, 5, 0)$,&lt;br /&gt;
$(7, 17, 7, 4, 0)$,&lt;br /&gt;
$(7, 17, 11, 3, 0)$,&lt;br /&gt;
$(7, 17, 13, 2, 0)$,&lt;br /&gt;
$(7, 17, 14, 1, 0)$,&lt;br /&gt;
$(7, 17, 16, 0, 0)$,&lt;br /&gt;
$(7, 18, 10, 3, 0)$,&lt;br /&gt;
$(7, 18, 13, 1, 0)$,&lt;br /&gt;
$(7, 18, 15, 0, 0)$,&lt;br /&gt;
$(7, 19, 9, 3, 0)$,&lt;br /&gt;
$(7, 20, 6, 4, 0)$,&lt;br /&gt;
$(7, 20, 11, 2, 0)$,&lt;br /&gt;
$(7, 20, 12, 1, 0)$,&lt;br /&gt;
$(7, 20, 14, 0, 0)$,&lt;br /&gt;
$(7, 21, 8, 2, 0)$,&lt;br /&gt;
$(7, 21, 10, 1, 0)$,&lt;br /&gt;
$(7, 21, 12, 0, 0)$,&lt;br /&gt;
$(7, 22, 9, 1, 0)$,&lt;br /&gt;
$(7, 22, 11, 0, 0)$,&lt;br /&gt;
$(7, 23, 6, 3, 0)$,&lt;br /&gt;
$(7, 23, 7, 1, 0)$,&lt;br /&gt;
$(7, 23, 10, 0, 0)$,&lt;br /&gt;
$(7, 24, 6, 2, 0)$,&lt;br /&gt;
$(7, 24, 9, 0, 0)$,&lt;br /&gt;
$(7, 25, 6, 1, 0)$,&lt;br /&gt;
$(7, 25, 8, 0, 0)$,&lt;br /&gt;
$(7, 26, 3, 1, 0)$,&lt;br /&gt;
$(7, 28, 6, 0, 0)$,&lt;br /&gt;
$(7, 29, 3, 0, 0)$,&lt;br /&gt;
$(7, 30, 1, 0, 0)$,&lt;br /&gt;
$(8, 8, 0, 8, 0)$,&lt;br /&gt;
$(8, 8, 9, 7, 0)$,&lt;br /&gt;
$(8, 8, 12, 6, 0)$,&lt;br /&gt;
$(8, 9, 9, 4, 1)$,&lt;br /&gt;
$(8, 9, 10, 6, 0)$,&lt;br /&gt;
$(8, 9, 12, 3, 1)$,&lt;br /&gt;
$(8, 9, 12, 5, 0)$,&lt;br /&gt;
$(8, 9, 13, 4, 0)$,&lt;br /&gt;
$(8, 9, 15, 3, 0)$,&lt;br /&gt;
$(8, 10, 7, 4, 1)$,&lt;br /&gt;
$(8, 10, 10, 3, 1)$,&lt;br /&gt;
$(8, 10, 10, 5, 0)$,&lt;br /&gt;
$(8, 10, 12, 2, 1)$,&lt;br /&gt;
$(8, 10, 12, 4, 0)$,&lt;br /&gt;
$(8, 10, 13, 3, 0)$,&lt;br /&gt;
$(8, 10, 15, 2, 0)$,&lt;br /&gt;
$(8, 11, 6, 4, 1)$,&lt;br /&gt;
$(8, 11, 9, 6, 0)$,&lt;br /&gt;
$(8, 11, 10, 2, 1)$,&lt;br /&gt;
$(8, 11, 11, 4, 0)$,&lt;br /&gt;
$(8, 12, 7, 6, 0)$,&lt;br /&gt;
$(8, 12, 9, 3, 1)$,&lt;br /&gt;
$(8, 12, 9, 5, 0)$,&lt;br /&gt;
$(8, 12, 10, 4, 0)$,&lt;br /&gt;
$(8, 12, 12, 1, 1)$,&lt;br /&gt;
$(8, 12, 14, 2, 0)$,&lt;br /&gt;
$(8, 12, 16, 1, 0)$,&lt;br /&gt;
$(8, 12, 18, 0, 0)$,&lt;br /&gt;
$(8, 13, 7, 3, 1)$,&lt;br /&gt;
$(8, 13, 7, 5, 0)$,&lt;br /&gt;
$(8, 13, 9, 2, 1)$,&lt;br /&gt;
$(8, 13, 12, 0, 1)$,&lt;br /&gt;
$(8, 13, 12, 3, 0)$,&lt;br /&gt;
$(8, 14, 0, 7, 0)$,&lt;br /&gt;
$(8, 14, 6, 6, 0)$,&lt;br /&gt;
$(8, 14, 7, 2, 1)$,&lt;br /&gt;
$(8, 14, 8, 1, 1)$,&lt;br /&gt;
$(8, 14, 9, 4, 0)$,&lt;br /&gt;
$(8, 14, 11, 0, 1)$,&lt;br /&gt;
$(8, 14, 11, 3, 0)$,&lt;br /&gt;
$(8, 14, 13, 2, 0)$,&lt;br /&gt;
$(8, 14, 15, 1, 0)$,&lt;br /&gt;
$(8, 14, 17, 0, 0)$,&lt;br /&gt;
$(8, 15, 6, 3, 1)$,&lt;br /&gt;
$(8, 15, 6, 5, 0)$,&lt;br /&gt;
$(8, 15, 7, 1, 1)$,&lt;br /&gt;
$(8, 16, 0, 6, 0)$,&lt;br /&gt;
$(8, 16, 4, 3, 1)$,&lt;br /&gt;
$(8, 16, 4, 5, 0)$,&lt;br /&gt;
$(8, 16, 6, 2, 1)$,&lt;br /&gt;
$(8, 16, 8, 4, 0)$,&lt;br /&gt;
$(8, 16, 9, 0, 1)$,&lt;br /&gt;
$(8, 16, 10, 3, 0)$,&lt;br /&gt;
$(8, 16, 12, 2, 0)$,&lt;br /&gt;
$(8, 16, 14, 1, 0)$,&lt;br /&gt;
$(8, 16, 16, 0, 0)$,&lt;br /&gt;
$(8, 17, 0, 5, 0)$,&lt;br /&gt;
$(8, 17, 3, 4, 0)$,&lt;br /&gt;
$(8, 17, 8, 3, 0)$,&lt;br /&gt;
$(8, 17, 10, 2, 0)$,&lt;br /&gt;
$(8, 17, 12, 1, 0)$,&lt;br /&gt;
$(8, 17, 14, 0, 0)$,&lt;br /&gt;
$(8, 18, 9, 2, 0)$,&lt;br /&gt;
$(8, 18, 11, 1, 0)$,&lt;br /&gt;
$(8, 18, 12, 0, 0)$,&lt;br /&gt;
$(8, 19, 6, 3, 0)$,&lt;br /&gt;
$(8, 19, 8, 2, 0)$,&lt;br /&gt;
$(8, 20, 0, 4, 0)$,&lt;br /&gt;
$(8, 20, 4, 3, 0)$,&lt;br /&gt;
$(8, 20, 7, 2, 0)$,&lt;br /&gt;
$(8, 20, 9, 1, 0)$,&lt;br /&gt;
$(8, 20, 11, 0, 0)$,&lt;br /&gt;
$(8, 21, 4, 2, 0)$,&lt;br /&gt;
$(8, 21, 7, 1, 0)$,&lt;br /&gt;
$(8, 22, 3, 2, 0)$,&lt;br /&gt;
$(8, 22, 6, 1, 0)$,&lt;br /&gt;
$(8, 22, 9, 0, 0)$,&lt;br /&gt;
$(8, 23, 0, 3, 0)$,&lt;br /&gt;
$(8, 23, 4, 1, 0)$,&lt;br /&gt;
$(8, 24, 0, 2, 0)$,&lt;br /&gt;
$(8, 24, 3, 1, 0)$,&lt;br /&gt;
$(8, 24, 8, 0, 0)$,&lt;br /&gt;
$(8, 25, 1, 1, 0)$,&lt;br /&gt;
$(8, 25, 6, 0, 0)$,&lt;br /&gt;
$(8, 26, 0, 1, 0)$,&lt;br /&gt;
$(8, 26, 4, 0, 0)$,&lt;br /&gt;
$(8, 28, 3, 0, 0)$,&lt;br /&gt;
$(8, 32, 0, 0, 0)$,&lt;br /&gt;
$(9, 8, 10, 4, 0)$,&lt;br /&gt;
$(9, 9, 9, 4, 0)$,&lt;br /&gt;
$(9, 9, 12, 3, 0)$,&lt;br /&gt;
$(9, 10, 8, 4, 0)$,&lt;br /&gt;
$(9, 10, 10, 3, 0)$,&lt;br /&gt;
$(9, 10, 12, 2, 0)$,&lt;br /&gt;
$(9, 10, 13, 1, 0)$,&lt;br /&gt;
$(9, 10, 15, 0, 0)$,&lt;br /&gt;
$(9, 11, 11, 2, 0)$,&lt;br /&gt;
$(9, 12, 7, 4, 0)$,&lt;br /&gt;
$(9, 12, 9, 3, 0)$,&lt;br /&gt;
$(9, 12, 12, 1, 0)$,&lt;br /&gt;
$(9, 12, 14, 0, 0)$,&lt;br /&gt;
$(9, 13, 7, 3, 0)$,&lt;br /&gt;
$(9, 13, 10, 2, 0)$,&lt;br /&gt;
$(9, 14, 9, 2, 0)$,&lt;br /&gt;
$(9, 14, 11, 1, 0)$,&lt;br /&gt;
$(9, 14, 13, 0, 0)$,&lt;br /&gt;
$(9, 15, 6, 3, 0)$,&lt;br /&gt;
$(9, 16, 0, 4, 0)$,&lt;br /&gt;
$(9, 16, 4, 3, 0)$,&lt;br /&gt;
$(9, 16, 8, 2, 0)$,&lt;br /&gt;
$(9, 16, 10, 1, 0)$,&lt;br /&gt;
$(9, 16, 12, 0, 0)$,&lt;br /&gt;
$(9, 17, 3, 3, 0)$,&lt;br /&gt;
$(9, 17, 6, 2, 0)$,&lt;br /&gt;
$(9, 17, 8, 1, 0)$,&lt;br /&gt;
$(9, 17, 10, 0, 0)$,&lt;br /&gt;
$(9, 18, 2, 3, 0)$,&lt;br /&gt;
$(9, 18, 4, 2, 0)$,&lt;br /&gt;
$(9, 18, 7, 1, 0)$,&lt;br /&gt;
$(9, 18, 9, 0, 0)$,&lt;br /&gt;
$(9, 19, 0, 3, 0)$,&lt;br /&gt;
$(9, 19, 3, 2, 0)$,&lt;br /&gt;
$(9, 19, 6, 1, 0)$,&lt;br /&gt;
$(9, 20, 1, 2, 0)$,&lt;br /&gt;
$(9, 20, 5, 1, 0)$,&lt;br /&gt;
$(9, 20, 8, 0, 0)$,&lt;br /&gt;
$(9, 21, 4, 1, 0)$,&lt;br /&gt;
$(9, 21, 6, 0, 0)$,&lt;br /&gt;
$(9, 22, 1, 1, 0)$,&lt;br /&gt;
$(9, 22, 5, 0, 0)$,&lt;br /&gt;
$(9, 24, 4, 0, 0)$,&lt;br /&gt;
$(9, 25, 2, 0, 0)$,&lt;br /&gt;
$(9, 28, 0, 0, 0)$,&lt;br /&gt;
$(10, 8, 6, 4, 0)$,&lt;br /&gt;
$(10, 8, 8, 3, 0)$,&lt;br /&gt;
$(10, 9, 7, 3, 0)$,&lt;br /&gt;
$(10, 9, 10, 2, 0)$,&lt;br /&gt;
$(10, 9, 11, 1, 0)$,&lt;br /&gt;
$(10, 9, 13, 0, 0)$,&lt;br /&gt;
$(10, 10, 5, 4, 0)$,&lt;br /&gt;
$(10, 10, 9, 2, 0)$,&lt;br /&gt;
$(10, 10, 12, 0, 0)$,&lt;br /&gt;
$(10, 11, 6, 3, 0)$,&lt;br /&gt;
$(10, 12, 4, 4, 0)$,&lt;br /&gt;
$(10, 12, 5, 3, 0)$,&lt;br /&gt;
$(10, 12, 7, 2, 0)$,&lt;br /&gt;
$(10, 12, 10, 1, 0)$,&lt;br /&gt;
$(10, 12, 11, 0, 0)$,&lt;br /&gt;
$(10, 13, 6, 2, 0)$,&lt;br /&gt;
$(10, 13, 8, 1, 0)$,&lt;br /&gt;
$(10, 13, 10, 0, 0)$,&lt;br /&gt;
$(10, 14, 3, 3, 0)$,&lt;br /&gt;
$(10, 14, 5, 2, 0)$,&lt;br /&gt;
$(10, 14, 9, 0, 0)$,&lt;br /&gt;
$(10, 15, 2, 3, 0)$,&lt;br /&gt;
$(10, 15, 7, 1, 0)$,&lt;br /&gt;
$(10, 16, 4, 2, 0)$,&lt;br /&gt;
$(10, 16, 6, 1, 0)$,&lt;br /&gt;
$(10, 16, 8, 0, 0)$,&lt;br /&gt;
$(10, 17, 4, 1, 0)$,&lt;br /&gt;
$(10, 17, 6, 0, 0)$,&lt;br /&gt;
$(10, 18, 2, 1, 0)$,&lt;br /&gt;
$(10, 18, 5, 0, 0)$,&lt;br /&gt;
$(10, 20, 4, 0, 0)$,&lt;br /&gt;
$(10, 21, 2, 0, 0)$,&lt;br /&gt;
$(10, 22, 1, 0, 0)$,&lt;br /&gt;
$(10, 24, 0, 0, 0)$,&lt;br /&gt;
$(11, 4, 6, 4, 0)$,&lt;br /&gt;
$(11, 6, 5, 4, 0)$,&lt;br /&gt;
$(11, 7, 6, 3, 0)$,&lt;br /&gt;
$(11, 8, 4, 4, 0)$,&lt;br /&gt;
$(11, 8, 5, 3, 0)$,&lt;br /&gt;
$(11, 9, 6, 2, 0)$,&lt;br /&gt;
$(11, 9, 8, 1, 0)$,&lt;br /&gt;
$(11, 9, 10, 0, 0)$,&lt;br /&gt;
$(11, 10, 3, 3, 0)$,&lt;br /&gt;
$(11, 10, 5, 2, 0)$,&lt;br /&gt;
$(11, 10, 9, 0, 0)$,&lt;br /&gt;
$(11, 11, 2, 3, 0)$,&lt;br /&gt;
$(11, 11, 7, 1, 0)$,&lt;br /&gt;
$(11, 12, 4, 2, 0)$,&lt;br /&gt;
$(11, 12, 6, 1, 0)$,&lt;br /&gt;
$(11, 12, 8, 0, 0)$,&lt;br /&gt;
$(11, 13, 4, 1, 0)$,&lt;br /&gt;
$(11, 13, 6, 0, 0)$,&lt;br /&gt;
$(11, 14, 2, 1, 0)$,&lt;br /&gt;
$(11, 14, 5, 0, 0)$,&lt;br /&gt;
$(11, 16, 4, 0, 0)$,&lt;br /&gt;
$(11, 17, 2, 0, 0)$,&lt;br /&gt;
$(11, 18, 1, 0, 0)$,&lt;br /&gt;
$(11, 20, 0, 0, 0)$,&lt;br /&gt;
$(12, 4, 3, 3, 0)$,&lt;br /&gt;
$(12, 6, 2, 3, 0)$,&lt;br /&gt;
$(12, 6, 5, 2, 0)$,&lt;br /&gt;
$(12, 6, 7, 1, 0)$,&lt;br /&gt;
$(12, 6, 9, 0, 0)$,&lt;br /&gt;
$(12, 8, 4, 2, 0)$,&lt;br /&gt;
$(12, 8, 6, 1, 0)$,&lt;br /&gt;
$(12, 8, 8, 0, 0)$,&lt;br /&gt;
$(12, 9, 4, 1, 0)$,&lt;br /&gt;
$(12, 9, 6, 0, 0)$,&lt;br /&gt;
$(12, 10, 2, 1, 0)$,&lt;br /&gt;
$(12, 10, 5, 0, 0)$,&lt;br /&gt;
$(12, 12, 4, 0, 0)$,&lt;br /&gt;
$(12, 13, 2, 0, 0)$,&lt;br /&gt;
$(12, 14, 1, 0, 0)$,&lt;br /&gt;
$(12, 16, 0, 0, 0)$,&lt;br /&gt;
$(13, 6, 5, 0, 0)$,&lt;br /&gt;
$(13, 8, 4, 0, 0)$,&lt;br /&gt;
$(13, 9, 2, 0, 0)$,&lt;br /&gt;
$(13, 10, 1, 0, 0)$,&lt;br /&gt;
$(13, 12, 0, 0, 0)$,&lt;br /&gt;
$(14, 4, 3, 0, 0)$,&lt;br /&gt;
$(14, 5, 2, 0, 0)$,&lt;br /&gt;
$(14, 6, 1, 0, 0)$,&lt;br /&gt;
$(14, 8, 0, 0, 0)$,&lt;br /&gt;
$(15, 4, 0, 0, 0)$,&lt;br /&gt;
$(16, 0, 0, 0, 0)$}}&lt;br /&gt;
\caption{The Pareto-optimal statistics of Moser sets in $[3]^4$.  This table can also be found at {\tt http://spreadsheets.google.com/ccc?key=rwXB\_Rn3Q1Zf5yaeMQL-RDw}}&lt;br /&gt;
\label{table4}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This was computed by computer search as follows.  First, one observed that if $(a,b,c,d,e)$ was Pareto-optimal, then $a\geq 3$.  To see this, it suffices to show that for any Moser set $A \subset [3]^4$ with $a(A)=0$, it is possible to add three points from $S_{4,4}$ to $A$ and still have a Moser set.  To show this, suppose first that $A$ contains a point from $S_{1,4}$, such as $2221$. Then $A$ must omit either $2211$ or $2231$; without loss of generality we may assume that it omits $2211$. Similarly we may assume it omits $2121$ and $1221$. Then we can add $1131$, $1311$, $3111$ to $A$, as required. Thus we may assume that $A$ contains no points from $S_{1,4}$.  Now suppose that $A$ omits a point from $S_{2,4}$, such as $2211$. Then one can add $3333$, $3111$, $1311$ to $A$, as required. Thus we may assume that A contains all of $S_{2,4}$, which forces $A$ to omit $2222$, as well as at least one point from $S_{3,4}$, such as $2111$. But then $3111$, $1111$, $3333$ can be added to the set, a contradiction. &lt;br /&gt;
&lt;br /&gt;
Thus we only need to search through sets $A \subset [3]^4$ for which $|A \cap S_{4,4}| \geq 3$.  A straightforward computer search shows that up to the symmetries of the cube, there are $391$ possible choices for $A \cap S_{4,4}$.  For each such choice, we looped through all the possible values of the slices $A \cap 1***$ and $A \cap 3***$, i.e. all three-dimensional Moser sets which had the indicated intersection with $S_{3,3}$.  (For fixed $A \cap S_{4,4}$, the number of possibilities for $A \cap 1***$ ranges from $1$ to $87123$, and similarly for $A \cap 3***$).  For each pair of slices $A \cap 1***$ and $A \cap 3***$, we computed the lines connecting these two sets to see what subset of $2***$ was excluded from $A$; there are $2^{27}$ possible such exclusion sets.  We precomputed a lookup table that gave the Pareto-optimal statistics for $A \cap 2***$ for each such choice of exclusion set; using this lookup table for each choice of $A \cap 1***$ and $A \cap 3***$ and collating the results, we obtained the above list. On a linux cluster, the lookup table took 22 minutes to create, and the loop over the $A \cap 1***$ and $A \cap 3***$ slices took two hours, spread out over $391$ machines (one for each choice of $A \cap S_{4,4}$). Further details (including source code) can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=4D\_Moser\_brute\_force\_search}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this data, we have the following facts about the statistics of large Moser sets:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}\label{stat} Let $A \subset [3]^4$ be a Moser set with statistics $(a,b,c,d,e)$.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] If $|A| \geq 40$, then $e=0$.&lt;br /&gt;
\item[(ii)] If $|A| \geq 43$, then $d=0$.&lt;br /&gt;
\item[(iii)] If $|A| \geq 42$, then $d \leq 2$.&lt;br /&gt;
\item[(iv)] If $|A| \geq 41$, then $d \leq 3$.&lt;br /&gt;
\item[(v)] If $|A| \geq 40$, then $d \leq 6$.&lt;br /&gt;
\item[(vi)] If $|A| \geq 43$, then $c \geq 18$.&lt;br /&gt;
\item[(vii)] If $|A| \geq 42$, then $c \geq 12$.&lt;br /&gt;
\item[(viii)] If $|A| \geq 43$, then $b \geq 15$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{remark}  This proposition was first established by an integer program, see Appendix \ref{integer-sec}.  A computer-free proof can be found at \centerline{{\tt http://terrytao.files.wordpress.com/2009/06/polymath2.pdf}.}&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\subsection{Five dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{5,3}=124$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=125$.  &lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,f(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{fvan} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $f(A)$ is non-zero, then $A$ contains $22222$, then each of the $\frac{3^5-1}{2} = 121$ antipodal pairs in $[3]^5$ can have at most one point in $A$, leading to only $122$ points.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let us slice $[3]^5$ into three parallel slices, e.g. $1****, 2****, 3****$.  The intersection of $A$ with each of these slices has size at most $43$.  In particular, this implies that&lt;br /&gt;
\begin{equation}\label{boo}&lt;br /&gt;
 |A \cap 1****| + |A \cap 3****| = 125 - |A \cap 2****| \geq 82.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Thus at least one of $A \cap 1****$, $A \cap 3****$ has cardinality at least $41$; by Proposition \ref{stat}(iv) we conclude that&lt;br /&gt;
\begin{equation}\label{d13}&lt;br /&gt;
\min( d(1****), d(3****) ) \leq 3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Furthermore, equality can only hold in \eqref{d13} if $A \cap 1****$, $A \cap 3****$ both have cardinality exactly $41$, in which case from Proposition \ref{stat}(iv) again we must have&lt;br /&gt;
\begin{equation}\label{d13a}&lt;br /&gt;
d(1****)=d(3****)=3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Of course, we have a similar result for permutations.&lt;br /&gt;
&lt;br /&gt;
Now we improve the bound $|A \cap 2****| \leq 43$:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $|A \cap 2****| \leq 41$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose first that $|A \cap 2****|=43$.  Let $A&#039; \subset [3]^4$ be the subset of $[3]^4$ corresponding to $A \cap 2****$, thus $A&#039;$ is a Moser set of cardinality $43$.  By Proposition \ref{stat}(vi), $c(A&#039;) \geq 18$.  By Lemma \ref{dci}, the sum of the $c(V)$, where $V$ ranges over the eight side slices of $[3]^4$, is therefore at least $36$.  By the pigeonhole principle, we may thus find two opposing side slices, say $1***$ and $3***$, with $c(1***)+c(3****) \geq 9$.  Since $c(1***), c(3***)$ cannot exceed $6$, we thus have $c(1***), c(3***) \geq 3$, with at least one of $c(1***), c(3***)$ being at least $5$.  Passing back to $A$, this implies that $d(*1***), d(*3***) \geq 3$, with at least one of $d(*1***), d(*3***)$ being at least $5$.  But this contradicts \eqref{d13} together with the refinement \eqref{d13a}.&lt;br /&gt;
&lt;br /&gt;
We have just shown that $|A \cap 2****| \leq 42$; we can thus improve \eqref{boo} to&lt;br /&gt;
$$ |A \cap 1****| + |A \cap 3****| \geq 83.$$&lt;br /&gt;
Combining this with Proposition \ref{stat}(ii)-(v) we see that&lt;br /&gt;
\begin{equation}\label{d13-6}&lt;br /&gt;
 d(1****)+d(3****) \leq 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
with equality only if $|A \cap 2****|=42$, and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
Now let $A&#039;$ be defined as before.  Then we have&lt;br /&gt;
$$ c(1***) + c(3***) \leq 6$$&lt;br /&gt;
and similarly for permutations.  Applying Lemma \ref{dci}, this implies that $c(2****) = c(A&#039;) \leq 12$.&lt;br /&gt;
&lt;br /&gt;
Now suppose for contradiction that $|A&#039;|=|A \cap 2****|=42$.  Then by Proposition \ref{stat}(vii) we have &lt;br /&gt;
\begin{equation}\label{coo-1}&lt;br /&gt;
c(2****) = 12; &lt;br /&gt;
\end{equation}&lt;br /&gt;
applying Lemma \ref{dci} again, this forces $c(1***)+c(3***)=6$ and similarly for permutations, which then implies that&lt;br /&gt;
\begin{equation}\label{doo}&lt;br /&gt;
d(*1***)+d(*3***) = d(**1**)+d(**3**) = d(***1*)+d(***3*) = d(****1)+d(****3) = 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
and hence&lt;br /&gt;
$$ |A \cap *2***| = |A \cap **2**| = |A \cap ***2*| = |A \cap ****2| = 42$$&lt;br /&gt;
and thus&lt;br /&gt;
\begin{equation}\label{coo-2}&lt;br /&gt;
c(*2***) = c(**2**) = c(***2*) = c(****2) = 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Combining \eqref{coo-1}, \eqref{doo}, \eqref{coo-2} we conclude that&lt;br /&gt;
$$ d(1****)+d(3****) = 16,$$&lt;br /&gt;
contradicting \eqref{d13-6}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
With this proposition, the bound \eqref{boo} now improves to&lt;br /&gt;
\begin{equation}\label{84}&lt;br /&gt;
|A \cap 1****| + |A \cap 3****| \geq 84&lt;br /&gt;
\end{equation}&lt;br /&gt;
and in particular&lt;br /&gt;
\begin{equation}\label{41}&lt;br /&gt;
|A \cap 1****|, |A \cap 3****| \geq 41.&lt;br /&gt;
\end{equation}&lt;br /&gt;
from this and Proposition \ref{stat}(ii)-(iv) we now have&lt;br /&gt;
\begin{equation}\label{d13-improv}&lt;br /&gt;
 d(1****)+d(3****) \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{evan} $e(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From \eqref{84}, the intersection of $A$ with any side slice has cardinality at least $41$, and thus by Proposition \ref{stat}(i) such a side slice has an $e$-statistic of zero.  The claim then follows from Lemma \ref{dci}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We need a technical lemma:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{tech} Let $B \subset S_{5,5}$.  Then there exist at least $|B|-4$ pairs of strings in $B$ which differ in exactly two positions.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} The first non-vacuous case is $|B|=5$.  It suffices to establish this case, as the higher cases then follow by induction (locating a pair of the desired form, then deleting one element of that pair from $B$).&lt;br /&gt;
&lt;br /&gt;
Suppose for contradiction that one can find a $5$-element set $B \subset S_{5,5}$ such that no two strings in $B$ differ in exactly two positions.  Recall that we may split $S_{5,5}=S_{5,5}^e \cup S_{5,5}^o$, where $S_{5,5}^e$ are those strings with an even number of $1$&#039;s, and $S_{5,5}^o$ are those strings with an odd number of $1$&#039;s.  By the pigeonhole principle and symmetry we may assume $B$ has at least three elements in $S_{5,5}^o$.  Without loss of generality, we can take one of them to be $11111$, thus excluding all elements in $S_{5,5}^o$ with exactly two $3$s, leaving only the elements with exactly four $3$s.  But any two of them differ in exactly two positions, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now improve the trivial bound $c(A) \leq 80$:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Non-maximal $c$]\label{cmax} $c(A) \leq 79$.  If $a(A) \geq 7$, then $c(A) \leq 78$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $c(A)=80$, then $A$ contains all of $S_{3,5}$, which then implies that no two elements in $A \cap S_{5,5}$ can differ in exactly two places.  It also implies (from \eqref{alpha-1}) that $d(A)$ must vanish, and that $b(A)$ is at most $40$. By Lemma \ref{tech}, we also have that $a(A) = |A \cap S_{5,5}|$ is at most $4$.  Thus $|A| \leq 4 + 40 + 80 + 0 + 0 = 124$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $a(A) \geq 7$.  Then by Lemma \ref{tech} there are at least three pairs in $A \cap S_{5,5}$ that differ in exactly two places.  Each such pair eliminates one point from $A \cap S_{3,5}$; but each point in $S_{3,5}$ can be eliminated by at most two such pairs, and so we have at least two points eliminated from $A \cap S_{3,5}$, i.e. $c(A) \leq 78$ as required.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Next, we rewrite the quantity $125=|A|$ in terms of side slices.  From Lemmas \ref{fvan}, \ref{evan} we have&lt;br /&gt;
$$ a(A) + b(A) + c(A) + d(A) = 125$$&lt;br /&gt;
and hence by Lemma \ref{dci}, the quantity&lt;br /&gt;
$$ s(V) := a(V) + \frac{5}{4} b(V) + \frac{5}{3} c(V) + \frac{5}{2} d(V) - \frac{125}{2},$$&lt;br /&gt;
where $V$ ranges over side slices, has an average value of zero.  &lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Large values of $s(V)$]\label{suv}  For all side slices, we have $s(V) \leq 1/2$.  Furthermore, we have $s(V) &amp;lt; -1/2$ unless the statistics $(a(V), b(V), c(V), d(V), e(V))$ are of one of the following four cases:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Type 1) $(a(V),b(V),c(V),d(V),e(V)) = (2,16,24,0,0)$ (and $s(V) = -1/2$ and $|A \cap V| = 42$);&lt;br /&gt;
\item (Type 2) $(a(V),b(V),c(V),d(V),e(V)) = (4,16,23,0,0)$ (and $s(V) = -1/6$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 3) $(a(V),b(V),c(V),d(V),e(V)) = (4,15,24,0,0)$ (and $s(V) = 1/4$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 4) $(a(V),b(V),c(V),d(V),e(V)) = (3,16,24,0,0)$ (and $s(V) = 1/2$ and $|A \cap V| = 43$);&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $V$ be a side slice.  From \eqref{41} we have&lt;br /&gt;
$$ 41 \leq a(V)+b(V)+c(V)+d(V) = |A \cap V| \leq 43.$$&lt;br /&gt;
First suppose that $|A \cap V| = 43$, then from Proposition \ref{stat}(ii), (viii), $d(V)=0$ and $b(V) \geq 15$.&lt;br /&gt;
Also, we have the trivial bound $c(V) \leq 24$, together with the inequality&lt;br /&gt;
$$ 3b(V) + 2c(V) \leq 96$$&lt;br /&gt;
from \eqref{alpha-1}.  To exploit these facts, we rewrite $s(V)$ as&lt;br /&gt;
$$ s(V) = \frac{1}{2} - \frac{1}{2}( 24 - c(V) ) - \frac{1}{12} (96-3b(V)-2c(V)).$$&lt;br /&gt;
Thus $s(V) \leq 1/2$ in this case.  If $s(V) \geq -1/2$, then&lt;br /&gt;
$$ 6 (24-c(V)) + (96-3b(V)-2c(V)) \leq 12,$$&lt;br /&gt;
which together with the inequalities $b(V) \leq 15$, $c(V) \leq 24$, $3b(V)+2c(V) \leq 96$ we conclude that $(b(V),c(V))$ must be one of $(16,24)$, $(15, 24)$, $(16, 23)$, $(15, 23)$.  The first three possibilities lead to Types 4,3,2 respectively.  The fourth type would lead to $(a(V),b(V),c(V),d(V),e(V)) = (5,15,23,0,0)$, but this contradicts \eqref{eleven}.&lt;br /&gt;
&lt;br /&gt;
Next, suppose $|A \cap V| = 42$, so by Proposition \ref{stat}(iii) we have $d(V) \leq 2$.  From \eqref{alpha-1} we have&lt;br /&gt;
\begin{equation}\label{2cd}&lt;br /&gt;
2c(V) + 3d(V) \leq 48&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from \eqref{alpha-2} we have&lt;br /&gt;
\begin{equation}\label{3cd}&lt;br /&gt;
3b(V)+2c(V)+3d(V) \leq 96&lt;br /&gt;
\end{equation}&lt;br /&gt;
and so we can rewrite $s(V)$ as&lt;br /&gt;
\begin{equation}\label{sv2}&lt;br /&gt;
s(V) = -\frac{1}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V).&lt;br /&gt;
\end{equation}&lt;br /&gt;
This already gives $s(V) \leq 1/2$.  If $d(V)=0$, then $s(V) \leq -1/2$, with equality only in Type 1.  If $d(V)=1$, then the set $A&#039; \subset [3]^4$ corresponding to $A \cap V$ contains a point in $S_{3,4}$, which without loss of generality we can take to be $2221$.  Considering the three lines $*221$, $2*21$, $22*1$, we see that at least three points in $S_{2,4}$ must be missing from $A&#039;$, thus $c(V) \leq 21$.  This forces $48-2c(V)-3d(V) \geq 3$, and so $s(V) &amp;lt; -3/4$.  Finally, if $d(V)=2$, then $A&#039;$ contains two points in $S_{3,4}$.  If they are antipodal (e.g. $2221$ and $2223$), the same argument as above shows that at least six points in $S_{2,4}$ are missing from $A&#039;$; if they are not antipodal (e.g. $2221$ and $2212$) then by considering the lines $*221$, $2*21$, $22*1$, $*212$, $2*12$ we see that five points are missing.  Thus we have $c(V) \leq 19$, which forces $48-2c(V)-3d(V) \geq 4$.  This forces $s(V) \leq -1/2$, with equality only when $c(V)=19$ and $3b(V)+2c(V)+3d(V)=96$, but this forces $b(V)$ to be the non-integer $52/3$, a contradiction, which concludes the treatment of the $|A \cap V|=42$ case.&lt;br /&gt;
&lt;br /&gt;
Finally, suppose $|A \cap V| = 41$.  Using \eqref{2cd}, \eqref{3cd} as before we have&lt;br /&gt;
\begin{equation}\label{sv3}&lt;br /&gt;
 s(V) = -\frac{3}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V),&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from Proposition \ref{stat}(vi) we have $d(V) \leq 3$.  This already gives $s(V) \leq 0$, and $s(V) \leq -1$ when $d(V)=1$.  In order to have $s(V) \geq -1/2$, we must then have $d(V)=2$ or $d(V)=3$.  But then the arguments of the preceding paragraph give $48-2c(V)-3d(V) \geq 4$, and so $s(V) \leq -1$ in this case.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Since the $s(V)$ average to zero, by the pigeonhole principle we may find two opposing side slices (e.g. $1****$ and $3****$), whose total $s$-value is non-negative.  Actually we can do a little better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{side-off} There exists two opposing side slices whose total $s$-value is strictly positive.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If this is not the case, then we must have $s(1****)+s(3****)=0$ and similarly for permutations.  Using Proposition \ref{suv} we thus see that for every opposing pair of side slices, one is Type 1 and one is Type 4.  In particular $c(V)=24$ for all side slices $V$.  But then by Lemma \ref{dci} we have $c(A)=80$, contradicting Lemma \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let $V, V&#039;$ be the side slices in Lemma \ref{side-off}&lt;br /&gt;
By Proposition \ref{suv}, the $V, V&#039;$ slices must then be either Type 2, Type 3, or Type 4, and they cannot both be Type 2.  Since $a(A) = a(V)+a(V&#039;)$, we conclude&lt;br /&gt;
\begin{equation}\label{amix}&lt;br /&gt;
6 \leq a(A) \leq 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
In a similar spirit, we have&lt;br /&gt;
$$ c(V) + c(V&#039;) \leq 23+24.$$&lt;br /&gt;
On the other hand, by considering the $24$ lines connecting $c$-points of $V, V&#039;$ to $c$-points of the centre slice $W$ between $V$ and $V&#039;$, each of which contains at most two points in $A$, we have&lt;br /&gt;
$$ c(V) + c(W) + c(V&#039;) \leq 24 \times 2.$$&lt;br /&gt;
Thus $c(W) \leq 1$; since&lt;br /&gt;
$$ d(A) = d(V) + d(V&#039;) + c(W)$$&lt;br /&gt;
we conclude from Proposition \ref{suv} that $d(A) \leq 1$.  Actually we can do better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $d(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that $d(A)=1$; without loss of generality we may take $11222 \in A$.  This implies that $d(1****)=d(*1***)=1$.  Also, by the above discussion, $c(**1**)$ and $c(**3**)$ cannot both be $24$, so by Proposition \ref{suv}, $s(**1**)+s(**3**) \leq 1/3$; similarly&lt;br /&gt;
$s(***1*)+s(***3*) \leq 1/3$ and $s(****1)+s(****3) \leq 1/3$.  Since the $s$ average to zero, we see from the pigeonhole principle that either $s(1****)+s(3****) \geq -1/2$ or $s(*1***)+s(*3***) \geq -1/2$.  We may assume by symmetry that &lt;br /&gt;
\begin{equation}\label{star-2}&lt;br /&gt;
s(1****)+s(3****) \geq -1/2.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Since $s(3****) \leq 1/2$ by Proposition \ref{suv}, we conclude that&lt;br /&gt;
\begin{equation}\label{star}&lt;br /&gt;
 s(1****) \geq -1.&lt;br /&gt;
\end{equation}&lt;br /&gt;
If $|A \cap 1****|=41$, then by \eqref{sv3} we have&lt;br /&gt;
$$ s(1****) = -1 - \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
but the arguments in Proposition \ref{suv} give $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$, a contradiction.  So we must have $|A \cap 1****|=42$ (by Proposition \ref{stat}(ii) and \eqref{41}).  In that case, from \eqref{sv2} we have&lt;br /&gt;
$$ s(1****) = \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
while also having $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$.  Since $s(1****) \geq -1$ and $d(1****)=1$, we soon see that we must have $48 - 2c(1****) - 3d(1****) = 3$ and $96-3b(1****)-2c(1****)-3d(1****) \leq 3$, which forces $c(1****)=21$ and $b(1****)=16$ or $b(1****)=17$; thus the statistics of $1****$ are either $(4,16,21,1,0)$ or $(3,17,21,1,0)$.&lt;br /&gt;
&lt;br /&gt;
We first eliminate the $(3,17,21,1,0)$ case.  In this case $s(1****)$ is exactly $-1$.  Inspecting the proof of \eqref{star}, we conclude that $s(3****)$ must be $+1/2$ and that $s(**1**)+s(**3**)=1/3$.  From the former fact and Proposition \ref{suv} we see that $a(A) = a(1****)+a(3****)=3+3=6$; on the other hand, from the latter fact and Proposition \ref{suv} we have $a(A) = a(**1**)+a(**3**) = 4+3=7$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
So $1****$ has statistics $(4,16,21,1,0)$, which implies that $s(1****)=-3/4$ and $|A \cap 1****|=42$.  By \eqref{star-2} we conclude &lt;br /&gt;
\begin{equation}\label{s3}&lt;br /&gt;
s(3****) \geq 1/4,&lt;br /&gt;
\end{equation} &lt;br /&gt;
which by Proposition \ref{suv} implies that $|A \cap 3****|=43$, and hence $|A \cap 2****|=40$.  On the other hand, since $e(A)=f(A)=0$ and $d(A)=1$, with the latter being caused by $11222$, we see that $c(2****)=d(2****)=e(2****)=0$.  From \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$, and we also have the trivial inequality $b(2****) \leq 32$; these inequalities are only compatible if $2****$ has statistics $(8,32,0,0,0)$, thus $A \cap 2****$ contains $S_{2,5} \cap 2****$.&lt;br /&gt;
&lt;br /&gt;
If $a(3****)=4$, then $a(A)=a(1****)+a(3****)=8$, which by Proposition \ref{suv} implies that $s(**1**)+s(**3**)$ cannot exceed $1/12$, and similarly for permutations.  On the other hand, from Proposition \ref{suv} $s(**1**)+s(**3**)$ cannot exceed $-3/4 + 1/4 = -1/2$, and so the average value of $s$ cannot be zero, a contradiction.  Thus $a(3****) \neq 4$, which by \eqref{s3} and Proposition \ref{suv} implies that $**3**$ has statistics $(3,16,24,0,0)$.&lt;br /&gt;
&lt;br /&gt;
In particular, $A$ contains $16$ points from $3**** \cap S_{1,5}$ and all of $3**** \cap S_{2,5}$.  As a consequence, no pair of the $16$ points in $A \cap 3**** \cap S_{1,5}$ can differ in only one coordinate; partitioning the $32$-point set $3**** \cap S_{1,5}$ into $16$ such pairs, we conclude that every such pair contains exactly one element of $A$.  We conclude that $A \cap 3**** \cap S_{1,5}$ is equal to either $3**** \cap S_{1,5}^e$ or $3**** \cap S_{1,5}^o$.&lt;br /&gt;
&lt;br /&gt;
On the other hand, $A$ contains all of $2**** \cap S_{2,5}$, and exactly sixteen points from $1**** \cap S_{1,5}$.  Considering the vertical lines $*xyzw$ where $xyzw \in S_{1,4}$, we conclude that $A \cap 1**** \cap S_{1,5}$ is either equal to $1**** \cap S_{1,5}^o$ or $1**** \cap S_{1,5}^e$.&lt;br /&gt;
But either case is incompatible with the fact that $A$ contains $11222$ (consider either the line $11xx2$ or $11x\overline{x}2$, where $x=1,2,3$ and $\overline{x}=4-x$), obtaining the required contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now eliminate all but three cases for the statistics of $A$:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Statistics of $A$]  The statistics $(a(A),b(A),c(A),d(A),e(A),f(A))$ of $A$ must be one of the following three tuples:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Case 1) $(6,40,79,0,0)$;&lt;br /&gt;
\item (Case 2) $(7,40,78,0,0)$;&lt;br /&gt;
\item (Case 3) $(8,39,78,0,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Since $d(A)=e(A)=f(A)=0$, we have&lt;br /&gt;
$$ c(2****)=d(2****)=e(2****)=0.$$&lt;br /&gt;
On the other hand, from \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$ as well as the trivial inequality $b(2****) \leq 24$, and also we have&lt;br /&gt;
$$ |A \cap 2****| = 125 - |A \cap 1****| - |A \cap 3****| \geq 125 - 43 - 43 = 39.$$&lt;br /&gt;
Putting all this together, we see that the only possible statistics for $2****$ are $(8,32,0,0,0)$, $(7,32,0,0,0)$, or $(8,31,0,0,0)$.  In particular, $7 \leq a(2****) \leq 8$ and $31 \leq b(2****) \leq 32$, and similarly for permutations. Applying Lemma \ref{dci} we conclude that&lt;br /&gt;
$$ 35 \leq b(A) \leq 40$$&lt;br /&gt;
and&lt;br /&gt;
$$ 77.5 \leq c(A) \leq 80.$$&lt;br /&gt;
Combining this with the first part of Corollary \ref{cmax} we conclude that $c(A)$ is either $78$ or $79$.  From this and \eqref{amix} we see that the only cases that remain to be eliminated are $(7,39,79,0,0)$ and $(8,38,79,0,0)$, but these cases are incompatible with the second part of Corollary \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We now eliminate each of the three remaining cases in turn.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(6,40,79,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has six points.  By Lemma \ref{tech}, there are at least two pairs in this set which differ in two positions.  Their midpoints are eliminated from $A \cap S_{3,5}$.  But $A$ omits exactly one point from $S_{3,5}$, so these midpoints must be the same.  By symmetry, we may then assume that these two pairs are $(11111,11133)$ and $(11113,11131)$.  Thus the eliminated point in $S_{3,5}$ is $11122$, i.e. $A$ contains $S_{3,5} \backslash \{11122\}$.  Also, $A$ contains $\{11111,11133,11113,11131\}$ and thus must omit $\{11121, 11123, 11112, 11132\}$.&lt;br /&gt;
&lt;br /&gt;
Since $11322 \in A$, at most one of  $11312, 11332$ lie in $A$. By symmetry we may assume $11312 \not \in A$, thus there is a pair $(xy1z2, xy3z2)$ with $x,y,z = 1,3$ that is totally omitted from $A$, namely $(11112,11312)$. On the other hand, every other pair of this form can have at most one point in the $A$, thus there are at most seven points in $A$ of the form $xyzw2$ with $x,y,z,w = 1,3$. Similarly there are at most 8 points of the form $xyz2w$, or of $xy2zw$, $x2yzw$, $2xyzw$, leading to $b(A) \leq 7+8+8+8+8=39$, contradicting the statistic $b(A)=40$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(7,40,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has seven points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of the midpoints of these pairs must be the same; thus, as in the previous section, we may assume that $A$ contains $\{11111,11133,11113,11131\}$ and omits $\{11121, 11123, 11112, 11132\}$ and $11122$.&lt;br /&gt;
&lt;br /&gt;
Now consider the $160$ lines $\ell$ connecting two points in $S_{4,5}$ to one point in $S_{3,5}$ (i.e. $*2xyz$ and permutations, where $x,y,z=1,3$).  By double counting, the total sum of $|\ell \cap A|$ over all $160$ lines is $4b(A)+2c(A) = 316 = 158 \times 2$.  On the other hand, each of these lines contain at most two points in $A$, but two of them (namely $1112*$ and $1112*$) contain no points.  Thus we must have $|\ell \cap A|=2$ for the remaining $158$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Since $A$ omits $1112x$ and $111x2$ for $x=1,3$, we thus conclude (by considering the lines $11*2x$ and $11*x2$) that $A$ must contain $1132x$, $113x2$, $1312x$, and $131x2$.  Taking midpoints, we conclude that $A$ omits $11322$ and $13122$.  But together with $11122$ this implies that at least three points are missing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(8,39,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Now $A \cap S_{5,5}$ has eight points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of these pairs $(a,b), (c,d)$ must have the same midpoint $p$, and two other pairs $(a&#039;,b&#039;), (c&#039;,d&#039;)$ must have the same midpoint $p&#039;$, and $A$ contains $S_{3,5} \backslash \{p,p&#039;\}$.  As $p,p&#039;$ are distinct, the plane containing $a,b,c,d$ is distinct from the plane containing $a&#039;,b&#039;,c&#039;,d&#039;$.&lt;br /&gt;
&lt;br /&gt;
Again consider the $160$ lines $\ell$ from the previous section.  This time, the sum of the $|\ell \cap A|$ is $4b(A)+2c(A) = 312 = 156 \times 2$.&lt;br /&gt;
But the two lines in the plane of $a,b,c,d$ passing through $p$, and the two lines in the plane of $a&#039;,b&#039;,c&#039;,d&#039;$ passing through $p&#039;$, have no points; thus we must have $|\ell \cap A|=2$ for the remaining $156$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have $(a,b)=(11111,11133)$, $(c,d) = (11113,11131)$, thus $p = 11122$. By permuting the first three indices, we may assume that $p&#039;$ is not of the form $x2y2z, x2yz2, xy22z, xy2z2$ for any $x,y,z=1,3$. Then we have $1112x \not \in A$ and $1122x \in A$ for every $x=1,3$, so by the preceding paragraph we have $1132x \in A$; similarly for $113x2, 1312x, 131x2$. Taking midpoints, this implies that $13122, 11322 \not \in A$, but this (together with 11122) shows that at least three points aremissing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Six dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{6,3}=353$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=354$.&lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,g(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{g6} $g(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
  &lt;br /&gt;
\begin{proof} For any four-dimensional slice $V$ of $A$, define &lt;br /&gt;
$$S(V) := 15 a(V) + 5 b(V) + 5 c(V)/2 + 3d(V)/2 + e(V).$$&lt;br /&gt;
From Lemma \ref{dci} we see that $|A|$ is equal to $a(A)+b(A)$ plus the average of $S(V)$ where $V$ ranges over the twenty slices which are some permutation of the center slice $22****$.&lt;br /&gt;
&lt;br /&gt;
If $g(A)=1$, then $a(A) \leq 32$ and $b(A) \leq 96$ by \eqref{alpha-1}.  Meanwhile, $e(V)=g(A)=1$ for every center slice $V$, so from Lemma \ref{paretop-4}, one can show that $S(V) \leq 223.5$ for every such slice.  We conclude that $|A| \leq 351.5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
For any four-dimensional slice $V$ of $A$, define the \emph{defects} to be&lt;br /&gt;
$$ D(V) := 356 - [4a(V)+6b(V)+10c(V)+20d(V)+60e(V)].$$&lt;br /&gt;
Define a \emph{corner slice} to be one of the permutations or reflections of $11****$, thus there are $60$ corner slices.  From Lemma \ref{dci} we see that $356-|A|+f(A)=2+f(A)$ is the average of the defects of all the $60$ corner slices.  On the other hand, from Lemma \ref{paretop-4} and a straightforward computation, one concludes&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{defects}  Let $A$ be a four-dimensional Moser set.  Then $D(A) \geq 0$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $A$ has statistics $(6,12,18,4,0)$, then $D(A)=0$.&lt;br /&gt;
\item If $A$ has statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$, then $D(A)=4$.&lt;br /&gt;
\item For all other $A$, $D(A) \geq 6$.&lt;br /&gt;
\item If $a(A) = 4$, then $D(A) \geq 8$.&lt;br /&gt;
\item If $a(A) \geq 7$, then $D(A) \geq 16$.&lt;br /&gt;
\item If $a(A) \geq 8$, then $D(A) \geq 30$.&lt;br /&gt;
\item If $a(A) \geq 9$, then $D(A) \geq 86$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{family} to be a set of four parallel corner slices, thus there are $15$ families, which are all a permutation of $\{11****, 13****, 31****, 33**** \}$.  We refer to the family $\{11****, 13****, 31****, 33**** \}$ as $ab****$, and similarly define the family $a*b***$, etc.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{f6} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  For any four-dimensional slice $V$ of $A$, define&lt;br /&gt;
$$ s(V) := 12 a(V)+15 b(V)/2+20 c(V)/3+15 d(V)/2 + 12 e(V),$$&lt;br /&gt;
and define an \emph{edge slice} to be one of the $30$ permutations or reflections of $12****$.  From double counting we see that $|A|-a(A)$ is equal to the average of the $30$ values of $s(V)$ as $V$ ranges over edge slices.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{paretop-4} one can verify that $s(V) \leq 336$, and that $s(V) \leq 296 = 336-40$ if $e(V)=1$.  The number of edge slices $V$ for which $e(V)=1$ is equal to $5f(A)$, and so the average value of the $s(V)$ is at most $336 - \frac{40 \times 5}{30} f(A)$, and so&lt;br /&gt;
$$ |A| - a(A) \leq 336 - \frac{40 \times 5}{30} f(A)$$&lt;br /&gt;
which we can rearrange (using $|A|=354$) as&lt;br /&gt;
$$ a(A) \geq 18 + \frac{20}{3} f(A).$$&lt;br /&gt;
Suppose first that $f(A)=1$; then $a(A) \geq 25$.  This means that in any given family, one of the four corner slices has an $a$ value of at least $7$, and thus by Lemma \ref{defects} has a defect of at least $16$.  Thus the average defect is at least $4$; on the other hand, the average defect is $2+f(A)=3$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $f(A) \geq 2$; then $a(A) \geq 32$.   Then in any given family, there is a corner slice with an $a$ value at least $9$, or four slices with $a$ value at least $8$, leading to a total defect of at least $86$ by Lemma \ref{defects}.  Thus the average defect is at least $21.5$; on the other hand, the average defect is $2+f(A) \leq 2+12$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of the above lemma, we see that the average defect of all corner slices is $2$, or equivalently that the total defect of these slices is $120$.&lt;br /&gt;
&lt;br /&gt;
Call a corner slice \emph{good} if it has statistics $(6,12,18,4,0)$, and \emph{bad} otherwise.  Thus good slices have zero defect, and bad slices have defect at least four.  Since the average defect of the $60$ corner slices is $2$, there are at least $30$ good slices.&lt;br /&gt;
&lt;br /&gt;
One can describe the structure of the good slices completely:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{sixt}  The subset of $[3]^4$ consisting of the strings $1111, 1113, 3333, 1332, 1322, 1222, 3322$ and permutations is a Moser set with statistics $(6,12,18,4,0)$.  Conversely, every Moser set with statistics $(6,12,18,4,0)$ is of this form up to the symmetries of the cube $[3]^4$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified by computer.  By symmetry, one assumes 1222,2122,2212 and 2221 are in the set.  Then 18 of the 24 &#039;c&#039; points with two 2s must be included; it is quick to check that 1122 and permutations must be the six excluded.  Next, one checks that the only possible set of six &#039;a&#039; points with no 2s is 1111,1113,3333 and permutations.  Lastly, in a rather longer computation, one finds there is only possible set of twelve &#039;b&#039; points, that is points with one 2.  A computer-free proof can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Classification\_of\_\%286\%2C12\%2C18\%2C4\%2C0\%29\_sets}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this lemma, given any $x,y,z,w \in \{1,3\}$, there is a unique good Moser set in $[3]^4$ set whose intersection with $S_{1,4}$ is $\{x222, 2y22, 22z2, 222w\}$, and these are the only 16 possibilities. Call this set the \emph{good set of type $xyzw$}. It consists of&lt;br /&gt;
\begin{itemize} &lt;br /&gt;
\item The four points $x222, 2y22, 22z2, 222w$ in $S_{1,4}$;&lt;br /&gt;
\item All $24$ elements of $S_{2,4}$ except for $xy22, x2z2, x22w, 2yz2, 2y2w, 22zw$;&lt;br /&gt;
\item The twelve points $xYZ2$, $xY2W$, $x2ZW$, $XyZ2$, $Xy2W$, $2yZW$, $XYz2$, $X2zW$, $2YzW$, $XY2w$, $X2Zw$, $2YZw$ in $S_{3,4}$, where $X=4-x$, $Y=4-y$, $Z=4-z$, $W=4-w$;&lt;br /&gt;
\item The six points $xyzw, xyzW, xyZw, xYzw, Xyzw, XYZW$ in $S_{4,4}$.&lt;br /&gt;
\end{itemize} &lt;br /&gt;
&lt;br /&gt;
We can use this to constrain the types of two intersecting good slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{pqs} Suppose that the $pq****$ slice is of type $xyzw$, and the $p*r***$ slice is of type $x&#039;y&#039;z&#039;w&#039;$, where $p,q,r,x,y,z,w,x&#039;,y&#039;,z&#039;,w&#039;$ are in $\{1,3\}$. Then $x&#039;=x$ iff $q=r$, and $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$. If $x=r$ (or equivalently if $x&#039;=q$), then $y&#039;z&#039;w&#039;=yzw$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} By reflection symmetry we can take $p=q=r=1$. Observe that the $11****$ slice contains $111222$ iff $x=1$, and the $1*1***$ slice similarly contains $111222$ iff $x&#039;=1$. This shows that $x=x&#039;$.&lt;br /&gt;
&lt;br /&gt;
Suppose now that $x=x&#039;=1$. Then the $111***$ slice contains the three elements $111y22, 1112z2, 11122w$, and excludes $111Y22, 1112Z2, 11122W$, and similarly with the primes, which forces $yzw=y&#039;z&#039;w&#039;$ as claimed.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $x=x&#039;=3$. Then the $111***$ slice contains the two elements $111yzw, 111YZW$, but does not contain any of the other six points in $S_{6,6} \cap 111***$, and similarly for the primes. Thus $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$ as claimed. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two adjacent parallel good slices, such as $11****$ and $13****$.  The following lemma asserts that such slices either have opposite type, or else will create a huge amount of defect in other slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l18} Suppose that the $11****$ and $13****$ slices are good with types $xyzw$ and $x&#039;y&#039;z&#039;w&#039;$ respectively. If $x=x&#039;$, then the $1*x***$ slice has defect at least $30$, and the $1*X***$ slice has defect at least $8$. Also, the $1**1**$, $1**3**$, $1***1*$, $1***3*$, $1****1$, $1****3$ slices have defect at least $6$. In particular, the total defect of slices beginning with $1*$ is at least $74$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Observe from the $11****, 13****$ hypotheses that $a(1*x***)=9$ and $a(1*X***)=4$, which gives the first two claims by Lemma \ref{defects}.  For the other claims, one sees from Lemma \ref{pqs} that the other six slices cannot be good; also, they have an $a$-value of $6$ and a $d$-value of at most $7$, and the claims then follow from Lemma \ref{defects}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two diagonally opposite parallel good slices, such as $11****$ and $33****$. &lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l14} The $11****$ and $33****$ slices cannot both be good and of the same type.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****$ and $33****$ are of type $1111$. This excludes a lot of points from $22****$. Indeed, by connecting lines between the $11****$ and $33****$ slices, we see that the only points that can still survive in $22****$ are $221133, 221333, 221132, 223332$, and permutations of the last four indices. Double counting the lines $22133*$ and permutations we see that there are at most $12$ points one can place in the permutations of $221133, 221333, 221132$, and so the $22****$ slice has at most $16$ points. Meanwhile, the two five-dimensional slices $1*****, 3*****$ have at most $c&#039;_{5,3} = 124$ points, and the other two four-dimensional slices $21****, 23****$ have at most $c&#039;_{4,3} = 43$ points, leading to at most $16 + 124 * 2 + 43 * 2 = 350$ points in all, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
\begin{lemma}\label{l19} It is not possible for all four slices in a family to be good.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****, 13****, 31****, 33****$ are good.   By Lemma \ref{l14}, the $11****$ and $33****$ slices cannot be of the same type, and so they cannot both be of the opposite type to either $13****$ or $31****$. If $13****$ is not of the opposite type to $11****$, then by (a permutation of) Lemma \ref{l18}, the total defect of slices beginning with $1*$ is at least $74$; otherwise, if $13****$ is not of the opposite type to $33****$, then by (a permutation and reflection of) Lemma \ref{l18}, the total defect of slices beginning with $*3$ is at least $74$. Similarly, the total defect of slices beginning with $3*$ or $*1$ is at least $74$, leading to a total defect of at least $148$. But the total defect of all the corner slices is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{l20} At most one family can have a total defect of at least $38$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose there are two families with defect at least $38$. The remaining thirteen family have defect at least $4$ by Lemma \ref{l19} and Lemma \ref{defects}, leading to a total defect of at least $38*2+13*4=128$. But the total defect is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually we can refine this:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  No family can have a total defect of at least $38$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that the $ab****$ family (say) had a total defect of at least $38$, then by Corollary \ref{l20} no other families have total defect at least $38$.&lt;br /&gt;
&lt;br /&gt;
We claim that the $**ab**$ family can have at most two good slices. Indeed, suppose the $**ab**$ has three good slices, say $**11**, **13**, **33**$. By Lemma \ref{l14}, the $**11**$ and $**33**$ slices cannot be of the same type, and so cannot both be of opposite type to $**13**$. Suppose $**11**$ and $**13**$ are not of opposite type. Then by (a permutation of) Lemma \ref{l18}, one of the families $a*b***, *ab***, **b*a*, **b**a$ has a net defect of at least $38$, contradicting the normalisation.&lt;br /&gt;
&lt;br /&gt;
Thus each of the six families $**ab**, **a*b*, **a**b, ***ab*, ***a*b$ have at least two bad slices. Meanwhile, the eight families $a*b***, a**b**, a***b*, a****b, *ab***, *a*b**, *a**b*, *a***b$ have at least one bad slice by Corollary \ref{l19}, leading to twenty bad slices in addition to the defect of at least $38$ arising from the $ab****$ slice. To add up to a total defect of $120$, we conclude from Lemma \ref{defects} that all bad slices outside of the $ab****$ family have a defect of four, with at most one exception; but then by Lemma \ref{l18} this shows that (for instance) the $1*1***$ and $1*3***$ slices cannot be good unless they are of opposite type. The previous argument then shows that the a*b*** slice cannot have three good slices, which increases the number of bad slices outside of $ab****$ to at least twenty-one, and now there is no way to add up to $120$, a contradiction. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary} Every family can have at most two good slices.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If for instance $11****, 13****, 33****$ are both good, then by Lemma \ref{l14} at least one of $11****, 33****$ is not of the opposite type to $13****$, which by Lemma \ref{l18} implies that there is a family with a total defect of at least $38$, contradicting the previous proposition.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this corollary and Lemma \ref{defects}, we see that every family has a defect of at least $8$.  Since there are $15$ families, and $8 \times 15$ is exactly equal to $120$, we conclude&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{coda} Every family has \emph{exactly} two good slices, and the remaining two slices have defect $4$.  In particular, by Lemma \ref{defects}, the bad slices must have statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$.  &lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
We now limit how these slices can interact with good slices.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{goodgood}  Suppose that $1*1***$ is a good slice.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] The $11****$ slice cannot have statistics $(6,8,12,8,0)$.&lt;br /&gt;
\item[(ii)] The $11****$ slice cannot have statistics $(5,12,12,4,1)$.&lt;br /&gt;
\item[(iii)] If the $11****$ slice has statistics $(5,12,18,4,0)$, then the $112***$ slice has statistics $(3,9,3,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified through computer search; there are $16$ possible configurations for the good slices, and one can calculate that there are $27520$ configurations for the $(5,12,12,4,1)$ slices, $4368$ configurations for the $(5,12,18,4,0)$ slices, and $80000$ configurations for the $(6,8,12,8,0)$ slices. {\bf we could put human proofs for all this somewhere, presumably.}&lt;br /&gt;
&lt;br /&gt;
%We first prove (i).  Suppose for contradiction that the $11****$ slice has statistics $(6,8,12,8,0)$, then $A$ contains $111222$, and so the $1*1***$ slice is of type $1xyz$ for some $x,y,z$.  By symmetry we may assume it is of type $1111$, thus the $111***$ slice consists of&lt;br /&gt;
%$111111, 111113, 111332, 111322, 111222$ and permutations of the last three indices.  On the other hand, the $11****$ slice has all eight of the points in $11**** \cap S_{2,6}$.  Drawing lines between these points and $111111, 111113$ and permutations, we see that the $113***$ slice cannot contain $113111, 113113, 113133$, or permutations, leaving $113333$ as the only possible element of $113*** \cap S_{6,6}$.  This makes $a(11****)=5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic}  The $111***$ slice has statistics $(4,3,3,1)$, $(2,6,6,0)$, $(3,3,3,1)$, or $(1,6,6,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From Corollary \ref{coda}, we know that at least one of the slices $13****, 31****, 11****$ are good.  If $11****$ or $1*1***$ is good, then the slice $111***$ has statistics $(4,3,3,1)$ or $(2,6,6,0)$, by Lemma \ref{sixt}.  By symmetry we may thus reduce to the case where $13****$ is good and $1*1***$ is bad.  Then by Lemma \ref{goodgood}, the $1*1***$ slice has statistics $(5,12,18,4,0)$ and the $121***$ slice has statistics $(3,9,3,0)$.  Since the $131***$ slice, as a side slice of the good $13****$ slice, has statistics $(4,3,3,1)$ or $(2,6,6,0)$, we conclude that the $111***$ slice has statistics $(1,6,6,0)$ or $(3,3,3,1)$, and the claim follows.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic2} All corner slices have statistics $(6,12,18,4,0)$ or $(5,12,18,4,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  Suppose first that a corner slice, say $11****$ has statistic $(6,8,12,8,0)$.  Then $111***$ and $113***$ contain one ``d&#039;&#039; point each, and have six ``a&#039;&#039; points between them, so by Corollary \ref{slic}, they both have statistic $(3,3,3,1)$.  This forces the $1*1***$, $1*3***$ slices to be bad, which by Corollary \ref{coda} forces the $3*1***,3*3***$ slices to be good.  This forces the $311***, 313***$ slices to have statistics either $(2,6,6,0)$ or $(4,3,3,1)$.  But the $311***$ slice (say) cannot have statistic $(4,3,3,1)$, since when combined with the $(3,3,3,1)$ statistics of $111***$ would give $a(*11***)=7$, which contradicts Corollary \ref{coda}; thus the $311***$ slice has statistic $(2,6,6,0)$, and similarly for $331***$.  But then $a(3*1***)=4$, which again contradicts Corollary \ref{coda}.&lt;br /&gt;
&lt;br /&gt;
Thus no corner slice has statistic $(6,8,12,8,0)$.  Now suppose that a corner slice, say $11****$ has statistic $(5,12,12,4,1)$.  By Lemma \ref{goodgood}, the $1*1***, 1*3***$ slices are bad, so by repeating the preceding arguments we conclude that the $311***, 313***$ slices have statistics $(2,6,6,0)$ or $(4,3,3,1)$; in particular, their $a$-value is even.  However, the $*11***$ and $*13***$ slices are bad by Lemma \ref{goodgood}, and thus have an $a$-value of $5$; thus the $111***$ and $113***$ slices have an odd $a$-value.  Thus forces $a(11****)$ to be even; but it is equal to $5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this and Lemma \ref{dci}, we see that $A$ has statistics $(22,72,180,80,0,0,0)$.  In particular, we have $2\alpha_2(A)+\alpha_3(A) = 2$, which by double counting (cf. \eqref{alpha-1}) shows that for every line of the form $12222*$ (or a reflection or permutation thereof) intersects $A$ in exactly two points.  Note that such lines connect a ``$d$&#039;&#039; point to two ``$c$&#039;&#039; points.&lt;br /&gt;
&lt;br /&gt;
Also, we observe that two adjacent ``$d$&#039;&#039; points, such as $111222$ and $113222$, cannot both lie in $A$; for this would force the $*13***$ and $*11***$ slices to have statistics $(4,3,3,1)$ or $(3,3,3,1)$ by Corollary \ref{slic}, which forces $a(*1****)=6$, and thus $*1****$ must be good by Corollary \ref{slic2}; but this contradicts Lemma \ref{sixt}.  Since $\alpha_3(A)=1/2$, we conclude that given any two adjacent ``$d$&#039;&#039; points, exactly one of them lies in $A$.  In particular, the d points of the form $***222$ consist either of those strings with an even number of $1$s, or those with an odd number of $1$s.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say it&#039;s the former, thus the set contains $111222, 133222$, and permutations of the first three coordinates, but omits $113222, 333222$ and permutations of the first three coordinates. Since the ``$d$&#039;&#039; points $113222, 333222$ are omitted, we conclude that the ``$c$&#039;&#039; points $113122, 113322, 333122, 333322$ must lie in the set, and similarly for permutations of the first three and last three coordinates. But this gives at least $15$ of the $16$ ``$c$&#039;&#039; points ending in $22$; by symmetry this leads to $225$ $c$-points in all; but $c(A)=180$, contradiction.  This (finally!) completes the proof that $c&#039;_{6,3}=353$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1969</id>
		<title>Moser.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1969"/>
		<updated>2009-07-20T13:29:03Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Upper bounds for the $k=3$ Moser problem in small dimensions}\label{moser-upper-sec}&lt;br /&gt;
&lt;br /&gt;
In this section we finish the proof of Theorem \ref{moser} by obtaining the upper bounds on  $c&#039;_{n,3}$ for $n \leq 6$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Statistics, densities and slices}&lt;br /&gt;
&lt;br /&gt;
Our analysis will revolve around various \emph{statistics} of Moser sets $A \subset [3]^n$, their associated \emph{densities}, and the behavior of such statistics and densities with respect to the operation of passing from the cube $[3]^n$ to various \emph{slices} of that cube.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Statistics and densities]  Let $A \subset [3]^n$ be a set.  For any $0 \leq i \leq n$, set $a_i(A) := |A \cap S_{n-i,n}|$; thus we have&lt;br /&gt;
$$ 0 \leq a_i(A) \leq |S_{n-i,n}| = \binom{n}{i} 2^{n-i}$$&lt;br /&gt;
for $0 \leq i \leq n$ and&lt;br /&gt;
$$ a_0(A) + \ldots + a_n(A) = |A|.$$&lt;br /&gt;
We refer to the vector $(a_0(A),\ldots,a_n(A))$ as the \emph{statistics} of $A$.  We define the $i^{th}$ \emph{density} $\alpha_i(A)$ to be the quantity&lt;br /&gt;
$$ \alpha_i(A) := \frac{a_i(A) }{\binom{n}{i} 2^{n-i}},$$&lt;br /&gt;
thus $0 \leq \alpha_i(A) \leq 1$ and&lt;br /&gt;
$$ |A| = \sum_{i=0}^n \binom{n}{i} 2^{n-i} a_i(A).$$&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
\begin{example}\label{2mos}  Let $n=2$ and $A$ be the Moser set $A := \{ 12, 13, 21, 23, 31, 32 \}$.  Then the statistics $(a_0(A), a_1(A), a_2(A))$ of $A$ are $(2,4,0)$, and the densities $(\alpha_0(A), \alpha_1(A), \alpha_2(A))$ are $(\frac{1}{2}, 1, 0)$.  \textbf{Include picture here? with colours?}&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
When working with small values of $n$, it will be convenient to write $a(A)$, $b(A)$, $c(A)$, etc. for $a_0(A)$, $a_1(A)$, $a_2(A)$, etc., and similarly write $\alpha(A), \beta(A), \gamma(A)$, etc. for $\alpha_0(A)$, $\alpha_1(A)$, $\alpha_2(A)$, etc.  Thus for instance in Example \ref{2mos} we have $b(A) = 4$ and $\alpha(A) = \frac{1}{2}$.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Subspace statistics and densities]  If $V$ is a $k$-dimensional geometric subspace of $[3]^n$, then we have a map $\phi_V: [3]^k \to [3]^n$ from the $k$-dimensional cube to the $n$-dimensional cube.  If $A \subset [3]^n$ is a set and $0 \leq i \leq k$, we write $a_i(V,A)$ for $a_i(\phi_V^{-1}(A))$ and $\alpha_i(V,A)$ for $\alpha_i(\phi_V^{-1}(A))$.  If the set $A$ is clear from context, we abbreviate $a_i(V,A)$ as $a_i(V)$ and $\alpha_i(V,A)$ as $\alpha_i(V)$.&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
For our problem, a particularly important type of subspace of $[3]^n$ will be the \emph{slices} formed by fixing one coordinate and letting the other $n-1$ coordinates vary.  We will denote this by a single string in which the $n-1$ varying coordinates are denoted by asterisks.  For instance, in $[3]^2$, $1*$ denotes the slice $1*=\{11,12,13\}$, $*2$ denotes the slice $*2=\{12,22,32\}$, etc.; similarly, in $[3]^3$, $1**$ is the slice $\{111, 112, 113, 121, 122, 123, 131, 132, 133\}$, etc.  We call a slice a \emph{centre slice} if the fixed coordinate is $2$ and a \emph{side slice} if it is $1$ or $3$.&lt;br /&gt;
 &lt;br /&gt;
\begin{example}  We continue Example \ref{2mos}.  Then the statistics of the side slice $1*$ are $(a(1*),b(1*)) = (1,1)$, while the statistics of the centre slice $2*$ are $(a(2*),b(2*))=(2,0)$.  The corresponding densities are $(\alpha(1*),\beta(1*)) = (1/2,1)$ and $(\alpha(2*),\beta(2*))=(1,0)$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
A simple double counting argument gives the following useful identity:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Double counting identity]\label{dci}  Let $A \subset [3]^n$ and $0 \leq i \leq n-1$.  Then we have&lt;br /&gt;
$$ \frac{1}{n-i-1} \sum_{V \hbox{ a side slice}} a_{i+1}(V) = \frac{1}{i+1} \sum_{W \hbox{ a centre slice}} a_i(W) = a_{i+1}(A)$$&lt;br /&gt;
where $V$ ranges over the $2n$ side slices of $[3]^n$, and $W$ ranges over the $n$ centre slices.  In other words, the average value of $\alpha_{i+1}(V)$ for side slices $V$ equals the average value of $\alpha_i(W)$ for centre slices $W$, which is in turn equal to $\alpha_{i+1}(A)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Indeed, this lemma follows from the observation that every string in $A \cap S_{n-i-1,n}$ belongs to $i+1$ centre slices $W$ (and contributes to $a_i(W)$) and to $n-i-1$ side slices $V$ (and contributes to $a_{i+1}(V)$).  One can also view this lemma probabilistically, as the assertion that there are three equivalent ways to generate a random string of length $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick a side slice $V$ at random, and randomly fill in the wildcards in such a way that $i+1$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-2,n-1}$).&lt;br /&gt;
\item Pick a centre slice $V$ at random, and randomly fill in the wildcards in such a way that $i$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-1,n-1}$).&lt;br /&gt;
\item Randomly choose an element of $S_{n-i-1,n}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
\begin{example} We continue Example \ref{2mos}.  The average value of $\beta$ for side slices is equal to the average value of $\alpha$ for centre slices, which is equal to $\beta(A) = 1$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
Another very useful fact (essentially due to \cite{chvatal2}) is that linear inequalities for statistics of Moser sets at one dimension propagate to linear inequalities in higher dimensions:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Propagation lemma]\label{prop}  Let $n \geq 1$ be an integer.  Suppose one has a linear inequality of the form&lt;br /&gt;
\begin{equation}\label{alphav}&lt;br /&gt;
 \sum_{i=0}^n v_i \alpha_i(A) \leq s&lt;br /&gt;
\end{equation}&lt;br /&gt;
for all Moser sets $A \subset [3]^n$ and some real numbers $v_0,\ldots,v_n,s$.  Then we also have the linear inequality&lt;br /&gt;
$$ \sum_{i=0}^n v_i \alpha_{qi+r}(A) \leq s$$&lt;br /&gt;
whenever $q \geq 1$, $r \geq 0$, $N \geq nq+r$ are integers and $A \subset [3]^N$ is a Moser set.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  We run a probabilistic argument (one could of course also use a double counting argument instead).  Let $n,v_0,\ldots,v_n,s,q,r,N,A$ be as in the lemma.  Let $V$ be a random $n$-dimensional geometric subspace of $[3]^N$, created in the following fashion:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $n$ wildcards $x_1,\ldots,x_n$ to run independently from $1$ to $3$.  We also introduce dual wildcards $\overline{x_1},\ldots,\overline{x_n}$; each $\overline{x_j}$ will take the value $4-x_j$.&lt;br /&gt;
\item We randomly subdivide the $N$ coordinates into $n$ groups of $q$ coordinates, plus a remaining group of $N-nq$ ``fixed&#039;&#039; coordinates.&lt;br /&gt;
\item For each coordinate in the $j^{th}$ group of $q$ coordinates for $1 \leq j \leq n$, we randomly assign either a $x_j$ or $\overline{x_j}$.&lt;br /&gt;
\item For each coordinate in the $N-nq$ fixed coordinates, we randomly assign a digit $1,2,3$, but condition on the event that exactly $r$ of the digits are equal to $2$ (i.e. we use a random element of $S_{N-nq-r,N-nq}$).&lt;br /&gt;
\item Let $V$ be the subspace created by allowing $x_1,\ldots,x_n$ to run independently from $1$ to $3$, and $\overline{x_j}$ to take the value $4-x_j$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
For instance, if $n=2, q=2, r=1, N=6$, then a typical subspace $V$ generated in this fashion is&lt;br /&gt;
$$ 2x_1\overline{x_2}3x_2x_1 = \{ 213311, 212321, 211331, 223312, 222322, 221332, 233313, 232323, 231333\}.$$&lt;br /&gt;
Observe from that the following two ways to generate a random element of $[3]^N$ are equivalent:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $V$ randomly as above, and then assign $(x_1,\ldots,x_n)$ randomly from $S_{n-i,n}$.  Assign $4-x_j$ to $\overline{x_j}$ for all $1 \leq j \leq n$.&lt;br /&gt;
\item Pick a random string in $S_{N-qi-r,N}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
Indeed, both random variables are invariant under the symmetries of the cube, and both random variables always pick out strings in $S_{N-qi-r,N}$, and the claim follows.  As a consequence, we see that the expectation of $\alpha_i(V)$ (as $V$ ranges over the recipe described above) is equal to $\alpha_{qi+r}(A)$.  On the other hand, from \eqref{alphav} we have&lt;br /&gt;
$$  \sum_{i=0}^n v_i \alpha_i(V) \leq s$$&lt;br /&gt;
for all such $V$; taking expectations over $V$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
In view of Lemma \ref{prop}, it is of interest to locate linear inequalities relating the densities $\alpha_i(A)$, or (equivalently) the statistics $a_i(A)$.  For this, it is convenient to introduce the following notation.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}  Let $n \geq 1$ be an integer.  &lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item A vector $(a_0,\ldots,a_n)$ of non-negative integers is \emph{feasible} if it is the statistics of some Moser set $A$.&lt;br /&gt;
\item A feasible vector $(a_0,\ldots,a_n)$ is \emph{Pareto-optimal} if there is no other feasible vector $(b_0,\ldots,b_n) \neq (a_0,\ldots,a_n)$ such that $b_i \geq a_i$ for all $0 \leq i \leq n$.&lt;br /&gt;
\item A Pareto-optimal vector $(a_0,\ldots,a_n)$ is \emph{extremal} if it is not a non-trivial convex linear combination of other Pareto-optimal vectors.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
To establish a linear inequality of the form \eqref{alphav} with the $v_i$ non-negative, it suffices to test the inequality against densities associated to extremal vectors of statistics.  (There is no point considering linear inequalities with negative coefficients $v_i$, since one always has the freedom to reduce a density $\alpha_i(A)$ of a Moser set $A$ to zero, simply by removing all elements of $A$ with exactly $i$ $2$&#039;s.)&lt;br /&gt;
&lt;br /&gt;
We will classify exactly the Pareto-optimal and extremal vectors for $n \leq 3$, which by Lemma \ref{prop} will lead to useful linear inequalities for $n \geq 4$.  Using a computer, we have also located a partial list of Pareto-optimal and extremal vectors for $n=4$, which are also useful for the $n=5$ and $n=6$ theory.&lt;br /&gt;
&lt;br /&gt;
\subsection{Up to three dimensions}&lt;br /&gt;
&lt;br /&gt;
We now establish Theorem \ref{moser} for $n \leq 3$, and establish some auxiliary inequalities which will be of use in higher dimensions.&lt;br /&gt;
&lt;br /&gt;
The case $n=0$ is trivial. When $n=1$, it is clear that $c&#039;_{1,3} = 2$, and furthermore that the Pareto-optimal statistics are $(2,0)$ and $(1,1)$, which are both extremal.  This leads to the linear inequality&lt;br /&gt;
$$ 2\alpha(A) + \beta(A) \leq 2$$&lt;br /&gt;
for all Moser sets $A \subset [3]^1$, which by Lemma \ref{prop} implies that&lt;br /&gt;
\begin{equation}\label{alpha-1}&lt;br /&gt;
2\alpha_r(A) + \alpha_{r+q}(A) \leq 2&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
For $n=2$, we see by partitioning $[3]^2$ into three slices that $c&#039;_{2,3} \leq 3 c&#039;_{1,3} = 6$, and so (by the lower bounds in the previous section) $c&#039;_{2,3} = 6$.  Writing $(a,b,c) = (a(A),b(A),c(A)) = (4\alpha(A), 4\beta(A), \gamma(A))$, the inequalities \eqref{alpha-1} become&lt;br /&gt;
\begin{equation}\label{abc}&lt;br /&gt;
a + 2c \leq 4; b+2c \leq 4; 2a+b &amp;lt;= 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}  When $n=2$, the Pareto-optimal statistics are $(4,0,0), (3,2,0), (2,4,0), (2,2,1)$. In particular, the extremal statistics are $(4,0,0), (2,4,0), (2,2,1)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  One easily checks that all the statistics listed above are feasible.&lt;br /&gt;
Consider the statistics $(a,b,c)$ of a Moser set $A \subset [3]^2$.  $c$ is either equal to $0$ or $1$.  If $c=1$, then \eqref{abc} implies that $a,b \leq 2$, so the only Pareto-optimal statistic here is $(2,2,1)$.  When instead $c=0$, the inequalities \eqref{abc} can easily imply the Pareto-optimality of $(4,0,0), (3,2,0), (2,4,0)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this lemma we see that we obtain a new inequality $2a+b+2c \leq 8$.  Converting this back to densities and using Lemma \ref{prop}, we conclude that&lt;br /&gt;
\begin{equation}\label{alpha-2}&lt;br /&gt;
4\alpha_r(A) + 2\alpha_{r+q}(A) + \alpha_{r+2q} \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+2r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
One can also check by computer that there are exactly $230$ line-free subsets of $[3]^2$.&lt;br /&gt;
&lt;br /&gt;
Now we look at three dimensions.  Writing $(a,b,c,d)$ for the statistics of a Moser set $A \subset [3]^n$ (which thus range between $(0,0,0,0)$ and $(8,12,6,1)$), the inequalities \eqref{alpha-1} imply in particular that&lt;br /&gt;
\begin{equation}\label{abc-3d}&lt;br /&gt;
a+4d \leq 8; b+6d \leq 12; c+3d \leq 6; 3a+2c \leq 24; b+c \leq 12&lt;br /&gt;
\end{equation}&lt;br /&gt;
while \eqref{alpha-2} implies that&lt;br /&gt;
\begin{equation}\label{abcd-3d}&lt;br /&gt;
3a+b+c \leq 24; b+c+3d \leq 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Summing the inequalities $b+c \leq 12, 3a+b+c \leq 24, b+c+3d \leq 12$ yields&lt;br /&gt;
$$ 3(a+b+c+d) \leq 48$$&lt;br /&gt;
and hence $|A| = a+b+c+d \leq 16$; comparing this with the lower bounds of the preceding section we obtain $c&#039;_{3,3} = 16$ as required.  (This argument is essentially identical to the one in \cite{chvatal2}).&lt;br /&gt;
&lt;br /&gt;
We have the following useful computation:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[3D Pareto-optimals]\label{paretop} When $n=3$, the Pareto-optimal statistics are $$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0),$$ &lt;br /&gt;
$$ (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0),$$&lt;br /&gt;
$$ (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).$$  &lt;br /&gt;
In particular, the extremal statistics are &lt;br /&gt;
$$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0).$$&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} This can be established by a brute-force search over the $2^{27} \approx 1.3 \times 10^8$ different subsets of $[3]^3$.  Actually, one can perform a much faster search than this.  Firstly, as noted earlier, there are only $230$ line-free subsets of $[3]^2$, so one could search over $230^3 \approx 1.2 \times 10^7$ configurations instead.  Secondly, by symmetry we may assume (after enumerating the $230$ sets in a suitable fashion) that the first slice $A \cap 1**$ has an index less than or equal to the third $A \cap 3**$, leading to $\binom{231}{2} \times 230 \approx 6 \times 10^6$ configurations instead.  Finally, using the first and third slice one can quickly determine which elements of the second slice $2**$ are prohibited from $A$.  There are $2^9 = 512$ possible choices for the prohibited set in $2**$.  By crosschecking these against the list of $230$ line-free sets one can compute the Pareto-optimal statistics for the second slices inside the prohibited set (the lists of such statistics turns out to length at most $23$).  Storing these statistics in a lookup table, and then running over all choices of the first and third slice (using symmetry), one now has to perform $O( 512 \times 230 ) + O( \binom{231}{2} \times 23) \approx O( 10^6 )$ computations, which is quite a feasible computation.&lt;br /&gt;
&lt;br /&gt;
One could in principle reduce the computations even further, by a factor of up to $8$, by using the symmetry group $D_4$ of the square $[3]^2$ to reduce the number of cases one needs to consider, but we did not implement this.&lt;br /&gt;
&lt;br /&gt;
A computer-free proof of this lemma can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Human\_proof\_of\_the\_3D\_Pareto-optimal\_Moser\_statistics}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} A similar computation revealed that the total number of line-free subsets of $[3]^3$ was $3813884$.  With respect to the $2^3 \times 3!=48$-element group of geometric symmetries of $[3]^3$, these sets partitioned into $83158$ equivalence classes:&lt;br /&gt;
$$&lt;br /&gt;
3813884 = 76066 \times 48+6527 \times 24+51 \times 16+338 \times 12 +109 \times 8+41 \times 6+13 \times 4 +5 \times 3+3 \times 2+5 \times 1.&lt;br /&gt;
$$&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
Lemma \ref{paretop} yields the following new inequalities:&lt;br /&gt;
\begin{align*}&lt;br /&gt;
2a+b+2c+4d &amp;amp;\leq 22 \\&lt;br /&gt;
3a+2b+3c+6d &amp;amp;\leq 36 \\&lt;br /&gt;
7a+2b+4c+8d &amp;amp;\leq 56 \\&lt;br /&gt;
6a+2b+3c+6d &amp;amp;\leq 48 \\&lt;br /&gt;
a+2c+4d &amp;amp;\leq 14 \\&lt;br /&gt;
5a+4c+8d &amp;amp;\leq 40.&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
Applying Lemma \ref{prop}, we obtain new inequalities:&lt;br /&gt;
\begin{align}&lt;br /&gt;
8\alpha_r(A)+ 6\alpha_{r+q}(A) + 6\alpha_{r+2q}(A) + 2\alpha_{r+3q}(A) &amp;amp;\leq 11 \label{eleven}\\&lt;br /&gt;
4\alpha_r(A)+4\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 6\label{six}\\&lt;br /&gt;
7\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
8\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 8\label{eight}\\&lt;br /&gt;
4\alpha_{r+q}(A)+2\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 4\nonumber\\&lt;br /&gt;
4\alpha_r(A)+6\alpha_{r+2q}(A)+2\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
5\alpha_r(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 5\nonumber &lt;br /&gt;
\end{align}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq r+3q$, and Moser sets $A \subset [3]^n$.&lt;br /&gt;
&lt;br /&gt;
We also note some further corollaries of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Statistics of large 3D Moser sets]\label{paretop2}  Let $(a,b,c,d)$ be the statistics of a Moser set $A$ in $[3]^3$.  Then $|A| = a+b+c+d \leq 16$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $|A|=16$, then $(a,b,c,d) = (4,12,0,0)$.&lt;br /&gt;
\item If $|A|=15$, then $(a,b,c,d) = (4,11,0,0)$ or $(3,12,0,0)$.&lt;br /&gt;
\item If $|A| \geq 14$, then $b \geq 6$ and $d=0$.&lt;br /&gt;
\item If $|A| = 13$ and $d=1$, then $(a,b,c,d) = (4,6,2,1)$ or $(3,6,3,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\subsection{Four dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{4,3}=43$.  Let $A$ be a Moser set in $[3]^4$, with attendant statistics $(a,b,c,d,e)$, which range between $(0,0,0,0,0)$ and $(16,32,24,8,1)$.  In view of the lower bounds, our task here is to establish the upper bound $a+b+c+d+e \leq 43$.&lt;br /&gt;
&lt;br /&gt;
The linear inequalities already established just barely fail to achieve this bound, but we can obtain the upper bound $a+b+c+d+e \leq 44$ as follows.&lt;br /&gt;
First suppose that $e=1$; then from the inequalities \eqref{alpha-1} (or by considering lines passing through $2222$) we see that $a \leq 8, b \leq 16, c \leq 12, d \leq 4$ and hence $a+b+c+d+e \leq 41$, so we may assume that $e=0$.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{dci}, we see that $a+b+c+d+e$ is now equal to the sum of $a(V)/4+b(V)/3+c(V)/2+d(V)$, where $V$ ranges over all side slices of $[3]^4$.  But from Lemma \ref{paretop} we see that $a(V)/4+b(V)/3+c(V)/2+d(V)$ is at most $\frac{11}{4}$, with equality occuring only when $(a(V),b(V),c(V),d(V))=(2,6,6,0)$.  This gives the upper bound $a+b+c+d+e \leq 44$.&lt;br /&gt;
&lt;br /&gt;
The above argument shows that $a+b+c+d+e=44$ can only occur if $e=0$ and if $(a(V),b(V),c(V),d(V))=(2,6,6,0)$ for all side slices $V$.  Applying Lemma \ref{paretop} again this implies $(a,b,c,d,e)=(4,16,24,0,0)$.  But then $A$ contains all of the sphere $S_{2,4}$, which implies that the four-element set $A \cap S_{4,4}$ cannot contain a pair of strings which differ in exactly two positions (as their midpoint would then lie in $S_{2,4}$, contradicting the hypothesis that $A$ is a Moser set).  &lt;br /&gt;
&lt;br /&gt;
Recall that we may partition $S_{4,4} = S_{4,4}^e \cup S_{4,4}^o$, where &lt;br /&gt;
$$S_{4,4}^e := \{ 1111, 1133, 1313, 3113, 1331, 3131, 3311, 3333\}$$&lt;br /&gt;
is the strings in $S_{4,4}$ with an even number of $1$&#039;s, and &lt;br /&gt;
$$S_{4,4}^o := \{ 1113, 1131, 1311, 3111, 1333, 3133, 3313, 3331\}$$&lt;br /&gt;
are the strings in $S_{4,4}$ with an odd number.  Observe that any two distinct elements in $S_{4,4}^e$ differ in exactly two positions unless they are antipodal.  Thus $A \cap S_{4,4}^e$ has size at most two, with equality only when $A \cap S_{4,4}^e$ consists of an antipodal pair.  Similarly for $A \cap S_{4,4}^o$.  Thus $A$ must consist of two antipodal pairs, one from $S_{4,4}^e$ and one from $S_{4,4}^o$.&lt;br /&gt;
&lt;br /&gt;
By the symmetries of the cube we may assume without loss of generality that these pairs are $\{ 1111, 3333\}$ and $\{1113,3331\}$ respectively.  But as $A$ is a Moser set, $A$ must now exclude the strings $1112$ and $3332$.  These two strings form two corners of the eight-element set&lt;br /&gt;
$$ ***2 \cap S_{3,4} = \{ 1112, 1132, 1312, 3112, 1332, 3132, 3312, 3332 \}.$$&lt;br /&gt;
Any pair of points in this set which are ``adjacent&#039;&#039; in the sense that they differ by exactly one entry cannot both lie in $A$, as their midpoint would then lie in $S_{3,4}$, and so $A$ can contain at most four elements from this set, with equality only if $A$ contains all the points in $***2 \cap S_{3,4}$ of the same parity (either all the elements with an even number of $3$s, or all the elements with an odd number of $3$s).  But because the two corners removed from this set have the opposite parity (one has an even number of $1$s and one has an odd number), we see in fact that $A$ can contain at most $3$ points from this set.  Meanwhile, the same arguments give that $A$ contains at most four points from $**2* \cap S_{3,4}$, $*2** \cap S_{3,4}$, and $2*** \cap S_{3,4}$.  Summing we see that $b = |A \cap S_{3,4}| \leq 3+4+4+4=15$, a contradiction.  Thus we have $c&#039;_{4,3}=43$ as claimed.&lt;br /&gt;
&lt;br /&gt;
We have the following four-dimensional version of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[4D Pareto-optimals]\label{paretop-4} When $n=4$, the Pareto-optimal statistics listed on Table \ref{table4}.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centered{\tiny&lt;br /&gt;
$(3, 16, 24, 0, 0)$,&lt;br /&gt;
$(4, 14, 19, 2, 0)$,&lt;br /&gt;
$(4, 15, 24, 0, 0)$,&lt;br /&gt;
$(4, 16, 8, 4, 1)$,&lt;br /&gt;
$(4, 16, 14, 4, 0)$,&lt;br /&gt;
$(4, 16, 23, 0, 0)$,&lt;br /&gt;
$(4, 17, 21, 0, 0)$,&lt;br /&gt;
$(4, 18, 19, 0, 0)$,&lt;br /&gt;
$(5, 12, 12, 4, 1)$,&lt;br /&gt;
$(5, 12, 13, 6, 0)$,&lt;br /&gt;
$(5, 12, 15, 5, 0)$,&lt;br /&gt;
$(5, 12, 19, 2, 0)$,&lt;br /&gt;
$(5, 13, 10, 4, 1)$,&lt;br /&gt;
$(5, 13, 14, 5, 0)$,&lt;br /&gt;
$(5, 13, 21, 1, 0)$,&lt;br /&gt;
$(5, 15, 9, 4, 1)$,&lt;br /&gt;
$(5, 15, 12, 3, 1)$,&lt;br /&gt;
$(5, 15, 13, 5, 0)$,&lt;br /&gt;
$(5, 15, 18, 3, 0)$,&lt;br /&gt;
$(5, 15, 20, 1, 0)$,&lt;br /&gt;
$(5, 15, 22, 0, 0)$,&lt;br /&gt;
$(5, 16, 7, 4, 1)$,&lt;br /&gt;
$(5, 16, 10, 3, 1)$,&lt;br /&gt;
$(5, 16, 11, 5, 0)$,&lt;br /&gt;
$(5, 16, 12, 2, 1)$,&lt;br /&gt;
$(5, 16, 16, 3, 0)$,&lt;br /&gt;
$(5, 16, 19, 1, 0)$,&lt;br /&gt;
$(5, 16, 21, 0, 0)$,&lt;br /&gt;
$(5, 17, 12, 4, 0)$,&lt;br /&gt;
$(5, 17, 14, 3, 0)$,&lt;br /&gt;
$(5, 17, 16, 2, 0)$,&lt;br /&gt;
$(5, 17, 18, 1, 0)$,&lt;br /&gt;
$(5, 17, 20, 0, 0)$,&lt;br /&gt;
$(5, 18, 13, 3, 0)$,&lt;br /&gt;
$(5, 18, 14, 2, 0)$,&lt;br /&gt;
$(5, 20, 8, 4, 0)$,&lt;br /&gt;
$(5, 20, 10, 3, 0)$,&lt;br /&gt;
$(5, 20, 13, 2, 0)$,&lt;br /&gt;
$(5, 20, 14, 1, 0)$,&lt;br /&gt;
$(5, 20, 18, 0, 0)$,&lt;br /&gt;
$(5, 21, 10, 2, 0)$,&lt;br /&gt;
$(5, 21, 15, 0, 0)$,&lt;br /&gt;
$(5, 22, 13, 0, 0)$,&lt;br /&gt;
$(6, 8, 12, 8, 0)$,&lt;br /&gt;
$(6, 10, 11, 4, 1)$,&lt;br /&gt;
$(6, 11, 12, 7, 0)$,&lt;br /&gt;
$(6, 12, 10, 7, 0)$,&lt;br /&gt;
$(6, 12, 13, 5, 0)$,&lt;br /&gt;
$(6, 12, 18, 4, 0)$,&lt;br /&gt;
$(6, 13, 16, 4, 0)$,&lt;br /&gt;
$(6, 14, 9, 4, 1)$,&lt;br /&gt;
$(6, 14, 9, 7, 0)$,&lt;br /&gt;
$(6, 14, 12, 6, 0)$,&lt;br /&gt;
$(6, 14, 16, 3, 0)$,&lt;br /&gt;
$(6, 14, 19, 1, 0)$,&lt;br /&gt;
$(6, 14, 21, 0, 0)$,&lt;br /&gt;
$(6, 15, 7, 4, 1)$,&lt;br /&gt;
$(6, 15, 10, 3, 1)$,&lt;br /&gt;
$(6, 15, 10, 6, 0)$,&lt;br /&gt;
$(6, 15, 11, 2, 1)$,&lt;br /&gt;
$(6, 15, 12, 5, 0)$,&lt;br /&gt;
$(6, 15, 15, 4, 0)$,&lt;br /&gt;
$(6, 15, 20, 0, 0)$,&lt;br /&gt;
$(6, 16, 7, 3, 1)$,&lt;br /&gt;
$(6, 16, 8, 6, 0)$,&lt;br /&gt;
$(6, 16, 9, 2, 1)$,&lt;br /&gt;
$(6, 16, 10, 5, 0)$,&lt;br /&gt;
$(6, 16, 12, 1, 1)$,&lt;br /&gt;
$(6, 16, 13, 4, 0)$,&lt;br /&gt;
$(6, 16, 14, 3, 0)$,&lt;br /&gt;
$(6, 16, 18, 2, 0)$,&lt;br /&gt;
$(6, 16, 19, 0, 0)$,&lt;br /&gt;
$(6, 17, 9, 5, 0)$,&lt;br /&gt;
$(6, 17, 10, 4, 0)$,&lt;br /&gt;
$(6, 17, 13, 3, 0)$,&lt;br /&gt;
$(6, 17, 15, 2, 0)$,&lt;br /&gt;
$(6, 17, 17, 1, 0)$,&lt;br /&gt;
$(6, 17, 18, 0, 0)$,&lt;br /&gt;
$(6, 18, 13, 2, 0)$,&lt;br /&gt;
$(6, 18, 16, 1, 0)$,&lt;br /&gt;
$(6, 18, 17, 0, 0)$,&lt;br /&gt;
$(6, 19, 9, 4, 0)$,&lt;br /&gt;
$(6, 19, 12, 3, 0)$,&lt;br /&gt;
$(6, 19, 15, 1, 0)$,&lt;br /&gt;
$(6, 20, 7, 4, 0)$,&lt;br /&gt;
$(6, 20, 9, 3, 0)$,&lt;br /&gt;
$(6, 20, 12, 2, 0)$,&lt;br /&gt;
$(6, 20, 13, 1, 0)$,&lt;br /&gt;
$(6, 20, 15, 0, 0)$,&lt;br /&gt;
$(6, 21, 8, 3, 0)$,&lt;br /&gt;
$(6, 21, 9, 2, 0)$,&lt;br /&gt;
$(6, 21, 12, 1, 0)$,&lt;br /&gt;
$(6, 21, 14, 0, 0)$,&lt;br /&gt;
$(6, 22, 7, 3, 0)$,&lt;br /&gt;
$(6, 22, 8, 2, 0)$,&lt;br /&gt;
$(6, 22, 10, 1, 0)$,&lt;br /&gt;
$(6, 23, 9, 1, 0)$,&lt;br /&gt;
$(6, 24, 7, 2, 0)$,&lt;br /&gt;
$(6, 24, 8, 1, 0)$,&lt;br /&gt;
$(6, 24, 12, 0, 0)$,&lt;br /&gt;
$(6, 25, 9, 0, 0)$,&lt;br /&gt;
$(6, 26, 7, 0, 0)$,&lt;br /&gt;
$(7, 8, 6, 8, 0)$,&lt;br /&gt;
$(7, 11, 9, 4, 1)$,&lt;br /&gt;
$(7, 11, 12, 6, 0)$,&lt;br /&gt;
$(7, 12, 8, 4, 1)$,&lt;br /&gt;
$(7, 12, 8, 6, 0)$,&lt;br /&gt;
$(7, 12, 12, 3, 1)$,&lt;br /&gt;
$(7, 12, 12, 5, 0)$,&lt;br /&gt;
$(7, 12, 13, 4, 0)$,&lt;br /&gt;
$(7, 12, 15, 3, 0)$,&lt;br /&gt;
$(7, 12, 17, 2, 0)$,&lt;br /&gt;
$(7, 13, 7, 4, 1)$,&lt;br /&gt;
$(7, 13, 10, 3, 1)$,&lt;br /&gt;
$(7, 13, 11, 5, 0)$,&lt;br /&gt;
$(7, 13, 12, 2, 1)$,&lt;br /&gt;
$(7, 13, 12, 4, 0)$,&lt;br /&gt;
$(7, 13, 14, 3, 0)$,&lt;br /&gt;
$(7, 13, 16, 2, 0)$,&lt;br /&gt;
$(7, 14, 6, 4, 1)$,&lt;br /&gt;
$(7, 14, 6, 7, 0)$,&lt;br /&gt;
$(7, 14, 9, 5, 0)$,&lt;br /&gt;
$(7, 14, 10, 2, 1)$,&lt;br /&gt;
$(7, 14, 12, 1, 1)$,&lt;br /&gt;
$(7, 14, 17, 1, 0)$,&lt;br /&gt;
$(7, 14, 19, 0, 0)$,&lt;br /&gt;
$(7, 15, 7, 5, 0)$,&lt;br /&gt;
$(7, 15, 8, 3, 1)$,&lt;br /&gt;
$(7, 15, 9, 2, 1)$,&lt;br /&gt;
$(7, 15, 11, 1, 1)$,&lt;br /&gt;
$(7, 15, 11, 4, 0)$,&lt;br /&gt;
$(7, 15, 13, 3, 0)$,&lt;br /&gt;
$(7, 15, 16, 1, 0)$,&lt;br /&gt;
$(7, 16, 6, 3, 1)$,&lt;br /&gt;
$(7, 16, 6, 6, 0)$,&lt;br /&gt;
$(7, 16, 8, 2, 1)$,&lt;br /&gt;
$(7, 16, 10, 1, 1)$,&lt;br /&gt;
$(7, 16, 10, 4, 0)$,&lt;br /&gt;
$(7, 16, 12, 0, 1)$,&lt;br /&gt;
$(7, 16, 12, 3, 0)$,&lt;br /&gt;
$(7, 16, 15, 2, 0)$,&lt;br /&gt;
$(7, 16, 17, 0, 0)$,&lt;br /&gt;
$(7, 17, 6, 5, 0)$,&lt;br /&gt;
$(7, 17, 7, 4, 0)$,&lt;br /&gt;
$(7, 17, 11, 3, 0)$,&lt;br /&gt;
$(7, 17, 13, 2, 0)$,&lt;br /&gt;
$(7, 17, 14, 1, 0)$,&lt;br /&gt;
$(7, 17, 16, 0, 0)$,&lt;br /&gt;
$(7, 18, 10, 3, 0)$,&lt;br /&gt;
$(7, 18, 13, 1, 0)$,&lt;br /&gt;
$(7, 18, 15, 0, 0)$,&lt;br /&gt;
$(7, 19, 9, 3, 0)$,&lt;br /&gt;
$(7, 20, 6, 4, 0)$,&lt;br /&gt;
$(7, 20, 11, 2, 0)$,&lt;br /&gt;
$(7, 20, 12, 1, 0)$,&lt;br /&gt;
$(7, 20, 14, 0, 0)$,&lt;br /&gt;
$(7, 21, 8, 2, 0)$,&lt;br /&gt;
$(7, 21, 10, 1, 0)$,&lt;br /&gt;
$(7, 21, 12, 0, 0)$,&lt;br /&gt;
$(7, 22, 9, 1, 0)$,&lt;br /&gt;
$(7, 22, 11, 0, 0)$,&lt;br /&gt;
$(7, 23, 6, 3, 0)$,&lt;br /&gt;
$(7, 23, 7, 1, 0)$,&lt;br /&gt;
$(7, 23, 10, 0, 0)$,&lt;br /&gt;
$(7, 24, 6, 2, 0)$,&lt;br /&gt;
$(7, 24, 9, 0, 0)$,&lt;br /&gt;
$(7, 25, 6, 1, 0)$,&lt;br /&gt;
$(7, 25, 8, 0, 0)$,&lt;br /&gt;
$(7, 26, 3, 1, 0)$,&lt;br /&gt;
$(7, 28, 6, 0, 0)$,&lt;br /&gt;
$(7, 29, 3, 0, 0)$,&lt;br /&gt;
$(7, 30, 1, 0, 0)$,&lt;br /&gt;
$(8, 8, 0, 8, 0)$,&lt;br /&gt;
$(8, 8, 9, 7, 0)$,&lt;br /&gt;
$(8, 8, 12, 6, 0)$,&lt;br /&gt;
$(8, 9, 9, 4, 1)$,&lt;br /&gt;
$(8, 9, 10, 6, 0)$,&lt;br /&gt;
$(8, 9, 12, 3, 1)$,&lt;br /&gt;
$(8, 9, 12, 5, 0)$,&lt;br /&gt;
$(8, 9, 13, 4, 0)$,&lt;br /&gt;
$(8, 9, 15, 3, 0)$,&lt;br /&gt;
$(8, 10, 7, 4, 1)$,&lt;br /&gt;
$(8, 10, 10, 3, 1)$,&lt;br /&gt;
$(8, 10, 10, 5, 0)$,&lt;br /&gt;
$(8, 10, 12, 2, 1)$,&lt;br /&gt;
$(8, 10, 12, 4, 0)$,&lt;br /&gt;
$(8, 10, 13, 3, 0)$,&lt;br /&gt;
$(8, 10, 15, 2, 0)$,&lt;br /&gt;
$(8, 11, 6, 4, 1)$,&lt;br /&gt;
$(8, 11, 9, 6, 0)$,&lt;br /&gt;
$(8, 11, 10, 2, 1)$,&lt;br /&gt;
$(8, 11, 11, 4, 0)$,&lt;br /&gt;
$(8, 12, 7, 6, 0)$,&lt;br /&gt;
$(8, 12, 9, 3, 1)$,&lt;br /&gt;
$(8, 12, 9, 5, 0)$,&lt;br /&gt;
$(8, 12, 10, 4, 0)$,&lt;br /&gt;
$(8, 12, 12, 1, 1)$,&lt;br /&gt;
$(8, 12, 14, 2, 0)$,&lt;br /&gt;
$(8, 12, 16, 1, 0)$,&lt;br /&gt;
$(8, 12, 18, 0, 0)$,&lt;br /&gt;
$(8, 13, 7, 3, 1)$,&lt;br /&gt;
$(8, 13, 7, 5, 0)$,&lt;br /&gt;
$(8, 13, 9, 2, 1)$,&lt;br /&gt;
$(8, 13, 12, 0, 1)$,&lt;br /&gt;
$(8, 13, 12, 3, 0)$,&lt;br /&gt;
$(8, 14, 0, 7, 0)$,&lt;br /&gt;
$(8, 14, 6, 6, 0)$,&lt;br /&gt;
$(8, 14, 7, 2, 1)$,&lt;br /&gt;
$(8, 14, 8, 1, 1)$,&lt;br /&gt;
$(8, 14, 9, 4, 0)$,&lt;br /&gt;
$(8, 14, 11, 0, 1)$,&lt;br /&gt;
$(8, 14, 11, 3, 0)$,&lt;br /&gt;
$(8, 14, 13, 2, 0)$,&lt;br /&gt;
$(8, 14, 15, 1, 0)$,&lt;br /&gt;
$(8, 14, 17, 0, 0)$,&lt;br /&gt;
$(8, 15, 6, 3, 1)$,&lt;br /&gt;
$(8, 15, 6, 5, 0)$,&lt;br /&gt;
$(8, 15, 7, 1, 1)$,&lt;br /&gt;
$(8, 16, 0, 6, 0)$,&lt;br /&gt;
$(8, 16, 4, 3, 1)$,&lt;br /&gt;
$(8, 16, 4, 5, 0)$,&lt;br /&gt;
$(8, 16, 6, 2, 1)$,&lt;br /&gt;
$(8, 16, 8, 4, 0)$,&lt;br /&gt;
$(8, 16, 9, 0, 1)$,&lt;br /&gt;
$(8, 16, 10, 3, 0)$,&lt;br /&gt;
$(8, 16, 12, 2, 0)$,&lt;br /&gt;
$(8, 16, 14, 1, 0)$,&lt;br /&gt;
$(8, 16, 16, 0, 0)$,&lt;br /&gt;
$(8, 17, 0, 5, 0)$,&lt;br /&gt;
$(8, 17, 3, 4, 0)$,&lt;br /&gt;
$(8, 17, 8, 3, 0)$,&lt;br /&gt;
$(8, 17, 10, 2, 0)$,&lt;br /&gt;
$(8, 17, 12, 1, 0)$,&lt;br /&gt;
$(8, 17, 14, 0, 0)$,&lt;br /&gt;
$(8, 18, 9, 2, 0)$,&lt;br /&gt;
$(8, 18, 11, 1, 0)$,&lt;br /&gt;
$(8, 18, 12, 0, 0)$,&lt;br /&gt;
$(8, 19, 6, 3, 0)$,&lt;br /&gt;
$(8, 19, 8, 2, 0)$,&lt;br /&gt;
$(8, 20, 0, 4, 0)$,&lt;br /&gt;
$(8, 20, 4, 3, 0)$,&lt;br /&gt;
$(8, 20, 7, 2, 0)$,&lt;br /&gt;
$(8, 20, 9, 1, 0)$,&lt;br /&gt;
$(8, 20, 11, 0, 0)$,&lt;br /&gt;
$(8, 21, 4, 2, 0)$,&lt;br /&gt;
$(8, 21, 7, 1, 0)$,&lt;br /&gt;
$(8, 22, 3, 2, 0)$,&lt;br /&gt;
$(8, 22, 6, 1, 0)$,&lt;br /&gt;
$(8, 22, 9, 0, 0)$,&lt;br /&gt;
$(8, 23, 0, 3, 0)$,&lt;br /&gt;
$(8, 23, 4, 1, 0)$,&lt;br /&gt;
$(8, 24, 0, 2, 0)$,&lt;br /&gt;
$(8, 24, 3, 1, 0)$,&lt;br /&gt;
$(8, 24, 8, 0, 0)$,&lt;br /&gt;
$(8, 25, 1, 1, 0)$,&lt;br /&gt;
$(8, 25, 6, 0, 0)$,&lt;br /&gt;
$(8, 26, 0, 1, 0)$,&lt;br /&gt;
$(8, 26, 4, 0, 0)$,&lt;br /&gt;
$(8, 28, 3, 0, 0)$,&lt;br /&gt;
$(8, 32, 0, 0, 0)$,&lt;br /&gt;
$(9, 8, 10, 4, 0)$,&lt;br /&gt;
$(9, 9, 9, 4, 0)$,&lt;br /&gt;
$(9, 9, 12, 3, 0)$,&lt;br /&gt;
$(9, 10, 8, 4, 0)$,&lt;br /&gt;
$(9, 10, 10, 3, 0)$,&lt;br /&gt;
$(9, 10, 12, 2, 0)$,&lt;br /&gt;
$(9, 10, 13, 1, 0)$,&lt;br /&gt;
$(9, 10, 15, 0, 0)$,&lt;br /&gt;
$(9, 11, 11, 2, 0)$,&lt;br /&gt;
$(9, 12, 7, 4, 0)$,&lt;br /&gt;
$(9, 12, 9, 3, 0)$,&lt;br /&gt;
$(9, 12, 12, 1, 0)$,&lt;br /&gt;
$(9, 12, 14, 0, 0)$,&lt;br /&gt;
$(9, 13, 7, 3, 0)$,&lt;br /&gt;
$(9, 13, 10, 2, 0)$,&lt;br /&gt;
$(9, 14, 9, 2, 0)$,&lt;br /&gt;
$(9, 14, 11, 1, 0)$,&lt;br /&gt;
$(9, 14, 13, 0, 0)$,&lt;br /&gt;
$(9, 15, 6, 3, 0)$,&lt;br /&gt;
$(9, 16, 0, 4, 0)$,&lt;br /&gt;
$(9, 16, 4, 3, 0)$,&lt;br /&gt;
$(9, 16, 8, 2, 0)$,&lt;br /&gt;
$(9, 16, 10, 1, 0)$,&lt;br /&gt;
$(9, 16, 12, 0, 0)$,&lt;br /&gt;
$(9, 17, 3, 3, 0)$,&lt;br /&gt;
$(9, 17, 6, 2, 0)$,&lt;br /&gt;
$(9, 17, 8, 1, 0)$,&lt;br /&gt;
$(9, 17, 10, 0, 0)$,&lt;br /&gt;
$(9, 18, 2, 3, 0)$,&lt;br /&gt;
$(9, 18, 4, 2, 0)$,&lt;br /&gt;
$(9, 18, 7, 1, 0)$,&lt;br /&gt;
$(9, 18, 9, 0, 0)$,&lt;br /&gt;
$(9, 19, 0, 3, 0)$,&lt;br /&gt;
$(9, 19, 3, 2, 0)$,&lt;br /&gt;
$(9, 19, 6, 1, 0)$,&lt;br /&gt;
$(9, 20, 1, 2, 0)$,&lt;br /&gt;
$(9, 20, 5, 1, 0)$,&lt;br /&gt;
$(9, 20, 8, 0, 0)$,&lt;br /&gt;
$(9, 21, 4, 1, 0)$,&lt;br /&gt;
$(9, 21, 6, 0, 0)$,&lt;br /&gt;
$(9, 22, 1, 1, 0)$,&lt;br /&gt;
$(9, 22, 5, 0, 0)$,&lt;br /&gt;
$(9, 24, 4, 0, 0)$,&lt;br /&gt;
$(9, 25, 2, 0, 0)$,&lt;br /&gt;
$(9, 28, 0, 0, 0)$,&lt;br /&gt;
$(10, 8, 6, 4, 0)$,&lt;br /&gt;
$(10, 8, 8, 3, 0)$,&lt;br /&gt;
$(10, 9, 7, 3, 0)$,&lt;br /&gt;
$(10, 9, 10, 2, 0)$,&lt;br /&gt;
$(10, 9, 11, 1, 0)$,&lt;br /&gt;
$(10, 9, 13, 0, 0)$,&lt;br /&gt;
$(10, 10, 5, 4, 0)$,&lt;br /&gt;
$(10, 10, 9, 2, 0)$,&lt;br /&gt;
$(10, 10, 12, 0, 0)$,&lt;br /&gt;
$(10, 11, 6, 3, 0)$,&lt;br /&gt;
$(10, 12, 4, 4, 0)$,&lt;br /&gt;
$(10, 12, 5, 3, 0)$,&lt;br /&gt;
$(10, 12, 7, 2, 0)$,&lt;br /&gt;
$(10, 12, 10, 1, 0)$,&lt;br /&gt;
$(10, 12, 11, 0, 0)$,&lt;br /&gt;
$(10, 13, 6, 2, 0)$,&lt;br /&gt;
$(10, 13, 8, 1, 0)$,&lt;br /&gt;
$(10, 13, 10, 0, 0)$,&lt;br /&gt;
$(10, 14, 3, 3, 0)$,&lt;br /&gt;
$(10, 14, 5, 2, 0)$,&lt;br /&gt;
$(10, 14, 9, 0, 0)$,&lt;br /&gt;
$(10, 15, 2, 3, 0)$,&lt;br /&gt;
$(10, 15, 7, 1, 0)$,&lt;br /&gt;
$(10, 16, 4, 2, 0)$,&lt;br /&gt;
$(10, 16, 6, 1, 0)$,&lt;br /&gt;
$(10, 16, 8, 0, 0)$,&lt;br /&gt;
$(10, 17, 4, 1, 0)$,&lt;br /&gt;
$(10, 17, 6, 0, 0)$,&lt;br /&gt;
$(10, 18, 2, 1, 0)$,&lt;br /&gt;
$(10, 18, 5, 0, 0)$,&lt;br /&gt;
$(10, 20, 4, 0, 0)$,&lt;br /&gt;
$(10, 21, 2, 0, 0)$,&lt;br /&gt;
$(10, 22, 1, 0, 0)$,&lt;br /&gt;
$(10, 24, 0, 0, 0)$,&lt;br /&gt;
$(11, 4, 6, 4, 0)$,&lt;br /&gt;
$(11, 6, 5, 4, 0)$,&lt;br /&gt;
$(11, 7, 6, 3, 0)$,&lt;br /&gt;
$(11, 8, 4, 4, 0)$,&lt;br /&gt;
$(11, 8, 5, 3, 0)$,&lt;br /&gt;
$(11, 9, 6, 2, 0)$,&lt;br /&gt;
$(11, 9, 8, 1, 0)$,&lt;br /&gt;
$(11, 9, 10, 0, 0)$,&lt;br /&gt;
$(11, 10, 3, 3, 0)$,&lt;br /&gt;
$(11, 10, 5, 2, 0)$,&lt;br /&gt;
$(11, 10, 9, 0, 0)$,&lt;br /&gt;
$(11, 11, 2, 3, 0)$,&lt;br /&gt;
$(11, 11, 7, 1, 0)$,&lt;br /&gt;
$(11, 12, 4, 2, 0)$,&lt;br /&gt;
$(11, 12, 6, 1, 0)$,&lt;br /&gt;
$(11, 12, 8, 0, 0)$,&lt;br /&gt;
$(11, 13, 4, 1, 0)$,&lt;br /&gt;
$(11, 13, 6, 0, 0)$,&lt;br /&gt;
$(11, 14, 2, 1, 0)$,&lt;br /&gt;
$(11, 14, 5, 0, 0)$,&lt;br /&gt;
$(11, 16, 4, 0, 0)$,&lt;br /&gt;
$(11, 17, 2, 0, 0)$,&lt;br /&gt;
$(11, 18, 1, 0, 0)$,&lt;br /&gt;
$(11, 20, 0, 0, 0)$,&lt;br /&gt;
$(12, 4, 3, 3, 0)$,&lt;br /&gt;
$(12, 6, 2, 3, 0)$,&lt;br /&gt;
$(12, 6, 5, 2, 0)$,&lt;br /&gt;
$(12, 6, 7, 1, 0)$,&lt;br /&gt;
$(12, 6, 9, 0, 0)$,&lt;br /&gt;
$(12, 8, 4, 2, 0)$,&lt;br /&gt;
$(12, 8, 6, 1, 0)$,&lt;br /&gt;
$(12, 8, 8, 0, 0)$,&lt;br /&gt;
$(12, 9, 4, 1, 0)$,&lt;br /&gt;
$(12, 9, 6, 0, 0)$,&lt;br /&gt;
$(12, 10, 2, 1, 0)$,&lt;br /&gt;
$(12, 10, 5, 0, 0)$,&lt;br /&gt;
$(12, 12, 4, 0, 0)$,&lt;br /&gt;
$(12, 13, 2, 0, 0)$,&lt;br /&gt;
$(12, 14, 1, 0, 0)$,&lt;br /&gt;
$(12, 16, 0, 0, 0)$,&lt;br /&gt;
$(13, 6, 5, 0, 0)$,&lt;br /&gt;
$(13, 8, 4, 0, 0)$,&lt;br /&gt;
$(13, 9, 2, 0, 0)$,&lt;br /&gt;
$(13, 10, 1, 0, 0)$,&lt;br /&gt;
$(13, 12, 0, 0, 0)$,&lt;br /&gt;
$(14, 4, 3, 0, 0)$,&lt;br /&gt;
$(14, 5, 2, 0, 0)$,&lt;br /&gt;
$(14, 6, 1, 0, 0)$,&lt;br /&gt;
$(14, 8, 0, 0, 0)$,&lt;br /&gt;
$(15, 4, 0, 0, 0)$,&lt;br /&gt;
$(16, 0, 0, 0, 0)$}}&lt;br /&gt;
\caption{The Pareto-optimal statistics of Moser sets in $[3]^4$.  This table can also be found at {\tt http://spreadsheets.google.com/ccc?key=rwXB\_Rn3Q1Zf5yaeMQL-RDw}}&lt;br /&gt;
\label{table4}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This was computed by computer search as follows.  First, one observed that if $(a,b,c,d,e)$ was Pareto-optimal, then $a\geq 3$.  To see this, it suffices to show that for any Moser set $A \subset [3]^4$ with $a(A)=0$, it is possible to add three points from $S_{4,4}$ to $A$ and still have a Moser set.  To show this, suppose first that $A$ contains a point from $S_{1,4}$, such as $2221$. Then $A$ must omit either $2211$ or $2231$; without loss of generality we may assume that it omits $2211$. Similarly we may assume it omits $2121$ and $1221$. Then we can add $1131$, $1311$, $3111$ to $A$, as required. Thus we may assume that $A$ contains no points from $S_{1,4}$.  Now suppose that $A$ omits a point from $S_{2,4}$, such as $2211$. Then one can add $3333$, $3111$, $1311$ to $A$, as required. Thus we may assume that A contains all of $S_{2,4}$, which forces $A$ to omit $2222$, as well as at least one point from $S_{3,4}$, such as $2111$. But then $3111$, $1111$, $3333$ can be added to the set, a contradiction. &lt;br /&gt;
&lt;br /&gt;
Thus we only need to search through sets $A \subset [3]^4$ for which $|A \cap S_{4,4}| \geq 3$.  A straightforward computer search shows that up to the symmetries of the cube, there are $391$ possible choices for $A \cap S_{4,4}$.  For each such choice, we looped through all the possible values of the slices $A \cap 1***$ and $A \cap 3***$, i.e. all three-dimensional Moser sets which had the indicated intersection with $S_{3,3}$.  (For fixed $A \cap S_{4,4}$, the number of possibilities for $A \cap 1***$ ranges from $1$ to $87123$, and similarly for $A \cap 3***$).  For each pair of slices $A \cap 1***$ and $A \cap 3***$, we computed the lines connecting these two sets to see what subset of $2***$ was excluded from $A$; there are $2^{27}$ possible such exclusion sets.  We precomputed a lookup table that gave the Pareto-optimal statistics for $A \cap 2***$ for each such choice of exclusion set; using this lookup table for each choice of $A \cap 1***$ and $A \cap 3***$ and collating the results, we obtained the above list. On a linux cluster, the lookup table took 22 minutes to create, and the loop over the $A \cap 1***$ and $A \cap 3***$ slices took two hours, spread out over $391$ machines (one for each choice of $A \cap S_{4,4}$). Further details (including source code) can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=4D\_Moser\_brute\_force\_search}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this data, we have the following facts about the statistics of large Moser sets:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}\label{stat} Let $A \subset [3]^4$ be a Moser set with statistics $(a,b,c,d,e)$.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] If $|A| \geq 40$, then $e=0$.&lt;br /&gt;
\item[(ii)] If $|A| \geq 43$, then $d=0$.&lt;br /&gt;
\item[(iii)] If $|A| \geq 42$, then $d \leq 2$.&lt;br /&gt;
\item[(iv)] If $|A| \geq 41$, then $d \leq 3$.&lt;br /&gt;
\item[(v)] If $|A| \geq 40$, then $d \leq 6$.&lt;br /&gt;
\item[(vi)] If $|A| \geq 43$, then $c \geq 18$.&lt;br /&gt;
\item[(vii)] If $|A| \geq 42$, then $c \geq 12$.&lt;br /&gt;
\item[(viii)] If $|A| \geq 43$, then $b \geq 15$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{remark}  This proposition was first established by an integer program, see Appendix \ref{integer-sec}.  A computer-free proof can be found at \centerline{{\tt http://terrytao.files.wordpress.com/2009/06/polymath2.pdf}.}&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\subsection{Five dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{5,3}=124$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=125$.  &lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,f(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{fvan} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $f(A)$ is non-zero, then $A$ contains $22222$, then each of the $\frac{3^5-1}{2} = 121$ antipodal pairs in $[3]^5$ can have at most one point in $A$, leading to only $122$ points.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let us slice $[3]^5$ into three parallel slices, e.g. $1****, 2****, 3****$.  The intersection of $A$ with each of these slices has size at most $43$.  In particular, this implies that&lt;br /&gt;
\begin{equation}\label{boo}&lt;br /&gt;
 |A \cap 1****| + |A \cap 3****| = 125 - |A \cap 2****| \geq 82.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Thus at least one of $A \cap 1****$, $A \cap 3****$ has cardinality at least $41$; by Proposition \ref{stat}(iv) we conclude that&lt;br /&gt;
\begin{equation}\label{d13}&lt;br /&gt;
\min( d(1****), d(3****) ) \leq 3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Furthermore, equality can only hold in \eqref{d13} if $A \cap 1****$, $A \cap 3****$ both have cardinality exactly $41$, in which case from Proposition \ref{stat}(iv) again we must have&lt;br /&gt;
\begin{equation}\label{d13a}&lt;br /&gt;
d(1****)=d(3****)=3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Of course, we have a similar result for permutations.&lt;br /&gt;
&lt;br /&gt;
Now we improve the bound $|A \cap 2****| \leq 43$:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $|A \cap 2****| \leq 41$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose first that $|A \cap 2****|=43$.  Let $A&#039; \subset [3]^4$ be the subset of $[3]^4$ corresponding to $A \cap 2****$, thus $A&#039;$ is a Moser set of cardinality $43$.  By Proposition \ref{stat}(vi), $c(A&#039;) \geq 18$.  By Lemma \ref{dci}, the sum of the $c(V)$, where $V$ ranges over the eight side slices of $[3]^4$, is therefore at least $36$.  By the pigeonhole principle, we may thus find two opposing side slices, say $1***$ and $3***$, with $c(1***)+c(3****) \geq 9$.  Since $c(1***), c(3***)$ cannot exceed $6$, we thus have $c(1***), c(3***) \geq 3$, with at least one of $c(1***), c(3***)$ being at least $5$.  Passing back to $A$, this implies that $d(*1***), d(*3***) \geq 3$, with at least one of $d(*1***), d(*3***)$ being at least $5$.  But this contradicts \eqref{d13} together with the refinement \eqref{d13a}.&lt;br /&gt;
&lt;br /&gt;
We have just shown that $|A \cap 2****| \leq 42$; we can thus improve \eqref{boo} to&lt;br /&gt;
$$ |A \cap 1****| + |A \cap 3****| \geq 83.$$&lt;br /&gt;
Combining this with Proposition \ref{stat}(ii)-(v) we see that&lt;br /&gt;
\begin{equation}\label{d13-6}&lt;br /&gt;
 d(1****)+d(3****) \leq 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
with equality only if $|A \cap 2****|=42$, and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
Now let $A&#039;$ be defined as before.  Then we have&lt;br /&gt;
$$ c(1***) + c(3***) \leq 6$$&lt;br /&gt;
and similarly for permutations.  Applying Lemma \ref{dci}, this implies that $c(2****) = c(A&#039;) \leq 12$.&lt;br /&gt;
&lt;br /&gt;
Now suppose for contradiction that $|A&#039;|=|A \cap 2****|=42$.  Then by Proposition \ref{stat}(vii) we have &lt;br /&gt;
\begin{equation}\label{coo-1}&lt;br /&gt;
c(2****) = 12; &lt;br /&gt;
\end{equation}&lt;br /&gt;
applying Lemma \ref{dci} again, this forces $c(1***)+c(3***)=6$ and similarly for permutations, which then implies that&lt;br /&gt;
\begin{equation}\label{doo}&lt;br /&gt;
d(*1***)+d(*3***) = d(**1**)+d(**3**) = d(***1*)+d(***3*) = d(****1)+d(****3) = 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
and hence&lt;br /&gt;
$$ |A \cap *2***| = |A \cap **2**| = |A \cap ***2*| = |A \cap ****2| = 42$$&lt;br /&gt;
and thus&lt;br /&gt;
\begin{equation}\label{coo-2}&lt;br /&gt;
c(*2***) = c(**2**) = c(***2*) = c(****2) = 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Combining \eqref{coo-1}, \eqref{doo}, \eqref{coo-2} we conclude that&lt;br /&gt;
$$ d(1****)+d(3****) = 16,$$&lt;br /&gt;
contradicting \eqref{d13-6}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
With this proposition, the bound \eqref{boo} now improves to&lt;br /&gt;
\begin{equation}\label{84}&lt;br /&gt;
|A \cap 1****| + |A \cap 3****| \geq 84&lt;br /&gt;
\end{equation}&lt;br /&gt;
and in particular&lt;br /&gt;
\begin{equation}\label{41}&lt;br /&gt;
|A \cap 1****|, |A \cap 3****| \geq 41.&lt;br /&gt;
\end{equation}&lt;br /&gt;
from this and Proposition \ref{stat}(ii)-(iv) we now have&lt;br /&gt;
\begin{equation}\label{d13-improv}&lt;br /&gt;
 d(1****)+d(3****) \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{evan} $e(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From \eqref{84}, the intersection of $A$ with any side slice has cardinality at least $41$, and thus by Proposition \ref{stat}(i) such a side slice has an $e$-statistic of zero.  The claim then follows from Lemma \ref{dci}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We need a technical lemma:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{tech} Let $B \subset S_{5,5}$.  Then there exist at least $|B|-4$ pairs of strings in $B$ which differ in exactly two positions.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} The first non-vacuous case is $|B|=5$.  It suffices to establish this case, as the higher cases then follow by induction (locating a pair of the desired form, then deleting one element of that pair from $B$).&lt;br /&gt;
&lt;br /&gt;
Suppose for contradiction that one can find a $5$-element set $B \subset S_{5,5}$ such that no two strings in $B$ differ in exactly two positions.  Recall that we may split $S_{5,5}=S_{5,5}^e \cup S_{5,5}^o$, where $S_{5,5}^e$ are those strings with an even number of $1$&#039;s, and $S_{5,5}^o$ are those strings with an odd number of $1$&#039;s.  By the pigeonhole principle and symmetry we may assume $B$ has at least three elements in $S_{5,5}^o$.  Without loss of generality, we can take one of them to be $11111$, thus excluding all elements in $S_{5,5}^o$ with exactly two $3$s, leaving only the elements with exactly four $3$s.  But any two of them differ in exactly two positions, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now improve the trivial bound $c(A) \leq 80$:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Non-maximal $c$]\label{cmax} $c(A) \leq 79$.  If $a(A) \geq 7$, then $c(A) \leq 78$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $c(A)=80$, then $A$ contains all of $S_{3,5}$, which then implies that no two elements in $A \cap S_{5,5}$ can differ in exactly two places.  It also implies (from \eqref{alpha-1}) that $d(A)$ must vanish, and that $b(A)$ is at most $40$. By Lemma \ref{tech}, we also have that $a(A) = |A \cap S_{5,5}|$ is at most $4$.  Thus $|A| \leq 4 + 40 + 80 + 0 + 0 = 124$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $a(A) \geq 7$.  Then by Lemma \ref{tech} there are at least three pairs in $A \cap S_{5,5}$ that differ in exactly two places.  Each such pair eliminates one point from $A \cap S_{3,5}$; but each point in $S_{3,5}$ can be eliminated by at most two such pairs, and so we have at least two points eliminated from $A \cap S_{3,5}$, i.e. $c(A) \leq 78$ as required.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Next, we rewrite the quantity $125=|A|$ in terms of side slices.  From Lemmas \ref{fvan}, \ref{evan} we have&lt;br /&gt;
$$ a(A) + b(A) + c(A) + d(A) = 125$$&lt;br /&gt;
and hence by Lemma \ref{dci}, the quantity&lt;br /&gt;
$$ s(V) := a(V) + \frac{5}{4} b(V) + \frac{5}{3} c(V) + \frac{5}{2} d(V) - \frac{125}{2},$$&lt;br /&gt;
where $V$ ranges over side slices, has an average value of zero.  &lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Large values of $s(V)$]\label{suv}  For all side slices, we have $s(V) \leq 1/2$.  Furthermore, we have $s(V) &amp;lt; -1/2$ unless the statistics $(a(V), b(V), c(V), d(V), e(V))$ are of one of the following four cases:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Type 1) $(a(V),b(V),c(V),d(V),e(V)) = (2,16,24,0,0)$ (and $s(V) = -1/2$ and $|A \cap V| = 42$);&lt;br /&gt;
\item (Type 2) $(a(V),b(V),c(V),d(V),e(V)) = (4,16,23,0,0)$ (and $s(V) = -1/6$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 3) $(a(V),b(V),c(V),d(V),e(V)) = (4,15,24,0,0)$ (and $s(V) = 1/4$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 4) $(a(V),b(V),c(V),d(V),e(V)) = (3,16,24,0,0)$ (and $s(V) = 1/2$ and $|A \cap V| = 43$);&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $V$ be a side slice.  From \eqref{41} we have&lt;br /&gt;
$$ 41 \leq a(V)+b(V)+c(V)+d(V) = |A \cap V| \leq 43.$$&lt;br /&gt;
First suppose that $|A \cap V| = 43$, then from Proposition \ref{stat}(ii), (viii), $d(V)=0$ and $b(V) \geq 15$.&lt;br /&gt;
Also, we have the trivial bound $c(V) \leq 24$, together with the inequality&lt;br /&gt;
$$ 3b(V) + 2c(V) \leq 96$$&lt;br /&gt;
from \eqref{alpha-1}.  To exploit these facts, we rewrite $s(V)$ as&lt;br /&gt;
$$ s(V) = \frac{1}{2} - \frac{1}{2}( 24 - c(V) ) - \frac{1}{12} (96-3b(V)-2c(V)).$$&lt;br /&gt;
Thus $s(V) \leq 1/2$ in this case.  If $s(V) \geq -1/2$, then&lt;br /&gt;
$$ 6 (24-c(V)) + (96-3b(V)-2c(V)) \leq 12,$$&lt;br /&gt;
which together with the inequalities $b(V) \leq 15$, $c(V) \leq 24$, $3b(V)+2c(V) \leq 96$ we conclude that $(b(V),c(V))$ must be one of $(16,24)$, $(15, 24)$, $(16, 23)$, $(15, 23)$.  The first three possibilities lead to Types 4,3,2 respectively.  The fourth type would lead to $(a(V),b(V),c(V),d(V),e(V)) = (5,15,23,0,0)$, but this contradicts \eqref{eleven}.&lt;br /&gt;
&lt;br /&gt;
Next, suppose $|A \cap V| = 42$, so by Proposition \ref{stat}(iii) we have $d(V) \leq 2$.  From \eqref{alpha-1} we have&lt;br /&gt;
\begin{equation}\label{2cd}&lt;br /&gt;
2c(V) + 3d(V) \leq 48&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from \eqref{alpha-2} we have&lt;br /&gt;
\begin{equation}\label{3cd}&lt;br /&gt;
3b(V)+2c(V)+3d(V) \leq 96&lt;br /&gt;
\end{equation}&lt;br /&gt;
and so we can rewrite $s(V)$ as&lt;br /&gt;
\begin{equation}\label{sv2}&lt;br /&gt;
s(V) = -\frac{1}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V).&lt;br /&gt;
\end{equation}&lt;br /&gt;
This already gives $s(V) \leq 1/2$.  If $d(V)=0$, then $s(V) \leq -1/2$, with equality only in Type 1.  If $d(V)=1$, then the set $A&#039; \subset [3]^4$ corresponding to $A \cap V$ contains a point in $S_{3,4}$, which without loss of generality we can take to be $2221$.  Considering the three lines $*221$, $2*21$, $22*1$, we see that at least three points in $S_{2,4}$ must be missing from $A&#039;$, thus $c(V) \leq 21$.  This forces $48-2c(V)-3d(V) \geq 3$, and so $s(V) &amp;lt; -3/4$.  Finally, if $d(V)=2$, then $A&#039;$ contains two points in $S_{3,4}$.  If they are antipodal (e.g. $2221$ and $2223$), the same argument as above shows that at least six points in $S_{2,4}$ are missing from $A&#039;$; if they are not antipodal (e.g. $2221$ and $2212$) then by considering the lines $*221$, $2*21$, $22*1$, $*212$, $2*12$ we see that five points are missing.  Thus we have $c(V) \leq 19$, which forces $48-2c(V)-3d(V) \geq 4$.  This forces $s(V) \leq -1/2$, with equality only when $c(V)=19$ and $3b(V)+2c(V)+3d(V)=96$, but this forces $b(V)$ to be the non-integer $52/3$, a contradiction, which concludes the treatment of the $|A \cap V|=42$ case.&lt;br /&gt;
&lt;br /&gt;
Finally, suppose $|A \cap V| = 41$.  Using \eqref{2cd}, \eqref{3cd} as before we have&lt;br /&gt;
\begin{equation}\label{sv3}&lt;br /&gt;
 s(V) = -\frac{3}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V),&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from Proposition \ref{stat}(vi) we have $d(V) \leq 3$.  This already gives $s(V) \leq 0$, and $s(V) \leq -1$ when $d(V)=1$.  In order to have $s(V) \geq -1/2$, we must then have $d(V)=2$ or $d(V)=3$.  But then the arguments of the preceding paragraph give $48-2c(V)-3d(V) \geq 4$, and so $s(V) \leq -1$ in this case.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Since the $s(V)$ average to zero, by the pigeonhole principle we may find two opposing side slices (e.g. $1****$ and $3****$), whose total $s$-value is non-negative.  Actually we can do a little better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{side-off} There exists two opposing side slices whose total $s$-value is strictly positive.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If this is not the case, then we must have $s(1****)+s(3****)=0$ and similarly for permutations.  Using Proposition \ref{suv} we thus see that for every opposing pair of side slices, one is Type 1 and one is Type 4.  In particular $c(V)=24$ for all side slices $V$.  But then by Lemma \ref{dci} we have $c(A)=80$, contradicting Lemma \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let $V, V&#039;$ be the side slices in Lemma \ref{side-off}&lt;br /&gt;
By Proposition \ref{suv}, the $V, V&#039;$ slices must then be either Type 2, Type 3, or Type 4, and they cannot both be Type 2.  Since $a(A) = a(V)+a(V&#039;)$, we conclude&lt;br /&gt;
\begin{equation}\label{amix}&lt;br /&gt;
6 \leq a(A) \leq 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
In a similar spirit, we have&lt;br /&gt;
$$ c(V) + c(V&#039;) \leq 23+24.$$&lt;br /&gt;
On the other hand, by considering the $24$ lines connecting $c$-points of $V, V&#039;$ to $c$-points of the centre slice $W$ between $V$ and $V&#039;$, each of which contains at most two points in $A$, we have&lt;br /&gt;
$$ c(V) + c(W) + c(V&#039;) \leq 24 \times 2.$$&lt;br /&gt;
Thus $c(W) \leq 1$; since&lt;br /&gt;
$$ d(A) = d(V) + d(V&#039;) + c(W)$$&lt;br /&gt;
we conclude from Proposition \ref{suv} that $d(A) \leq 1$.  Actually we can do better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $d(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that $d(A)=1$; without loss of generality we may take $11222 \in A$.  This implies that $d(1****)=d(*1***)=1$.  Also, by the above discussion, $c(**1**)$ and $c(**3**)$ cannot both be $24$, so by Proposition \ref{suv}, $s(**1**)+s(**3**) \leq 1/3$; similarly&lt;br /&gt;
$s(***1*)+s(***3*) \leq 1/3$ and $s(****1)+s(****3) \leq 1/3$.  Since the $s$ average to zero, we see from the pigeonhole principle that either $s(1****)+s(3****) \geq -1/2$ or $s(*1***)+s(*3***) \geq -1/2$.  We may assume by symmetry that &lt;br /&gt;
\begin{equation}\label{star-2}&lt;br /&gt;
s(1****)+s(3****) \geq -1/2.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Since $s(3****) \leq 1/2$ by Proposition \ref{suv}, we conclude that&lt;br /&gt;
\begin{equation}\label{star}&lt;br /&gt;
 s(1****) \geq -1.&lt;br /&gt;
\end{equation}&lt;br /&gt;
If $|A \cap 1****|=41$, then by \eqref{sv3} we have&lt;br /&gt;
$$ s(1****) = -1 - \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
but the arguments in Proposition \ref{suv} give $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$, a contradiction.  So we must have $|A \cap 1****|=42$ (by Proposition \ref{stat}(ii) and \eqref{41}).  In that case, from \eqref{sv2} we have&lt;br /&gt;
$$ s(1****) = \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
while also having $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$.  Since $s(1****) \geq -1$ and $d(1****)=1$, we soon see that we must have $48 - 2c(1****) - 3d(1****) = 3$ and $96-3b(1****)-2c(1****)-3d(1****) \leq 3$, which forces $c(1****)=21$ and $b(1****)=16$ or $b(1****)=17$; thus the statistics of $1****$ are either $(4,16,21,1,0)$ or $(3,17,21,1,0)$.&lt;br /&gt;
&lt;br /&gt;
We first eliminate the $(3,17,21,1,0)$ case.  In this case $s(1****)$ is exactly $-1$.  Inspecting the proof of \eqref{star}, we conclude that $s(3****)$ must be $+1/2$ and that $s(**1**)+s(**3**)=1/3$.  From the former fact and Proposition \ref{suv} we see that $a(A) = a(1****)+a(3****)=3+3=6$; on the other hand, from the latter fact and Proposition \ref{suv} we have $a(A) = a(**1**)+a(**3**) = 4+3=7$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
So $1****$ has statistics $(4,16,21,1,0)$, which implies that $s(1****)=-3/4$ and $|A \cap 1****|=42$.  By \eqref{star-2} we conclude &lt;br /&gt;
\begin{equation}\label{s3}&lt;br /&gt;
s(3****) \geq 1/4,&lt;br /&gt;
\end{equation} &lt;br /&gt;
which by Proposition \ref{suv} implies that $|A \cap 3****|=43$, and hence $|A \cap 2****|=40$.  On the other hand, since $e(A)=f(A)=0$ and $d(A)=1$, with the latter being caused by $11222$, we see that $c(2****)=d(2****)=e(2****)=0$.  From \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$, and we also have the trivial inequality $b(2****) \leq 32$; these inequalities are only compatible if $2****$ has statistics $(8,32,0,0,0)$, thus $A \cap 2****$ contains $S_{2,5} \cap 2****$.&lt;br /&gt;
&lt;br /&gt;
If $a(3****)=4$, then $a(A)=a(1****)+a(3****)=8$, which by Proposition \ref{suv} implies that $s(**1**)+s(**3**)$ cannot exceed $1/12$, and similarly for permutations.  On the other hand, from Proposition \ref{suv} $s(**1**)+s(**3**)$ cannot exceed $-3/4 + 1/4 = -1/2$, and so the average value of $s$ cannot be zero, a contradiction.  Thus $a(3****) \neq 4$, which by \eqref{s3} and Proposition \ref{suv} implies that $**3**$ has statistics $(3,16,24,0,0)$.&lt;br /&gt;
&lt;br /&gt;
In particular, $A$ contains $16$ points from $3**** \cap S_{1,5}$ and all of $3**** \cap S_{2,5}$.  As a consequence, no pair of the $16$ points in $A \cap 3**** \cap S_{1,5}$ can differ in only one coordinate; partitioning the $32$-point set $3**** \cap S_{1,5}$ into $16$ such pairs, we conclude that every such pair contains exactly one element of $A$.  We conclude that $A \cap 3**** \cap S_{1,5}$ is equal to either $3**** \cap S_{1,5}^e$ or $3**** \cap S_{1,5}^o$.&lt;br /&gt;
&lt;br /&gt;
On the other hand, $A$ contains all of $2**** \cap S_{2,5}$, and exactly sixteen points from $1**** \cap S_{1,5}$.  Considering the vertical lines $*xyzw$ where $xyzw \in S_{1,4}$, we conclude that $A \cap 1**** \cap S_{1,5}$ is either equal to $1**** \cap S_{1,5}^o$ or $1**** \cap S_{1,5}^e$.&lt;br /&gt;
But either case is incompatible with the fact that $A$ contains $11222$ (consider either the line $11xx2$ or $11x\overline{x}2$, where $x=1,2,3$ and $\overline{x}=4-x$), obtaining the required contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now eliminate all but three cases for the statistics of $A$:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Statistics of $A$]  The statistics $(a(A),b(A),c(A),d(A),e(A),f(A))$ of $A$ must be one of the following three tuples:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Case 1) $(6,40,79,0,0)$;&lt;br /&gt;
\item (Case 2) $(7,40,78,0,0)$;&lt;br /&gt;
\item (Case 3) $(8,39,78,0,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Since $d(A)=e(A)=f(A)=0$, we have&lt;br /&gt;
$$ c(2****)=d(2****)=e(2****)=0.$$&lt;br /&gt;
On the other hand, from \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$ as well as the trivial inequality $b(2****) \leq 24$, and also we have&lt;br /&gt;
$$ |A \cap 2****| = 125 - |A \cap 1****| - |A \cap 3****| \geq 125 - 43 - 43 = 39.$$&lt;br /&gt;
Putting all this together, we see that the only possible statistics for $2****$ are $(8,32,0,0,0)$, $(7,32,0,0,0)$, or $(8,31,0,0,0)$.  In particular, $7 \leq a(2****) \leq 8$ and $31 \leq b(2****) \leq 32$, and similarly for permutations. Applying Lemma \ref{dci} we conclude that&lt;br /&gt;
$$ 35 \leq b(A) \leq 40$$&lt;br /&gt;
and&lt;br /&gt;
$$ 77.5 \leq c(A) \leq 80.$$&lt;br /&gt;
Combining this with the first part of Corollary \ref{cmax} we conclude that $c(A)$ is either $78$ or $79$.  From this and \eqref{amix} we see that the only cases that remain to be eliminated are $(7,39,79,0,0)$ and $(8,38,79,0,0)$, but these cases are incompatible with the second part of Corollary \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We now eliminate each of the three remaining cases in turn.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(6,40,79,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has six points.  By Lemma \ref{tech}, there are at least two pairs in this set which differ in two positions.  Their midpoints are eliminated from $A \cap S_{3,5}$.  But $A$ omits exactly one point from $S_{3,5}$, so these midpoints must be the same.  By symmetry, we may then assume that these two pairs are $(11111,11133)$ and $(11113,11131)$.  Thus the eliminated point in $S_{3,5}$ is $11122$, i.e. $A$ contains $S_{3,5} \backslash \{11122\}$.  Also, $A$ contains $\{11111,11133,11113,11131\}$ and thus must omit $\{11121, 11123, 11112, 11132\}$.&lt;br /&gt;
&lt;br /&gt;
Since $11322 \in A$, at most one of  $11312, 11332$ lie in $A$. By symmetry we may assume $11312 \not \in A$, thus there is a pair $(xy1z2, xy3z2)$ with $x,y,z = 1,3$ that is totally omitted from $A$, namely $(11112,11312)$. On the other hand, every other pair of this form can have at most one point in the $A$, thus there are at most seven points in $A$ of the form $xyzw2$ with $x,y,z,w = 1,3$. Similarly there are at most 8 points of the form $xyz2w$, or of $xy2zw$, $x2yzw$, $2xyzw$, leading to $b(A) \leq 7+8+8+8+8=39$, contradicting the statistic $b(A)=40$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(7,40,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has seven points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of the midpoints of these pairs must be the same; thus, as in the previous section, we may assume that $A$ contains $\{11111,11133,11113,11131\}$ and omits $\{11121, 11123, 11112, 11132\}$ and $11122$.&lt;br /&gt;
&lt;br /&gt;
Now consider the $160$ lines $\ell$ connecting two points in $S_{4,5}$ to one point in $S_{3,5}$ (i.e. $*2xyz$ and permutations, where $x,y,z=1,3$).  By double counting, the total sum of $|\ell \cap A|$ over all $160$ lines is $4b(A)+2c(A) = 316 = 158 \times 2$.  On the other hand, each of these lines contain at most two points in $A$, but two of them (namely $1112*$ and $1112*$) contain no points.  Thus we must have $|\ell \cap A|=2$ for the remaining $158$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Since $A$ omits $1112x$ and $111x2$ for $x=1,3$, we thus conclude (by considering the lines $11*2x$ and $11*x2$) that $A$ must contain $1132x$, $113x2$, $1312x$, and $131x2$.  Taking midpoints, we conclude that $A$ omits $11322$ and $13122$.  But together with $11122$ this implies that at least three points are missing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(8,39,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Now $A \cap S_{5,5}$ has eight points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of these pairs $(a,b), (c,d)$ must have the same midpoint $p$, and two other pairs $(a&#039;,b&#039;), (c&#039;,d&#039;)$ must have the same midpoint $p&#039;$, and $A$ contains $S_{3,5} \backslash \{p,p&#039;\}$.  As $p,p&#039;$ are distinct, the plane containing $a,b,c,d$ is distinct from the plane containing $a&#039;,b&#039;,c&#039;,d&#039;$.&lt;br /&gt;
&lt;br /&gt;
Again consider the $160$ lines $\ell$ from the previous section.  This time, the sum of the $|\ell \cap A|$ is $4b(A)+2c(A) = 312 = 156 \times 2$.&lt;br /&gt;
But the two lines in the plane of $a,b,c,d$ passing through $p$, and the two lines in the plane of $a&#039;,b&#039;,c&#039;,d&#039;$ passing through $p&#039;$, have no points; thus we must have $|\ell \cap A|=2$ for the remaining $156$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have $(a,b)=(11111,11133)$, $(c,d) = (11113,11131)$, thus $p = 11122$. By permuting the first three indices, we may assume that $p&#039;$ is not of the form $x2y2z, x2yz2, xy22z, xy2z2$ for any $x,y,z=1,3$. Then we have $1112x \not \in A$ and $1122x \in A$ for every $x=1,3$, so by the preceding paragraph we have $1132x \in A$; similarly for $113x2, 1312x, 131x2$. Taking midpoints, this implies that $13122, 11322 \not \in A$, but this (together with 11122) shows that at least three points aremissing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Six dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{6,3}=353$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=354$.&lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,g(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{g6} $g(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
  &lt;br /&gt;
\begin{proof} For any four-dimensional slice $V$ of $A$, define &lt;br /&gt;
$$S(V) := 15 a(V) + 5 b(V) + 5 c(V)/2 + 3d(V)/2 + e(V).$$&lt;br /&gt;
From Lemma \ref{dci} we see that $|A|$ is equal to $a(A)+b(A)$ plus the average of $S(V)$ where $V$ ranges over the twenty slices which are some permutation of the center slice $22****$.&lt;br /&gt;
&lt;br /&gt;
If $g(A)=1$, then $a(A) \leq 32$ and $b(A) \leq 96$ by \eqref{alpha-1}.  Meanwhile, $e(V)=g(A)=1$ for every center slice $V$, so from Lemma \ref{paretop-4}, one can show that $S(V) \leq 223.5$ for every such slice.  We conclude that $|A| \leq 351.5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
For any four-dimensional slice $V$ of $A$, define the \emph{defects} to be&lt;br /&gt;
$$ D(V) := 356 - [4a(V)+6b(V)+10c(V)+20d(V)+60e(V)].$$&lt;br /&gt;
Define a \emph{corner slice} to be one of the permutations or reflections of $11****$, thus there are $60$ corner slices.  From Lemma \ref{dci} we see that $356-|A|+f(A)=2+f(A)$ is the average of the defects of all the $60$ corner slices.  On the other hand, from Lemma \ref{paretop-4} and a straightforward computation, one concludes&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{defects}  Let $A$ be a four-dimensional Moser set.  Then $D(A) \geq 0$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $A$ has statistics $(6,12,18,4,0)$, then $D(A)=0$.&lt;br /&gt;
\item If $A$ has statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$, then $D(A)=4$.&lt;br /&gt;
\item For all other $A$, $D(A) \geq 6$.&lt;br /&gt;
\item If $a(A) = 4$, then $D(A) \geq 8$.&lt;br /&gt;
\item If $a(A) \geq 7$, then $D(A) \geq 16$.&lt;br /&gt;
\item If $a(A) \geq 8$, then $D(A) \geq 30$.&lt;br /&gt;
\item If $a(A) \geq 9$, then $D(A) \geq 86$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{family} to be a set of four parallel corner slices, thus there are $15$ families, which are all a permutation of $\{11****, 13****, 31****, 33**** \}$.  We refer to the family $\{11****, 13****, 31****, 33**** \}$ as $ab****$, and similarly define the family $a*b***$, etc.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{f6} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  For any four-dimensional slice $V$ of $A$, define&lt;br /&gt;
$$ s(V) := 12 a(V)+15 b(V)/2+20 c(V)/3+15 d(V)/2 + 12 e(V),$$&lt;br /&gt;
and define an \emph{edge slice} to be one of the $30$ permutations or reflections of $12****$.  From double counting we see that $|A|-a(A)$ is equal to the average of the $30$ values of $s(V)$ as $V$ ranges over edge slices.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{paretop-4} one can verify that $s(V) \leq 336$, and that $s(V) \leq 296 = 336-40$ if $e(V)=1$.  The number of edge slices $V$ for which $e(V)=1$ is equal to $5f(A)$, and so the average value of the $s(V)$ is at most $336 - \frac{40 \times 5}{30} f(A)$, and so&lt;br /&gt;
$$ |A| - a(A) \leq 336 - \frac{40 \times 5}{30} f(A)$$&lt;br /&gt;
which we can rearrange (using $|A|=354$) as&lt;br /&gt;
$$ a(A) \geq 18 + \frac{20}{3} f(A).$$&lt;br /&gt;
Suppose first that $f(A)=1$; then $a(A) \geq 25$.  This means that in any given family, one of the four corner slices has an $a$ value of at least $7$, and thus by Lemma \ref{defects} has a defect of at least $16$.  Thus the average defect is at least $4$; on the other hand, the average defect is $2+f(A)=3$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $f(A) \geq 2$; then $a(A) \geq 32$.   Then in any given family, there is a corner slice with an $a$ value at least $9$, or four slices with $a$ value at least $8$, leading to a total defect of at least $86$ by Lemma \ref{defects}.  Thus the average defect is at least $21.5$; on the other hand, the average defect is $2+f(A) \leq 2+12$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of the above lemma, we see that the average defect of all corner slices is $2$, or equivalently that the total defect of these slices is $120$.&lt;br /&gt;
&lt;br /&gt;
Call a corner slice \emph{good} if it has statistics $(6,12,18,4,0)$, and \emph{bad} otherwise.  Thus good slices have zero defect, and bad slices have defect at least four.  Since the average defect of the $60$ corner slices is $2$, there are at least $30$ good slices.&lt;br /&gt;
&lt;br /&gt;
One can describe the structure of the good slices completely:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{sixt}  The subset of $[3]^4$ consisting of the strings $1111, 1113, 3333, 1332, 1322, 1222, 3322$ and permutations is a Moser set with statistics $(6,12,18,4,0)$.  Conversely, every Moser set with statistics $(6,12,18,4,0)$ is of this form up to the symmetries of the cube $[3]^4$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified by computer.  By symmetry, one assumes 1222,2122,2212 and 2221 are in the set.  Then 18 of the 24 &#039;c&#039; points with two 2s must be included; it is quick to check that 1122 and permutations must be the six excluded.  Next, one checks that the only possible set of six &#039;a&#039; points with no 2s is 1111,1113,3333 and permutations.  Lastly, in a rather longer computation, one finds there is only possible set of twelve &#039;b&#039; points, that is points with one 2.  A computer-free proof can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Classification\_of\_\%286\%2C12\%2C18\%2C4\%2C0\%29\_sets}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this lemma, given any $x,y,z,w \in \{1,3\}$, there is a unique good Moser set in $[3]^4$ set whose intersection with $S_{1,4}$ is $\{x222, 2y22, 22z2, 222w\}$, and these are the only 16 possibilities. Call this set the \emph{good set of type $xyzw$}. It consists of&lt;br /&gt;
\begin{itemize} &lt;br /&gt;
\item The four points $x222, 2y22, 22z2, 222w$ in $S_{1,4}$;&lt;br /&gt;
\item All $24$ elements of $S_{2,4}$ except for $xy22, x2z2, x22w, 2yz2, 2y2w, 22zw$;&lt;br /&gt;
\item The twelve points $xYZ2$, $xY2W$, $x2ZW$, $XyZ2$, $Xy2W$, $2yZW$, $XYz2$, $X2zW$, $2YzW$, $XY2w$, $X2Zw$, $2YZw$ in $S_{3,4}$, where $X=4-x$, $Y=4-y$, $Z=4-z$, $W=4-w$;&lt;br /&gt;
\item The six points $xyzw, xyzW, xyZw, xYzw, Xyzw, XYZW$ in $S_{4,4}$.&lt;br /&gt;
\end{itemize} &lt;br /&gt;
&lt;br /&gt;
We can use this to constrain the types of two intersecting good slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{pqs} Suppose that the $pq****$ slice is of type $xyzw$, and the $p*r***$ slice is of type $x&#039;y&#039;z&#039;w&#039;$, where $p,q,r,x,y,z,w,x&#039;,y&#039;,z&#039;,w&#039;$ are in $\{1,3\}$. Then $x&#039;=x$ iff $q=r$, and $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$. If $x=r$ (or equivalently if $x&#039;=q$), then $y&#039;z&#039;w&#039;=yzw$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} By reflection symmetry we can take $p=q=r=1$. Observe that the $11****$ slice contains $111222$ iff $x=1$, and the $1*1***$ slice similarly contains $111222$ iff $x&#039;=1$. This shows that $x=x&#039;$.&lt;br /&gt;
&lt;br /&gt;
Suppose now that $x=x&#039;=1$. Then the $111***$ slice contains the three elements $111y22, 1112z2, 11122w$, and excludes $111Y22, 1112Z2, 11122W$, and similarly with the primes, which forces $yzw=y&#039;z&#039;w&#039;$ as claimed.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $x=x&#039;=3$. Then the $111***$ slice contains the two elements $111yzw, 111YZW$, but does not contain any of the other six points in $S_{6,6} \cap 111***$, and similarly for the primes. Thus $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$ as claimed. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two adjacent parallel good slices, such as $11****$ and $13****$.  The following lemma asserts that such slices either have opposite type, or else will create a huge amount of defect in other slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l18} Suppose that the $11****$ and $13****$ slices are good with types $xyzw$ and $x&#039;y&#039;z&#039;w&#039;$ respectively. If $x=x&#039;$, then the $1*x***$ slice has defect at least $30$, and the $1*X***$ slice has defect at least $8$. Also, the $1**1**$, $1**3**$, $1***1*$, $1***3*$, $1****1$, $1****3$ slices have defect at least $6$. In particular, the total defect of slices beginning with $1*$ is at least $74$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Observe from the $11****, 13****$ hypotheses that $a(1*x***)=9$ and $a(1*X***)=4$, which gives the first two claims by Lemma \ref{defects}.  For the other claims, one sees from Lemma \ref{pqs} that the other six slices cannot be good; also, they have an $a$-value of $6$ and a $d$-value of at most $7$, and the claims then follow from Lemma \ref{defects}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two diagonally opposite parallel good slices, such as $11****$ and $33****$. &lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l14} The $11****$ and $33****$ slices cannot both be good and of the same type.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****$ and $33****$ are of type $1111$. This excludes a lot of points from $22****$. Indeed, by connecting lines between the $11****$ and $33****$ slices, we see that the only points that can still survive in $22****$ are $221133, 221333, 221132, 223332$, and permutations of the last four indices. Double counting the lines $22133*$ and permutations we see that there are at most $12$ points one can place in the permutations of $221133, 221333, 221132$, and so the $22****$ slice has at most $16$ points. Meanwhile, the two five-dimensional slices $1*****, 3*****$ have at most $c&#039;_{5,3} = 124$ points, and the other two four-dimensional slices $21****, 23****$ have at most $c&#039;_{4,3} = 43$ points, leading to at most $16 + 124 * 2 + 43 * 2 = 350$ points in all, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
\begin{lemma}\label{l19} It is not possible for all four slices in a family to be good.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****, 13****, 31****, 33****$ are good.   By Lemma \ref{l14}, the $11****$ and $33****$ slices cannot be of the same type, and so they cannot both be of the opposite type to either $13****$ or $31****$. If $13****$ is not of the opposite type to $11****$, then by (a permutation of) Lemma \ref{l18}, the total defect of slices beginning with $1*$ is at least $74$; otherwise, if $13****$ is not of the opposite type to $33****$, then by (a permutation and reflection of) Lemma \ref{l18}, the total defect of slices beginning with $*3$ is at least $74$. Similarly, the total defect of slices beginning with $3*$ or $*1$ is at least $74$, leading to a total defect of at least $148$. But the total defect of all the corner slices is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{l20} At most one family can have a total defect of at least $38$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose there are two families with defect at least $38$. The remaining thirteen family have defect at least $4$ by Lemma \ref{l19} and Lemma \ref{defects}, leading to a total defect of at least $38*2+13*4=128$. But the total defect is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually we can refine this:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  No family can have a total defect of at least $38$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that the $ab****$ family (say) had a total defect of at least $38$, then by Corollary \ref{l20} no other families have total defect at least $38$.&lt;br /&gt;
&lt;br /&gt;
We claim that the $**ab**$ family can have at most two good slices. Indeed, suppose the $**ab**$ has three good slices, say $**11**, **13**, **33**$. By Lemma \ref{l14}, the $**11**$ and $**33**$ slices cannot be of the same type, and so cannot both be of opposite type to $**13**$. Suppose $**11**$ and $**13**$ are not of opposite type. Then by (a permutation of) Lemma \ref{l18}, one of the families $a*b***, *ab***, **b*a*, **b**a$ has a net defect of at least $38$, contradicting the normalisation.&lt;br /&gt;
&lt;br /&gt;
Thus each of the six families $**ab**, **a*b*, **a**b, ***ab*, ***a*b$ have at least two bad slices. Meanwhile, the eight families $a*b***, a**b**, a***b*, a****b, *ab***, *a*b**, *a**b*, *a***b$ have at least one bad slice by Corollary \ref{l19}, leading to twenty bad slices in addition to the defect of at least $38$ arising from the $ab****$ slice. To add up to a total defect of $120$, we conclude from Lemma \ref{defects} that all bad slices outside of the $ab****$ family have a defect of four, with at most one exception; but then by Lemma \ref{l18} this shows that (for instance) the $1*1***$ and $1*3***$ slices cannot be good unless they are of opposite type. The previous argument then shows that the a*b*** slice cannot have three good slices, which increases the number of bad slices outside of $ab****$ to at least twenty-one, and now there is no way to add up to $120$, a contradiction. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary} Every family can have at most two good slices.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If for instance $11****, 13****, 33****$ are both good, then by Lemma \ref{l14} at least one of $11****, 33****$ is not of the opposite type to $13****$, which by Lemma \ref{l18} implies that there is a family with a total defect of at least $38$, contradicting the previous proposition.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this corollary and Lemma \ref{defects}, we see that every family has a defect of at least $8$.  Since there are $15$ families, and $8 \times 15$ is exactly equal to $120$, we conclude&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{coda} Every family has \emph{exactly} two good slices, and the remaining two slices have defect $4$.  In particular, by Lemma \ref{defects}, the bad slices must have statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$.  &lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
We now limit how these slices can interact with good slices.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{goodgood}  Suppose that $1*1***$ is a good slice.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] The $11****$ slice cannot have statistics $(6,8,12,8,0)$.&lt;br /&gt;
\item[(ii)] The $11****$ slice cannot have statistics $(5,12,12,4,1)$.&lt;br /&gt;
\item[(iii)] If the $11****$ slice has statistics $(5,12,18,4,0)$, then the $112***$ slice has statistics $(3,9,3,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified through computer search; there are $16$ possible configurations for the good slices, and one can calculate that there are $2750$ configurations for the $(5,12,12,4,1)$ slices, $4368$ configurations for the $(5,12,18,4,0)$ slices, and $10000$ configurations for the $(6,8,12,8,0)$ slices. {\bf we could put human proofs for all this somewhere, presumably.}&lt;br /&gt;
&lt;br /&gt;
%We first prove (i).  Suppose for contradiction that the $11****$ slice has statistics $(6,8,12,8,0)$, then $A$ contains $111222$, and so the $1*1***$ slice is of type $1xyz$ for some $x,y,z$.  By symmetry we may assume it is of type $1111$, thus the $111***$ slice consists of&lt;br /&gt;
%$111111, 111113, 111332, 111322, 111222$ and permutations of the last three indices.  On the other hand, the $11****$ slice has all eight of the points in $11**** \cap S_{2,6}$.  Drawing lines between these points and $111111, 111113$ and permutations, we see that the $113***$ slice cannot contain $113111, 113113, 113133$, or permutations, leaving $113333$ as the only possible element of $113*** \cap S_{6,6}$.  This makes $a(11****)=5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic}  The $111***$ slice has statistics $(4,3,3,1)$, $(2,6,6,0)$, $(3,3,3,1)$, or $(1,6,6,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From Corollary \ref{coda}, we know that at least one of the slices $13****, 31****, 11****$ are good.  If $11****$ or $1*1***$ is good, then the slice $111***$ has statistics $(4,3,3,1)$ or $(2,6,6,0)$, by Lemma \ref{sixt}.  By symmetry we may thus reduce to the case where $13****$ is good and $1*1***$ is bad.  Then by Lemma \ref{goodgood}, the $1*1***$ slice has statistics $(5,12,18,4,0)$ and the $121***$ slice has statistics $(3,9,3,0)$.  Since the $131***$ slice, as a side slice of the good $13****$ slice, has statistics $(4,3,3,1)$ or $(2,6,6,0)$, we conclude that the $111***$ slice has statistics $(1,6,6,0)$ or $(3,3,3,1)$, and the claim follows.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic2} All corner slices have statistics $(6,12,18,4,0)$ or $(5,12,18,4,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  Suppose first that a corner slice, say $11****$ has statistic $(6,8,12,8,0)$.  Then $111***$ and $113***$ contain one ``d&#039;&#039; point each, and have six ``a&#039;&#039; points between them, so by Corollary \ref{slic}, they both have statistic $(3,3,3,1)$.  This forces the $1*1***$, $1*3***$ slices to be bad, which by Corollary \ref{coda} forces the $3*1***,3*3***$ slices to be good.  This forces the $311***, 313***$ slices to have statistics either $(2,6,6,0)$ or $(4,3,3,1)$.  But the $311***$ slice (say) cannot have statistic $(4,3,3,1)$, since when combined with the $(3,3,3,1)$ statistics of $111***$ would give $a(*11***)=7$, which contradicts Corollary \ref{coda}; thus the $311***$ slice has statistic $(2,6,6,0)$, and similarly for $331***$.  But then $a(3*1***)=4$, which again contradicts Corollary \ref{coda}.&lt;br /&gt;
&lt;br /&gt;
Thus no corner slice has statistic $(6,8,12,8,0)$.  Now suppose that a corner slice, say $11****$ has statistic $(5,12,12,4,1)$.  By Lemma \ref{goodgood}, the $1*1***, 1*3***$ slices are bad, so by repeating the preceding arguments we conclude that the $311***, 313***$ slices have statistics $(2,6,6,0)$ or $(4,3,3,1)$; in particular, their $a$-value is even.  However, the $*11***$ and $*13***$ slices are bad by Lemma \ref{goodgood}, and thus have an $a$-value of $5$; thus the $111***$ and $113***$ slices have an odd $a$-value.  Thus forces $a(11****)$ to be even; but it is equal to $5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this and Lemma \ref{dci}, we see that $A$ has statistics $(22,72,180,80,0,0,0)$.  In particular, we have $2\alpha_2(A)+\alpha_3(A) = 2$, which by double counting (cf. \eqref{alpha-1}) shows that for every line of the form $12222*$ (or a reflection or permutation thereof) intersects $A$ in exactly two points.  Note that such lines connect a ``$d$&#039;&#039; point to two ``$c$&#039;&#039; points.&lt;br /&gt;
&lt;br /&gt;
Also, we observe that two adjacent ``$d$&#039;&#039; points, such as $111222$ and $113222$, cannot both lie in $A$; for this would force the $*13***$ and $*11***$ slices to have statistics $(4,3,3,1)$ or $(3,3,3,1)$ by Corollary \ref{slic}, which forces $a(*1****)=6$, and thus $*1****$ must be good by Corollary \ref{slic2}; but this contradicts Lemma \ref{sixt}.  Since $\alpha_3(A)=1/2$, we conclude that given any two adjacent ``$d$&#039;&#039; points, exactly one of them lies in $A$.  In particular, the d points of the form $***222$ consist either of those strings with an even number of $1$s, or those with an odd number of $1$s.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say it&#039;s the former, thus the set contains $111222, 133222$, and permutations of the first three coordinates, but omits $113222, 333222$ and permutations of the first three coordinates. Since the ``$d$&#039;&#039; points $113222, 333222$ are omitted, we conclude that the ``$c$&#039;&#039; points $113122, 113322, 333122, 333322$ must lie in the set, and similarly for permutations of the first three and last three coordinates. But this gives at least $15$ of the $16$ ``$c$&#039;&#039; points ending in $22$; by symmetry this leads to $225$ $c$-points in all; but $c(A)=180$, contradiction.  This (finally!) completes the proof that $c&#039;_{6,3}=353$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Introduction.tex&amp;diff=1959</id>
		<title>Introduction.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Introduction.tex&amp;diff=1959"/>
		<updated>2009-07-14T10:05:05Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Introduction}&lt;br /&gt;
&lt;br /&gt;
For any integers $k \geq 1$ and $n \geq 0$, let $[k] := \{1,\ldots,k\}$, and define $[k]^n$ to be the cube of words of length $n$ with alphabet in $[k]$.  Thus for instance $[3]^2 = \{11,12,13,21,22,23,31,32,33\}$.&lt;br /&gt;
&lt;br /&gt;
We define a \emph{combinatorial line} in $[k]^n$ to be a set of the form $\{ w(i): i = 1,\ldots,k\} \subset [k]^n$, where $w \in ([k] \cup \{x\})^n \backslash [k]^n$ is a word of length $n$ with alphabet in $[k]$ together with a ``wildcard&#039;&#039; letter $x$ which appears at least once, and $w(i) \in [k]^n$ is the word obtained from $w$ by replacing $x$ by $i$; we often abuse notation and identify $w$ with the combinatorial line $\{ w(i): i = 1,\ldots,k\}$ it generates.  Thus for instance, in $[3]^2$ we have $x2 = \{12,22,32\}$ and $xx = \{11,22,33\}$ as typical examples of combinatorial lines. In general, $[k]^n$ has $k^n$ words and $(k+1)^n-k^n$ lines.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{AllLinesIn3n.pdf}}&lt;br /&gt;
\caption{Combinatorial lines in $[3]^2$.}&lt;br /&gt;
\label{fig-line}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
A set $A \subset [k]^n$ is said to be \emph{line-free} if it contains no combinatorial lines.  Define the \emph{$(n,k)$ density Hales-Jewett number} $c_{n,k}$ to be the maximum cardinality $|A|$ of a line-free subset of $[k]^n$.  Clearly, one has the trivial bound $c_{n,k} \leq k^n$.  A deep theorem of Furstenberg and Katznelson~\cite{fk1}, \cite{fk2} asserts that this bound can be asymptotically improved:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Density Hales-Jewett theorem]\label{dhj}  For any fixed $k \geq 2$, one has $\lim_{n \to \infty} c_{n,k}/k^n = 0$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} The difficulty of this theorem increases with $k$.  For $k=1$, one clearly has $c_{n,1}=1$.  For $k=2$, a classical theorem of Sperner~\cite{sperner} asserts, in our language, that $c_{n,2} = \binom{n}{\lfloor n/2\rfloor}$.  The case $k=3$ is already non-trivial (for instance, it implies Roth&#039;s theorem~\cite{roth} on arithmetic progressions of length three) and was first established in \cite{fk1} (see also \cite{mcc}).  The case of general $k$ was first established in~\cite{fk2} and has a number of implications, in particular implying Szemer\&#039;edi&#039;s theorem~\cite{szem} on arithmetic progressions of arbitrary length.&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
The Furstenberg-Katznelson proof of Theorem~\ref{dhj} relied on ergodic-theory techniques and did not give an explicit decay rate for $c_{n,k}$.  Recently, two further proofs of this theorem have appeared, by Austin~\cite{austin} and by the sister Polymath project to this one~\cite{poly}.  The proof of~\cite{austin} also used ergodic theory, but the proof in~\cite{poly} was combinatorial and gave effective bounds for $c_{n,k}$ in the limit $n \to \infty$. For example, if $n$ can be written as an exponential tower 2^2^2^...^2 with $m$ 2s, then $c_{n,3} \le 3^n m^{-1/3}$.  However, these bounds are not believed to be sharp, and in any case are only non-trivial in the asymptotic regime when $n$ is sufficiently large depending on $k$.&lt;br /&gt;
&lt;br /&gt;
Our first result is the following asymptotic lower bound. The construction is based on the recent refinements \cite{elkin,greenwolf,obryant} of a well-known construction of Behrend~\cite{behrend} and Rankin~\cite{rankin}. The proof of Theorem~\ref{dhj-lower} is in Section~\ref{dhj-lower-sec}. Let $r_k(n)$ be the maximum size of a subset of $[n]$ that does not contain a $k$-term arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Asymptotic lower bound for $c_{n,k}$]\label{dhj-lower}  For each $k\geq 3$, there is an absolute constant $C&amp;gt;0$ such that &lt;br /&gt;
  \[ c_{n,k} \geq C k^n \left(\frac{r_k(\sqrt{n})}{\sqrt{n}}\right)^{k-1} = k^n \exp\left( - O(\sqrt[\ell]{\log n}) \right), \]&lt;br /&gt;
where $\ell$ is the largest integer satisfying $2k&amp;gt;2^{\ell}$. Specifically,&lt;br /&gt;
  \[ c_{n,k} \geq C k^{n-\alpha(k) \sqrt[\ell]{\log n} + \beta(k) \log\log n},\]&lt;br /&gt;
where all logarithms are base-$k$, and $\alpha(k) = (\log 2)^{1-1/\ell} \ell 2^{(\ell-1)/2-1/\ell}$ and $\beta(k)=(k-1)/(2\ell)$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
In the case of small $n$, we focus primarily on the first non-trivial case $k=3$.  We have computed the following explicit values of $c_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Explicit values of $c_{n,3}$]\label{dhj-upper}  We have $c_{0,3} = 1$, $c_{1,3} = 2$, $c_{2,3} = 6$, $c_{3,3} = 18$, $c_{4,3} = 52$, $c_{5,3}=150$, and $c_{6,3}=450$.  (This has been entered in the OEIS~\cite{oeis} as A156762.)&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
This result is established in Sections~\ref{dhj-lower-sec},~\ref{dhj-upper-sec}.  Initially these results were established by an integer program (see Appendix~\ref{integer-sec}, but we provide completely computer-free proofs here.  The constructions used in Section~\ref{dhj-lower-sec} give reasonably efficient constructions for larger values of $n$; for instance, they show that $3^{99} \leq c_{100,3} \leq 2 \times 3^{99}$.  See Section~\ref{dhj-lower-sec} for further discussion.&lt;br /&gt;
&lt;br /&gt;
We also have several partial results for higher values of $k$: see Section~\ref{higherk-sec}.  For results on the closely related \emph{Hales-Jewett numbers} $HJ(k,r)$, see Section~\ref{coloring-sec}.&lt;br /&gt;
&lt;br /&gt;
A variant of the density Hales-Jewett theorem has also been studied in the literature.  Define a \emph{geometric line} in $[k]^n$ to be any set of the form $\{ a+ir: i=1,\ldots,k\}$ in $[k]^n$, where we identify $[k]^n$ with a subset of $\Z^n$, and $a, r \in \Z^n$ with $r \neq 0$.  Equivalently, a geometric line takes the form $\{ w( i, k+1-i ): i =1,\ldots,k \}$, where $w \in ([k] \cup \{x,\overline{x}\})^n \backslash [k]^n$ is a word of length $n$ using the numbers in $[k]$ and two wildcards $x, \overline{x}$ as the alphabet, with at least one wildcard occuring in $w$, and $w(i,j) \in [k]^n$ is the word formed by substituting $i,j$ for $x,\overline{x}$ respectively.  Figure~\ref{fig-geomline} shows the eight geometric lines in $[3]^2$.  Clearly every combinatorial line is a geometric line, but not conversely.  In general, $[k]^n$ has $((k+2)^n-k^n)/2$ geometric lines. &lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{AllGeomLinesIn3n.pdf}}&lt;br /&gt;
\caption{Geometric lines in $[3]^2$.}&lt;br /&gt;
\label{fig-geomline}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{Moser set} in $[k]^n$ to be a subset of $[k]^n$ that contains no geometric lines, and let $c&#039;_{n,k}$ be the maximum cardinality $|A|$ of a Moser set in $[k]^n$.  Clearly one has $c&#039;_{n,k} \leq c_{n,k}$, so in particular from Theorem~\ref{dhj} one has $c&#039;_{n,k}/k^n \to 0$ as $n \to \infty$.  (Interestingly, there is no known proof of this fact that does not go through Theorem~\ref{dhj}, even for $k=3$.)  Again, $k=3$ is the first non-trivial case: it is clear that $c&#039;_{n,1}=0$ and $c&#039;_{n,2}=1$ for all $n$.&lt;br /&gt;
&lt;br /&gt;
The question of computing $c&#039;_{n,3}$ was first posed by Moser~\cite{moser}.  Prior to our work, the values&lt;br /&gt;
$$ c&#039;_{0,3}=1; c&#039;_{1,3}=2; c&#039;_{2,3}=6; c&#039;_{3,3}=16; c&#039;_{4,3}=43$$&lt;br /&gt;
were known~\cite{chvatal2},~\cite{chandra} (this is Sequence A003142 in the OEIS~\cite{oeis}).  We extend this sequence slightly:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Values of $c&#039;_{n,3}$ for small $n$]\label{moser}  We have $c&#039;_{0,3} = 1$, $c&#039;_{1,3} = 2$, $c&#039;_{2,3} = 6$, $c&#039;_{3,3} = 16$, $c&#039;_{4,3} = 43$, $c&#039;_{5,3} = 124$, and $c&#039;_{6,3} = 353$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
This result is established in Sections \ref{moser-lower-sec}, \ref{moser-upper-sec}.  The arguments given here are computer-assisted; however, we have found alternate (but lengthier) computer-free proofs for the above claims with the the exception of the proof of $c&#039;_{6,3}=353$, which requires one non-trivial computation (Lemma \ref{paretop-4}).  These alternate proofs are not given in this paper to save space, but can be found on the wiki for this project at &lt;br /&gt;
&lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Main\_Page}.}&lt;br /&gt;
&lt;br /&gt;
We establish a lower bound for this problem of $(2+o(1))\binom{n}{i}2^i\leq c&#039;_{n,3}$, which is maximized for $i$ near $2n/3$.  This bound is around one-third better than the literature.  We also give methods to improve on this construction.&lt;br /&gt;
&lt;br /&gt;
Earlier lower bounds were known:&lt;br /&gt;
let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
 and minimal distance $d$. Then&lt;br /&gt;
\begin{equation}\label{cnchvatalintro}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
which, with $A(n,1)=2^n$ and $A(n,2)=2^{n-1}$,  implies in particular that&lt;br /&gt;
\begin{equation}\label{binom}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{\lfloor \frac{2n+1}{3} \rfloor} 2^{\lfloor \frac{2n+1}{3} \rfloor - 1} &lt;br /&gt;
\end{equation}&lt;br /&gt;
for $n \geq 2$.  This bound is not quite optimal; for instance, it gives a lower bound of $c&#039;_{6,3}=344$.  &lt;br /&gt;
&lt;br /&gt;
\begin{remark} Let $c&#039;&#039;_{n,3}$ be the size of the largest subset of ${\Bbb F}_3^n$ which contains no lines $x, x+r, x+2r$ with $x,r \in {\mathbb F}_3^n$ and $r \neq 0$, where ${\mathbb F}_3$ is the field of three elements.  Clearly one has $c&#039;&#039;_{n,3} \leq c&#039;_{n,3} \leq c_{n,3}$.  It is known that&lt;br /&gt;
$$ c&#039;&#039;_{0,3}=1; c&#039;&#039;_{1,3}=2; c&#039;&#039;_{2,3}=4; c&#039;_{3,3}=9; c&#039;_{4,3}=20; c&#039;&#039;_{5,3}=45; c&#039;&#039;_{6,3} = 112;$$&lt;br /&gt;
see \cite{potenchin}.&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
As mentioned earlier, the sharp bound on $c_{n,2}$ comes from Sperner&#039;s theorem.  It is known that Sperner&#039;s theorem can be refined to the \emph{Lubell-Meshalkin-Yamamoto (LMY) inequality}, which in our language asserts that&lt;br /&gt;
$$&lt;br /&gt;
\sum_{a_1,a_2 \geq 0; a_1+a_2 = n} \frac{|A \cap \Gamma_{a_1,a_2}|}{|\Gamma_{a_1,a_2}|} \leq 1&lt;br /&gt;
$$&lt;br /&gt;
for any line-free subset $A \subset [2]^n$, where the \emph{cell} $\Gamma_{a_1,\ldots,a_k} \subset [k]^n$ is the set of words in $[k]^n$ which contain exactly $a_i$ $i$&#039;s for each $i=1,\ldots,k$.  It is natural to ask whether this inequality can be extended to higher $k$.  Let $\Delta_{k,n}$ denote the set of all tuples $(a_1,\ldots,a_k)$ of non-negative integers summing to $n$, define a \emph{simplex} to be a set of $k$ points in $\Delta_{k,n}$ of the form&lt;br /&gt;
$(a_1+r,a_2,\ldots,a_k), (a_1,a_2+r,\ldots,a_k),\ldots,(a_1,a_2,\ldots,a_k+r)$ for some $0 &amp;lt; r \leq n$ and $a_1,\ldots,a_k$ summing to $n-r$, and define a \emph{Fujimura set} to be a subset $B \subset \Delta_{k,n}$ which contains no simplices.  Observe that if $w$ is a combinatorial line in $[k]^n$, then&lt;br /&gt;
$$ w(1) \in \Gamma_{a_1+r,a_2,\ldots,a_k}, w(2) \in \Gamma_{a_1,a_2+r,\ldots,a_k}, \ldots, w(k) = \Gamma_{a_1,a_2,\ldots,a_k+r}$$&lt;br /&gt;
for some simplex $(a_1+r,a_2,\ldots,a_k), (a_1,a_2+r,\ldots,a_k),\ldots,(a_1,a_2,\ldots,a_k+r)$.  Thus, if $B$ is a Fujimura set, then $A := \bigcup_{\vec a \in B} \Gamma_{\vec a}$ is line-free.  Note also that&lt;br /&gt;
$$&lt;br /&gt;
\sum_{\vec a \in \Delta_{k,n}} \frac{|A \cap \Gamma_{\vec a}|}{|\Gamma_{\vec a}|} = |B|.&lt;br /&gt;
$$&lt;br /&gt;
This motivates a ``hyper-optimistic&#039;&#039; conjecture:&lt;br /&gt;
&lt;br /&gt;
{\bf a picture showing a Fujimura set?}&lt;br /&gt;
&lt;br /&gt;
\begin{conjecture}\label{hoc}  For any $k \geq 1$ and $n \geq 0$, and any line-free subset $A$ of $[k]^n$, one has&lt;br /&gt;
$$&lt;br /&gt;
\sum_{\vec a \in \Delta_{k,n}} \frac{|A \cap \Gamma_{\vec a}|}{|\Gamma_{\vec a}|} \leq c^\mu_{k,n},$$&lt;br /&gt;
where $c^\mu_{k,n}$ is the maximal size of a Fujimura set in $\Delta_{k,n}$.&lt;br /&gt;
\end{conjecture}&lt;br /&gt;
&lt;br /&gt;
One can show that this conjecture for a fixed value of $k$ would imply Theorem \ref{dhj} for the same value of $k$, in much the same way that the LYM inequality is known to imply Sperner&#039;s theorem.  The LYM inequality asserts that Conjecture \ref{hoc} is true for $k \leq 2$.  As far as we know this conjecture could hold in $k=3$.  However, we know that it fails for all even $k\ge 4$, see Section~\ref{higherk-sec}.&lt;br /&gt;
&lt;br /&gt;
We are interested in removing all upward-pointing equilateral triangles from a triangular grid.  Fujimura actually proposed the similar problem of removing all equilateral triangles at this website: www.puzzles.com/PuzzlePlayground/CoinsAndTriangles/CoinsAndTriangles.htm&lt;br /&gt;
&lt;br /&gt;
In Section \ref{fujimura-sec} we give some bounds on these numbers.  Explicit values are given for $\overline{c}^\mu_n$ up to $n=13$, and general upper and lower bounds are given for all $n$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Notation}\label{notation-sec}&lt;br /&gt;
&lt;br /&gt;
There are several subsets of $[k]^n$ which will be useful in our analysis.  We have already introduced combinatorial lines, geometric lines, and cells.  One can generalise the notion of a combinatorial line to that of a \emph{combinatorial subspace} in $[k]^n$ of dimension $d$, which is indexed by a word $w$ in $([k] \cup \{x_1,\ldots,x_d\})^n$ containing at least one of each wildcard $x_1,\ldots,x_d$, and which forms the set $\{ w(i_1,\ldots,i_d): i_1,\ldots,i_d \in [k]\}$, where $w(i_1,\ldots,i_d) \in [k]^d$ is the word formed by replacing $x_1,\ldots,x_d$ with $i_1,\ldots,i_d$ respectively.  Thus for instance, in $[3]^3$, we have the two-dimensional combinatorial subspace $xxy = \{111,112,113,221,222,223,331,332,333\}$.  We similarly have the notion of a \emph{geometric subspace} in $[k]^n$ of dimension $d$, which is defined similarly but with $d$ wildcards $x_1,\ldots,x_d,\overline{x_1},\ldots,\overline{x_d}$, with at least one of either $x_i$ or $\overline{x_i}$ appearing in the word $w$ for each $1 \leq i \leq d$, and the space taking the form $\{ w(i_1,\ldots,i_d,k+1-i_1,\ldots,k+1-i_d): i_1,\ldots,i_d \in [k] \}$.  Thus for instance $[3]^3$ contains the two-dimensional geometric subspace $x\overline{x}y = \{ 131, 132, 133, 221, 222, 223, 311, 312, 313\}$.&lt;br /&gt;
&lt;br /&gt;
An important class of combinatorial subspaces in $[k]^n$ will be the \emph{slices} consisting of $n-1$ distinct wildcards and one fixed coordinate.  We will denote the distinct wildcards here by asterisks, thus for instance in $[3]^3$ we have $2** = \{ 211, 212, 213, 221, 222, 223, 231, 232, 233\}$.  Two slices are \emph{parallel} if their fixed coordinate are in the same position, thus for instance $1**$ and $2**$ are parallel, and one can subdivide $[k]^n$ into $k$ parallel slices, each of which is isomorphic to $[k]^{n-1}$.  In the analysis of Moser slices with $k=3$, we will make a distinction between \emph{centre slices}, whose fixed coordinate is equal to $2$, and \emph{side slices}, in which the fixed coordinate is either $1$ or $3$, thus $[3]^n$ can be partitioned into one centre slice and two side slices.&lt;br /&gt;
&lt;br /&gt;
Another important set in the study of $k=3$ Moser sets are the \emph{spheres} $S_{i,n} \subset [3]^n$, defined as those words in $[3]^n$ with exactly $n-i$ $2$&#039;s (and hence $i$ letters that are $1$ or $3$).  Thus for instance $S_{1,3} = \{ 122, 322, 212, 232, 221, 223\}$.  Observe that $[3]^n = \bigcup_{i=0}^n S_{i,n}$, and each $S_{i,n}$ has cardinality $|S_{i,n}| = \binom{n}{i} 2^{i}$.&lt;br /&gt;
&lt;br /&gt;
It is also convenient to subdivide each sphere $S_{i,n}$ into two components $S_{i,n} = S_{i,n}^o \cup S_{i,n}^e$, where $S_{i,n}^o$ are the words in $S_{i,n}$ with an odd number of $1$&#039;s, and $S_{i,n}^e$ are the words with an even number of $1$&#039;s. Thus for instance $S_{1,3}^o = \{122,212,221\}$ and $S_{1,3}^e = \{322,232,223\}$.  Observe that for $i&amp;gt;0$, $S_{i,n}^o$ and $S_{i,n}^e$ both have cardinality $\binom{n}{i} 2^{i-1}$.&lt;br /&gt;
&lt;br /&gt;
The \emph{Hamming distance} between two words $w,w&#039;$ is the number of coordinates in which $w, w&#039;$ differ, e.g. the Hamming distance between $123$ and $321$ is two.  Note that $S_{i,n}$ is nothing more than the set of words whose Hamming distance from $2\ldots2$ is $i$, which justifies the terminology ``sphere&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the density Hales-Jewett problem, there are two types of symmetries on $[k]^n$ which map combinatorial lines to combinatorial lines (and hence line-free sets to line-free sets).  The first is a permutation of the alphabet $[k]$; the second is a permutation of the $n$ coordinates.  Together, this gives a symmetry group of order $k!n!$ on the cube $[k]^n$, which we refer to as the \emph{combinatorial symmetry group} of the cube $[k]^n$.  Two sets which are related by an element of this symmetry group will be called (combinatorially) \emph{equivalent}, thus for instance any two slices are combinatorially equivalent.&lt;br /&gt;
&lt;br /&gt;
For the analysis of Moser sets in $[k]^n$, the symmetries are a bit different.  One can still permute the $n$ coordinates, but one is no longer free to permute the alphabet $[k]$.  Instead, one can \emph{reflect} an individual coordinate, for instance sending each word $x_1 \ldots x_n$ to its reflection $x_1 \ldots x_{i-1} (k+1-x_i) x_{i+1} \ldots x_n$.  Together, this gives a symmetry group of order $2^k n!$ on the cube $[k]^n$, which we refer to as the \emph{geometric symmetry group} of the cube $[k]^n$; this group maps geometric lines to geometric lines, and thus maps Moser sets to Moser sets.  Two Moser sets which are related by an element of this symmetry group will be called (geometrically) \emph{equivalent}.  For instance, a sphere $S_{i,n}$ is equivalent only to itself, and $S_{i,n}^o$, $S_{i,n}^e$ are equivalent only to each other.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1958</id>
		<title>Moser.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1958"/>
		<updated>2009-07-14T06:45:44Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Upper bounds for the $k=3$ Moser problem in small dimensions}\label{moser-upper-sec}&lt;br /&gt;
&lt;br /&gt;
In this section we finish the proof of Theorem \ref{moser} by obtaining the upper bounds on  $c&#039;_{n,3}$ for $n \leq 6$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Statistics, densities and slices}&lt;br /&gt;
&lt;br /&gt;
Our analysis will revolve around various \emph{statistics} of Moser sets $A \subset [3]^n$, their associated \emph{densities}, and the behavior of such statistics and densities with respect to the operation of passing from the cube $[3]^n$ to various \emph{slices} of that cube.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Statistics and densities]  Let $A \subset [3]^n$ be a set.  For any $0 \leq i \leq n$, set $a_i(A) := |A \cap S_{n-i,n}|$; thus we have&lt;br /&gt;
$$ 0 \leq a_i(A) \leq |S_{n-i,n}| = \binom{n}{i} 2^{n-i}$$&lt;br /&gt;
for $0 \leq i \leq n$ and&lt;br /&gt;
$$ a_0(A) + \ldots + a_n(A) = |A|.$$&lt;br /&gt;
We refer to the vector $(a_0(A),\ldots,a_n(A))$ as the \emph{statistics} of $A$.  We define the $i^{th}$ \emph{density} $\alpha_i(A)$ to be the quantity&lt;br /&gt;
$$ \alpha_i(A) := \frac{a_i(A) }{\binom{n}{i} 2^{n-i}},$$&lt;br /&gt;
thus $0 \leq \alpha_i(A) \leq 1$ and&lt;br /&gt;
$$ |A| = \sum_{i=0}^n \binom{n}{i} 2^{n-i} a_i(A).$$&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
\begin{example}\label{2mos}  Let $n=2$ and $A$ be the Moser set $A := \{ 12, 13, 21, 23, 31, 32 \}$.  Then the statistics $(a_0(A), a_1(A), a_2(A))$ of $A$ are $(2,4,0)$, and the densities $(\alpha_0(A), \alpha_1(A), \alpha_2(A))$ are $(\frac{1}{2}, 1, 0)$.  \textbf{Include picture here? with colours?}&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
When working with small values of $n$, it will be convenient to write $a(A)$, $b(A)$, $c(A)$, etc. for $a_0(A)$, $a_1(A)$, $a_2(A)$, etc., and similarly write $\alpha(A), \beta(A), \gamma(A)$, etc. for $\alpha_0(A)$, $\alpha_1(A)$, $\alpha_2(A)$, etc.  Thus for instance in Example \ref{2mos} we have $b(A) = 4$ and $\alpha(A) = \frac{1}{2}$.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Subspace statistics and densities]  If $V$ is a $k$-dimensional geometric subspace of $[3]^n$, then we have a map $\phi_V: [3]^k \to [3]^n$ from the $k$-dimensional cube to the $n$-dimensional cube.  If $A \subset [3]^n$ is a set and $0 \leq i \leq k$, we write $a_i(V,A)$ for $a_i(\phi_V^{-1}(A))$ and $\alpha_i(V,A)$ for $\alpha_i(\phi_V^{-1}(A))$.  If the set $A$ is clear from context, we abbreviate $a_i(V,A)$ as $a_i(V)$ and $\alpha_i(V,A)$ as $\alpha_i(V)$.&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
For our problem, a particularly important type of subspace of $[3]^n$ will be the \emph{slices} formed by fixing one coordinate and letting the other $n-1$ coordinates vary.  We will denote this by a single string in which the $n-1$ varying coordinates are denoted by asterisks.  For instance, in $[3]^2$, $1*$ denotes the slice $1*=\{11,12,13\}$, $*2$ denotes the slice $*2=\{12,22,32\}$, etc.; similarly, in $[3]^3$, $1**$ is the slice $\{111, 112, 113, 121, 122, 123, 131, 132, 133\}$, etc.  We call a slice a \emph{centre slice} if the fixed coordinate is $2$ and a \emph{side slice} if it is $1$ or $3$.&lt;br /&gt;
 &lt;br /&gt;
\begin{example}  We continue Example \ref{2mos}.  Then the statistics of the side slice $1*$ are $(a(1*),b(1*)) = (1,1)$, while the statistics of the centre slice $2*$ are $(a(2*),b(2*))=(2,0)$.  The corresponding densities are $(\alpha(1*),\beta(1*)) = (1/2,1)$ and $(\alpha(2*),\beta(2*))=(1,0)$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
A simple double counting argument gives the following useful identity:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Double counting identity]\label{dci}  Let $A \subset [3]^n$ and $0 \leq i \leq n-1$.  Then we have&lt;br /&gt;
$$ \frac{1}{n-i-1} \sum_{V \hbox{ a side slice}} a_{i+1}(V) = \frac{1}{i+1} \sum_{W \hbox{ a centre slice}} a_i(W) = a_{i+1}(A)$$&lt;br /&gt;
where $V$ ranges over the $2n$ side slices of $[3]^n$, and $W$ ranges over the $n$ centre slices.  In other words, the average value of $\alpha_{i+1}(V)$ for side slices $V$ equals the average value of $\alpha_i(W)$ for centre slices $W$, which is in turn equal to $\alpha_{i+1}(A)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Indeed, this lemma follows from the observation that every string in $A \cap S_{n-i-1,n}$ belongs to $i+1$ centre slices $W$ (and contributes to $a_i(W)$) and to $n-i-1$ side slices $V$ (and contributes to $a_{i+1}(V)$).  One can also view this lemma probabilistically, as the assertion that there are three equivalent ways to generate a random string of length $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick a side slice $V$ at random, and randomly fill in the wildcards in such a way that $i+1$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-2,n-1}$).&lt;br /&gt;
\item Pick a centre slice $V$ at random, and randomly fill in the wildcards in such a way that $i$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-1,n-1}$).&lt;br /&gt;
\item Randomly choose an element of $S_{n-i-1,n}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
\begin{example} We continue Example \ref{2mos}.  The average value of $\beta$ for side slices is equal to the average value of $\alpha$ for centre slices, which is equal to $\beta(A) = 1$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
Another very useful fact (essentially due to \cite{chvatal2}) is that linear inequalities for statistics of Moser sets at one dimension propagate to linear inequalities in higher dimensions:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Propagation lemma]\label{prop}  Let $n \geq 1$ be an integer.  Suppose one has a linear inequality of the form&lt;br /&gt;
\begin{equation}\label{alphav}&lt;br /&gt;
 \sum_{i=0}^n v_i \alpha_i(A) \leq s&lt;br /&gt;
\end{equation}&lt;br /&gt;
for all Moser sets $A \subset [3]^n$ and some real numbers $v_0,\ldots,v_n,s$.  Then we also have the linear inequality&lt;br /&gt;
$$ \sum_{i=0}^n v_i \alpha_{qi+r}(A) \leq s$$&lt;br /&gt;
whenever $q \geq 1$, $r \geq 0$, $N \geq nq+r$ are integers and $A \subset [3]^N$ is a Moser set.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  We run a probabilistic argument (one could of course also use a double counting argument instead).  Let $n,v_0,\ldots,v_n,s,q,r,N,A$ be as in the lemma.  Let $V$ be a random $n$-dimensional geometric subspace of $[3]^N$, created in the following fashion:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $n$ wildcards $x_1,\ldots,x_n$ to run independently from $1$ to $3$.  We also introduce dual wildcards $\overline{x_1},\ldots,\overline{x_n}$; each $\overline{x_j}$ will take the value $4-x_j$.&lt;br /&gt;
\item We randomly subdivide the $N$ coordinates into $n$ groups of $q$ coordinates, plus a remaining group of $N-nq$ ``fixed&#039;&#039; coordinates.&lt;br /&gt;
\item For each coordinate in the $j^{th}$ group of $q$ coordinates for $1 \leq j \leq n$, we randomly assign either a $x_j$ or $\overline{x_j}$.&lt;br /&gt;
\item For each coordinate in the $N-nq$ fixed coordinates, we randomly assign a digit $1,2,3$, but condition on the event that exactly $r$ of the digits are equal to $2$ (i.e. we use a random element of $S_{N-nq-r,N-nq}$).&lt;br /&gt;
\item Let $V$ be the subspace created by allowing $x_1,\ldots,x_n$ to run independently from $1$ to $3$, and $\overline{x_j}$ to take the value $4-x_j$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
For instance, if $n=2, q=2, r=1, N=6$, then a typical subspace $V$ generated in this fashion is&lt;br /&gt;
$$ 2x_1\overline{x_2}3x_2x_1 = \{ 213311, 212321, 211331, 223312, 222322, 221332, 233313, 232323, 231333\}.$$&lt;br /&gt;
Observe from that the following two ways to generate a random element of $[3]^N$ are equivalent:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $V$ randomly as above, and then assign $(x_1,\ldots,x_n)$ randomly from $S_{n-i,n}$.  Assign $4-x_j$ to $\overline{x_j}$ for all $1 \leq j \leq n$.&lt;br /&gt;
\item Pick a random string in $S_{N-qi-r,N}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
Indeed, both random variables are invariant under the symmetries of the cube, and both random variables always pick out strings in $S_{N-qi-r,N}$, and the claim follows.  As a consequence, we see that the expectation of $\alpha_i(V)$ (as $V$ ranges over the recipe described above) is equal to $\alpha_{qi+r}(A)$.  On the other hand, from \eqref{alphav} we have&lt;br /&gt;
$$  \sum_{i=0}^n v_i \alpha_i(V) \leq s$$&lt;br /&gt;
for all such $V$; taking expectations over $V$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
In view of Lemma \ref{prop}, it is of interest to locate linear inequalities relating the densities $\alpha_i(A)$, or (equivalently) the statistics $a_i(A)$.  For this, it is convenient to introduce the following notation.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}  Let $n \geq 1$ be an integer.  &lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item A vector $(a_0,\ldots,a_n)$ of non-negative integers is \emph{feasible} if it is the statistics of some Moser set $A$.&lt;br /&gt;
\item A feasible vector $(a_0,\ldots,a_n)$ is \emph{Pareto-optimal} if there is no other feasible vector $(b_0,\ldots,b_n) \neq (a_0,\ldots,a_n)$ such that $b_i \geq a_i$ for all $0 \leq i \leq n$.&lt;br /&gt;
\item A Pareto-optimal vector $(a_0,\ldots,a_n)$ is \emph{extremal} if it is not a non-trivial convex linear combination of other Pareto-optimal vectors.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
To establish a linear inequality of the form \eqref{alphav} with the $v_i$ non-negative, it suffices to test the inequality against densities associated to extremal vectors of statistics.  (There is no point considering linear inequalities with negative coefficients $v_i$, since one always has the freedom to reduce a density $\alpha_i(A)$ of a Moser set $A$ to zero, simply by removing all elements of $A$ with exactly $i$ $2$&#039;s.)&lt;br /&gt;
&lt;br /&gt;
We will classify exactly the Pareto-optimal and extremal vectors for $n \leq 3$, which by Lemma \ref{prop} will lead to useful linear inequalities for $n \geq 4$.  Using a computer, we have also located a partial list of Pareto-optimal and extremal vectors for $n=4$, which are also useful for the $n=5$ and $n=6$ theory.&lt;br /&gt;
&lt;br /&gt;
\subsection{Up to three dimensions}&lt;br /&gt;
&lt;br /&gt;
We now establish Theorem \ref{moser} for $n \leq 3$, and establish some auxiliary inequalities which will be of use in higher dimensions.&lt;br /&gt;
&lt;br /&gt;
The case $n=0$ is trivial. When $n=1$, it is clear that $c&#039;_{1,3} = 2$, and furthermore that the Pareto-optimal statistics are $(2,0)$ and $(1,1)$, which are both extremal.  This leads to the linear inequality&lt;br /&gt;
$$ 2\alpha(A) + \beta(A) \leq 2$$&lt;br /&gt;
for all Moser sets $A \subset [3]^1$, which by Lemma \ref{prop} implies that&lt;br /&gt;
\begin{equation}\label{alpha-1}&lt;br /&gt;
2\alpha_r(A) + \alpha_{r+q}(A) \leq 2&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
For $n=2$, we see by partitioning $[3]^2$ into three slices that $c&#039;_{2,3} \leq 3 c&#039;_{1,3} = 6$, and so (by the lower bounds in the previous section) $c&#039;_{2,3} = 6$.  Writing $(a,b,c) = (a(A),b(A),c(A)) = (4\alpha(A), 4\beta(A), \gamma(A))$, the inequalities \eqref{alpha-1} become&lt;br /&gt;
\begin{equation}\label{abc}&lt;br /&gt;
a + 2c \leq 4; b+2c \leq 4; 2a+b &amp;lt;= 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}  When $n=2$, the Pareto-optimal statistics are $(4,0,0), (3,2,0), (2,4,0), (2,2,1)$. In particular, the extremal statistics are $(4,0,0), (2,4,0), (2,2,1)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  One easily checks that all the statistics listed above are feasible.&lt;br /&gt;
Consider the statistics $(a,b,c)$ of a Moser set $A \subset [3]^2$.  $c$ is either equal to $0$ or $1$.  If $c=1$, then \eqref{abc} implies that $a,b \leq 2$, so the only Pareto-optimal statistic here is $(2,2,1)$.  When instead $c=0$, the inequalities \eqref{abc} can easily imply the Pareto-optimality of $(4,0,0), (3,2,0), (2,4,0)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this lemma we see that we obtain a new inequality $2a+b+2c \leq 8$.  Converting this back to densities and using Lemma \ref{prop}, we conclude that&lt;br /&gt;
\begin{equation}\label{alpha-2}&lt;br /&gt;
4\alpha_r(A) + 2\alpha_{r+q}(A) + \alpha_{r+2q} \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+2r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
One can also check by computer that there are exactly $230$ line-free subsets of $[3]^2$.&lt;br /&gt;
&lt;br /&gt;
Now we look at three dimensions.  Writing $(a,b,c,d)$ for the statistics of a Moser set $A \subset [3]^n$ (which thus range between $(0,0,0,0)$ and $(8,12,6,1)$), the inequalities \eqref{alpha-1} imply in particular that&lt;br /&gt;
\begin{equation}\label{abc-3d}&lt;br /&gt;
a+4d \leq 8; b+6d \leq 12; c+3d \leq 6; 3a+2c \leq 24; b+c \leq 12&lt;br /&gt;
\end{equation}&lt;br /&gt;
while \eqref{alpha-2} implies that&lt;br /&gt;
\begin{equation}\label{abcd-3d}&lt;br /&gt;
3a+b+c \leq 24; b+c+3d \leq 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Summing the inequalities $b+c \leq 12, 3a+b+c \leq 24, b+c+3d \leq 12$ yields&lt;br /&gt;
$$ 3(a+b+c+d) \leq 48$$&lt;br /&gt;
and hence $|A| = a+b+c+d \leq 16$; comparing this with the lower bounds of the preceding section we obtain $c&#039;_{3,3} = 16$ as required.  (This argument is essentially identical to the one in \cite{chvatal2}).&lt;br /&gt;
&lt;br /&gt;
We have the following useful computation:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[3D Pareto-optimals]\label{paretop} When $n=3$, the Pareto-optimal statistics are $$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0),$$ &lt;br /&gt;
$$ (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0),$$&lt;br /&gt;
$$ (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).$$  &lt;br /&gt;
In particular, the extremal statistics are &lt;br /&gt;
$$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0).$$&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} This can be established by a brute-force search over the $2^{27} \approx 1.3 \times 10^8$ different subsets of $[3]^3$.  Actually, one can perform a much faster search than this.  Firstly, as noted earlier, there are only $230$ line-free subsets of $[3]^2$, so one could search over $230^3 \approx 1.2 \times 10^7$ configurations instead.  Secondly, by symmetry we may assume (after enumerating the $230$ sets in a suitable fashion) that the first slice $A \cap 1**$ has an index less than or equal to the third $A \cap 3**$, leading to $\binom{231}{2} \times 230 \approx 6 \times 10^6$ configurations instead.  Finally, using the first and third slice one can quickly determine which elements of the second slice $2**$ are prohibited from $A$.  There are $2^9 = 512$ possible choices for the prohibited set in $2**$.  By crosschecking these against the list of $230$ line-free sets one can compute the Pareto-optimal statistics for the second slices inside the prohibited set (the lists of such statistics turns out to length at most $23$).  Storing these statistics in a lookup table, and then running over all choices of the first and third slice (using symmetry), one now has to perform $O( 512 \times 230 ) + O( \binom{231}{2} \times 23) \approx O( 10^6 )$ computations, which is quite a feasible computation.&lt;br /&gt;
&lt;br /&gt;
One could in principle reduce the computations even further, by a factor of up to $8$, by using the symmetry group $D_4$ of the square $[3]^2$ to reduce the number of cases one needs to consider, but we did not implement this.&lt;br /&gt;
&lt;br /&gt;
A computer-free proof of this lemma can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Human\_proof\_of\_the\_3D\_Pareto-optimal\_Moser\_statistics}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} A similar computation revealed that the total number of line-free subsets of $[3]^3$ was $3813884$.  With respect to the $2^3 \times 3!=48$-element group of geometric symmetries of $[3]^3$, these sets partitioned into $83158$ equivalence classes:&lt;br /&gt;
$$&lt;br /&gt;
3813884 = 76066 \times 48+6527 \times 24+51 \times 16+338 \times 12 +109 \times 8+41 \times 6+13 \times 4 +5 \times 3+3 \times 2+5 \times 1.&lt;br /&gt;
$$&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
Lemma \ref{paretop} yields the following new inequalities:&lt;br /&gt;
\begin{align*}&lt;br /&gt;
2a+b+2c+4d &amp;amp;\leq 22 \\&lt;br /&gt;
3a+2b+3c+6d &amp;amp;\leq 36 \\&lt;br /&gt;
7a+2b+4c+8d &amp;amp;\leq 56 \\&lt;br /&gt;
6a+2b+3c+6d &amp;amp;\leq 48 \\&lt;br /&gt;
a+2c+4d &amp;amp;\leq 14 \\&lt;br /&gt;
5a+4c+8d &amp;amp;\leq 40.&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
Applying Lemma \ref{prop}, we obtain new inequalities:&lt;br /&gt;
\begin{align}&lt;br /&gt;
8\alpha_r(A)+ 6\alpha_{r+q}(A) + 6\alpha_{r+2q}(A) + 2\alpha_{r+3q}(A) &amp;amp;\leq 11 \label{eleven}\\&lt;br /&gt;
4\alpha_r(A)+4\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 6\label{six}\\&lt;br /&gt;
7\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
8\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 8\label{eight}\\&lt;br /&gt;
4\alpha_{r+q}(A)+2\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 4\nonumber\\&lt;br /&gt;
4\alpha_r(A)+6\alpha_{r+2q}(A)+2\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
5\alpha_r(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 5\nonumber &lt;br /&gt;
\end{align}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq r+3q$, and Moser sets $A \subset [3]^n$.&lt;br /&gt;
&lt;br /&gt;
We also note some further corollaries of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Statistics of large 3D Moser sets]\label{paretop2}  Let $(a,b,c,d)$ be the statistics of a Moser set $A$ in $[3]^3$.  Then $|A| = a+b+c+d \leq 16$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $|A|=16$, then $(a,b,c,d) = (4,12,0,0)$.&lt;br /&gt;
\item If $|A|=15$, then $(a,b,c,d) = (4,11,0,0)$ or $(3,12,0,0)$.&lt;br /&gt;
\item If $|A| \geq 14$, then $b \geq 6$ and $d=0$.&lt;br /&gt;
\item If $|A| = 13$ and $d=1$, then $(a,b,c,d) = (4,6,2,1)$ or $(3,6,3,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\subsection{Four dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{4,3}=43$.  Let $A$ be a Moser set in $[3]^4$, with attendant statistics $(a,b,c,d,e)$, which range between $(0,0,0,0,0)$ and $(16,32,24,8,1)$.  In view of the lower bounds, our task here is to establish the upper bound $a+b+c+d+e \leq 43$.&lt;br /&gt;
&lt;br /&gt;
The linear inequalities already established just barely fail to achieve this bound, but we can obtain the upper bound $a+b+c+d+e \leq 44$ as follows.&lt;br /&gt;
First suppose that $e=1$; then from the inequalities \eqref{alpha-1} (or by considering lines passing through $2222$) we see that $a \leq 8, b \leq 16, c \leq 12, d \leq 4$ and hence $a+b+c+d+e \leq 41$, so we may assume that $e=0$.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{dci}, we see that $a+b+c+d+e$ is now equal to the sum of $a(V)/4+b(V)/3+c(V)/2+d(V)$, where $V$ ranges over all side slices of $[3]^4$.  But from Lemma \ref{paretop} we see that $a(V)/4+b(V)/3+c(V)/2+d(V)$ is at most $\frac{11}{4}$, with equality occuring only when $(a(V),b(V),c(V),d(V))=(2,6,6,0)$.  This gives the upper bound $a+b+c+d+e \leq 44$.&lt;br /&gt;
&lt;br /&gt;
The above argument shows that $a+b+c+d+e=44$ can only occur if $e=0$ and if $(a(V),b(V),c(V),d(V))=(2,6,6,0)$ for all side slices $V$.  Applying Lemma \ref{paretop} again this implies $(a,b,c,d,e)=(4,16,24,0,0)$.  But then $A$ contains all of the sphere $S_{2,4}$, which implies that the four-element set $A \cap S_{4,4}$ cannot contain a pair of strings which differ in exactly two positions (as their midpoint would then lie in $S_{2,4}$, contradicting the hypothesis that $A$ is a Moser set).  &lt;br /&gt;
&lt;br /&gt;
Recall that we may partition $S_{4,4} = S_{4,4}^e \cup S_{4,4}^o$, where &lt;br /&gt;
$$S_{4,4}^e := \{ 1111, 1133, 1313, 3113, 1331, 3131, 3311, 3333\}$$&lt;br /&gt;
is the strings in $S_{4,4}$ with an even number of $1$&#039;s, and &lt;br /&gt;
$$S_{4,4}^o := \{ 1113, 1131, 1311, 3111, 1333, 3133, 3313, 3331\}$$&lt;br /&gt;
are the strings in $S_{4,4}$ with an odd number.  Observe that any two distinct elements in $S_{4,4}^e$ differ in exactly two positions unless they are antipodal.  Thus $A \cap S_{4,4}^e$ has size at most two, with equality only when $A \cap S_{4,4}^e$ consists of an antipodal pair.  Similarly for $A \cap S_{4,4}^o$.  Thus $A$ must consist of two antipodal pairs, one from $S_{4,4}^e$ and one from $S_{4,4}^o$.&lt;br /&gt;
&lt;br /&gt;
By the symmetries of the cube we may assume without loss of generality that these pairs are $\{ 1111, 3333\}$ and $\{1113,3331\}$ respectively.  But as $A$ is a Moser set, $A$ must now exclude the strings $1112$ and $3332$.  These two strings form two corners of the eight-element set&lt;br /&gt;
$$ ***2 \cap S_{3,4} = \{ 1112, 1132, 1312, 3112, 1332, 3132, 3312, 3332 \}.$$&lt;br /&gt;
Any pair of points in this set which are ``adjacent&#039;&#039; in the sense that they differ by exactly one entry cannot both lie in $A$, as their midpoint would then lie in $S_{3,4}$, and so $A$ can contain at most four elements from this set, with equality only if $A$ contains all the points in $***2 \cap S_{3,4}$ of the same parity (either all the elements with an even number of $3$s, or all the elements with an odd number of $3$s).  But because the two corners removed from this set have the opposite parity (one has an even number of $1$s and one has an odd number), we see in fact that $A$ can contain at most $3$ points from this set.  Meanwhile, the same arguments give that $A$ contains at most four points from $**2* \cap S_{3,4}$, $*2** \cap S_{3,4}$, and $2*** \cap S_{3,4}$.  Summing we see that $b = |A \cap S_{3,4}| \leq 3+4+4+4=15$, a contradiction.  Thus we have $c&#039;_{4,3}=43$ as claimed.&lt;br /&gt;
&lt;br /&gt;
We have the following four-dimensional version of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[4D Pareto-optimals]\label{paretop-4} When $n=4$, the Pareto-optimal statistics listed on Table \ref{table4}.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centered{\tiny&lt;br /&gt;
$(3, 16, 24, 0, 0)$,&lt;br /&gt;
$(4, 14, 19, 2, 0)$,&lt;br /&gt;
$(4, 15, 24, 0, 0)$,&lt;br /&gt;
$(4, 16, 8, 4, 1)$,&lt;br /&gt;
$(4, 16, 14, 4, 0)$,&lt;br /&gt;
$(4, 16, 23, 0, 0)$,&lt;br /&gt;
$(4, 17, 21, 0, 0)$,&lt;br /&gt;
$(4, 18, 19, 0, 0)$,&lt;br /&gt;
$(5, 12, 12, 4, 1)$,&lt;br /&gt;
$(5, 12, 13, 6, 0)$,&lt;br /&gt;
$(5, 12, 15, 5, 0)$,&lt;br /&gt;
$(5, 12, 19, 2, 0)$,&lt;br /&gt;
$(5, 13, 10, 4, 1)$,&lt;br /&gt;
$(5, 13, 14, 5, 0)$,&lt;br /&gt;
$(5, 13, 21, 1, 0)$,&lt;br /&gt;
$(5, 15, 9, 4, 1)$,&lt;br /&gt;
$(5, 15, 12, 3, 1)$,&lt;br /&gt;
$(5, 15, 13, 5, 0)$,&lt;br /&gt;
$(5, 15, 18, 3, 0)$,&lt;br /&gt;
$(5, 15, 20, 1, 0)$,&lt;br /&gt;
$(5, 15, 22, 0, 0)$,&lt;br /&gt;
$(5, 16, 7, 4, 1)$,&lt;br /&gt;
$(5, 16, 10, 3, 1)$,&lt;br /&gt;
$(5, 16, 11, 5, 0)$,&lt;br /&gt;
$(5, 16, 12, 2, 1)$,&lt;br /&gt;
$(5, 16, 16, 3, 0)$,&lt;br /&gt;
$(5, 16, 19, 1, 0)$,&lt;br /&gt;
$(5, 16, 21, 0, 0)$,&lt;br /&gt;
$(5, 17, 12, 4, 0)$,&lt;br /&gt;
$(5, 17, 14, 3, 0)$,&lt;br /&gt;
$(5, 17, 16, 2, 0)$,&lt;br /&gt;
$(5, 17, 18, 1, 0)$,&lt;br /&gt;
$(5, 17, 20, 0, 0)$,&lt;br /&gt;
$(5, 18, 13, 3, 0)$,&lt;br /&gt;
$(5, 18, 14, 2, 0)$,&lt;br /&gt;
$(5, 20, 8, 4, 0)$,&lt;br /&gt;
$(5, 20, 10, 3, 0)$,&lt;br /&gt;
$(5, 20, 13, 2, 0)$,&lt;br /&gt;
$(5, 20, 14, 1, 0)$,&lt;br /&gt;
$(5, 20, 18, 0, 0)$,&lt;br /&gt;
$(5, 21, 10, 2, 0)$,&lt;br /&gt;
$(5, 21, 15, 0, 0)$,&lt;br /&gt;
$(5, 22, 13, 0, 0)$,&lt;br /&gt;
$(6, 8, 12, 8, 0)$,&lt;br /&gt;
$(6, 10, 11, 4, 1)$,&lt;br /&gt;
$(6, 11, 12, 7, 0)$,&lt;br /&gt;
$(6, 12, 10, 7, 0)$,&lt;br /&gt;
$(6, 12, 13, 5, 0)$,&lt;br /&gt;
$(6, 12, 18, 4, 0)$,&lt;br /&gt;
$(6, 13, 16, 4, 0)$,&lt;br /&gt;
$(6, 14, 9, 4, 1)$,&lt;br /&gt;
$(6, 14, 9, 7, 0)$,&lt;br /&gt;
$(6, 14, 12, 6, 0)$,&lt;br /&gt;
$(6, 14, 16, 3, 0)$,&lt;br /&gt;
$(6, 14, 19, 1, 0)$,&lt;br /&gt;
$(6, 14, 21, 0, 0)$,&lt;br /&gt;
$(6, 15, 7, 4, 1)$,&lt;br /&gt;
$(6, 15, 10, 3, 1)$,&lt;br /&gt;
$(6, 15, 10, 6, 0)$,&lt;br /&gt;
$(6, 15, 11, 2, 1)$,&lt;br /&gt;
$(6, 15, 12, 5, 0)$,&lt;br /&gt;
$(6, 15, 15, 4, 0)$,&lt;br /&gt;
$(6, 15, 20, 0, 0)$,&lt;br /&gt;
$(6, 16, 7, 3, 1)$,&lt;br /&gt;
$(6, 16, 8, 6, 0)$,&lt;br /&gt;
$(6, 16, 9, 2, 1)$,&lt;br /&gt;
$(6, 16, 10, 5, 0)$,&lt;br /&gt;
$(6, 16, 12, 1, 1)$,&lt;br /&gt;
$(6, 16, 13, 4, 0)$,&lt;br /&gt;
$(6, 16, 14, 3, 0)$,&lt;br /&gt;
$(6, 16, 18, 2, 0)$,&lt;br /&gt;
$(6, 16, 19, 0, 0)$,&lt;br /&gt;
$(6, 17, 9, 5, 0)$,&lt;br /&gt;
$(6, 17, 10, 4, 0)$,&lt;br /&gt;
$(6, 17, 13, 3, 0)$,&lt;br /&gt;
$(6, 17, 15, 2, 0)$,&lt;br /&gt;
$(6, 17, 17, 1, 0)$,&lt;br /&gt;
$(6, 17, 18, 0, 0)$,&lt;br /&gt;
$(6, 18, 13, 2, 0)$,&lt;br /&gt;
$(6, 18, 16, 1, 0)$,&lt;br /&gt;
$(6, 18, 17, 0, 0)$,&lt;br /&gt;
$(6, 19, 9, 4, 0)$,&lt;br /&gt;
$(6, 19, 12, 3, 0)$,&lt;br /&gt;
$(6, 19, 15, 1, 0)$,&lt;br /&gt;
$(6, 20, 7, 4, 0)$,&lt;br /&gt;
$(6, 20, 9, 3, 0)$,&lt;br /&gt;
$(6, 20, 12, 2, 0)$,&lt;br /&gt;
$(6, 20, 13, 1, 0)$,&lt;br /&gt;
$(6, 20, 15, 0, 0)$,&lt;br /&gt;
$(6, 21, 8, 3, 0)$,&lt;br /&gt;
$(6, 21, 9, 2, 0)$,&lt;br /&gt;
$(6, 21, 12, 1, 0)$,&lt;br /&gt;
$(6, 21, 14, 0, 0)$,&lt;br /&gt;
$(6, 22, 7, 3, 0)$,&lt;br /&gt;
$(6, 22, 8, 2, 0)$,&lt;br /&gt;
$(6, 22, 10, 1, 0)$,&lt;br /&gt;
$(6, 23, 9, 1, 0)$,&lt;br /&gt;
$(6, 24, 7, 2, 0)$,&lt;br /&gt;
$(6, 24, 8, 1, 0)$,&lt;br /&gt;
$(6, 24, 12, 0, 0)$,&lt;br /&gt;
$(6, 25, 9, 0, 0)$,&lt;br /&gt;
$(6, 26, 7, 0, 0)$,&lt;br /&gt;
$(7, 8, 6, 8, 0)$,&lt;br /&gt;
$(7, 11, 9, 4, 1)$,&lt;br /&gt;
$(7, 11, 12, 6, 0)$,&lt;br /&gt;
$(7, 12, 8, 4, 1)$,&lt;br /&gt;
$(7, 12, 8, 6, 0)$,&lt;br /&gt;
$(7, 12, 12, 3, 1)$,&lt;br /&gt;
$(7, 12, 12, 5, 0)$,&lt;br /&gt;
$(7, 12, 13, 4, 0)$,&lt;br /&gt;
$(7, 12, 15, 3, 0)$,&lt;br /&gt;
$(7, 12, 17, 2, 0)$,&lt;br /&gt;
$(7, 13, 7, 4, 1)$,&lt;br /&gt;
$(7, 13, 10, 3, 1)$,&lt;br /&gt;
$(7, 13, 11, 5, 0)$,&lt;br /&gt;
$(7, 13, 12, 2, 1)$,&lt;br /&gt;
$(7, 13, 12, 4, 0)$,&lt;br /&gt;
$(7, 13, 14, 3, 0)$,&lt;br /&gt;
$(7, 13, 16, 2, 0)$,&lt;br /&gt;
$(7, 14, 6, 4, 1)$,&lt;br /&gt;
$(7, 14, 6, 7, 0)$,&lt;br /&gt;
$(7, 14, 9, 5, 0)$,&lt;br /&gt;
$(7, 14, 10, 2, 1)$,&lt;br /&gt;
$(7, 14, 12, 1, 1)$,&lt;br /&gt;
$(7, 14, 17, 1, 0)$,&lt;br /&gt;
$(7, 14, 19, 0, 0)$,&lt;br /&gt;
$(7, 15, 7, 5, 0)$,&lt;br /&gt;
$(7, 15, 8, 3, 1)$,&lt;br /&gt;
$(7, 15, 9, 2, 1)$,&lt;br /&gt;
$(7, 15, 11, 1, 1)$,&lt;br /&gt;
$(7, 15, 11, 4, 0)$,&lt;br /&gt;
$(7, 15, 13, 3, 0)$,&lt;br /&gt;
$(7, 15, 16, 1, 0)$,&lt;br /&gt;
$(7, 16, 6, 3, 1)$,&lt;br /&gt;
$(7, 16, 6, 6, 0)$,&lt;br /&gt;
$(7, 16, 8, 2, 1)$,&lt;br /&gt;
$(7, 16, 10, 1, 1)$,&lt;br /&gt;
$(7, 16, 10, 4, 0)$,&lt;br /&gt;
$(7, 16, 12, 0, 1)$,&lt;br /&gt;
$(7, 16, 12, 3, 0)$,&lt;br /&gt;
$(7, 16, 15, 2, 0)$,&lt;br /&gt;
$(7, 16, 17, 0, 0)$,&lt;br /&gt;
$(7, 17, 6, 5, 0)$,&lt;br /&gt;
$(7, 17, 7, 4, 0)$,&lt;br /&gt;
$(7, 17, 11, 3, 0)$,&lt;br /&gt;
$(7, 17, 13, 2, 0)$,&lt;br /&gt;
$(7, 17, 14, 1, 0)$,&lt;br /&gt;
$(7, 17, 16, 0, 0)$,&lt;br /&gt;
$(7, 18, 10, 3, 0)$,&lt;br /&gt;
$(7, 18, 13, 1, 0)$,&lt;br /&gt;
$(7, 18, 15, 0, 0)$,&lt;br /&gt;
$(7, 19, 9, 3, 0)$,&lt;br /&gt;
$(7, 20, 6, 4, 0)$,&lt;br /&gt;
$(7, 20, 11, 2, 0)$,&lt;br /&gt;
$(7, 20, 12, 1, 0)$,&lt;br /&gt;
$(7, 20, 14, 0, 0)$,&lt;br /&gt;
$(7, 21, 8, 2, 0)$,&lt;br /&gt;
$(7, 21, 10, 1, 0)$,&lt;br /&gt;
$(7, 21, 12, 0, 0)$,&lt;br /&gt;
$(7, 22, 9, 1, 0)$,&lt;br /&gt;
$(7, 22, 11, 0, 0)$,&lt;br /&gt;
$(7, 23, 6, 3, 0)$,&lt;br /&gt;
$(7, 23, 7, 1, 0)$,&lt;br /&gt;
$(7, 23, 10, 0, 0)$,&lt;br /&gt;
$(7, 24, 6, 2, 0)$,&lt;br /&gt;
$(7, 24, 9, 0, 0)$,&lt;br /&gt;
$(7, 25, 6, 1, 0)$,&lt;br /&gt;
$(7, 25, 8, 0, 0)$,&lt;br /&gt;
$(7, 26, 3, 1, 0)$,&lt;br /&gt;
$(7, 28, 6, 0, 0)$,&lt;br /&gt;
$(7, 29, 3, 0, 0)$,&lt;br /&gt;
$(7, 30, 1, 0, 0)$,&lt;br /&gt;
$(8, 8, 0, 8, 0)$,&lt;br /&gt;
$(8, 8, 9, 7, 0)$,&lt;br /&gt;
$(8, 8, 12, 6, 0)$,&lt;br /&gt;
$(8, 9, 9, 4, 1)$,&lt;br /&gt;
$(8, 9, 10, 6, 0)$,&lt;br /&gt;
$(8, 9, 12, 3, 1)$,&lt;br /&gt;
$(8, 9, 12, 5, 0)$,&lt;br /&gt;
$(8, 9, 13, 4, 0)$,&lt;br /&gt;
$(8, 9, 15, 3, 0)$,&lt;br /&gt;
$(8, 10, 7, 4, 1)$,&lt;br /&gt;
$(8, 10, 10, 3, 1)$,&lt;br /&gt;
$(8, 10, 10, 5, 0)$,&lt;br /&gt;
$(8, 10, 12, 2, 1)$,&lt;br /&gt;
$(8, 10, 12, 4, 0)$,&lt;br /&gt;
$(8, 10, 13, 3, 0)$,&lt;br /&gt;
$(8, 10, 15, 2, 0)$,&lt;br /&gt;
$(8, 11, 6, 4, 1)$,&lt;br /&gt;
$(8, 11, 9, 6, 0)$,&lt;br /&gt;
$(8, 11, 10, 2, 1)$,&lt;br /&gt;
$(8, 11, 11, 4, 0)$,&lt;br /&gt;
$(8, 12, 7, 6, 0)$,&lt;br /&gt;
$(8, 12, 9, 3, 1)$,&lt;br /&gt;
$(8, 12, 9, 5, 0)$,&lt;br /&gt;
$(8, 12, 10, 4, 0)$,&lt;br /&gt;
$(8, 12, 12, 1, 1)$,&lt;br /&gt;
$(8, 12, 14, 2, 0)$,&lt;br /&gt;
$(8, 12, 16, 1, 0)$,&lt;br /&gt;
$(8, 12, 18, 0, 0)$,&lt;br /&gt;
$(8, 13, 7, 3, 1)$,&lt;br /&gt;
$(8, 13, 7, 5, 0)$,&lt;br /&gt;
$(8, 13, 9, 2, 1)$,&lt;br /&gt;
$(8, 13, 12, 0, 1)$,&lt;br /&gt;
$(8, 13, 12, 3, 0)$,&lt;br /&gt;
$(8, 14, 0, 7, 0)$,&lt;br /&gt;
$(8, 14, 6, 6, 0)$,&lt;br /&gt;
$(8, 14, 7, 2, 1)$,&lt;br /&gt;
$(8, 14, 8, 1, 1)$,&lt;br /&gt;
$(8, 14, 9, 4, 0)$,&lt;br /&gt;
$(8, 14, 11, 0, 1)$,&lt;br /&gt;
$(8, 14, 11, 3, 0)$,&lt;br /&gt;
$(8, 14, 13, 2, 0)$,&lt;br /&gt;
$(8, 14, 15, 1, 0)$,&lt;br /&gt;
$(8, 14, 17, 0, 0)$,&lt;br /&gt;
$(8, 15, 6, 3, 1)$,&lt;br /&gt;
$(8, 15, 6, 5, 0)$,&lt;br /&gt;
$(8, 15, 7, 1, 1)$,&lt;br /&gt;
$(8, 16, 0, 6, 0)$,&lt;br /&gt;
$(8, 16, 4, 3, 1)$,&lt;br /&gt;
$(8, 16, 4, 5, 0)$,&lt;br /&gt;
$(8, 16, 6, 2, 1)$,&lt;br /&gt;
$(8, 16, 8, 4, 0)$,&lt;br /&gt;
$(8, 16, 9, 0, 1)$,&lt;br /&gt;
$(8, 16, 10, 3, 0)$,&lt;br /&gt;
$(8, 16, 12, 2, 0)$,&lt;br /&gt;
$(8, 16, 14, 1, 0)$,&lt;br /&gt;
$(8, 16, 16, 0, 0)$,&lt;br /&gt;
$(8, 17, 0, 5, 0)$,&lt;br /&gt;
$(8, 17, 3, 4, 0)$,&lt;br /&gt;
$(8, 17, 8, 3, 0)$,&lt;br /&gt;
$(8, 17, 10, 2, 0)$,&lt;br /&gt;
$(8, 17, 12, 1, 0)$,&lt;br /&gt;
$(8, 17, 14, 0, 0)$,&lt;br /&gt;
$(8, 18, 9, 2, 0)$,&lt;br /&gt;
$(8, 18, 11, 1, 0)$,&lt;br /&gt;
$(8, 18, 12, 0, 0)$,&lt;br /&gt;
$(8, 19, 6, 3, 0)$,&lt;br /&gt;
$(8, 19, 8, 2, 0)$,&lt;br /&gt;
$(8, 20, 0, 4, 0)$,&lt;br /&gt;
$(8, 20, 4, 3, 0)$,&lt;br /&gt;
$(8, 20, 7, 2, 0)$,&lt;br /&gt;
$(8, 20, 9, 1, 0)$,&lt;br /&gt;
$(8, 20, 11, 0, 0)$,&lt;br /&gt;
$(8, 21, 4, 2, 0)$,&lt;br /&gt;
$(8, 21, 7, 1, 0)$,&lt;br /&gt;
$(8, 22, 3, 2, 0)$,&lt;br /&gt;
$(8, 22, 6, 1, 0)$,&lt;br /&gt;
$(8, 22, 9, 0, 0)$,&lt;br /&gt;
$(8, 23, 0, 3, 0)$,&lt;br /&gt;
$(8, 23, 4, 1, 0)$,&lt;br /&gt;
$(8, 24, 0, 2, 0)$,&lt;br /&gt;
$(8, 24, 3, 1, 0)$,&lt;br /&gt;
$(8, 24, 8, 0, 0)$,&lt;br /&gt;
$(8, 25, 1, 1, 0)$,&lt;br /&gt;
$(8, 25, 6, 0, 0)$,&lt;br /&gt;
$(8, 26, 0, 1, 0)$,&lt;br /&gt;
$(8, 26, 4, 0, 0)$,&lt;br /&gt;
$(8, 28, 3, 0, 0)$,&lt;br /&gt;
$(8, 32, 0, 0, 0)$,&lt;br /&gt;
$(9, 8, 10, 4, 0)$,&lt;br /&gt;
$(9, 9, 9, 4, 0)$,&lt;br /&gt;
$(9, 9, 12, 3, 0)$,&lt;br /&gt;
$(9, 10, 8, 4, 0)$,&lt;br /&gt;
$(9, 10, 10, 3, 0)$,&lt;br /&gt;
$(9, 10, 12, 2, 0)$,&lt;br /&gt;
$(9, 10, 13, 1, 0)$,&lt;br /&gt;
$(9, 10, 15, 0, 0)$,&lt;br /&gt;
$(9, 11, 11, 2, 0)$,&lt;br /&gt;
$(9, 12, 7, 4, 0)$,&lt;br /&gt;
$(9, 12, 9, 3, 0)$,&lt;br /&gt;
$(9, 12, 12, 1, 0)$,&lt;br /&gt;
$(9, 12, 14, 0, 0)$,&lt;br /&gt;
$(9, 13, 7, 3, 0)$,&lt;br /&gt;
$(9, 13, 10, 2, 0)$,&lt;br /&gt;
$(9, 14, 9, 2, 0)$,&lt;br /&gt;
$(9, 14, 11, 1, 0)$,&lt;br /&gt;
$(9, 14, 13, 0, 0)$,&lt;br /&gt;
$(9, 15, 6, 3, 0)$,&lt;br /&gt;
$(9, 16, 0, 4, 0)$,&lt;br /&gt;
$(9, 16, 4, 3, 0)$,&lt;br /&gt;
$(9, 16, 8, 2, 0)$,&lt;br /&gt;
$(9, 16, 10, 1, 0)$,&lt;br /&gt;
$(9, 16, 12, 0, 0)$,&lt;br /&gt;
$(9, 17, 3, 3, 0)$,&lt;br /&gt;
$(9, 17, 6, 2, 0)$,&lt;br /&gt;
$(9, 17, 8, 1, 0)$,&lt;br /&gt;
$(9, 17, 10, 0, 0)$,&lt;br /&gt;
$(9, 18, 2, 3, 0)$,&lt;br /&gt;
$(9, 18, 4, 2, 0)$,&lt;br /&gt;
$(9, 18, 7, 1, 0)$,&lt;br /&gt;
$(9, 18, 9, 0, 0)$,&lt;br /&gt;
$(9, 19, 0, 3, 0)$,&lt;br /&gt;
$(9, 19, 3, 2, 0)$,&lt;br /&gt;
$(9, 19, 6, 1, 0)$,&lt;br /&gt;
$(9, 20, 1, 2, 0)$,&lt;br /&gt;
$(9, 20, 5, 1, 0)$,&lt;br /&gt;
$(9, 20, 8, 0, 0)$,&lt;br /&gt;
$(9, 21, 4, 1, 0)$,&lt;br /&gt;
$(9, 21, 6, 0, 0)$,&lt;br /&gt;
$(9, 22, 1, 1, 0)$,&lt;br /&gt;
$(9, 22, 5, 0, 0)$,&lt;br /&gt;
$(9, 24, 4, 0, 0)$,&lt;br /&gt;
$(9, 25, 2, 0, 0)$,&lt;br /&gt;
$(9, 28, 0, 0, 0)$,&lt;br /&gt;
$(10, 8, 6, 4, 0)$,&lt;br /&gt;
$(10, 8, 8, 3, 0)$,&lt;br /&gt;
$(10, 9, 7, 3, 0)$,&lt;br /&gt;
$(10, 9, 10, 2, 0)$,&lt;br /&gt;
$(10, 9, 11, 1, 0)$,&lt;br /&gt;
$(10, 9, 13, 0, 0)$,&lt;br /&gt;
$(10, 10, 5, 4, 0)$,&lt;br /&gt;
$(10, 10, 9, 2, 0)$,&lt;br /&gt;
$(10, 10, 12, 0, 0)$,&lt;br /&gt;
$(10, 11, 6, 3, 0)$,&lt;br /&gt;
$(10, 12, 4, 4, 0)$,&lt;br /&gt;
$(10, 12, 5, 3, 0)$,&lt;br /&gt;
$(10, 12, 7, 2, 0)$,&lt;br /&gt;
$(10, 12, 10, 1, 0)$,&lt;br /&gt;
$(10, 12, 11, 0, 0)$,&lt;br /&gt;
$(10, 13, 6, 2, 0)$,&lt;br /&gt;
$(10, 13, 8, 1, 0)$,&lt;br /&gt;
$(10, 13, 10, 0, 0)$,&lt;br /&gt;
$(10, 14, 3, 3, 0)$,&lt;br /&gt;
$(10, 14, 5, 2, 0)$,&lt;br /&gt;
$(10, 14, 9, 0, 0)$,&lt;br /&gt;
$(10, 15, 2, 3, 0)$,&lt;br /&gt;
$(10, 15, 7, 1, 0)$,&lt;br /&gt;
$(10, 16, 4, 2, 0)$,&lt;br /&gt;
$(10, 16, 6, 1, 0)$,&lt;br /&gt;
$(10, 16, 8, 0, 0)$,&lt;br /&gt;
$(10, 17, 4, 1, 0)$,&lt;br /&gt;
$(10, 17, 6, 0, 0)$,&lt;br /&gt;
$(10, 18, 2, 1, 0)$,&lt;br /&gt;
$(10, 18, 5, 0, 0)$,&lt;br /&gt;
$(10, 20, 4, 0, 0)$,&lt;br /&gt;
$(10, 21, 2, 0, 0)$,&lt;br /&gt;
$(10, 22, 1, 0, 0)$,&lt;br /&gt;
$(10, 24, 0, 0, 0)$,&lt;br /&gt;
$(11, 4, 6, 4, 0)$,&lt;br /&gt;
$(11, 6, 5, 4, 0)$,&lt;br /&gt;
$(11, 7, 6, 3, 0)$,&lt;br /&gt;
$(11, 8, 4, 4, 0)$,&lt;br /&gt;
$(11, 8, 5, 3, 0)$,&lt;br /&gt;
$(11, 9, 6, 2, 0)$,&lt;br /&gt;
$(11, 9, 8, 1, 0)$,&lt;br /&gt;
$(11, 9, 10, 0, 0)$,&lt;br /&gt;
$(11, 10, 3, 3, 0)$,&lt;br /&gt;
$(11, 10, 5, 2, 0)$,&lt;br /&gt;
$(11, 10, 9, 0, 0)$,&lt;br /&gt;
$(11, 11, 2, 3, 0)$,&lt;br /&gt;
$(11, 11, 7, 1, 0)$,&lt;br /&gt;
$(11, 12, 4, 2, 0)$,&lt;br /&gt;
$(11, 12, 6, 1, 0)$,&lt;br /&gt;
$(11, 12, 8, 0, 0)$,&lt;br /&gt;
$(11, 13, 4, 1, 0)$,&lt;br /&gt;
$(11, 13, 6, 0, 0)$,&lt;br /&gt;
$(11, 14, 2, 1, 0)$,&lt;br /&gt;
$(11, 14, 5, 0, 0)$,&lt;br /&gt;
$(11, 16, 4, 0, 0)$,&lt;br /&gt;
$(11, 17, 2, 0, 0)$,&lt;br /&gt;
$(11, 18, 1, 0, 0)$,&lt;br /&gt;
$(11, 20, 0, 0, 0)$,&lt;br /&gt;
$(12, 4, 3, 3, 0)$,&lt;br /&gt;
$(12, 6, 2, 3, 0)$,&lt;br /&gt;
$(12, 6, 5, 2, 0)$,&lt;br /&gt;
$(12, 6, 7, 1, 0)$,&lt;br /&gt;
$(12, 6, 9, 0, 0)$,&lt;br /&gt;
$(12, 8, 4, 2, 0)$,&lt;br /&gt;
$(12, 8, 6, 1, 0)$,&lt;br /&gt;
$(12, 8, 8, 0, 0)$,&lt;br /&gt;
$(12, 9, 4, 1, 0)$,&lt;br /&gt;
$(12, 9, 6, 0, 0)$,&lt;br /&gt;
$(12, 10, 2, 1, 0)$,&lt;br /&gt;
$(12, 10, 5, 0, 0)$,&lt;br /&gt;
$(12, 12, 4, 0, 0)$,&lt;br /&gt;
$(12, 13, 2, 0, 0)$,&lt;br /&gt;
$(12, 14, 1, 0, 0)$,&lt;br /&gt;
$(12, 16, 0, 0, 0)$,&lt;br /&gt;
$(13, 6, 5, 0, 0)$,&lt;br /&gt;
$(13, 8, 4, 0, 0)$,&lt;br /&gt;
$(13, 9, 2, 0, 0)$,&lt;br /&gt;
$(13, 10, 1, 0, 0)$,&lt;br /&gt;
$(13, 12, 0, 0, 0)$,&lt;br /&gt;
$(14, 4, 3, 0, 0)$,&lt;br /&gt;
$(14, 5, 2, 0, 0)$,&lt;br /&gt;
$(14, 6, 1, 0, 0)$,&lt;br /&gt;
$(14, 8, 0, 0, 0)$,&lt;br /&gt;
$(15, 4, 0, 0, 0)$,&lt;br /&gt;
$(16, 0, 0, 0, 0)$}}&lt;br /&gt;
\caption{The Pareto-optimal statistics of Moser sets in $[3]^4$.  This table can also be found at {\tt http://spreadsheets.google.com/ccc?key=rwXB\_Rn3Q1Zf5yaeMQL-RDw}}&lt;br /&gt;
\label{table4}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This was computed by computer search as follows.  First, one observed that if $(a,b,c,d,e)$ was Pareto-optimal, then $a\geq 3$.  To see this, it suffices to show that for any Moser set $A \subset [3]^4$ with $a(A)=0$, it is possible to add three points from $S_{4,4}$ to $A$ and still have a Moser set.  To show this, suppose first that $A$ contains a point from $S_{1,4}$, such as $2221$. Then $A$ must omit either $2211$ or $2231$; without loss of generality we may assume that it omits $2211$. Similarly we may assume it omits $2121$ and $1221$. Then we can add $1131$, $1311$, $3111$ to $A$, as required. Thus we may assume that $A$ contains no points from $S_{1,4}$.  Now suppose that $A$ omits a point from $S_{2,4}$, such as $2211$. Then one can add $3333$, $3111$, $1311$ to $A$, as required. Thus we may assume that A contains all of $S_{2,4}$, which forces $A$ to omit $2222$, as well as at least one point from $S_{3,4}$, such as $2111$. But then $3111$, $1111$, $3333$ can be added to the set, a contradiction. &lt;br /&gt;
&lt;br /&gt;
Thus we only need to search through sets $A \subset [3]^4$ for which $|A \cap S_{4,4}| \geq 3$.  A straightforward computer search shows that up to the symmetries of the cube, there are $391$ possible choices for $A \cap S_{4,4}$.  For each such choice, we looped through all the possible values of the slices $A \cap 1***$ and $A \cap 3***$, i.e. all three-dimensional Moser sets which had the indicated intersection with $S_{3,3}$.  (For fixed $A \cap S_{4,4}$, the number of possibilities for $A \cap 1***$ ranges from $1$ to $87123$, and similarly for $A \cap 3***$).  For each pair of slices $A \cap 1***$ and $A \cap 3***$, we computed the lines connecting these two sets to see what subset of $2***$ was excluded from $A$; there are $2^{27}$ possible such exclusion sets.  We precomputed a lookup table that gave the Pareto-optimal statistics for $A \cap 2***$ for each such choice of exclusion set; using this lookup table for each choice of $A \cap 1***$ and $A \cap 3***$ and collating the results, we obtained the above list. On a linux cluster, the lookup table took 22 minutes to create, and the loop over the $A \cap 1***$ and $A \cap 3***$ slices took two hours, spread out over $391$ machines (one for each choice of $A \cap S_{4,4}$). Further details (including source code) can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=4D\_Moser\_brute\_force\_search}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this data, we have the following facts about the statistics of large Moser sets:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}\label{stat} Let $A \subset [3]^4$ be a Moser set with statistics $(a,b,c,d,e)$.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] If $|A| \geq 40$, then $e=0$.&lt;br /&gt;
\item[(ii)] If $|A| \geq 43$, then $d=0$.&lt;br /&gt;
\item[(iii)] If $|A| \geq 42$, then $d \leq 2$.&lt;br /&gt;
\item[(iv)] If $|A| \geq 41$, then $d \leq 3$.&lt;br /&gt;
\item[(v)] If $|A| \geq 40$, then $d \leq 6$.&lt;br /&gt;
\item[(vi)] If $|A| \geq 43$, then $c \geq 18$.&lt;br /&gt;
\item[(vii)] If $|A| \geq 42$, then $c \geq 12$.&lt;br /&gt;
\item[(viii)] If $|A| \geq 43$, then $b \geq 15$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{remark}  This proposition was first established by an integer program, see Appendix \ref{integer-sec}.  A computer-free proof can be found at \centerline{{\tt http://terrytao.files.wordpress.com/2009/06/polymath2.pdf}.}&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\subsection{Five dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{5,3}=124$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=125$.  &lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,f(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{fvan} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $f(A)$ is non-zero, then $A$ contains $22222$, then each of the $\frac{3^5-1}{2} = 121$ antipodal pairs in $[3]^5$ can have at most one point in $A$, leading to only $122$ points.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let us slice $[3]^5$ into three parallel slices, e.g. $1****, 2****, 3****$.  The intersection of $A$ with each of these slices has size at most $43$.  In particular, this implies that&lt;br /&gt;
\begin{equation}\label{boo}&lt;br /&gt;
 |A \cap 1****| + |A \cap 3****| = 125 - |A \cap 2****| \geq 82.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Thus at least one of $A \cap 1****$, $A \cap 3****$ has cardinality at least $41$; by Proposition \ref{stat}(iv) we conclude that&lt;br /&gt;
\begin{equation}\label{d13}&lt;br /&gt;
\min( d(1****), d(3****) ) \leq 3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Furthermore, equality can only hold in \eqref{d13} if $A \cap 1****$, $A \cap 3****$ both have cardinality exactly $41$, in which case from Proposition \ref{stat}(iv) again we must have&lt;br /&gt;
\begin{equation}\label{d13a}&lt;br /&gt;
d(1****)=d(3****)=3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Of course, we have a similar result for permutations.&lt;br /&gt;
&lt;br /&gt;
Now we improve the bound $|A \cap 2****| \leq 43$:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $|A \cap 2****| \leq 41$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose first that $|A \cap 2****|=43$.  Let $A&#039; \subset [3]^4$ be the subset of $[3]^4$ corresponding to $A \cap 2****$, thus $A&#039;$ is a Moser set of cardinality $43$.  By Proposition \ref{stat}(vi), $c(A&#039;) \geq 18$.  By Lemma \ref{dci}, the sum of the $c(V)$, where $V$ ranges over the eight side slices of $[3]^4$, is therefore at least $36$.  By the pigeonhole principle, we may thus find two opposing side slices, say $1***$ and $3***$, with $c(1***)+c(3****) \geq 9$.  Since $c(1***), c(3***)$ cannot exceed $6$, we thus have $c(1***), c(3***) \geq 3$, with at least one of $c(1***), c(3***)$ being at least $5$.  Passing back to $A$, this implies that $d(*1***), d(*3***) \geq 3$, with at least one of $d(*1***), d(*3***)$ being at least $5$.  But this contradicts \eqref{d13} together with the refinement \eqref{d13a}.&lt;br /&gt;
&lt;br /&gt;
We have just shown that $|A \cap 2****| \leq 42$; we can thus improve \eqref{boo} to&lt;br /&gt;
$$ |A \cap 1****| + |A \cap 3****| \geq 83.$$&lt;br /&gt;
Combining this with Proposition \ref{stat}(ii)-(v) we see that&lt;br /&gt;
\begin{equation}\label{d13-6}&lt;br /&gt;
 d(1****)+d(3****) \leq 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
with equality only if $|A \cap 2****|=42$, and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
Now let $A&#039;$ be defined as before.  Then we have&lt;br /&gt;
$$ c(1***) + c(3***) \leq 6$$&lt;br /&gt;
and similarly for permutations.  Applying Lemma \ref{dci}, this implies that $c(2****) = c(A&#039;) \leq 12$.&lt;br /&gt;
&lt;br /&gt;
Now suppose for contradiction that $|A&#039;|=|A \cap 2****|=42$.  Then by Proposition \ref{stat}(vii) we have &lt;br /&gt;
\begin{equation}\label{coo-1}&lt;br /&gt;
c(2****) = 12; &lt;br /&gt;
\end{equation}&lt;br /&gt;
applying Lemma \ref{dci} again, this forces $c(1***)+c(3***)=6$ and similarly for permutations, which then implies that&lt;br /&gt;
\begin{equation}\label{doo}&lt;br /&gt;
d(*1***)+d(*3***) = d(**1**)+d(**3**) = d(***1*)+d(***3*) = d(****1)+d(****3) = 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
and hence&lt;br /&gt;
$$ |A \cap *2***| = |A \cap **2**| = |A \cap ***2*| = |A \cap ****2| = 42$$&lt;br /&gt;
and thus&lt;br /&gt;
\begin{equation}\label{coo-2}&lt;br /&gt;
c(*2***) = c(**2**) = c(***2*) = c(****2) = 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Combining \eqref{coo-1}, \eqref{doo}, \eqref{coo-2} we conclude that&lt;br /&gt;
$$ d(1****)+d(3****) = 16,$$&lt;br /&gt;
contradicting \eqref{d13-6}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
With this proposition, the bound \eqref{boo} now improves to&lt;br /&gt;
\begin{equation}\label{84}&lt;br /&gt;
|A \cap 1****| + |A \cap 3****| \geq 84&lt;br /&gt;
\end{equation}&lt;br /&gt;
and in particular&lt;br /&gt;
\begin{equation}\label{41}&lt;br /&gt;
|A \cap 1****|, |A \cap 3****| \geq 41.&lt;br /&gt;
\end{equation}&lt;br /&gt;
from this and Proposition \ref{stat}(ii)-(iv) we now have&lt;br /&gt;
\begin{equation}\label{d13-improv}&lt;br /&gt;
 d(1****)+d(3****) \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{evan} $e(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From \eqref{84}, the intersection of $A$ with any side slice has cardinality at least $41$, and thus by Proposition \ref{stat}(i) such a side slice has an $e$-statistic of zero.  The claim then follows from Lemma \ref{dci}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We need a technical lemma:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{tech} Let $B \subset S_{5,5}$.  Then there exist at least $|B|-4$ pairs of strings in $B$ which differ in exactly two positions.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} The first non-vacuous case is $|B|=5$.  It suffices to establish this case, as the higher cases then follow by induction (locating a pair of the desired form, then deleting one element of that pair from $B$).&lt;br /&gt;
&lt;br /&gt;
Suppose for contradiction that one can find a $5$-element set $B \subset S_{5,5}$ such that no two strings in $B$ differ in exactly two positions.  Recall that we may split $S_{5,5}=S_{5,5}^e \cup S_{5,5}^o$, where $S_{5,5}^e$ are those strings with an even number of $1$&#039;s, and $S_{5,5}^o$ are those strings with an odd number of $1$&#039;s.  By the pigeonhole principle and symmetry we may assume $B$ has at least three elements in $S_{5,5}^o$.  Without loss of generality, we can take one of them to be $11111$, thus excluding all elements in $S_{5,5}^o$ with exactly two $3$s, leaving only the elements with exactly four $3$s.  But any two of them differ in exactly two positions, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now improve the trivial bound $c(A) \leq 80$:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Non-maximal $c$]\label{cmax} $c(A) \leq 79$.  If $a(A) \geq 7$, then $c(A) \leq 78$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $c(A)=80$, then $A$ contains all of $S_{3,5}$, which then implies that no two elements in $A \cap S_{5,5}$ can differ in exactly two places.  It also implies (from \eqref{alpha-1}) that $d(A)$ must vanish, and that $b(A)$ is at most $40$. By Lemma \ref{tech}, we also have that $a(A) = |A \cap S_{5,5}|$ is at most $4$.  Thus $|A| \leq 4 + 40 + 80 + 0 + 0 = 124$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $a(A) \geq 7$.  Then by Lemma \ref{tech} there are at least three pairs in $A \cap S_{5,5}$ that differ in exactly two places.  Each such pair eliminates one point from $A \cap S_{3,5}$; but each point in $S_{3,5}$ can be eliminated by at most two such pairs, and so we have at least two points eliminated from $A \cap S_{3,5}$, i.e. $c(A) \leq 78$ as required.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Next, we rewrite the quantity $125=|A|$ in terms of side slices.  From Lemmas \ref{fvan}, \ref{evan} we have&lt;br /&gt;
$$ a(A) + b(A) + c(A) + d(A) = 125$$&lt;br /&gt;
and hence by Lemma \ref{dci}, the quantity&lt;br /&gt;
$$ s(V) := a(V) + \frac{5}{4} b(V) + \frac{5}{3} c(V) + \frac{5}{2} d(V) - \frac{125}{2},$$&lt;br /&gt;
where $V$ ranges over side slices, has an average value of zero.  &lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Large values of $s(V)$]\label{suv}  For all side slices, we have $s(V) \leq 1/2$.  Furthermore, we have $s(V) &amp;lt; -1/2$ unless the statistics $(a(V), b(V), c(V), d(V), e(V))$ are of one of the following four cases:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Type 1) $(a(V),b(V),c(V),d(V),e(V)) = (2,16,24,0,0)$ (and $s(V) = -1/2$ and $|A \cap V| = 42$);&lt;br /&gt;
\item (Type 2) $(a(V),b(V),c(V),d(V),e(V)) = (4,16,23,0,0)$ (and $s(V) = -1/6$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 3) $(a(V),b(V),c(V),d(V),e(V)) = (4,15,24,0,0)$ (and $s(V) = 1/4$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 4) $(a(V),b(V),c(V),d(V),e(V)) = (3,16,24,0,0)$ (and $s(V) = 1/2$ and $|A \cap V| = 43$);&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $V$ be a side slice.  From \eqref{41} we have&lt;br /&gt;
$$ 41 \leq a(V)+b(V)+c(V)+d(V) = |A \cap V| \leq 43.$$&lt;br /&gt;
First suppose that $|A \cap V| = 43$, then from Proposition \ref{stat}(ii), (viii), $d(V)=0$ and $b(V) \geq 15$.&lt;br /&gt;
Also, we have the trivial bound $c(V) \leq 24$, together with the inequality&lt;br /&gt;
$$ 3b(V) + 2c(V) \leq 96$$&lt;br /&gt;
from \eqref{alpha-1}.  To exploit these facts, we rewrite $s(V)$ as&lt;br /&gt;
$$ s(V) = \frac{1}{2} - \frac{1}{2}( 24 - c(V) ) - \frac{1}{12} (96-3b(V)-2c(V)).$$&lt;br /&gt;
Thus $s(V) \leq 1/2$ in this case.  If $s(V) \geq -1/2$, then&lt;br /&gt;
$$ 6 (24-c(V)) + (96-3b(V)-2c(V)) \leq 12,$$&lt;br /&gt;
which together with the inequalities $b(V) \leq 15$, $c(V) \leq 24$, $3b(V)+2c(V) \leq 96$ we conclude that $(b(V),c(V))$ must be one of $(16,24)$, $(15, 24)$, $(16, 23)$, $(15, 23)$.  The first three possibilities lead to Types 4,3,2 respectively.  The fourth type would lead to $(a(V),b(V),c(V),d(V),e(V)) = (5,15,23,0,0)$, but this contradicts \eqref{eleven}.&lt;br /&gt;
&lt;br /&gt;
Next, suppose $|A \cap V| = 42$, so by Proposition \ref{stat}(iii) we have $d(V) \leq 2$.  From \eqref{alpha-1} we have&lt;br /&gt;
\begin{equation}\label{2cd}&lt;br /&gt;
2c(V) + 3d(V) \leq 48&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from \eqref{alpha-2} we have&lt;br /&gt;
\begin{equation}\label{3cd}&lt;br /&gt;
3b(V)+2c(V)+3d(V) \leq 96&lt;br /&gt;
\end{equation}&lt;br /&gt;
and so we can rewrite $s(V)$ as&lt;br /&gt;
\begin{equation}\label{sv2}&lt;br /&gt;
s(V) = -\frac{1}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V).&lt;br /&gt;
\end{equation}&lt;br /&gt;
This already gives $s(V) \leq 1/2$.  If $d(V)=0$, then $s(V) \leq -1/2$, with equality only in Type 1.  If $d(V)=1$, then the set $A&#039; \subset [3]^4$ corresponding to $A \cap V$ contains a point in $S_{3,4}$, which without loss of generality we can take to be $2221$.  Considering the three lines $*221$, $2*21$, $22*1$, we see that at least three points in $S_{2,4}$ must be missing from $A&#039;$, thus $c(V) \leq 21$.  This forces $48-2c(V)-3d(V) \geq 3$, and so $s(V) &amp;lt; -3/4$.  Finally, if $d(V)=2$, then $A&#039;$ contains two points in $S_{3,4}$.  If they are antipodal (e.g. $2221$ and $2223$), the same argument as above shows that at least six points in $S_{2,4}$ are missing from $A&#039;$; if they are not antipodal (e.g. $2221$ and $2212$) then by considering the lines $*221$, $2*21$, $22*1$, $*212$, $2*12$ we see that five points are missing.  Thus we have $c(V) \leq 19$, which forces $48-2c(V)-3d(V) \geq 4$.  This forces $s(V) \leq -1/2$, with equality only when $c(V)=19$ and $3b(V)+2c(V)+3d(V)=96$, but this forces $b(V)$ to be the non-integer $52/3$, a contradiction, which concludes the treatment of the $|A \cap V|=42$ case.&lt;br /&gt;
&lt;br /&gt;
Finally, suppose $|A \cap V| = 41$.  Using \eqref{2cd}, \eqref{3cd} as before we have&lt;br /&gt;
\begin{equation}\label{sv3}&lt;br /&gt;
 s(V) = -\frac{3}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V),&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from Proposition \ref{stat}(vi) we have $d(V) \leq 3$.  This already gives $s(V) \leq 0$, and $s(V) \leq -1$ when $d(V)=1$.  In order to have $s(V) \geq -1/2$, we must then have $d(V)=2$ or $d(V)=3$.  But then the arguments of the preceding paragraph give $48-2c(V)-3d(V) \geq 4$, and so $s(V) \leq -1$ in this case.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Since the $s(V)$ average to zero, by the pigeonhole principle we may find two opposing side slices (e.g. $1****$ and $3****$), whose total $s$-value is non-negative.  Actually we can do a little better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{side-off} There exists two opposing side slices whose total $s$-value is strictly positive.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If this is not the case, then we must have $s(1****)+s(3****)=0$ and similarly for permutations.  Using Proposition \ref{suv} we thus see that for every opposing pair of side slices, one is Type 1 and one is Type 4.  In particular $c(V)=24$ for all side slices $V$.  But then by Lemma \ref{dci} we have $c(A)=80$, contradicting Lemma \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let $V, V&#039;$ be the side slices in Lemma \ref{side-off}&lt;br /&gt;
By Proposition \ref{suv}, the $V, V&#039;$ slices must then be either Type 2, Type 3, or Type 4, and they cannot both be Type 2.  Since $a(A) = a(V)+a(V&#039;)$, we conclude&lt;br /&gt;
\begin{equation}\label{amix}&lt;br /&gt;
6 \leq a(A) \leq 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
In a similar spirit, we have&lt;br /&gt;
$$ c(V) + c(V&#039;) \leq 23+24.$$&lt;br /&gt;
On the other hand, by considering the $24$ lines connecting $c$-points of $V, V&#039;$ to $c$-points of the centre slice $W$ between $V$ and $V&#039;$, each of which contains at most two points in $A$, we have&lt;br /&gt;
$$ c(V) + c(W) + c(V&#039;) \leq 24 \times 2.$$&lt;br /&gt;
Thus $c(W) \leq 1$; since&lt;br /&gt;
$$ d(A) = d(V) + d(V&#039;) + c(W)$$&lt;br /&gt;
we conclude from Proposition \ref{suv} that $d(A) \leq 1$.  Actually we can do better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $d(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that $d(A)=1$; without loss of generality we may take $11222 \in A$.  This implies that $d(1****)=d(*1***)=1$.  Also, by the above discussion, $c(**1**)$ and $c(**3**)$ cannot both be $24$, so by Proposition \ref{suv}, $s(**1**)+s(**3**) \leq 1/3$; similarly&lt;br /&gt;
$s(***1*)+s(***3*) \leq 1/3$ and $s(****1)+s(****3) \leq 1/3$.  Since the $s$ average to zero, we see from the pigeonhole principle that either $s(1****)+s(3****) \geq -1/2$ or $s(*1***)+s(*3***) \geq -1/2$.  We may assume by symmetry that &lt;br /&gt;
\begin{equation}\label{star-2}&lt;br /&gt;
s(1****)+s(3****) \geq -1/2.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Since $s(3****) \leq 1/2$ by Proposition \ref{suv}, we conclude that&lt;br /&gt;
\begin{equation}\label{star}&lt;br /&gt;
 s(1****) \geq -1.&lt;br /&gt;
\end{equation}&lt;br /&gt;
If $|A \cap 1****|=41$, then by \eqref{sv3} we have&lt;br /&gt;
$$ s(1****) = -1 - \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
but the arguments in Proposition \ref{suv} give $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$, a contradiction.  So we must have $|A \cap 1****|=42$ (by Proposition \ref{stat}(ii) and \eqref{41}).  In that case, from \eqref{sv2} we have&lt;br /&gt;
$$ s(1****) = \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
while also having $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$.  Since $s(1****) \geq -1$ and $d(1****)=1$, we soon see that we must have $48 - 2c(1****) - 3d(1****) = 3$ and $96-3b(1****)-2c(1****)-3d(1****) \leq 3$, which forces $c(1****)=21$ and $b(1****)=16$ or $b(1****)=17$; thus the statistics of $1****$ are either $(4,16,21,1,0)$ or $(3,17,21,1,0)$.&lt;br /&gt;
&lt;br /&gt;
We first eliminate the $(3,17,21,1,0)$ case.  In this case $s(1****)$ is exactly $-1$.  Inspecting the proof of \eqref{star}, we conclude that $s(3****)$ must be $+1/2$ and that $s(**1**)+s(**3**)=1/3$.  From the former fact and Proposition \ref{suv} we see that $a(A) = a(1****)+a(3****)=3+3=6$; on the other hand, from the latter fact and Proposition \ref{suv} we have $a(A) = a(**1**)+a(**3**) = 4+3=7$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
So $1****$ has statistics $(4,16,21,1,0)$, which implies that $s(1****)=-3/4$ and $|A \cap 1****|=42$.  By \eqref{star-2} we conclude &lt;br /&gt;
\begin{equation}\label{s3}&lt;br /&gt;
s(3****) \geq 1/4,&lt;br /&gt;
\end{equation} &lt;br /&gt;
which by Proposition \ref{suv} implies that $|A \cap 3****|=43$, and hence $|A \cap 2****|=40$.  On the other hand, since $e(A)=f(A)=0$ and $d(A)=1$, with the latter being caused by $11222$, we see that $c(2****)=d(2****)=e(2****)=0$.  From \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$, and we also have the trivial inequality $b(2****) \leq 32$; these inequalities are only compatible if $2****$ has statistics $(8,32,0,0,0)$, thus $A \cap 2****$ contains $S_{2,5} \cap 2****$.&lt;br /&gt;
&lt;br /&gt;
If $a(3****)=4$, then $a(A)=a(1****)+a(3****)=8$, which by Proposition \ref{suv} implies that $s(**1**)+s(**3**)$ cannot exceed $1/12$, and similarly for permutations.  On the other hand, from Proposition \ref{suv} $s(**1**)+s(**3**)$ cannot exceed $-3/4 + 1/4 = -1/2$, and so the average value of $s$ cannot be zero, a contradiction.  Thus $a(3****) \neq 4$, which by \eqref{s3} and Proposition \ref{suv} implies that $**3**$ has statistics $(3,16,24,0,0)$.&lt;br /&gt;
&lt;br /&gt;
In particular, $A$ contains $16$ points from $3**** \cap S_{1,5}$ and all of $3**** \cap S_{2,5}$.  As a consequence, no pair of the $16$ points in $A \cap 3**** \cap S_{1,5}$ can differ in only one coordinate; partitioning the $32$-point set $3**** \cap S_{1,5}$ into $16$ such pairs, we conclude that every such pair contains exactly one element of $A$.  We conclude that $A \cap 3**** \cap S_{1,5}$ is equal to either $3**** \cap S_{1,5}^e$ or $3**** \cap S_{1,5}^o$.&lt;br /&gt;
&lt;br /&gt;
On the other hand, $A$ contains all of $2**** \cap S_{2,5}$, and exactly sixteen points from $1**** \cap S_{1,5}$.  Considering the vertical lines $*xyzw$ where $xyzw \in S_{1,4}$, we conclude that $A \cap 1**** \cap S_{1,5}$ is either equal to $1**** \cap S_{1,5}^o$ or $1**** \cap S_{1,5}^e$.&lt;br /&gt;
But either case is incompatible with the fact that $A$ contains $11222$ (consider either the line $11xx2$ or $11x\overline{x}2$, where $x=1,2,3$ and $\overline{x}=4-x$), obtaining the required contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now eliminate all but three cases for the statistics of $A$:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Statistics of $A$]  The statistics $(a(A),b(A),c(A),d(A),e(A),f(A))$ of $A$ must be one of the following three tuples:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Case 1) $(6,40,79,0,0)$;&lt;br /&gt;
\item (Case 2) $(7,40,78,0,0)$;&lt;br /&gt;
\item (Case 3) $(8,39,78,0,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Since $d(A)=e(A)=f(A)=0$, we have&lt;br /&gt;
$$ c(2****)=d(2****)=e(2****)=0.$$&lt;br /&gt;
On the other hand, from \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$ as well as the trivial inequality $b(2****) \leq 24$, and also we have&lt;br /&gt;
$$ |A \cap 2****| = 125 - |A \cap 1****| - |A \cap 3****| \geq 125 - 43 - 43 = 39.$$&lt;br /&gt;
Putting all this together, we see that the only possible statistics for $2****$ are $(8,32,0,0,0)$, $(7,32,0,0,0)$, or $(8,31,0,0,0)$.  In particular, $7 \leq a(2****) \leq 8$ and $31 \leq b(2****) \leq 32$, and similarly for permutations. Applying Lemma \ref{dci} we conclude that&lt;br /&gt;
$$ 35 \leq b(A) \leq 40$$&lt;br /&gt;
and&lt;br /&gt;
$$ 77.5 \leq c(A) \leq 80.$$&lt;br /&gt;
Combining this with the first part of Corollary \ref{cmax} we conclude that $c(A)$ is either $78$ or $79$.  From this and \eqref{amix} we see that the only cases that remain to be eliminated are $(7,39,79,0,0)$ and $(8,38,79,0,0)$, but these cases are incompatible with the second part of Corollary \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We now eliminate each of the three remaining cases in turn.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(6,40,79,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has six points.  By Lemma \ref{tech}, there are at least two pairs in this set which differ in two positions.  Their midpoints are eliminated from $A \cap S_{3,5}$.  But $A$ omits exactly one point from $S_{3,5}$, so these midpoints must be the same.  By symmetry, we may then assume that these two pairs are $(11111,11133)$ and $(11113,11131)$.  Thus the eliminated point in $S_{3,5}$ is $11122$, i.e. $A$ contains $S_{3,5} \backslash \{11122\}$.  Also, $A$ contains $\{11111,11133,11113,11131\}$ and thus must omit $\{11121, 11123, 11112, 11132\}$.&lt;br /&gt;
&lt;br /&gt;
Since $11322 \in A$, at most one of  $11312, 11332$ lie in $A$. By symmetry we may assume $11312 \not \in A$, thus there is a pair $(xy1z2, xy3z2)$ with $x,y,z = 1,3$ that is totally omitted from $A$, namely $(11112,11312)$. On the other hand, every other pair of this form can have at most one point in the $A$, thus there are at most seven points in $A$ of the form $xyzw2$ with $x,y,z,w = 1,3$. Similarly there are at most 8 points of the form $xyz2w$, or of $xy2zw$, $x2yzw$, $2xyzw$, leading to $b(A) \leq 7+8+8+8+8=39$, contradicting the statistic $b(A)=40$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(7,40,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has seven points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of the midpoints of these pairs must be the same; thus, as in the previous section, we may assume that $A$ contains $\{11111,11133,11113,11131\}$ and omits $\{11121, 11123, 11112, 11132\}$ and $11122$.&lt;br /&gt;
&lt;br /&gt;
Now consider the $160$ lines $\ell$ connecting two points in $S_{4,5}$ to one point in $S_{3,5}$ (i.e. $*2xyz$ and permutations, where $x,y,z=1,3$).  By double counting, the total sum of $|\ell \cap A|$ over all $160$ lines is $4b(A)+2c(A) = 316 = 158 \times 2$.  On the other hand, each of these lines contain at most two points in $A$, but two of them (namely $1112*$ and $1112*$) contain no points.  Thus we must have $|\ell \cap A|=2$ for the remaining $158$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Since $A$ omits $1112x$ and $111x2$ for $x=1,3$, we thus conclude (by considering the lines $11*2x$ and $11*x2$) that $A$ must contain $1132x$, $113x2$, $1312x$, and $131x2$.  Taking midpoints, we conclude that $A$ omits $11322$ and $13122$.  But together with $11122$ this implies that at least three points are missing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(8,39,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Now $A \cap S_{5,5}$ has eight points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of these pairs $(a,b), (c,d)$ must have the same midpoint $p$, and two other pairs $(a&#039;,b&#039;), (c&#039;,d&#039;)$ must have the same midpoint $p&#039;$, and $A$ contains $S_{3,5} \backslash \{p,p&#039;\}$.  As $p,p&#039;$ are distinct, the plane containing $a,b,c,d$ is distinct from the plane containing $a&#039;,b&#039;,c&#039;,d&#039;$.&lt;br /&gt;
&lt;br /&gt;
Again consider the $160$ lines $\ell$ from the previous section.  This time, the sum of the $|\ell \cap A|$ is $4b(A)+2c(A) = 312 = 156 \times 2$.&lt;br /&gt;
But the two lines in the plane of $a,b,c,d$ passing through $p$, and the two lines in the plane of $a&#039;,b&#039;,c&#039;,d&#039;$ passing through $p&#039;$, have no points; thus we must have $|\ell \cap A|=2$ for the remaining $156$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have $(a,b)=(11111,11133)$, $(c,d) = (11113,11131)$, thus $p = 11122$. By permuting the first three indices, we may assume that $p&#039;$ is not of the form $x2y2z, x2yz2, xy22z, xy2z2$ for any $x,y,z=1,3$. Then we have $1112x \not \in A$ and $1122x \in A$ for every $x=1,3$, so by the preceding paragraph we have $1132x \in A$; similarly for $113x2, 1312x, 131x2$. Taking midpoints, this implies that $13122, 11322 \not \in A$, but this (together with 11122) shows that at least three points aremissing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Six dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{6,3}=353$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=354$.&lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,g(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{g6} $g(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
  &lt;br /&gt;
\begin{proof} For any four-dimensional slice $V$ of $A$, define &lt;br /&gt;
$$S(V) := 15 a(V) + 5 b(V) + 5 c(V)/2 + 3d(V)/2 + e(V).$$&lt;br /&gt;
From Lemma \ref{dci} we see that $|A|$ is equal to $a(A)+b(A)$ plus the average of $S(V)$ where $V$ ranges over the twenty slices which are some permutation of the center slice $22****$.&lt;br /&gt;
&lt;br /&gt;
If $g(A)=1$, then $a(A) \leq 32$ and $b(A) \leq 96$ by \eqref{alpha-1}.  Meanwhile, $e(V)=g(A)=1$ for every center slice $V$, so from Lemma \ref{paretop-4}, one can show that $S(V) \leq 223.5$ for every such slice.  We conclude that $|A| \leq 351.5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
For any four-dimensional slice $V$ of $A$, define the \emph{defects} to be&lt;br /&gt;
$$ D(V) := 356 - [4a(V)+6b(V)+10c(V)+20d(V)+60e(V)].$$&lt;br /&gt;
Define a \emph{corner slice} to be one of the permutations or reflections of $11****$, thus there are $60$ corner slices.  From Lemma \ref{dci} we see that $356-|A|+f(A)=2+f(A)$ is the average of the defects of all the $60$ corner slices.  On the other hand, from Lemma \ref{paretop-4} and a straightforward computation, one concludes&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{defects}  Let $A$ be a four-dimensional Moser set.  Then $D(A) \geq 0$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $A$ has statistics $(6,12,18,4,0)$, then $D(A)=0$.&lt;br /&gt;
\item If $A$ has statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$, then $D(A)=4$.&lt;br /&gt;
\item For all other $A$, $D(A) \geq 6$.&lt;br /&gt;
\item If $a(A) = 4$, then $D(A) \geq 8$.&lt;br /&gt;
\item If $a(A) \geq 7$, then $D(A) \geq 16$.&lt;br /&gt;
\item If $a(A) \geq 8$, then $D(A) \geq 30$.&lt;br /&gt;
\item If $a(A) \geq 9$, then $D(A) \geq 86$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{family} to be a set of four parallel corner slices, thus there are $15$ families, which are all a permutation of $\{11****, 13****, 31****, 33**** \}$.  We refer to the family $\{11****, 13****, 31****, 33**** \}$ as $ab****$, and similarly define the family $a*b***$, etc.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{f6} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  For any four-dimensional slice $V$ of $A$, define&lt;br /&gt;
$$ s(V) := 12 a(V)+15 b(V)/2+20 c(V)/3+15 d(V)/2 + 12 e(V),$$&lt;br /&gt;
and define an \emph{edge slice} to be one of the $30$ permutations or reflections of $12****$.  From double counting we see that $|A|-a(A)$ is equal to the average of the $30$ values of $s(V)$ as $V$ ranges over edge slices.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{paretop-4} one can verify that $s(V) \leq 336$, and that $s(V) \leq 296 = 336-40$ if $e(V)=1$.  The number of edge slices $V$ for which $e(V)=1$ is equal to $5f(A)$, and so the average value of the $s(V)$ is at most $336 - \frac{40 \times 5}{30} f(A)$, and so&lt;br /&gt;
$$ |A| - a(A) \leq 336 - \frac{40 \times 5}{30} f(A)$$&lt;br /&gt;
which we can rearrange (using $|A|=354$) as&lt;br /&gt;
$$ a(A) \geq 18 + \frac{20}{3} f(A).$$&lt;br /&gt;
Suppose first that $f(A)=1$; then $a(A) \geq 25$.  This means that in any given family, one of the four corner slices has an $a$ value of at least $7$, and thus by Lemma \ref{defects} has a defect of at least $16$.  Thus the average defect is at least $4$; on the other hand, the average defect is $2+f(A)=3$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $f(A) \geq 2$; then $a(A) \geq 32$.   Then in any given family, there is a corner slice with an $a$ value at least $9$, or four slices with $a$ value at least $8$, leading to a total defect of at least $86$ by Lemma \ref{defects}.  Thus the average defect is at least $21.5$; on the other hand, the average defect is $2+f(A) \leq 2+12$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of the above lemma, we see that the average defect of all corner slices is $2$, or equivalently that the total defect of these slices is $120$.&lt;br /&gt;
&lt;br /&gt;
Call a corner slice \emph{good} if it has statistics $(6,12,18,4,0)$, and \emph{bad} otherwise.  Thus good slices have zero defect, and bad slices have defect at least four.  Since the average defect of the $60$ corner slices is $2$, there are at least $30$ good slices.&lt;br /&gt;
&lt;br /&gt;
One can describe the structure of the good slices completely:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{sixt}  The subset of $[3]^4$ consisting of the strings $1111, 1113, 3333, 1332, 1322, 1222, 3322$ and permutations is a Moser set with statistics $(6,12,18,4,0)$.  Conversely, every Moser set with statistics $(6,12,18,4,0)$ is of this form up to the symmetries of the cube $[3]^4$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified by computer ({\bf need details}).  A computer-free proof can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Classification\_of\_\%286\%2C12\%2C18\%2C4\%2C0\%29\_sets}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this lemma, given any $x,y,z,w \in \{1,3\}$, there is a unique good Moser set in $[3]^4$ set whose intersection with $S_{1,4}$ is $\{x222, 2y22, 22z2, 222w\}$, and these are the only 16 possibilities. Call this set the \emph{good set of type $xyzw$}. It consists of&lt;br /&gt;
\begin{itemize} &lt;br /&gt;
\item The four points $x222, 2y22, 22z2, 222w$ in $S_{1,4}$;&lt;br /&gt;
\item All $24$ elements of $S_{2,4}$ except for $xy22, x2z2, x22w, 2yz2, 2y2w, 22zw$;&lt;br /&gt;
\item The twelve points $xYZ2$, $xY2W$, $x2ZW$, $XyZ2$, $Xy2W$, $2yZW$, $XYz2$, $X2zW$, $2YzW$, $XY2w$, $X2Zw$, $2YZw$ in $S_{3,4}$, where $X=4-x$, $Y=4-y$, $Z=4-z$, $W=4-w$;&lt;br /&gt;
\item The six points $xyzw, xyzW, xyZw, xYzw, Xyzw, XYZW$ in $S_{4,4}$.&lt;br /&gt;
\end{itemize} &lt;br /&gt;
&lt;br /&gt;
We can use this to constrain the types of two intersecting good slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{pqs} Suppose that the $pq****$ slice is of type $xyzw$, and the $p*r***$ slice is of type $x&#039;y&#039;z&#039;w&#039;$, where $p,q,r,x,y,z,w,x&#039;,y&#039;,z&#039;,w&#039;$ are in $\{1,3\}$. Then $x&#039;=x$ iff $q=r$, and $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$. If $x=r$ (or equivalently if $x&#039;=q$), then $y&#039;z&#039;w&#039;=yzw$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} By reflection symmetry we can take $p=q=r=1$. Observe that the $11****$ slice contains $111222$ iff $x=1$, and the $1*1***$ slice similarly contains $111222$ iff $x&#039;=1$. This shows that $x=x&#039;$.&lt;br /&gt;
&lt;br /&gt;
Suppose now that $x=x&#039;=1$. Then the $111***$ slice contains the three elements $111y22, 1112z2, 11122w$, and excludes $111Y22, 1112Z2, 11122W$, and similarly with the primes, which forces $yzw=y&#039;z&#039;w&#039;$ as claimed.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $x=x&#039;=3$. Then the $111***$ slice contains the two elements $111yzw, 111YZW$, but does not contain any of the other six points in $S_{6,6} \cap 111***$, and similarly for the primes. Thus $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$ as claimed. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two adjacent parallel good slices, such as $11****$ and $13****$.  The following lemma asserts that such slices either have opposite type, or else will create a huge amount of defect in other slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l18} Suppose that the $11****$ and $13****$ slices are good with types $xyzw$ and $x&#039;y&#039;z&#039;w&#039;$ respectively. If $x=x&#039;$, then the $1*x***$ slice has defect at least $30$, and the $1*X***$ slice has defect at least $8$. Also, the $1**1**$, $1**3**$, $1***1*$, $1***3*$, $1****1$, $1****3$ slices have defect at least $6$. In particular, the total defect of slices beginning with $1*$ is at least $74$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Observe from the $11****, 13****$ hypotheses that $a(1*x***)=9$ and $a(1*X***)=4$, which gives the first two claims by Lemma \ref{defects}.  For the other claims, one sees from Lemma \ref{pqs} that the other six slices cannot be good; also, they have an $a$-value of $6$ and a $d$-value of at most $7$, and the claims then follow from Lemma \ref{defects}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two diagonally opposite parallel good slices, such as $11****$ and $33****$. &lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l14} The $11****$ and $33****$ slices cannot both be good and of the same type.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****$ and $33****$ are of type $1111$. This excludes a lot of points from $22****$. Indeed, by connecting lines between the $11****$ and $33****$ slices, we see that the only points that can still survive in $22****$ are $221133, 221333, 221132, 223332$, and permutations of the last four indices. Double counting the lines $22133*$ and permutations we see that there are at most $12$ points one can place in the permutations of $221133, 221333, 221132$, and so the $22****$ slice has at most $16$ points. Meanwhile, the two five-dimensional slices $1*****, 3*****$ have at most $c&#039;_{5,3} = 124$ points, and the other two four-dimensional slices $21****, 23****$ have at most $c&#039;_{4,3} = 43$ points, leading to at most $16 + 124 * 2 + 43 * 2 = 350$ points in all, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
\begin{lemma}\label{l19} It is not possible for all four slices in a family to be good.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****, 13****, 31****, 33****$ are good.   By Lemma \ref{l14}, the $11****$ and $33****$ slices cannot be of the same type, and so they cannot both be of the opposite type to either $13****$ or $31****$. If $13****$ is not of the opposite type to $11****$, then by (a permutation of) Lemma \ref{l18}, the total defect of slices beginning with $1*$ is at least $74$; otherwise, if $13****$ is not of the opposite type to $33****$, then by (a permutation and reflection of) Lemma \ref{l18}, the total defect of slices beginning with $*3$ is at least $74$. Similarly, the total defect of slices beginning with $3*$ or $*1$ is at least $74$, leading to a total defect of at least $148$. But the total defect of all the corner slices is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{l20} At most one family can have a total defect of at least $38$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose there are two families with defect at least $38$. The remaining thirteen family have defect at least $4$ by Lemma \ref{l19} and Lemma \ref{defects}, leading to a total defect of at least $38*2+13*4=128$. But the total defect is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually we can refine this:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  No family can have a total defect of at least $38$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that the $ab****$ family (say) had a total defect of at least $38$, then by Corollary \ref{l20} no other families have total defect at least $38$.&lt;br /&gt;
&lt;br /&gt;
We claim that the $**ab**$ family can have at most two good slices. Indeed, suppose the $**ab**$ has three good slices, say $**11**, **13**, **33**$. By Lemma \ref{l14}, the $**11**$ and $**33**$ slices cannot be of the same type, and so cannot both be of opposite type to $**13**$. Suppose $**11**$ and $**13**$ are not of opposite type. Then by (a permutation of) Lemma \ref{l18}, one of the families $a*b***, *ab***, **b*a*, **b**a$ has a net defect of at least $38$, contradicting the normalisation.&lt;br /&gt;
&lt;br /&gt;
Thus each of the six families $**ab**, **a*b*, **a**b, ***ab*, ***a*b$ have at least two bad slices. Meanwhile, the eight families $a*b***, a**b**, a***b*, a****b, *ab***, *a*b**, *a**b*, *a***b$ have at least one bad slice by Corollary \ref{l19}, leading to twenty bad slices in addition to the defect of at least $38$ arising from the $ab****$ slice. To add up to a total defect of $120$, we conclude from Lemma \ref{defects} that all bad slices outside of the $ab****$ family have a defect of four, with at most one exception; but then by Lemma \ref{l18} this shows that (for instance) the $1*1***$ and $1*3***$ slices cannot be good unless they are of opposite type. The previous argument then shows that the a*b*** slice cannot have three good slices, which increases the number of bad slices outside of $ab****$ to at least twenty-one, and now there is no way to add up to $120$, a contradiction. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary} Every family can have at most two good slices.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If for instance $11****, 13****, 33****$ are both good, then by Lemma \ref{l14} at least one of $11****, 33****$ is not of the opposite type to $13****$, which by Lemma \ref{l18} implies that there is a family with a total defect of at least $38$, contradicting the previous proposition.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this corollary and Lemma \ref{defects}, we see that every family has a defect of at least $8$.  Since there are $15$ families, and $8 \times 15$ is exactly equal to $120$, we conclude&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{coda} Every family has \emph{exactly} two good slices, and the remaining two slices have defect $4$.  In particular, by Lemma \ref{defects}, the bad slices must have statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$.  &lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
We now limit how these slices can interact with good slices.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{goodgood}  Suppose that $1*1***$ is a good slice.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] The $11****$ slice cannot have statistics $(6,8,12,8,0)$.&lt;br /&gt;
\item[(ii)] The $11****$ slice cannot have statistics $(5,12,12,4,1)$.&lt;br /&gt;
\item[(iii)] If the $11****$ slice has statistics $(5,12,18,4,0)$, then the $112***$ slice has statistics $(3,9,3,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified through computer search; there are $16$ possible configurations for the good slices, and one can calculate that there are $2750$ configurations for the $(5,12,12,4,1)$ slices, $4368$ configurations for the $(5,12,18,4,0)$ slices, and $10000$ configurations for the $(6,8,12,8,0)$ slices. {\bf we could put human proofs for all this somewhere, presumably.}&lt;br /&gt;
&lt;br /&gt;
%We first prove (i).  Suppose for contradiction that the $11****$ slice has statistics $(6,8,12,8,0)$, then $A$ contains $111222$, and so the $1*1***$ slice is of type $1xyz$ for some $x,y,z$.  By symmetry we may assume it is of type $1111$, thus the $111***$ slice consists of&lt;br /&gt;
%$111111, 111113, 111332, 111322, 111222$ and permutations of the last three indices.  On the other hand, the $11****$ slice has all eight of the points in $11**** \cap S_{2,6}$.  Drawing lines between these points and $111111, 111113$ and permutations, we see that the $113***$ slice cannot contain $113111, 113113, 113133$, or permutations, leaving $113333$ as the only possible element of $113*** \cap S_{6,6}$.  This makes $a(11****)=5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic}  The $111***$ slice has statistics $(4,3,3,1)$, $(2,6,6,0)$, $(3,3,3,1)$, or $(1,6,6,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From Corollary \ref{coda}, we know that at least one of the slices $13****, 31****, 11****$ are good.  If $11****$ or $1*1***$ is good, then the slice $111***$ has statistics $(4,3,3,1)$ or $(2,6,6,0)$, by Lemma \ref{sixt}.  By symmetry we may thus reduce to the case where $13****$ is good and $1*1***$ is bad.  Then by Lemma \ref{goodgood}, the $1*1***$ slice has statistics $(5,12,18,4,0)$ and the $121***$ slice has statistics $(3,9,3,0)$.  Since the $131***$ slice, as a side slice of the good $13****$ slice, has statistics $(4,3,3,1)$ or $(2,6,6,0)$, we conclude that the $111***$ slice has statistics $(1,6,6,0)$ or $(3,3,3,1)$, and the claim follows.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic2} All corner slices have statistics $(6,12,18,4,0)$ or $(5,12,18,4,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  Suppose first that a corner slice, say $11****$ has statistic $(6,8,12,8,0)$.  Then $111***$ and $113***$ contain one ``d&#039;&#039; point each, and have six ``a&#039;&#039; points between them, so by Corollary \ref{slic}, they both have statistic $(3,3,3,1)$.  This forces the $1*1***$, $1*3***$ slices to be bad, which by Corollary \ref{coda} forces the $3*1***,3*3***$ slices to be good.  This forces the $311***, 313***$ slices to have statistics either $(2,6,6,0)$ or $(4,3,3,1)$.  But the $311***$ slice (say) cannot have statistic $(4,3,3,1)$, since when combined with the $(3,3,3,1)$ statistics of $111***$ would give $a(*11***)=7$, which contradicts Corollary \ref{coda}; thus the $311***$ slice has statistic $(2,6,6,0)$, and similarly for $331***$.  But then $a(3*1***)=4$, which again contradicts Corollary \ref{coda}.&lt;br /&gt;
&lt;br /&gt;
Thus no corner slice has statistic $(6,8,12,8,0)$.  Now suppose that a corner slice, say $11****$ has statistic $(5,12,12,4,1)$.  By Lemma \ref{goodgood}, the $1*1***, 1*3***$ slices are bad, so by repeating the preceding arguments we conclude that the $311***, 313***$ slices have statistics $(2,6,6,0)$ or $(4,3,3,1)$; in particular, their $a$-value is even.  However, the $*11***$ and $*13***$ slices are bad by Lemma \ref{goodgood}, and thus have an $a$-value of $5$; thus the $111***$ and $113***$ slices have an odd $a$-value.  Thus forces $a(11****)$ to be even; but it is equal to $5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this and Lemma \ref{dci}, we see that $A$ has statistics $(22,72,180,80,0,0,0)$.  In particular, we have $2\alpha_2(A)+\alpha_3(A) = 2$, which by double counting (cf. \eqref{alpha-1}) shows that for every line of the form $12222*$ (or a reflection or permutation thereof) intersects $A$ in exactly two points.  Note that such lines connect a ``$d$&#039;&#039; point to two ``$c$&#039;&#039; points.&lt;br /&gt;
&lt;br /&gt;
Also, we observe that two adjacent ``$d$&#039;&#039; points, such as $111222$ and $113222$, cannot both lie in $A$; for this would force the $*13***$ and $*11***$ slices to have statistics $(4,3,3,1)$ or $(3,3,3,1)$ by Corollary \ref{slic}, which forces $a(*1****)=6$, and thus $*1****$ must be good by Corollary \ref{slic2}; but this contradicts Lemma \ref{sixt}.  Since $\alpha_3(A)=1/2$, we conclude that given any two adjacent ``$d$&#039;&#039; points, exactly one of them lies in $A$.  In particular, the d points of the form $***222$ consist either of those strings with an even number of $1$s, or those with an odd number of $1$s.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say it&#039;s the former, thus the set contains $111222, 133222$, and permutations of the first three coordinates, but omits $113222, 333222$ and permutations of the first three coordinates. Since the ``$d$&#039;&#039; points $113222, 333222$ are omitted, we conclude that the ``$c$&#039;&#039; points $113122, 113322, 333122, 333322$ must lie in the set, and similarly for permutations of the first three and last three coordinates. But this gives at least $15$ of the $16$ ``$c$&#039;&#039; points ending in $22$; by symmetry this leads to $225$ $c$-points in all; but $c(A)=180$, contradiction.  This (finally!) completes the proof that $c&#039;_{6,3}=353$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1957</id>
		<title>Moser.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser.tex&amp;diff=1957"/>
		<updated>2009-07-14T06:44:13Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Upper bounds for the $k=3$ Moser problem in small dimensions}\label{moser-upper-sec}&lt;br /&gt;
&lt;br /&gt;
In this section we finish the proof of Theorem \ref{moser} by obtaining the upper bounds on  $c&#039;_{n,3}$ for $n \leq 6$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Statistics, densities and slices}&lt;br /&gt;
&lt;br /&gt;
Our analysis will revolve around various \emph{statistics} of Moser sets $A \subset [3]^n$, their associated \emph{densities}, and the behavior of such statistics and densities with respect to the operation of passing from the cube $[3]^n$ to various \emph{slices} of that cube.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Statistics and densities]  Let $A \subset [3]^n$ be a set.  For any $0 \leq i \leq n$, set $a_i(A) := |A \cap S_{n-i,n}|$; thus we have&lt;br /&gt;
$$ 0 \leq a_i(A) \leq |S_{n-i,n}| = \binom{n}{i} 2^{n-i}$$&lt;br /&gt;
for $0 \leq i \leq n$ and&lt;br /&gt;
$$ a_0(A) + \ldots + a_n(A) = |A|.$$&lt;br /&gt;
We refer to the vector $(a_0(A),\ldots,a_n(A))$ as the \emph{statistics} of $A$.  We define the $i^{th}$ \emph{density} $\alpha_i(A)$ to be the quantity&lt;br /&gt;
$$ \alpha_i(A) := \frac{a_i(A) }{\binom{n}{i} 2^{n-i}},$$&lt;br /&gt;
thus $0 \leq \alpha_i(A) \leq 1$ and&lt;br /&gt;
$$ |A| = \sum_{i=0}^n \binom{n}{i} 2^{n-i} a_i(A).$$&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
\begin{example}\label{2mos}  Let $n=2$ and $A$ be the Moser set $A := \{ 12, 13, 21, 23, 31, 32 \}$.  Then the statistics $(a_0(A), a_1(A), a_2(A))$ of $A$ are $(2,4,0)$, and the densities $(\alpha_0(A), \alpha_1(A), \alpha_2(A))$ are $(\frac{1}{2}, 1, 0)$.  \textbf{Include picture here? with colours?}&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
When working with small values of $n$, it will be convenient to write $a(A)$, $b(A)$, $c(A)$, etc. for $a_0(A)$, $a_1(A)$, $a_2(A)$, etc., and similarly write $\alpha(A), \beta(A), \gamma(A)$, etc. for $\alpha_0(A)$, $\alpha_1(A)$, $\alpha_2(A)$, etc.  Thus for instance in Example \ref{2mos} we have $b(A) = 4$ and $\alpha(A) = \frac{1}{2}$.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}[Subspace statistics and densities]  If $V$ is a $k$-dimensional geometric subspace of $[3]^n$, then we have a map $\phi_V: [3]^k \to [3]^n$ from the $k$-dimensional cube to the $n$-dimensional cube.  If $A \subset [3]^n$ is a set and $0 \leq i \leq k$, we write $a_i(V,A)$ for $a_i(\phi_V^{-1}(A))$ and $\alpha_i(V,A)$ for $\alpha_i(\phi_V^{-1}(A))$.  If the set $A$ is clear from context, we abbreviate $a_i(V,A)$ as $a_i(V)$ and $\alpha_i(V,A)$ as $\alpha_i(V)$.&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
For our problem, a particularly important type of subspace of $[3]^n$ will be the \emph{slices} formed by fixing one coordinate and letting the other $n-1$ coordinates vary.  We will denote this by a single string in which the $n-1$ varying coordinates are denoted by asterisks.  For instance, in $[3]^2$, $1*$ denotes the slice $1*=\{11,12,13\}$, $*2$ denotes the slice $*2=\{12,22,32\}$, etc.; similarly, in $[3]^3$, $1**$ is the slice $\{111, 112, 113, 121, 122, 123, 131, 132, 133\}$, etc.  We call a slice a \emph{centre slice} if the fixed coordinate is $2$ and a \emph{side slice} if it is $1$ or $3$.&lt;br /&gt;
 &lt;br /&gt;
\begin{example}  We continue Example \ref{2mos}.  Then the statistics of the side slice $1*$ are $(a(1*),b(1*)) = (1,1)$, while the statistics of the centre slice $2*$ are $(a(2*),b(2*))=(2,0)$.  The corresponding densities are $(\alpha(1*),\beta(1*)) = (1/2,1)$ and $(\alpha(2*),\beta(2*))=(1,0)$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
A simple double counting argument gives the following useful identity:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Double counting identity]\label{dci}  Let $A \subset [3]^n$ and $0 \leq i \leq n-1$.  Then we have&lt;br /&gt;
$$ \frac{1}{n-i-1} \sum_{V \hbox{ a side slice}} a_{i+1}(V) = \frac{1}{i+1} \sum_{W \hbox{ a centre slice}} a_i(W) = a_{i+1}(A)$$&lt;br /&gt;
where $V$ ranges over the $2n$ side slices of $[3]^n$, and $W$ ranges over the $n$ centre slices.  In other words, the average value of $\alpha_{i+1}(V)$ for side slices $V$ equals the average value of $\alpha_i(W)$ for centre slices $W$, which is in turn equal to $\alpha_{i+1}(A)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Indeed, this lemma follows from the observation that every string in $A \cap S_{n-i-1,n}$ belongs to $i+1$ centre slices $W$ (and contributes to $a_i(W)$) and to $n-i-1$ side slices $V$ (and contributes to $a_{i+1}(V)$).  One can also view this lemma probabilistically, as the assertion that there are three equivalent ways to generate a random string of length $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick a side slice $V$ at random, and randomly fill in the wildcards in such a way that $i+1$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-2,n-1}$).&lt;br /&gt;
\item Pick a centre slice $V$ at random, and randomly fill in the wildcards in such a way that $i$ of the wildcards are $2$&#039;s (i.e. using an element of $S_{n-i-1,n-1}$).&lt;br /&gt;
\item Randomly choose an element of $S_{n-i-1,n}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
\begin{example} We continue Example \ref{2mos}.  The average value of $\beta$ for side slices is equal to the average value of $\alpha$ for centre slices, which is equal to $\beta(A) = 1$.&lt;br /&gt;
\end{example}&lt;br /&gt;
&lt;br /&gt;
Another very useful fact (essentially due to \cite{chvatal2}) is that linear inequalities for statistics of Moser sets at one dimension propagate to linear inequalities in higher dimensions:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[Propagation lemma]\label{prop}  Let $n \geq 1$ be an integer.  Suppose one has a linear inequality of the form&lt;br /&gt;
\begin{equation}\label{alphav}&lt;br /&gt;
 \sum_{i=0}^n v_i \alpha_i(A) \leq s&lt;br /&gt;
\end{equation}&lt;br /&gt;
for all Moser sets $A \subset [3]^n$ and some real numbers $v_0,\ldots,v_n,s$.  Then we also have the linear inequality&lt;br /&gt;
$$ \sum_{i=0}^n v_i \alpha_{qi+r}(A) \leq s$$&lt;br /&gt;
whenever $q \geq 1$, $r \geq 0$, $N \geq nq+r$ are integers and $A \subset [3]^N$ is a Moser set.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  We run a probabilistic argument (one could of course also use a double counting argument instead).  Let $n,v_0,\ldots,v_n,s,q,r,N,A$ be as in the lemma.  Let $V$ be a random $n$-dimensional geometric subspace of $[3]^N$, created in the following fashion:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $n$ wildcards $x_1,\ldots,x_n$ to run independently from $1$ to $3$.  We also introduce dual wildcards $\overline{x_1},\ldots,\overline{x_n}$; each $\overline{x_j}$ will take the value $4-x_j$.&lt;br /&gt;
\item We randomly subdivide the $N$ coordinates into $n$ groups of $q$ coordinates, plus a remaining group of $N-nq$ ``fixed&#039;&#039; coordinates.&lt;br /&gt;
\item For each coordinate in the $j^{th}$ group of $q$ coordinates for $1 \leq j \leq n$, we randomly assign either a $x_j$ or $\overline{x_j}$.&lt;br /&gt;
\item For each coordinate in the $N-nq$ fixed coordinates, we randomly assign a digit $1,2,3$, but condition on the event that exactly $r$ of the digits are equal to $2$ (i.e. we use a random element of $S_{N-nq-r,N-nq}$).&lt;br /&gt;
\item Let $V$ be the subspace created by allowing $x_1,\ldots,x_n$ to run independently from $1$ to $3$, and $\overline{x_j}$ to take the value $4-x_j$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
For instance, if $n=2, q=2, r=1, N=6$, then a typical subspace $V$ generated in this fashion is&lt;br /&gt;
$$ 2x_1\overline{x_2}3x_2x_1 = \{ 213311, 212321, 211331, 223312, 222322, 221332, 233313, 232323, 231333\}.$$&lt;br /&gt;
Observe from that the following two ways to generate a random element of $[3]^N$ are equivalent:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Pick $V$ randomly as above, and then assign $(x_1,\ldots,x_n)$ randomly from $S_{n-i,n}$.  Assign $4-x_j$ to $\overline{x_j}$ for all $1 \leq j \leq n$.&lt;br /&gt;
\item Pick a random string in $S_{N-qi-r,N}$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
Indeed, both random variables are invariant under the symmetries of the cube, and both random variables always pick out strings in $S_{N-qi-r,N}$, and the claim follows.  As a consequence, we see that the expectation of $\alpha_i(V)$ (as $V$ ranges over the recipe described above) is equal to $\alpha_{qi+r}(A)$.  On the other hand, from \eqref{alphav} we have&lt;br /&gt;
$$  \sum_{i=0}^n v_i \alpha_i(V) \leq s$$&lt;br /&gt;
for all such $V$; taking expectations over $V$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
In view of Lemma \ref{prop}, it is of interest to locate linear inequalities relating the densities $\alpha_i(A)$, or (equivalently) the statistics $a_i(A)$.  For this, it is convenient to introduce the following notation.&lt;br /&gt;
&lt;br /&gt;
\begin{definition}  Let $n \geq 1$ be an integer.  &lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item A vector $(a_0,\ldots,a_n)$ of non-negative integers is \emph{feasible} if it is the statistics of some Moser set $A$.&lt;br /&gt;
\item A feasible vector $(a_0,\ldots,a_n)$ is \emph{Pareto-optimal} if there is no other feasible vector $(b_0,\ldots,b_n) \neq (a_0,\ldots,a_n)$ such that $b_i \geq a_i$ for all $0 \leq i \leq n$.&lt;br /&gt;
\item A Pareto-optimal vector $(a_0,\ldots,a_n)$ is \emph{extremal} if it is not a non-trivial convex linear combination of other Pareto-optimal vectors.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{definition}&lt;br /&gt;
&lt;br /&gt;
To establish a linear inequality of the form \eqref{alphav} with the $v_i$ non-negative, it suffices to test the inequality against densities associated to extremal vectors of statistics.  (There is no point considering linear inequalities with negative coefficients $v_i$, since one always has the freedom to reduce a density $\alpha_i(A)$ of a Moser set $A$ to zero, simply by removing all elements of $A$ with exactly $i$ $2$&#039;s.)&lt;br /&gt;
&lt;br /&gt;
We will classify exactly the Pareto-optimal and extremal vectors for $n \leq 3$, which by Lemma \ref{prop} will lead to useful linear inequalities for $n \geq 4$.  Using a computer, we have also located a partial list of Pareto-optimal and extremal vectors for $n=4$, which are also useful for the $n=5$ and $n=6$ theory.&lt;br /&gt;
&lt;br /&gt;
\subsection{Up to three dimensions}&lt;br /&gt;
&lt;br /&gt;
We now establish Theorem \ref{moser} for $n \leq 3$, and establish some auxiliary inequalities which will be of use in higher dimensions.&lt;br /&gt;
&lt;br /&gt;
The case $n=0$ is trivial. When $n=1$, it is clear that $c&#039;_{1,3} = 2$, and furthermore that the Pareto-optimal statistics are $(2,0)$ and $(1,1)$, which are both extremal.  This leads to the linear inequality&lt;br /&gt;
$$ 2\alpha(A) + \beta(A) \leq 2$$&lt;br /&gt;
for all Moser sets $A \subset [3]^1$, which by Lemma \ref{prop} implies that&lt;br /&gt;
\begin{equation}\label{alpha-1}&lt;br /&gt;
2\alpha_r(A) + \alpha_{r+q}(A) \leq 2&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
For $n=2$, we see by partitioning $[3]^2$ into three slices that $c&#039;_{2,3} \leq 3 c&#039;_{1,3} = 6$, and so (by the lower bounds in the previous section) $c&#039;_{2,3} = 6$.  Writing $(a,b,c) = (a(A),b(A),c(A)) = (4\alpha(A), 4\beta(A), \gamma(A))$, the inequalities \eqref{alpha-1} become&lt;br /&gt;
\begin{equation}\label{abc}&lt;br /&gt;
a + 2c \leq 4; b+2c \leq 4; 2a+b &amp;lt;= 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}  When $n=2$, the Pareto-optimal statistics are $(4,0,0), (3,2,0), (2,4,0), (2,2,1)$. In particular, the extremal statistics are $(4,0,0), (2,4,0), (2,2,1)$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  One easily checks that all the statistics listed above are feasible.&lt;br /&gt;
Consider the statistics $(a,b,c)$ of a Moser set $A \subset [3]^2$.  $c$ is either equal to $0$ or $1$.  If $c=1$, then \eqref{abc} implies that $a,b \leq 2$, so the only Pareto-optimal statistic here is $(2,2,1)$.  When instead $c=0$, the inequalities \eqref{abc} can easily imply the Pareto-optimality of $(4,0,0), (3,2,0), (2,4,0)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this lemma we see that we obtain a new inequality $2a+b+2c \leq 8$.  Converting this back to densities and using Lemma \ref{prop}, we conclude that&lt;br /&gt;
\begin{equation}\label{alpha-2}&lt;br /&gt;
4\alpha_r(A) + 2\alpha_{r+q}(A) + \alpha_{r+2q} \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq q+2r$, and $A \subset [3]^n$ is a Moser set.&lt;br /&gt;
&lt;br /&gt;
One can also check by computer that there are exactly $230$ line-free subsets of $[3]^2$.&lt;br /&gt;
&lt;br /&gt;
Now we look at three dimensions.  Writing $(a,b,c,d)$ for the statistics of a Moser set $A \subset [3]^n$ (which thus range between $(0,0,0,0)$ and $(8,12,6,1)$), the inequalities \eqref{alpha-1} imply in particular that&lt;br /&gt;
\begin{equation}\label{abc-3d}&lt;br /&gt;
a+4d \leq 8; b+6d \leq 12; c+3d \leq 6; 3a+2c \leq 24; b+c \leq 12&lt;br /&gt;
\end{equation}&lt;br /&gt;
while \eqref{alpha-2} implies that&lt;br /&gt;
\begin{equation}\label{abcd-3d}&lt;br /&gt;
3a+b+c \leq 24; b+c+3d \leq 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Summing the inequalities $b+c \leq 12, 3a+b+c \leq 24, b+c+3d \leq 12$ yields&lt;br /&gt;
$$ 3(a+b+c+d) \leq 48$$&lt;br /&gt;
and hence $|A| = a+b+c+d \leq 16$; comparing this with the lower bounds of the preceding section we obtain $c&#039;_{3,3} = 16$ as required.  (This argument is essentially identical to the one in \cite{chvatal2}).&lt;br /&gt;
&lt;br /&gt;
We have the following useful computation:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[3D Pareto-optimals]\label{paretop} When $n=3$, the Pareto-optimal statistics are $$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(3,6,5,0),(4,4,5,0),(3,7,4,0),(4,6,4,0),$$ &lt;br /&gt;
$$ (3,9,3,0),(4,7,3,0),(5,4,3,0),(4,9,2,0),(5,6,2,0),(6,3,2,0),(3,10,1,0),(5,7,1,0),$$&lt;br /&gt;
$$ (6,4,1,0),(4,12,0,0),(5,9,0,0),(6,6,0,0),(7,3,0,0),(8,0,0,0).$$  &lt;br /&gt;
In particular, the extremal statistics are &lt;br /&gt;
$$(3,6,3,1),(4,4,3,1),(4,6,2,1),(2,6,6,0),(4,4,5,0),(4,6,4,0),(4,12,0,0),(8,0,0,0).$$&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} This can be established by a brute-force search over the $2^{27} \approx 1.3 \times 10^8$ different subsets of $[3]^3$.  Actually, one can perform a much faster search than this.  Firstly, as noted earlier, there are only $230$ line-free subsets of $[3]^2$, so one could search over $230^3 \approx 1.2 \times 10^7$ configurations instead.  Secondly, by symmetry we may assume (after enumerating the $230$ sets in a suitable fashion) that the first slice $A \cap 1**$ has an index less than or equal to the third $A \cap 3**$, leading to $\binom{231}{2} \times 230 \approx 6 \times 10^6$ configurations instead.  Finally, using the first and third slice one can quickly determine which elements of the second slice $2**$ are prohibited from $A$.  There are $2^9 = 512$ possible choices for the prohibited set in $2**$.  By crosschecking these against the list of $230$ line-free sets one can compute the Pareto-optimal statistics for the second slices inside the prohibited set (the lists of such statistics turns out to length at most $23$).  Storing these statistics in a lookup table, and then running over all choices of the first and third slice (using symmetry), one now has to perform $O( 512 \times 230 ) + O( \binom{231}{2} \times 23) \approx O( 10^6 )$ computations, which is quite a feasible computation.&lt;br /&gt;
&lt;br /&gt;
One could in principle reduce the computations even further, by a factor of up to $8$, by using the symmetry group $D_4$ of the square $[3]^2$ to reduce the number of cases one needs to consider, but we did not implement this.&lt;br /&gt;
&lt;br /&gt;
A computer-free proof of this lemma can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Human\_proof\_of\_the\_3D\_Pareto-optimal\_Moser\_statistics}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} A similar computation revealed that the total number of line-free subsets of $[3]^3$ was $3813884$.  With respect to the $2^3 \times 3!=48$-element group of geometric symmetries of $[3]^3$, these sets partitioned into $83158$ equivalence classes:&lt;br /&gt;
$$&lt;br /&gt;
3813884 = 76066 \times 48+6527 \times 24+51 \times 16+338 \times 12 +109 \times 8+41 \times 6+13 \times 4 +5 \times 3+3 \times 2+5 \times 1.&lt;br /&gt;
$$&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
Lemma \ref{paretop} yields the following new inequalities:&lt;br /&gt;
\begin{align*}&lt;br /&gt;
2a+b+2c+4d &amp;amp;\leq 22 \\&lt;br /&gt;
3a+2b+3c+6d &amp;amp;\leq 36 \\&lt;br /&gt;
7a+2b+4c+8d &amp;amp;\leq 56 \\&lt;br /&gt;
6a+2b+3c+6d &amp;amp;\leq 48 \\&lt;br /&gt;
a+2c+4d &amp;amp;\leq 14 \\&lt;br /&gt;
5a+4c+8d &amp;amp;\leq 40.&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
Applying Lemma \ref{prop}, we obtain new inequalities:&lt;br /&gt;
\begin{align}&lt;br /&gt;
8\alpha_r(A)+ 6\alpha_{r+q}(A) + 6\alpha_{r+2q}(A) + 2\alpha_{r+3q}(A) &amp;amp;\leq 11 \label{eleven}\\&lt;br /&gt;
4\alpha_r(A)+4\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 6\label{six}\\&lt;br /&gt;
7\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
8\alpha_r(A)+3\alpha_{r+q}(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 8\label{eight}\\&lt;br /&gt;
4\alpha_{r+q}(A)+2\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 4\nonumber\\&lt;br /&gt;
4\alpha_r(A)+6\alpha_{r+2q}(A)+2\alpha_{r+3q}(A) &amp;amp;\leq 7\nonumber\\&lt;br /&gt;
5\alpha_r(A)+3\alpha_{r+2q}(A)+\alpha_{r+3q}(A) &amp;amp;\leq 5\nonumber &lt;br /&gt;
\end{align}&lt;br /&gt;
whenever $r \geq 0$, $q \geq 1$, $n \geq r+3q$, and Moser sets $A \subset [3]^n$.&lt;br /&gt;
&lt;br /&gt;
We also note some further corollaries of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Statistics of large 3D Moser sets]\label{paretop2}  Let $(a,b,c,d)$ be the statistics of a Moser set $A$ in $[3]^3$.  Then $|A| = a+b+c+d \leq 16$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $|A|=16$, then $(a,b,c,d) = (4,12,0,0)$.&lt;br /&gt;
\item If $|A|=15$, then $(a,b,c,d) = (4,11,0,0)$ or $(3,12,0,0)$.&lt;br /&gt;
\item If $|A| \geq 14$, then $b \geq 6$ and $d=0$.&lt;br /&gt;
\item If $|A| = 13$ and $d=1$, then $(a,b,c,d) = (4,6,2,1)$ or $(3,6,3,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\subsection{Four dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{4,3}=43$.  Let $A$ be a Moser set in $[3]^4$, with attendant statistics $(a,b,c,d,e)$, which range between $(0,0,0,0,0)$ and $(16,32,24,8,1)$.  In view of the lower bounds, our task here is to establish the upper bound $a+b+c+d+e \leq 43$.&lt;br /&gt;
&lt;br /&gt;
The linear inequalities already established just barely fail to achieve this bound, but we can obtain the upper bound $a+b+c+d+e \leq 44$ as follows.&lt;br /&gt;
First suppose that $e=1$; then from the inequalities \eqref{alpha-1} (or by considering lines passing through $2222$) we see that $a \leq 8, b \leq 16, c \leq 12, d \leq 4$ and hence $a+b+c+d+e \leq 41$, so we may assume that $e=0$.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{dci}, we see that $a+b+c+d+e$ is now equal to the sum of $a(V)/4+b(V)/3+c(V)/2+d(V)$, where $V$ ranges over all side slices of $[3]^4$.  But from Lemma \ref{paretop} we see that $a(V)/4+b(V)/3+c(V)/2+d(V)$ is at most $\frac{11}{4}$, with equality occuring only when $(a(V),b(V),c(V),d(V))=(2,6,6,0)$.  This gives the upper bound $a+b+c+d+e \leq 44$.&lt;br /&gt;
&lt;br /&gt;
The above argument shows that $a+b+c+d+e=44$ can only occur if $e=0$ and if $(a(V),b(V),c(V),d(V))=(2,6,6,0)$ for all side slices $V$.  Applying Lemma \ref{paretop} again this implies $(a,b,c,d,e)=(4,16,24,0,0)$.  But then $A$ contains all of the sphere $S_{2,4}$, which implies that the four-element set $A \cap S_{4,4}$ cannot contain a pair of strings which differ in exactly two positions (as their midpoint would then lie in $S_{2,4}$, contradicting the hypothesis that $A$ is a Moser set).  &lt;br /&gt;
&lt;br /&gt;
Recall that we may partition $S_{4,4} = S_{4,4}^e \cup S_{4,4}^o$, where &lt;br /&gt;
$$S_{4,4}^e := \{ 1111, 1133, 1313, 3113, 1331, 3131, 3311, 3333\}$$&lt;br /&gt;
is the strings in $S_{4,4}$ with an even number of $1$&#039;s, and &lt;br /&gt;
$$S_{4,4}^o := \{ 1113, 1131, 1311, 3111, 1333, 3133, 3313, 3331\}$$&lt;br /&gt;
are the strings in $S_{4,4}$ with an odd number.  Observe that any two distinct elements in $S_{4,4}^e$ differ in exactly two positions unless they are antipodal.  Thus $A \cap S_{4,4}^e$ has size at most two, with equality only when $A \cap S_{4,4}^e$ consists of an antipodal pair.  Similarly for $A \cap S_{4,4}^o$.  Thus $A$ must consist of two antipodal pairs, one from $S_{4,4}^e$ and one from $S_{4,4}^o$.&lt;br /&gt;
&lt;br /&gt;
By the symmetries of the cube we may assume without loss of generality that these pairs are $\{ 1111, 3333\}$ and $\{1113,3331\}$ respectively.  But as $A$ is a Moser set, $A$ must now exclude the strings $1112$ and $3332$.  These two strings form two corners of the eight-element set&lt;br /&gt;
$$ ***2 \cap S_{3,4} = \{ 1112, 1132, 1312, 3112, 1332, 3132, 3312, 3332 \}.$$&lt;br /&gt;
Any pair of points in this set which are ``adjacent&#039;&#039; in the sense that they differ by exactly one entry cannot both lie in $A$, as their midpoint would then lie in $S_{3,4}$, and so $A$ can contain at most four elements from this set, with equality only if $A$ contains all the points in $***2 \cap S_{3,4}$ of the same parity (either all the elements with an even number of $3$s, or all the elements with an odd number of $3$s).  But because the two corners removed from this set have the opposite parity (one has an even number of $1$s and one has an odd number), we see in fact that $A$ can contain at most $3$ points from this set.  Meanwhile, the same arguments give that $A$ contains at most four points from $**2* \cap S_{3,4}$, $*2** \cap S_{3,4}$, and $2*** \cap S_{3,4}$.  Summing we see that $b = |A \cap S_{3,4}| \leq 3+4+4+4=15$, a contradiction.  Thus we have $c&#039;_{4,3}=43$ as claimed.&lt;br /&gt;
&lt;br /&gt;
We have the following four-dimensional version of Lemma \ref{paretop}:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}[4D Pareto-optimals]\label{paretop-4} When $n=4$, the Pareto-optimal statistics listed on Table \ref{table4}.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centered{\tiny&lt;br /&gt;
$(3, 16, 24, 0, 0)$,&lt;br /&gt;
$(4, 14, 19, 2, 0)$,&lt;br /&gt;
$(4, 15, 24, 0, 0)$,&lt;br /&gt;
$(4, 16, 8, 4, 1)$,&lt;br /&gt;
$(4, 16, 14, 4, 0)$,&lt;br /&gt;
$(4, 16, 23, 0, 0)$,&lt;br /&gt;
$(4, 17, 21, 0, 0)$,&lt;br /&gt;
$(4, 18, 19, 0, 0)$,&lt;br /&gt;
$(5, 12, 12, 4, 1)$,&lt;br /&gt;
$(5, 12, 13, 6, 0)$,&lt;br /&gt;
$(5, 12, 15, 5, 0)$,&lt;br /&gt;
$(5, 12, 19, 2, 0)$,&lt;br /&gt;
$(5, 13, 10, 4, 1)$,&lt;br /&gt;
$(5, 13, 14, 5, 0)$,&lt;br /&gt;
$(5, 13, 21, 1, 0)$,&lt;br /&gt;
$(5, 15, 9, 4, 1)$,&lt;br /&gt;
$(5, 15, 12, 3, 1)$,&lt;br /&gt;
$(5, 15, 13, 5, 0)$,&lt;br /&gt;
$(5, 15, 18, 3, 0)$,&lt;br /&gt;
$(5, 15, 20, 1, 0)$,&lt;br /&gt;
$(5, 15, 22, 0, 0)$,&lt;br /&gt;
$(5, 16, 7, 4, 1)$,&lt;br /&gt;
$(5, 16, 10, 3, 1)$,&lt;br /&gt;
$(5, 16, 11, 5, 0)$,&lt;br /&gt;
$(5, 16, 12, 2, 1)$,&lt;br /&gt;
$(5, 16, 16, 3, 0)$,&lt;br /&gt;
$(5, 16, 19, 1, 0)$,&lt;br /&gt;
$(5, 16, 21, 0, 0)$,&lt;br /&gt;
$(5, 17, 12, 4, 0)$,&lt;br /&gt;
$(5, 17, 14, 3, 0)$,&lt;br /&gt;
$(5, 17, 16, 2, 0)$,&lt;br /&gt;
$(5, 17, 18, 1, 0)$,&lt;br /&gt;
$(5, 17, 20, 0, 0)$,&lt;br /&gt;
$(5, 18, 13, 3, 0)$,&lt;br /&gt;
$(5, 18, 14, 2, 0)$,&lt;br /&gt;
$(5, 20, 8, 4, 0)$,&lt;br /&gt;
$(5, 20, 10, 3, 0)$,&lt;br /&gt;
$(5, 20, 13, 2, 0)$,&lt;br /&gt;
$(5, 20, 14, 1, 0)$,&lt;br /&gt;
$(5, 20, 18, 0, 0)$,&lt;br /&gt;
$(5, 21, 10, 2, 0)$,&lt;br /&gt;
$(5, 21, 15, 0, 0)$,&lt;br /&gt;
$(5, 22, 13, 0, 0)$,&lt;br /&gt;
$(6, 8, 12, 8, 0)$,&lt;br /&gt;
$(6, 10, 11, 4, 1)$,&lt;br /&gt;
$(6, 11, 12, 7, 0)$,&lt;br /&gt;
$(6, 12, 10, 7, 0)$,&lt;br /&gt;
$(6, 12, 13, 5, 0)$,&lt;br /&gt;
$(6, 12, 18, 4, 0)$,&lt;br /&gt;
$(6, 13, 16, 4, 0)$,&lt;br /&gt;
$(6, 14, 9, 4, 1)$,&lt;br /&gt;
$(6, 14, 9, 7, 0)$,&lt;br /&gt;
$(6, 14, 12, 6, 0)$,&lt;br /&gt;
$(6, 14, 16, 3, 0)$,&lt;br /&gt;
$(6, 14, 19, 1, 0)$,&lt;br /&gt;
$(6, 14, 21, 0, 0)$,&lt;br /&gt;
$(6, 15, 7, 4, 1)$,&lt;br /&gt;
$(6, 15, 10, 3, 1)$,&lt;br /&gt;
$(6, 15, 10, 6, 0)$,&lt;br /&gt;
$(6, 15, 11, 2, 1)$,&lt;br /&gt;
$(6, 15, 12, 5, 0)$,&lt;br /&gt;
$(6, 15, 15, 4, 0)$,&lt;br /&gt;
$(6, 15, 20, 0, 0)$,&lt;br /&gt;
$(6, 16, 7, 3, 1)$,&lt;br /&gt;
$(6, 16, 8, 6, 0)$,&lt;br /&gt;
$(6, 16, 9, 2, 1)$,&lt;br /&gt;
$(6, 16, 10, 5, 0)$,&lt;br /&gt;
$(6, 16, 12, 1, 1)$,&lt;br /&gt;
$(6, 16, 13, 4, 0)$,&lt;br /&gt;
$(6, 16, 14, 3, 0)$,&lt;br /&gt;
$(6, 16, 18, 2, 0)$,&lt;br /&gt;
$(6, 16, 19, 0, 0)$,&lt;br /&gt;
$(6, 17, 9, 5, 0)$,&lt;br /&gt;
$(6, 17, 10, 4, 0)$,&lt;br /&gt;
$(6, 17, 13, 3, 0)$,&lt;br /&gt;
$(6, 17, 15, 2, 0)$,&lt;br /&gt;
$(6, 17, 17, 1, 0)$,&lt;br /&gt;
$(6, 17, 18, 0, 0)$,&lt;br /&gt;
$(6, 18, 13, 2, 0)$,&lt;br /&gt;
$(6, 18, 16, 1, 0)$,&lt;br /&gt;
$(6, 18, 17, 0, 0)$,&lt;br /&gt;
$(6, 19, 9, 4, 0)$,&lt;br /&gt;
$(6, 19, 12, 3, 0)$,&lt;br /&gt;
$(6, 19, 15, 1, 0)$,&lt;br /&gt;
$(6, 20, 7, 4, 0)$,&lt;br /&gt;
$(6, 20, 9, 3, 0)$,&lt;br /&gt;
$(6, 20, 12, 2, 0)$,&lt;br /&gt;
$(6, 20, 13, 1, 0)$,&lt;br /&gt;
$(6, 20, 15, 0, 0)$,&lt;br /&gt;
$(6, 21, 8, 3, 0)$,&lt;br /&gt;
$(6, 21, 9, 2, 0)$,&lt;br /&gt;
$(6, 21, 12, 1, 0)$,&lt;br /&gt;
$(6, 21, 14, 0, 0)$,&lt;br /&gt;
$(6, 22, 7, 3, 0)$,&lt;br /&gt;
$(6, 22, 8, 2, 0)$,&lt;br /&gt;
$(6, 22, 10, 1, 0)$,&lt;br /&gt;
$(6, 23, 9, 1, 0)$,&lt;br /&gt;
$(6, 24, 7, 2, 0)$,&lt;br /&gt;
$(6, 24, 8, 1, 0)$,&lt;br /&gt;
$(6, 24, 12, 0, 0)$,&lt;br /&gt;
$(6, 25, 9, 0, 0)$,&lt;br /&gt;
$(6, 26, 7, 0, 0)$,&lt;br /&gt;
$(7, 8, 6, 8, 0)$,&lt;br /&gt;
$(7, 11, 9, 4, 1)$,&lt;br /&gt;
$(7, 11, 12, 6, 0)$,&lt;br /&gt;
$(7, 12, 8, 4, 1)$,&lt;br /&gt;
$(7, 12, 8, 6, 0)$,&lt;br /&gt;
$(7, 12, 12, 3, 1)$,&lt;br /&gt;
$(7, 12, 12, 5, 0)$,&lt;br /&gt;
$(7, 12, 13, 4, 0)$,&lt;br /&gt;
$(7, 12, 15, 3, 0)$,&lt;br /&gt;
$(7, 12, 17, 2, 0)$,&lt;br /&gt;
$(7, 13, 7, 4, 1)$,&lt;br /&gt;
$(7, 13, 10, 3, 1)$,&lt;br /&gt;
$(7, 13, 11, 5, 0)$,&lt;br /&gt;
$(7, 13, 12, 2, 1)$,&lt;br /&gt;
$(7, 13, 12, 4, 0)$,&lt;br /&gt;
$(7, 13, 14, 3, 0)$,&lt;br /&gt;
$(7, 13, 16, 2, 0)$,&lt;br /&gt;
$(7, 14, 6, 4, 1)$,&lt;br /&gt;
$(7, 14, 6, 7, 0)$,&lt;br /&gt;
$(7, 14, 9, 5, 0)$,&lt;br /&gt;
$(7, 14, 10, 2, 1)$,&lt;br /&gt;
$(7, 14, 12, 1, 1)$,&lt;br /&gt;
$(7, 14, 17, 1, 0)$,&lt;br /&gt;
$(7, 14, 19, 0, 0)$,&lt;br /&gt;
$(7, 15, 7, 5, 0)$,&lt;br /&gt;
$(7, 15, 8, 3, 1)$,&lt;br /&gt;
$(7, 15, 9, 2, 1)$,&lt;br /&gt;
$(7, 15, 11, 1, 1)$,&lt;br /&gt;
$(7, 15, 11, 4, 0)$,&lt;br /&gt;
$(7, 15, 13, 3, 0)$,&lt;br /&gt;
$(7, 15, 16, 1, 0)$,&lt;br /&gt;
$(7, 16, 6, 3, 1)$,&lt;br /&gt;
$(7, 16, 6, 6, 0)$,&lt;br /&gt;
$(7, 16, 8, 2, 1)$,&lt;br /&gt;
$(7, 16, 10, 1, 1)$,&lt;br /&gt;
$(7, 16, 10, 4, 0)$,&lt;br /&gt;
$(7, 16, 12, 0, 1)$,&lt;br /&gt;
$(7, 16, 12, 3, 0)$,&lt;br /&gt;
$(7, 16, 15, 2, 0)$,&lt;br /&gt;
$(7, 16, 17, 0, 0)$,&lt;br /&gt;
$(7, 17, 6, 5, 0)$,&lt;br /&gt;
$(7, 17, 7, 4, 0)$,&lt;br /&gt;
$(7, 17, 11, 3, 0)$,&lt;br /&gt;
$(7, 17, 13, 2, 0)$,&lt;br /&gt;
$(7, 17, 14, 1, 0)$,&lt;br /&gt;
$(7, 17, 16, 0, 0)$,&lt;br /&gt;
$(7, 18, 10, 3, 0)$,&lt;br /&gt;
$(7, 18, 13, 1, 0)$,&lt;br /&gt;
$(7, 18, 15, 0, 0)$,&lt;br /&gt;
$(7, 19, 9, 3, 0)$,&lt;br /&gt;
$(7, 20, 6, 4, 0)$,&lt;br /&gt;
$(7, 20, 11, 2, 0)$,&lt;br /&gt;
$(7, 20, 12, 1, 0)$,&lt;br /&gt;
$(7, 20, 14, 0, 0)$,&lt;br /&gt;
$(7, 21, 8, 2, 0)$,&lt;br /&gt;
$(7, 21, 10, 1, 0)$,&lt;br /&gt;
$(7, 21, 12, 0, 0)$,&lt;br /&gt;
$(7, 22, 9, 1, 0)$,&lt;br /&gt;
$(7, 22, 11, 0, 0)$,&lt;br /&gt;
$(7, 23, 6, 3, 0)$,&lt;br /&gt;
$(7, 23, 7, 1, 0)$,&lt;br /&gt;
$(7, 23, 10, 0, 0)$,&lt;br /&gt;
$(7, 24, 6, 2, 0)$,&lt;br /&gt;
$(7, 24, 9, 0, 0)$,&lt;br /&gt;
$(7, 25, 6, 1, 0)$,&lt;br /&gt;
$(7, 25, 8, 0, 0)$,&lt;br /&gt;
$(7, 26, 3, 1, 0)$,&lt;br /&gt;
$(7, 28, 6, 0, 0)$,&lt;br /&gt;
$(7, 29, 3, 0, 0)$,&lt;br /&gt;
$(7, 30, 1, 0, 0)$,&lt;br /&gt;
$(8, 8, 0, 8, 0)$,&lt;br /&gt;
$(8, 8, 9, 7, 0)$,&lt;br /&gt;
$(8, 8, 12, 6, 0)$,&lt;br /&gt;
$(8, 9, 9, 4, 1)$,&lt;br /&gt;
$(8, 9, 10, 6, 0)$,&lt;br /&gt;
$(8, 9, 12, 3, 1)$,&lt;br /&gt;
$(8, 9, 12, 5, 0)$,&lt;br /&gt;
$(8, 9, 13, 4, 0)$,&lt;br /&gt;
$(8, 9, 15, 3, 0)$,&lt;br /&gt;
$(8, 10, 7, 4, 1)$,&lt;br /&gt;
$(8, 10, 10, 3, 1)$,&lt;br /&gt;
$(8, 10, 10, 5, 0)$,&lt;br /&gt;
$(8, 10, 12, 2, 1)$,&lt;br /&gt;
$(8, 10, 12, 4, 0)$,&lt;br /&gt;
$(8, 10, 13, 3, 0)$,&lt;br /&gt;
$(8, 10, 15, 2, 0)$,&lt;br /&gt;
$(8, 11, 6, 4, 1)$,&lt;br /&gt;
$(8, 11, 9, 6, 0)$,&lt;br /&gt;
$(8, 11, 10, 2, 1)$,&lt;br /&gt;
$(8, 11, 11, 4, 0)$,&lt;br /&gt;
$(8, 12, 7, 6, 0)$,&lt;br /&gt;
$(8, 12, 9, 3, 1)$,&lt;br /&gt;
$(8, 12, 9, 5, 0)$,&lt;br /&gt;
$(8, 12, 10, 4, 0)$,&lt;br /&gt;
$(8, 12, 12, 1, 1)$,&lt;br /&gt;
$(8, 12, 14, 2, 0)$,&lt;br /&gt;
$(8, 12, 16, 1, 0)$,&lt;br /&gt;
$(8, 12, 18, 0, 0)$,&lt;br /&gt;
$(8, 13, 7, 3, 1)$,&lt;br /&gt;
$(8, 13, 7, 5, 0)$,&lt;br /&gt;
$(8, 13, 9, 2, 1)$,&lt;br /&gt;
$(8, 13, 12, 0, 1)$,&lt;br /&gt;
$(8, 13, 12, 3, 0)$,&lt;br /&gt;
$(8, 14, 0, 7, 0)$,&lt;br /&gt;
$(8, 14, 6, 6, 0)$,&lt;br /&gt;
$(8, 14, 7, 2, 1)$,&lt;br /&gt;
$(8, 14, 8, 1, 1)$,&lt;br /&gt;
$(8, 14, 9, 4, 0)$,&lt;br /&gt;
$(8, 14, 11, 0, 1)$,&lt;br /&gt;
$(8, 14, 11, 3, 0)$,&lt;br /&gt;
$(8, 14, 13, 2, 0)$,&lt;br /&gt;
$(8, 14, 15, 1, 0)$,&lt;br /&gt;
$(8, 14, 17, 0, 0)$,&lt;br /&gt;
$(8, 15, 6, 3, 1)$,&lt;br /&gt;
$(8, 15, 6, 5, 0)$,&lt;br /&gt;
$(8, 15, 7, 1, 1)$,&lt;br /&gt;
$(8, 16, 0, 6, 0)$,&lt;br /&gt;
$(8, 16, 4, 3, 1)$,&lt;br /&gt;
$(8, 16, 4, 5, 0)$,&lt;br /&gt;
$(8, 16, 6, 2, 1)$,&lt;br /&gt;
$(8, 16, 8, 4, 0)$,&lt;br /&gt;
$(8, 16, 9, 0, 1)$,&lt;br /&gt;
$(8, 16, 10, 3, 0)$,&lt;br /&gt;
$(8, 16, 12, 2, 0)$,&lt;br /&gt;
$(8, 16, 14, 1, 0)$,&lt;br /&gt;
$(8, 16, 16, 0, 0)$,&lt;br /&gt;
$(8, 17, 0, 5, 0)$,&lt;br /&gt;
$(8, 17, 3, 4, 0)$,&lt;br /&gt;
$(8, 17, 8, 3, 0)$,&lt;br /&gt;
$(8, 17, 10, 2, 0)$,&lt;br /&gt;
$(8, 17, 12, 1, 0)$,&lt;br /&gt;
$(8, 17, 14, 0, 0)$,&lt;br /&gt;
$(8, 18, 9, 2, 0)$,&lt;br /&gt;
$(8, 18, 11, 1, 0)$,&lt;br /&gt;
$(8, 18, 12, 0, 0)$,&lt;br /&gt;
$(8, 19, 6, 3, 0)$,&lt;br /&gt;
$(8, 19, 8, 2, 0)$,&lt;br /&gt;
$(8, 20, 0, 4, 0)$,&lt;br /&gt;
$(8, 20, 4, 3, 0)$,&lt;br /&gt;
$(8, 20, 7, 2, 0)$,&lt;br /&gt;
$(8, 20, 9, 1, 0)$,&lt;br /&gt;
$(8, 20, 11, 0, 0)$,&lt;br /&gt;
$(8, 21, 4, 2, 0)$,&lt;br /&gt;
$(8, 21, 7, 1, 0)$,&lt;br /&gt;
$(8, 22, 3, 2, 0)$,&lt;br /&gt;
$(8, 22, 6, 1, 0)$,&lt;br /&gt;
$(8, 22, 9, 0, 0)$,&lt;br /&gt;
$(8, 23, 0, 3, 0)$,&lt;br /&gt;
$(8, 23, 4, 1, 0)$,&lt;br /&gt;
$(8, 24, 0, 2, 0)$,&lt;br /&gt;
$(8, 24, 3, 1, 0)$,&lt;br /&gt;
$(8, 24, 8, 0, 0)$,&lt;br /&gt;
$(8, 25, 1, 1, 0)$,&lt;br /&gt;
$(8, 25, 6, 0, 0)$,&lt;br /&gt;
$(8, 26, 0, 1, 0)$,&lt;br /&gt;
$(8, 26, 4, 0, 0)$,&lt;br /&gt;
$(8, 28, 3, 0, 0)$,&lt;br /&gt;
$(8, 32, 0, 0, 0)$,&lt;br /&gt;
$(9, 8, 10, 4, 0)$,&lt;br /&gt;
$(9, 9, 9, 4, 0)$,&lt;br /&gt;
$(9, 9, 12, 3, 0)$,&lt;br /&gt;
$(9, 10, 8, 4, 0)$,&lt;br /&gt;
$(9, 10, 10, 3, 0)$,&lt;br /&gt;
$(9, 10, 12, 2, 0)$,&lt;br /&gt;
$(9, 10, 13, 1, 0)$,&lt;br /&gt;
$(9, 10, 15, 0, 0)$,&lt;br /&gt;
$(9, 11, 11, 2, 0)$,&lt;br /&gt;
$(9, 12, 7, 4, 0)$,&lt;br /&gt;
$(9, 12, 9, 3, 0)$,&lt;br /&gt;
$(9, 12, 12, 1, 0)$,&lt;br /&gt;
$(9, 12, 14, 0, 0)$,&lt;br /&gt;
$(9, 13, 7, 3, 0)$,&lt;br /&gt;
$(9, 13, 10, 2, 0)$,&lt;br /&gt;
$(9, 14, 9, 2, 0)$,&lt;br /&gt;
$(9, 14, 11, 1, 0)$,&lt;br /&gt;
$(9, 14, 13, 0, 0)$,&lt;br /&gt;
$(9, 15, 6, 3, 0)$,&lt;br /&gt;
$(9, 16, 0, 4, 0)$,&lt;br /&gt;
$(9, 16, 4, 3, 0)$,&lt;br /&gt;
$(9, 16, 8, 2, 0)$,&lt;br /&gt;
$(9, 16, 10, 1, 0)$,&lt;br /&gt;
$(9, 16, 12, 0, 0)$,&lt;br /&gt;
$(9, 17, 3, 3, 0)$,&lt;br /&gt;
$(9, 17, 6, 2, 0)$,&lt;br /&gt;
$(9, 17, 8, 1, 0)$,&lt;br /&gt;
$(9, 17, 10, 0, 0)$,&lt;br /&gt;
$(9, 18, 2, 3, 0)$,&lt;br /&gt;
$(9, 18, 4, 2, 0)$,&lt;br /&gt;
$(9, 18, 7, 1, 0)$,&lt;br /&gt;
$(9, 18, 9, 0, 0)$,&lt;br /&gt;
$(9, 19, 0, 3, 0)$,&lt;br /&gt;
$(9, 19, 3, 2, 0)$,&lt;br /&gt;
$(9, 19, 6, 1, 0)$,&lt;br /&gt;
$(9, 20, 1, 2, 0)$,&lt;br /&gt;
$(9, 20, 5, 1, 0)$,&lt;br /&gt;
$(9, 20, 8, 0, 0)$,&lt;br /&gt;
$(9, 21, 4, 1, 0)$,&lt;br /&gt;
$(9, 21, 6, 0, 0)$,&lt;br /&gt;
$(9, 22, 1, 1, 0)$,&lt;br /&gt;
$(9, 22, 5, 0, 0)$,&lt;br /&gt;
$(9, 24, 4, 0, 0)$,&lt;br /&gt;
$(9, 25, 2, 0, 0)$,&lt;br /&gt;
$(9, 28, 0, 0, 0)$,&lt;br /&gt;
$(10, 8, 6, 4, 0)$,&lt;br /&gt;
$(10, 8, 8, 3, 0)$,&lt;br /&gt;
$(10, 9, 7, 3, 0)$,&lt;br /&gt;
$(10, 9, 10, 2, 0)$,&lt;br /&gt;
$(10, 9, 11, 1, 0)$,&lt;br /&gt;
$(10, 9, 13, 0, 0)$,&lt;br /&gt;
$(10, 10, 5, 4, 0)$,&lt;br /&gt;
$(10, 10, 9, 2, 0)$,&lt;br /&gt;
$(10, 10, 12, 0, 0)$,&lt;br /&gt;
$(10, 11, 6, 3, 0)$,&lt;br /&gt;
$(10, 12, 4, 4, 0)$,&lt;br /&gt;
$(10, 12, 5, 3, 0)$,&lt;br /&gt;
$(10, 12, 7, 2, 0)$,&lt;br /&gt;
$(10, 12, 10, 1, 0)$,&lt;br /&gt;
$(10, 12, 11, 0, 0)$,&lt;br /&gt;
$(10, 13, 6, 2, 0)$,&lt;br /&gt;
$(10, 13, 8, 1, 0)$,&lt;br /&gt;
$(10, 13, 10, 0, 0)$,&lt;br /&gt;
$(10, 14, 3, 3, 0)$,&lt;br /&gt;
$(10, 14, 5, 2, 0)$,&lt;br /&gt;
$(10, 14, 9, 0, 0)$,&lt;br /&gt;
$(10, 15, 2, 3, 0)$,&lt;br /&gt;
$(10, 15, 7, 1, 0)$,&lt;br /&gt;
$(10, 16, 4, 2, 0)$,&lt;br /&gt;
$(10, 16, 6, 1, 0)$,&lt;br /&gt;
$(10, 16, 8, 0, 0)$,&lt;br /&gt;
$(10, 17, 4, 1, 0)$,&lt;br /&gt;
$(10, 17, 6, 0, 0)$,&lt;br /&gt;
$(10, 18, 2, 1, 0)$,&lt;br /&gt;
$(10, 18, 5, 0, 0)$,&lt;br /&gt;
$(10, 20, 4, 0, 0)$,&lt;br /&gt;
$(10, 21, 2, 0, 0)$,&lt;br /&gt;
$(10, 22, 1, 0, 0)$,&lt;br /&gt;
$(10, 24, 0, 0, 0)$,&lt;br /&gt;
$(11, 4, 6, 4, 0)$,&lt;br /&gt;
$(11, 6, 5, 4, 0)$,&lt;br /&gt;
$(11, 7, 6, 3, 0)$,&lt;br /&gt;
$(11, 8, 4, 4, 0)$,&lt;br /&gt;
$(11, 8, 5, 3, 0)$,&lt;br /&gt;
$(11, 9, 6, 2, 0)$,&lt;br /&gt;
$(11, 9, 8, 1, 0)$,&lt;br /&gt;
$(11, 9, 10, 0, 0)$,&lt;br /&gt;
$(11, 10, 3, 3, 0)$,&lt;br /&gt;
$(11, 10, 5, 2, 0)$,&lt;br /&gt;
$(11, 10, 9, 0, 0)$,&lt;br /&gt;
$(11, 11, 2, 3, 0)$,&lt;br /&gt;
$(11, 11, 7, 1, 0)$,&lt;br /&gt;
$(11, 12, 4, 2, 0)$,&lt;br /&gt;
$(11, 12, 6, 1, 0)$,&lt;br /&gt;
$(11, 12, 8, 0, 0)$,&lt;br /&gt;
$(11, 13, 4, 1, 0)$,&lt;br /&gt;
$(11, 13, 6, 0, 0)$,&lt;br /&gt;
$(11, 14, 2, 1, 0)$,&lt;br /&gt;
$(11, 14, 5, 0, 0)$,&lt;br /&gt;
$(11, 16, 4, 0, 0)$,&lt;br /&gt;
$(11, 17, 2, 0, 0)$,&lt;br /&gt;
$(11, 18, 1, 0, 0)$,&lt;br /&gt;
$(11, 20, 0, 0, 0)$,&lt;br /&gt;
$(12, 4, 3, 3, 0)$,&lt;br /&gt;
$(12, 6, 2, 3, 0)$,&lt;br /&gt;
$(12, 6, 5, 2, 0)$,&lt;br /&gt;
$(12, 6, 7, 1, 0)$,&lt;br /&gt;
$(12, 6, 9, 0, 0)$,&lt;br /&gt;
$(12, 8, 4, 2, 0)$,&lt;br /&gt;
$(12, 8, 6, 1, 0)$,&lt;br /&gt;
$(12, 8, 8, 0, 0)$,&lt;br /&gt;
$(12, 9, 4, 1, 0)$,&lt;br /&gt;
$(12, 9, 6, 0, 0)$,&lt;br /&gt;
$(12, 10, 2, 1, 0)$,&lt;br /&gt;
$(12, 10, 5, 0, 0)$,&lt;br /&gt;
$(12, 12, 4, 0, 0)$,&lt;br /&gt;
$(12, 13, 2, 0, 0)$,&lt;br /&gt;
$(12, 14, 1, 0, 0)$,&lt;br /&gt;
$(12, 16, 0, 0, 0)$,&lt;br /&gt;
$(13, 6, 5, 0, 0)$,&lt;br /&gt;
$(13, 8, 4, 0, 0)$,&lt;br /&gt;
$(13, 9, 2, 0, 0)$,&lt;br /&gt;
$(13, 10, 1, 0, 0)$,&lt;br /&gt;
$(13, 12, 0, 0, 0)$,&lt;br /&gt;
$(14, 4, 3, 0, 0)$,&lt;br /&gt;
$(14, 5, 2, 0, 0)$,&lt;br /&gt;
$(14, 6, 1, 0, 0)$,&lt;br /&gt;
$(14, 8, 0, 0, 0)$,&lt;br /&gt;
$(15, 4, 0, 0, 0)$,&lt;br /&gt;
$(16, 0, 0, 0, 0)$}}&lt;br /&gt;
\caption{The Pareto-optimal statistics of Moser sets in $[3]^4$.  This table can also be found at {\tt http://spreadsheets.google.com/ccc?key=rwXB\_Rn3Q1Zf5yaeMQL-RDw}}&lt;br /&gt;
\label{table4}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This was computed by computer search as follows.  First, one observed that if $(a,b,c,d,e)$ was Pareto-optimal, then $a\geq 3$.  To see this, it suffices to show that for any Moser set $A \subset [3]^4$ with $a(A)=0$, it is possible to add three points from $S_{4,4}$ to $A$ and still have a Moser set.  To show this, suppose first that $A$ contains a point from $S_{1,4}$, such as $2221$. Then $A$ must omit either $2211$ or $2231$; without loss of generality we may assume that it omits $2211$. Similarly we may assume it omits $2121$ and $1221$. Then we can add $1131$, $1311$, $3111$ to $A$, as required. Thus we may assume that $A$ contains no points from $S_{1,4}$.  Now suppose that $A$ omits a point from $S_{2,4}$, such as $2211$. Then one can add $3333$, $3111$, $1311$ to $A$, as required. Thus we may assume that A contains all of $S_{2,4}$, which forces $A$ to omit $2222$, as well as at least one point from $S_{3,4}$, such as $2111$. But then $3111$, $1111$, $3333$ can be added to the set, a contradiction. &lt;br /&gt;
&lt;br /&gt;
Thus we only need to search through sets $A \subset [3]^4$ for which $|A \cap S_{4,4}| \geq 3$.  A straightforward computer search shows that up to the symmetries of the cube, there are $391$ possible choices for $A \cap S_{4,4}$.  For each such choice, we looped through all the possible values of the slices $A \cap 1***$ and $A \cap 3***$, i.e. all three-dimensional Moser sets which had the indicated intersection with $S_{3,3}$.  (For fixed $A \cap S_{4,4}$, the number of possibilities for $A \cap 1***$ ranges from $1$ to $87123$, and similarly for $A \cap 3***$).  For each pair of slices $A \cap 1***$ and $A \cap 3***$, we computed the lines connecting these two sets to see what subset of $2***$ was excluded from $A$; there are $2^{27}$ possible such exclusion sets.  We precomputed a lookup table that gave the Pareto-optimal statistics for $A \cap 2***$ for each such choice of exclusion set; using this lookup table for each choice of $A \cap 1***$ and $A \cap 3***$ and collating the results, we obtained the above list. On a linux cluster, the lookup table took 22 minutes to create, and the loop over the $A \cap 1***$ and $A \cap 3***$ slices took two hours, spread out over $391$ machines (one for each choice of $A \cap S_{4,4}$). Further details (including source code) can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=4D\_Moser\_brute\_force\_search}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this data, we have the following facts about the statistics of large Moser sets:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}\label{stat} Let $A \subset [3]^4$ be a Moser set with statistics $(a,b,c,d,e)$.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] If $|A| \geq 40$, then $e=0$.&lt;br /&gt;
\item[(ii)] If $|A| \geq 43$, then $d=0$.&lt;br /&gt;
\item[(iii)] If $|A| \geq 42$, then $d \leq 2$.&lt;br /&gt;
\item[(iv)] If $|A| \geq 41$, then $d \leq 3$.&lt;br /&gt;
\item[(v)] If $|A| \geq 40$, then $d \leq 6$.&lt;br /&gt;
\item[(vi)] If $|A| \geq 43$, then $c \geq 18$.&lt;br /&gt;
\item[(vii)] If $|A| \geq 42$, then $c \geq 12$.&lt;br /&gt;
\item[(viii)] If $|A| \geq 43$, then $b \geq 15$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{remark}  This proposition was first established by an integer program, see Appendix \ref{integer-sec}.  A computer-free proof can be found at \centerline{{\tt http://terrytao.files.wordpress.com/2009/06/polymath2.pdf}.}&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\subsection{Five dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{5,3}=124$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=125$.  &lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,f(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{fvan} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $f(A)$ is non-zero, then $A$ contains $22222$, then each of the $\frac{3^5-1}{2} = 121$ antipodal pairs in $[3]^5$ can have at most one point in $A$, leading to only $122$ points.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let us slice $[3]^5$ into three parallel slices, e.g. $1****, 2****, 3****$.  The intersection of $A$ with each of these slices has size at most $43$.  In particular, this implies that&lt;br /&gt;
\begin{equation}\label{boo}&lt;br /&gt;
 |A \cap 1****| + |A \cap 3****| = 125 - |A \cap 2****| \geq 82.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Thus at least one of $A \cap 1****$, $A \cap 3****$ has cardinality at least $41$; by Proposition \ref{stat}(iv) we conclude that&lt;br /&gt;
\begin{equation}\label{d13}&lt;br /&gt;
\min( d(1****), d(3****) ) \leq 3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Furthermore, equality can only hold in \eqref{d13} if $A \cap 1****$, $A \cap 3****$ both have cardinality exactly $41$, in which case from Proposition \ref{stat}(iv) again we must have&lt;br /&gt;
\begin{equation}\label{d13a}&lt;br /&gt;
d(1****)=d(3****)=3.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Of course, we have a similar result for permutations.&lt;br /&gt;
&lt;br /&gt;
Now we improve the bound $|A \cap 2****| \leq 43$:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $|A \cap 2****| \leq 41$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose first that $|A \cap 2****|=43$.  Let $A&#039; \subset [3]^4$ be the subset of $[3]^4$ corresponding to $A \cap 2****$, thus $A&#039;$ is a Moser set of cardinality $43$.  By Proposition \ref{stat}(vi), $c(A&#039;) \geq 18$.  By Lemma \ref{dci}, the sum of the $c(V)$, where $V$ ranges over the eight side slices of $[3]^4$, is therefore at least $36$.  By the pigeonhole principle, we may thus find two opposing side slices, say $1***$ and $3***$, with $c(1***)+c(3****) \geq 9$.  Since $c(1***), c(3***)$ cannot exceed $6$, we thus have $c(1***), c(3***) \geq 3$, with at least one of $c(1***), c(3***)$ being at least $5$.  Passing back to $A$, this implies that $d(*1***), d(*3***) \geq 3$, with at least one of $d(*1***), d(*3***)$ being at least $5$.  But this contradicts \eqref{d13} together with the refinement \eqref{d13a}.&lt;br /&gt;
&lt;br /&gt;
We have just shown that $|A \cap 2****| \leq 42$; we can thus improve \eqref{boo} to&lt;br /&gt;
$$ |A \cap 1****| + |A \cap 3****| \geq 83.$$&lt;br /&gt;
Combining this with Proposition \ref{stat}(ii)-(v) we see that&lt;br /&gt;
\begin{equation}\label{d13-6}&lt;br /&gt;
 d(1****)+d(3****) \leq 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
with equality only if $|A \cap 2****|=42$, and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
Now let $A&#039;$ be defined as before.  Then we have&lt;br /&gt;
$$ c(1***) + c(3***) \leq 6$$&lt;br /&gt;
and similarly for permutations.  Applying Lemma \ref{dci}, this implies that $c(2****) = c(A&#039;) \leq 12$.&lt;br /&gt;
&lt;br /&gt;
Now suppose for contradiction that $|A&#039;|=|A \cap 2****|=42$.  Then by Proposition \ref{stat}(vii) we have &lt;br /&gt;
\begin{equation}\label{coo-1}&lt;br /&gt;
c(2****) = 12; &lt;br /&gt;
\end{equation}&lt;br /&gt;
applying Lemma \ref{dci} again, this forces $c(1***)+c(3***)=6$ and similarly for permutations, which then implies that&lt;br /&gt;
\begin{equation}\label{doo}&lt;br /&gt;
d(*1***)+d(*3***) = d(**1**)+d(**3**) = d(***1*)+d(***3*) = d(****1)+d(****3) = 6&lt;br /&gt;
\end{equation}&lt;br /&gt;
and hence&lt;br /&gt;
$$ |A \cap *2***| = |A \cap **2**| = |A \cap ***2*| = |A \cap ****2| = 42$$&lt;br /&gt;
and thus&lt;br /&gt;
\begin{equation}\label{coo-2}&lt;br /&gt;
c(*2***) = c(**2**) = c(***2*) = c(****2) = 12.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Combining \eqref{coo-1}, \eqref{doo}, \eqref{coo-2} we conclude that&lt;br /&gt;
$$ d(1****)+d(3****) = 16,$$&lt;br /&gt;
contradicting \eqref{d13-6}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
With this proposition, the bound \eqref{boo} now improves to&lt;br /&gt;
\begin{equation}\label{84}&lt;br /&gt;
|A \cap 1****| + |A \cap 3****| \geq 84&lt;br /&gt;
\end{equation}&lt;br /&gt;
and in particular&lt;br /&gt;
\begin{equation}\label{41}&lt;br /&gt;
|A \cap 1****|, |A \cap 3****| \geq 41.&lt;br /&gt;
\end{equation}&lt;br /&gt;
from this and Proposition \ref{stat}(ii)-(iv) we now have&lt;br /&gt;
\begin{equation}\label{d13-improv}&lt;br /&gt;
 d(1****)+d(3****) \leq 4&lt;br /&gt;
\end{equation}&lt;br /&gt;
and similarly for permutations.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{evan} $e(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From \eqref{84}, the intersection of $A$ with any side slice has cardinality at least $41$, and thus by Proposition \ref{stat}(i) such a side slice has an $e$-statistic of zero.  The claim then follows from Lemma \ref{dci}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We need a technical lemma:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{tech} Let $B \subset S_{5,5}$.  Then there exist at least $|B|-4$ pairs of strings in $B$ which differ in exactly two positions.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} The first non-vacuous case is $|B|=5$.  It suffices to establish this case, as the higher cases then follow by induction (locating a pair of the desired form, then deleting one element of that pair from $B$).&lt;br /&gt;
&lt;br /&gt;
Suppose for contradiction that one can find a $5$-element set $B \subset S_{5,5}$ such that no two strings in $B$ differ in exactly two positions.  Recall that we may split $S_{5,5}=S_{5,5}^e \cup S_{5,5}^o$, where $S_{5,5}^e$ are those strings with an even number of $1$&#039;s, and $S_{5,5}^o$ are those strings with an odd number of $1$&#039;s.  By the pigeonhole principle and symmetry we may assume $B$ has at least three elements in $S_{5,5}^o$.  Without loss of generality, we can take one of them to be $11111$, thus excluding all elements in $S_{5,5}^o$ with exactly two $3$s, leaving only the elements with exactly four $3$s.  But any two of them differ in exactly two positions, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now improve the trivial bound $c(A) \leq 80$:&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}[Non-maximal $c$]\label{cmax} $c(A) \leq 79$.  If $a(A) \geq 7$, then $c(A) \leq 78$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If $c(A)=80$, then $A$ contains all of $S_{3,5}$, which then implies that no two elements in $A \cap S_{5,5}$ can differ in exactly two places.  It also implies (from \eqref{alpha-1}) that $d(A)$ must vanish, and that $b(A)$ is at most $40$. By Lemma \ref{tech}, we also have that $a(A) = |A \cap S_{5,5}|$ is at most $4$.  Thus $|A| \leq 4 + 40 + 80 + 0 + 0 = 124$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $a(A) \geq 7$.  Then by Lemma \ref{tech} there are at least three pairs in $A \cap S_{5,5}$ that differ in exactly two places.  Each such pair eliminates one point from $A \cap S_{3,5}$; but each point in $S_{3,5}$ can be eliminated by at most two such pairs, and so we have at least two points eliminated from $A \cap S_{3,5}$, i.e. $c(A) \leq 78$ as required.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Next, we rewrite the quantity $125=|A|$ in terms of side slices.  From Lemmas \ref{fvan}, \ref{evan} we have&lt;br /&gt;
$$ a(A) + b(A) + c(A) + d(A) = 125$$&lt;br /&gt;
and hence by Lemma \ref{dci}, the quantity&lt;br /&gt;
$$ s(V) := a(V) + \frac{5}{4} b(V) + \frac{5}{3} c(V) + \frac{5}{2} d(V) - \frac{125}{2},$$&lt;br /&gt;
where $V$ ranges over side slices, has an average value of zero.  &lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Large values of $s(V)$]\label{suv}  For all side slices, we have $s(V) \leq 1/2$.  Furthermore, we have $s(V) &amp;lt; -1/2$ unless the statistics $(a(V), b(V), c(V), d(V), e(V))$ are of one of the following four cases:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Type 1) $(a(V),b(V),c(V),d(V),e(V)) = (2,16,24,0,0)$ (and $s(V) = -1/2$ and $|A \cap V| = 42$);&lt;br /&gt;
\item (Type 2) $(a(V),b(V),c(V),d(V),e(V)) = (4,16,23,0,0)$ (and $s(V) = -1/6$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 3) $(a(V),b(V),c(V),d(V),e(V)) = (4,15,24,0,0)$ (and $s(V) = 1/4$ and $|A \cap V| = 43$);&lt;br /&gt;
\item (Type 4) $(a(V),b(V),c(V),d(V),e(V)) = (3,16,24,0,0)$ (and $s(V) = 1/2$ and $|A \cap V| = 43$);&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $V$ be a side slice.  From \eqref{41} we have&lt;br /&gt;
$$ 41 \leq a(V)+b(V)+c(V)+d(V) = |A \cap V| \leq 43.$$&lt;br /&gt;
First suppose that $|A \cap V| = 43$, then from Proposition \ref{stat}(ii), (viii), $d(V)=0$ and $b(V) \geq 15$.&lt;br /&gt;
Also, we have the trivial bound $c(V) \leq 24$, together with the inequality&lt;br /&gt;
$$ 3b(V) + 2c(V) \leq 96$$&lt;br /&gt;
from \eqref{alpha-1}.  To exploit these facts, we rewrite $s(V)$ as&lt;br /&gt;
$$ s(V) = \frac{1}{2} - \frac{1}{2}( 24 - c(V) ) - \frac{1}{12} (96-3b(V)-2c(V)).$$&lt;br /&gt;
Thus $s(V) \leq 1/2$ in this case.  If $s(V) \geq -1/2$, then&lt;br /&gt;
$$ 6 (24-c(V)) + (96-3b(V)-2c(V)) \leq 12,$$&lt;br /&gt;
which together with the inequalities $b(V) \leq 15$, $c(V) \leq 24$, $3b(V)+2c(V) \leq 96$ we conclude that $(b(V),c(V))$ must be one of $(16,24)$, $(15, 24)$, $(16, 23)$, $(15, 23)$.  The first three possibilities lead to Types 4,3,2 respectively.  The fourth type would lead to $(a(V),b(V),c(V),d(V),e(V)) = (5,15,23,0,0)$, but this contradicts \eqref{eleven}.&lt;br /&gt;
&lt;br /&gt;
Next, suppose $|A \cap V| = 42$, so by Proposition \ref{stat}(iii) we have $d(V) \leq 2$.  From \eqref{alpha-1} we have&lt;br /&gt;
\begin{equation}\label{2cd}&lt;br /&gt;
2c(V) + 3d(V) \leq 48&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from \eqref{alpha-2} we have&lt;br /&gt;
\begin{equation}\label{3cd}&lt;br /&gt;
3b(V)+2c(V)+3d(V) \leq 96&lt;br /&gt;
\end{equation}&lt;br /&gt;
and so we can rewrite $s(V)$ as&lt;br /&gt;
\begin{equation}\label{sv2}&lt;br /&gt;
s(V) = -\frac{1}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V).&lt;br /&gt;
\end{equation}&lt;br /&gt;
This already gives $s(V) \leq 1/2$.  If $d(V)=0$, then $s(V) \leq -1/2$, with equality only in Type 1.  If $d(V)=1$, then the set $A&#039; \subset [3]^4$ corresponding to $A \cap V$ contains a point in $S_{3,4}$, which without loss of generality we can take to be $2221$.  Considering the three lines $*221$, $2*21$, $22*1$, we see that at least three points in $S_{2,4}$ must be missing from $A&#039;$, thus $c(V) \leq 21$.  This forces $48-2c(V)-3d(V) \geq 3$, and so $s(V) &amp;lt; -3/4$.  Finally, if $d(V)=2$, then $A&#039;$ contains two points in $S_{3,4}$.  If they are antipodal (e.g. $2221$ and $2223$), the same argument as above shows that at least six points in $S_{2,4}$ are missing from $A&#039;$; if they are not antipodal (e.g. $2221$ and $2212$) then by considering the lines $*221$, $2*21$, $22*1$, $*212$, $2*12$ we see that five points are missing.  Thus we have $c(V) \leq 19$, which forces $48-2c(V)-3d(V) \geq 4$.  This forces $s(V) \leq -1/2$, with equality only when $c(V)=19$ and $3b(V)+2c(V)+3d(V)=96$, but this forces $b(V)$ to be the non-integer $52/3$, a contradiction, which concludes the treatment of the $|A \cap V|=42$ case.&lt;br /&gt;
&lt;br /&gt;
Finally, suppose $|A \cap V| = 41$.  Using \eqref{2cd}, \eqref{3cd} as before we have&lt;br /&gt;
\begin{equation}\label{sv3}&lt;br /&gt;
 s(V) = -\frac{3}{2} - \frac{1}{4}( 48 - 2c(V) - 3d(V) ) - \frac{1}{12} (96-3b(V)-2c(V)-3d(V)) + \frac{1}{2} d(V),&lt;br /&gt;
\end{equation}&lt;br /&gt;
while from Proposition \ref{stat}(vi) we have $d(V) \leq 3$.  This already gives $s(V) \leq 0$, and $s(V) \leq -1$ when $d(V)=1$.  In order to have $s(V) \geq -1/2$, we must then have $d(V)=2$ or $d(V)=3$.  But then the arguments of the preceding paragraph give $48-2c(V)-3d(V) \geq 4$, and so $s(V) \leq -1$ in this case.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Since the $s(V)$ average to zero, by the pigeonhole principle we may find two opposing side slices (e.g. $1****$ and $3****$), whose total $s$-value is non-negative.  Actually we can do a little better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{side-off} There exists two opposing side slices whose total $s$-value is strictly positive.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If this is not the case, then we must have $s(1****)+s(3****)=0$ and similarly for permutations.  Using Proposition \ref{suv} we thus see that for every opposing pair of side slices, one is Type 1 and one is Type 4.  In particular $c(V)=24$ for all side slices $V$.  But then by Lemma \ref{dci} we have $c(A)=80$, contradicting Lemma \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Let $V, V&#039;$ be the side slices in Lemma \ref{side-off}&lt;br /&gt;
By Proposition \ref{suv}, the $V, V&#039;$ slices must then be either Type 2, Type 3, or Type 4, and they cannot both be Type 2.  Since $a(A) = a(V)+a(V&#039;)$, we conclude&lt;br /&gt;
\begin{equation}\label{amix}&lt;br /&gt;
6 \leq a(A) \leq 8.&lt;br /&gt;
\end{equation}&lt;br /&gt;
In a similar spirit, we have&lt;br /&gt;
$$ c(V) + c(V&#039;) \leq 23+24.$$&lt;br /&gt;
On the other hand, by considering the $24$ lines connecting $c$-points of $V, V&#039;$ to $c$-points of the centre slice $W$ between $V$ and $V&#039;$, each of which contains at most two points in $A$, we have&lt;br /&gt;
$$ c(V) + c(W) + c(V&#039;) \leq 24 \times 2.$$&lt;br /&gt;
Thus $c(W) \leq 1$; since&lt;br /&gt;
$$ d(A) = d(V) + d(V&#039;) + c(W)$$&lt;br /&gt;
we conclude from Proposition \ref{suv} that $d(A) \leq 1$.  Actually we can do better:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $d(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that $d(A)=1$; without loss of generality we may take $11222 \in A$.  This implies that $d(1****)=d(*1***)=1$.  Also, by the above discussion, $c(**1**)$ and $c(**3**)$ cannot both be $24$, so by Proposition \ref{suv}, $s(**1**)+s(**3**) \leq 1/3$; similarly&lt;br /&gt;
$s(***1*)+s(***3*) \leq 1/3$ and $s(****1)+s(****3) \leq 1/3$.  Since the $s$ average to zero, we see from the pigeonhole principle that either $s(1****)+s(3****) \geq -1/2$ or $s(*1***)+s(*3***) \geq -1/2$.  We may assume by symmetry that &lt;br /&gt;
\begin{equation}\label{star-2}&lt;br /&gt;
s(1****)+s(3****) \geq -1/2.&lt;br /&gt;
\end{equation}&lt;br /&gt;
Since $s(3****) \leq 1/2$ by Proposition \ref{suv}, we conclude that&lt;br /&gt;
\begin{equation}\label{star}&lt;br /&gt;
 s(1****) \geq -1.&lt;br /&gt;
\end{equation}&lt;br /&gt;
If $|A \cap 1****|=41$, then by \eqref{sv3} we have&lt;br /&gt;
$$ s(1****) = -1 - \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
but the arguments in Proposition \ref{suv} give $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$, a contradiction.  So we must have $|A \cap 1****|=42$ (by Proposition \ref{stat}(ii) and \eqref{41}).  In that case, from \eqref{sv2} we have&lt;br /&gt;
$$ s(1****) = \frac{1}{4}( 48 - 2c(1****) - 3d(1****) ) - \frac{1}{12} (96-3b(1****)-2c(1****)-3d(1****))$$&lt;br /&gt;
while also having $48 - 2c(1****) - 3d(1****) \geq 3$ and $96-3b(1****)-2c(1****)-3d(1****) \geq 0$.  Since $s(1****) \geq -1$ and $d(1****)=1$, we soon see that we must have $48 - 2c(1****) - 3d(1****) = 3$ and $96-3b(1****)-2c(1****)-3d(1****) \leq 3$, which forces $c(1****)=21$ and $b(1****)=16$ or $b(1****)=17$; thus the statistics of $1****$ are either $(4,16,21,1,0)$ or $(3,17,21,1,0)$.&lt;br /&gt;
&lt;br /&gt;
We first eliminate the $(3,17,21,1,0)$ case.  In this case $s(1****)$ is exactly $-1$.  Inspecting the proof of \eqref{star}, we conclude that $s(3****)$ must be $+1/2$ and that $s(**1**)+s(**3**)=1/3$.  From the former fact and Proposition \ref{suv} we see that $a(A) = a(1****)+a(3****)=3+3=6$; on the other hand, from the latter fact and Proposition \ref{suv} we have $a(A) = a(**1**)+a(**3**) = 4+3=7$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
So $1****$ has statistics $(4,16,21,1,0)$, which implies that $s(1****)=-3/4$ and $|A \cap 1****|=42$.  By \eqref{star-2} we conclude &lt;br /&gt;
\begin{equation}\label{s3}&lt;br /&gt;
s(3****) \geq 1/4,&lt;br /&gt;
\end{equation} &lt;br /&gt;
which by Proposition \ref{suv} implies that $|A \cap 3****|=43$, and hence $|A \cap 2****|=40$.  On the other hand, since $e(A)=f(A)=0$ and $d(A)=1$, with the latter being caused by $11222$, we see that $c(2****)=d(2****)=e(2****)=0$.  From \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$, and we also have the trivial inequality $b(2****) \leq 32$; these inequalities are only compatible if $2****$ has statistics $(8,32,0,0,0)$, thus $A \cap 2****$ contains $S_{2,5} \cap 2****$.&lt;br /&gt;
&lt;br /&gt;
If $a(3****)=4$, then $a(A)=a(1****)+a(3****)=8$, which by Proposition \ref{suv} implies that $s(**1**)+s(**3**)$ cannot exceed $1/12$, and similarly for permutations.  On the other hand, from Proposition \ref{suv} $s(**1**)+s(**3**)$ cannot exceed $-3/4 + 1/4 = -1/2$, and so the average value of $s$ cannot be zero, a contradiction.  Thus $a(3****) \neq 4$, which by \eqref{s3} and Proposition \ref{suv} implies that $**3**$ has statistics $(3,16,24,0,0)$.&lt;br /&gt;
&lt;br /&gt;
In particular, $A$ contains $16$ points from $3**** \cap S_{1,5}$ and all of $3**** \cap S_{2,5}$.  As a consequence, no pair of the $16$ points in $A \cap 3**** \cap S_{1,5}$ can differ in only one coordinate; partitioning the $32$-point set $3**** \cap S_{1,5}$ into $16$ such pairs, we conclude that every such pair contains exactly one element of $A$.  We conclude that $A \cap 3**** \cap S_{1,5}$ is equal to either $3**** \cap S_{1,5}^e$ or $3**** \cap S_{1,5}^o$.&lt;br /&gt;
&lt;br /&gt;
On the other hand, $A$ contains all of $2**** \cap S_{2,5}$, and exactly sixteen points from $1**** \cap S_{1,5}$.  Considering the vertical lines $*xyzw$ where $xyzw \in S_{1,4}$, we conclude that $A \cap 1**** \cap S_{1,5}$ is either equal to $1**** \cap S_{1,5}^o$ or $1**** \cap S_{1,5}^e$.&lt;br /&gt;
But either case is incompatible with the fact that $A$ contains $11222$ (consider either the line $11xx2$ or $11x\overline{x}2$, where $x=1,2,3$ and $\overline{x}=4-x$), obtaining the required contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We can now eliminate all but three cases for the statistics of $A$:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}[Statistics of $A$]  The statistics $(a(A),b(A),c(A),d(A),e(A),f(A))$ of $A$ must be one of the following three tuples:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item (Case 1) $(6,40,79,0,0)$;&lt;br /&gt;
\item (Case 2) $(7,40,78,0,0)$;&lt;br /&gt;
\item (Case 3) $(8,39,78,0,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Since $d(A)=e(A)=f(A)=0$, we have&lt;br /&gt;
$$ c(2****)=d(2****)=e(2****)=0.$$&lt;br /&gt;
On the other hand, from \eqref{alpha-1} we have $4a(2****)+b(2****) \leq 64$ as well as the trivial inequality $b(2****) \leq 24$, and also we have&lt;br /&gt;
$$ |A \cap 2****| = 125 - |A \cap 1****| - |A \cap 3****| \geq 125 - 43 - 43 = 39.$$&lt;br /&gt;
Putting all this together, we see that the only possible statistics for $2****$ are $(8,32,0,0,0)$, $(7,32,0,0,0)$, or $(8,31,0,0,0)$.  In particular, $7 \leq a(2****) \leq 8$ and $31 \leq b(2****) \leq 32$, and similarly for permutations. Applying Lemma \ref{dci} we conclude that&lt;br /&gt;
$$ 35 \leq b(A) \leq 40$$&lt;br /&gt;
and&lt;br /&gt;
$$ 77.5 \leq c(A) \leq 80.$$&lt;br /&gt;
Combining this with the first part of Corollary \ref{cmax} we conclude that $c(A)$ is either $78$ or $79$.  From this and \eqref{amix} we see that the only cases that remain to be eliminated are $(7,39,79,0,0)$ and $(8,38,79,0,0)$, but these cases are incompatible with the second part of Corollary \ref{cmax}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
We now eliminate each of the three remaining cases in turn.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(6,40,79,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has six points.  By Lemma \ref{tech}, there are at least two pairs in this set which differ in two positions.  Their midpoints are eliminated from $A \cap S_{3,5}$.  But $A$ omits exactly one point from $S_{3,5}$, so these midpoints must be the same.  By symmetry, we may then assume that these two pairs are $(11111,11133)$ and $(11113,11131)$.  Thus the eliminated point in $S_{3,5}$ is $11122$, i.e. $A$ contains $S_{3,5} \backslash \{11122\}$.  Also, $A$ contains $\{11111,11133,11113,11131\}$ and thus must omit $\{11121, 11123, 11112, 11132\}$.&lt;br /&gt;
&lt;br /&gt;
Since $11322 \in A$, at most one of  $11312, 11332$ lie in $A$. By symmetry we may assume $11312 \not \in A$, thus there is a pair $(xy1z2, xy3z2)$ with $x,y,z = 1,3$ that is totally omitted from $A$, namely $(11112,11312)$. On the other hand, every other pair of this form can have at most one point in the $A$, thus there are at most seven points in $A$ of the form $xyzw2$ with $x,y,z,w = 1,3$. Similarly there are at most 8 points of the form $xyz2w$, or of $xy2zw$, $x2yzw$, $2xyzw$, leading to $b(A) \leq 7+8+8+8+8=39$, contradicting the statistic $b(A)=40$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(7,40,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Here $A \cap S_{5,5}$ has seven points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of the midpoints of these pairs must be the same; thus, as in the previous section, we may assume that $A$ contains $\{11111,11133,11113,11131\}$ and omits $\{11121, 11123, 11112, 11132\}$ and $11122$.&lt;br /&gt;
&lt;br /&gt;
Now consider the $160$ lines $\ell$ connecting two points in $S_{4,5}$ to one point in $S_{3,5}$ (i.e. $*2xyz$ and permutations, where $x,y,z=1,3$).  By double counting, the total sum of $|\ell \cap A|$ over all $160$ lines is $4b(A)+2c(A) = 316 = 158 \times 2$.  On the other hand, each of these lines contain at most two points in $A$, but two of them (namely $1112*$ and $1112*$) contain no points.  Thus we must have $|\ell \cap A|=2$ for the remaining $158$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Since $A$ omits $1112x$ and $111x2$ for $x=1,3$, we thus conclude (by considering the lines $11*2x$ and $11*x2$) that $A$ must contain $1132x$, $113x2$, $1312x$, and $131x2$.  Taking midpoints, we conclude that $A$ omits $11322$ and $13122$.  But together with $11122$ this implies that at least three points are missing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Elimination of $(8,39,78,0,0)$}&lt;br /&gt;
&lt;br /&gt;
Now $A \cap S_{5,5}$ has eight points.  By Lemma \ref{tech}, there are at least three pairs in this set which differ in two positions.  As we can only eliminate two points from $S_{3,5}$, two of these pairs $(a,b), (c,d)$ must have the same midpoint $p$, and two other pairs $(a&#039;,b&#039;), (c&#039;,d&#039;)$ must have the same midpoint $p&#039;$, and $A$ contains $S_{3,5} \backslash \{p,p&#039;\}$.  As $p,p&#039;$ are distinct, the plane containing $a,b,c,d$ is distinct from the plane containing $a&#039;,b&#039;,c&#039;,d&#039;$.&lt;br /&gt;
&lt;br /&gt;
Again consider the $160$ lines $\ell$ from the previous section.  This time, the sum of the $|\ell \cap A|$ is $4b(A)+2c(A) = 312 = 156 \times 2$.&lt;br /&gt;
But the two lines in the plane of $a,b,c,d$ passing through $p$, and the two lines in the plane of $a&#039;,b&#039;,c&#039;,d&#039;$ passing through $p&#039;$, have no points; thus we must have $|\ell \cap A|=2$ for the remaining $156$ lines $\ell$.&lt;br /&gt;
&lt;br /&gt;
Without loss of generality we have $(a,b)=(11111,11133)$, $(c,d) = (11113,11131)$, thus $p = 11122$. By permuting the first three indices, we may assume that $p&#039;$ is not of the form $x2y2z, x2yz2, xy22z, xy2z2$ for any $x,y,z=1,3$. Then we have $1112x \not \in A$ and $1122x \in A$ for every $x=1,3$, so by the preceding paragraph we have $1132x \in A$; similarly for $113x2, 1312x, 131x2$. Taking midpoints, this implies that $13122, 11322 \not \in A$, but this (together with 11122) shows that at least three points aremissing from $A \cap S_{3,5}$, contradicting the hypothesis $c(A)=78$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Six dimensions}&lt;br /&gt;
&lt;br /&gt;
Now we establish the bound $c&#039;_{6,3}=353$.  In view of the lower bounds, it suffices to show that there does not exist a Moser set $A \subset [3]^5$ with $|A|=354$.&lt;br /&gt;
&lt;br /&gt;
We argue by contradiction.  Let $A$ be as above, and let $(a(A),\ldots,g(A))$ be the statistics of $A$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{g6} $g(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
  &lt;br /&gt;
\begin{proof} For any four-dimensional slice $V$ of $A$, define &lt;br /&gt;
$$S(V) := 15 a(V) + 5 b(V) + 5 c(V)/2 + 3d(V)/2 + e(V).$$&lt;br /&gt;
From Lemma \ref{dci} we see that $|A|$ is equal to $a(A)+b(A)$ plus the average of $S(V)$ where $V$ ranges over the twenty slices which are some permutation of the center slice $22****$.&lt;br /&gt;
&lt;br /&gt;
If $g(A)=1$, then $a(A) \leq 32$ and $b(A) \leq 96$ by \eqref{alpha-1}.  Meanwhile, $e(V)=g(A)=1$ for every center slice $V$, so from Lemma \ref{paretop-4}, one can show that $S(V) \leq 223.5$ for every such slice.  We conclude that $|A| \leq 351.5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
For any four-dimensional slice $V$ of $A$, define the \emph{defects} to be&lt;br /&gt;
$$ D(V) := 356 - [4a(V)+6b(V)+10c(V)+20d(V)+60e(V)].$$&lt;br /&gt;
Define a \emph{corner slice} to be one of the permutations or reflections of $11****$, thus there are $60$ corner slices.  From Lemma \ref{dci} we see that $356-|A|+f(A)=2+f(A)$ is the average of the defects of all the $60$ corner slices.  On the other hand, from Lemma \ref{paretop-4} and a straightforward computation, one concludes&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{defects}  Let $A$ be a four-dimensional Moser set.  Then $D(A) \geq 0$.  Furthermore:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item If $A$ has statistics $(6,12,18,4,0)$, then $D(A)=0$.&lt;br /&gt;
\item If $A$ has statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$, then $D(A)=4$.&lt;br /&gt;
\item For all other $A$, $D(A) \geq 6$.&lt;br /&gt;
\item If $a(A) = 4$, then $D(A) \geq 8$.&lt;br /&gt;
\item If $a(A) \geq 7$, then $D(A) \geq 16$.&lt;br /&gt;
\item If $a(A) \geq 8$, then $D(A) \geq 30$.&lt;br /&gt;
\item If $a(A) \geq 9$, then $D(A) \geq 86$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{family} to be a set of four parallel corner slices, thus there are $15$ families, which are all a permutation of $\{11****, 13****, 31****, 33**** \}$.  We refer to the family $\{11****, 13****, 31****, 33**** \}$ as $ab****$, and similarly define the family $a*b***$, etc.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{f6} $f(A)=0$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  For any four-dimensional slice $V$ of $A$, define&lt;br /&gt;
$$ s(V) := 12 a(V)+15 b(V)/2+20 c(V)/3+15 d(V)/2 + 12 e(V),$$&lt;br /&gt;
and define an \emph{edge slice} to be one of the $30$ permutations or reflections of $12****$.  From double counting we see that $|A|-a(A)$ is equal to the average of the $30$ values of $s(V)$ as $V$ ranges over edge slices.&lt;br /&gt;
&lt;br /&gt;
From Lemma \ref{paretop-4} one can verify that $s(V) \leq 336$, and that $s(V) \leq 296 = 336-40$ if $e(V)=1$.  The number of edge slices $V$ for which $e(V)=1$ is equal to $5f(A)$, and so the average value of the $s(V)$ is at most $336 - \frac{40 \times 5}{30} f(A)$, and so&lt;br /&gt;
$$ |A| - a(A) \leq 336 - \frac{40 \times 5}{30} f(A)$$&lt;br /&gt;
which we can rearrange (using $|A|=354$) as&lt;br /&gt;
$$ a(A) \geq 18 + \frac{20}{3} f(A).$$&lt;br /&gt;
Suppose first that $f(A)=1$; then $a(A) \geq 25$.  This means that in any given family, one of the four corner slices has an $a$ value of at least $7$, and thus by Lemma \ref{defects} has a defect of at least $16$.  Thus the average defect is at least $4$; on the other hand, the average defect is $2+f(A)=3$, a contradiction.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $f(A) \geq 2$; then $a(A) \geq 32$.   Then in any given family, there is a corner slice with an $a$ value at least $9$, or four slices with $a$ value at least $8$, leading to a total defect of at least $86$ by Lemma \ref{defects}.  Thus the average defect is at least $21.5$; on the other hand, the average defect is $2+f(A) \leq 2+12$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of the above lemma, we see that the average defect of all corner slices is $2$, or equivalently that the total defect of these slices is $120$.&lt;br /&gt;
&lt;br /&gt;
Call a corner slice \emph{good} if it has statistics $(6,12,18,4,0)$, and \emph{bad} otherwise.  Thus good slices have zero defect, and bad slices have defect at least four.  Since the average defect of the $60$ corner slices is $2$, there are at least $30$ good slices.&lt;br /&gt;
&lt;br /&gt;
One can describe the structure of the good slices completely:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{sixt}  The subset of $[3]^4$ consisting of the strings $1111, 1113, 3333, 1332, 1322, 1222, 3322$ and permutations is a Moser set with statistics $(6,12,18,4,0)$.  Conversely, every Moser set with statistics $(6,12,18,4,0)$ is of this form up to the symmetries of the cube $[3]^4$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified by computer ({\bf need details}).  A computer-free proof can be found at &lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Classification\_of\_\%286\%2C12\%2C18\%2C4\%2C0\%29\_sets}.}&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
As a consequence of this lemma, given any $x,y,z,w \in \{1,3\}$, there is a unique good Moser set in $[3]^4$ set whose intersection with $S_{1,4}$ is $\{x222, 2y22, 22z2, 222w\}$, and these are the only 16 possibilities. Call this set the \emph{good set of type $xyzw$}. It consists of&lt;br /&gt;
\begin{itemize} &lt;br /&gt;
\item The four points $x222, 2y22, 22z2, 222w$ in $S_{1,4}$;&lt;br /&gt;
\item All $24$ elements of $S_{2,4}$ except for $xy22, x2z2, x22w, 2yz2, 2y2w, 22zw$;&lt;br /&gt;
\item The twelve points $xYZ2$, $xY2W$, $x2ZW$, $XyZ2$, $Xy2W$, $2yZW$, $XYz2$, $X2zW$, $2YzW$, $XY2w$, $X2Zw$, $2YZw$ in $S_{3,4}$, where $X=4-x$, $Y=4-y$, $Z=4-z$, $W=4-w$;&lt;br /&gt;
\item The six points $xyzw, xyzW, xyZw, xYzw, Xyzw, XYZW$ in $S_{4,4}$.&lt;br /&gt;
\end{itemize} &lt;br /&gt;
&lt;br /&gt;
We can use this to constrain the types of two intersecting good slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{pqs} Suppose that the $pq****$ slice is of type $xyzw$, and the $p*r***$ slice is of type $x&#039;y&#039;z&#039;w&#039;$, where $p,q,r,x,y,z,w,x&#039;,y&#039;,z&#039;,w&#039;$ are in $\{1,3\}$. Then $x&#039;=x$ iff $q=r$, and $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$. If $x=r$ (or equivalently if $x&#039;=q$), then $y&#039;z&#039;w&#039;=yzw$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} By reflection symmetry we can take $p=q=r=1$. Observe that the $11****$ slice contains $111222$ iff $x=1$, and the $1*1***$ slice similarly contains $111222$ iff $x&#039;=1$. This shows that $x=x&#039;$.&lt;br /&gt;
&lt;br /&gt;
Suppose now that $x=x&#039;=1$. Then the $111***$ slice contains the three elements $111y22, 1112z2, 11122w$, and excludes $111Y22, 1112Z2, 11122W$, and similarly with the primes, which forces $yzw=y&#039;z&#039;w&#039;$ as claimed.&lt;br /&gt;
&lt;br /&gt;
Now suppose that $x=x&#039;=3$. Then the $111***$ slice contains the two elements $111yzw, 111YZW$, but does not contain any of the other six points in $S_{6,6} \cap 111***$, and similarly for the primes. Thus $y&#039;z&#039;w&#039;$ is equal to either $yzw$ or $YZW$ as claimed. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two adjacent parallel good slices, such as $11****$ and $13****$.  The following lemma asserts that such slices either have opposite type, or else will create a huge amount of defect in other slices:&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l18} Suppose that the $11****$ and $13****$ slices are good with types $xyzw$ and $x&#039;y&#039;z&#039;w&#039;$ respectively. If $x=x&#039;$, then the $1*x***$ slice has defect at least $30$, and the $1*X***$ slice has defect at least $8$. Also, the $1**1**$, $1**3**$, $1***1*$, $1***3*$, $1****1$, $1****3$ slices have defect at least $6$. In particular, the total defect of slices beginning with $1*$ is at least $74$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Observe from the $11****, 13****$ hypotheses that $a(1*x***)=9$ and $a(1*X***)=4$, which gives the first two claims by Lemma \ref{defects}.  For the other claims, one sees from Lemma \ref{pqs} that the other six slices cannot be good; also, they have an $a$-value of $6$ and a $d$-value of at most $7$, and the claims then follow from Lemma \ref{defects}.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Now we look at two diagonally opposite parallel good slices, such as $11****$ and $13****$. &lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{l14} The $11****$ and $33****$ slices cannot both be good and of the same type.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****$ and $33****$ are of type $1111$. This excludes a lot of points from $22****$. Indeed, by connecting lines between the $11****$ and $33****$ slices, we see that the only points that can still survive in $22****$ are $221133, 221333, 221132, 223332$, and permutations of the last four indices. Double counting the lines $22133*$ and permutations we see that there are at most $12$ points one can place in the permutations of $221133, 221333, 221132$, and so the $22****$ slice has at most $16$ points. Meanwhile, the two five-dimensional slices $1*****, 3*****$ have at most $c&#039;_{5,3} = 124$ points, and the other two four-dimensional slices $21****, 23****$ have at most $c&#039;_{4,3} = 43$ points, leading to at most $16 + 124 * 2 + 43 * 2 = 350$ points in all, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
\begin{lemma}\label{l19} It is not possible for all four slices in a family to be good.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose not.  By symmetry we may assume that $11****, 13****, 31****, 33****$ are good.   By Lemma \ref{l14}, the $11****$ and $33****$ slices cannot be of the same type, and so they cannot both be of the opposite type to either $13****$ or $31****$. If $13****$ is not of the opposite type to $11****$, then by (a permutation of) Lemma \ref{l18}, the total defect of slices beginning with $1*$ is at least $74$; otherwise, if $13****$ is not of the opposite type to $33****$, then by (a permutation and reflection of) Lemma \ref{l18}, the total defect of slices beginning with $*3$ is at least $74$. Similarly, the total defect of slices beginning with $3*$ or $*1$ is at least $74$, leading to a total defect of at least $148$. But the total defect of all the corner slices is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{l20} At most one family can have a total defect of at least $38$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose there are two families with defect at least $38$. The remaining thirteen family have defect at least $4$ by Lemma \ref{l19} and Lemma \ref{defects}, leading to a total defect of at least $38*2+13*4=128$. But the total defect is $2 \times 60 = 120$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually we can refine this:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  No family can have a total defect of at least $38$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} Suppose for contradiction that the $ab****$ family (say) had a total defect of at least $38$, then by Corollary \ref{l20} all other families have total defect at least $38$.&lt;br /&gt;
&lt;br /&gt;
We claim that the $**ab**$ family can have at most two good slices. Indeed, suppose the $**ab**$ has three good slices, say $**11**, **13**, **33**$. By Lemma \ref{l14}, the $**11**$ and $**33**$ slices cannot be of the same type, and so cannot both be of opposite type to $**13**$. Suppose $**11**$ and $**13**$ are not of opposite type. Then by (a permutation of) Lemma \ref{l18}, one of the families $a*b***, *ab***, **b*a*, **b**a$ has a net defect of at least $38$, contradicting the normalisation.&lt;br /&gt;
&lt;br /&gt;
Thus each of the six families $**ab**, **a*b*, **a**b, ***ab*, ***a*b$ have at least two bad slices. Meanwhile, the eight families $a*b***, a**b**, a***b*, a****b, *ab***, *a*b**, *a**b*, *a***b$ have at least one bad slice by Corollary \ref{l19}, leading to twenty bad slices in addition to the defect of at least $38$ arising from the $ab****$ slice. To add up to a total defect of $120$, we conclude from Lemma \ref{defects} that all bad slices outside of the $ab****$ family have a defect of four, with at most one exception; but then by Lemma \ref{l18} this shows that (for instance) the $1*1***$ and $1*3***$ slices cannot be good unless they are of opposite type. The previous argument then shows that the a*b*** slice cannot have three good slices, which increases the number of bad slices outside of $ab****$ to at least twenty-one, and now there is no way to add up to $120$, a contradiction. &lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary} Every family can have at most two good slices.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} If for instance $11****, 13****, 33****$ are both good, then by Lemma \ref{l14} at least one of $11****, 33****$ is not of the opposite type to $13****$, which by Lemma \ref{l18} implies that there is a family with a total defect of at least $38$, contradicting the previous proposition.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this corollary and Lemma \ref{defects}, we see that every family has a defect of at least $8$.  Since there are $15$ families, and $8 \times 15$ is exactly equal to $120$, we conclude&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{coda} Every family has \emph{exactly} two good slices, and the remaining two slices have defect $4$.  In particular, by Lemma \ref{defects}, the bad slices must have statistics $(5,12,18,4,0)$, $(5,12,12,4,1)$, or $(6,8,12,8,0)$.  &lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
We now limit how these slices can interact with good slices.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma}\label{goodgood}  Suppose that $1*1***$ is a good slice.&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item[(i)] The $11****$ slice cannot have statistics $(6,8,12,8,0)$.&lt;br /&gt;
\item[(ii)] The $11****$ slice cannot have statistics $(5,12,12,4,1)$.&lt;br /&gt;
\item[(iii)] If the $11****$ slice has statistics $(5,12,18,4,0)$, then the $112***$ slice has statistics $(3,9,3,0)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
\end{lemma}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  This can be verified through computer search; there are $16$ possible configurations for the good slices, and one can calculate that there are $2750$ configurations for the $(5,12,12,4,1)$ slices, $4368$ configurations for the $(5,12,18,4,0)$ slices, and $10000$ configurations for the $(6,8,12,8,0)$ slices. {\bf we could put human proofs for all this somewhere, presumably.}&lt;br /&gt;
&lt;br /&gt;
%We first prove (i).  Suppose for contradiction that the $11****$ slice has statistics $(6,8,12,8,0)$, then $A$ contains $111222$, and so the $1*1***$ slice is of type $1xyz$ for some $x,y,z$.  By symmetry we may assume it is of type $1111$, thus the $111***$ slice consists of&lt;br /&gt;
%$111111, 111113, 111332, 111322, 111222$ and permutations of the last three indices.  On the other hand, the $11****$ slice has all eight of the points in $11**** \cap S_{2,6}$.  Drawing lines between these points and $111111, 111113$ and permutations, we see that the $113***$ slice cannot contain $113111, 113113, 113133$, or permutations, leaving $113333$ as the only possible element of $113*** \cap S_{6,6}$.  This makes $a(11****)=5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic}  The $111***$ slice has statistics $(4,3,3,1)$, $(2,6,6,0)$, $(3,3,3,1)$, or $(1,6,6,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof} From Corollary \ref{coda}, we know that at least one of the slices $13****, 31****, 11****$ are good.  If $11****$ or $1*1***$ is good, then the slice $111***$ has statistics $(4,3,3,1)$ or $(2,6,6,0)$, by Lemma \ref{sixt}.  By symmetry we may thus reduce to the case where $13****$ is good and $1*1***$ is bad.  Then by Lemma \ref{goodgood}, the $1*1***$ slice has statistics $(5,12,18,4,0)$ and the $121***$ slice has statistics $(3,9,3,0)$.  Since the $131***$ slice, as a side slice of the good $13****$ slice, has statistics $(4,3,3,1)$ or $(2,6,6,0)$, we conclude that the $111***$ slice has statistics $(1,6,6,0)$ or $(3,3,3,1)$, and the claim follows.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
\begin{corollary}\label{slic2} All corner slices have statistics $(6,12,18,4,0)$ or $(5,12,18,4,0)$.&lt;br /&gt;
\end{corollary}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  Suppose first that a corner slice, say $11****$ has statistic $(6,8,12,8,0)$.  Then $111***$ and $113***$ contain one ``d&#039;&#039; point each, and have six ``a&#039;&#039; points between them, so by Corollary \ref{slic}, they both have statistic $(3,3,3,1)$.  This forces the $1*1***$, $1*3***$ slices to be bad, which by Corollary \ref{coda} forces the $3*1***,3*3***$ slices to be good.  This forces the $311***, 313***$ slices to have statistics either $(2,6,6,0)$ or $(4,3,3,1)$.  But the $311***$ slice (say) cannot have statistic $(4,3,3,1)$, since when combined with the $(3,3,3,1)$ statistics of $111***$ would give $a(*11***)=7$, which contradicts Corollary \ref{coda}; thus the $311***$ slice has statistic $(2,6,6,0)$, and similarly for $331***$.  But then $a(3*1***)=4$, which again contradicts Corollary \ref{coda}.&lt;br /&gt;
&lt;br /&gt;
Thus no corner slice has statistic $(6,8,12,8,0)$.  Now suppose that a corner slice, say $11****$ has statistic $(5,12,12,4,1)$.  By Lemma \ref{goodgood}, the $1*1***, 1*3***$ slices are bad, so by repeating the preceding arguments we conclude that the $311***, 313***$ slices have statistics $(2,6,6,0)$ or $(4,3,3,1)$; in particular, their $a$-value is even.  However, the $*11***$ and $*13***$ slices are bad by Lemma \ref{goodgood}, and thus have an $a$-value of $5$; thus the $111***$ and $113***$ slices have an odd $a$-value.  Thus forces $a(11****)$ to be even; but it is equal to $5$, a contradiction.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
From this and Lemma \ref{dci}, we see that $A$ has statistics $(22,72,180,80,0,0,0)$.  In particular, we have $2\alpha_2(A)+\alpha_3(A) = 2$, which by double counting (cf. \eqref{alpha-1}) shows that for every line of the form $12222*$ (or a reflection or permutation thereof) intersects $A$ in exactly two points.  Note that such lines connect a ``$d$&#039;&#039; point to two ``$c$&#039;&#039; points.&lt;br /&gt;
&lt;br /&gt;
Also, we observe that two adjacent ``$d$&#039;&#039; points, such as $111222$ and $113222$, cannot both lie in $A$; for this would force the $*13***$ and $*11***$ slices to have statistics $(4,3,3,1)$ or $(3,3,3,1)$ by Corollary \ref{slic}, which forces $a(*1****)=6$, and thus $*1****$ must be good by Corollary \ref{slic2}; but this contradicts Lemma \ref{sixt}.  Since $\alpha_3(A)=1/2$, we conclude that given any two adjacent ``$d$&#039;&#039; points, exactly one of them lies in $A$.  In particular, the d points of the form $***222$ consist either of those strings with an even number of $1$s, or those with an odd number of $1$s.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s say it&#039;s the former, thus the set contains $111222, 133222$, and permutations of the first three coordinates, but omits $113222, 333222$ and permutations of the first three coordinates. Since the ``$d$&#039;&#039; points $113222, 333222$ are omitted, we conclude that the ``$c$&#039;&#039; points $113122, 113322, 333122, 333322$ must lie in the set, and similarly for permutations of the first three and last three coordinates. But this gives at least $15$ of the $16$ ``$c$&#039;&#039; points ending in $22$; by symmetry this leads to $225$ $c$-points in all; but $c(A)=180$, contradiction.  This (finally!) completes the proof that $c&#039;_{6,3}=353$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=1956</id>
		<title>Fujimura.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=1956"/>
		<updated>2009-07-14T06:39:18Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Fujimura&#039;s problem}\label{fujimura-sec}&lt;br /&gt;
Let $\overline{c}^\mu_n$ be the size of the largest subset of the trianglular grid &lt;br /&gt;
$$\Delta_n := \{(a,b,c)\in {\mathbb Z}^3_+ : a+b+c = n\}$$&lt;br /&gt;
which contains no equilateral triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ with $r&amp;gt;0$.  These are upward-pointing equilateral triangles.  We shall refer to such sets as &#039;triangle-free&#039;.&lt;br /&gt;
(Kobon Fujimura is a prolific inventor of puzzles, and in [http://www.puzzles.com/PuzzlePlayground/CoinsAndTriangles/CoinsAndTriangles.htm this] puzzle asked the related question of eliminating all equilateral triangles.)&lt;br /&gt;
&lt;br /&gt;
The following table was formed mostly by computer searches for optimal solutions. We also found human proofs for most of them (see [http://michaelnielsen.org/polymath1/index.php?title=Fujimura&#039;s_problem here]).&lt;br /&gt;
&lt;br /&gt;
\begin{figure}\centerline{&lt;br /&gt;
\begin{tabular}[l|lllllllllllll]&lt;br /&gt;
$n$                         &amp;amp; 0 &amp;amp; 1 &amp;amp; 2 &amp;amp; 3 &amp;amp; 4 &amp;amp;  5 &amp;amp;  6 &amp;amp;  7 &amp;amp;  8 &amp;amp;  9 &amp;amp; 10 &amp;amp; 11 &amp;amp; 12 &amp;amp; 13\\&lt;br /&gt;
\hline $\overline{c}^\mu_n$ &amp;amp; 1 &amp;amp; 2 &amp;amp; 4 &amp;amp; 6 &amp;amp; 9 &amp;amp; 12 &amp;amp; 15 &amp;amp; 18 &amp;amp; 22 &amp;amp; 26 &amp;amp; 31 &amp;amp; 35 &amp;amp; 40 &amp;amp; 46&lt;br /&gt;
\end{tabular}\label{lowFujimura}\caption{Fujimura numbers}}&lt;br /&gt;
&lt;br /&gt;
For any equilateral triangle $(a+r,b,c)$,$(a,b+r,c)$ and $(a,b,c+r)$, the value $y+2z$ forms an arithmetic progression of length 3. A Behrend set is a finite set of integers with no arithmetic progression of length 3 (see [http://arxiv.org/PS_cache/arxiv/pdf/0811/0811.3057v2.pdf this paper]). By looking at those triples (a,b,c) with a+2b inside a Behrend set, one can obtain the lower bound of $\overline{c}^\mu_n \geq n^2 exp(-O(\sqrt{\log n}))$.&lt;br /&gt;
&lt;br /&gt;
It can be shown by a &#039;corners theorem&#039; of Ajtai and Szemeredi that $\overline{c}^\mu_n = o(n^2)$ as $n \rightarrow \infty$.&lt;br /&gt;
&lt;br /&gt;
An explicit lower bound is $3(n-1)$, made of all points in $\Delta_n$ with exactly one coordinate equal to zero.  &lt;br /&gt;
&lt;br /&gt;
An explicit upper bound comes from counting the triangles. There are $\binom{n+2}{3} triangles, and each point belongs to n of them. So you must remove at least (n+2)(n+1)/6 points to remove all triangles, leaving (n+2)(n+1)/3 points as an upper bound for $\overline{c}^mu_n$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Introduction.tex&amp;diff=1955</id>
		<title>Introduction.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Introduction.tex&amp;diff=1955"/>
		<updated>2009-07-14T06:32:40Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Introduction}&lt;br /&gt;
&lt;br /&gt;
For any integers $k \geq 1$ and $n \geq 0$, let $[k] := \{1,\ldots,k\}$, and define $[k]^n$ to be the cube of words of length $n$ with alphabet in $[k]$.  Thus for instance $[3]^2 = \{11,12,13,21,22,23,31,32,33\}$.&lt;br /&gt;
&lt;br /&gt;
We define a \emph{combinatorial line} in $[k]^n$ to be a set of the form $\{ w(i): i = 1,\ldots,k\} \subset [k]^n$, where $w \in ([k] \cup \{x\})^n \backslash [k]^n$ is a word of length $n$ with alphabet in $[k]$ together with a ``wildcard&#039;&#039; letter $x$ which appears at least once, and $w(i) \in [k]^n$ is the word obtained from $w$ by replacing $x$ by $i$; we often abuse notation and identify $w$ with the combinatorial line $\{ w(i): i = 1,\ldots,k\}$ it generates.  Thus for instance, in $[3]^2$ we have $x2 = \{12,22,32\}$ and $xx = \{11,22,33\}$ as typical examples of combinatorial lines. In general, $[k]^n$ has $k^n$ words and $(k+1)^n-k^n$ lines.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{AllLinesIn3n.pdf}}&lt;br /&gt;
\caption{Combinatorial lines in $[3]^2$.}&lt;br /&gt;
\label{fig-line}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
A set $A \subset [k]^n$ is said to be \emph{line-free} if it contains no combinatorial lines.  Define the \emph{$(n,k)$ density Hales-Jewett number} $c_{n,k}$ to be the maximum cardinality $|A|$ of a line-free subset of $[k]^n$.  Clearly, one has the trivial bound $c_{n,k} \leq k^n$.  A deep theorem of Furstenberg and Katznelson~\cite{fk1}, \cite{fk2} asserts that this bound can be asymptotically improved:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Density Hales-Jewett theorem]\label{dhj}  For any fixed $k \geq 2$, one has $\lim_{n \to \infty} c_{n,k}/k^n = 0$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} The difficulty of this theorem increases with $k$.  For $k=1$, one clearly has $c_{n,1}=1$.  For $k=2$, a classical theorem of Sperner~\cite{sperner} asserts, in our language, that $c_{n,2} = \binom{n}{\lfloor n/2\rfloor}$.  The case $k=3$ is already non-trivial (for instance, it implies Roth&#039;s theorem~\cite{roth} on arithmetic progressions of length three) and was first established in \cite{fk1} (see also \cite{mcc}).  The case of general $k$ was first established in~\cite{fk2} and has a number of implications, in particular implying Szemer\&#039;edi&#039;s theorem~\cite{szem} on arithmetic progressions of arbitrary length.&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
The Furstenberg-Katznelson proof of Theorem~\ref{dhj} relied on ergodic-theory techniques and did not give an explicit decay rate for $c_{n,k}$.  Recently, two further proofs of this theorem have appeared, by Austin~\cite{austin} and by the sister Polymath project to this one~\cite{poly}.  The proof of~\cite{austin} also used ergodic theory, but the proof in~\cite{poly} was combinatorial and gave effective bounds for $c_{n,k}$ in the limit $n \to \infty$. {\bf Note - need to ask what those explicit bounds are!}  However, these bounds are not believed to be sharp, and in any case are only non-trivial in the asymptotic regime when $n$ is sufficiently large depending on $k$.&lt;br /&gt;
&lt;br /&gt;
Our first result is the following asymptotic lower bound. The construction is based on the recent refinements \cite{elkin,greenwolf,obryant} of a well-known construction of Behrend~\cite{behrend} and Rankin~\cite{rankin}. The proof of Theorem~\ref{dhj-lower} is in Section~\ref{dhj-lower-sec}. Let $r_k(n)$ be the maximum size of a subset of $[n]$ that does not contain a $k$-term arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Asymptotic lower bound for $c_{n,k}$]\label{dhj-lower}  For each $k\geq 3$, there is an absolute constant $C&amp;gt;0$ such that &lt;br /&gt;
  \[ c_{n,k} \geq C k^n \left(\frac{r_k(\sqrt{n})}{\sqrt{n}}\right)^{k-1} = k^n \exp\left( - O(\sqrt[\ell]{\log n}) \right), \]&lt;br /&gt;
where $\ell$ is the largest integer satisfying $2k&amp;gt;2^{\ell}$. Specifically,&lt;br /&gt;
  \[ c_{n,k} \geq C k^{n-\alpha(k) \sqrt[\ell]{\log n} + \beta(k) \log\log n},\]&lt;br /&gt;
where all logarithms are base-$k$, and $\alpha(k) = (\log 2)^{1-1/\ell} \ell 2^{(\ell-1)/2-1/\ell}$ and $\beta(k)=(k-1)/(2\ell)$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
In the case of small $n$, we focus primarily on the first non-trivial case $k=3$.  We have computed the following explicit values of $c_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Explicit values of $c_{n,3}$]\label{dhj-upper}  We have $c_{0,3} = 1$, $c_{1,3} = 2$, $c_{2,3} = 6$, $c_{3,3} = 18$, $c_{4,3} = 52$, $c_{5,3}=150$, and $c_{6,3}=450$.  (This has been entered in the OEIS~\cite{oeis} as A156762.)&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
This result is established in Sections~\ref{dhj-lower-sec},~\ref{dhj-upper-sec}.  Initially these results were established by an integer program (see Appendix~\ref{integer-sec}, but we provide completely computer-free proofs here.  The constructions used in Section~\ref{dhj-lower-sec} give reasonably efficient constructions for larger values of $n$; for instance, they show that $3^{99} \leq c_{100,3} \leq 2 \times 3^{99}$.  See Section~\ref{dhj-lower-sec} for further discussion.&lt;br /&gt;
&lt;br /&gt;
We also have several partial results for higher values of $k$: see Section~\ref{higherk-sec}.  For results on the closely related \emph{Hales-Jewett numbers} $HJ(k,r)$, see Section~\ref{coloring-sec}.&lt;br /&gt;
&lt;br /&gt;
A variant of the density Hales-Jewett theorem has also been studied in the literature.  Define a \emph{geometric line} in $[k]^n$ to be any set of the form $\{ a+ir: i=1,\ldots,k\}$ in $[k]^n$, where we identify $[k]^n$ with a subset of $\Z^n$, and $a, r \in \Z^n$ with $r \neq 0$.  Equivalently, a geometric line takes the form $\{ w( i, k+1-i ): i =1,\ldots,k \}$, where $w \in ([k] \cup \{x,\overline{x}\})^n \backslash [k]^n$ is a word of length $n$ using the numbers in $[k]$ and two wildcards $x, \overline{x}$ as the alphabet, with at least one wildcard occuring in $w$, and $w(i,j) \in [k]^n$ is the word formed by substituting $i,j$ for $x,\overline{x}$ respectively.  Figure~\ref{fig-geomline} shows the eight geometric lines in $[3]^2$.  Clearly every combinatorial line is a geometric line, but not conversely.  In general, $[k]^n$ has $((k+2)^n-k^n)/2$ geometric lines. &lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{AllGeomLinesIn3n.pdf}}&lt;br /&gt;
\caption{Geometric lines in $[3]^2$.}&lt;br /&gt;
\label{fig-geomline}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{Moser set} in $[k]^n$ to be a subset of $[k]^n$ that contains no geometric lines, and let $c&#039;_{n,k}$ be the maximum cardinality $|A|$ of a Moser set in $[k]^n$.  Clearly one has $c&#039;_{n,k} \leq c_{n,k}$, so in particular from Theorem~\ref{dhj} one has $c&#039;_{n,k}/k^n \to 0$ as $n \to \infty$.  (Interestingly, there is no known proof of this fact that does not go through Theorem~\ref{dhj}, even for $k=3$.)  Again, $k=3$ is the first non-trivial case: it is clear that $c&#039;_{n,1}=0$ and $c&#039;_{n,2}=1$ for all $n$.&lt;br /&gt;
&lt;br /&gt;
The question of computing $c&#039;_{n,3}$ was first posed by Moser~\cite{moser}.  Prior to our work, the values&lt;br /&gt;
$$ c&#039;_{0,3}=1; c&#039;_{1,3}=2; c&#039;_{2,3}=6; c&#039;_{3,3}=16; c&#039;_{4,3}=43$$&lt;br /&gt;
were known~\cite{chvatal2},~\cite{chandra} (this is Sequence A003142 in the OEIS~\cite{oeis}).  We extend this sequence slightly:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Values of $c&#039;_{n,3}$ for small $n$]\label{moser}  We have $c&#039;_{0,3} = 1$, $c&#039;_{1,3} = 2$, $c&#039;_{2,3} = 6$, $c&#039;_{3,3} = 16$, $c&#039;_{4,3} = 43$, $c&#039;_{5,3} = 124$, and $c&#039;_{6,3} = 353$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
This result is established in Sections \ref{moser-lower-sec}, \ref{moser-upper-sec}.  The arguments given here are computer-assisted; however, we have found alternate (but lengthier) computer-free proofs for the above claims with the the exception of the proof of $c&#039;_{6,3}=353$, which requires one non-trivial computation (Lemma \ref{paretop-4}).  These alternate proofs are not given in this paper to save space, but can be found on the wiki for this project at &lt;br /&gt;
&lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Main\_Page}.}&lt;br /&gt;
&lt;br /&gt;
We establish a lower bound for this problem of $(2+o(1))\binom{n}{i}2^i\leq c&#039;_{n,3}$, which is maximized for $i$ near $2n/3$.  This bound is around one-third better than the literature.  We also give methods to improve on this construction.&lt;br /&gt;
&lt;br /&gt;
Earlier lower bounds were known:&lt;br /&gt;
let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
 and minimal distance $d$. Then&lt;br /&gt;
\begin{equation}\label{cnchvatalintro}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
which, with $A(n,1)=2^n$ and $A(n,2)=2^{n-1}$,  implies in particular that&lt;br /&gt;
\begin{equation}\label{binom}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{\lfloor \frac{2n+1}{3} \rfloor} 2^{\lfloor \frac{2n+1}{3} \rfloor - 1} &lt;br /&gt;
\end{equation}&lt;br /&gt;
for $n \geq 2$.  This bound is not quite optimal; for instance, it gives a lower bound of $c&#039;_{6,3}=344$.  &lt;br /&gt;
&lt;br /&gt;
\begin{remark} Let $c&#039;&#039;_{n,3}$ be the size of the largest subset of ${\Bbb F}_3^n$ which contains no lines $x, x+r, x+2r$ with $x,r \in {\mathbb F}_3^n$ and $r \neq 0$, where ${\mathbb F}_3$ is the field of three elements.  Clearly one has $c&#039;&#039;_{n,3} \leq c&#039;_{n,3} \leq c_{n,3}$.  It is known that&lt;br /&gt;
$$ c&#039;&#039;_{0,3}=1; c&#039;&#039;_{1,3}=2; c&#039;&#039;_{2,3}=4; c&#039;_{3,3}=9; c&#039;_{4,3}=20; c&#039;&#039;_{5,3}=45; c&#039;&#039;_{6,3} = 112;$$&lt;br /&gt;
see \cite{potenchin}.&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
As mentioned earlier, the sharp bound on $c_{n,2}$ comes from Sperner&#039;s theorem.  It is known that Sperner&#039;s theorem can be refined to the \emph{Lubell-Meshalkin-Yamamoto (LMY) inequality}, which in our language asserts that&lt;br /&gt;
$$&lt;br /&gt;
\sum_{a_1,a_2 \geq 0; a_1+a_2 = n} \frac{|A \cap \Gamma_{a_1,a_2}|}{|\Gamma_{a_1,a_2}|} \leq 1&lt;br /&gt;
$$&lt;br /&gt;
for any line-free subset $A \subset [2]^n$, where the \emph{cell} $\Gamma_{a_1,\ldots,a_k} \subset [k]^n$ is the set of words in $[k]^n$ which contain exactly $a_i$ $i$&#039;s for each $i=1,\ldots,k$.  It is natural to ask whether this inequality can be extended to higher $k$.  Let $\Delta_{k,n}$ denote the set of all tuples $(a_1,\ldots,a_k)$ of non-negative integers summing to $n$, define a \emph{simplex} to be a set of $k$ points in $\Delta_{k,n}$ of the form&lt;br /&gt;
$(a_1+r,a_2,\ldots,a_k), (a_1,a_2+r,\ldots,a_k),\ldots,(a_1,a_2,\ldots,a_k+r)$ for some $0 &amp;lt; r \leq n$ and $a_1,\ldots,a_k$ summing to $n-r$, and define a \emph{Fujimura set} to be a subset $B \subset \Delta_{k,n}$ which contains no simplices.  Observe that if $w$ is a combinatorial line in $[k]^n$, then&lt;br /&gt;
$$ w(1) \in \Gamma_{a_1+r,a_2,\ldots,a_k}, w(2) \in \Gamma_{a_1,a_2+r,\ldots,a_k}, \ldots, w(k) = \Gamma_{a_1,a_2,\ldots,a_k+r}$$&lt;br /&gt;
for some simplex $(a_1+r,a_2,\ldots,a_k), (a_1,a_2+r,\ldots,a_k),\ldots,(a_1,a_2,\ldots,a_k+r)$.  Thus, if $B$ is a Fujimura set, then $A := \bigcup_{\vec a \in B} \Gamma_{\vec a}$ is line-free.  Note also that&lt;br /&gt;
$$&lt;br /&gt;
\sum_{\vec a \in \Delta_{k,n}} \frac{|A \cap \Gamma_{\vec a}|}{|\Gamma_{\vec a}|} = |B|.&lt;br /&gt;
$$&lt;br /&gt;
This motivates a ``hyper-optimistic&#039;&#039; conjecture:&lt;br /&gt;
&lt;br /&gt;
{\bf a picture showing a Fujimura set?}&lt;br /&gt;
&lt;br /&gt;
\begin{conjecture}\label{hoc}  For any $k \geq 1$ and $n \geq 0$, and any line-free subset $A$ of $[k]^n$, one has&lt;br /&gt;
$$&lt;br /&gt;
\sum_{\vec a \in \Delta_{k,n}} \frac{|A \cap \Gamma_{\vec a}|}{|\Gamma_{\vec a}|} \leq c^\mu_{k,n},$$&lt;br /&gt;
where $c^\mu_{k,n}$ is the maximal size of a Fujimura set in $\Delta_{k,n}$.&lt;br /&gt;
\end{conjecture}&lt;br /&gt;
&lt;br /&gt;
One can show that this conjecture for a fixed value of $k$ would imply Theorem \ref{dhj} for the same value of $k$, in much the same way that the LYM inequality is known to imply Sperner&#039;s theorem.  The LYM inequality asserts that Conjecture \ref{hoc} is true for $k \leq 2$.  As far as we know this conjecture could hold in $k=3$.  However, we know that it fails for all even $k\ge 4$, see Section~\ref{higherk-sec}.&lt;br /&gt;
&lt;br /&gt;
We are interested in removing all upward-pointing equilateral triangles from a triangular grid.  Fujimura actually proposed the similar problem of removing all equilateral triangles at this website: www.puzzles.com/PuzzlePlayground/CoinsAndTriangles/CoinsAndTriangles.htm&lt;br /&gt;
&lt;br /&gt;
In Section \ref{fujimura-sec} we give some bounds on these numbers.  Explicit values are given for $\overline{c}^\mu_n$ up to $n=13$, and general upper and lower bounds are given for all $n$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Notation}\label{notation-sec}&lt;br /&gt;
&lt;br /&gt;
There are several subsets of $[k]^n$ which will be useful in our analysis.  We have already introduced combinatorial lines, geometric lines, and cells.  One can generalise the notion of a combinatorial line to that of a \emph{combinatorial subspace} in $[k]^n$ of dimension $d$, which is indexed by a word $w$ in $([k] \cup \{x_1,\ldots,x_d\})^n$ containing at least one of each wildcard $x_1,\ldots,x_d$, and which forms the set $\{ w(i_1,\ldots,i_d): i_1,\ldots,i_d \in [k]\}$, where $w(i_1,\ldots,i_d) \in [k]^d$ is the word formed by replacing $x_1,\ldots,x_d$ with $i_1,\ldots,i_d$ respectively.  Thus for instance, in $[3]^3$, we have the two-dimensional combinatorial subspace $xxy = \{111,112,113,221,222,223,331,332,333\}$.  We similarly have the notion of a \emph{geometric subspace} in $[k]^n$ of dimension $d$, which is defined similarly but with $d$ wildcards $x_1,\ldots,x_d,\overline{x_1},\ldots,\overline{x_d}$, with at least one of either $x_i$ or $\overline{x_i}$ appearing in the word $w$ for each $1 \leq i \leq d$, and the space taking the form $\{ w(i_1,\ldots,i_d,k+1-i_1,\ldots,k+1-i_d): i_1,\ldots,i_d \in [k] \}$.  Thus for instance $[3]^3$ contains the two-dimensional geometric subspace $x\overline{x}y = \{ 131, 132, 133, 221, 222, 223, 311, 312, 313\}$.&lt;br /&gt;
&lt;br /&gt;
An important class of combinatorial subspaces in $[k]^n$ will be the \emph{slices} consisting of $n-1$ distinct wildcards and one fixed coordinate.  We will denote the distinct wildcards here by asterisks, thus for instance in $[3]^3$ we have $2** = \{ 211, 212, 213, 221, 222, 223, 231, 232, 233\}$.  Two slices are \emph{parallel} if their fixed coordinate are in the same position, thus for instance $1**$ and $2**$ are parallel, and one can subdivide $[k]^n$ into $k$ parallel slices, each of which is isomorphic to $[k]^{n-1}$.  In the analysis of Moser slices with $k=3$, we will make a distinction between \emph{centre slices}, whose fixed coordinate is equal to $2$, and \emph{side slices}, in which the fixed coordinate is either $1$ or $3$, thus $[3]^n$ can be partitioned into one centre slice and two side slices.&lt;br /&gt;
&lt;br /&gt;
Another important set in the study of $k=3$ Moser sets are the \emph{spheres} $S_{i,n} \subset [3]^n$, defined as those words in $[3]^n$ with exactly $n-i$ $2$&#039;s (and hence $i$ letters that are $1$ or $3$).  Thus for instance $S_{1,3} = \{ 122, 322, 212, 232, 221, 223\}$.  Observe that $[3]^n = \bigcup_{i=0}^n S_{i,n}$, and each $S_{i,n}$ has cardinality $|S_{i,n}| = \binom{n}{i} 2^{i}$.&lt;br /&gt;
&lt;br /&gt;
It is also convenient to subdivide each sphere $S_{i,n}$ into two components $S_{i,n} = S_{i,n}^o \cup S_{i,n}^e$, where $S_{i,n}^o$ are the words in $S_{i,n}$ with an odd number of $1$&#039;s, and $S_{i,n}^e$ are the words with an even number of $1$&#039;s. Thus for instance $S_{1,3}^o = \{122,212,221\}$ and $S_{1,3}^e = \{322,232,223\}$.  Observe that for $i&amp;gt;0$, $S_{i,n}^o$ and $S_{i,n}^e$ both have cardinality $\binom{n}{i} 2^{i-1}$.&lt;br /&gt;
&lt;br /&gt;
The \emph{Hamming distance} between two words $w,w&#039;$ is the number of coordinates in which $w, w&#039;$ differ, e.g. the Hamming distance between $123$ and $321$ is two.  Note that $S_{i,n}$ is nothing more than the set of words whose Hamming distance from $2\ldots2$ is $i$, which justifies the terminology ``sphere&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the density Hales-Jewett problem, there are two types of symmetries on $[k]^n$ which map combinatorial lines to combinatorial lines (and hence line-free sets to line-free sets).  The first is a permutation of the alphabet $[k]$; the second is a permutation of the $n$ coordinates.  Together, this gives a symmetry group of order $k!n!$ on the cube $[k]^n$, which we refer to as the \emph{combinatorial symmetry group} of the cube $[k]^n$.  Two sets which are related by an element of this symmetry group will be called (combinatorially) \emph{equivalent}, thus for instance any two slices are combinatorially equivalent.&lt;br /&gt;
&lt;br /&gt;
For the analysis of Moser sets in $[k]^n$, the symmetries are a bit different.  One can still permute the $n$ coordinates, but one is no longer free to permute the alphabet $[k]$.  Instead, one can \emph{reflect} an individual coordinate, for instance sending each word $x_1 \ldots x_n$ to its reflection $x_1 \ldots x_{i-1} (k+1-x_i) x_{i+1} \ldots x_n$.  Together, this gives a symmetry group of order $2^k n!$ on the cube $[k]^n$, which we refer to as the \emph{geometric symmetry group} of the cube $[k]^n$; this group maps geometric lines to geometric lines, and thus maps Moser sets to Moser sets.  Two Moser sets which are related by an element of this symmetry group will be called (geometrically) \emph{equivalent}.  For instance, a sphere $S_{i,n}$ is equivalent only to itself, and $S_{i,n}^o$, $S_{i,n}^e$ are equivalent only to each other.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Introduction.tex&amp;diff=1954</id>
		<title>Introduction.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Introduction.tex&amp;diff=1954"/>
		<updated>2009-07-14T06:30:42Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Introduction}&lt;br /&gt;
&lt;br /&gt;
For any integers $k \geq 1$ and $n \geq 0$, let $[k] := \{1,\ldots,k\}$, and define $[k]^n$ to be the cube of words of length $n$ with alphabet in $[k]$.  Thus for instance $[3]^2 = \{11,12,13,21,22,23,31,32,33\}$.&lt;br /&gt;
&lt;br /&gt;
We define a \emph{combinatorial line} in $[k]^n$ to be a set of the form $\{ w(i): i = 1,\ldots,k\} \subset [k]^n$, where $w \in ([k] \cup \{x\})^n \backslash [k]^n$ is a word of length $n$ with alphabet in $[k]$ together with a ``wildcard&#039;&#039; letter $x$ which appears at least once, and $w(i) \in [k]^n$ is the word obtained from $w$ by replacing $x$ by $i$; we often abuse notation and identify $w$ with the combinatorial line $\{ w(i): i = 1,\ldots,k\}$ it generates.  Thus for instance, in $[3]^2$ we have $x2 = \{12,22,32\}$ and $xx = \{11,22,33\}$ as typical examples of combinatorial lines. In general, $[k]^n$ has $k^n$ words and $(k+1)^n-k^n$ lines.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{AllLinesIn3n.pdf}}&lt;br /&gt;
\caption{Combinatorial lines in $[3]^2$.}&lt;br /&gt;
\label{fig-line}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
A set $A \subset [k]^n$ is said to be \emph{line-free} if it contains no combinatorial lines.  Define the \emph{$(n,k)$ density Hales-Jewett number} $c_{n,k}$ to be the maximum cardinality $|A|$ of a line-free subset of $[k]^n$.  Clearly, one has the trivial bound $c_{n,k} \leq k^n$.  A deep theorem of Furstenberg and Katznelson~\cite{fk1}, \cite{fk2} asserts that this bound can be asymptotically improved:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Density Hales-Jewett theorem]\label{dhj}  For any fixed $k \geq 2$, one has $\lim_{n \to \infty} c_{n,k}/k^n = 0$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
\begin{remark} The difficulty of this theorem increases with $k$.  For $k=1$, one clearly has $c_{n,1}=1$.  For $k=2$, a classical theorem of Sperner~\cite{sperner} asserts, in our language, that $c_{n,2} = \binom{n}{\lfloor n/2\rfloor}$.  The case $k=3$ is already non-trivial (for instance, it implies Roth&#039;s theorem~\cite{roth} on arithmetic progressions of length three) and was first established in \cite{fk1} (see also \cite{mcc}).  The case of general $k$ was first established in~\cite{fk2} and has a number of implications, in particular implying Szemer\&#039;edi&#039;s theorem~\cite{szem} on arithmetic progressions of arbitrary length.&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
The Furstenberg-Katznelson proof of Theorem~\ref{dhj} relied on ergodic-theory techniques and did not give an explicit decay rate for $c_{n,k}$.  Recently, two further proofs of this theorem have appeared, by Austin~\cite{austin} and by the sister Polymath project to this one~\cite{poly}.  The proof of~\cite{austin} also used ergodic theory, but the proof in~\cite{poly} was combinatorial and gave effective bounds for $c_{n,k}$ in the limit $n \to \infty$. {\bf Note - need to ask what those explicit bounds are!}  However, these bounds are not believed to be sharp, and in any case are only non-trivial in the asymptotic regime when $n$ is sufficiently large depending on $k$.&lt;br /&gt;
&lt;br /&gt;
Our first result is the following asymptotic lower bound. The construction is based on the recent refinements \cite{elkin,greenwolf,obryant} of a well-known construction of Behrend~\cite{behrend} and Rankin~\cite{rankin}. The proof of Theorem~\ref{dhj-lower} is in Section~\ref{dhj-lower-sec}. Let $r_k(n)$ be the maximum size of a subset of $[n]$ that does not contain a $k$-term arithmetic progression.&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Asymptotic lower bound for $c_{n,k}$]\label{dhj-lower}  For each $k\geq 3$, there is an absolute constant $C&amp;gt;0$ such that &lt;br /&gt;
  \[ c_{n,k} \geq C k^n \left(\frac{r_k(\sqrt{n})}{\sqrt{n}}\right)^{k-1} = k^n \exp\left( - O(\sqrt[\ell]{\log n}) \right), \]&lt;br /&gt;
where $\ell$ is the largest integer satisfying $2k&amp;gt;2^{\ell}$. Specifically,&lt;br /&gt;
  \[ c_{n,k} \geq C k^{n-\alpha(k) \sqrt[\ell]{\log n} + \beta(k) \log\log n},\]&lt;br /&gt;
where all logarithms are base-$k$, and $\alpha(k) = (\log 2)^{1-1/\ell} \ell 2^{(\ell-1)/2-1/\ell}$ and $\beta(k)=(k-1)/(2\ell)$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
In the case of small $n$, we focus primarily on the first non-trivial case $k=3$.  We have computed the following explicit values of $c_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Explicit values of $c_{n,3}$]\label{dhj-upper}  We have $c_{0,3} = 1$, $c_{1,3} = 2$, $c_{2,3} = 6$, $c_{3,3} = 18$, $c_{4,3} = 52$, $c_{5,3}=150$, and $c_{6,3}=450$.  (This has been entered in the OEIS~\cite{oeis} as A156762.)&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
This result is established in Sections~\ref{dhj-lower-sec},~\ref{dhj-upper-sec}.  Initially these results were established by an integer program (see Appendix~\ref{integer-sec}, but we provide completely computer-free proofs here.  The constructions used in Section~\ref{dhj-lower-sec} give reasonably efficient constructions for larger values of $n$; for instance, they show that $3^{99} \leq c_{100,3} \leq 2 \times 3^{99}$.  See Section~\ref{dhj-lower-sec} for further discussion.&lt;br /&gt;
&lt;br /&gt;
We also have several partial results for higher values of $k$: see Section~\ref{higherk-sec}.  For results on the closely related \emph{Hales-Jewett numbers} $HJ(k,r)$, see Section~\ref{coloring-sec}.&lt;br /&gt;
&lt;br /&gt;
A variant of the density Hales-Jewett theorem has also been studied in the literature.  Define a \emph{geometric line} in $[k]^n$ to be any set of the form $\{ a+ir: i=1,\ldots,k\}$ in $[k]^n$, where we identify $[k]^n$ with a subset of $\Z^n$, and $a, r \in \Z^n$ with $r \neq 0$.  Equivalently, a geometric line takes the form $\{ w( i, k+1-i ): i =1,\ldots,k \}$, where $w \in ([k] \cup \{x,\overline{x}\})^n \backslash [k]^n$ is a word of length $n$ using the numbers in $[k]$ and two wildcards $x, \overline{x}$ as the alphabet, with at least one wildcard occuring in $w$, and $w(i,j) \in [k]^n$ is the word formed by substituting $i,j$ for $x,\overline{x}$ respectively.  Figure~\ref{fig-geomline} shows the eight geometric lines in $[3]^2$.  Clearly every combinatorial line is a geometric line, but not conversely.  In general, $[k]^n$ has $((k+2)^n-k^n)/2$ geometric lines. &lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{AllGeomLinesIn3n.pdf}}&lt;br /&gt;
\caption{Geometric lines in $[3]^2$.}&lt;br /&gt;
\label{fig-geomline}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
Define a \emph{Moser set} in $[k]^n$ to be a subset of $[k]^n$ that contains no geometric lines, and let $c&#039;_{n,k}$ be the maximum cardinality $|A|$ of a Moser set in $[k]^n$.  Clearly one has $c&#039;_{n,k} \leq c_{n,k}$, so in particular from Theorem~\ref{dhj} one has $c&#039;_{n,k}/k^n \to 0$ as $n \to \infty$.  (Interestingly, there is no known proof of this fact that does not go through Theorem~\ref{dhj}, even for $k=3$.)  Again, $k=3$ is the first non-trivial case: it is clear that $c&#039;_{n,1}=0$ and $c&#039;_{n,2}=1$ for all $n$.&lt;br /&gt;
&lt;br /&gt;
The question of computing $c&#039;_{n,3}$ was first posed by Moser~\cite{moser}.  Prior to our work, the values&lt;br /&gt;
$$ c&#039;_{0,3}=1; c&#039;_{1,3}=2; c&#039;_{2,3}=6; c&#039;_{3,3}=16; c&#039;_{4,3}=43$$&lt;br /&gt;
were known~\cite{chvatal2},~\cite{chandra} (this is Sequence A003142 in the OEIS~\cite{oeis}).  We extend this sequence slightly:&lt;br /&gt;
&lt;br /&gt;
\begin{theorem}[Values of $c&#039;_{n,3}$ for small $n$]\label{moser}  We have $c&#039;_{0,3} = 1$, $c&#039;_{1,3} = 2$, $c&#039;_{2,3} = 6$, $c&#039;_{3,3} = 16$, $c&#039;_{4,3} = 43$, $c&#039;_{5,3} = 124$, and $c&#039;_{6,3} = 353$.&lt;br /&gt;
\end{theorem}&lt;br /&gt;
&lt;br /&gt;
This result is established in Sections \ref{moser-lower-sec}, \ref{moser-upper-sec}.  The arguments given here are computer-assisted; however, we have found alternate (but lengthier) computer-free proofs for the above claims with the the exception of the proof of $c&#039;_{6,3}=353$, which requires one non-trivial computation (Lemma \ref{paretop-4}).  These alternate proofs are not given in this paper to save space, but can be found on the wiki for this project at &lt;br /&gt;
&lt;br /&gt;
\centerline{{\tt http://michaelnielsen.org/polymath1/index.php?title=Main\_Page}.}&lt;br /&gt;
&lt;br /&gt;
We establish a lower bound for this problem of $(2+o(1))\binom{n}{i}2^i\leq c&#039;_{n,3}$, which is maximized for $i$ near $2n/3$.  This bound is around one-third better than the literature.  We also give methods to improve on this construction.&lt;br /&gt;
&lt;br /&gt;
Earlier lower bounds were known:&lt;br /&gt;
let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
 and minimal distance $d$. Then&lt;br /&gt;
\begin{equation}\label{cnchvatalintro}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
which, with $A(n,1)=2^n$ and $A(n,2)=2^{n-1}$,  implies in particular that&lt;br /&gt;
\begin{equation}\label{binom}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{\lfloor \frac{2n+1}{3} \rfloor} 2^{\lfloor \frac{2n+1}{3} \rfloor - 1} &lt;br /&gt;
\end{equation}&lt;br /&gt;
for $n \geq 2$.  This bound is not quite optimal; for instance, it gives a lower bound of $c&#039;_{6,3}=344$.  &lt;br /&gt;
&lt;br /&gt;
\begin{remark} Let $c&#039;&#039;_{n,3}$ be the size of the largest subset of ${\Bbb F}_3^n$ which contains no lines $x, x+r, x+2r$ with $x,r \in {\mathbb F}_3^n$ and $r \neq 0$, where ${\mathbb F}_3$ is the field of three elements.  Clearly one has $c&#039;&#039;_{n,3} \leq c&#039;_{n,3} \leq c_{n,3}$.  It is known that&lt;br /&gt;
$$ c&#039;&#039;_{0,3}=1; c&#039;&#039;_{1,3}=2; c&#039;&#039;_{2,3}=4; c&#039;_{3,3}=9; c&#039;_{4,3}=20; c&#039;&#039;_{5,3}=45; c&#039;&#039;_{6,3} = 112;$$&lt;br /&gt;
see \cite{potenchin}.&lt;br /&gt;
\end{remark}&lt;br /&gt;
&lt;br /&gt;
As mentioned earlier, the sharp bound on $c_{n,2}$ comes from Sperner&#039;s theorem.  It is known that Sperner&#039;s theorem can be refined to the \emph{Lubell-Meshalkin-Yamamoto (LMY) inequality}, which in our language asserts that&lt;br /&gt;
$$&lt;br /&gt;
\sum_{a_1,a_2 \geq 0; a_1+a_2 = n} \frac{|A \cap \Gamma_{a_1,a_2}|}{|\Gamma_{a_1,a_2}|} \leq 1&lt;br /&gt;
$$&lt;br /&gt;
for any line-free subset $A \subset [2]^n$, where the \emph{cell} $\Gamma_{a_1,\ldots,a_k} \subset [k]^n$ is the set of words in $[k]^n$ which contain exactly $a_i$ $i$&#039;s for each $i=1,\ldots,k$.  It is natural to ask whether this inequality can be extended to higher $k$.  Let $\Delta_{k,n}$ denote the set of all tuples $(a_1,\ldots,a_k)$ of non-negative integers summing to $n$, define a \emph{simplex} to be a set of $k$ points in $\Delta_{k,n}$ of the form&lt;br /&gt;
$(a_1+r,a_2,\ldots,a_k), (a_1,a_2+r,\ldots,a_k),\ldots,(a_1,a_2,\ldots,a_k+r)$ for some $0 &amp;lt; r \leq n$ and $a_1,\ldots,a_k$ summing to $n-r$, and define a \emph{Fujimura set} to be a subset $B \subset \Delta_{k,n}$ which contains no simplices.  Observe that if $w$ is a combinatorial line in $[k]^n$, then&lt;br /&gt;
$$ w(1) \in \Gamma_{a_1+r,a_2,\ldots,a_k}, w(2) \in \Gamma_{a_1,a_2+r,\ldots,a_k}, \ldots, w(k) = \Gamma_{a_1,a_2,\ldots,a_k+r}$$&lt;br /&gt;
for some simplex $(a_1+r,a_2,\ldots,a_k), (a_1,a_2+r,\ldots,a_k),\ldots,(a_1,a_2,\ldots,a_k+r)$.  Thus, if $B$ is a Fujimura set, then $A := \bigcup_{\vec a \in B} \Gamma_{\vec a}$ is line-free.  Note also that&lt;br /&gt;
$$&lt;br /&gt;
\sum_{\vec a \in \Delta_{k,n}} \frac{|A \cap \Gamma_{\vec a}|}{|\Gamma_{\vec a}|} = |B|.&lt;br /&gt;
$$&lt;br /&gt;
This motivates a ``hyper-optimistic&#039;&#039; conjecture:&lt;br /&gt;
&lt;br /&gt;
{\bf a picture showing a Fujimura set?}&lt;br /&gt;
&lt;br /&gt;
\begin{conjecture}\label{hoc}  For any $k \geq 1$ and $n \geq 0$, and any line-free subset $A$ of $[k]^n$, one has&lt;br /&gt;
$$&lt;br /&gt;
\sum_{\vec a \in \Delta_{k,n}} \frac{|A \cap \Gamma_{\vec a}|}{|\Gamma_{\vec a}|} \leq c^\mu_{k,n},$$&lt;br /&gt;
where $c^\mu_{k,n}$ is the maximal size of a Fujimura set in $\Delta_{k,n}$.&lt;br /&gt;
\end{conjecture}&lt;br /&gt;
&lt;br /&gt;
One can show that this conjecture for a fixed value of $k$ would imply Theorem \ref{dhj} for the same value of $k$, in much the same way that the LYM inequality is known to imply Sperner&#039;s theorem.  The LYM inequality asserts that Conjecture \ref{hoc} is true for $k \leq 2$.  As far as we know this conjecture could hold in $k=3$.  However, we know that it fails for all even $k\ge 4$, see Section~\ref{fujimura-sec}.&lt;br /&gt;
&lt;br /&gt;
We are interested in removing all upward-pointing equilateral triangles from a triangular grid.  Fujimura actually proposed the similar problem of removing all equilateral triangles at this website: www.puzzles.com/PuzzlePlayground/CoinsAndTriangles/CoinsAndTriangles.htm&lt;br /&gt;
&lt;br /&gt;
In Section \ref{fujimura-sec} we give some bounds on these numbers.  Explicit values are given for $\overline{c}^\mu_n$ up to $n=13$, and general upper and lower bounds are given for all $n$.&lt;br /&gt;
&lt;br /&gt;
\subsection{Notation}\label{notation-sec}&lt;br /&gt;
&lt;br /&gt;
There are several subsets of $[k]^n$ which will be useful in our analysis.  We have already introduced combinatorial lines, geometric lines, and cells.  One can generalise the notion of a combinatorial line to that of a \emph{combinatorial subspace} in $[k]^n$ of dimension $d$, which is indexed by a word $w$ in $([k] \cup \{x_1,\ldots,x_d\})^n$ containing at least one of each wildcard $x_1,\ldots,x_d$, and which forms the set $\{ w(i_1,\ldots,i_d): i_1,\ldots,i_d \in [k]\}$, where $w(i_1,\ldots,i_d) \in [k]^d$ is the word formed by replacing $x_1,\ldots,x_d$ with $i_1,\ldots,i_d$ respectively.  Thus for instance, in $[3]^3$, we have the two-dimensional combinatorial subspace $xxy = \{111,112,113,221,222,223,331,332,333\}$.  We similarly have the notion of a \emph{geometric subspace} in $[k]^n$ of dimension $d$, which is defined similarly but with $d$ wildcards $x_1,\ldots,x_d,\overline{x_1},\ldots,\overline{x_d}$, with at least one of either $x_i$ or $\overline{x_i}$ appearing in the word $w$ for each $1 \leq i \leq d$, and the space taking the form $\{ w(i_1,\ldots,i_d,k+1-i_1,\ldots,k+1-i_d): i_1,\ldots,i_d \in [k] \}$.  Thus for instance $[3]^3$ contains the two-dimensional geometric subspace $x\overline{x}y = \{ 131, 132, 133, 221, 222, 223, 311, 312, 313\}$.&lt;br /&gt;
&lt;br /&gt;
An important class of combinatorial subspaces in $[k]^n$ will be the \emph{slices} consisting of $n-1$ distinct wildcards and one fixed coordinate.  We will denote the distinct wildcards here by asterisks, thus for instance in $[3]^3$ we have $2** = \{ 211, 212, 213, 221, 222, 223, 231, 232, 233\}$.  Two slices are \emph{parallel} if their fixed coordinate are in the same position, thus for instance $1**$ and $2**$ are parallel, and one can subdivide $[k]^n$ into $k$ parallel slices, each of which is isomorphic to $[k]^{n-1}$.  In the analysis of Moser slices with $k=3$, we will make a distinction between \emph{centre slices}, whose fixed coordinate is equal to $2$, and \emph{side slices}, in which the fixed coordinate is either $1$ or $3$, thus $[3]^n$ can be partitioned into one centre slice and two side slices.&lt;br /&gt;
&lt;br /&gt;
Another important set in the study of $k=3$ Moser sets are the \emph{spheres} $S_{i,n} \subset [3]^n$, defined as those words in $[3]^n$ with exactly $n-i$ $2$&#039;s (and hence $i$ letters that are $1$ or $3$).  Thus for instance $S_{1,3} = \{ 122, 322, 212, 232, 221, 223\}$.  Observe that $[3]^n = \bigcup_{i=0}^n S_{i,n}$, and each $S_{i,n}$ has cardinality $|S_{i,n}| = \binom{n}{i} 2^{i}$.&lt;br /&gt;
&lt;br /&gt;
It is also convenient to subdivide each sphere $S_{i,n}$ into two components $S_{i,n} = S_{i,n}^o \cup S_{i,n}^e$, where $S_{i,n}^o$ are the words in $S_{i,n}$ with an odd number of $1$&#039;s, and $S_{i,n}^e$ are the words with an even number of $1$&#039;s. Thus for instance $S_{1,3}^o = \{122,212,221\}$ and $S_{1,3}^e = \{322,232,223\}$.  Observe that for $i&amp;gt;0$, $S_{i,n}^o$ and $S_{i,n}^e$ both have cardinality $\binom{n}{i} 2^{i-1}$.&lt;br /&gt;
&lt;br /&gt;
The \emph{Hamming distance} between two words $w,w&#039;$ is the number of coordinates in which $w, w&#039;$ differ, e.g. the Hamming distance between $123$ and $321$ is two.  Note that $S_{i,n}$ is nothing more than the set of words whose Hamming distance from $2\ldots2$ is $i$, which justifies the terminology ``sphere&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the density Hales-Jewett problem, there are two types of symmetries on $[k]^n$ which map combinatorial lines to combinatorial lines (and hence line-free sets to line-free sets).  The first is a permutation of the alphabet $[k]$; the second is a permutation of the $n$ coordinates.  Together, this gives a symmetry group of order $k!n!$ on the cube $[k]^n$, which we refer to as the \emph{combinatorial symmetry group} of the cube $[k]^n$.  Two sets which are related by an element of this symmetry group will be called (combinatorially) \emph{equivalent}, thus for instance any two slices are combinatorially equivalent.&lt;br /&gt;
&lt;br /&gt;
For the analysis of Moser sets in $[k]^n$, the symmetries are a bit different.  One can still permute the $n$ coordinates, but one is no longer free to permute the alphabet $[k]$.  Instead, one can \emph{reflect} an individual coordinate, for instance sending each word $x_1 \ldots x_n$ to its reflection $x_1 \ldots x_{i-1} (k+1-x_i) x_{i+1} \ldots x_n$.  Together, this gives a symmetry group of order $2^k n!$ on the cube $[k]^n$, which we refer to as the \emph{geometric symmetry group} of the cube $[k]^n$; this group maps geometric lines to geometric lines, and thus maps Moser sets to Moser sets.  Two Moser sets which are related by an element of this symmetry group will be called (geometrically) \emph{equivalent}.  For instance, a sphere $S_{i,n}$ is equivalent only to itself, and $S_{i,n}^o$, $S_{i,n}^e$ are equivalent only to each other.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1953</id>
		<title>Moser-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1953"/>
		<updated>2009-07-13T12:17:59Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the Moser problem}\label{moser-lower-sec}&lt;br /&gt;
&lt;br /&gt;
Just as for the DHJ problem, we found that Gamma sets $\Gamma_{a,b,c}$ were useful in providing large lower bounds for the Moser problem.  This is despite the fact that the symmetries of the cube do not respect Gamma sets.&lt;br /&gt;
&lt;br /&gt;
Observe that if $B \subset \Delta_n$, then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a Moser set as long as $B$ does not contain any ``isosceles triangles&#039;&#039; $(a+r,b,c+s), (a+s,b,c+r), (a,b+r+s,c)$ for any $r,s \geq 0$ not both zero; in particular, $B$ cannot contain any ``vertical line segments&#039;&#039; $(a+r,b,c+r), (a,b+2r,c)$.  An example of such a set is provided by selecting $0 \leq i \leq n-3$ and letting $B$ consist of the triples $(a, n-i, i-a)$ when $a \neq 3 \mod 3$, $(a,n-i-1,i+1-a)$ when $a \neq 1 \mod 3$, $(a,n-i-2,i+2-a)$ when $a=0 \mod 3$, and $(a,n-i-3,i+3-a)$ when $a=2 \mod 3$.  Asymptotically, this set includes about two thirds of the spheres $S_{n,i}$, $S_{n,i+1}$ and one third of the spheres $S_{n,i+2}, S_{n,i+3}$ and (setting $i$ close to $n/3$) gives a lower bound \eqref{cpn3} with $C = 2 \times \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
&lt;br /&gt;
An integer program was run to obtain the optimal lower bounds achievable by the $A_B$ construction (using \eqref{cn3}, of course).  The results for&lt;br /&gt;
$1 \leq n \leq 20$ are displayed in Figure \ref{nlow-moser}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	71766\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	212423\\&lt;br /&gt;
3 &amp;amp;	16 &amp;amp; 13&amp;amp;	614875\\&lt;br /&gt;
4 &amp;amp;	43 &amp;amp; 14&amp;amp;	1794212\\&lt;br /&gt;
5 &amp;amp;	122&amp;amp; 15&amp;amp;	5321796\\&lt;br /&gt;
6 &amp;amp;	353&amp;amp; 16&amp;amp;	15455256\\&lt;br /&gt;
7 &amp;amp;	1017&amp;amp; 17&amp;amp;	45345052\\&lt;br /&gt;
8 &amp;amp;	2902&amp;amp;18&amp;amp;	134438520\\&lt;br /&gt;
9 &amp;amp;	8622&amp;amp;19&amp;amp;	391796798\\&lt;br /&gt;
10&amp;amp;	24786&amp;amp; 20&amp;amp;	1153402148\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c&#039;_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow-moser}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at &lt;br /&gt;
\centerline{{\tt http://abel.math.umu.se/~klasm/Data/HJ/}.}&lt;br /&gt;
&lt;br /&gt;
Note that the lower bound $c&#039;_{6,3} \geq 353$ was first located by a genetic algorithm: see Appendix \ref{genetic-alg}.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{moser353new.png}}&lt;br /&gt;
\caption{One of the examples of $353$-point sets in $[3]^6$ (elements of the set being indicated by white squares).}&lt;br /&gt;
\label{moser353-fig}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
However, we have been unable to locate a lower bound which is asymptotically better than \eqref{cpn3}.  Indeed, any method based purely on the $A_B$ construction cannot do asymptotically better than the previous constructions:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  Let $B \subset \Delta_n$ be such that $A_B$ is a Moser set.  Then $|A_B| \leq (2 \sqrt{\frac{9}{4\pi}} + o(1)) \frac{3^n}{\sqrt{n}}$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  By the previous discussion, $B$ cannot contain any pair of the form $(a,b+2r,c), (a+r,b,c+r)$ with $r&amp;gt;0$.  In other words, for any $-n \leq h \leq n$, $B$ can contain at most one triple $(a,b,c)$ with $c-a=h$.  From this and \eqref{cn3}, we see that&lt;br /&gt;
$$ |A_B| \leq \sum_{h=-n}^n \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!}.$$&lt;br /&gt;
From the Chernoff inequality (or the Stirling formula computation below) we see that $\frac{n!}{a! b! c!} \leq \frac{1}{n^{10}} 3^n$ unless $a,b,c = n/3 + O( n^{1/2} \log^{1/2} n )$, so we may restrict to this regime, which also forces $h = O( n^{1/2}\log^{1/2} n)$.  If we write $a = n/3 + \alpha$, $b = n/3 + \beta$, $c = n/3+\gamma$ and apply Stirling&#039;s formula $n! = (1+o(1)) \sqrt{2\pi n} n^n e^{-n}$, we obtain &lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - (\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) - (\frac{n}{3}+\beta) \log (1 + \frac{3\beta}{n} ) - (\frac{n}{3}+\gamma) \log (1 + \frac{3\gamma}{n} ) ).$$&lt;br /&gt;
From Taylor expansion one has&lt;br /&gt;
$$ -(\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) = -\alpha - \frac{3}{2} \frac{\alpha^2}{n} + o(1)$$&lt;br /&gt;
and similarly for $\beta,\gamma$; since $\alpha+\beta+\gamma=0$, we conclude that&lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{2n} (\alpha^2+\beta^2+\gamma^2) ).$$&lt;br /&gt;
If $c-a=h$, then $\alpha^2+\beta^2+\gamma^2 = \frac{3\beta^2}{2} + \frac{h^2}{2}$.  Thus we see that&lt;br /&gt;
$$ \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!} \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{4n} h^2 ).$$&lt;br /&gt;
Using the integral test, we thus have&lt;br /&gt;
$$ |A_B| \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n  \int_\R \exp( - \frac{3}{4n} x^2 )\ dx.$$&lt;br /&gt;
Since $\int_\R \exp( - \frac{3}{4n} x^2 )\ dx = \sqrt{\frac{4\pi n}{3}}$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually it is possible to improve upon these bounds by a slight amount.  Observe that if $B$ is a maximiser for the right-hand side of \eqref{cn3} (subject to $B$ not containing isosceles triangles), then any triple $(a,b,c)$ not in $B$ must be the vertex of a (possibly degenerate) isosceles triangle with the other vertices in $B$.  If this triangle is non-degenerate, or if $(a,b,c)$ is the upper vertex of a degenerate isosceles triangle, then no point from $\Gamma_{a,b,c}$ can be added to $A_B$ without creating a geometric line. However, if $(a,b,c) = (a&#039;+r,b&#039;,c&#039;+r)$ is only the lower vertex of a degenerate isosceles triangle $(a&#039;+r,b&#039;,c&#039;+r), (a&#039;,b&#039;+2r,c&#039;)$, then one can add any subset of $\Gamma_{a,b,c}$ to $A_B$ and still have a Moser set as long as no pair of elements in that subset is separated by Hamming distance $2r$.  For instance, in the $n=5$ case, we can start with the 122-point set built from &lt;br /&gt;
$$B = \{ (0 0 5),(0 2 3),(1 1 3 ),(1 2 2 ),(2 2 1 ),(3 1 1 ),(3 2 0 ),(5 0 0))\}$$, and add a point each from (1 0 4) and (4 0 1).&lt;br /&gt;
This gives an example of the maximal, 124-point solution.  Again, in the $n=10$ case, the set&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B &amp;amp;= \{(0 0 10),(0 2 8 ),(0 3 7 ),(0 4 6 ),(1 4 5 ),(2 1 7 ),(2 3 5 ), &lt;br /&gt;
(3 2 5 ),(3 3 4 ),(3 4 3 ),(4 4 2 ),(5 1 4 ), \\&lt;br /&gt;
&amp;amp;\quad (5 3 2 ),(6 2 2 ), &lt;br /&gt;
(6 3 1 ),(6 4 0 ),(8 1 1 ),(9 0 1 ),(9 1 0 ) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
generates the lower bound $c&#039;_{10,3} \geq 24786$ given above (and, up to reflection $a \leftrightarrow c$, is the only such set that does so); but by adding the following twelve elements from $\Gamma_{5,0,5}$ one can increase the lower bound slightly to $24798$: $1111133333$, $1111313333$,&lt;br /&gt;
$1113113333$, $1133331113$, $1133331131$, $1133331311$, $3311333111$,&lt;br /&gt;
$3313133111$, $3313313111$, $3331111133$, $3331111313$, $3331111331$&lt;br /&gt;
&lt;br /&gt;
A more general form goes with the $B$ set described at the start of this section.  Include points from $\Gamma_{(a,n-i-4,i+4-a)}$ when $a=1 (\operatorname{mod}\ 3)$, subject to no two points being included if they differ by the interchange of a $1$ and a $3$.  Each of these Gamma sets is the feet of a degenerate isosceles triangle with vertex $\Gamma_{(a-1,n-i-2,a+3-a)}$.  &lt;br /&gt;
&lt;br /&gt;
\begin{lemma} If $A$ is a subset of $\Gamma_{(a,b,c)}$ such that no two points of $A$ differ by the interchange of a $1$ and a $3$, then $|A| \leq |\Gamma_{a,b,c}|/(1+\max(a,c))$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Say that two points of $\Gamma_{a,b,c}$ are neighbours if they differ by the exchange of a $1$ and a $3$.  Each point of $A$ has $ac$ neighbours, none of which are in $A$. Each point of $\Gamma_{(a,b,c)}\backslash A$ has $ac$ neighbours, but only $min(a,c)$ of them may be in $A$. So for each point of $A$ there are on average $ac/\min(a,c) = \max(a,c)$ points not in $A$. So the proportion of points of $\Gamma_{(a,b,c)}$ that are in $A$ is at most one in $1+\max(a,c)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
The proportion of extra points for each of the cells $\Gamma_{(a,n-i-4,i+4-a)}$ is no more than $2/(i+6)$.  Only one cell in three is included from the  $b=n-i-4$ layer, so we expect no more than $\binom{n}{i+4}2^{i+5}/(3i+18)$ new points, all from $S_{n,i+4}$.  One can also find extra points from $S_{n,i+5}$ and higher spheres.&lt;br /&gt;
&lt;br /&gt;
Earlier solutions may also give insight into the problem.  In this section we discuss lower bounds for $c&#039;_{n,3}$. Clearly we have &lt;br /&gt;
$c&#039;_{0,3}=1$ and $c&#039;_{1,3}=2$, so we focus on the case $n \ge 2$.&lt;br /&gt;
The first lower bounds may be due to Koml\&#039;{o}s \cite{komlos}, who observed &lt;br /&gt;
that the sphere $S_{i,n}$ of elements with exactly $n-i$ 2 entries&lt;br /&gt;
(see Section \ref{notation-sec} for definition),&lt;br /&gt;
is a Moser set, so that &lt;br /&gt;
\begin{equation}\label{cin}&lt;br /&gt;
c&#039;_{n,3}\geq \vert S_{i,n}\vert&lt;br /&gt;
\end{equation}&lt;br /&gt;
holds for all $i$. Choosing $i=\lfloor \frac{2n}{3}\rfloor$  and &lt;br /&gt;
applying Stirling&#039;s formula, we see that this lower bound takes the form &lt;br /&gt;
\begin{equation}\label{cpn3}&lt;br /&gt;
c&#039;_{n,3} \geq (C-o(1)) 3^n / \sqrt{n} &lt;br /&gt;
\end{equation} &lt;br /&gt;
for some absolute constant $C&amp;gt;0$; in fact \eqref{cin} gives \eqref{cpn3} with $C := \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
In particular $c&#039;_{3,3} \geq 12, c&#039;_{4,3}\geq 24, c&#039;_{5,3}\geq 80, &lt;br /&gt;
c&#039;_{6,3}\geq 240$.&lt;br /&gt;
&lt;br /&gt;
These values can be improved by studying combinations of several spheres or&lt;br /&gt;
semispheres or applying elementary results from coding theory.&lt;br /&gt;
&lt;br /&gt;
Observe that if $\{w(1),w(2),w(3)\}$ is a geometric line in $[3]^n$, &lt;br /&gt;
then $w(1), w(3)$ both lie in the same sphere $S_{i,n}$, &lt;br /&gt;
and that $w(2)$ lies in a lower &lt;br /&gt;
sphere $S_{i-r,n}$ for some $1 \leq r \leq i \leq n$. Furthermore, &lt;br /&gt;
$w(1)$ and $w(3)$ are separated by Hamming distance $r$.&lt;br /&gt;
&lt;br /&gt;
As a consequence, we see that $S_{i-1,n} \cup S_{i,n}^e$ (or $S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^o$) is a Moser set for any $1 \leq i \leq n$, since any two &lt;br /&gt;
distinct elements $S_{i,n}^e$ are separated by a Hamming distance of at &lt;br /&gt;
least two. &lt;br /&gt;
(Recall Section \ref{notation-sec} for definitions),&lt;br /&gt;
This leads to the lower bound &lt;br /&gt;
\begin{equation}\label{cn3-low}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n}{i-1} &lt;br /&gt;
2^{i-1} + \binom{n}{i} 2^{i-1} = \binom{n+1}{i} 2^{i-1}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
It is not &lt;br /&gt;
hard to see that $\binom{n+1}{i+1} 2^{i} &amp;gt; \binom{n+1}{i} 2^{i-1}$ if &lt;br /&gt;
and only if $3i &amp;lt; 2n+1$, and so this lower bound is maximised when $i = &lt;br /&gt;
\lfloor \frac{2n+1}{3} \rfloor$ for $n \geq 2$, giving the formula &lt;br /&gt;
\eqref{binom}. This leads to the lower bounds $$ c&#039;_{2,3} \geq 6; &lt;br /&gt;
c&#039;_{3,3} \geq 16; c&#039;_{4,3} \geq 40; c&#039;_{5,3} \geq 120; c&#039;_{6,3} \geq &lt;br /&gt;
336$$ which gives the right lower bounds for $n=2,3$, but is slightly &lt;br /&gt;
off for $n=4,5$.  Asymptotically, Stirling&#039;s formula and \eqref{cn3-low} then&lt;br /&gt;
give the lower bound \eqref{cpn3} with $C = \frac{3}{2} \times \sqrt{\frac{9}{4\pi}}$, which is asymptotically $50\%$ better than the bound \eqref{cin}.&lt;br /&gt;
&lt;br /&gt;
The work of Chv\&#039;{a}tal \cite{chvatal1} &lt;br /&gt;
already contained a refinement of this idea&lt;br /&gt;
which we here translate into the usual notation of coding theory:&lt;br /&gt;
Let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
and minimal distance $d$.&lt;br /&gt;
&lt;br /&gt;
Then &lt;br /&gt;
\begin{equation}\label{cnchvatal}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
With the following values for $A(n,d)$:&lt;br /&gt;
{\tiny{&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llllllll}&lt;br /&gt;
A(1,1)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(2,1)=4&amp;amp; A(2,2)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(3,1)=8&amp;amp;A(3,2)=4&amp;amp;A(3,3)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(4,1)=16&amp;amp;A(4,2)=8&amp;amp; A(4,3)=2&amp;amp; A(4,4)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(5,1)=32&amp;amp;A(5,2)=16&amp;amp; A(5,3)=4&amp;amp; A(5,4)=2&amp;amp;A(5,5)=2&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(6,1)=64&amp;amp;A(6,2)=32&amp;amp; A(6,3)=8&amp;amp; A(6,4)=4&amp;amp;A(6,5)=2&amp;amp;A(6,6)=2&amp;amp;&amp;amp;\\&lt;br /&gt;
A(7,1)=128&amp;amp;A(7,2)=64&amp;amp; A(7,3)=16&amp;amp; A(7,4)=8&amp;amp;A(7,5)=2&amp;amp;A(7,6)=2&amp;amp;A(7,7)=2&amp;amp;\\&lt;br /&gt;
A(8,1)=256&amp;amp;A(8,2)=128&amp;amp; A(8,3)=20&amp;amp; A(8,4)=16&amp;amp;A(8,5)=4&amp;amp;A(8,6)=2&lt;br /&gt;
&amp;amp;A(8,7)=2&amp;amp;A(8,8)=2\\&lt;br /&gt;
A(9,1)=512&amp;amp;A(9,2)=256&amp;amp; A(9,3)=40&amp;amp; A(9,4)=20&amp;amp;A(9,5)=6&amp;amp;A(9,6)=4&lt;br /&gt;
&amp;amp;A(9,7)=2&amp;amp;A(9,8)=2\\&lt;br /&gt;
A(10,1)=1024&amp;amp;A(10,2)=512&amp;amp; A(10,3)=72&amp;amp; A(10,4)=40&amp;amp;A(10,5)=12&amp;amp;A(10,6)=6&lt;br /&gt;
&amp;amp;A(10,7)=2&amp;amp;A(10,8)=2\\&lt;br /&gt;
A(11,1)=2048&amp;amp;A(11,2)=1024&amp;amp; A(11,3)=144&amp;amp; A(11,4)=72&amp;amp;A(11,5)=24&amp;amp;A(11,6)=12&lt;br /&gt;
&amp;amp;A(11,7)=2&amp;amp;A(11,8)=2\\&lt;br /&gt;
A(12,1)=4096&amp;amp;A(12,2)=2048&amp;amp; A(12,3)=256&amp;amp; A(12,4)=144&amp;amp;A(12,5)=32&amp;amp;A(12,6)=24&lt;br /&gt;
&amp;amp;A(12,7)=4&amp;amp;A(12,8)=2\\&lt;br /&gt;
A(13,1)=8192&amp;amp;A(13,2)=4096&amp;amp; A(13,3)=512&amp;amp; A(13,4)=256&amp;amp;A(13,5)=64&amp;amp;A(12,6)=32&lt;br /&gt;
&amp;amp;A(13,7)=8&amp;amp;A(13,8)=4\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Generally, $A(n,1)=2^n, A(n,2)=2^{n-1}, A(n-1,2e-1)=A(n,2e), A(n,d)=2$, &lt;br /&gt;
if $d&amp;gt;\frac{2n}{3}$.&lt;br /&gt;
The values were taken or derived from Andries Brower&#039;s table at&lt;br /&gt;
\centerline{\tt http://www.win.tue.nl/$\sim$aeb/codes/binary-1.html}&lt;br /&gt;
\textbf{include to references? or other book with explicit values of $A(n,d)$ }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For  $c&#039;_{n,3}$ we obtain the following lower bounds:&lt;br /&gt;
with $k=2$&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{4,3}&amp;amp;\geq &amp;amp;\binom{4}{0}A(4,3)+\binom{4}{1}A(3,2)+\binom{4}{2}A(2,1)&lt;br /&gt;
=1\cdot 2+4 \cdot 4+6\cdot 4&amp;amp;=42.\\&lt;br /&gt;
c&#039;_{5,3}&amp;amp;\geq &amp;amp;\binom{5}{0}A(5,3)+\binom{5}{1}A(4,2)+\binom{5}{2}A(3,1)&lt;br /&gt;
=1\cdot 4+5 \cdot 8+10\cdot 8&amp;amp;=124.\\&lt;br /&gt;
c&#039;_{6,3}&amp;amp;\geq &amp;amp;\binom{6}{0}A(6,3)+\binom{6}{1}A(5,2)+\binom{6}{2}A(4,1)&lt;br /&gt;
=1\cdot 8+6 \cdot 16+15\cdot 16&amp;amp;=344.&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
With k=3&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{7,3}&amp;amp;\geq&amp;amp; \binom{7}{0}A(7,4)+\binom{7}{1}A(6,3)+\binom{7}{2}A(5,2)&lt;br /&gt;
+ \binom{7}{3}A(4,1)&amp;amp;=960.\\&lt;br /&gt;
c&#039;_{8,3}&amp;amp;\geq &amp;amp;\binom{8}{0}A(8,4)+\binom{8}{1}A(7,3)+\binom{8}{2}A(6,2)&lt;br /&gt;
+ \binom{8}{3}A(5,1)&amp;amp;=2832.\\&lt;br /&gt;
c&#039;_{9,3}&amp;amp;\geq &amp;amp; \binom{9}{0}A(9,4)+\binom{9}{1}A(8,3)+\binom{9}{2}A(7,2)&lt;br /&gt;
+ \binom{9}{3}A(6,1)&amp;amp;=7880.&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With k=4&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{10,3}&amp;amp;\geq &amp;amp;\binom{10}{0}A(10,5)+\binom{10}{1}A(9,4)+\binom{10}{2}A(8,3)&lt;br /&gt;
+ \binom{10}{3}A(7,2)+\binom{10}{4}A(6,1)&amp;amp;=22232.\\&lt;br /&gt;
c&#039;_{11,3}&amp;amp;\geq &amp;amp;\binom{11}{0}A(11,5)+\binom{11}{1}A(10,4)+\binom{11}{2}A(9,3)&lt;br /&gt;
+ \binom{11}{3}A(8,2)+\binom{11}{4}A(7,1)&amp;amp;=66024.\\&lt;br /&gt;
c&#039;_{12,3}&amp;amp;\geq &amp;amp;\binom{12}{0}A(12,5)+\binom{12}{1}A(11,4)+\binom{12}{2}A(10,3)&lt;br /&gt;
+ \binom{12}{3}A(9,2)+\binom{12}{4}A(8,1)&amp;amp;=188688.\\&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With $k=5$&lt;br /&gt;
\[ c&#039;_{13,3}\geq 539168.\]&lt;br /&gt;
&lt;br /&gt;
It should be pointed out that these bounds are even numbers, so that &lt;br /&gt;
$c&#039;_{4,3}=43$ shows that one cannot generally expect this lower bound &lt;br /&gt;
gives the optimum.&lt;br /&gt;
&lt;br /&gt;
The maximum value  appears to occur for $k=\lfloor\frac{n+2}{3}\rfloor$, &lt;br /&gt;
so that using &lt;br /&gt;
Stirling&#039;s formula and explicit bounds on $A(n,d)$ the &lt;br /&gt;
best possible value known to date&lt;br /&gt;
of the constant $C$ in &lt;br /&gt;
equation \eqref{cpn3} can be worked out, but we refrain from doing this here.&lt;br /&gt;
Using the Singleton bound $A(n,d)\leq 2^{n-d+1}$ Chv\&#039;{a}tal  &lt;br /&gt;
\cite{chvatal1} proved that the expression on the right hand side of&lt;br /&gt;
\eqref{cnchvatal} is also &lt;br /&gt;
$O\left( \frac{3^n}{\sqrt{n}}\right)$, so that the refinement described &lt;br /&gt;
above gains a constant factor over the initial construction only.&lt;br /&gt;
 &lt;br /&gt;
For $n=4$ the above does not yet give the exact value.&lt;br /&gt;
The value $c&#039;_{4,3}=43$ was first proven by Chandra \cite{chandra}.&lt;br /&gt;
A uniform way of describing examples for the optimum values of &lt;br /&gt;
$c&#039;_{4,3}=43$ and $c&#039;_{5,3}=124$ is the following:&lt;br /&gt;
&lt;br /&gt;
Let us consider the sets $$ A := S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^e \cup A&#039;$$ where $A&#039; \subset S_{i+1,n}$ has the property &lt;br /&gt;
that any two elements in $A&#039;$ are separated by a Hamming distance of at &lt;br /&gt;
least three, or have a Hamming distance of exactly one but their &lt;br /&gt;
midpoint lies in $S_{i,n}^o$. By the previous discussion we see that &lt;br /&gt;
this is a Moser set, and we have the lower bound &lt;br /&gt;
\begin{equation}\label{cnn}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{i} 2^{i-1} + |A&#039;|.&lt;br /&gt;
\end{equation} This gives some improved lower bounds for $c&#039;_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize} \item By taking $n=4$, $i=3$, and $A&#039; = \{ 1111, 3331, &lt;br /&gt;
3333\}$, we obtain $c&#039;_{4,3} \geq 43$; \item By taking $n=5$, $i=4$, and &lt;br /&gt;
$A&#039; = \{ 11111, 11333, 33311, 33331 \}$, we obtain $c&#039;_{5,3} \geq 124$. &lt;br /&gt;
\item By taking $n=6$, $i=5$, and $A&#039; = \{ 111111, 111113, 111331, &lt;br /&gt;
111333, 331111, 331113\}$, we obtain $c&#039;_{6,3} \geq 342$. \end{itemize}&lt;br /&gt;
&lt;br /&gt;
This gives the lower bounds in Theorem \ref{moser} up to $n=5$, but &lt;br /&gt;
the bound for $n=6$ is inferior to the lower bound $c&#039;_{6,3}\geq 344$ given above. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
\subsection{Higher $k$ values}&lt;br /&gt;
One can consider subsets of $[k]{}^n$ that contain no geometric lines.  Section \ref{moser-lower-sec} has considered the case $k=3$.  Let $c&#039;_{n,k}$ be the greatest number of points in $[k]{}^n$ with no geometric line.  For example, $c&#039;_{n,3} = c&#039;_n$.  We have the following lower bounds:&lt;br /&gt;
&lt;br /&gt;
$c&#039;_{n,4} \ge \binom{n}{n/2}2^n$.&lt;br /&gt;
The set of points with $a$ $1$s,$b$ $2$s,$c$ $3$s and $d$ $4$s, where $a+d$ has the constant value $n/2$, does not form geometric lines because points at the ends of a geometric line have more $a$ or $d$ values than points in the middle of the line.&lt;br /&gt;
&lt;br /&gt;
One can show a lower bound that, asymptotically, is twice as large.  Take all points with $a$ $1$s, $b$ $2$s, $c$ $3$s and $d$ $4$s, for which:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Either $a+d = q$ or $q-1$, $a$ and $b$ have the same parity; or&lt;br /&gt;
\item $a+d = q-2$ or $q-3$, $a$ and $b$ have opposite parity.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
This includes half the points of four adjacent layers, and therefore may include $(1+o(1))\binom{n}{n/2}2^{n+1}$ points.&lt;br /&gt;
&lt;br /&gt;
We also have a DHJ(3)-like lower bound for $c&#039;_{n,5}$, namely $c&#039;_{n,5} = 5^{n-O(\sqrt{\log n})}$.&lt;br /&gt;
Consider points with $a$ $1$s, $b$ $2$s, $c$ $3$s, $d$ $4$s and $e$ $5$s.  For each point, take the value $a+e+2(b+d)+3c$.  The first three points in any geometric line give values that form an arithmetic progression of length three.  &lt;br /&gt;
&lt;br /&gt;
Select a set of integers with no arithmetic progression of length 3.  Select all points whose value belongs to that sequence; there will be no geometric line among those points.  By Behrend theory, it is possible to choose these points with density $\exp{-O(\sqrt{\log n})}$.&lt;br /&gt;
&lt;br /&gt;
The $k=6$ version of Moser implies DHJ(3). Indeed, any $k=3$ combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a $k=6$ geometric line-free set of the same density by pulling back the set from the map that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends $k=6$ geometric lines to $k=3$ combinatorial lines.  So $c&#039;_{k,6} \geq 2^k c_k$, and more generally, $c&#039;_{k,2n} \geq 2^k c_{k,n}$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Outline_of_second_paper&amp;diff=1952</id>
		<title>Outline of second paper</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Outline_of_second_paper&amp;diff=1952"/>
		<updated>2009-07-13T08:28:52Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: /* Abstract */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is a proposed outline of the second paper, which will focus on the new bounds on DHJ(3) and Moser numbers, and related quantities.&lt;br /&gt;
&lt;br /&gt;
== Metadata ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Author&#039;&#039;&#039;: D.H.J. Polymath&lt;br /&gt;
* &#039;&#039;&#039;Address&#039;&#039;&#039;: http://michaelnielsen.org/polymath1/index.php  (Do we need a more stable address?)&lt;br /&gt;
* &#039;&#039;&#039;Email&#039;&#039;&#039;: ???&lt;br /&gt;
* &#039;&#039;&#039;Title&#039;&#039;&#039;: Density Hales-Jewett and Moser numbers &lt;br /&gt;
* &#039;&#039;&#039;AMS Subject classification&#039;&#039;&#039;: ???&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
(A draft proposal - please edit)&lt;br /&gt;
&lt;br /&gt;
For any &amp;lt;math&amp;gt;n \geq 0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k \geq 1&amp;lt;/math&amp;gt;, the density Hales-Jewett number &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; is defined as the size of the largest subset of the cube &amp;lt;math&amp;gt;[k]^n := \{1,\ldots,k\}^n&amp;lt;/math&amp;gt; which contains no combinatorial line; similarly, the Moser number &amp;lt;math&amp;gt;c&#039;_{n,k}&amp;lt;/math&amp;gt; is the largest subset of the cube &amp;lt;math&amp;gt;[k]^n&amp;lt;/math&amp;gt; which contains no geometric line.  A deep theorem of Furstenberg and Katznelson [cite] shows that &amp;lt;math&amp;gt;c_{n,k} = o(k^n)&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;n \to \infty&amp;lt;/math&amp;gt; (which implies a similar claim for &amp;lt;math&amp;gt;c&#039;_{n,k}&amp;lt;/math&amp;gt;; this is already non-trivial for &amp;lt;math&amp;gt;k=3&amp;lt;/math&amp;gt;.  Several new proofs of this result have also been recently established [cite Polymath], [cite Austin].&lt;br /&gt;
&lt;br /&gt;
Using both human and computer-assisted arguments, we compute several values of &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_{n,k}&amp;lt;/math&amp;gt; for small &amp;lt;math&amp;gt;n,k&amp;lt;/math&amp;gt;.  For instance the sequence &amp;lt;math&amp;gt;c_{n,3}&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;n=0,\ldots,6&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;1,2,6,18,52,150,450&amp;lt;/math&amp;gt;, while the sequence &amp;lt;math&amp;gt;c&#039;_{n,3}&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;n=0,\ldots,6&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;1,2,6,16,43,124,353&amp;lt;/math&amp;gt;.  We also establish some results for higher &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, showing for instance that an analogue of the LYM inequality (which relates to the &amp;lt;math&amp;gt;k=2&amp;lt;/math&amp;gt; case) does not hold for higher &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Sections ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
Basic definitions.  Definitions and notational conventions include&lt;br /&gt;
&lt;br /&gt;
* [k] = {1, 2, ..., k}&lt;br /&gt;
* Subsets of [k]^n are called A&lt;br /&gt;
* definition of combinatorial line, geometric line&lt;br /&gt;
* Hales-Jewett numbers, Moser numbers&lt;br /&gt;
&lt;br /&gt;
History of and motivation for the problem:&lt;br /&gt;
&lt;br /&gt;
* Sperner&#039;s theorem&lt;br /&gt;
* Density Hales-Jewett theorem, including new proofs&lt;br /&gt;
* Review literature on Moser problem&lt;br /&gt;
&lt;br /&gt;
New results&lt;br /&gt;
&lt;br /&gt;
* Computation of several values of &amp;lt;math&amp;gt;c_{n,3}&amp;lt;/math&amp;gt;&lt;br /&gt;
* Computation of several values of &amp;lt;math&amp;gt;c&#039;_{n,3}&amp;lt;/math&amp;gt;&lt;br /&gt;
* Asymptotic lower bounds for &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt;&lt;br /&gt;
* Genetic algorithm lower bounds&lt;br /&gt;
* Some bounds for &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; for low n and large k&lt;br /&gt;
* Connection between Moser(2k) and DHJ(k)&lt;br /&gt;
* Hyper-optimistic conjecture, and its failure&lt;br /&gt;
* New bounds for colouring Hales-Jewett numbers&lt;br /&gt;
&lt;br /&gt;
=== Lower bounds for density Hales-Jewett ===&lt;br /&gt;
&lt;br /&gt;
Fujimura implies DHJ lower bounds; some selected numerics (e.g. lower bounds up to 10 dimensions, plus a few dimensions afterwards).&lt;br /&gt;
&lt;br /&gt;
The precise asymptotic bound of &amp;lt;math&amp;gt;c_{n,k} &amp;gt; C k^{n - \alpha(k)\sqrt[\ell]{\log n}+\beta(k) \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Discussion of genetic algorithm&lt;br /&gt;
&lt;br /&gt;
=== Low-dimensional density Hales-Jewett numbers ===&lt;br /&gt;
&lt;br /&gt;
==== Very small n ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n=0,1,2&amp;lt;/math&amp;gt; are trivial.  But the six-point examples will get mentioned a lot.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;n=3&amp;lt;/math&amp;gt;, one needs to classify the 17-point and 18-point examples.&lt;br /&gt;
&lt;br /&gt;
==== n=4 ====&lt;br /&gt;
&lt;br /&gt;
One needs to classify the 50-point, 51-point, and 52-point examples.&lt;br /&gt;
&lt;br /&gt;
==== n=5 ====&lt;br /&gt;
&lt;br /&gt;
This is the big section, showing there are no 151-point examples.&lt;br /&gt;
&lt;br /&gt;
==== n=6 ====&lt;br /&gt;
&lt;br /&gt;
Easy corollary of n=5 theory&lt;br /&gt;
&lt;br /&gt;
=== Higher k DHJ numbers ===&lt;br /&gt;
&lt;br /&gt;
Exact computations of &amp;lt;math&amp;gt;c_{2,k}, c_{3,k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Connection between Moser&amp;lt;math&amp;gt;(n,2k)&amp;lt;/math&amp;gt; and DHJ&amp;lt;math&amp;gt;(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Numerics&lt;br /&gt;
&lt;br /&gt;
Failure of hyper-optimistic conjecture&lt;br /&gt;
&lt;br /&gt;
=== Lower bounds for Moser ===&lt;br /&gt;
&lt;br /&gt;
Using Gamma sets to get lower bounds&lt;br /&gt;
&lt;br /&gt;
Adding extra points from degenerate triangles&lt;br /&gt;
&lt;br /&gt;
Higher k; Implications between Moser and DHJ&lt;br /&gt;
&lt;br /&gt;
=== Moser in low dimensions ===&lt;br /&gt;
&lt;br /&gt;
There is some general slicing lemma that needs to be proved here that allows inequalities for low-dim Moser to imply inequalities for higher dim.&lt;br /&gt;
&lt;br /&gt;
For n=0,1,2 the theory is trivial.&lt;br /&gt;
&lt;br /&gt;
For n=3 we need the classification of Pareto optimal configurations etc.  So far this is only done by computer brute force search; we may have to find a human version.&lt;br /&gt;
&lt;br /&gt;
n=4 theory: include both computer results and human results&lt;br /&gt;
&lt;br /&gt;
n=5: we have a proof using the n=4 computer data; we should keep looking for a purely human proof.&lt;br /&gt;
&lt;br /&gt;
n=6: we can give the partial results we have.&lt;br /&gt;
&lt;br /&gt;
=== Fujimura&#039;s problem ===&lt;br /&gt;
&lt;br /&gt;
=== Coloring DHJ ===&lt;br /&gt;
&lt;br /&gt;
== Files ==&lt;br /&gt;
&lt;br /&gt;
* [[polymath.tex]]&lt;br /&gt;
* [[introduction.tex]]&lt;br /&gt;
* [[dhj-lown.tex]]&lt;br /&gt;
* [[dhj-lown-lower.tex]]&lt;br /&gt;
* [[moser.tex]]&lt;br /&gt;
* [[moser-lower.tex]]&lt;br /&gt;
* [[fujimura.tex]]&lt;br /&gt;
* [[higherk.tex]]&lt;br /&gt;
* [[genetic.tex]]&lt;br /&gt;
* [[integer.tex]]&lt;br /&gt;
* [[coloring.tex]]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/alllinesin3n.pdf A figure depicting combinatorial lines]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/allgeomlinesin3n.pdf A figure depicting geometric lines]&lt;br /&gt;
* [http://thomas1111.files.wordpress.com/2009/06/moser353new.png A figure depicting a 353-point 6D Moser set]&lt;br /&gt;
&lt;br /&gt;
The above are the master copies of the LaTeX files.  Below are various compiled versions of the source:&lt;br /&gt;
&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/05/polymath.pdf May 24 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/05/polymath1.pdf May 25 version]&lt;br /&gt;
* [http://terrytao.files.wordpress.com/2009/05/polymath2.pdf May 27 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/05/polymath3.pdf Jun 1 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/06/polymath.pdf Jun 3 version]&lt;br /&gt;
* [http://terrytao.files.wordpress.com/2009/06/polymath2.pdf Jun 18 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/polymath.pdf Jul 9 version]&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=1951</id>
		<title>Fujimura.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=1951"/>
		<updated>2009-07-13T04:20:15Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Fujimura&#039;s problem}\label{fujimura-sec}&lt;br /&gt;
Let $\overline{c}^\mu_n$ be the size of the largest subset of the trianglular grid &lt;br /&gt;
$$\Delta_n := \{(a,b,c)\in {\mathbb Z}^3_+ : a+b+c = n\}$$&lt;br /&gt;
which contains no equilateral triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ with $r&amp;gt;0$.  These are upward-pointing equilateral triangles.  We shall refer to such sets as &#039;triangle-free&#039;.&lt;br /&gt;
(Kobon Fujimura is a prolific inventor of puzzles, and in [http://www.puzzles.com/PuzzlePlayground/CoinsAndTriangles/CoinsAndTriangles.htm this] puzzle asked the related question of eliminating all equilateral triangles.)&lt;br /&gt;
&lt;br /&gt;
The following table was formed mostly by computer searches for optimal solutions. We also found human proofs for most of them (see [http://michaelnielsen.org/polymath1/index.php?title=Fujimura&#039;s_problem here]).&lt;br /&gt;
&lt;br /&gt;
\begin{figure}\centerline{&lt;br /&gt;
\begin{tabular}[l|lllllllllllll]&lt;br /&gt;
$n$                         &amp;amp; 0 &amp;amp; 1 &amp;amp; 2 &amp;amp; 3 &amp;amp; 4 &amp;amp;  5 &amp;amp;  6 &amp;amp;  7 &amp;amp;  8 &amp;amp;  9 &amp;amp; 10 &amp;amp; 11 &amp;amp; 12 &amp;amp; 13\\&lt;br /&gt;
\hline $\overline{c}^\mu_n$ &amp;amp; 1 &amp;amp; 2 &amp;amp; 4 &amp;amp; 6 &amp;amp; 9 &amp;amp; 12 &amp;amp; 15 &amp;amp; 18 &amp;amp; 22 &amp;amp; 26 &amp;amp; 31 &amp;amp; 35 &amp;amp; 40 &amp;amp; 46&lt;br /&gt;
\end{tabular}\label{lowFujimura}\caption{Fujimura numbers}}&lt;br /&gt;
&lt;br /&gt;
For any equilateral triangle $(a+r,b,c)$,$(a,b+r,c)$ and $(a,b,c+r)$, the value $y+2z$ forms an arithmetic progression of length 3. A Behrend set is a finite set of integers with no arithmetic progression of length 3 (see [http://arxiv.org/PS_cache/arxiv/pdf/0811/0811.3057v2.pdf this paper]). By looking at those triples (a,b,c) with a+2b inside a Behrend set, one can obtain the lower bound of $\overline{c}^\mu_n \geq n^2 exp(-O(\sqrt{\log n}))$.&lt;br /&gt;
&lt;br /&gt;
It can be shown that $\overline{c}^\mu_n = o(n^2)$ as $n \rightarrow \infty$, but the details are outside the scope of this paper.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1950</id>
		<title>Moser-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1950"/>
		<updated>2009-07-12T14:18:31Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the Moser problem}\label{moser-lower-sec}&lt;br /&gt;
&lt;br /&gt;
Just as for the DHJ problem, we found that Gamma sets $\Gamma_{a,b,c}$ were useful in providing large lower bounds for the Moser problem.  This is despite the fact that the symmetries of the cube do not respect Gamma sets.&lt;br /&gt;
&lt;br /&gt;
Observe that if $B \subset \Delta_n$, then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a Moser set as long as $B$ does not contain any ``isosceles triangles&#039;&#039; $(a+r,b,c+s), (a+s,b,c+r), (a,b+r+s,c)$ for any $r,s \geq 0$ not both zero; in particular, $B$ cannot contain any ``vertical line segments&#039;&#039; $(a+r,b,c+r), (a,b+2r,c)$.  An example of such a set is provided by selecting $0 \leq i \leq n-3$ and letting $B$ consist of the triples $(a, n-i, i-a)$ when $a \neq 3 \mod 3$, $(a,n-i-1,i+1-a)$ when $a \neq 1 \mod 3$, $(a,n-i-2,i+2-a)$ when $a=0 \mod 3$, and $(a,n-i-3,i+3-a)$ when $a=2 \mod 3$.  Asymptotically, this set includes about two thirds of the spheres $S_{n,i}$, $S_{n,i+1}$ and one third of the spheres $S_{n,i+2}, S_{n,i+3}$ and (setting $i$ close to $n/3$) gives a lower bound \eqref{cpn3} with $C = 2 \times \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
&lt;br /&gt;
An integer program was run to obtain the optimal lower bounds achievable by the $A_B$ construction (using \eqref{cn3}, of course).  The results for&lt;br /&gt;
$1 \leq n \leq 20$ are displayed in Figure \ref{nlow-moser}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	71766\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	212423\\&lt;br /&gt;
3 &amp;amp;	16 &amp;amp; 13&amp;amp;	614875\\&lt;br /&gt;
4 &amp;amp;	43 &amp;amp; 14&amp;amp;	1794212\\&lt;br /&gt;
5 &amp;amp;	122&amp;amp; 15&amp;amp;	5321796\\&lt;br /&gt;
6 &amp;amp;	353&amp;amp; 16&amp;amp;	15455256\\&lt;br /&gt;
7 &amp;amp;	1017&amp;amp; 17&amp;amp;	45345052\\&lt;br /&gt;
8 &amp;amp;	2902&amp;amp;18&amp;amp;	134438520\\&lt;br /&gt;
9 &amp;amp;	8622&amp;amp;19&amp;amp;	391796798\\&lt;br /&gt;
10&amp;amp;	24786&amp;amp; 20&amp;amp;	1153402148\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c&#039;_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow-moser}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at &lt;br /&gt;
\centerline{{\tt http://abel.math.umu.se/~klasm/Data/HJ/}.}&lt;br /&gt;
&lt;br /&gt;
Note that the lower bound $c&#039;_{6,3} \geq 353$ was first located by a genetic algorithm: see Appendix \ref{genetic-alg}.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{moser353new.png}}&lt;br /&gt;
\caption{One of the examples of $353$-point sets in $[3]^6$ (elements of the set being indicated by white squares).}&lt;br /&gt;
\label{moser353-fig}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
However, we have been unable to locate a lower bound which is asymptotically better than \eqref{cpn3}.  Indeed, any method based purely on the $A_B$ construction cannot do asymptotically better than the previous constructions:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  Let $B \subset \Delta_n$ be such that $A_B$ is a Moser set.  Then $|A_B| \leq (2 \sqrt{\frac{9}{4\pi}} + o(1)) \frac{3^n}{\sqrt{n}}$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  By the previous discussion, $B$ cannot contain any pair of the form $(a,b+2r,c), (a+r,b,c+r)$ with $r&amp;gt;0$.  In other words, for any $-n \leq h \leq n$, $B$ can contain at most one triple $(a,b,c)$ with $c-a=h$.  From this and \eqref{cn3}, we see that&lt;br /&gt;
$$ |A_B| \leq \sum_{h=-n}^n \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!}.$$&lt;br /&gt;
From the Chernoff inequality (or the Stirling formula computation below) we see that $\frac{n!}{a! b! c!} \leq \frac{1}{n^{10}} 3^n$ unless $a,b,c = n/3 + O( n^{1/2} \log^{1/2} n )$, so we may restrict to this regime, which also forces $h = O( n^{1/2}\log^{1/2} n)$.  If we write $a = n/3 + \alpha$, $b = n/3 + \beta$, $c = n/3+\gamma$ and apply Stirling&#039;s formula $n! = (1+o(1)) \sqrt{2\pi n} n^n e^{-n}$, we obtain &lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - (\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) - (\frac{n}{3}+\beta) \log (1 + \frac{3\beta}{n} ) - (\frac{n}{3}+\gamma) \log (1 + \frac{3\gamma}{n} ) ).$$&lt;br /&gt;
From Taylor expansion one has&lt;br /&gt;
$$ -(\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) = -\alpha - \frac{3}{2} \frac{\alpha^2}{n} + o(1)$$&lt;br /&gt;
and similarly for $\beta,\gamma$; since $\alpha+\beta+\gamma=0$, we conclude that&lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{2n} (\alpha^2+\beta^2+\gamma^2) ).$$&lt;br /&gt;
If $c-a=h$, then $\alpha^2+\beta^2+\gamma^2 = \frac{3\beta^2}{2} + \frac{h^2}{2}$.  Thus we see that&lt;br /&gt;
$$ \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!} \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{4n} h^2 ).$$&lt;br /&gt;
Using the integral test, we thus have&lt;br /&gt;
$$ |A_B| \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n  \int_\R \exp( - \frac{3}{4n} x^2 )\ dx.$$&lt;br /&gt;
Since $\int_\R \exp( - \frac{3}{4n} x^2 )\ dx = \sqrt{\frac{4\pi n}{3}}$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually it is possible to improve upon these bounds by a slight amount.  Observe that if $B$ is a maximiser for the right-hand side of \eqref{cn3} (subject to $B$ not containing isosceles triangles), then any triple $(a,b,c)$ not in $B$ must be the vertex of a (possibly degenerate) isosceles triangle with the other vertices in $B$.  If this triangle is non-degenerate, or if $(a,b,c)$ is the upper vertex of a degenerate isosceles triangle, then no point from $\Gamma_{a,b,c}$ can be added to $A_B$ without creating a geometric line. However, if $(a,b,c) = (a&#039;+r,b&#039;,c&#039;+r)$ is only the lower vertex of a degenerate isosceles triangle $(a&#039;+r,b&#039;,c&#039;+r), (a&#039;,b&#039;+2r,c&#039;)$, then one can add any subset of $\Gamma_{a,b,c}$ to $A_B$ and still have a Moser set as long as no pair of elements in that subset is separated by Hamming distance $2r$.  For instance, in the $n=5$ case, we can start with the 122-point set built from &lt;br /&gt;
$$B = \{ (0 0 5),(0 2 3),(1 1 3 ),(1 2 2 ),(2 2 1 ),(3 1 1 ),(3 2 0 ),(5 0 0))\}$$, and add a point each from (1 0 4) and (4 0 1).&lt;br /&gt;
This gives an example of the maximal, 124-point solution.  Again, in the $n=10$ case, the set&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B &amp;amp;= \{(0 0 10),(0 2 8 ),(0 3 7 ),(0 4 6 ),(1 4 5 ),(2 1 7 ),(2 3 5 ), &lt;br /&gt;
(3 2 5 ),(3 3 4 ),(3 4 3 ),(4 4 2 ),(5 1 4 ), \\&lt;br /&gt;
&amp;amp;\quad (5 3 2 ),(6 2 2 ), &lt;br /&gt;
(6 3 1 ),(6 4 0 ),(8 1 1 ),(9 0 1 ),(9 1 0 ) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
generates the lower bound $c&#039;_{10,3} \geq 24786$ given above (and, up to reflection $a \leftrightarrow c$, is the only such set that does so); but by adding the following twelve elements from $\Gamma_{5,0,5}$ one can increase the lower bound slightly to $24798$: $1111133333$, $1111313333$,&lt;br /&gt;
$1113113333$, $1133331113$, $1133331131$, $1133331311$, $3311333111$,&lt;br /&gt;
$3313133111$, $3313313111$, $3331111133$, $3331111313$, $3331111331$&lt;br /&gt;
&lt;br /&gt;
A more general form goes with the $B$ set described at the start of this section.  Include points from $\Gamma_{(a,n-i-4,i+4-a)}$ when $a=1 (\operatorname{mod}\ 3)$, subject to no two points being included if they differ by the interchange of a $1$ and a $3$.  Each of these Gamma sets is the feet of a degenerate isosceles triangle with vertex $\Gamma_{(a-1,n-i-2,a+3-a)}$.  &lt;br /&gt;
&lt;br /&gt;
\begin{lemma} If $A$ is a subset of $\Gamma_{(a,b,c)}$ such that no two points of $A$ differ by the interchange of a $1$ and a $3$, then $|A| \leq |\Gamma_{a,b,c}|/(1+\max(a,c))$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Say that two points of $\Gamma_{a,b,c}$ are neighbours if they differ by the exchange of a $1$ and a $3$.  Each point of $A$ has $ac$ neighbours, none of which are in $A$. Each point of $\Gamma_{(a,b,c)}\backslash A$ has $ac$ neighbours, but only $min(a,c)$ of them may be in $A$. So for each point of $A$ there are on average $ac/\min(a,c) = \max(a,c)$ points not in $A$. So the proportion of points of $\Gamma_{(a,b,c)}$ that are in $A$ is at most one in $1+\max(a,c)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
The proportion of extra points for each of the cells $\Gamma_{(a,n-i-4,i+4-a)}$ is no more than $2/(i+6)$.  Only one cell in three is included from the  $b=n-i-4$ layer, so we expect no more than $\binom{n,i+4}2^{i+5}/(3i+18)$ new points, all from $S_{n,i+4}$.  One can also find extra points from $S_{n,i+5}$ and higher spheres.&lt;br /&gt;
&lt;br /&gt;
Earlier solutions may also give insight into the problem.  In this section we discuss lower bounds for $c&#039;_{n,3}$. Clearly we have &lt;br /&gt;
$c&#039;_{0,3}=1$ and $c&#039;_{1,3}=2$, so we focus on the case $n \ge 2$.&lt;br /&gt;
The first lower bounds may be due to Koml\&#039;{o}s \cite{komlos}, who observed &lt;br /&gt;
that the sphere $S_{i,n}$ of elements with exactly $n-i$ 2 entries&lt;br /&gt;
(see Section \ref{notation-sec} for definition),&lt;br /&gt;
is a Moser set, so that &lt;br /&gt;
\begin{equation}\label{cin}&lt;br /&gt;
c&#039;_{n,3}\geq \vert S_{i,n}\vert&lt;br /&gt;
\end{equation}&lt;br /&gt;
holds for all $i$. Choosing $i=\lfloor \frac{2n}{3}\rfloor$  and &lt;br /&gt;
applying Stirling&#039;s formula, we see that this lower bound takes the form &lt;br /&gt;
\begin{equation}\label{cpn3}&lt;br /&gt;
c&#039;_{n,3} \geq (C-o(1)) 3^n / \sqrt{n} &lt;br /&gt;
\end{equation} &lt;br /&gt;
for some absolute constant $C&amp;gt;0$; in fact \eqref{cin} gives \eqref{cpn3} with $C := \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
In particular $c&#039;_{3,3} \geq 12, c&#039;_{4,3}\geq 24, c&#039;_{5,3}\geq 80, &lt;br /&gt;
c&#039;_{6,3}\geq 240$.&lt;br /&gt;
&lt;br /&gt;
These values can be improved by studying combinations of several spheres or&lt;br /&gt;
semispheres or applying elementary results from coding theory.&lt;br /&gt;
&lt;br /&gt;
Observe that if $\{w(1),w(2),w(3)\}$ is a geometric line in $[3]^n$, &lt;br /&gt;
then $w(1), w(3)$ both lie in the same sphere $S_{i,n}$, &lt;br /&gt;
and that $w(2)$ lies in a lower &lt;br /&gt;
sphere $S_{i-r,n}$ for some $1 \leq r \leq i \leq n$. Furthermore, &lt;br /&gt;
$w(1)$ and $w(3)$ are separated by Hamming distance $r$.&lt;br /&gt;
&lt;br /&gt;
As a consequence, we see that $S_{i-1,n} \cup S_{i,n}^e$ (or $S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^o$) is a Moser set for any $1 \leq i \leq n$, since any two &lt;br /&gt;
distinct elements $S_{i,n}^e$ are separated by a Hamming distance of at &lt;br /&gt;
least two. &lt;br /&gt;
(Recall Section \ref{notation-sec} for definitions),&lt;br /&gt;
This leads to the lower bound &lt;br /&gt;
\begin{equation}\label{cn3-low}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n}{i-1} &lt;br /&gt;
2^{i-1} + \binom{n}{i} 2^{i-1} = \binom{n+1}{i} 2^{i-1}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
It is not &lt;br /&gt;
hard to see that $\binom{n+1}{i+1} 2^{i} &amp;gt; \binom{n+1}{i} 2^{i-1}$ if &lt;br /&gt;
and only if $3i &amp;lt; 2n+1$, and so this lower bound is maximised when $i = &lt;br /&gt;
\lfloor \frac{2n+1}{3} \rfloor$ for $n \geq 2$, giving the formula &lt;br /&gt;
\eqref{binom}. This leads to the lower bounds $$ c&#039;_{2,3} \geq 6; &lt;br /&gt;
c&#039;_{3,3} \geq 16; c&#039;_{4,3} \geq 40; c&#039;_{5,3} \geq 120; c&#039;_{6,3} \geq &lt;br /&gt;
336$$ which gives the right lower bounds for $n=2,3$, but is slightly &lt;br /&gt;
off for $n=4,5$.  Asymptotically, Stirling&#039;s formula and \eqref{cn3-low} then&lt;br /&gt;
give the lower bound \eqref{cpn3} with $C = \frac{3}{2} \times \sqrt{\frac{9}{4\pi}}$, which is asymptotically $50\%$ better than the bound \eqref{cin}.&lt;br /&gt;
&lt;br /&gt;
The work of Chv\&#039;{a}tal \cite{chvatal1} &lt;br /&gt;
already contained a refinement of this idea&lt;br /&gt;
which we here translate into the usual notation of coding theory:&lt;br /&gt;
Let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
and minimal distance $d$.&lt;br /&gt;
&lt;br /&gt;
Then &lt;br /&gt;
\begin{equation}\label{cnchvatal}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
With the following values for $A(n,d)$:&lt;br /&gt;
{\tiny{&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llllllll}&lt;br /&gt;
A(1,1)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(2,1)=4&amp;amp; A(2,2)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(3,1)=8&amp;amp;A(3,2)=4&amp;amp;A(3,3)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(4,1)=16&amp;amp;A(4,2)=8&amp;amp; A(4,3)=2&amp;amp; A(4,4)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(5,1)=32&amp;amp;A(5,2)=16&amp;amp; A(5,3)=4&amp;amp; A(5,4)=2&amp;amp;A(5,5)=2&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(6,1)=64&amp;amp;A(6,2)=32&amp;amp; A(6,3)=8&amp;amp; A(6,4)=4&amp;amp;A(6,5)=2&amp;amp;A(6,6)=2&amp;amp;&amp;amp;\\&lt;br /&gt;
A(7,1)=128&amp;amp;A(7,2)=64&amp;amp; A(7,3)=16&amp;amp; A(7,4)=8&amp;amp;A(7,5)=2&amp;amp;A(7,6)=2&amp;amp;A(7,7)=2&amp;amp;\\&lt;br /&gt;
A(8,1)=256&amp;amp;A(8,2)=128&amp;amp; A(8,3)=20&amp;amp; A(8,4)=16&amp;amp;A(8,5)=4&amp;amp;A(8,6)=2&lt;br /&gt;
&amp;amp;A(8,7)=2&amp;amp;A(8,8)=2\\&lt;br /&gt;
A(9,1)=512&amp;amp;A(9,2)=256&amp;amp; A(9,3)=40&amp;amp; A(9,4)=20&amp;amp;A(9,5)=6&amp;amp;A(9,6)=4&lt;br /&gt;
&amp;amp;A(9,7)=2&amp;amp;A(9,8)=2\\&lt;br /&gt;
A(10,1)=1024&amp;amp;A(10,2)=512&amp;amp; A(10,3)=72&amp;amp; A(10,4)=40&amp;amp;A(10,5)=12&amp;amp;A(10,6)=6&lt;br /&gt;
&amp;amp;A(10,7)=2&amp;amp;A(10,8)=2\\&lt;br /&gt;
A(11,1)=2048&amp;amp;A(11,2)=1024&amp;amp; A(11,3)=144&amp;amp; A(11,4)=72&amp;amp;A(11,5)=24&amp;amp;A(11,6)=12&lt;br /&gt;
&amp;amp;A(11,7)=2&amp;amp;A(11,8)=2\\&lt;br /&gt;
A(12,1)=4096&amp;amp;A(12,2)=2048&amp;amp; A(12,3)=256&amp;amp; A(12,4)=144&amp;amp;A(12,5)=32&amp;amp;A(12,6)=24&lt;br /&gt;
&amp;amp;A(12,7)=4&amp;amp;A(12,8)=2\\&lt;br /&gt;
A(13,1)=8192&amp;amp;A(13,2)=4096&amp;amp; A(13,3)=512&amp;amp; A(13,4)=256&amp;amp;A(13,5)=64&amp;amp;A(12,6)=32&lt;br /&gt;
&amp;amp;A(13,7)=8&amp;amp;A(13,8)=4\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Generally, $A(n,1)=2^n, A(n,2)=2^{n-1}, A(n-1,2e-1)=A(n,2e), A(n,d)=2$, &lt;br /&gt;
if $d&amp;gt;\frac{2n}{3}$.&lt;br /&gt;
The values were taken or derived from Andries Brower&#039;s table at&lt;br /&gt;
\centerline{\tt http://www.win.tue.nl/$\sim$aeb/codes/binary-1.html}&lt;br /&gt;
\textbf{include to references? or other book with explicit values of $A(n,d)$ }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For  $c&#039;_{n,3}$ we obtain the following lower bounds:&lt;br /&gt;
with $k=2$&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{4,3}&amp;amp;\geq &amp;amp;\binom{4}{0}A(4,3)+\binom{4}{1}A(3,2)+\binom{4}{2}A(2,1)&lt;br /&gt;
=1\cdot 2+4 \cdot 4+6\cdot 4&amp;amp;=42.\\&lt;br /&gt;
c&#039;_{5,3}&amp;amp;\geq &amp;amp;\binom{5}{0}A(5,3)+\binom{5}{1}A(4,2)+\binom{5}{2}A(3,1)&lt;br /&gt;
=1\cdot 4+5 \cdot 8+10\cdot 8&amp;amp;=124.\\&lt;br /&gt;
c&#039;_{6,3}&amp;amp;\geq &amp;amp;\binom{6}{0}A(6,3)+\binom{6}{1}A(5,2)+\binom{6}{2}A(4,1)&lt;br /&gt;
=1\cdot 8+6 \cdot 16+15\cdot 16&amp;amp;=344.&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
With k=3&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{7,3}&amp;amp;\geq&amp;amp; \binom{7}{0}A(7,4)+\binom{7}{1}A(6,3)+\binom{7}{2}A(5,2)&lt;br /&gt;
+ \binom{7}{3}A(4,1)&amp;amp;=960.\\&lt;br /&gt;
c&#039;_{8,3}&amp;amp;\geq &amp;amp;\binom{8}{0}A(8,4)+\binom{8}{1}A(7,3)+\binom{8}{2}A(6,2)&lt;br /&gt;
+ \binom{8}{3}A(5,1)&amp;amp;=2832.\\&lt;br /&gt;
c&#039;_{9,3}&amp;amp;\geq &amp;amp; \binom{9}{0}A(9,4)+\binom{9}{1}A(8,3)+\binom{9}{2}A(7,2)&lt;br /&gt;
+ \binom{9}{3}A(6,1)&amp;amp;=7880.&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With k=4&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{10,3}&amp;amp;\geq &amp;amp;\binom{10}{0}A(10,5)+\binom{10}{1}A(9,4)+\binom{10}{2}A(8,3)&lt;br /&gt;
+ \binom{10}{3}A(7,2)+\binom{10}{4}A(6,1)&amp;amp;=22232.\\&lt;br /&gt;
c&#039;_{11,3}&amp;amp;\geq &amp;amp;\binom{11}{0}A(11,5)+\binom{11}{1}A(10,4)+\binom{11}{2}A(9,3)&lt;br /&gt;
+ \binom{11}{3}A(8,2)+\binom{11}{4}A(7,1)&amp;amp;=66024.\\&lt;br /&gt;
c&#039;_{12,3}&amp;amp;\geq &amp;amp;\binom{12}{0}A(12,5)+\binom{12}{1}A(11,4)+\binom{12}{2}A(10,3)&lt;br /&gt;
+ \binom{12}{3}A(9,2)+\binom{12}{4}A(8,1)&amp;amp;=188688.\\&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With $k=5$&lt;br /&gt;
\[ c&#039;_{13,3}\geq 539168.\]&lt;br /&gt;
&lt;br /&gt;
It should be pointed out that these bounds are even numbers, so that &lt;br /&gt;
$c&#039;_{4,3}=43$ shows that one cannot generally expect this lower bound &lt;br /&gt;
gives the optimum.&lt;br /&gt;
&lt;br /&gt;
The maximum value  appears to occur for $k=\lfloor\frac{n+2}{3}\rfloor$, &lt;br /&gt;
so that using &lt;br /&gt;
Stirling&#039;s formula and explicit bounds on $A(n,d)$ the &lt;br /&gt;
best possible value known to date&lt;br /&gt;
of the constant $C$ in &lt;br /&gt;
equation \eqref{cpn3} can be worked out, but we refrain from doing this here.&lt;br /&gt;
Using the Singleton bound $A(n,d)\leq 2^{n-d+1}$ Chv\&#039;{a}tal  &lt;br /&gt;
\cite{chvatal1} proved that the expression on the right hand side of&lt;br /&gt;
\eqref{cnchvatal} is also &lt;br /&gt;
$O\left( \frac{3^n}{\sqrt{n}}\right)$, so that the refinement described &lt;br /&gt;
above gains a constant factor over the initial construction only.&lt;br /&gt;
 &lt;br /&gt;
For $n=4$ the above does not yet give the exact value.&lt;br /&gt;
The value $c&#039;_{4,3}=43$ was first proven by Chandra \cite{chandra}.&lt;br /&gt;
A uniform way of describing examples for the optimum values of &lt;br /&gt;
$c&#039;_{4,3}=43$ and $c&#039;_{5,3}=124$ is the following:&lt;br /&gt;
&lt;br /&gt;
Let us consider the sets $$ A := S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^e \cup A&#039;$$ where $A&#039; \subset S_{i+1,n}$ has the property &lt;br /&gt;
that any two elements in $A&#039;$ are separated by a Hamming distance of at &lt;br /&gt;
least three, or have a Hamming distance of exactly one but their &lt;br /&gt;
midpoint lies in $S_{i,n}^o$. By the previous discussion we see that &lt;br /&gt;
this is a Moser set, and we have the lower bound &lt;br /&gt;
\begin{equation}\label{cnn}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{i} 2^{i-1} + |A&#039;|.&lt;br /&gt;
\end{equation} This gives some improved lower bounds for $c&#039;_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize} \item By taking $n=4$, $i=3$, and $A&#039; = \{ 1111, 3331, &lt;br /&gt;
3333\}$, we obtain $c&#039;_{4,3} \geq 43$; \item By taking $n=5$, $i=4$, and &lt;br /&gt;
$A&#039; = \{ 11111, 11333, 33311, 33331 \}$, we obtain $c&#039;_{5,3} \geq 124$. &lt;br /&gt;
\item By taking $n=6$, $i=5$, and $A&#039; = \{ 111111, 111113, 111331, &lt;br /&gt;
111333, 331111, 331113\}$, we obtain $c&#039;_{6,3} \geq 342$. \end{itemize}&lt;br /&gt;
&lt;br /&gt;
This gives the lower bounds in Theorem \ref{moser} up to $n=5$, but &lt;br /&gt;
the bound for $n=6$ is inferior to the lower bound $c&#039;_{6,3}\geq 344$ given above. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
\subsection{Higher $k$ values}&lt;br /&gt;
One can consider subsets of $[k]{}^n$ that contain no geometric lines.  Section \ref{moser-lower-sec} has considered the case $k=3$.  Let $c&#039;_{n,k}$ be the greatest number of points in $[k]{}^n$ with no geometric line.  For example, $c&#039;_{n,3} = c&#039;_n$.  We have the following lower bounds:&lt;br /&gt;
&lt;br /&gt;
$c&#039;_{n,4} \ge \binom{n}{n/2}2^n$.&lt;br /&gt;
The set of points with $a$ $1$s,$b$ $2$s,$c$ $3$s and $d$ $4$s, where $a+d$ has the constant value $n/2$, does not form geometric lines because points at the ends of a geometric line have more $a$ or $d$ values than points in the middle of the line.&lt;br /&gt;
&lt;br /&gt;
One can show a lower bound that, asymptotically, is twice as large.  Take all points with $a$ $1$s, $b$ $2$s, $c$ $3$s and $d$ $4$s, for which:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Either $a+d = q$ or $q-1$, $a$ and $b$ have the same parity; or&lt;br /&gt;
\item $a+d = q-2$ or $q-3$, $a$ and $b$ have opposite parity.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
This includes half the points of four adjacent layers, and therefore may include $(1+o(1))\binom{n}{n/2}2^{n+1}$ points.&lt;br /&gt;
&lt;br /&gt;
We also have a DHJ(3)-like lower bound for $c&#039;_{n,5}$, namely $c&#039;_{n,5} = 5^{n-O(\sqrt{\log n})}$.&lt;br /&gt;
Consider points with $a$ $1$s, $b$ $2$s, $c$ $3$s, $d$ $4$s and $e$ $5$s.  For each point, take the value $a+e+2(b+d)+3c$.  The first three points in any geometric line give values that form an arithmetic progression of length three.  &lt;br /&gt;
&lt;br /&gt;
Select a set of integers with no arithmetic progression of length 3.  Select all points whose value belongs to that sequence; there will be no geometric line among those points.  By Behrend theory, it is possible to choose these points with density $\exp{-O(\sqrt{\log n})}$.&lt;br /&gt;
&lt;br /&gt;
The $k=6$ version of Moser implies DHJ(3). Indeed, any $k=3$ combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a $k=6$ geometric line-free set of the same density by pulling back the set from the map that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends $k=6$ geometric lines to $k=3$ combinatorial lines.  So $c&#039;_{k,6} \geq 2^k c_k$, and more generally, $c&#039;_{k,2n} \geq 2^k c_{k,n}$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1949</id>
		<title>Moser-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1949"/>
		<updated>2009-07-12T14:14:26Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the Moser problem}\label{moser-lower-sec}&lt;br /&gt;
&lt;br /&gt;
Just as for the DHJ problem, we found that Gamma sets $\Gamma_{a,b,c}$ were useful in providing large lower bounds for the Moser problem.  This is despite the fact that the symmetries of the cube do not respect Gamma sets.&lt;br /&gt;
&lt;br /&gt;
Observe that if $B \subset \Delta_n$, then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a Moser set as long as $B$ does not contain any ``isosceles triangles&#039;&#039; $(a+r,b,c+s), (a+s,b,c+r), (a,b+r+s,c)$ for any $r,s \geq 0$ not both zero; in particular, $B$ cannot contain any ``vertical line segments&#039;&#039; $(a+r,b,c+r), (a,b+2r,c)$.  An example of such a set is provided by selecting $0 \leq i \leq n-3$ and letting $B$ consist of the triples $(a, n-i, i-a)$ when $a \neq 3 \mod 3$, $(a,n-i-1,i+1-a)$ when $a \neq 1 \mod 3$, $(a,n-i-2,i+2-a)$ when $a=0 \mod 3$, and $(a,n-i-3,i+3-a)$ when $a=2 \mod 3$.  Asymptotically, this set includes about two thirds of the spheres $S_{n,i}$, $S_{n,i+1}$ and one third of the spheres $S_{n,i+2}, S_{n,i+3}$ and (setting $i$ close to $n/3$) gives a lower bound \eqref{cpn3} with $C = 2 \times \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
&lt;br /&gt;
An integer program was run to obtain the optimal lower bounds achievable by the $A_B$ construction (using \eqref{cn3}, of course).  The results for&lt;br /&gt;
$1 \leq n \leq 20$ are displayed in Figure \ref{nlow-moser}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	71766\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	212423\\&lt;br /&gt;
3 &amp;amp;	16 &amp;amp; 13&amp;amp;	614875\\&lt;br /&gt;
4 &amp;amp;	43 &amp;amp; 14&amp;amp;	1794212\\&lt;br /&gt;
5 &amp;amp;	122&amp;amp; 15&amp;amp;	5321796\\&lt;br /&gt;
6 &amp;amp;	353&amp;amp; 16&amp;amp;	15455256\\&lt;br /&gt;
7 &amp;amp;	1017&amp;amp; 17&amp;amp;	45345052\\&lt;br /&gt;
8 &amp;amp;	2902&amp;amp;18&amp;amp;	134438520\\&lt;br /&gt;
9 &amp;amp;	8622&amp;amp;19&amp;amp;	391796798\\&lt;br /&gt;
10&amp;amp;	24786&amp;amp; 20&amp;amp;	1153402148\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c&#039;_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow-moser}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at &lt;br /&gt;
\centerline{{\tt http://abel.math.umu.se/~klasm/Data/HJ/}.}&lt;br /&gt;
&lt;br /&gt;
Note that the lower bound $c&#039;_{6,3} \geq 353$ was first located by a genetic algorithm: see Appendix \ref{genetic-alg}.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{moser353new.png}}&lt;br /&gt;
\caption{One of the examples of $353$-point sets in $[3]^6$ (elements of the set being indicated by white squares).}&lt;br /&gt;
\label{moser353-fig}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
However, we have been unable to locate a lower bound which is asymptotically better than \eqref{cpn3}.  Indeed, any method based purely on the $A_B$ construction cannot do asymptotically better than the previous constructions:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  Let $B \subset \Delta_n$ be such that $A_B$ is a Moser set.  Then $|A_B| \leq (2 \sqrt{\frac{9}{4\pi}} + o(1)) \frac{3^n}{\sqrt{n}}$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  By the previous discussion, $B$ cannot contain any pair of the form $(a,b+2r,c), (a+r,b,c+r)$ with $r&amp;gt;0$.  In other words, for any $-n \leq h \leq n$, $B$ can contain at most one triple $(a,b,c)$ with $c-a=h$.  From this and \eqref{cn3}, we see that&lt;br /&gt;
$$ |A_B| \leq \sum_{h=-n}^n \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!}.$$&lt;br /&gt;
From the Chernoff inequality (or the Stirling formula computation below) we see that $\frac{n!}{a! b! c!} \leq \frac{1}{n^{10}} 3^n$ unless $a,b,c = n/3 + O( n^{1/2} \log^{1/2} n )$, so we may restrict to this regime, which also forces $h = O( n^{1/2}\log^{1/2} n)$.  If we write $a = n/3 + \alpha$, $b = n/3 + \beta$, $c = n/3+\gamma$ and apply Stirling&#039;s formula $n! = (1+o(1)) \sqrt{2\pi n} n^n e^{-n}$, we obtain &lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - (\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) - (\frac{n}{3}+\beta) \log (1 + \frac{3\beta}{n} ) - (\frac{n}{3}+\gamma) \log (1 + \frac{3\gamma}{n} ) ).$$&lt;br /&gt;
From Taylor expansion one has&lt;br /&gt;
$$ -(\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) = -\alpha - \frac{3}{2} \frac{\alpha^2}{n} + o(1)$$&lt;br /&gt;
and similarly for $\beta,\gamma$; since $\alpha+\beta+\gamma=0$, we conclude that&lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{2n} (\alpha^2+\beta^2+\gamma^2) ).$$&lt;br /&gt;
If $c-a=h$, then $\alpha^2+\beta^2+\gamma^2 = \frac{3\beta^2}{2} + \frac{h^2}{2}$.  Thus we see that&lt;br /&gt;
$$ \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!} \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{4n} h^2 ).$$&lt;br /&gt;
Using the integral test, we thus have&lt;br /&gt;
$$ |A_B| \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n  \int_\R \exp( - \frac{3}{4n} x^2 )\ dx.$$&lt;br /&gt;
Since $\int_\R \exp( - \frac{3}{4n} x^2 )\ dx = \sqrt{\frac{4\pi n}{3}}$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually it is possible to improve upon these bounds by a slight amount.  Observe that if $B$ is a maximiser for the right-hand side of \eqref{cn3} (subject to $B$ not containing isosceles triangles), then any triple $(a,b,c)$ not in $B$ must be the vertex of a (possibly degenerate) isosceles triangle with the other vertices in $B$.  If this triangle is non-degenerate, or if $(a,b,c)$ is the upper vertex of a degenerate isosceles triangle, then no point from $\Gamma_{a,b,c}$ can be added to $A_B$ without creating a geometric line. However, if $(a,b,c) = (a&#039;+r,b&#039;,c&#039;+r)$ is only the lower vertex of a degenerate isosceles triangle $(a&#039;+r,b&#039;,c&#039;+r), (a&#039;,b&#039;+2r,c&#039;)$, then one can add any subset of $\Gamma_{a,b,c}$ to $A_B$ and still have a Moser set as long as no pair of elements in that subset is separated by Hamming distance $2r$.  For instance, in the $n=5$ case, we can start with the 122-point set built from &lt;br /&gt;
$$B = \{ (0 0 5),(0 2 3),(1 1 3 ),(1 2 2 ),(2 2 1 ),(3 1 1 ),(3 2 0 ),(5 0 0))\}$$, and add a point each from (1 0 4) and (4 0 1).&lt;br /&gt;
This gives an example of the maximal, 124-point solution.  Again, in the $n=10$ case, the set&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B &amp;amp;= \{(0 0 10),(0 2 8 ),(0 3 7 ),(0 4 6 ),(1 4 5 ),(2 1 7 ),(2 3 5 ), &lt;br /&gt;
(3 2 5 ),(3 3 4 ),(3 4 3 ),(4 4 2 ),(5 1 4 ), \\&lt;br /&gt;
&amp;amp;\quad (5 3 2 ),(6 2 2 ), &lt;br /&gt;
(6 3 1 ),(6 4 0 ),(8 1 1 ),(9 0 1 ),(9 1 0 ) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
generates the lower bound $c&#039;_{10,3} \geq 24786$ given above (and, up to reflection $a \leftrightarrow c$, is the only such set that does so); but by adding the following twelve elements from $\Gamma_{5,0,5}$ one can increase the lower bound slightly to $24798$: $1111133333$, $1111313333$,&lt;br /&gt;
$1113113333$, $1133331113$, $1133331131$, $1133331311$, $3311333111$,&lt;br /&gt;
$3313133111$, $3313313111$, $3331111133$, $3331111313$, $3331111331$&lt;br /&gt;
&lt;br /&gt;
A more general form goes with the $B$ set described at the start of this section.  Include points from $\Gamma_{(a,n-i-4,i+4-a)}$ when $a=1 (\operatorname{mod}\ 3)$, subject to no two points being included if they differ by the interchange of a $1$ and a $3$.  Each of these Gamma sets is the feet of a degenerate isosceles triangle with vertex $\Gamma_{(a-1,n-i-2,a+3-a)}$.  &lt;br /&gt;
&lt;br /&gt;
\begin{lemma} If $A$ is a subset of $\Gamma_{(a,b,c)}$ such that no two points of $A$ differ by the interchange of a $1$ and a $3$, then $|A| \leq |\Gamma_{a,b,c}|/(1+\max(a,c))$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Say that two points of $\Gamma_{a,b,c}$ are neighbours if they differ by the exchange of a $1$ and a $3$.  Each point of $A$ has $ac$ neighbours, none of which are in $A$. Each point of $\Gamma_{(a,b,c)}\backslash A$ has $ac$ neighbours, but only $min(a,c)$ of them may be in $A$. So for each point of $A$ there are on average $ac/\min(a,c) = \max(a,c)$ points not in $A$. So the proportion of points of $\Gamma_{(a,b,c)}$ that are in $A$ is at most one in $1+\max(a,c)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
The proportion of extra points for each of the cells $\Gamma_{(a,n-i-4,i+4-a)}$ is no more than $2/(i+6)$.  Only one cell in three is included from the  $b=n-i-4$ layer, so we expect no more than $\binom{n,i+4}2^{i+5}/(3i+18)$ new points, all from $S_{n,i+4}$.  One can also find extra points from $S_{n,i+5}$ and higher spheres.&lt;br /&gt;
&lt;br /&gt;
Earlier solutions may also give insight into the problem.  In this section we discuss lower bounds for $c&#039;_{n,3}$. Clearly we have &lt;br /&gt;
$c&#039;_{0,3}=1$ and $c&#039;_{1,3}=2$, so we focus on the case $n \ge 2$.&lt;br /&gt;
The first lower bounds may be due to Koml\&#039;{o}s \cite{komlos}, who observed &lt;br /&gt;
that the sphere $S_{i,n}$ of elements with exactly $n-i$ 2 entries&lt;br /&gt;
(see Section \ref{notation-sec} for definition),&lt;br /&gt;
is a Moser set, so that &lt;br /&gt;
\begin{equation}\label{cin}&lt;br /&gt;
c&#039;_{n,3}\geq \vert S_{i,n}\vert&lt;br /&gt;
\end{equation}&lt;br /&gt;
holds for all $i$. Choosing $i=\lfloor \frac{2n}{3}\rfloor$  and &lt;br /&gt;
applying Stirling&#039;s formula, we see that this lower bound takes the form &lt;br /&gt;
\begin{equation}\label{cpn3}&lt;br /&gt;
c&#039;_{n,3} \geq (C-o(1)) 3^n / \sqrt{n} &lt;br /&gt;
\end{equation} &lt;br /&gt;
for some absolute constant $C&amp;gt;0$; in fact \eqref{cin} gives \eqref{cpn3} with $C := \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
In particular $c&#039;_{3,3} \geq 12, c&#039;_{4,3}\geq 24, c&#039;_{5,3}\geq 80, &lt;br /&gt;
c&#039;_{6,3}\geq 240$.&lt;br /&gt;
&lt;br /&gt;
These values can be improved by studying combinations of several spheres or&lt;br /&gt;
semispheres or applying elementary results from coding theory.&lt;br /&gt;
&lt;br /&gt;
Observe that if $\{w(1),w(2),w(3)\}$ is a geometric line in $[3]^n$, &lt;br /&gt;
then $w(1), w(3)$ both lie in the same sphere $S_{i,n}$, &lt;br /&gt;
and that $w(2)$ lies in a lower &lt;br /&gt;
sphere $S_{i-r,n}$ for some $1 \leq r \leq i \leq n$. Furthermore, &lt;br /&gt;
$w(1)$ and $w(3)$ are separated by Hamming distance $r$.&lt;br /&gt;
&lt;br /&gt;
As a consequence, we see that $S_{i-1,n} \cup S_{i,n}^e$ (or $S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^o$) is a Moser set for any $1 \leq i \leq n$, since any two &lt;br /&gt;
distinct elements $S_{i,n}^e$ are separated by a Hamming distance of at &lt;br /&gt;
least two. &lt;br /&gt;
(Recall Section \ref{notation-sec} for definitions),&lt;br /&gt;
This leads to the lower bound &lt;br /&gt;
\begin{equation}\label{cn3-low}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n}{i-1} &lt;br /&gt;
2^{i-1} + \binom{n}{i} 2^{i-1} = \binom{n+1}{i} 2^{i-1}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
It is not &lt;br /&gt;
hard to see that $\binom{n+1}{i+1} 2^{i} &amp;gt; \binom{n+1}{i} 2^{i-1}$ if &lt;br /&gt;
and only if $3i &amp;lt; 2n+1$, and so this lower bound is maximised when $i = &lt;br /&gt;
\lfloor \frac{2n+1}{3} \rfloor$ for $n \geq 2$, giving the formula &lt;br /&gt;
\eqref{binom}. This leads to the lower bounds $$ c&#039;_{2,3} \geq 6; &lt;br /&gt;
c&#039;_{3,3} \geq 16; c&#039;_{4,3} \geq 40; c&#039;_{5,3} \geq 120; c&#039;_{6,3} \geq &lt;br /&gt;
336$$ which gives the right lower bounds for $n=2,3$, but is slightly &lt;br /&gt;
off for $n=4,5$.  Asymptotically, Stirling&#039;s formula and \eqref{cn3-low} then&lt;br /&gt;
give the lower bound \eqref{cpn3} with $C = \frac{3}{2} \times \sqrt{\frac{9}{4\pi}}$, which is asymptotically $50\%$ better than the bound \eqref{cin}.&lt;br /&gt;
&lt;br /&gt;
The work of Chv\&#039;{a}tal \cite{chvatal1} &lt;br /&gt;
already contained a refinement of this idea&lt;br /&gt;
which we here translate into the usual notation of coding theory:&lt;br /&gt;
Let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
and minimal distance $d$.&lt;br /&gt;
&lt;br /&gt;
Then &lt;br /&gt;
\begin{equation}\label{cnchvatal}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
With the following values for $A(n,d)$:&lt;br /&gt;
{\tiny{&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llllllll}&lt;br /&gt;
A(1,1)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(2,1)=4&amp;amp; A(2,2)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(3,1)=8&amp;amp;A(3,2)=4&amp;amp;A(3,3)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(4,1)=16&amp;amp;A(4,2)=8&amp;amp; A(4,3)=2&amp;amp; A(4,4)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(5,1)=32&amp;amp;A(5,2)=16&amp;amp; A(5,3)=4&amp;amp; A(5,4)=2&amp;amp;A(5,5)=2&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(6,1)=64&amp;amp;A(6,2)=32&amp;amp; A(6,3)=8&amp;amp; A(6,4)=4&amp;amp;A(6,5)=2&amp;amp;A(6,6)=2&amp;amp;&amp;amp;\\&lt;br /&gt;
A(7,1)=128&amp;amp;A(7,2)=64&amp;amp; A(7,3)=16&amp;amp; A(7,4)=8&amp;amp;A(7,5)=2&amp;amp;A(7,6)=2&amp;amp;A(7,7)=2&amp;amp;\\&lt;br /&gt;
A(8,1)=256&amp;amp;A(8,2)=128&amp;amp; A(8,3)=20&amp;amp; A(8,4)=16&amp;amp;A(8,5)=4&amp;amp;A(8,6)=2&lt;br /&gt;
&amp;amp;A(8,7)=2&amp;amp;A(8,8)=2\\&lt;br /&gt;
A(9,1)=512&amp;amp;A(9,2)=256&amp;amp; A(9,3)=40&amp;amp; A(9,4)=20&amp;amp;A(9,5)=6&amp;amp;A(9,6)=4&lt;br /&gt;
&amp;amp;A(9,7)=2&amp;amp;A(9,8)=2\\&lt;br /&gt;
A(10,1)=1024&amp;amp;A(10,2)=512&amp;amp; A(10,3)=72&amp;amp; A(10,4)=40&amp;amp;A(10,5)=12&amp;amp;A(10,6)=6&lt;br /&gt;
&amp;amp;A(10,7)=2&amp;amp;A(10,8)=2\\&lt;br /&gt;
A(11,1)=2048&amp;amp;A(11,2)=1024&amp;amp; A(11,3)=144&amp;amp; A(11,4)=72&amp;amp;A(11,5)=24&amp;amp;A(11,6)=12&lt;br /&gt;
&amp;amp;A(11,7)=2&amp;amp;A(11,8)=2\\&lt;br /&gt;
A(12,1)=4096&amp;amp;A(12,2)=2048&amp;amp; A(12,3)=256&amp;amp; A(12,4)=144&amp;amp;A(12,5)=32&amp;amp;A(12,6)=24&lt;br /&gt;
&amp;amp;A(12,7)=4&amp;amp;A(12,8)=2\\&lt;br /&gt;
A(13,1)=8192&amp;amp;A(13,2)=4096&amp;amp; A(13,3)=512&amp;amp; A(13,4)=256&amp;amp;A(13,5)=64&amp;amp;A(12,6)=32&lt;br /&gt;
&amp;amp;A(13,7)=8&amp;amp;A(13,8)=4\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Generally, $A(n,1)=2^n, A(n,2)=2^{n-1}, A(n-1,2e-1)=A(n,2e), A(n,d)=2$, &lt;br /&gt;
if $d&amp;gt;\frac{2n}{3}$.&lt;br /&gt;
The values were taken or derived from Andries Brower&#039;s table at&lt;br /&gt;
\centerline{\tt http://www.win.tue.nl/$\sim$aeb/codes/binary-1.html}&lt;br /&gt;
\textbf{include to references? or other book with explicit values of $A(n,d)$ }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For  $c&#039;_{n,3}$ we obtain the following lower bounds:&lt;br /&gt;
with $k=2$&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{4,3}&amp;amp;\geq &amp;amp;\binom{4}{0}A(4,3)+\binom{4}{1}A(3,2)+\binom{4}{2}A(2,1)&lt;br /&gt;
=1\cdot 2+4 \cdot 4+6\cdot 4&amp;amp;=42.\\&lt;br /&gt;
c&#039;_{5,3}&amp;amp;\geq &amp;amp;\binom{5}{0}A(5,3)+\binom{5}{1}A(4,2)+\binom{5}{2}A(3,1)&lt;br /&gt;
=1\cdot 4+5 \cdot 8+10\cdot 8&amp;amp;=124.\\&lt;br /&gt;
c&#039;_{6,3}&amp;amp;\geq &amp;amp;\binom{6}{0}A(6,3)+\binom{6}{1}A(5,2)+\binom{6}{2}A(4,1)&lt;br /&gt;
=1\cdot 8+6 \cdot 16+15\cdot 16&amp;amp;=344.&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
With k=3&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{7,3}&amp;amp;\geq&amp;amp; \binom{7}{0}A(7,4)+\binom{7}{1}A(6,3)+\binom{7}{2}A(5,2)&lt;br /&gt;
+ \binom{7}{3}A(4,1)&amp;amp;=960.\\&lt;br /&gt;
c&#039;_{8,3}&amp;amp;\geq &amp;amp;\binom{8}{0}A(8,4)+\binom{8}{1}A(7,3)+\binom{8}{2}A(6,2)&lt;br /&gt;
+ \binom{8}{3}A(5,1)&amp;amp;=2832.\\&lt;br /&gt;
c&#039;_{9,3}&amp;amp;\geq &amp;amp; \binom{9}{0}A(9,4)+\binom{9}{1}A(8,3)+\binom{9}{2}A(7,2)&lt;br /&gt;
+ \binom{9}{3}A(6,1)&amp;amp;=7880.&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With k=4&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{10,3}&amp;amp;\geq &amp;amp;\binom{10}{0}A(10,5)+\binom{10}{1}A(9,4)+\binom{10}{2}A(8,3)&lt;br /&gt;
+ \binom{10}{3}A(7,2)+\binom{10}{4}A(6,1)&amp;amp;=22232.\\&lt;br /&gt;
c&#039;_{11,3}&amp;amp;\geq &amp;amp;\binom{11}{0}A(11,5)+\binom{11}{1}A(10,4)+\binom{11}{2}A(9,3)&lt;br /&gt;
+ \binom{11}{3}A(8,2)+\binom{11}{4}A(7,1)&amp;amp;=66024.\\&lt;br /&gt;
c&#039;_{12,3}&amp;amp;\geq &amp;amp;\binom{12}{0}A(12,5)+\binom{12}{1}A(11,4)+\binom{12}{2}A(10,3)&lt;br /&gt;
+ \binom{12}{3}A(9,2)+\binom{12}{4}A(8,1)&amp;amp;=188688.\\&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With $k=5$&lt;br /&gt;
\[ c&#039;_{13,3}\geq 539168.\]&lt;br /&gt;
&lt;br /&gt;
It should be pointed out that these bounds are even numbers, so that &lt;br /&gt;
$c&#039;_{4,3}=43$ shows that one cannot generally expect this lower bound &lt;br /&gt;
gives the optimum.&lt;br /&gt;
&lt;br /&gt;
The maximum value  appears to occur for $k=\lfloor\frac{n+2}{3}\rfloor$, &lt;br /&gt;
so that using &lt;br /&gt;
Stirling&#039;s formula and explicit bounds on $A(n,d)$ the &lt;br /&gt;
best possible value known to date&lt;br /&gt;
of the constant $C$ in &lt;br /&gt;
equation \eqref{cpn3} can be worked out, but we refrain from doing this here.&lt;br /&gt;
Using the Singleton bound $A(n,d)\leq 2^{n-d+1}$ Chv\&#039;{a}tal  &lt;br /&gt;
\cite{chvatal1} proved that the expression on the right hand side of&lt;br /&gt;
\eqref{cnchvatal} is also &lt;br /&gt;
$O\left( \frac{3^n}{\sqrt{n}}\right)$, so that the refinement described &lt;br /&gt;
above gains a constant factor over the initial construction only.&lt;br /&gt;
 &lt;br /&gt;
For $n=4$ the above does not yet give the exact value.&lt;br /&gt;
The value $c&#039;_{4,3}=43$ was first proven by Chandra \cite{chandra}.&lt;br /&gt;
A uniform way of describing examples for the optimum values of &lt;br /&gt;
$c&#039;_{4,3}=43$ and $c&#039;_{5,3}=124$ is the following:&lt;br /&gt;
&lt;br /&gt;
Let us consider the sets $$ A := S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^e \cup A&#039;$$ where $A&#039; \subset S_{i+1,n}$ has the property &lt;br /&gt;
that any two elements in $A&#039;$ are separated by a Hamming distance of at &lt;br /&gt;
least three, or have a Hamming distance of exactly one but their &lt;br /&gt;
midpoint lies in $S_{i,n}^o$. By the previous discussion we see that &lt;br /&gt;
this is a Moser set, and we have the lower bound &lt;br /&gt;
\begin{equation}\label{cnn}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{i} 2^{i-1} + |A&#039;|.&lt;br /&gt;
\end{equation} This gives some improved lower bounds for $c&#039;_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize} \item By taking $n=4$, $i=3$, and $A&#039; = \{ 1111, 3331, &lt;br /&gt;
3333\}$, we obtain $c&#039;_{4,3} \geq 43$; \item By taking $n=5$, $i=4$, and &lt;br /&gt;
$A&#039; = \{ 11111, 11333, 33311, 33331 \}$, we obtain $c&#039;_{5,3} \geq 124$. &lt;br /&gt;
\item By taking $n=6$, $i=5$, and $A&#039; = \{ 111111, 111113, 111331, &lt;br /&gt;
111333, 331111, 331113\}$, we obtain $c&#039;_{6,3} \geq 342$. \end{itemize}&lt;br /&gt;
&lt;br /&gt;
This gives the lower bounds in Theorem \ref{moser} up to $n=5$, but &lt;br /&gt;
the bound for $n=6$ is inferior to the lower bound $c&#039;_{6,3}\geq 344$ given above. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
\subsection{Higher $k$ values}&lt;br /&gt;
One can consider subsets of $[k]{}^n$ that contain no geometric lines.  Section \ref{moser-lower-sec} has considered the case $k=3$.  Let $c&#039;_{n,k}$ be the greatest number of points in $[k]{}^n$ with no geometric line.  For example, $c&#039;_{n,3} = c&#039;_n$.  We have the following lower bounds:&lt;br /&gt;
&lt;br /&gt;
$c&#039;_{n,4} \ge \binom{n}{n/2}2^n$.&lt;br /&gt;
The set of points with $a$ $1$s,$b$ $2$s,$c$ $3$s and $d$ $4$s, where $a+d$ has the constant value $n/2$, does not form geometric lines because points at the ends of a geometric line have more $a$ or $d$ values than point in the middle of the line.&lt;br /&gt;
&lt;br /&gt;
One can show a lower bound that, asymptotically, is twice as large.  Take all points with $a$ $1$s, $b$ $2$s, $c$ $3$s and $d$ $4$s, for which:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Either $a+d = q$ or $q-1$, $a$ and $b$ have the same parity; or&lt;br /&gt;
\item $a+d = q-2$ or $q-3$, $a$ and $b$ have opposite parity.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
This includes half the points of four adjacent layers, and therefore may include $(1+o(1))\binom{n}{n/2}2^{n+1}$ points.&lt;br /&gt;
&lt;br /&gt;
We also have a DHJ(3)-like lower bound for $c&#039;_{n,5}$, namely $c&#039;_{n,5} = 5^{n-O(\sqrt{\log n})}$.&lt;br /&gt;
Consider points with $a$ $1$s, $b$ $2$s, $c$ $3$s, $d$ $4$s and $e$ $5$s.  For each point, take the value $a+e+2(b+d)+3c$.  The first three points in any geometric line give values that form an arithmetic progression of length three.  &lt;br /&gt;
&lt;br /&gt;
Select a set of integers with no arithmetic progression of length 3.  Select all points whose value belongs to that sequence; there will be no geometric line among those points.  By Behrend theory, it is possible to choose these points with density $\exp{-O(\sqrt{\log n})}$.&lt;br /&gt;
&lt;br /&gt;
The $k=6$ version of Moser implies DHJ(3). Indeed, any $k=3$ combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a $k=6$ geometric line-free set of the same density by pulling back the set from the map that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends $k=6$ geometric lines to $k=3$ combinatorial lines.  So $c&#039;_{k,6} \geq 2^k c_k$, and more generally, $c&#039;_{k,2n} \geq 2^k c_{k,n}$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Dhj-lown-lower.tex&amp;diff=1948</id>
		<title>Dhj-lown-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Dhj-lown-lower.tex&amp;diff=1948"/>
		<updated>2009-07-12T14:11:16Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the density Hales-Jewett problem}\label{dhj-lower-sec}&lt;br /&gt;
&lt;br /&gt;
The purpose of this section is to establish various lower bounds for $c_{n,3}$, in particular establishing Theorem \ref{dhj-lower} and the lower bound component of Theorem \ref{dhj-upper}.&lt;br /&gt;
&lt;br /&gt;
As observed in the introduction, if $B \subset \Delta_{3,n}$ is a Fujimura set (i.e. a subset of $\Delta_{3,n} = \{ (a,b,c) \in \N^3: a+b+c=n\}$ which contains no upward equilateral triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$), then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a line-free subset of $[3]^n$, which gives the lower bound&lt;br /&gt;
\begin{equation}\label{cn3}&lt;br /&gt;
 c_{n,3} \geq |A_B| = \sum_{(a,b,c) \in B} \frac{n!}{a! b! c!}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
All of the lower bounds for $c_{n,3}$ in this paper will be constructed via this device.&lt;br /&gt;
&lt;br /&gt;
In order to use \eqref{cn3}, one of course needs to build Fujimura sets $B$ which are ``large&#039;&#039; in the sense that the right-hand side of \eqref{cn3} is large.  A fruitful starting point for this goal is the sets &lt;br /&gt;
$$B_{j,n} := \{ (a,b,c) \in \Delta_{3,n}: a + 2b \neq j \hbox{ mod } 3 \}$$&lt;br /&gt;
for $j=0,1,2$.  Observe that in order for a triangle $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ to lie in $B_{j,n}$, the length $r$ of the triangle must be a multiple of $3$.  This already makes $B_{j,n}$ a Fujimura set for $n &amp;lt; 3$	(and $B_{0,n}$ a Fujimura set for $n = 3$).&lt;br /&gt;
&lt;br /&gt;
When $n$ is not a multiple of $3$, the $B_{j,n}$ are all rotations of each other and give equivalent sets (of size $2 \times 3^{n-1}$).  When $n$ is a multiple of $3$, the sets $B_{1,n}$ and $B_{2,n}$ are reflections of each other, but $B_{0,n}$ is not equivalent to the other two sets (in particular, it omits all three corners of $\Delta_{3,n}$); the associated set $A_{B_{0,n}}$ is slightly larger than $A_{B_{1,n}}$ and $A_{B_{2,n}}$ and thus is slightly better for constructing line-free sets.&lt;br /&gt;
&lt;br /&gt;
As mentioned already, $B_{0,n}$ is a Fujimura set for $n \leq 3$, and hence $A_{B_{0,n}}$ is line-free for $n \leq 3$.  Applying \eqref{cn3} one obtains the lower bounds&lt;br /&gt;
$$ c_{0,3} \geq 1; c_{1,3} \geq 2; c_{2,3} \geq 6; c_{3,3} \geq 18.$$&lt;br /&gt;
&lt;br /&gt;
For $n&amp;gt;3$, $B_{0,n}$ contains some triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ and so is not a Fujimura set, but one can remove points from this set to recover the Fujimura property.  For instance, for $n \leq 6$, the only triangles in $B_{0,n}$ have side length $r=3$.  One can ``delete&#039;&#039; these triangles by removing one vertex from each; in order to optimise the bound \eqref{cn3} it is preferable to delete vertices near the corners of $\Delta_{3,n}$ rather than near the centre.  These considerations lead to the Fujimura sets&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B_{0,4} &amp;amp;\backslash \{ (0,0,4), (0,4,0), (4,0,0) \}\\&lt;br /&gt;
B_{0,5} &amp;amp;\backslash \{ (0,4,1), (0,5,0), (4,0,1), (5,0,0) \}\\&lt;br /&gt;
B_{0,6} &amp;amp;\backslash \{ (0,1,5), (0,5,1), (1,0,5), (0,1,5), (1,5,0), (5,1,0) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
which by \eqref{cn3} gives the lower bounds&lt;br /&gt;
$$ c_{4,3} \geq 52; c_{5,3} \geq 150; c_{6,3} \geq 450.$$&lt;br /&gt;
Thus we have established all the lower bounds needed for Theorem \ref{dhj-upper}.&lt;br /&gt;
&lt;br /&gt;
One can of course continue this process by hand, for instance the set&lt;br /&gt;
$$ B_{0,7} \backslash \{(0,1,6),(1,0,6),(0,5,2),(5,0,2),(1,5,1),(5,1,1),(1,6,0),(6,1,0) \}$$&lt;br /&gt;
gives the lower bound $c_{7,3} \geq 1302$, which we tentatively conjecture to be the correct bound. &lt;br /&gt;
&lt;br /&gt;
A simplification was found when $n$ is a multiple of $3$.  Observe that for $n=6$, the sets excluded from $B_{0,6}$ are all permutations of $(0,1,5)$.  So the remaining sets are all the permutations of $(1,2,3)$ and $(0,2,4)$.  In the same way, sets for $n=9$, $12$ and $15$ can be described as:&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item $n=9$: $(2,3,4),(1,3,5),(0,4,5)$ and permutations;&lt;br /&gt;
\item $n=12$: $(3,4,5),(2,4,6),(1,5,6),(0,2,10),(0,5,7)$ and permutations;&lt;br /&gt;
\item $n=15$: $(4,5,6),(3,5,7),(2,6,7),(1,3,11),(1,6,8),(0,4,11),(0,7,8)$ and permutations.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
When $n$ is not a multiple of $3$, say $n=3m-1$ or $n=3m-2$, one first finds a solution for $n=3m$.  Then for $n=3m-1$, one restricts the first digit of the $3m$ sequence to equal $1$.  This leaves exactly one-third as many points for $3m-1$ as for $3m$.  For $n=3m-1$, one restricts the first two digits of the $3m$ sequence to be $12$.  This leaves roughly one-ninth as many points for $3m-2$ as for $3m$.&lt;br /&gt;
&lt;br /&gt;
The following is an effective method to find good, though not optimal, solutions for any $n=3m$.  (For $n&amp;lt;21$, ignore any triple with a negative entry.)&lt;br /&gt;
&lt;br /&gt;
Start with thirteen groups of points in the centre, formed from adding one of the following points, or its permutation, to $M := (m,m,m)$, when $n=3m$:&lt;br /&gt;
$$(-7,-3,+10), (-7, 0,+7),(-7,+3,+4),(-6,-4,+10),(-6,-1,+7),(-6,+2,+4)$$&lt;br /&gt;
$$(-5,-1,+6),(-5,+2,+3),(-4,-2,+6),(-4,+1,+3),(-3,+1,+2),(-2,0,+2),(-1,0,+1)$$&lt;br /&gt;
Then include eights string of points, stretching to the edges of the triangle $\Delta_n$;&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item $M+(-8-2x,-6-2x,14+4x)$, $M+(-8-2x,-3-2x,11+4x)$, $M+(-8-2x,x,8+x)$, $M+(-8-2x,3+x,5+x)$ and permutations ($0\le 2x \le M-8$);&lt;br /&gt;
\item $M+(-9-2x,-5-2x,14+4x)$, $M+(-9-2x,-2-2x,11+4x)$, $M+(-9-2x,1+x,8+x)$, $M+(-9-2x,4+x,5+x)$ and permutations ($0\le 2x \le M-9$).&lt;br /&gt;
\end{itemize}&lt;br /&gt;
This solution gives $O(2.7 \sqrt(\log (n)/n)3^n$ points for values of $n$ up to around $1000$.  This is asymptotically smaller than the known optimum of $3^{n-O(\sqrt(\log(n)))}$.  When $n=99$, it gives more than $3^n/3$ points.&lt;br /&gt;
&lt;br /&gt;
The following solution gives more points for $n&amp;gt;1000$, but not for moderate $n$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Define a sequence, of all positive numbers which, in base 3, do not contain a 1. Add 1 to all multiples of 3 in this sequence. This sequence does not contain a length-3 arithmetic progression.  It starts $1,2,7,8,19,20,25,26,55, \ldots$;&lt;br /&gt;
\item List all the $(abc)$ triples that sum to $n$, for which the larger two differ by a number from the sequence;&lt;br /&gt;
\item Exclude the case when the smaller two differ by 1;&lt;br /&gt;
\item Include the case when $(a,b,c)$ is a permutation of $n/3+(-1,0,1)$.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
An integer program was run obtain the maximum lower bound one could establish from \eqref{cn3} (see Appendix \ref{integer-sec}).  The results for $1 \leq n \leq 20$ are displayed in Figure \ref{nlow}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	96338\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	287892\\&lt;br /&gt;
3 &amp;amp;	18 &amp;amp; 13&amp;amp;	854139\\&lt;br /&gt;
4 &amp;amp;	52 &amp;amp; 14&amp;amp;	2537821\\&lt;br /&gt;
5 &amp;amp;	150&amp;amp; 15&amp;amp;	7528835\\&lt;br /&gt;
6 &amp;amp;	450&amp;amp; 16&amp;amp;	22517082\\&lt;br /&gt;
7 &amp;amp;	1302&amp;amp; 17&amp;amp;	66944301\\&lt;br /&gt;
8 &amp;amp;	3780&amp;amp;18&amp;amp;	198629224\\&lt;br /&gt;
9 &amp;amp;	11340&amp;amp;19&amp;amp;	593911730\\&lt;br /&gt;
10&amp;amp;	32864&amp;amp; 20&amp;amp;	1766894722\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at &lt;br /&gt;
\centerline{{\tt http://abel.math.umu.se/~klasm/Data/HJ/}.}&lt;br /&gt;
&lt;br /&gt;
If $B$ maximises the right-hand side of \eqref{cn3}, it is easy to see that $A_B$ is a line-free set which is maximal in the sense that the addition of any further point to $A_B$ will create a combinatorial line.  Thus one might conjecture that the maximal value of the right-hand side \eqref{cn3} is in fact equal to $c_{n,3}$ for all $n$; Theorem \ref{dhj-upper} asserts that this conjecture is true for $n \leq 6$.  &lt;br /&gt;
&lt;br /&gt;
Now we prove Theorem \ref{dhj-lower}.&lt;br /&gt;
&lt;br /&gt;
\begin{proof}[Proof of Theorem \ref {dhj-lower}] &lt;br /&gt;
Let $M$ be the circulant matrix with first row $(1,2,\ldots,k-1)$, second row $(k,1,2,\dots,k-1)$, and so on. Note that $M$ has nonzero determinant by well-known properties of circulant matrices.&lt;br /&gt;
&lt;br /&gt;
Let $S$ be a subset of the interval $[-\sqrt {n}/2, \sqrt {n}/2)$ that contains no nonconstant arithmetic progressions of length k, and let $B\subset\Delta_{n, k}$ be the set &lt;br /&gt;
    \[ B := \{(n-\sum_{i=1}^{k-1} a_i ,a_1,a_2,\dots, a_{k-1}) : &lt;br /&gt;
            (a_1,\dots,a_{k-1})=  \det(M) M^{-1}\vec{s} , \vec{s}\in S^{k-1}\}.\] &lt;br /&gt;
The map $(m,a_1,\dots,a_{k-1}) \mapsto M (a_1,\dots,a_{k-1})$ takes simplices to nonconstant arithmetic progressions in ${\mathbb Z}^{k-1}$, and takes $B$ to $\{det(M) \, \vec{s} \colon \vec{s} \in S^{k-1}\}$, which is a set containing no nonconstant arithmetic progressions. Thus, $B$ is a Fujimora set and so does not contain any combinatorial lines. &lt;br /&gt;
&lt;br /&gt;
If all of $a_1,\ldots,a_k$ are within $C_1\sqrt{n}$ of $n/k$, then $|\Gamma_{\vec{a}}| \geq C k^n/n^{(k-1)/2}$ (where $C$ depends on $C_1$) by the central limit theorem. By our choice of $S$ and applying~\eqref{cn3}, we obtain &lt;br /&gt;
     $$ c_ {n, k}\geq C k^n/n^{(k-1)/2} |S|^{k-1} = C k^n \left( \frac{|S|}{\sqrt{n}} \right)^{k-1}. $$&lt;br /&gt;
One can take $S$ to have cardinality $r_ k (\sqrt {n}) $, which from the results of O&#039;Bryant~\cite {obryant}) satisfies (for all sufficiently large $n$, some $C&amp;gt;0$, and $\ell$ the largest integer satisfying $k&amp;gt; 2^{\ell-1}$) &lt;br /&gt;
     $$ \frac{r_k (\sqrt{n})}{\sqrt{n}} \geq C  (\log n)^{1/(2\ell)}\exp_2 (-\ell 2^{(\ell-1)/2-1/\ell} \sqrt[\ell]{\log_2 n}),$$&lt;br /&gt;
which completes the proof.&lt;br /&gt;
\end {proof}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Coloring.tex&amp;diff=1947</id>
		<title>Coloring.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Coloring.tex&amp;diff=1947"/>
		<updated>2009-07-12T14:07:17Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{The coloring Hales-Jewett problem}\label{coloring-sec}&lt;br /&gt;
The Hales-Jewett theorem states that for every $k$ and every $r$ there exists an $n = HJ(k,r)$ such that if you colour the elements of $[k]{}^n$ with $r$ colours, then there must be a combinatorial line with all its points of the same colour.&lt;br /&gt;
&lt;br /&gt;
This is a consequence of the Density Hales-Jewett theorem, since there must be a set of density at least $r^{-1}$ of elements of $[k]{}^n$ all of whose elements have the same colour. It also follows from the Graham-Rothschild theorem [\cite{}].&lt;br /&gt;
By iterating the Hales-Jewett theorem, one can also show that one of the color classes contains an $m$-dimensional combinatorial subspace, if $n$ is sufficiently large depending on $k$, $r$ and $m$.&lt;br /&gt;
&lt;br /&gt;
A related idea is that of the Van der Waerden number $W(k,r)$ [\cite{waerden}], which is the length of the longest sequence $1,2,\ldots,n$ which can be $r$-coloured without a monochromatic arithmetic progression of length $k$.  These numbers were used in this project to construct $r$-colourings of $[k]{}^m$ without combinatorial lines, and so provide new lower bounds for $HJ(k,r)$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $HJ(k,r) \ge \lfloor (W(k,r)-1)/(k-1)\rfloor$ \end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $m = \lfloor (W(k,r)-1)/(k-1) \rfloor$.  Suppose we have a Van der Warden colouring of $1, 2, \ldots W(k,r)$.  Give each point $(a_1,a_2,\ldots,a_m) \in [k]{}^m$ the colour that corresponds to $1+\sum (a_j-1)$.  The points of a combinatorial line give sums that form an arithmetic progression, and will therefore not be monochromatic.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
A recent table of lower bounds for the Van der Waerden numbers is at this website: [\cite{heule}] [http://www.st.ewi.tudelft.nl/sat/slides/waerden.pdf].&lt;br /&gt;
These numbers were used to produce the following table of lower bounds for colouring Hales-Jewett numbers.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb] \centerline{\begin{tabular}[l|lllll]&lt;br /&gt;
k\r &amp;amp; 2    &amp;amp; 3     &amp;amp; 4     &amp;amp; 5     &amp;amp; 6      \\&lt;br /&gt;
\hline&lt;br /&gt;
3   &amp;amp;      &amp;amp; 13    &amp;amp; 37    &amp;amp; 84    &amp;amp; 103    \\&lt;br /&gt;
4   &amp;amp; 11   &amp;amp; 97    &amp;amp; 349   &amp;amp; 751   &amp;amp; 3259   \\&lt;br /&gt;
5   &amp;amp; 59   &amp;amp; 302   &amp;amp; 2609  &amp;amp; 6011  &amp;amp; 14173  \\&lt;br /&gt;
6   &amp;amp; 226  &amp;amp; 1777  &amp;amp; 18061 &amp;amp; 49391 &amp;amp; 120097 \\&lt;br /&gt;
7   &amp;amp; 617  &amp;amp; 7309  &amp;amp; 64661 &amp;amp;       &amp;amp;        \\&lt;br /&gt;
8   &amp;amp; 1069 &amp;amp; 34057 &amp;amp;       &amp;amp;       &amp;amp;        \\&lt;br /&gt;
9   &amp;amp; 3389 &amp;amp;       &amp;amp;       &amp;amp;       &amp;amp;        &lt;br /&gt;
\end{tabular}}\caption{Lower bounds for colouring Hales-Jewett numbers &lt;br /&gt;
\label{HJcolour}\end{figure}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Polymath.tex&amp;diff=1946</id>
		<title>Polymath.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Polymath.tex&amp;diff=1946"/>
		<updated>2009-07-12T14:06:12Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\documentclass[12pt,a4paper,reqno]{amsart}&lt;br /&gt;
\usepackage{amssymb}&lt;br /&gt;
\usepackage{amscd}&lt;br /&gt;
%\usepackage{psfig}&lt;br /&gt;
\usepackage{graphicx}&lt;br /&gt;
%\usepackage{showkeys}  &lt;br /&gt;
% uncomment this when editing cross-references&lt;br /&gt;
\numberwithin{equation}{section}&lt;br /&gt;
&lt;br /&gt;
\addtolength{\textwidth}{3 truecm}&lt;br /&gt;
\addtolength{\textheight}{1 truecm}&lt;br /&gt;
\setlength{\voffset}{-.6 truecm}&lt;br /&gt;
\setlength{\hoffset}{-1.3 truecm}&lt;br /&gt;
     &lt;br /&gt;
\theoremstyle{plain}&lt;br /&gt;
&lt;br /&gt;
\newtheorem{theorem}{Theorem}[section]&lt;br /&gt;
%\newtheorem{theorem}[theorem]{Theorem}&lt;br /&gt;
\newtheorem{proposition}[theorem]{Proposition}&lt;br /&gt;
\newtheorem{lemma}[theorem]{Lemma}&lt;br /&gt;
\newtheorem{corollary}[theorem]{Corollary}&lt;br /&gt;
\newtheorem{conjecture}[theorem]{Conjecture}&lt;br /&gt;
\newtheorem{principle}[theorem]{Principle}&lt;br /&gt;
\newtheorem{claim}[theorem]{Claim}&lt;br /&gt;
&lt;br /&gt;
\theoremstyle{definition}&lt;br /&gt;
&lt;br /&gt;
%\newtheorem{roughdef}[subsection]{Rough Definition}&lt;br /&gt;
\newtheorem{definition}[theorem]{Definition}&lt;br /&gt;
\newtheorem{remark}[theorem]{Remark}&lt;br /&gt;
\newtheorem{remarks}[theorem]{Remarks}&lt;br /&gt;
\newtheorem{example}[theorem]{Example}&lt;br /&gt;
\newtheorem{examples}[theorem]{Examples}&lt;br /&gt;
%\newtheorem{problem}[subsection]{Problem}&lt;br /&gt;
%\newtheorem{question}[subsection]{Question}&lt;br /&gt;
&lt;br /&gt;
\newcommand\E{\mathbb{E}}&lt;br /&gt;
\newcommand\R{\mathbb{R}}&lt;br /&gt;
\newcommand\Z{\mathbb{Z}}&lt;br /&gt;
\newcommand\N{\mathbb{N}}&lt;br /&gt;
\renewcommand\P{\mathbb{P}}&lt;br /&gt;
&lt;br /&gt;
\parindent 0mm&lt;br /&gt;
\parskip   5mm &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\begin{document}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\title{Density Hales-Jewett and Moser numbers}&lt;br /&gt;
&lt;br /&gt;
\author{D.H.J. Polymath}&lt;br /&gt;
\address{http://michaelnielsen.org/polymath1/index.php}&lt;br /&gt;
\email{???}&lt;br /&gt;
&lt;br /&gt;
\subjclass{???}&lt;br /&gt;
&lt;br /&gt;
\begin{abstract}  &lt;br /&gt;
For any $n \geq 0$ and $k \geq 1$, the density Hales-Jewett number $c_{n,k}$ is defined as the size of the largest subset of the cube $[k]^n$ := $\{1,\ldots,k\}^n$ which contains no combinatorial line; similarly, the Moser number $c&#039;_{n,k}$ is the largest subset of the cube $[k]^n$ which contains no geometric line. A deep theorem of Furstenberg and Katznelson \cite{fk1}, \cite{fk2}, \cite{mcc} shows that $c_{n,k}$ = $o(k^n)$ as $n \to \infty$ (which implies a similar claim for $c&#039;_{n,k}$; this is already non-trivial for $k = 3$. Several new proofs of this result have also been recently established \cite{poly}, \cite{austin}.&lt;br /&gt;
&lt;br /&gt;
Using both human and computer-assisted arguments, we compute several values of $c_{n,k}$ and $c&#039;_{n,k}$ for small $n,k$. For instance the sequence $c_{n,3}$ for $n=0,\ldots,6$ is $1,2,6,18,52,150,450$, while the sequence $c&#039;_{n,3}$ for $n=0,\ldots,6$ is $1,2,6,16,43,124,353$. We also establish some results for higher $k$, showing for instance that an analogue of the LYM inequality (which relates to the $k = 2$ case) does not hold for higher $k$. &lt;br /&gt;
\end{abstract}&lt;br /&gt;
&lt;br /&gt;
\maketitle&lt;br /&gt;
%\today&lt;br /&gt;
&lt;br /&gt;
\setcounter{tocdepth}{1}&lt;br /&gt;
\tableofcontents&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
\include{introduction}&lt;br /&gt;
\include{dhj-lown-lower}&lt;br /&gt;
\include{dhj-lown}&lt;br /&gt;
\include{moser-lower}&lt;br /&gt;
\include{moser}&lt;br /&gt;
\include{fujimura}&lt;br /&gt;
\include{higherk}&lt;br /&gt;
\include{coloring}&lt;br /&gt;
&lt;br /&gt;
\appendix&lt;br /&gt;
&lt;br /&gt;
\include{genetic}&lt;br /&gt;
\include{integer}&lt;br /&gt;
&lt;br /&gt;
\begin{thebibliography}{10}&lt;br /&gt;
&lt;br /&gt;
\bibitem{austin}  T. Austin, \emph{Deducing the density Hales-Jewett theorem from an infinitary removal lemma}, preprint. &lt;br /&gt;
&lt;br /&gt;
\bibitem{behrend}&lt;br /&gt;
F. Behrend, \emph{On the sets of integers which contain no three in arithmetic progression}, Proceedings of the National Academy of Sciences \textbf{23} (1946), 331–-332.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chandra}&lt;br /&gt;
A. Chandra, \emph{On the solution of Moser&#039;s problem in four dimensions}, Canad. Math. Bull. \textbf{16} (1973), 507--511.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chvatal1} V. Chv\&#039;{a}tal, \emph{Remarks on a problem of Moser}, Canadian Math Bulletin, Vol 15, 1972, 19--21.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chvatal2} V. Chv\&#039;{a}tal, \emph{Edmonds polytopes and a hierarchy of combinatorial problems}, Discrete Math. 4 (1973) 305-337.&lt;br /&gt;
&lt;br /&gt;
\bibitem{elkin}&lt;br /&gt;
M. Elkin, \emph{An Improved Construction of Progression-Free Sets}, preprint.&lt;br /&gt;
&lt;br /&gt;
\bibitem{fk1} H. Furstenberg, Y. Katznelson, \emph{A density version of the Hales-Jewett theorem for $k = 3$}, Graph Theory and Combinatorics (Cambridge, 1988). Discrete Math. 75 (1989), no. 1-3, 227–-241.&lt;br /&gt;
&lt;br /&gt;
\bibitem{fk2} H. Furstenberg, Y. Katznelson, \emph{A density version of the Hales-Jewett theorem}, J. Anal. Math. 57 (1991), 64–-119. MR1191743&lt;br /&gt;
&lt;br /&gt;
\bibitem{greenwolf}&lt;br /&gt;
B. Green, J. Wolf, \emph{A note on Elkin&#039;s improvement of Behrend&#039;s construction}, preprint.&lt;br /&gt;
&lt;br /&gt;
\bibitem{heule} Marijn Heule, presentation at {\tt http://www.st.ewi.tudelft.nl/sat/slides/waerden.pdf}&lt;br /&gt;
&lt;br /&gt;
\bibitem{komlos}&lt;br /&gt;
J. Koml\&#039;{o}s, solution to problem P.170 by Leo Moser, Canad. Math.. Bull. vol {\bf (??check)} (1972), 312--313, 1970.&lt;br /&gt;
&lt;br /&gt;
\bibitem{Krisha} K. Krishna, M. Narasimha Murty, &amp;quot;Genetic K-means algorithm,&amp;quot; Systems, Man, and Cybernetics, Part B: Cybernetics, IEEE Transactions on , vol.29, no.3, pp.433-439, Jun 1999&lt;br /&gt;
&lt;br /&gt;
\bibitem{moser} L. Moser, Problem P.170 in Canad. Math. Bull. 13 (1970), 268.   &lt;br /&gt;
&lt;br /&gt;
\bibitem{mcc} R. McCutcheon, \emph{The conclusion of the proof of the density Hales-Jewett theorem for k=3}, unpublished. &lt;br /&gt;
&lt;br /&gt;
\bibitem{obryant}&lt;br /&gt;
K. O&#039;Bryant, \emph{Sets of integers that do not contain long arithmetic progressions}, preprint. &lt;br /&gt;
&lt;br /&gt;
\bibitem{oeis}&lt;br /&gt;
N. J. A. Sloane, Ed. (2008), The On-Line Encyclopedia of Integer Sequences, {\tt www.research.att.com/~njas/sequences/}&lt;br /&gt;
&lt;br /&gt;
\bibitem{potenchin}&lt;br /&gt;
A. Potechin, \emph{Maximal caps in $AG(6, 3)$}, Journal Designs, Codes and Cryptography, Volume 46, Number 3 / March, 2008.&lt;br /&gt;
&lt;br /&gt;
\bibitem{poly} D.H.J. Polymath, ???, preprint.  {\bf need title}&lt;br /&gt;
&lt;br /&gt;
\bibitem{rankin} &lt;br /&gt;
R. A. Rankin, Sets of integers containing not more than a given number of terms in arithmetical progression, Proc. Roy. Soc. Edinburgh Sect. A 65 (1960/1961), 332–344 (1960/61). MR 0142526 (26 \#95) &lt;br /&gt;
&lt;br /&gt;
\bibitem{roth}&lt;br /&gt;
K. Roth, \emph{On certain sets of integers, I}, Journal of the London Mathematical Society \textbf{28} (1953), 104-–109.&lt;br /&gt;
&lt;br /&gt;
\bibitem{Rothlauf} F. Rothlauf, D. E. Goldberg, Representations for Genetic and Evolutionary Algorithms. Physica-Verlag, 2002.&lt;br /&gt;
&lt;br /&gt;
\bibitem{sperner} &lt;br /&gt;
E. Sperner, \emph{Ein Satz \&amp;quot;uber Untermengen einer endlichen Menge}, Mathematische Zeitschrift \textbf{27} (1928), 544-–548.&lt;br /&gt;
&lt;br /&gt;
\bibitem{szem}&lt;br /&gt;
E. Szemer\&#039;edi, \emph{On sets of integers containing no $k$ elements in arithmetic progression}, Acta Arithmetica \textbf{27} (1975), 199-–245.&lt;br /&gt;
&lt;br /&gt;
\bibitem{waerden} {\tt http://en.wikipedia.org/wiki/Van_der_Waerden_number}&lt;br /&gt;
&lt;br /&gt;
\end{thebibliography}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\end{document}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Coloring.tex&amp;diff=1945</id>
		<title>Coloring.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Coloring.tex&amp;diff=1945"/>
		<updated>2009-07-12T14:02:18Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{The coloring Hales-Jewett problem}\label{coloring-sec}&lt;br /&gt;
The Hales-Jewett theorem states that for every $k$ and every $r$ there exists an $n = HJ(k,r)$ such that if you colour the elements of $[k]{}^n$ with $r$ colours, then there must be a combinatorial line with all its points of the same colour.&lt;br /&gt;
&lt;br /&gt;
This is a consequence of the Density Hales-Jewett theorem, since there must be a set of density at least $r^{-1}$ of elements of $[k]{}^n$ all of whose elements have the same colour. It also follows from the Graham-Rothschild theorem [\cite{}].&lt;br /&gt;
By iterating the Hales-Jewett theorem, one can also show that one of the color classes contains an $m$-dimensional combinatorial subspace, if $n$ is sufficiently large depending on $k$, $r$ and $m$.&lt;br /&gt;
&lt;br /&gt;
A related idea is that of the Van der Waerden number $W(k,r)$ [\cite{waerden}], which is the length of the longest sequence $1,2,\ldots,n$ which can be $r$-coloured without a monochromatic arithmetic progression of length $k$.  These numbers were used in this project to construct $r$-colourings of $[k]{}^m$ without combinatorial lines, and so provide new lower bounds for $HJ(k,r)$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $HJ(k,r) \ge \lfloor (W(k,r)-1)/(k-1)\rfloor$ \end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $m = \lfloor (W(k,r)-1)/(k-1) \rfloor$.  Suppose we have a Van der Warden colouring of $1, 2, \ldots W(k,r)$.  Give each point $(a_1,a_2,\ldots,a_m) \in [k]{}^m$ the colour that corresponds to $1+\sum (a_j-1)$.  The points of a combinatorial line give sums that form an arithmetic progression, and will therefore not be monochromatic.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
A recent table of lower bounds for the Van der Waerden numbers is at this website: [http://www.st.ewi.tudelft.nl/sat/slides/waerden.pdf].&lt;br /&gt;
These numbers were used to produce the following table of lower bounds for colouring Hales-Jewett numbers.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb] \centerline{\begin{tabular}[l|lllll]&lt;br /&gt;
k\r &amp;amp; 2    &amp;amp; 3     &amp;amp; 4     &amp;amp; 5     &amp;amp; 6      \\&lt;br /&gt;
\hline&lt;br /&gt;
3   &amp;amp;      &amp;amp; 13    &amp;amp; 37    &amp;amp; 84    &amp;amp; 103    \\&lt;br /&gt;
4   &amp;amp; 11   &amp;amp; 97    &amp;amp; 349   &amp;amp; 751   &amp;amp; 3259   \\&lt;br /&gt;
5   &amp;amp; 59   &amp;amp; 302   &amp;amp; 2609  &amp;amp; 6011  &amp;amp; 14173  \\&lt;br /&gt;
6   &amp;amp; 226  &amp;amp; 1777  &amp;amp; 18061 &amp;amp; 49391 &amp;amp; 120097 \\&lt;br /&gt;
7   &amp;amp; 617  &amp;amp; 7309  &amp;amp; 64661 &amp;amp;       &amp;amp;        \\&lt;br /&gt;
8   &amp;amp; 1069 &amp;amp; 34057 &amp;amp;       &amp;amp;       &amp;amp;        \\&lt;br /&gt;
9   &amp;amp; 3389 &amp;amp;       &amp;amp;       &amp;amp;       &amp;amp;        &lt;br /&gt;
\end{tabular}}\caption{Lower bounds for colouring Hales-Jewett numbers &lt;br /&gt;
\label{HJcolour}\end{figure}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Polymath.tex&amp;diff=1944</id>
		<title>Polymath.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Polymath.tex&amp;diff=1944"/>
		<updated>2009-07-12T14:01:19Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\documentclass[12pt,a4paper,reqno]{amsart}&lt;br /&gt;
\usepackage{amssymb}&lt;br /&gt;
\usepackage{amscd}&lt;br /&gt;
%\usepackage{psfig}&lt;br /&gt;
\usepackage{graphicx}&lt;br /&gt;
%\usepackage{showkeys}  &lt;br /&gt;
% uncomment this when editing cross-references&lt;br /&gt;
\numberwithin{equation}{section}&lt;br /&gt;
&lt;br /&gt;
\addtolength{\textwidth}{3 truecm}&lt;br /&gt;
\addtolength{\textheight}{1 truecm}&lt;br /&gt;
\setlength{\voffset}{-.6 truecm}&lt;br /&gt;
\setlength{\hoffset}{-1.3 truecm}&lt;br /&gt;
     &lt;br /&gt;
\theoremstyle{plain}&lt;br /&gt;
&lt;br /&gt;
\newtheorem{theorem}{Theorem}[section]&lt;br /&gt;
%\newtheorem{theorem}[theorem]{Theorem}&lt;br /&gt;
\newtheorem{proposition}[theorem]{Proposition}&lt;br /&gt;
\newtheorem{lemma}[theorem]{Lemma}&lt;br /&gt;
\newtheorem{corollary}[theorem]{Corollary}&lt;br /&gt;
\newtheorem{conjecture}[theorem]{Conjecture}&lt;br /&gt;
\newtheorem{principle}[theorem]{Principle}&lt;br /&gt;
\newtheorem{claim}[theorem]{Claim}&lt;br /&gt;
&lt;br /&gt;
\theoremstyle{definition}&lt;br /&gt;
&lt;br /&gt;
%\newtheorem{roughdef}[subsection]{Rough Definition}&lt;br /&gt;
\newtheorem{definition}[theorem]{Definition}&lt;br /&gt;
\newtheorem{remark}[theorem]{Remark}&lt;br /&gt;
\newtheorem{remarks}[theorem]{Remarks}&lt;br /&gt;
\newtheorem{example}[theorem]{Example}&lt;br /&gt;
\newtheorem{examples}[theorem]{Examples}&lt;br /&gt;
%\newtheorem{problem}[subsection]{Problem}&lt;br /&gt;
%\newtheorem{question}[subsection]{Question}&lt;br /&gt;
&lt;br /&gt;
\newcommand\E{\mathbb{E}}&lt;br /&gt;
\newcommand\R{\mathbb{R}}&lt;br /&gt;
\newcommand\Z{\mathbb{Z}}&lt;br /&gt;
\newcommand\N{\mathbb{N}}&lt;br /&gt;
\renewcommand\P{\mathbb{P}}&lt;br /&gt;
&lt;br /&gt;
\parindent 0mm&lt;br /&gt;
\parskip   5mm &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\begin{document}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\title{Density Hales-Jewett and Moser numbers}&lt;br /&gt;
&lt;br /&gt;
\author{D.H.J. Polymath}&lt;br /&gt;
\address{http://michaelnielsen.org/polymath1/index.php}&lt;br /&gt;
\email{???}&lt;br /&gt;
&lt;br /&gt;
\subjclass{???}&lt;br /&gt;
&lt;br /&gt;
\begin{abstract}  &lt;br /&gt;
For any $n \geq 0$ and $k \geq 1$, the density Hales-Jewett number $c_{n,k}$ is defined as the size of the largest subset of the cube $[k]^n$ := $\{1,\ldots,k\}^n$ which contains no combinatorial line; similarly, the Moser number $c&#039;_{n,k}$ is the largest subset of the cube $[k]^n$ which contains no geometric line. A deep theorem of Furstenberg and Katznelson \cite{fk1}, \cite{fk2}, \cite{mcc} shows that $c_{n,k}$ = $o(k^n)$ as $n \to \infty$ (which implies a similar claim for $c&#039;_{n,k}$; this is already non-trivial for $k = 3$. Several new proofs of this result have also been recently established \cite{poly}, \cite{austin}.&lt;br /&gt;
&lt;br /&gt;
Using both human and computer-assisted arguments, we compute several values of $c_{n,k}$ and $c&#039;_{n,k}$ for small $n,k$. For instance the sequence $c_{n,3}$ for $n=0,\ldots,6$ is $1,2,6,18,52,150,450$, while the sequence $c&#039;_{n,3}$ for $n=0,\ldots,6$ is $1,2,6,16,43,124,353$. We also establish some results for higher $k$, showing for instance that an analogue of the LYM inequality (which relates to the $k = 2$ case) does not hold for higher $k$. &lt;br /&gt;
\end{abstract}&lt;br /&gt;
&lt;br /&gt;
\maketitle&lt;br /&gt;
%\today&lt;br /&gt;
&lt;br /&gt;
\setcounter{tocdepth}{1}&lt;br /&gt;
\tableofcontents&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
\include{introduction}&lt;br /&gt;
\include{dhj-lown-lower}&lt;br /&gt;
\include{dhj-lown}&lt;br /&gt;
\include{moser-lower}&lt;br /&gt;
\include{moser}&lt;br /&gt;
\include{fujimura}&lt;br /&gt;
\include{higherk}&lt;br /&gt;
\include{coloring}&lt;br /&gt;
&lt;br /&gt;
\appendix&lt;br /&gt;
&lt;br /&gt;
\include{genetic}&lt;br /&gt;
\include{integer}&lt;br /&gt;
&lt;br /&gt;
\begin{thebibliography}{10}&lt;br /&gt;
&lt;br /&gt;
\bibitem{austin}  T. Austin, \emph{Deducing the density Hales-Jewett theorem from an infinitary removal lemma}, preprint. &lt;br /&gt;
&lt;br /&gt;
\bibitem{behrend}&lt;br /&gt;
F. Behrend, \emph{On the sets of integers which contain no three in arithmetic progression}, Proceedings of the National Academy of Sciences \textbf{23} (1946), 331–-332.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chandra}&lt;br /&gt;
A. Chandra, \emph{On the solution of Moser&#039;s problem in four dimensions}, Canad. Math. Bull. \textbf{16} (1973), 507--511.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chvatal1} V. Chv\&#039;{a}tal, \emph{Remarks on a problem of Moser}, Canadian Math Bulletin, Vol 15, 1972, 19--21.&lt;br /&gt;
&lt;br /&gt;
\bibitem{chvatal2} V. Chv\&#039;{a}tal, \emph{Edmonds polytopes and a hierarchy of combinatorial problems}, Discrete Math. 4 (1973) 305-337.&lt;br /&gt;
&lt;br /&gt;
\bibitem{elkin}&lt;br /&gt;
M. Elkin, \emph{An Improved Construction of Progression-Free Sets}, preprint.&lt;br /&gt;
&lt;br /&gt;
\bibitem{fk1} H. Furstenberg, Y. Katznelson, \emph{A density version of the Hales-Jewett theorem for $k = 3$}, Graph Theory and Combinatorics (Cambridge, 1988). Discrete Math. 75 (1989), no. 1-3, 227–-241.&lt;br /&gt;
&lt;br /&gt;
\bibitem{fk2} H. Furstenberg, Y. Katznelson, \emph{A density version of the Hales-Jewett theorem}, J. Anal. Math. 57 (1991), 64–-119. MR1191743&lt;br /&gt;
&lt;br /&gt;
\bibitem{greenwolf}&lt;br /&gt;
B. Green, J. Wolf, \emph{A note on Elkin&#039;s improvement of Behrend&#039;s construction}, preprint.&lt;br /&gt;
&lt;br /&gt;
\bibitem{komlos}&lt;br /&gt;
J. Koml\&#039;{o}s, solution to problem P.170 by Leo Moser, Canad. Math.. Bull. vol {\bf (??check)} (1972), 312--313, 1970.&lt;br /&gt;
&lt;br /&gt;
\bibitem{Krisha} K. Krishna, M. Narasimha Murty, &amp;quot;Genetic K-means algorithm,&amp;quot; Systems, Man, and Cybernetics, Part B: Cybernetics, IEEE Transactions on , vol.29, no.3, pp.433-439, Jun 1999&lt;br /&gt;
&lt;br /&gt;
\bibitem{moser} L. Moser, Problem P.170 in Canad. Math. Bull. 13 (1970), 268.   &lt;br /&gt;
&lt;br /&gt;
\bibitem{mcc} R. McCutcheon, \emph{The conclusion of the proof of the density Hales-Jewett theorem for k=3}, unpublished. &lt;br /&gt;
&lt;br /&gt;
\bibitem{obryant}&lt;br /&gt;
K. O&#039;Bryant, \emph{Sets of integers that do not contain long arithmetic progressions}, preprint. &lt;br /&gt;
&lt;br /&gt;
\bibitem{oeis}&lt;br /&gt;
N. J. A. Sloane, Ed. (2008), The On-Line Encyclopedia of Integer Sequences, {\tt www.research.att.com/~njas/sequences/}&lt;br /&gt;
&lt;br /&gt;
\bibitem{potenchin}&lt;br /&gt;
A. Potechin, \emph{Maximal caps in $AG(6, 3)$}, Journal Designs, Codes and Cryptography, Volume 46, Number 3 / March, 2008.&lt;br /&gt;
&lt;br /&gt;
\bibitem{poly} D.H.J. Polymath, ???, preprint.  {\bf need title}&lt;br /&gt;
&lt;br /&gt;
\bibitem{rankin} &lt;br /&gt;
R. A. Rankin, Sets of integers containing not more than a given number of terms in arithmetical progression, Proc. Roy. Soc. Edinburgh Sect. A 65 (1960/1961), 332–344 (1960/61). MR 0142526 (26 \#95) &lt;br /&gt;
&lt;br /&gt;
\bibitem{roth}&lt;br /&gt;
K. Roth, \emph{On certain sets of integers, I}, Journal of the London Mathematical Society \textbf{28} (1953), 104-–109.&lt;br /&gt;
&lt;br /&gt;
\bibitem{Rothlauf} F. Rothlauf, D. E. Goldberg, Representations for Genetic and Evolutionary Algorithms. Physica-Verlag, 2002.&lt;br /&gt;
&lt;br /&gt;
\bibitem{sperner} &lt;br /&gt;
E. Sperner, \emph{Ein Satz \&amp;quot;uber Untermengen einer endlichen Menge}, Mathematische Zeitschrift \textbf{27} (1928), 544-–548.&lt;br /&gt;
&lt;br /&gt;
\bibitem{szem}&lt;br /&gt;
E. Szemer\&#039;edi, \emph{On sets of integers containing no $k$ elements in arithmetic progression}, Acta Arithmetica \textbf{27} (1975), 199-–245.&lt;br /&gt;
&lt;br /&gt;
\bibitem{waerden} {\tt http://en.wikipedia.org/wiki/Van_der_Waerden_number}&lt;br /&gt;
&lt;br /&gt;
\end{thebibliography}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\end{document}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Outline_of_second_paper&amp;diff=1943</id>
		<title>Outline of second paper</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Outline_of_second_paper&amp;diff=1943"/>
		<updated>2009-07-12T07:53:39Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: /* Abstract */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is a proposed outline of the second paper, which will focus on the new bounds on DHJ(3) and Moser numbers, and related quantities.&lt;br /&gt;
&lt;br /&gt;
== Metadata ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Author&#039;&#039;&#039;: D.H.J. Polymath&lt;br /&gt;
* &#039;&#039;&#039;Address&#039;&#039;&#039;: http://michaelnielsen.org/polymath1/index.php  (Do we need a more stable address?)&lt;br /&gt;
* &#039;&#039;&#039;Email&#039;&#039;&#039;: ???&lt;br /&gt;
* &#039;&#039;&#039;Title&#039;&#039;&#039;: Density Hales-Jewett and Moser numbers &lt;br /&gt;
* &#039;&#039;&#039;AMS Subject classification&#039;&#039;&#039;: ???&lt;br /&gt;
&lt;br /&gt;
== Abstract ==&lt;br /&gt;
&lt;br /&gt;
(A draft proposal - please edit)&lt;br /&gt;
&lt;br /&gt;
For any &amp;lt;math&amp;gt;n \geq 0&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;k \geq 1&amp;lt;/math&amp;gt;, the density Hales-Jewett number &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; is defined as the size of the largest subset of the cube &amp;lt;math&amp;gt;[k]^n := \{1,\ldots,k\}^n&amp;lt;/math&amp;gt; which contains no combinatorial line; similarly, the Moser number &amp;lt;math&amp;gt;c&#039;_{n,k}&amp;lt;/math&amp;gt; is the largest subset of the cube &amp;lt;math&amp;gt;[k]^n&amp;lt;/math&amp;gt; which contains no geometric line.  A deep theorem of Furstenberg and Katznelson [cite] shows that &amp;lt;math&amp;gt;c_{n,k} = o(k^n)&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;n \to \infty&amp;lt;/math&amp;gt; (which implies a similar claim for &amp;lt;math&amp;gt;c&#039;_{n,k}&amp;lt;/math&amp;gt;; this is already non-trivial for &amp;lt;math&amp;gt;k=3&amp;lt;/math&amp;gt;.  Several new proofs of this result have also been recently established [cite Polymath], [cite Austin].&lt;br /&gt;
&lt;br /&gt;
Using both human and computer-assisted arguments, we compute several values of &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&#039;_{n,k}&amp;lt;/math&amp;gt; for small &amp;lt;math&amp;gt;n,k&amp;lt;/math&amp;gt;.  For instance the sequence &amp;lt;math&amp;gt;c_{n,3}&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;n=0,\ldots,6&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;1,2,6,18,52,150,450&amp;lt;/math&amp;gt;, while the sequence &amp;lt;math&amp;gt;c&#039;_{n,3}&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;n=0,\ldots,5&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;1,2,6,16,43,124,353&amp;lt;/math&amp;gt;.  We also establish some results for higher &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, showing for instance that an analogue of the LYM inequality (which relates to the &amp;lt;math&amp;gt;k=2&amp;lt;/math&amp;gt; case) does not hold for higher &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Sections ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
Basic definitions.  Definitions and notational conventions include&lt;br /&gt;
&lt;br /&gt;
* [k] = {1, 2, ..., k}&lt;br /&gt;
* Subsets of [k]^n are called A&lt;br /&gt;
* definition of combinatorial line, geometric line&lt;br /&gt;
* Hales-Jewett numbers, Moser numbers&lt;br /&gt;
&lt;br /&gt;
History of and motivation for the problem:&lt;br /&gt;
&lt;br /&gt;
* Sperner&#039;s theorem&lt;br /&gt;
* Density Hales-Jewett theorem, including new proofs&lt;br /&gt;
* Review literature on Moser problem&lt;br /&gt;
&lt;br /&gt;
New results&lt;br /&gt;
&lt;br /&gt;
* Computation of several values of &amp;lt;math&amp;gt;c_{n,3}&amp;lt;/math&amp;gt;&lt;br /&gt;
* Computation of several values of &amp;lt;math&amp;gt;c&#039;_{n,3}&amp;lt;/math&amp;gt;&lt;br /&gt;
* Asymptotic lower bounds for &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt;&lt;br /&gt;
* Genetic algorithm lower bounds&lt;br /&gt;
* Some bounds for &amp;lt;math&amp;gt;c_{n,k}&amp;lt;/math&amp;gt; for low n and large k&lt;br /&gt;
* Connection between Moser(2k) and DHJ(k)&lt;br /&gt;
* Hyper-optimistic conjecture, and its failure&lt;br /&gt;
* New bounds for colouring Hales-Jewett numbers&lt;br /&gt;
&lt;br /&gt;
=== Lower bounds for density Hales-Jewett ===&lt;br /&gt;
&lt;br /&gt;
Fujimura implies DHJ lower bounds; some selected numerics (e.g. lower bounds up to 10 dimensions, plus a few dimensions afterwards).&lt;br /&gt;
&lt;br /&gt;
The precise asymptotic bound of &amp;lt;math&amp;gt;c_{n,k} &amp;gt; C k^{n - \alpha(k)\sqrt[\ell]{\log n}+\beta(k) \log \log n}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Discussion of genetic algorithm&lt;br /&gt;
&lt;br /&gt;
=== Low-dimensional density Hales-Jewett numbers ===&lt;br /&gt;
&lt;br /&gt;
==== Very small n ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n=0,1,2&amp;lt;/math&amp;gt; are trivial.  But the six-point examples will get mentioned a lot.&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;n=3&amp;lt;/math&amp;gt;, one needs to classify the 17-point and 18-point examples.&lt;br /&gt;
&lt;br /&gt;
==== n=4 ====&lt;br /&gt;
&lt;br /&gt;
One needs to classify the 50-point, 51-point, and 52-point examples.&lt;br /&gt;
&lt;br /&gt;
==== n=5 ====&lt;br /&gt;
&lt;br /&gt;
This is the big section, showing there are no 151-point examples.&lt;br /&gt;
&lt;br /&gt;
==== n=6 ====&lt;br /&gt;
&lt;br /&gt;
Easy corollary of n=5 theory&lt;br /&gt;
&lt;br /&gt;
=== Higher k DHJ numbers ===&lt;br /&gt;
&lt;br /&gt;
Exact computations of &amp;lt;math&amp;gt;c_{2,k}, c_{3,k}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Connection between Moser&amp;lt;math&amp;gt;(n,2k)&amp;lt;/math&amp;gt; and DHJ&amp;lt;math&amp;gt;(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Numerics&lt;br /&gt;
&lt;br /&gt;
Failure of hyper-optimistic conjecture&lt;br /&gt;
&lt;br /&gt;
=== Lower bounds for Moser ===&lt;br /&gt;
&lt;br /&gt;
Using Gamma sets to get lower bounds&lt;br /&gt;
&lt;br /&gt;
Adding extra points from degenerate triangles&lt;br /&gt;
&lt;br /&gt;
Higher k; Implications between Moser and DHJ&lt;br /&gt;
&lt;br /&gt;
=== Moser in low dimensions ===&lt;br /&gt;
&lt;br /&gt;
There is some general slicing lemma that needs to be proved here that allows inequalities for low-dim Moser to imply inequalities for higher dim.&lt;br /&gt;
&lt;br /&gt;
For n=0,1,2 the theory is trivial.&lt;br /&gt;
&lt;br /&gt;
For n=3 we need the classification of Pareto optimal configurations etc.  So far this is only done by computer brute force search; we may have to find a human version.&lt;br /&gt;
&lt;br /&gt;
n=4 theory: include both computer results and human results&lt;br /&gt;
&lt;br /&gt;
n=5: we have a proof using the n=4 computer data; we should keep looking for a purely human proof.&lt;br /&gt;
&lt;br /&gt;
n=6: we can give the partial results we have.&lt;br /&gt;
&lt;br /&gt;
=== Fujimura&#039;s problem ===&lt;br /&gt;
&lt;br /&gt;
=== Coloring DHJ ===&lt;br /&gt;
&lt;br /&gt;
== Files ==&lt;br /&gt;
&lt;br /&gt;
* [[polymath.tex]]&lt;br /&gt;
* [[introduction.tex]]&lt;br /&gt;
* [[dhj-lown.tex]]&lt;br /&gt;
* [[dhj-lown-lower.tex]]&lt;br /&gt;
* [[moser.tex]]&lt;br /&gt;
* [[moser-lower.tex]]&lt;br /&gt;
* [[fujimura.tex]]&lt;br /&gt;
* [[higherk.tex]]&lt;br /&gt;
* [[genetic.tex]]&lt;br /&gt;
* [[integer.tex]]&lt;br /&gt;
* [[coloring.tex]]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/alllinesin3n.pdf A figure depicting combinatorial lines]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/allgeomlinesin3n.pdf A figure depicting geometric lines]&lt;br /&gt;
* [http://thomas1111.files.wordpress.com/2009/06/moser353new.png A figure depicting a 353-point 6D Moser set]&lt;br /&gt;
&lt;br /&gt;
The above are the master copies of the LaTeX files.  Below are various compiled versions of the source:&lt;br /&gt;
&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/05/polymath.pdf May 24 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/05/polymath1.pdf May 25 version]&lt;br /&gt;
* [http://terrytao.files.wordpress.com/2009/05/polymath2.pdf May 27 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/05/polymath3.pdf Jun 1 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/06/polymath.pdf Jun 3 version]&lt;br /&gt;
* [http://terrytao.files.wordpress.com/2009/06/polymath2.pdf Jun 18 version]&lt;br /&gt;
* [http://terrytao.wordpress.com/files/2009/07/polymath.pdf Jul 9 version]&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Higherk.tex&amp;diff=1934</id>
		<title>Higherk.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Higherk.tex&amp;diff=1934"/>
		<updated>2009-07-11T04:30:26Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Higher-k DHJ numbers}\label{higherk-sec}&lt;br /&gt;
&lt;br /&gt;
For any $n$, $k$ let $c_{n,k}$ denote the cardinality of the largest subset of $[k]{}^n$ that does not contain a combinatorial line. When $k=3$, the quantity $c_{n,k} = c_n$ is studied in Sections \ref{dhj-lower-sec}, \ref{dhj-upper-sec}. The density Hales-Jewett theorem asserts that for any fixed $k$, $\lim_{n\rightarrow\infty} c_n/k^n = 0$ .&lt;br /&gt;
We trivially have $c_{n,1} = 0$ for $n &amp;gt; 0$, and Sperner&#039;s theorem tells us that &lt;br /&gt;
$$c_{n,2} = \binom{n}{\lfloor n/2 \rfloor}$$.&lt;br /&gt;
Now we look at the opposite regime, in which $n$ is small and $k$ is large. We easily have $c_{1,k} = k-1$ together with the trivial bound $c_{n+1,k} \leq kc_{n,k}$.  This implies that &lt;br /&gt;
$$c_{n,k}\leq (k-1)k^{n-1}$$&lt;br /&gt;
for any $n\geq 1$. Let us call a pair $(n,k)$ with $n &amp;gt; 0$ \emph{saturated} if $c_{n,k}=(k-1)k^{n-1}$, thus there exists a line-free set with exactly one point omitted from every row and column.&lt;br /&gt;
The question naturally arises, Which pairs $(n,k)$ are saturated?  From the above discussion we see that $(1,k)$ is saturated for all $k \geq 1$, and $(n,1)$ is (rather trivially) saturated for all $n$.  Sperner&#039;s theorem tells us that $(n,2)$ is saturated only for $n= 1, 2$. Note that if $(n,k)$ is unsaturated then $(n&#039;,k)$ will be unsaturated for all $n&#039; &amp;gt; n$.&lt;br /&gt;
A computer search has found the following $c_{n,k}$ values for different values of dimension $n$ and edgelength $k$. Several of these values reach the upper bound of  $(k - 1)k^{n-1}$.&lt;br /&gt;
&lt;br /&gt;
\begin{tabular}{|l|cccccc} &lt;br /&gt;
$n\backslash k$ &amp;amp; 2&amp;amp; 3 &amp;amp; 4 &amp;amp;  5 &amp;amp; 6 &amp;amp; 7 \\&lt;br /&gt;
\hline&lt;br /&gt;
2 &amp;amp; 2 &amp;amp; 6 &amp;amp; 12 &amp;amp; 20 &amp;amp; 30 &amp;amp; 42\\&lt;br /&gt;
3 &amp;amp; 3 &amp;amp; 18 &amp;amp; 48 &amp;amp; 100 &amp;amp; 180 &amp;amp; 294\\&lt;br /&gt;
4 &amp;amp; 6 &amp;amp; 52 &amp;amp; 183 &amp;amp; 500 &amp;amp; 1051-1079 &amp;amp; 2058\\&lt;br /&gt;
5 &amp;amp; 10 &amp;amp; 150 &amp;amp; 712-732 &amp;amp; 2500 &amp;amp; 6325-6480 &amp;amp; 14406&lt;br /&gt;
\end{tabular}&lt;br /&gt;
&lt;br /&gt;
$(2,k)$ is saturated when $k$ is at least $1$.  In dimension two the maximal set size is $k(k-1)$. This can be done by removing the diagonal values $11, 22, 33, \ldots, kk$. Since they are in disjoint lines this removal is minimal.&lt;br /&gt;
The $k$ missing points are one per line and one per column. So their $y$-coordinates are a shuffle of their $x$-coordinates. There are $k!$ rearrangements of the numbers $1$ to $k$. The $k$ points include a point on the diagonal, so this shuffle is not a derangement. There are $k!/e$ derangements of the numbers $1$ to $k$, so $k!(1-1/e)$ optimal solutions.  This number of optimal solutions is sequence A002467 from the Online Encyclopedia of Integer Sequences. &lt;br /&gt;
 &lt;br /&gt;
$(3,k)$ is saturated when $k&amp;gt;2$.  Let $S$ be a latin square of side $k$ on the symbols $1…k$, with colour $i$ in position $(i,i)$ (This is not possible for $k=2$)&lt;br /&gt;
Let axis one in $S$ correspond to coordinate $1$ in $[k]{}^3$, axis two to coordinate $2$ and interpret the colour in position $(i,j)$ as the third coordinate. Delete the points so defined.&lt;br /&gt;
The line with three wild cards has now been removed. A line with two wildcards will be missing the point corresponding to the diagonal in $S$. A line with a single wildcard will be missing a point corresponding to an off diagonal point in $S$.&lt;br /&gt;
&lt;br /&gt;
\subsection{$(n,k)$ is saturated when all prime divisors of $k$ are at least $n$}&lt;br /&gt;
First consider the case when $k$ is prime and at least $n$: Delete those points whose coordinates add up to a multiple of $k$. Every combinatorial line has one point deleted, except for the major diagonal of $n=k$, which has all points deleted.&lt;br /&gt;
Now consider for instance the case $(n,k) = (4,35)$. Select one value modulo $35$ and eliminate it. Combinatorial lines with one, two, three or four moving coordinates will realize all values modulo $35$ as one, two, three, or four are units modulo $35$, thus $(4,35)$ is saturated.&lt;br /&gt;
The same argument tells us that $(n,k)$ is saturated when all prime divisors of $k$ are at least $n$.&lt;br /&gt;
On the other hand, computer data shows that $(4,4)$ and $(4,6)$ are not saturated.&lt;br /&gt;
&lt;br /&gt;
\subsection{Failure of Hyper-optimistic conjecture}&lt;br /&gt;
Let $\overline{c}^\mu_{n,4}$ be the largest subset of the tetrahedral grid:&lt;br /&gt;
$$\{(a,b,c,d)\in\mathbb{Z}^4_+ : a+b+c+d = n\}$$&lt;br /&gt;
which contains no tetrahedrons $(a + r,b,c,d)$,$(a,b + r,c,d)$,$(a,b,c + r,d)$,$(a,b,c,d + r)$ with $r &amp;gt; 0$; call such sets tetrahedron-free.&lt;br /&gt;
The first few values, for $n$ from 0 to 7, were found by an integer programming routine, and are given in Figure \ref{Fujimura4}.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]\centerline{&lt;br /&gt;
\begin{tabular}[lllllllll]&lt;br /&gt;
                       n &amp;amp; 0 &amp;amp; 1 &amp;amp; 2 &amp;amp; 3  &amp;amp; 4  &amp;amp; 5  &amp;amp; 6  &amp;amp; 7 \\&lt;br /&gt;
$\overline{c}^\mu_{n,4}$ &amp;amp; 1 &amp;amp; 3 &amp;amp; 7 &amp;amp; 14 &amp;amp; 24 &amp;amp; 37 &amp;amp; 55 &amp;amp; 78&lt;br /&gt;
\end{tabular}&lt;br /&gt;
\label{Fujimura4}\caption{Fujimura numbers $\overline{c}^\mu_{n,4}$}}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
Recall the &#039;hyper-optimistic&#039; Conjecture \ref{hoc} that the weighted sum of the points in any combinatorial line-free set is at most $\overline{c}^\mu_{n,4}$.  The following example with $n=2$ and $k=4$ has a weighted sum of 7.5, and therefore disproves the conjecture for these values of $n$ and $k$.  (Note that the case $k=3$, which is at the centre of most of Polymath&#039;s interest, is still open.)&lt;br /&gt;
&lt;br /&gt;
$$\{(1, 1), (1, 2), (1, 3), (2, 1), (2, 3), (2, 4), (3, 2), (3, 3), (3,&lt;br /&gt;
4), (4, 1), (4, 2), (4, 4)\}$$&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Coloring.tex&amp;diff=1933</id>
		<title>Coloring.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Coloring.tex&amp;diff=1933"/>
		<updated>2009-07-11T04:00:24Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{The coloring Hales-Jewett problem}\label{coloring-sec}&lt;br /&gt;
The Hales-Jewett theorem states that for every $k$ and every $r$ there exists an $n = HJ(k,r)$ such that if you colour the elements of $[k]{}^n$ with $r$ colours, then there must be a combinatorial line with all its points of the same colour.&lt;br /&gt;
&lt;br /&gt;
This is a consequence of the Density Hales-Jewett theorem, since there must be a set of density at least $r^{-1}$ of elements of $[k]{}^n$ all of whose elements have the same colour. It also follows from the Graham-Rothschild theorem [\cite{}].&lt;br /&gt;
By iterating the Hales-Jewett theorem, one can also show that one of the color classes contains an $m$-dimensional combinatorial subspace, if $n$ is sufficiently large depending on $k$, $r$ and $m$.&lt;br /&gt;
&lt;br /&gt;
A related idea is that of the Van der Waerden number $W(k,r)$ [\cite{}], which is the length of the longest sequence $1,2,\ldots,n$ which can be $r$-coloured without a monochromatic arithmetic progression of length $k$.  These numbers were used in this project to construct $r$-colourings of $[k]{}^m$ without combinatorial lines, and so provide new lower bounds for $HJ(k,r)$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $HJ(k,r) \ge \lfloor (W(k,r)-1)/(k-1)\rfloor$ \end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $m = \lfloor (W(k,r)-1)/(k-1) \rfloor$.  Suppose we have a Van der Warden colouring of $1, 2, \ldots W(k,r)$.  Give each point $(a_1,a_2,\ldots,a_m) \in [k]{}^m$ the colour that corresponds to $1+\sum (a_j-1)$.  The points of a combinatorial line give sums that form an arithmetic progression, and will therefore not be monochromatic.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
A recent table of lower bounds for the Van der Waerden numbers is at this website: [http://www.st.ewi.tudelft.nl/sat/slides/waerden.pdf].&lt;br /&gt;
These numbers were used to produce the following table of lower bounds for colouring Hales-Jewett numbers.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb] \centerline{\begin{tabular}[l|lllll]&lt;br /&gt;
k\r &amp;amp; 2    &amp;amp; 3     &amp;amp; 4     &amp;amp; 5     &amp;amp; 6      \\&lt;br /&gt;
\hline&lt;br /&gt;
3   &amp;amp;      &amp;amp; 13    &amp;amp; 37    &amp;amp; 84    &amp;amp; 103    \\&lt;br /&gt;
4   &amp;amp; 11   &amp;amp; 97    &amp;amp; 349   &amp;amp; 751   &amp;amp; 3259   \\&lt;br /&gt;
5   &amp;amp; 59   &amp;amp; 302   &amp;amp; 2609  &amp;amp; 6011  &amp;amp; 14173  \\&lt;br /&gt;
6   &amp;amp; 226  &amp;amp; 1777  &amp;amp; 18061 &amp;amp; 49391 &amp;amp; 120097 \\&lt;br /&gt;
7   &amp;amp; 617  &amp;amp; 7309  &amp;amp; 64661 &amp;amp;       &amp;amp;        \\&lt;br /&gt;
8   &amp;amp; 1069 &amp;amp; 34057 &amp;amp;       &amp;amp;       &amp;amp;        \\&lt;br /&gt;
9   &amp;amp; 3389 &amp;amp;       &amp;amp;       &amp;amp;       &amp;amp;        &lt;br /&gt;
\end{tabular}}\caption{Lower bounds for colouring Hales-Jewett numbers &lt;br /&gt;
\label{HJcolour}\end{figure}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1932</id>
		<title>Moser-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1932"/>
		<updated>2009-07-10T17:57:41Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the Moser problem}\label{moser-lower-sec}&lt;br /&gt;
&lt;br /&gt;
Just as for the DHJ problem, we found that Gamma sets $\Gamma_{a,b,c}$ were useful in providing large lower bounds for the Moser problem.  This is despite the fact that the symmetries of the cube do not respect Gamma sets.&lt;br /&gt;
&lt;br /&gt;
Observe that if $B \subset \Delta_n$, then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a Moser set as long as $B$ does not contain any ``isosceles triangles&#039;&#039; $(a+r,b,c+s), (a+s,b,c+r), (a,b+r+s,c)$ for any $r,s \geq 0$ not both zero; in particular, $B$ cannot contain any ``vertical line segments&#039;&#039; $(a+r,b,c+r), (a,b+2r,c)$.  An example of such a set is provided by selecting $0 \leq i \leq n-3$ and letting $B$ consist of the triples $(a, n-i, i-a)$ when $a \neq 3 \mod 3$, $(a,n-i-1,i+1-a)$ when $a \neq 1 \mod 3$, $(a,n-i-2,i+2-a)$ when $a=0 \mod 3$, and $(a,n-i-3,i+3-a)$ when $a=2 \mod 3$.  Asymptotically, this set includes about two thirds of the spheres $S_{n,i}$, $S_{n,i+1}$ and one third of the spheres $S_{n,i+2}, S_{n,i+3}$ and (setting $i$ close to $n/3$) gives a lower bound \eqref{cpn3} with $C = 2 \times \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
&lt;br /&gt;
An integer program was run to obtain the optimal lower bounds achievable by the $A_B$ construction (using \eqref{cn3}, of course).  The results for&lt;br /&gt;
$1 \leq n \leq 20$ are displayed in Figure \ref{nlow-moser}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	71766\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	212423\\&lt;br /&gt;
3 &amp;amp;	16 &amp;amp; 13&amp;amp;	614875\\&lt;br /&gt;
4 &amp;amp;	43 &amp;amp; 14&amp;amp;	1794212\\&lt;br /&gt;
5 &amp;amp;	122&amp;amp; 15&amp;amp;	5321796\\&lt;br /&gt;
6 &amp;amp;	353&amp;amp; 16&amp;amp;	15455256\\&lt;br /&gt;
7 &amp;amp;	1017&amp;amp; 17&amp;amp;	45345052\\&lt;br /&gt;
8 &amp;amp;	2902&amp;amp;18&amp;amp;	134438520\\&lt;br /&gt;
9 &amp;amp;	8622&amp;amp;19&amp;amp;	391796798\\&lt;br /&gt;
10&amp;amp;	24786&amp;amp; 20&amp;amp;	1153402148\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c&#039;_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow-moser}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at &lt;br /&gt;
\centerline{{\tt http://abel.math.umu.se/~klasm/Data/HJ/}.}&lt;br /&gt;
&lt;br /&gt;
Note that the lower bound $c&#039;_{6,3} \geq 353$ was first located by a genetic algorithm: see Appendix \ref{genetic-alg}.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{moser353new.png}}&lt;br /&gt;
\caption{One of the examples of $353$-point sets in $[3]^6$ (elements of the set being indicated by white squares).}&lt;br /&gt;
\label{moser353-fig}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
However, we have been unable to locate a lower bound which is asymptotically better than \eqref{cpn3}.  Indeed, any method based purely on the $A_B$ construction cannot do asymptotically better than the previous constructions:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  Let $B \subset \Delta_n$ be such that $A_B$ is a Moser set.  Then $|A_B| \leq (2 \sqrt{\frac{9}{4\pi}} + o(1)) \frac{3^n}{\sqrt{n}}$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  By the previous discussion, $B$ cannot contain any pair of the form $(a,b+2r,c), (a+r,b,c+r)$ with $r&amp;gt;0$.  In other words, for any $-n \leq h \leq n$, $B$ can contain at most one triple $(a,b,c)$ with $c-a=h$.  From this and \eqref{cn3}, we see that&lt;br /&gt;
$$ |A_B| \leq \sum_{h=-n}^n \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!}.$$&lt;br /&gt;
From the Chernoff inequality (or the Stirling formula computation below) we see that $\frac{n!}{a! b! c!} \leq \frac{1}{n^{10}} 3^n$ unless $a,b,c = n/3 + O( n^{1/2} \log^{1/2} n )$, so we may restrict to this regime, which also forces $h = O( n^{1/2}\log^{1/2} n)$.  If we write $a = n/3 + \alpha$, $b = n/3 + \beta$, $c = n/3+\gamma$ and apply Stirling&#039;s formula $n! = (1+o(1)) \sqrt{2\pi n} n^n e^{-n}$, we obtain &lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - (\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) - (\frac{n}{3}+\beta) \log (1 + \frac{3\beta}{n} ) - (\frac{n}{3}+\gamma) \log (1 + \frac{3\gamma}{n} ) ).$$&lt;br /&gt;
From Taylor expansion one has&lt;br /&gt;
$$ -(\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) = -\alpha - \frac{3}{2} \frac{\alpha^2}{n} + o(1)$$&lt;br /&gt;
and similarly for $\beta,\gamma$; since $\alpha+\beta+\gamma=0$, we conclude that&lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{2n} (\alpha^2+\beta^2+\gamma^2) ).$$&lt;br /&gt;
If $c-a=h$, then $\alpha^2+\beta^2+\gamma^2 = \frac{3\beta^2}{2} + \frac{h^2}{2}$.  Thus we see that&lt;br /&gt;
$$ \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!} \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{4n} h^2 ).$$&lt;br /&gt;
Using the integral test, we thus have&lt;br /&gt;
$$ |A_B| \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n  \int_\R \exp( - \frac{3}{4n} x^2 )\ dx.$$&lt;br /&gt;
Since $\int_\R \exp( - \frac{3}{4n} x^2 )\ dx = \sqrt{\frac{4\pi n}{3}}$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually it is possible to improve upon these bounds by a slight amount.  Observe that if $B$ is a maximiser for the right-hand side of \eqref{cn3} (subject to $B$ not containing isosceles triangles), then any triple $(a,b,c)$ not in $B$ must be the vertex of a (possibly degenerate) isosceles triangle with the other vertices in $B$.  If this triangle is non-degenerate, or if $(a,b,c)$ is the upper vertex of a degenerate isosceles triangle, then no point from $\Gamma_{a,b,c}$ can be added to $A_B$ without creating a geometric line. However, if $(a,b,c) = (a&#039;+r,b&#039;,c&#039;+r)$ is only the lower vertex of a degenerate isosceles triangle $(a&#039;+r,b&#039;,c&#039;+r), (a&#039;,b&#039;+2r,c&#039;)$, then one can add any subset of $\Gamma_{a,b,c}$ to $A_B$ and still have a Moser set as long as no pair of elements in that subset is separated by Hamming distance $2r$.  For instance, in the $n=5$ case, we can start with the 122-point set built from &lt;br /&gt;
$$B = \{ (0 0 5),(0 2 3),(1 1 3 ),(1 2 2 ),(2 2 1 ),(3 1 1 ),(3 2 0 ),(5 0 0))\}$$, and add a point each from (1 0 4) and (4 0 1).&lt;br /&gt;
This gives an example of the maximal, 124-point solution.  Again, in the $n=10$ case, the set&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B &amp;amp;= \{(0 0 10),(0 2 8 ),(0 3 7 ),(0 4 6 ),(1 4 5 ),(2 1 7 ),(2 3 5 ), &lt;br /&gt;
(3 2 5 ),(3 3 4 ),(3 4 3 ),(4 4 2 ),(5 1 4 ), \\&lt;br /&gt;
&amp;amp;\quad (5 3 2 ),(6 2 2 ), &lt;br /&gt;
(6 3 1 ),(6 4 0 ),(8 1 1 ),(9 0 1 ),(9 1 0 ) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
generates the lower bound $c&#039;_{10,3} \geq 24786$ given above (and, up to reflection $a \leftrightarrow c$, is the only such set that does so); but by adding the following twelve elements from $\Gamma_{5,0,5}$ one can increase the lower bound slightly to $24798$: $1111133333$, $1111313333$,&lt;br /&gt;
$1113113333$, $1133331113$, $1133331131$, $1133331311$, $3311333111$,&lt;br /&gt;
$3313133111$, $3313313111$, $3331111133$, $3331111313$, $3331111331$&lt;br /&gt;
&lt;br /&gt;
A more general form goes with the $B$ set described at the start of this section.  Include points from $\Gamma_{(a,n-i-4,i+4-a)}$ when $a=1 (\operatorname{mod}\ 3)$, subject to no two points being included if they differ by the interchange of a $1$ and a $3$.  Each of these Gamma sets is the feet of a degenerate isosceles triangle with vertex $\Gamma_{(a-1,n-i-2,a+3-a)}$.  &lt;br /&gt;
&lt;br /&gt;
\begin{lemma} If $A$ is a subset of $\Gamma_{(a,b,c)}$ such that no two points of $A$ differ by the interchange of a $1$ and a $3$, then $|A| \leq |\Gamma_{a,b,c}|/(1+\max(a,c))$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Say that two points of $\Gamma_{a,b,c}$ are neighbours if they differ by the exchange of a $1$ and a $3$.  Each point of $A$ has $ac$ neighbours, none of which are in $A$. Each point of $\Gamma_{(a,b,c)}\backslash A$ has $ac$ neighbours, but only $min(a,c)$ of them may be in $A$. So for each point of $A$ there are on average $ac/\min(a,c) = \max(a,c)$ points not in $A$. So the proportion of points of $\Gamma_{(a,b,c)}$ that are in $A$ is at most one in $1+\max(a,c)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
The proportion of extra points for each of the cells $\Gamma_{(a,n-i-4,i+4-a)}$ is no more than $2/(i+6)$.  Only one cell in three is included from the  $b=n-i-4$ layer, so we expect no more than $\frac{2}{3(i+6)}\binom(n,i+4)2^{i+4}$ new points, all from $S_{n,i+4}$.  One can also find extra points from $S_{n,i+5}$ and higher spheres.&lt;br /&gt;
&lt;br /&gt;
Earlier solutions may also give insight into the problem.  In this section we discuss lower bounds for $c&#039;_{n,3}$. Clearly we have &lt;br /&gt;
$c&#039;_{0,3}=1$ and $c&#039;_{1,3}=2$, so we focus on the case $n \ge 2$.&lt;br /&gt;
The first lower bounds may be due to Koml\&#039;{o}s \cite{komlos}, who observed &lt;br /&gt;
that the sphere $S_{i,n}$ of elements with exactly $n-i$ 2 entries&lt;br /&gt;
(see Section \ref{notation-sec} for definition),&lt;br /&gt;
is a Moser set, so that &lt;br /&gt;
\begin{equation}\label{cin}&lt;br /&gt;
c&#039;_{n,3}\geq \vert S_{i,n}\vert&lt;br /&gt;
\end{equation}&lt;br /&gt;
holds for all $i$. Choosing $i=\lfloor \frac{2n}{3}\rfloor$  and &lt;br /&gt;
applying Stirling&#039;s formula, we see that this lower bound takes the form &lt;br /&gt;
\begin{equation}\label{cpn3}&lt;br /&gt;
c&#039;_{n,3} \geq (C-o(1)) 3^n / \sqrt{n} &lt;br /&gt;
\end{equation} &lt;br /&gt;
for some absolute constant $C&amp;gt;0$; in fact \eqref{cin} gives \eqref{cpn3} with $C := \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
In particular $c&#039;_{3,3} \geq 12, c&#039;_{4,3}\geq 24, c&#039;_{5,3}\geq 80, &lt;br /&gt;
c&#039;_{6,3}\geq 240$.&lt;br /&gt;
&lt;br /&gt;
These values can be improved by studying combinations of several spheres or&lt;br /&gt;
semispheres or applying elementary results from coding theory.&lt;br /&gt;
&lt;br /&gt;
Observe that if $\{w(1),w(2),w(3)\}$ is a geometric line in $[3]^n$, &lt;br /&gt;
then $w(1), w(3)$ both lie in the same sphere $S_{i,n}$, &lt;br /&gt;
and that $w(2)$ lies in a lower &lt;br /&gt;
sphere $S_{i-r,n}$ for some $1 \leq r \leq i \leq n$. Furthermore, &lt;br /&gt;
$w(1)$ and $w(3)$ are separated by Hamming distance $r$.&lt;br /&gt;
&lt;br /&gt;
As a consequence, we see that $S_{i-1,n} \cup S_{i,n}^e$ (or $S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^o$) is a Moser set for any $1 \leq i \leq n$, since any two &lt;br /&gt;
distinct elements $S_{i,n}^e$ are separated by a Hamming distance of at &lt;br /&gt;
least two. &lt;br /&gt;
(Recall Section \ref{notation-sec} for definitions),&lt;br /&gt;
This leads to the lower bound &lt;br /&gt;
\begin{equation}\label{cn3-low}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n}{i-1} &lt;br /&gt;
2^{i-1} + \binom{n}{i} 2^{i-1} = \binom{n+1}{i} 2^{i-1}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
It is not &lt;br /&gt;
hard to see that $\binom{n+1}{i+1} 2^{i} &amp;gt; \binom{n+1}{i} 2^{i-1}$ if &lt;br /&gt;
and only if $3i &amp;lt; 2n+1$, and so this lower bound is maximised when $i = &lt;br /&gt;
\lfloor \frac{2n+1}{3} \rfloor$ for $n \geq 2$, giving the formula &lt;br /&gt;
\eqref{binom}. This leads to the lower bounds $$ c&#039;_{2,3} \geq 6; &lt;br /&gt;
c&#039;_{3,3} \geq 16; c&#039;_{4,3} \geq 40; c&#039;_{5,3} \geq 120; c&#039;_{6,3} \geq &lt;br /&gt;
336$$ which gives the right lower bounds for $n=2,3$, but is slightly &lt;br /&gt;
off for $n=4,5$.  Asymptotically, Stirling&#039;s formula and \eqref{cn3-low} then&lt;br /&gt;
give the lower bound \eqref{cpn3} with $C = \frac{3}{2} \times \sqrt{\frac{9}{4\pi}}$, which is asymptotically $50\%$ better than the bound \eqref{cin}.&lt;br /&gt;
&lt;br /&gt;
The work of Chv\&#039;{a}tal \cite{chvatal1} &lt;br /&gt;
already contained a refinement of this idea&lt;br /&gt;
which we here translate into the usual notation of coding theory:&lt;br /&gt;
Let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
and minimal distance $d$.&lt;br /&gt;
&lt;br /&gt;
Then &lt;br /&gt;
\begin{equation}\label{cnchvatal}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
With the following values for $A(n,d)$:&lt;br /&gt;
{\tiny{&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llllllll}&lt;br /&gt;
A(1,1)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(2,1)=4&amp;amp; A(2,2)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(3,1)=8&amp;amp;A(3,2)=4&amp;amp;A(3,3)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(4,1)=16&amp;amp;A(4,2)=8&amp;amp; A(4,3)=2&amp;amp; A(4,4)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(5,1)=32&amp;amp;A(5,2)=16&amp;amp; A(5,3)=4&amp;amp; A(5,4)=2&amp;amp;A(5,5)=2&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(6,1)=64&amp;amp;A(6,2)=32&amp;amp; A(6,3)=8&amp;amp; A(6,4)=4&amp;amp;A(6,5)=2&amp;amp;A(6,6)=2&amp;amp;&amp;amp;\\&lt;br /&gt;
A(7,1)=128&amp;amp;A(7,2)=64&amp;amp; A(7,3)=16&amp;amp; A(7,4)=8&amp;amp;A(7,5)=2&amp;amp;A(7,6)=2&amp;amp;A(7,7)=2&amp;amp;\\&lt;br /&gt;
A(8,1)=256&amp;amp;A(8,2)=128&amp;amp; A(8,3)=20&amp;amp; A(8,4)=16&amp;amp;A(8,5)=4&amp;amp;A(8,6)=2&lt;br /&gt;
&amp;amp;A(8,7)=2&amp;amp;A(8,8)=2\\&lt;br /&gt;
A(9,1)=512&amp;amp;A(9,2)=256&amp;amp; A(9,3)=40&amp;amp; A(9,4)=20&amp;amp;A(9,5)=6&amp;amp;A(9,6)=4&lt;br /&gt;
&amp;amp;A(9,7)=2&amp;amp;A(9,8)=2\\&lt;br /&gt;
A(10,1)=1024&amp;amp;A(10,2)=512&amp;amp; A(10,3)=72&amp;amp; A(10,4)=40&amp;amp;A(10,5)=12&amp;amp;A(10,6)=6&lt;br /&gt;
&amp;amp;A(10,7)=2&amp;amp;A(10,8)=2\\&lt;br /&gt;
A(11,1)=2048&amp;amp;A(11,2)=1024&amp;amp; A(11,3)=144&amp;amp; A(11,4)=72&amp;amp;A(11,5)=24&amp;amp;A(11,6)=12&lt;br /&gt;
&amp;amp;A(11,7)=2&amp;amp;A(11,8)=2\\&lt;br /&gt;
A(12,1)=4096&amp;amp;A(12,2)=2048&amp;amp; A(12,3)=256&amp;amp; A(12,4)=144&amp;amp;A(12,5)=32&amp;amp;A(12,6)=24&lt;br /&gt;
&amp;amp;A(12,7)=4&amp;amp;A(12,8)=2\\&lt;br /&gt;
A(13,1)=8192&amp;amp;A(13,2)=4096&amp;amp; A(13,3)=512&amp;amp; A(13,4)=256&amp;amp;A(13,5)=64&amp;amp;A(12,6)=32&lt;br /&gt;
&amp;amp;A(13,7)=8&amp;amp;A(13,8)=4\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Generally, $A(n,1)=2^n, A(n,2)=2^{n-1}, A(n-1,2e-1)=A(n,2e), A(n,d)=2$, &lt;br /&gt;
if $d&amp;gt;\frac{2n}{3}$.&lt;br /&gt;
The values were taken or derived from Andries Brower&#039;s table at&lt;br /&gt;
\centerline{\tt http://www.win.tue.nl/$\sim$aeb/codes/binary-1.html}&lt;br /&gt;
\textbf{include to references? or other book with explicit values of $A(n,d)$ }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For  $c&#039;_{n,3}$ we obtain the following lower bounds:&lt;br /&gt;
with $k=2$&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{4,3}&amp;amp;\geq &amp;amp;\binom{4}{0}A(4,3)+\binom{4}{1}A(3,2)+\binom{4}{2}A(2,1)&lt;br /&gt;
=1\cdot 2+4 \cdot 4+6\cdot 4&amp;amp;=42.\\&lt;br /&gt;
c&#039;_{5,3}&amp;amp;\geq &amp;amp;\binom{5}{0}A(5,3)+\binom{5}{1}A(4,2)+\binom{5}{2}A(3,1)&lt;br /&gt;
=1\cdot 4+5 \cdot 8+10\cdot 8&amp;amp;=124.\\&lt;br /&gt;
c&#039;_{6,3}&amp;amp;\geq &amp;amp;\binom{6}{0}A(6,3)+\binom{6}{1}A(5,2)+\binom{6}{2}A(4,1)&lt;br /&gt;
=1\cdot 8+6 \cdot 16+15\cdot 16&amp;amp;=344.&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
With k=3&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{7,3}&amp;amp;\geq&amp;amp; \binom{7}{0}A(7,4)+\binom{7}{1}A(6,3)+\binom{7}{2}A(5,2)&lt;br /&gt;
+ \binom{7}{3}A(4,1)&amp;amp;=960.\\&lt;br /&gt;
c&#039;_{8,3}&amp;amp;\geq &amp;amp;\binom{8}{0}A(8,4)+\binom{8}{1}A(7,3)+\binom{8}{2}A(6,2)&lt;br /&gt;
+ \binom{8}{3}A(5,1)&amp;amp;=2832.\\&lt;br /&gt;
c&#039;_{9,3}&amp;amp;\geq &amp;amp; \binom{9}{0}A(9,4)+\binom{9}{1}A(8,3)+\binom{9}{2}A(7,2)&lt;br /&gt;
+ \binom{9}{3}A(6,1)&amp;amp;=7880.&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With k=4&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{10,3}&amp;amp;\geq &amp;amp;\binom{10}{0}A(10,5)+\binom{10}{1}A(9,4)+\binom{10}{2}A(8,3)&lt;br /&gt;
+ \binom{10}{3}A(7,2)+\binom{10}{4}A(6,1)&amp;amp;=22232.\\&lt;br /&gt;
c&#039;_{11,3}&amp;amp;\geq &amp;amp;\binom{11}{0}A(11,5)+\binom{11}{1}A(10,4)+\binom{11}{2}A(9,3)&lt;br /&gt;
+ \binom{11}{3}A(8,2)+\binom{11}{4}A(7,1)&amp;amp;=66024.\\&lt;br /&gt;
c&#039;_{12,3}&amp;amp;\geq &amp;amp;\binom{12}{0}A(12,5)+\binom{12}{1}A(11,4)+\binom{12}{2}A(10,3)&lt;br /&gt;
+ \binom{12}{3}A(9,2)+\binom{12}{4}A(8,1)&amp;amp;=188688.\\&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With $k=5$&lt;br /&gt;
\[ c&#039;_{13,3}\geq 539168.\]&lt;br /&gt;
&lt;br /&gt;
It should be pointed out that these bounds are even numbers, so that &lt;br /&gt;
$c&#039;_{4,3}=43$ shows that one cannot generally expect this lower bound &lt;br /&gt;
gives the optimum.&lt;br /&gt;
&lt;br /&gt;
The maximum value  appears to occur for $k=\lfloor\frac{n+2}{3}\rfloor$, &lt;br /&gt;
so that using &lt;br /&gt;
Stirling&#039;s formula and explicit bounds on $A(n,d)$ the &lt;br /&gt;
best possible value known to date&lt;br /&gt;
of the constant $C$ in &lt;br /&gt;
equation \eqref{cpn3} can be worked out, but we refrain from doing this here.&lt;br /&gt;
Using the Singleton bound $A(n,d)\leq 2^{n-d+1}$ Chv\&#039;{a}tal  &lt;br /&gt;
\cite{chvatal1} proved that the expression on the right hand side of&lt;br /&gt;
\eqref{cnchvatal} is also &lt;br /&gt;
$O\left( \frac{3^n}{\sqrt{n}}\right)$, so that the refinement described &lt;br /&gt;
above gains a constant factor over the initial construction only.&lt;br /&gt;
 &lt;br /&gt;
For $n=4$ the above does not yet give the exact value.&lt;br /&gt;
The value $c&#039;_{4,3}=43$ was first proven by Chandra \cite{chandra}.&lt;br /&gt;
A uniform way of describing examples for the optimum values of &lt;br /&gt;
$c&#039;_{4,3}=43$ and $c&#039;_{5,3}=124$ is the following:&lt;br /&gt;
&lt;br /&gt;
Let us consider the sets $$ A := S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^e \cup A&#039;$$ where $A&#039; \subset S_{i+1,n}$ has the property &lt;br /&gt;
that any two elements in $A&#039;$ are separated by a Hamming distance of at &lt;br /&gt;
least three, or have a Hamming distance of exactly one but their &lt;br /&gt;
midpoint lies in $S_{i,n}^o$. By the previous discussion we see that &lt;br /&gt;
this is a Moser set, and we have the lower bound &lt;br /&gt;
\begin{equation}\label{cnn}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{i} 2^{i-1} + |A&#039;|.&lt;br /&gt;
\end{equation} This gives some improved lower bounds for $c&#039;_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize} \item By taking $n=4$, $i=3$, and $A&#039; = \{ 1111, 3331, &lt;br /&gt;
3333\}$, we obtain $c&#039;_{4,3} \geq 43$; \item By taking $n=5$, $i=4$, and &lt;br /&gt;
$A&#039; = \{ 11111, 11333, 33311, 33331 \}$, we obtain $c&#039;_{5,3} \geq 124$. &lt;br /&gt;
\item By taking $n=6$, $i=5$, and $A&#039; = \{ 111111, 111113, 111331, &lt;br /&gt;
111333, 331111, 331113\}$, we obtain $c&#039;_{6,3} \geq 342$. \end{itemize}&lt;br /&gt;
&lt;br /&gt;
This gives the lower bounds in Theorem \ref{moser} up to $n=5$, but &lt;br /&gt;
the bound for $n=6$ is inferior to the lower bound $c&#039;_{6,3}\geq 344$ given above. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
\subsection{Higher $k$ values}&lt;br /&gt;
One can consider subsets of $[k]{}^n$ that contain no geometric lines.  Section \ref{moser-lower-sec} has considered the case $k=3$.  Let $c&#039;_{n,k}$ be the greatest number of points in $[k]{}^n$ with no geometric line.  For example, $c&#039;_{n,3} = c&#039;_n$.  We have the following lower bounds:&lt;br /&gt;
&lt;br /&gt;
$c&#039;_{n,4} \ge \binom{n}{n/2}2^n$.&lt;br /&gt;
The set of points with $a$ $1$s,$b$ $2$s,$c$ $3$s and $d$ $4$s, where $a+d$ has the constant value $n/2$, does not form geometric lines because points at the ends of a geometric line have more $a$ or $d$ values than point in the middle of the line.&lt;br /&gt;
&lt;br /&gt;
One can show a lower bound that, asymptotically, is twice as large.  Take all points with $a$ $1$s, $b$ $2$s, $c$ $3$s and $d$ $4$s, for which:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Either $a+d = q$ or $q-1$, $a$ and $b$ have the same parity; or&lt;br /&gt;
\item $a+d = q-2$ or $q-3$, $a$ and $b$ have opposite parity.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
This includes half the points of four adjacent layers, and therefore may include $(1+o(1))\binom{n}{n/2}2^{n+1}$ points.&lt;br /&gt;
&lt;br /&gt;
We also have a DHJ(3)-like lower bound for $c&#039;_{n,5}$, namely $c&#039;_{n,5} = 5^{n-O(\sqrt{\log n})}$.&lt;br /&gt;
Consider points with $a$ $1$s, $b$ $2$s, $c$ $3$s, $d$ $4$s and $e$ $5$s.  For each point, take the value $a+e+2(b+d)+3c$.  The first three points in any geometric line give values that form an arithmetic progression of length three.  &lt;br /&gt;
&lt;br /&gt;
Select a set of integers with no arithmetic progression of length 3.  Select all points whose value belongs to that sequence; there will be no geometric line among those points.  By Behrend theory, it is possible to choose these points with density $\exp{-O(\sqrt{\log n})}$.&lt;br /&gt;
&lt;br /&gt;
The $k=6$ version of Moser implies DHJ(3). Indeed, any $k=3$ combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a $k=6$ geometric line-free set of the same density by pulling back the set from the map that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends $k=6$ geometric lines to $k=3$ combinatorial lines.  So $c&#039;_{k,6} \geq 2^k c_k$, and more generally, $c&#039;_{k,2n} \geq 2^k c_{k,n}$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1931</id>
		<title>Moser-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1931"/>
		<updated>2009-07-10T17:55:30Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the Moser problem}\label{moser-lower-sec}&lt;br /&gt;
&lt;br /&gt;
Just as for the DHJ problem, we found that Gamma sets $\Gamma_{a,b,c}$ were useful in providing large lower bounds for the Moser problem.  This is despite the fact that the symmetries of the cube do not respect Gamma sets.&lt;br /&gt;
&lt;br /&gt;
Observe that if $B \subset \Delta_n$, then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a Moser set as long as $B$ does not contain any ``isosceles triangles&#039;&#039; $(a+r,b,c+s), (a+s,b,c+r), (a,b+r+s,c)$ for any $r,s \geq 0$ not both zero; in particular, $B$ cannot contain any ``vertical line segments&#039;&#039; $(a+r,b,c+r), (a,b+2r,c)$.  An example of such a set is provided by selecting $0 \leq i \leq n-3$ and letting $B$ consist of the triples $(a, n-i, i-a)$ when $a \neq 3 \mod 3$, $(a,n-i-1,i+1-a)$ when $a \neq 1 \mod 3$, $(a,n-i-2,i+2-a)$ when $a=0 \mod 3$, and $(a,n-i-3,i+3-a)$ when $a=2 \mod 3$.  Asymptotically, this set includes about two thirds of the spheres $S_{n,i}$, $S_{n,i+1}$ and one third of the spheres $S_{n,i+2}, S_{n,i+3}$ and (setting $i$ close to $n/3$) gives a lower bound \eqref{cpn3} with $C = 2 \times \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
&lt;br /&gt;
An integer program was run to obtain the optimal lower bounds achievable by the $A_B$ construction (using \eqref{cn3}, of course).  The results for&lt;br /&gt;
$1 \leq n \leq 20$ are displayed in Figure \ref{nlow-moser}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	71766\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	212423\\&lt;br /&gt;
3 &amp;amp;	16 &amp;amp; 13&amp;amp;	614875\\&lt;br /&gt;
4 &amp;amp;	43 &amp;amp; 14&amp;amp;	1794212\\&lt;br /&gt;
5 &amp;amp;	122&amp;amp; 15&amp;amp;	5321796\\&lt;br /&gt;
6 &amp;amp;	353&amp;amp; 16&amp;amp;	15455256\\&lt;br /&gt;
7 &amp;amp;	1017&amp;amp; 17&amp;amp;	45345052\\&lt;br /&gt;
8 &amp;amp;	2902&amp;amp;18&amp;amp;	134438520\\&lt;br /&gt;
9 &amp;amp;	8622&amp;amp;19&amp;amp;	391796798\\&lt;br /&gt;
10&amp;amp;	24786&amp;amp; 20&amp;amp;	1153402148\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c&#039;_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow-moser}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at &lt;br /&gt;
\centerline{{\tt http://abel.math.umu.se/~klasm/Data/HJ/}.}&lt;br /&gt;
&lt;br /&gt;
Note that the lower bound $c&#039;_{6,3} \geq 353$ was first located by a genetic algorithm: see Appendix \ref{genetic-alg}.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{moser353new.png}}&lt;br /&gt;
\caption{One of the examples of $353$-point sets in $[3]^6$ (elements of the set being indicated by white squares).}&lt;br /&gt;
\label{moser353-fig}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
However, we have been unable to locate a lower bound which is asymptotically better than \eqref{cpn3}.  Indeed, any method based purely on the $A_B$ construction cannot do asymptotically better than the previous constructions:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  Let $B \subset \Delta_n$ be such that $A_B$ is a Moser set.  Then $|A_B| \leq (2 \sqrt{\frac{9}{4\pi}} + o(1)) \frac{3^n}{\sqrt{n}}$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  By the previous discussion, $B$ cannot contain any pair of the form $(a,b+2r,c), (a+r,b,c+r)$ with $r&amp;gt;0$.  In other words, for any $-n \leq h \leq n$, $B$ can contain at most one triple $(a,b,c)$ with $c-a=h$.  From this and \eqref{cn3}, we see that&lt;br /&gt;
$$ |A_B| \leq \sum_{h=-n}^n \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!}.$$&lt;br /&gt;
From the Chernoff inequality (or the Stirling formula computation below) we see that $\frac{n!}{a! b! c!} \leq \frac{1}{n^{10}} 3^n$ unless $a,b,c = n/3 + O( n^{1/2} \log^{1/2} n )$, so we may restrict to this regime, which also forces $h = O( n^{1/2}\log^{1/2} n)$.  If we write $a = n/3 + \alpha$, $b = n/3 + \beta$, $c = n/3+\gamma$ and apply Stirling&#039;s formula $n! = (1+o(1)) \sqrt{2\pi n} n^n e^{-n}$, we obtain &lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - (\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) - (\frac{n}{3}+\beta) \log (1 + \frac{3\beta}{n} ) - (\frac{n}{3}+\gamma) \log (1 + \frac{3\gamma}{n} ) ).$$&lt;br /&gt;
From Taylor expansion one has&lt;br /&gt;
$$ -(\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) = -\alpha - \frac{3}{2} \frac{\alpha^2}{n} + o(1)$$&lt;br /&gt;
and similarly for $\beta,\gamma$; since $\alpha+\beta+\gamma=0$, we conclude that&lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{2n} (\alpha^2+\beta^2+\gamma^2) ).$$&lt;br /&gt;
If $c-a=h$, then $\alpha^2+\beta^2+\gamma^2 = \frac{3\beta^2}{2} + \frac{h^2}{2}$.  Thus we see that&lt;br /&gt;
$$ \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!} \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{4n} h^2 ).$$&lt;br /&gt;
Using the integral test, we thus have&lt;br /&gt;
$$ |A_B| \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n  \int_\R \exp( - \frac{3}{4n} x^2 )\ dx.$$&lt;br /&gt;
Since $\int_\R \exp( - \frac{3}{4n} x^2 )\ dx = \sqrt{\frac{4\pi n}{3}}$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually it is possible to improve upon these bounds by a slight amount.  Observe that if $B$ is a maximiser for the right-hand side of \eqref{cn3} (subject to $B$ not containing isosceles triangles), then any triple $(a,b,c)$ not in $B$ must be the vertex of a (possibly degenerate) isosceles triangle with the other vertices in $B$.  If this triangle is non-degenerate, or if $(a,b,c)$ is the upper vertex of a degenerate isosceles triangle, then no point from $\Gamma_{a,b,c}$ can be added to $A_B$ without creating a geometric line. However, if $(a,b,c) = (a&#039;+r,b&#039;,c&#039;+r)$ is only the lower vertex of a degenerate isosceles triangle $(a&#039;+r,b&#039;,c&#039;+r), (a&#039;,b&#039;+2r,c&#039;)$, then one can add any subset of $\Gamma_{a,b,c}$ to $A_B$ and still have a Moser set as long as no pair of elements in that subset is separated by Hamming distance $2r$.  For instance, in the $n=5$ case, we can start with the 122-point set built from &lt;br /&gt;
$$B = \{ (0 0 5),(0 2 3),(1 1 3 ),(1 2 2 ),(2 2 1 ),(3 1 1 ),(3 2 0 ),(5 0 0))\}$$, and add a point each from (1 0 4) and (4 0 1).&lt;br /&gt;
This gives an example of the maximal, 124-point solution.  Again, in the $n=10$ case, the set&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B &amp;amp;= \{(0 0 10),(0 2 8 ),(0 3 7 ),(0 4 6 ),(1 4 5 ),(2 1 7 ),(2 3 5 ), &lt;br /&gt;
(3 2 5 ),(3 3 4 ),(3 4 3 ),(4 4 2 ),(5 1 4 ), \\&lt;br /&gt;
&amp;amp;\quad (5 3 2 ),(6 2 2 ), &lt;br /&gt;
(6 3 1 ),(6 4 0 ),(8 1 1 ),(9 0 1 ),(9 1 0 ) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
generates the lower bound $c&#039;_{10,3} \geq 24786$ given above (and, up to reflection $a \leftrightarrow c$, is the only such set that does so); but by adding the following twelve elements from $\Gamma_{5,0,5}$ one can increase the lower bound slightly to $24798$: $1111133333$, $1111313333$,&lt;br /&gt;
$1113113333$, $1133331113$, $1133331131$, $1133331311$, $3311333111$,&lt;br /&gt;
$3313133111$, $3313313111$, $3331111133$, $3331111313$, $3331111331$&lt;br /&gt;
&lt;br /&gt;
A more general form goes with the $B$ set described at the start of this section.  Include points from $\Gamma_{(a,n-i-4,i+4-a)}$ when $a=1 (\operatorname{mod}\ 3)$, subject to no two points being included if they differ by the interchange of a $1$ and a $3$.  Each of these Gamma sets is the feet of a degenerate isosceles triangle with vertex $\Gamma_{(a-1,n-i-2,a+3-a)}$.  &lt;br /&gt;
&lt;br /&gt;
\begin{lemma} If $A$ is a subset of $\Gamma_{(a,b,c)}$ such that no two points of $A$ differ by the interchange of a $1$ and a $3$, then $|A| \leq |\Gamma_{a,b,c}|/(1+\max(a,c))$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Say that two points of $\Gamma_{a,b,c}$ are neighbours if they differ by the exchange of a $1$ and a $3$.  Each point of $A$ has $ac$ neighbours, none of which are in $A$. Each point of $\Gamma_{(a,b,c)}\backslash A$ has $ac$ neighbours, but only $min(a,c)$ of them may be in $A$. So for each point of $A$ there are on average $ac/\min(a,c) = \max(a,c)$ points not in $A$. So the proportion of points of $\Gamma_{(a,b,c)}$ that are in $A$ is at most one in $1+\max(a,c)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
The proportion of extra points for each of the cells $\Gamma_{(a,n-i-4,i+4-a)}$ is no more than $2/(i+6)$.  Only one cell in three is included from the  $b=n-i-4$ layer, so we expect no more than $\frac{2}{3(i+6)}\binom(n,i+4)2^{i+4}$ new points, all from $S_{n,i+4}$.  One can also find extra points from $S_{n,i+5}$ and higher spheres.&lt;br /&gt;
&lt;br /&gt;
Earlier solutions may also give insight into the problem.  In this section we discuss lower bounds for $c&#039;_{n,3}$. Clearly we have &lt;br /&gt;
$c&#039;_{0,3}=1$ and $c&#039;_{1,3}=2$, so we focus on the case $n \ge 2$.&lt;br /&gt;
The first lower bounds may be due to Koml\&#039;{o}s \cite{komlos}, who observed &lt;br /&gt;
that the sphere $S_{i,n}$ of elements with exactly $n-i$ 2 entries&lt;br /&gt;
(see Section \ref{notation-sec} for definition),&lt;br /&gt;
is a Moser set, so that &lt;br /&gt;
\begin{equation}\label{cin}&lt;br /&gt;
c&#039;_{n,3}\geq \vert S_{i,n}\vert&lt;br /&gt;
\end{equation}&lt;br /&gt;
holds for all $i$. Choosing $i=\lfloor \frac{2n}{3}\rfloor$  and &lt;br /&gt;
applying Stirling&#039;s formula, we see that this lower bound takes the form &lt;br /&gt;
\begin{equation}\label{cpn3}&lt;br /&gt;
c&#039;_{n,3} \geq (C-o(1)) 3^n / \sqrt{n} &lt;br /&gt;
\end{equation} &lt;br /&gt;
for some absolute constant $C&amp;gt;0$; in fact \eqref{cin} gives \eqref{cpn3} with $C := \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
In particular $c&#039;_{3,3} \geq 12, c&#039;_{4,3}\geq 24, c&#039;_{5,3}\geq 80, &lt;br /&gt;
c&#039;_{6,3}\geq 240$.&lt;br /&gt;
&lt;br /&gt;
These values can be improved by studying combinations of several spheres or&lt;br /&gt;
semispheres or applying elementary results from coding theory.&lt;br /&gt;
&lt;br /&gt;
Observe that if $\{w(1),w(2),w(3)\}$ is a geometric line in $[3]^n$, &lt;br /&gt;
then $w(1), w(3)$ both lie in the same sphere $S_{i,n}$, &lt;br /&gt;
and that $w(2)$ lies in a lower &lt;br /&gt;
sphere $S_{i-r,n}$ for some $1 \leq r \leq i \leq n$. Furthermore, &lt;br /&gt;
$w(1)$ and $w(3)$ are separated by Hamming distance $r$.&lt;br /&gt;
&lt;br /&gt;
As a consequence, we see that $S_{i-1,n} \cup S_{i,n}^e$ (or $S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^o$) is a Moser set for any $1 \leq i \leq n$, since any two &lt;br /&gt;
distinct elements $S_{i,n}^e$ are separated by a Hamming distance of at &lt;br /&gt;
least two. &lt;br /&gt;
(Recall Section \ref{notation-sec} for definitions),&lt;br /&gt;
This leads to the lower bound &lt;br /&gt;
\begin{equation}\label{cn3-low}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n}{i-1} &lt;br /&gt;
2^{i-1} + \binom{n}{i} 2^{i-1} = \binom{n+1}{i} 2^{i-1}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
It is not &lt;br /&gt;
hard to see that $\binom{n+1}{i+1} 2^{i} &amp;gt; \binom{n+1}{i} 2^{i-1}$ if &lt;br /&gt;
and only if $3i &amp;lt; 2n+1$, and so this lower bound is maximised when $i = &lt;br /&gt;
\lfloor \frac{2n+1}{3} \rfloor$ for $n \geq 2$, giving the formula &lt;br /&gt;
\eqref{binom}. This leads to the lower bounds $$ c&#039;_{2,3} \geq 6; &lt;br /&gt;
c&#039;_{3,3} \geq 16; c&#039;_{4,3} \geq 40; c&#039;_{5,3} \geq 120; c&#039;_{6,3} \geq &lt;br /&gt;
336$$ which gives the right lower bounds for $n=2,3$, but is slightly &lt;br /&gt;
off for $n=4,5$.  Asymptotically, Stirling&#039;s formula and \eqref{cn3-low} then&lt;br /&gt;
give the lower bound \eqref{cpn3} with $C = \frac{3}{2} \times \sqrt{\frac{9}{4\pi}}$, which is asymptotically $50\%$ better than the bound \eqref{cin}.&lt;br /&gt;
&lt;br /&gt;
The work of Chv\&#039;{a}tal \cite{chvatal1} &lt;br /&gt;
already contained a refinement of this idea&lt;br /&gt;
which we here translate into the usual notation of coding theory:&lt;br /&gt;
Let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
and minimal distance $d$.&lt;br /&gt;
&lt;br /&gt;
Then &lt;br /&gt;
\begin{equation}\label{cnchvatal}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
With the following values for $A(n,d)$:&lt;br /&gt;
{\tiny{&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llllllll}&lt;br /&gt;
A(1,1)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(2,1)=4&amp;amp; A(2,2)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(3,1)=8&amp;amp;A(3,2)=4&amp;amp;A(3,3)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(4,1)=16&amp;amp;A(4,2)=8&amp;amp; A(4,3)=2&amp;amp; A(4,4)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(5,1)=32&amp;amp;A(5,2)=16&amp;amp; A(5,3)=4&amp;amp; A(5,4)=2&amp;amp;A(5,5)=2&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(6,1)=64&amp;amp;A(6,2)=32&amp;amp; A(6,3)=8&amp;amp; A(6,4)=4&amp;amp;A(6,5)=2&amp;amp;A(6,6)=2&amp;amp;&amp;amp;\\&lt;br /&gt;
A(7,1)=128&amp;amp;A(7,2)=64&amp;amp; A(7,3)=16&amp;amp; A(7,4)=8&amp;amp;A(7,5)=2&amp;amp;A(7,6)=2&amp;amp;A(7,7)=2&amp;amp;\\&lt;br /&gt;
A(8,1)=256&amp;amp;A(8,2)=128&amp;amp; A(8,3)=20&amp;amp; A(8,4)=16&amp;amp;A(8,5)=4&amp;amp;A(8,6)=2&lt;br /&gt;
&amp;amp;A(8,7)=2&amp;amp;A(8,8)=2\\&lt;br /&gt;
A(9,1)=512&amp;amp;A(9,2)=256&amp;amp; A(9,3)=40&amp;amp; A(9,4)=20&amp;amp;A(9,5)=6&amp;amp;A(9,6)=4&lt;br /&gt;
&amp;amp;A(9,7)=2&amp;amp;A(9,8)=2\\&lt;br /&gt;
A(10,1)=1024&amp;amp;A(10,2)=512&amp;amp; A(10,3)=72&amp;amp; A(10,4)=40&amp;amp;A(10,5)=12&amp;amp;A(10,6)=6&lt;br /&gt;
&amp;amp;A(10,7)=2&amp;amp;A(10,8)=2\\&lt;br /&gt;
A(11,1)=2048&amp;amp;A(11,2)=1024&amp;amp; A(11,3)=144&amp;amp; A(11,4)=72&amp;amp;A(11,5)=24&amp;amp;A(11,6)=12&lt;br /&gt;
&amp;amp;A(11,7)=2&amp;amp;A(11,8)=2\\&lt;br /&gt;
A(12,1)=4096&amp;amp;A(12,2)=2048&amp;amp; A(12,3)=256&amp;amp; A(12,4)=144&amp;amp;A(12,5)=32&amp;amp;A(12,6)=24&lt;br /&gt;
&amp;amp;A(12,7)=4&amp;amp;A(12,8)=2\\&lt;br /&gt;
A(13,1)=8192&amp;amp;A(13,2)=4096&amp;amp; A(13,3)=512&amp;amp; A(13,4)=256&amp;amp;A(13,5)=64&amp;amp;A(12,6)=32&lt;br /&gt;
&amp;amp;A(13,7)=8&amp;amp;A(13,8)=4\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Generally, $A(n,1)=2^n, A(n,2)=2^{n-1}, A(n-1,2e-1)=A(n,2e), A(n,d)=2$, &lt;br /&gt;
if $d&amp;gt;\frac{2n}{3}$.&lt;br /&gt;
The values were taken or derived from Andries Brower&#039;s table at&lt;br /&gt;
\centerline{\tt http://www.win.tue.nl/$\sim$aeb/codes/binary-1.html}&lt;br /&gt;
\textbf{include to references? or other book with explicit values of $A(n,d)$ }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For  $c&#039;_{n,3}$ we obtain the following lower bounds:&lt;br /&gt;
with $k=2$&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{4,3}&amp;amp;\geq &amp;amp;\binom{4}{0}A(4,3)+\binom{4}{1}A(3,2)+\binom{4}{2}A(2,1)&lt;br /&gt;
=1\cdot 2+4 \cdot 4+6\cdot 4&amp;amp;=42.\\&lt;br /&gt;
c&#039;_{5,3}&amp;amp;\geq &amp;amp;\binom{5}{0}A(5,3)+\binom{5}{1}A(4,2)+\binom{5}{2}A(3,1)&lt;br /&gt;
=1\cdot 4+5 \cdot 8+10\cdot 8&amp;amp;=124.\\&lt;br /&gt;
c&#039;_{6,3}&amp;amp;\geq &amp;amp;\binom{6}{0}A(6,3)+\binom{6}{1}A(5,2)+\binom{6}{2}A(4,1)&lt;br /&gt;
=1\cdot 8+6 \cdot 16+15\cdot 16&amp;amp;=344.&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
With k=3&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{7,3}&amp;amp;\geq&amp;amp; \binom{7}{0}A(7,4)+\binom{7}{1}A(6,3)+\binom{7}{2}A(5,2)&lt;br /&gt;
+ \binom{7}{3}A(4,1)&amp;amp;=960.\\&lt;br /&gt;
c&#039;_{8,3}&amp;amp;\geq &amp;amp;\binom{8}{0}A(8,4)+\binom{8}{1}A(7,3)+\binom{8}{2}A(6,2)&lt;br /&gt;
+ \binom{8}{3}A(5,1)&amp;amp;=2832.\\&lt;br /&gt;
c&#039;_{9,3}&amp;amp;\geq &amp;amp; \binom{9}{0}A(9,4)+\binom{9}{1}A(8,3)+\binom{9}{2}A(7,2)&lt;br /&gt;
+ \binom{9}{3}A(6,1)&amp;amp;=7880.&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With k=4&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{10,3}&amp;amp;\geq &amp;amp;\binom{10}{0}A(10,5)+\binom{10}{1}A(9,4)+\binom{10}{2}A(8,3)&lt;br /&gt;
+ \binom{10}{3}A(7,2)+\binom{10}{4}A(6,1)&amp;amp;=22232.\\&lt;br /&gt;
c&#039;_{11,3}&amp;amp;\geq &amp;amp;\binom{11}{0}A(11,5)+\binom{11}{1}A(10,4)+\binom{11}{2}A(9,3)&lt;br /&gt;
+ \binom{11}{3}A(8,2)+\binom{11}{4}A(7,1)&amp;amp;=66024.\\&lt;br /&gt;
c&#039;_{12,3}&amp;amp;\geq &amp;amp;\binom{12}{0}A(12,5)+\binom{12}{1}A(11,4)+\binom{12}{2}A(10,3)&lt;br /&gt;
+ \binom{12}{3}A(9,2)+\binom{12}{4}A(8,1)&amp;amp;=188688.\\&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With $k=5$&lt;br /&gt;
\[ c&#039;_{13,3}\geq 539168.\]&lt;br /&gt;
&lt;br /&gt;
It should be pointed out that these bounds are even numbers, so that &lt;br /&gt;
$c&#039;_{4,3}=43$ shows that one cannot generally expect this lower bound &lt;br /&gt;
gives the optimum.&lt;br /&gt;
&lt;br /&gt;
The maximum value  appears to occur for $k=\lfloor\frac{n+2}{3}\rfloor$, &lt;br /&gt;
so that using &lt;br /&gt;
Stirling&#039;s formula and explicit bounds on $A(n,d)$ the &lt;br /&gt;
best possible value known to date&lt;br /&gt;
of the constant $C$ in &lt;br /&gt;
equation \eqref{cpn3} can be worked out, but we refrain from doing this here.&lt;br /&gt;
Using the Singleton bound $A(n,d)\leq 2^{n-d+1}$ Chv\&#039;{a}tal  &lt;br /&gt;
\cite{chvatal1} proved that the expression on the right hand side of&lt;br /&gt;
\eqref{cnchvatal} is also &lt;br /&gt;
$O\left( \frac{3^n}{\sqrt{n}}\right)$, so that the refinement described &lt;br /&gt;
above gains a constant factor over the initial construction only.&lt;br /&gt;
 &lt;br /&gt;
For $n=4$ the above does not yet give the exact value.&lt;br /&gt;
The value $c&#039;_{4,3}=43$ was first proven by Chandra \cite{chandra}.&lt;br /&gt;
A uniform way of describing examples for the optimum values of &lt;br /&gt;
$c&#039;_{4,3}=43$ and $c&#039;_{5,3}=124$ is the following:&lt;br /&gt;
&lt;br /&gt;
Let us consider the sets $$ A := S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^e \cup A&#039;$$ where $A&#039; \subset S_{i+1,n}$ has the property &lt;br /&gt;
that any two elements in $A&#039;$ are separated by a Hamming distance of at &lt;br /&gt;
least three, or have a Hamming distance of exactly one but their &lt;br /&gt;
midpoint lies in $S_{i,n}^o$. By the previous discussion we see that &lt;br /&gt;
this is a Moser set, and we have the lower bound &lt;br /&gt;
\begin{equation}\label{cnn}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{i} 2^{i-1} + |A&#039;|.&lt;br /&gt;
\end{equation} This gives some improved lower bounds for $c&#039;_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize} \item By taking $n=4$, $i=3$, and $A&#039; = \{ 1111, 3331, &lt;br /&gt;
3333\}$, we obtain $c&#039;_{4,3} \geq 43$; \item By taking $n=5$, $i=4$, and &lt;br /&gt;
$A&#039; = \{ 11111, 11333, 33311, 33331 \}$, we obtain $c&#039;_{5,3} \geq 124$. &lt;br /&gt;
\item By taking $n=6$, $i=5$, and $A&#039; = \{ 111111, 111113, 111331, &lt;br /&gt;
111333, 331111, 331113\}$, we obtain $c&#039;_{6,3} \geq 342$. \end{itemize}&lt;br /&gt;
&lt;br /&gt;
This gives the lower bounds in Theorem \ref{moser} up to $n=5$, but &lt;br /&gt;
the bound for $n=6$ is inferior to the lower bound $c&#039;_{6,3}\geq 344$ given above. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
\subsection{Higher $k$ values}&lt;br /&gt;
One can consider subsets of $[k]{}^n$ that contain no geometric lines.  Section \ref{moser-lower-sec} has considered the case $k=3$.  Let $c&#039;_{n,k}$ be the greatest number of points in $[k]{}^n$ with no geometric line.  For example, $c&#039;_{n,3} = c&#039;_n$.  We have the following lower bounds:&lt;br /&gt;
&lt;br /&gt;
$c&#039;_{n,4} \ge \binom{n}{n/2}2^n$.&lt;br /&gt;
The set of points with $a$ $1$s,$b$ $2$s,$c$ $3$s and $d$ $4$s, where $a+d$ has the constant value $n/2$, does not form geometric lines because points at the ends of a geometric line have more $a$ or $d$ values than point in the middle of the line.&lt;br /&gt;
&lt;br /&gt;
One can show a lower bound that, asymptotically, is twice as large.  Take all points with $a$ $1$s, $b$ $2$s, $c$ $3$s and $d$ $4$s, for which:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Either $a+d = q$ or $q-1$, $a$ and $b$ have the same parity; or&lt;br /&gt;
\item $a+d = q-2$ or $q-3$, $a$ and $b$ have opposite parity.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
This includes half the points of four adjacent layers, and therefore may include $(1+o(1))\binom{n}{n/2}2^{n+1}$ points.&lt;br /&gt;
&lt;br /&gt;
We also have a DHJ(3)-like lower bound for $c&#039;_{n,5}$, namely $c&#039;_{n,5} = 5^{n-O(\sqrt{\log n})}$.&lt;br /&gt;
Consider points with $a$ $1$s, $b$ $2$s, $c$ $3$s, $d$ $4$s and $e$ $5$s.  For each point, take the value $a+e+2(b+d)+3c$.  The first three points in any geometric line give values that form an arithmetic progression of length three.  &lt;br /&gt;
&lt;br /&gt;
Select a set of integers with no arithmetic progression of length 3.  Select all points whose value belongs to that sequence; there will be no geometric line among those points.  By Behrend theory, it is possible to choose these points with density $\exp{-O(\sqrt{\log n})}$.&lt;br /&gt;
&lt;br /&gt;
The $k=6$ version of Moser implies DHJ(3). Indeed, any $k=3$ combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a $k=6$ geometric line-free set of the same density by pulling back the set from the map that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends $k=6$ geometric lines to $k=3$ combinatorial lines.  So $c&#039;_{k,6} \geq 2^k c_k$.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1930</id>
		<title>Moser-lower.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Moser-lower.tex&amp;diff=1930"/>
		<updated>2009-07-10T17:52:43Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Lower bounds for the Moser problem}\label{moser-lower-sec}&lt;br /&gt;
&lt;br /&gt;
Just as for the DHJ problem, we found that Gamma sets $\Gamma_{a,b,c}$ were useful in providing large lower bounds for the Moser problem.  This is despite the fact that the symmetries of the cube do not respect Gamma sets.&lt;br /&gt;
&lt;br /&gt;
Observe that if $B \subset \Delta_n$, then the set $A_B := \bigcup_{\vec a \in B} \Gamma_{a,b,c}$ is a Moser set as long as $B$ does not contain any ``isosceles triangles&#039;&#039; $(a+r,b,c+s), (a+s,b,c+r), (a,b+r+s,c)$ for any $r,s \geq 0$ not both zero; in particular, $B$ cannot contain any ``vertical line segments&#039;&#039; $(a+r,b,c+r), (a,b+2r,c)$.  An example of such a set is provided by selecting $0 \leq i \leq n-3$ and letting $B$ consist of the triples $(a, n-i, i-a)$ when $a \neq 3 \mod 3$, $(a,n-i-1,i+1-a)$ when $a \neq 1 \mod 3$, $(a,n-i-2,i+2-a)$ when $a=0 \mod 3$, and $(a,n-i-3,i+3-a)$ when $a=2 \mod 3$.  Asymptotically, this set includes about two thirds of the spheres $S_{n,i}$, $S_{n,i+1}$ and one third of the spheres $S_{n,i+2}, S_{n,i+3}$ and (setting $i$ close to $n/3$) gives a lower bound \eqref{cpn3} with $C = 2 \times \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
&lt;br /&gt;
An integer program was run to obtain the optimal lower bounds achievable by the $A_B$ construction (using \eqref{cn3}, of course).  The results for&lt;br /&gt;
$1 \leq n \leq 20$ are displayed in Figure \ref{nlow-moser}:&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{&lt;br /&gt;
\begin{tabular}{|ll|ll|}&lt;br /&gt;
\hline&lt;br /&gt;
$n$ &amp;amp; lower bound &amp;amp; $n$ &amp;amp; lower bound \\&lt;br /&gt;
\hline&lt;br /&gt;
1 &amp;amp; 2 &amp;amp;11&amp;amp;	71766\\&lt;br /&gt;
2 &amp;amp; 6 &amp;amp; 12&amp;amp;	212423\\&lt;br /&gt;
3 &amp;amp;	16 &amp;amp; 13&amp;amp;	614875\\&lt;br /&gt;
4 &amp;amp;	43 &amp;amp; 14&amp;amp;	1794212\\&lt;br /&gt;
5 &amp;amp;	122&amp;amp; 15&amp;amp;	5321796\\&lt;br /&gt;
6 &amp;amp;	353&amp;amp; 16&amp;amp;	15455256\\&lt;br /&gt;
7 &amp;amp;	1017&amp;amp; 17&amp;amp;	45345052\\&lt;br /&gt;
8 &amp;amp;	2902&amp;amp;18&amp;amp;	134438520\\&lt;br /&gt;
9 &amp;amp;	8622&amp;amp;19&amp;amp;	391796798\\&lt;br /&gt;
10&amp;amp;	24786&amp;amp; 20&amp;amp;	1153402148\\&lt;br /&gt;
\hline&lt;br /&gt;
\end{tabular}}&lt;br /&gt;
\caption{Lower bounds for $c&#039;_n$ obtained by the $A_B$ construction.}&lt;br /&gt;
\label{nlow-moser}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
More complete data, including the list of optimisers, can be found at &lt;br /&gt;
\centerline{{\tt http://abel.math.umu.se/~klasm/Data/HJ/}.}&lt;br /&gt;
&lt;br /&gt;
Note that the lower bound $c&#039;_{6,3} \geq 353$ was first located by a genetic algorithm: see Appendix \ref{genetic-alg}.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb]&lt;br /&gt;
\centerline{\includegraphics{moser353new.png}}&lt;br /&gt;
\caption{One of the examples of $353$-point sets in $[3]^6$ (elements of the set being indicated by white squares).}&lt;br /&gt;
\label{moser353-fig}&lt;br /&gt;
\end{figure}&lt;br /&gt;
&lt;br /&gt;
However, we have been unable to locate a lower bound which is asymptotically better than \eqref{cpn3}.  Indeed, any method based purely on the $A_B$ construction cannot do asymptotically better than the previous constructions:&lt;br /&gt;
&lt;br /&gt;
\begin{proposition}  Let $B \subset \Delta_n$ be such that $A_B$ is a Moser set.  Then $|A_B| \leq (2 \sqrt{\frac{9}{4\pi}} + o(1)) \frac{3^n}{\sqrt{n}}$.&lt;br /&gt;
\end{proposition}&lt;br /&gt;
&lt;br /&gt;
\begin{proof}  By the previous discussion, $B$ cannot contain any pair of the form $(a,b+2r,c), (a+r,b,c+r)$ with $r&amp;gt;0$.  In other words, for any $-n \leq h \leq n$, $B$ can contain at most one triple $(a,b,c)$ with $c-a=h$.  From this and \eqref{cn3}, we see that&lt;br /&gt;
$$ |A_B| \leq \sum_{h=-n}^n \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!}.$$&lt;br /&gt;
From the Chernoff inequality (or the Stirling formula computation below) we see that $\frac{n!}{a! b! c!} \leq \frac{1}{n^{10}} 3^n$ unless $a,b,c = n/3 + O( n^{1/2} \log^{1/2} n )$, so we may restrict to this regime, which also forces $h = O( n^{1/2}\log^{1/2} n)$.  If we write $a = n/3 + \alpha$, $b = n/3 + \beta$, $c = n/3+\gamma$ and apply Stirling&#039;s formula $n! = (1+o(1)) \sqrt{2\pi n} n^n e^{-n}$, we obtain &lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - (\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) - (\frac{n}{3}+\beta) \log (1 + \frac{3\beta}{n} ) - (\frac{n}{3}+\gamma) \log (1 + \frac{3\gamma}{n} ) ).$$&lt;br /&gt;
From Taylor expansion one has&lt;br /&gt;
$$ -(\frac{n}{3}+\alpha) \log (1 + \frac{3\alpha}{n} ) = -\alpha - \frac{3}{2} \frac{\alpha^2}{n} + o(1)$$&lt;br /&gt;
and similarly for $\beta,\gamma$; since $\alpha+\beta+\gamma=0$, we conclude that&lt;br /&gt;
$$ \frac{n!}{a! b! c!} = (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{2n} (\alpha^2+\beta^2+\gamma^2) ).$$&lt;br /&gt;
If $c-a=h$, then $\alpha^2+\beta^2+\gamma^2 = \frac{3\beta^2}{2} + \frac{h^2}{2}$.  Thus we see that&lt;br /&gt;
$$ \max_{(a,b,c) \in \Delta_n: c-a=h} \frac{n!}{a! b! c!} \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n \exp( - \frac{3}{4n} h^2 ).$$&lt;br /&gt;
Using the integral test, we thus have&lt;br /&gt;
$$ |A_B| \leq (1+o(1)) \frac{3^{3/2}}{2\pi n} 3^n  \int_\R \exp( - \frac{3}{4n} x^2 )\ dx.$$&lt;br /&gt;
Since $\int_\R \exp( - \frac{3}{4n} x^2 )\ dx = \sqrt{\frac{4\pi n}{3}}$, we obtain the claim.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
Actually it is possible to improve upon these bounds by a slight amount.  Observe that if $B$ is a maximiser for the right-hand side of \eqref{cn3} (subject to $B$ not containing isosceles triangles), then any triple $(a,b,c)$ not in $B$ must be the vertex of a (possibly degenerate) isosceles triangle with the other vertices in $B$.  If this triangle is non-degenerate, or if $(a,b,c)$ is the upper vertex of a degenerate isosceles triangle, then no point from $\Gamma_{a,b,c}$ can be added to $A_B$ without creating a geometric line. However, if $(a,b,c) = (a&#039;+r,b&#039;,c&#039;+r)$ is only the lower vertex of a degenerate isosceles triangle $(a&#039;+r,b&#039;,c&#039;+r), (a&#039;,b&#039;+2r,c&#039;)$, then one can add any subset of $\Gamma_{a,b,c}$ to $A_B$ and still have a Moser set as long as no pair of elements in that subset is separated by Hamming distance $2r$.  For instance, in the $n=5$ case, we can start with the 122-point set built from &lt;br /&gt;
$$B = \{ (0 0 5),(0 2 3),(1 1 3 ),(1 2 2 ),(2 2 1 ),(3 1 1 ),(3 2 0 ),(5 0 0))\}$$, and add a point each from (1 0 4) and (4 0 1).&lt;br /&gt;
This gives an example of the maximal, 124-point solution.  Again, in the $n=10$ case, the set&lt;br /&gt;
\begin{align*}&lt;br /&gt;
B &amp;amp;= \{(0 0 10),(0 2 8 ),(0 3 7 ),(0 4 6 ),(1 4 5 ),(2 1 7 ),(2 3 5 ), &lt;br /&gt;
(3 2 5 ),(3 3 4 ),(3 4 3 ),(4 4 2 ),(5 1 4 ), \\&lt;br /&gt;
&amp;amp;\quad (5 3 2 ),(6 2 2 ), &lt;br /&gt;
(6 3 1 ),(6 4 0 ),(8 1 1 ),(9 0 1 ),(9 1 0 ) \}&lt;br /&gt;
\end{align*}&lt;br /&gt;
&lt;br /&gt;
generates the lower bound $c&#039;_{10,3} \geq 24786$ given above (and, up to reflection $a \leftrightarrow c$, is the only such set that does so); but by adding the following twelve elements from $\Gamma_{5,0,5}$ one can increase the lower bound slightly to $24798$: $1111133333$, $1111313333$,&lt;br /&gt;
$1113113333$, $1133331113$, $1133331131$, $1133331311$, $3311333111$,&lt;br /&gt;
$3313133111$, $3313313111$, $3331111133$, $3331111313$, $3331111331$&lt;br /&gt;
&lt;br /&gt;
A more general form goes with the $B$ set described at the start of this section.  Include points from $\Gamma_{(a,n-i-4,i+4-a)}$ when $a=1 (\operatorname{mod}\ 3)$, subject to no two points being included if they differ by the interchange of a $1$ and a $3$.  Each of these Gamma sets is the feet of a degenerate isosceles triangle with vertex $\Gamma_{(a-1,n-i-2,a+3-a)}$.  &lt;br /&gt;
&lt;br /&gt;
\begin{lemma} If $A$ is a subset of $\Gamma_{(a,b,c)}$ such that no two points of $A$ differ by the interchange of a $1$ and a $3$, then $|A| \leq |\Gamma_{a,b,c}|/(1+\max(a,c))$.&lt;br /&gt;
\end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Say that two points of $\Gamma_{a,b,c}$ are neighbours if they differ by the exchange of a $1$ and a $3$.  Each point of $A$ has $ac$ neighbours, none of which are in $A$. Each point of $\Gamma_{(a,b,c)}\backslash A$ has $ac$ neighbours, but only $min(a,c)$ of them may be in $A$. So for each point of $A$ there are on average $ac/\min(a,c) = \max(a,c)$ points not in $A$. So the proportion of points of $\Gamma_{(a,b,c)}$ that are in $A$ is at most one in $1+\max(a,c)$.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
The proportion of extra points for each of the cells $\Gamma_{(a,n-i-4,i+4-a)}$ is no more than $2/(i+6)$.  Only one cell in three is included from the  $b=n-i-4$ layer, so we expect no more than $\frac{2}{3(i+6)}\binom(n,i+4)2^{i+4}$ new points, all from $S_{n,i+4}$.  One can also find extra points from $S_{n,i+5}$ and higher spheres.&lt;br /&gt;
&lt;br /&gt;
Earlier solutions may also give insight into the problem.  In this section we discuss lower bounds for $c&#039;_{n,3}$. Clearly we have &lt;br /&gt;
$c&#039;_{0,3}=1$ and $c&#039;_{1,3}=2$, so we focus on the case $n \ge 2$.&lt;br /&gt;
The first lower bounds may be due to Koml\&#039;{o}s \cite{komlos}, who observed &lt;br /&gt;
that the sphere $S_{i,n}$ of elements with exactly $n-i$ 2 entries&lt;br /&gt;
(see Section \ref{notation-sec} for definition),&lt;br /&gt;
is a Moser set, so that &lt;br /&gt;
\begin{equation}\label{cin}&lt;br /&gt;
c&#039;_{n,3}\geq \vert S_{i,n}\vert&lt;br /&gt;
\end{equation}&lt;br /&gt;
holds for all $i$. Choosing $i=\lfloor \frac{2n}{3}\rfloor$  and &lt;br /&gt;
applying Stirling&#039;s formula, we see that this lower bound takes the form &lt;br /&gt;
\begin{equation}\label{cpn3}&lt;br /&gt;
c&#039;_{n,3} \geq (C-o(1)) 3^n / \sqrt{n} &lt;br /&gt;
\end{equation} &lt;br /&gt;
for some absolute constant $C&amp;gt;0$; in fact \eqref{cin} gives \eqref{cpn3} with $C := \sqrt{\frac{9}{4\pi}}$.&lt;br /&gt;
In particular $c&#039;_{3,3} \geq 12, c&#039;_{4,3}\geq 24, c&#039;_{5,3}\geq 80, &lt;br /&gt;
c&#039;_{6,3}\geq 240$.&lt;br /&gt;
&lt;br /&gt;
These values can be improved by studying combinations of several spheres or&lt;br /&gt;
semispheres or applying elementary results from coding theory.&lt;br /&gt;
&lt;br /&gt;
Observe that if $\{w(1),w(2),w(3)\}$ is a geometric line in $[3]^n$, &lt;br /&gt;
then $w(1), w(3)$ both lie in the same sphere $S_{i,n}$, &lt;br /&gt;
and that $w(2)$ lies in a lower &lt;br /&gt;
sphere $S_{i-r,n}$ for some $1 \leq r \leq i \leq n$. Furthermore, &lt;br /&gt;
$w(1)$ and $w(3)$ are separated by Hamming distance $r$.&lt;br /&gt;
&lt;br /&gt;
As a consequence, we see that $S_{i-1,n} \cup S_{i,n}^e$ (or $S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^o$) is a Moser set for any $1 \leq i \leq n$, since any two &lt;br /&gt;
distinct elements $S_{i,n}^e$ are separated by a Hamming distance of at &lt;br /&gt;
least two. &lt;br /&gt;
(Recall Section \ref{notation-sec} for definitions),&lt;br /&gt;
This leads to the lower bound &lt;br /&gt;
\begin{equation}\label{cn3-low}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n}{i-1} &lt;br /&gt;
2^{i-1} + \binom{n}{i} 2^{i-1} = \binom{n+1}{i} 2^{i-1}.&lt;br /&gt;
\end{equation}&lt;br /&gt;
It is not &lt;br /&gt;
hard to see that $\binom{n+1}{i+1} 2^{i} &amp;gt; \binom{n+1}{i} 2^{i-1}$ if &lt;br /&gt;
and only if $3i &amp;lt; 2n+1$, and so this lower bound is maximised when $i = &lt;br /&gt;
\lfloor \frac{2n+1}{3} \rfloor$ for $n \geq 2$, giving the formula &lt;br /&gt;
\eqref{binom}. This leads to the lower bounds $$ c&#039;_{2,3} \geq 6; &lt;br /&gt;
c&#039;_{3,3} \geq 16; c&#039;_{4,3} \geq 40; c&#039;_{5,3} \geq 120; c&#039;_{6,3} \geq &lt;br /&gt;
336$$ which gives the right lower bounds for $n=2,3$, but is slightly &lt;br /&gt;
off for $n=4,5$.  Asymptotically, Stirling&#039;s formula and \eqref{cn3-low} then&lt;br /&gt;
give the lower bound \eqref{cpn3} with $C = \frac{3}{2} \times \sqrt{\frac{9}{4\pi}}$, which is asymptotically $50\%$ better than the bound \eqref{cin}.&lt;br /&gt;
&lt;br /&gt;
The work of Chv\&#039;{a}tal \cite{chvatal1} &lt;br /&gt;
already contained a refinement of this idea&lt;br /&gt;
which we here translate into the usual notation of coding theory:&lt;br /&gt;
Let $A(n,d)$ denote the size of the largest binary code of length $n$&lt;br /&gt;
and minimal distance $d$.&lt;br /&gt;
&lt;br /&gt;
Then &lt;br /&gt;
\begin{equation}\label{cnchvatal}&lt;br /&gt;
c&#039;_{n,3}\geq \max_k \left( \sum_{j=0}^k \binom{n}{j} A(n-j, k-j+1)\right).&lt;br /&gt;
\end{equation}&lt;br /&gt;
&lt;br /&gt;
With the following values for $A(n,d)$:&lt;br /&gt;
{\tiny{&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llllllll}&lt;br /&gt;
A(1,1)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(2,1)=4&amp;amp; A(2,2)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(3,1)=8&amp;amp;A(3,2)=4&amp;amp;A(3,3)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(4,1)=16&amp;amp;A(4,2)=8&amp;amp; A(4,3)=2&amp;amp; A(4,4)=2&amp;amp;&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(5,1)=32&amp;amp;A(5,2)=16&amp;amp; A(5,3)=4&amp;amp; A(5,4)=2&amp;amp;A(5,5)=2&amp;amp;&amp;amp;&amp;amp;\\&lt;br /&gt;
A(6,1)=64&amp;amp;A(6,2)=32&amp;amp; A(6,3)=8&amp;amp; A(6,4)=4&amp;amp;A(6,5)=2&amp;amp;A(6,6)=2&amp;amp;&amp;amp;\\&lt;br /&gt;
A(7,1)=128&amp;amp;A(7,2)=64&amp;amp; A(7,3)=16&amp;amp; A(7,4)=8&amp;amp;A(7,5)=2&amp;amp;A(7,6)=2&amp;amp;A(7,7)=2&amp;amp;\\&lt;br /&gt;
A(8,1)=256&amp;amp;A(8,2)=128&amp;amp; A(8,3)=20&amp;amp; A(8,4)=16&amp;amp;A(8,5)=4&amp;amp;A(8,6)=2&lt;br /&gt;
&amp;amp;A(8,7)=2&amp;amp;A(8,8)=2\\&lt;br /&gt;
A(9,1)=512&amp;amp;A(9,2)=256&amp;amp; A(9,3)=40&amp;amp; A(9,4)=20&amp;amp;A(9,5)=6&amp;amp;A(9,6)=4&lt;br /&gt;
&amp;amp;A(9,7)=2&amp;amp;A(9,8)=2\\&lt;br /&gt;
A(10,1)=1024&amp;amp;A(10,2)=512&amp;amp; A(10,3)=72&amp;amp; A(10,4)=40&amp;amp;A(10,5)=12&amp;amp;A(10,6)=6&lt;br /&gt;
&amp;amp;A(10,7)=2&amp;amp;A(10,8)=2\\&lt;br /&gt;
A(11,1)=2048&amp;amp;A(11,2)=1024&amp;amp; A(11,3)=144&amp;amp; A(11,4)=72&amp;amp;A(11,5)=24&amp;amp;A(11,6)=12&lt;br /&gt;
&amp;amp;A(11,7)=2&amp;amp;A(11,8)=2\\&lt;br /&gt;
A(12,1)=4096&amp;amp;A(12,2)=2048&amp;amp; A(12,3)=256&amp;amp; A(12,4)=144&amp;amp;A(12,5)=32&amp;amp;A(12,6)=24&lt;br /&gt;
&amp;amp;A(12,7)=4&amp;amp;A(12,8)=2\\&lt;br /&gt;
A(13,1)=8192&amp;amp;A(13,2)=4096&amp;amp; A(13,3)=512&amp;amp; A(13,4)=256&amp;amp;A(13,5)=64&amp;amp;A(12,6)=32&lt;br /&gt;
&amp;amp;A(13,7)=8&amp;amp;A(13,8)=4\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Generally, $A(n,1)=2^n, A(n,2)=2^{n-1}, A(n-1,2e-1)=A(n,2e), A(n,d)=2$, &lt;br /&gt;
if $d&amp;gt;\frac{2n}{3}$.&lt;br /&gt;
The values were taken or derived from Andries Brower&#039;s table at&lt;br /&gt;
\centerline{\tt http://www.win.tue.nl/$\sim$aeb/codes/binary-1.html}&lt;br /&gt;
\textbf{include to references? or other book with explicit values of $A(n,d)$ }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For  $c&#039;_{n,3}$ we obtain the following lower bounds:&lt;br /&gt;
with $k=2$&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{4,3}&amp;amp;\geq &amp;amp;\binom{4}{0}A(4,3)+\binom{4}{1}A(3,2)+\binom{4}{2}A(2,1)&lt;br /&gt;
=1\cdot 2+4 \cdot 4+6\cdot 4&amp;amp;=42.\\&lt;br /&gt;
c&#039;_{5,3}&amp;amp;\geq &amp;amp;\binom{5}{0}A(5,3)+\binom{5}{1}A(4,2)+\binom{5}{2}A(3,1)&lt;br /&gt;
=1\cdot 4+5 \cdot 8+10\cdot 8&amp;amp;=124.\\&lt;br /&gt;
c&#039;_{6,3}&amp;amp;\geq &amp;amp;\binom{6}{0}A(6,3)+\binom{6}{1}A(5,2)+\binom{6}{2}A(4,1)&lt;br /&gt;
=1\cdot 8+6 \cdot 16+15\cdot 16&amp;amp;=344.&lt;br /&gt;
\end{array}&lt;br /&gt;
\]&lt;br /&gt;
With k=3&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{7,3}&amp;amp;\geq&amp;amp; \binom{7}{0}A(7,4)+\binom{7}{1}A(6,3)+\binom{7}{2}A(5,2)&lt;br /&gt;
+ \binom{7}{3}A(4,1)&amp;amp;=960.\\&lt;br /&gt;
c&#039;_{8,3}&amp;amp;\geq &amp;amp;\binom{8}{0}A(8,4)+\binom{8}{1}A(7,3)+\binom{8}{2}A(6,2)&lt;br /&gt;
+ \binom{8}{3}A(5,1)&amp;amp;=2832.\\&lt;br /&gt;
c&#039;_{9,3}&amp;amp;\geq &amp;amp; \binom{9}{0}A(9,4)+\binom{9}{1}A(8,3)+\binom{9}{2}A(7,2)&lt;br /&gt;
+ \binom{9}{3}A(6,1)&amp;amp;=7880.&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With k=4&lt;br /&gt;
\[&lt;br /&gt;
\begin{array}{llll}&lt;br /&gt;
c&#039;_{10,3}&amp;amp;\geq &amp;amp;\binom{10}{0}A(10,5)+\binom{10}{1}A(9,4)+\binom{10}{2}A(8,3)&lt;br /&gt;
+ \binom{10}{3}A(7,2)+\binom{10}{4}A(6,1)&amp;amp;=22232.\\&lt;br /&gt;
c&#039;_{11,3}&amp;amp;\geq &amp;amp;\binom{11}{0}A(11,5)+\binom{11}{1}A(10,4)+\binom{11}{2}A(9,3)&lt;br /&gt;
+ \binom{11}{3}A(8,2)+\binom{11}{4}A(7,1)&amp;amp;=66024.\\&lt;br /&gt;
c&#039;_{12,3}&amp;amp;\geq &amp;amp;\binom{12}{0}A(12,5)+\binom{12}{1}A(11,4)+\binom{12}{2}A(10,3)&lt;br /&gt;
+ \binom{12}{3}A(9,2)+\binom{12}{4}A(8,1)&amp;amp;=188688.\\&lt;br /&gt;
\end{array}\]&lt;br /&gt;
With $k=5$&lt;br /&gt;
\[ c&#039;_{13,3}\geq 539168.\]&lt;br /&gt;
&lt;br /&gt;
It should be pointed out that these bounds are even numbers, so that &lt;br /&gt;
$c&#039;_{4,3}=43$ shows that one cannot generally expect this lower bound &lt;br /&gt;
gives the optimum.&lt;br /&gt;
&lt;br /&gt;
The maximum value  appears to occur for $k=\lfloor\frac{n+2}{3}\rfloor$, &lt;br /&gt;
so that using &lt;br /&gt;
Stirling&#039;s formula and explicit bounds on $A(n,d)$ the &lt;br /&gt;
best possible value known to date&lt;br /&gt;
of the constant $C$ in &lt;br /&gt;
equation \eqref{cpn3} can be worked out, but we refrain from doing this here.&lt;br /&gt;
Using the Singleton bound $A(n,d)\leq 2^{n-d+1}$ Chv\&#039;{a}tal  &lt;br /&gt;
\cite{chvatal1} proved that the expression on the right hand side of&lt;br /&gt;
\eqref{cnchvatal} is also &lt;br /&gt;
$O\left( \frac{3^n}{\sqrt{n}}\right)$, so that the refinement described &lt;br /&gt;
above gains a constant factor over the initial construction only.&lt;br /&gt;
 &lt;br /&gt;
For $n=4$ the above does not yet give the exact value.&lt;br /&gt;
The value $c&#039;_{4,3}=43$ was first proven by Chandra \cite{chandra}.&lt;br /&gt;
A uniform way of describing examples for the optimum values of &lt;br /&gt;
$c&#039;_{4,3}=43$ and $c&#039;_{5,3}=124$ is the following:&lt;br /&gt;
&lt;br /&gt;
Let us consider the sets $$ A := S_{i-1,n} &lt;br /&gt;
\cup S_{i,n}^e \cup A&#039;$$ where $A&#039; \subset S_{i+1,n}$ has the property &lt;br /&gt;
that any two elements in $A&#039;$ are separated by a Hamming distance of at &lt;br /&gt;
least three, or have a Hamming distance of exactly one but their &lt;br /&gt;
midpoint lies in $S_{i,n}^o$. By the previous discussion we see that &lt;br /&gt;
this is a Moser set, and we have the lower bound &lt;br /&gt;
\begin{equation}\label{cnn}&lt;br /&gt;
c&#039;_{n,3} \geq \binom{n+1}{i} 2^{i-1} + |A&#039;|.&lt;br /&gt;
\end{equation} This gives some improved lower bounds for $c&#039;_{n,3}$:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize} \item By taking $n=4$, $i=3$, and $A&#039; = \{ 1111, 3331, &lt;br /&gt;
3333\}$, we obtain $c&#039;_{4,3} \geq 43$; \item By taking $n=5$, $i=4$, and &lt;br /&gt;
$A&#039; = \{ 11111, 11333, 33311, 33331 \}$, we obtain $c&#039;_{5,3} \geq 124$. &lt;br /&gt;
\item By taking $n=6$, $i=5$, and $A&#039; = \{ 111111, 111113, 111331, &lt;br /&gt;
111333, 331111, 331113\}$, we obtain $c&#039;_{6,3} \geq 342$. \end{itemize}&lt;br /&gt;
&lt;br /&gt;
This gives the lower bounds in Theorem \ref{moser} up to $n=5$, but &lt;br /&gt;
the bound for $n=6$ is inferior to the lower bound $c&#039;_{6,3}\geq 344$ given above. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
\subsection{Higher $k$ values}&lt;br /&gt;
One can consider subsets of $[k]{}^n$ that contain no geometric lines.  Section \ref{moser-lower-sec} has considered the case $k=3$.  Let $c&#039;_{n,k}$ be the greatest number of points in $[k]{}^n$ with no geometric line.  For example, $c&#039;_{n,3} = c&#039;_n$.  We have the following lower bounds:&lt;br /&gt;
&lt;br /&gt;
$c&#039;_{n,4} \ge \binom{n}{n/2}2^n$.&lt;br /&gt;
The set of points with $a$ $1$s,$b$ $2$s,$c$ $3$s and $d$ $4$s, where $a+d$ has the constant value $n/2$, does not form geometric lines because points at the ends of a geometric line have more $a$ or $d$ values than point in the middle of the line.&lt;br /&gt;
&lt;br /&gt;
One can show a lower bound that, asymptotically, is twice as large.  Take all points with $a$ $1$s, $b$ $2$s, $c$ $3$s and $d$ $4$s, for which:&lt;br /&gt;
&lt;br /&gt;
\begin{itemize}&lt;br /&gt;
\item Either $a+d = q$ or $q-1$, $a$ and $b$ have the same parity; or&lt;br /&gt;
\item $a+d = q-2$ or $q-3$, $a$ and $b$ have opposite parity.&lt;br /&gt;
\end{itemize}&lt;br /&gt;
&lt;br /&gt;
This includes half the points of four adjacent layers, and therefore may include $(1+o(1))\binom{n}{n/2}2^{n+1}$ points.&lt;br /&gt;
&lt;br /&gt;
We also have a DHJ(3)-like lower bound for $c&#039;_{n,5}$, namely $c&#039;_{n,5} = 5^{n-O(\sqrt{\log n})}$.&lt;br /&gt;
Consider points with $a$ $1$s, $b$ $2$s, $c$ $3$s, $d$ $4$s and $e$ $5$s.  For each point, take the value $a+e+2(b+d)+3c$.  The first three points in any geometric line give values that form an arithmetic progression of length three.  &lt;br /&gt;
&lt;br /&gt;
Select a set of integers with no arithmetic progression of length 3.  Select all points whose value belongs to that sequence; there will be no geometric line among those points.  By Behrend theory, it is possible to choose these points with density $\exp{-O(\sqrt{\log n})}$.&lt;br /&gt;
&lt;br /&gt;
The $k=6$ version of Moser implies DHJ(3). Indeed, any $k=3$ combinatorial line-free set can be &amp;quot;doubled up&amp;quot; into a $k=6$ geometric line-free set of the same density by pulling back the set from the map that maps 1, 2, 3, 4, 5, 6 to 1, 2, 3, 3, 2, 1 respectively; note that this map sends $k=6$ geometric lines to $k=3$ combinatorial lines.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=1929</id>
		<title>Fujimura.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Fujimura.tex&amp;diff=1929"/>
		<updated>2009-07-10T17:46:43Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{Fujimura&#039;s problem}\label{fujimura-sec}&lt;br /&gt;
Let $\overline{c}^\mu_n$ be the size of the largest subset of the trianglular grid &lt;br /&gt;
$$\Delta_n := \{(a,b,c)\in \mathbb{Z}^3_+ : a+b+c = n\}$$&lt;br /&gt;
which contains no equilateral triangles $(a+r,b,c), (a,b+r,c), (a,b,c+r)$ with $r&amp;gt;0$.  These are upward-pointing equilateral triangles.  We shall refer to such sets as &#039;triangle-free&#039;.&lt;br /&gt;
(Kobon Fujimura is a prolific inventor of puzzles, and in [http://www.puzzles.com/PuzzlePlayground/CoinsAndTriangles/CoinsAndTriangles.htm this] puzzle asked the related question of eliminating all equilateral triangles.)&lt;br /&gt;
&lt;br /&gt;
The following table was formed mostly by computer searches for optimal solutions. We also found human proofs for most of them (see [http://michaelnielsen.org/polymath1/index.php?title=Fujimura&#039;s_problem here]).&lt;br /&gt;
&lt;br /&gt;
\begin{figure}\centerline{&lt;br /&gt;
\begin{tabular}[l|lllllllllllll]&lt;br /&gt;
$n$                         &amp;amp; 0 &amp;amp; 1 &amp;amp; 2 &amp;amp; 3 &amp;amp; 4 &amp;amp;  5 &amp;amp;  6 &amp;amp;  7 &amp;amp;  8 &amp;amp;  9 &amp;amp; 10 &amp;amp; 11 &amp;amp; 12 &amp;amp; 13\\&lt;br /&gt;
\hline $\overline{c}^\mu_n$ &amp;amp; 1 &amp;amp; 2 &amp;amp; 4 &amp;amp; 6 &amp;amp; 9 &amp;amp; 12 &amp;amp; 15 &amp;amp; 18 &amp;amp; 22 &amp;amp; 26 &amp;amp; 31 &amp;amp; 35 &amp;amp; 40 &amp;amp; 46&lt;br /&gt;
\end{tabular}\label{lowFujimura}\caption{Fujimura numbers}}&lt;br /&gt;
&lt;br /&gt;
For any equilateral triangle $(a+r,b,c)$,$(a,b+r,c)$ and $(a,b,c+r)$, the value $y+2z$ forms an arithmetic progression of length 3. A Behrend set is a finite set of integers with no arithmetic progression of length 3 (see [http://arxiv.org/PS_cache/arxiv/pdf/0811/0811.3057v2.pdf this paper]). By looking at those triples (a,b,c) with a+2b inside a Behrend set, one can obtain the lower bound of $\overline{c}^\mu_n \geq n^2 exp(-O(\sqrt{\log n}))$.&lt;br /&gt;
&lt;br /&gt;
It can be shown that $\overline{c}^\mu_n = o(n^2)$ as $n \rightarrow \infty$, but the details are outside the scope of this paper.&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
	<entry>
		<id>https://michaelnielsen.org/polymath/index.php?title=Coloring.tex&amp;diff=1928</id>
		<title>Coloring.tex</title>
		<link rel="alternate" type="text/html" href="https://michaelnielsen.org/polymath/index.php?title=Coloring.tex&amp;diff=1928"/>
		<updated>2009-07-10T16:39:32Z</updated>

		<summary type="html">&lt;p&gt;Mpeake: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;\section{The coloring Hales-Jewett problem}\label{coloring-sec}&lt;br /&gt;
The Hales-Jewett theorem states that for every $k$ and every $r$ there exists an $n = HJ(k,r)$ such that if you colour the elements of $[k]{}^n$ with $r$ colours, then there must be a combinatorial line with all its points of the same colour.&lt;br /&gt;
&lt;br /&gt;
This is a consequence of the Density Hales-Jewett theorem, since there must be a set of density at least $r^{-1}$ of elements of $[k]{}^n$ all of whose elements have the same colour. It also follows from the Graham-Rothschild theorem [\cite{}].&lt;br /&gt;
By iterating the Hales-Jewett theorem, one can also show that one of the color classes contains an $m$-dimensional combinatorial subspace, if $n$ is sufficiently large depending on $k$, $r$ and $m$.&lt;br /&gt;
&lt;br /&gt;
A related idea is that of the Van der Waerden number $W(k,r)$ [\cite{}], which is the length of the longest sequence $1,2,\ldots,n$ which can be $r$-coloured without a monochromatic arithmetic progression of length $k$.  These numbers were used in this project to construct $r$-colourings of $[k]{}^m$ without combinatorial lines, and so provide new lower bounds for $HJ(k,r)$.&lt;br /&gt;
&lt;br /&gt;
\begin{lemma} $HJ(k,r) \ge \lfloor (W(k,r)-1)/(k-1)\rfloor$ \end{lemma}&lt;br /&gt;
\begin{proof}&lt;br /&gt;
Let $m = \lfloor (W(k,r)-1)/(k-1) \rfloor$.  Suppose we have a Van der Warden colouring of $1, 2, \ldots W(k,r)$.  Give each point $(a_1,a_2,\ldots,a_m) \in [k]{}^m$ the colour that corresponds to $1+\sum a_j$.  The points of a combinatorial line give sums that form an arithmetic progression, and will therefore not be monochromatic.&lt;br /&gt;
\end{proof}&lt;br /&gt;
&lt;br /&gt;
A recent table of lower bounds for the Van der Waerden numbers is at this website: [http://www.st.ewi.tudelft.nl/sat/slides/waerden.pdf].&lt;br /&gt;
These numbers were used to produce the following table of lower bounds for colouring Hales-Jewett numbers.&lt;br /&gt;
&lt;br /&gt;
\begin{figure}[tb] \centerline{\begin{tabular}[l|lllll]&lt;br /&gt;
k\r &amp;amp; 2    &amp;amp; 3     &amp;amp; 4     &amp;amp; 5     &amp;amp; 6      \\&lt;br /&gt;
\hline&lt;br /&gt;
3   &amp;amp;      &amp;amp; 13    &amp;amp; 37    &amp;amp; 84    &amp;amp; 103    \\&lt;br /&gt;
4   &amp;amp; 11   &amp;amp; 97    &amp;amp; 349   &amp;amp; 751   &amp;amp; 3259   \\&lt;br /&gt;
5   &amp;amp; 59   &amp;amp; 302   &amp;amp; 2609  &amp;amp; 6011  &amp;amp; 14173  \\&lt;br /&gt;
6   &amp;amp; 226  &amp;amp; 1777  &amp;amp; 18061 &amp;amp; 49391 &amp;amp; 120097 \\&lt;br /&gt;
7   &amp;amp; 617  &amp;amp; 7309  &amp;amp; 64661 &amp;amp;       &amp;amp;        \\&lt;br /&gt;
8   &amp;amp; 1069 &amp;amp; 34057 &amp;amp;       &amp;amp;       &amp;amp;        \\&lt;br /&gt;
9   &amp;amp; 3389 &amp;amp;       &amp;amp;       &amp;amp;       &amp;amp;        &lt;br /&gt;
\end{tabular}}\caption{Lower bounds for colouring Hales-Jewett numbers &lt;br /&gt;
\label{HJcolour}\end{figure}&lt;/div&gt;</summary>
		<author><name>Mpeake</name></author>
	</entry>
</feed>