A refinement of the Cameron-Erdős Conjecture

Noga Alon, József Balogh, Robert Morris, Wojciech Samotij

Introduction

What is the structure of a typical set of integers, of a given density, which avoids a certain arithmetic sub-structure? This fundamental question underlies much of Additive Combinatorics, and has been most extensively studied when the forbidden structure is a kk-term arithmetic progression, see e.g. . General systems of linear equations have also been studied, beginning with Rado in 1933, and culminating in the recent advances of Green, Tao and Ziegler . The subject is extremely rich, and questions of this type have been attacked with tools from a wide variety of areas of mathematics, from Graph Theory to Number Theory, and from Ergodic Theory to Harmonic Analysis. See for an excellent introduction to the area.

In this paper we shall consider sum-free sets of integers, that is, sets of integers which contain no solution of the equation x+y=zx+y=z. It is easy to see that the odd numbers and the set {⌊n/2⌋+1,…,n}\{\lfloor n/2\rfloor+1,\ldots,n\} are the largest such subsets of [n]={1,…,n}[n]=\{1,\ldots,n\}. Both of these sets have ⌈n/2⌉\lceil n/2\rceil elements, and therefore there are at least 2⌈n/2⌉2^{\lceil n/2\rceil} sum-free sets in [n][n]. In 1990, Cameron and Erdős conjectured that this trivial lower bound is within a constant factor of the truth, that is, that the set [n][n] contains only O(2n/2)O(2^{n/2}) sum-free sets. Despite various attempts , their conjecture remained open for over ten years, until it was confirmed by Green and, independently, by Sapozhenko . We shall prove a natural generalization of the Cameron-Erdős Conjecture, by bounding the number of sum-free subsets of [n][n] of size mm, for all 1⩽m⩽⌈n/2⌉1\leqslant m\leqslant\lceil n/2\rceil. Moreover, we shall also give a quite precise structural description of almost all sum-free subsets of [n][n] of size m⩾Cnlog⁡nm\geqslant C\sqrt{n\log n}. Our proof uses a general bound on the number of independent sets of size mm in 3-uniform hypergraphs, proved in , which allows one to deduce asymptotic structural results in the sparse setting (in fact, for all m≫nm\gg\sqrt{n}) from stability results in the dense setting (see Theorem 2.1). The dense stability result we shall use (see Proposition 2.2) was proved by Green . The second main ingredient in the proofs of our main theorems will be some new bounds on the number of sets of integers with small sumset (see Theorems 1.3 and 1.4). Finally, we shall use Freiman’s 3k−43k-4 Theorem (see below) to count sets with an extremely small sumset.

For structural and enumerative results, such as our main theorem, results are known in only a few special cases. For example, Osthus, Prömel and Taraz proved that if m⩾(34+ε)n3/2log⁡nm\geqslant\big(\frac{\sqrt{3}}{4}+\varepsilon\big)n^{3/2}\sqrt{\log n}, then almost all triangle-free graphs with mm edges are bipartite, and that the constant 3/4\sqrt{3}/4 is best possible. This result can be seen as a sparse version of the classical theorem of Erdős, Kleitman and Rothschild , which states that almost all triangle-free graphs are bipartite. In , the authors proved a sparse analogue of the result of Green and Ruzsa mentioned above, by showing that if m⩾C(q)nlog⁡nm\geqslant C(q)\sqrt{n\log n}, then almost every sum-free mm-subset An mm-subset of a set XX is simply a subset of XX of size mm. of GG is contained in some maximum-size sum-free set. We remark that there are only at most ∣G∣|G| maximum-size sum-free subsets of such a group GG, and that moreover they admit an elegant description.

In this paper we shall be interested in the corresponding question for the set [n][n]. As noted above, Cameron and Erdős conjectured, and Green and Sapozhenko proved, that there are only O(2n/2)O(2^{n/2}) sum-free subsets of [n][n]. Our main result is the following ‘sparse analogue’ of this theorem.

If m⩾nm\geqslant\sqrt{n}, then Theorem 1.1 is sharp up to the value of CC, since in this case there is a constant c>0c>0 such that there are at least 2cn/m(n/2m)2^{cn/m}{n/2\choose m} sum-free mm-subsets of [n][n] (see Proposition 3.1). Note that if m⩽nm\leqslant\sqrt{n} then the result is trivial, since in this case our upper bound is greater than (nm){n\choose m}. Since there are fewer than 2n/32^{n/3} subsets of [n][n] with at most n/100n/100 elements, Theorem 1.1 easily implies the Cameron-Erdős Conjecture. However, Theorem 1.1 only implies that there are O(2n/2)O(2^{n/2}) sum-free subsets of [n][n], whereas Green and Sapozhenko proved that there are asymptotically c(n)2n/2c(n)2^{n/2} such sets, where c(n)c(n) takes two different constant values according to whether nn is even or odd. Since for us the parity of nn will not matter, we shall assume for simplicity throughout the paper that nn is even; the proof in the case nn is odd is identical.

We shall also prove the following structural description of a typical sum-free mm-subset of [n][n]. Let OnO_{n} denote the set of odd numbers in [n][n].

where S(I)={x∈I:x⩽n/2}S(I)=\{x\in I:x\leqslant n/2\}, and ω(n)→∞\omega(n)\to\infty arbitrarily slowly as n→∞n\to\infty.

We remark that the upper bounds on ∣S(I)∣|S(I)| and k(I):=∑a∈S(I)(n/2−a)k(I):=\sum_{a\in S(I)}(n/2-a) in Theorem 1.2 are sharp up to a constant factor (see Section 6). Indeed, we shall show that if m=o(n)m=o(n), then almost all sum-free mm-sets I⊂[n]I\subset[n] have ∣S(I)∣=Ω(n/m)|S(I)|=\Omega(n/m) and k(I)=Ω(n3/m3)k(I)=\Omega(n^{3}/m^{3}).

Our proof of Theorems 1.1 and 1.2 has two main components. The first is a bound on the number of independent mm-sets in 3-uniform hypergraphs (see Theorem 2.1), which was proved in , and used there to determine the asymptotic number of sum-free mm-subsets of a finite Abelian group GG such that ∣G∣|G| has a prime factor q≡2(mod3)q\equiv 2\pmod{3}, for every m⩾C(q)nlog⁡nm\geqslant C(q)\sqrt{n\log n}. Using this theorem, together with a stability result from (which follows from a result of Lev, Łuczak and Schoen ) it will be straightforward to bound the number of sum-free mm-sets which contain at least δm\delta m even numbers, and at least δm\delta m elements less than n/2n/2.

The second component involves counting restricted integer partitions with small sumset. Recall that p(k)p(k) denotes the number of integer partitions of kk, so, for example, p(3)=3p(3)=3 since 3=2+1=1+1+13=2+1=1+1+1. In 1918, Hardy and Ramanujan obtained an asymptotic formula for p(k)p(k), proving that

Despite the enormous interest in such problems, very little seems to be known about the number of different sets with small sumset (see , for example). The following classical result, proved by Freiman in 1959, implies a bound for sets with so-called ‘doubling constant’ less than 33.

Theorems 1.3 and 1.4 are sufficient for our purposes; however, we believe the following stronger bound to be true.

For every δ>0\delta>0, there exists C>0C>0 such that the following holds. If m⩾CNm\geqslant C\sqrt{N} and m⩾Clog⁡nm\geqslant C\log n, then there are at most

sets S⊂[n]S\subset[n] with ∣S∣=m|S|=m and ∣S+S∣⩽N|S+S|\leqslant N.

Since ∣S+S∣⩽N|S+S|\leqslant N for every mm-subset S⊂[N/2]S\subset[N/2], the conjecture (if true) is close to optimal. Note that the condition m⩾Clog⁡nm\geqslant C\log n implies that n⩽2m/Cn\leqslant 2^{m/C}, and thus guarantees that the number of translates of a given set SS is negligible.

The rest of the paper is organised as follows. In Section 2, we shall recall the general structural theorem from and deduce from it a bound on the number of sum-free mm-sets which contain at least δm\delta m even numbers, and at least δm\delta m elements less than n/2n/2. In Section 3 we shall prove a lower bound on the number of sum-free mm-subsets of [n][n], and in Section 4 we shall use Janson’s inequality to bound the number of sum-free sets which contain at most δm\delta m even numbers. In Section 5 we shall prove Theorems 1.3 and 1.4. Finally, in Section 6, we shall prove Theorems 1.1 and 1.2.

Preliminaries

In this section we shall recall some of the main tools we shall use in the proofs of Theorems 1.1 and 1.2, and deduce that almost all sum-free mm-sets I⊂[n]I\subset[n] either contain at most δm\delta m even elements, or satisfy ∣I∖B∣⩽δm|I\setminus B|\leqslant\delta m for some interval BB of length n/2n/2.

Roughly speaking, a sequence of hypergraphs (Hn)(\mathcal{H}_{n}) is (α,B)(\alpha,\mathcal{B})-stable if for every A⊆V(Hn)A\subseteq V(\mathcal{H}_{n}) such that ∣A∣|A| is almost as large as the independence number for Hn\mathcal{H}_{n}, the set AA is either very close to some ‘extremal’ set B∈BnB\in\mathcal{B}_{n}, or it contains many (i.e., a positive fraction of all) edges of Hn\mathcal{H}_{n}.

Finally, for each T⊂V(Hn)T\subset V(\mathcal{H}_{n}), let dHn(T)=∣{e∈Hn : T⊂e}∣d_{\mathcal{H}_{n}}(T)=\big|\big\{e\in\mathcal{H}_{n}\,:\,T\subset e\big\}\big| and define

Note that if Hn\mathcal{H}_{n} encodes Schur triples in [n][n], then Δ2(Hn)⩽2\Delta_{2}(\mathcal{H}_{n})\leqslant 2.

The following theorem, which was proved in , shows that if H\mathcal{H} is (α,B)(\alpha,\mathcal{B})-stable and m≫nm\gg\sqrt{n}, then there are very few independent sets (i.e., sum-free sets) in Hn\mathcal{H}_{n} of size mm which are far from every set B∈BnB\in\mathcal{B}_{n}.

for some ε=ε(H,δ)>0\varepsilon=\varepsilon(\mathcal{H},\delta)>0.

In the next subsection, we shall use this theorem, together with a result of Green , to deduce an approximate version of Theorem 1.2.

2. Green’s stability theorem

where, as before, OnO_{n} denotes the odd numbers in [n][n].

For any γ>0\gamma>0, if β=β(γ)>0\beta=\beta(\gamma)>0 is sufficiently small, then the following holds. If A⊂[n]A\subset[n] with ∣A∣⩾(1/2−β)n|A|\geqslant(1/2-\beta)n, then either AA contains at least βn2\beta n^{2} Schur triples, or ∣A∖B∣⩽γn|A\setminus B|\leqslant\gamma n for some B∈BnB\in\mathcal{B}_{n}.

Using Theorem 2.1 and Proposition 2.2, we easily obtain the following corollary.

sum-free subsets I⊂[n]I\subset[n] of size mm such that ∣I∖B∣>δm|I\setminus B|>\delta m for every B∈BnB\in\mathcal{B}_{n}.

In particular, for almost every sum-free set I⊂[n]I\subset[n] of size mm, either ∣I∖On∣⩽δm|I\setminus O_{n}|\leqslant\delta m, or ∣I∖B∣⩽δm|I\setminus B|\leqslant\delta m for some interval BB of length n/2n/2.

Now, by Theorem 2.1, if C=C(δ)>0C=C(\delta)>0 is sufficiently large, and m⩾Cnm\geqslant C\sqrt{n}, then

for some ε=ε(δ)>0\varepsilon=\varepsilon(\delta)>0. Since there are at least (n/2m){n/2\choose m} sum-free mm-subsets of [n][n], it follows that for almost every such set II we have ∣I∖B∣⩽δn|I\setminus B|\leqslant\delta n for some B∈BnB\in\mathcal{B}_{n}, as required. ∎

We remark that it will be relatively straightforward to count the sets II that contain fewer than δm\delta m even elements, using Janson’s inequality (see Section 4), and those that contain more than δm\delta m elements less than n/2n/2, using induction on nn (see Section 6). Thus, Proposition 2.3 essentially reduces the problem of counting sum-free mm-sets in [n][n] to counting the sum-free sets that are almost contained in the interval {n/2+1,…,n}\{n/2+1,\ldots,n\}.

3. Binomial coefficient inequalities

We shall make frequent use of some simple inequalities involving binomial coefficients; for convenience, we collect them here. Note first that (ab)⩽(eab)b{a\choose b}\leqslant\big(\frac{ea}{b}\big)^{b} and that (ab){a\choose b} is increasing in aa. Next, observe that if a>b>c⩾0a>b>c\geqslant 0, then

We shall also use several times the observation that

where Γ(⋅)\Gamma(\cdot) is Euler’s Gamma function, for some C>c>0C>c>0 and every a⩾1a\geqslant 1 and b>0b>0.

For other standard probabilistic bounds, such as the FKG inequality and Chernoff’s inequality, we refer the reader to .

A lower bound on the number of sum-free sets

In this section we shall prove the following simple proposition, which shows that the bound in Theorem 1.1 is tight.

If m⩾nm\geqslant\sqrt{n}, then there are 2Ω(n/m)(n/2m)2^{\Omega(n/m)}{n/2\choose m} sum-free subsets of [n][n] of size mm.

Let c>0c>0 be a sufficiently small absolute constant and set a=cn2/m2a=cn^{2}/m^{2}. We claim that if SS is a uniformly chosen random mm-subset of U={n/2−a,…,n}U=\{n/2-a,\ldots,n\}, then

First observe that there are at most a2+aa^{2}+a triples {x,y,z}\{x,y,z\} in UU with x+y=zx+y=z, and at most a+1a+1 pairs {x,y}\{x,y\} in UU with 2x=y2x=y. Thus, by the FKG inequality,

since c>0c>0 is sufficiently small, by our choices of aa and pp. Next, note that, by Chernoff’s inequality,

which proves (5). Hence the number of sum-free mm-sets in {n/2−a,…,n}\{n/2-a,\ldots,n\} is at least

where the inequality follows from (2) and the fact that (1+2an)⩾ea/n\big(1+\frac{2a}{n}\big)\geqslant e^{a/n}. ∎

Janson argument

In this section, we shall count the sum-free sets that have few even elements. Recall that OnO_{n} denotes the odd numbers in [n][n].

We remark that an argument similar to the one presented in this section was used in in a somewhat more general context, see also . Indeed, the following result was proved in .

There exists constants δ>0\delta>0 and C>0C>0 such that the following holds for every m⩾Cnlog⁡nm\geqslant C\sqrt{n\log n}. There are at most

sum-free subsets I⊂[n]I\subset[n] with ∣I∣=m|I|=m and ∣I∖On∣⩽δm|I\setminus O_{n}|\leqslant\delta m.

Proposition 4.2 clearly implies Proposition 4.1 in the case m⩾Cnlog⁡nm\geqslant C\sqrt{n\log n}. Furthermore, the proposition is trivial if m⩽O(n)m\leqslant O\big(\sqrt{n}\big), since then the claimed upper bound is greater than (nm)\binom{n}{m}. Thus, we need only consider the case Cn⩽m⩽Cnlog⁡nC\sqrt{n}\leqslant m\leqslant C\sqrt{n\log n}.

Recall the following well-known result, which is an easy corollary of Janson’s inequality (see ), combined with Pittel’s inequality (see ). We refer the reader to [3, Section 5] for a proof.

Suppose that {Ui}i∈J\{U_{i}\}_{i\in J} is a family of subsets of an nn-element set XX and let m∈{0,…,n}m\in\{0,\ldots,n\}. Let

where the second sum is over ordered pairs (i,j)(i,j) such that i≠ji\neq j and Ui∩Uj≠∅U_{i}\cap U_{j}\neq\emptyset. Let RR be a uniformly chosen random mm-subset of XX. Then

We now turn to the proof of Proposition 4.1.

Let C>0C>0 be a sufficiently large constant, and recall that we may assume that Cn⩽m⩽Cnlog⁡nC\sqrt{n}\leqslant m\leqslant C\sqrt{n\log n}. We begin by proving the following claim.

For some constant c>0c>0, there are at most

sum-free mm-sets I⊂[n]I\subset[n] with ∣I∖On∣=k⩽δm|I\setminus O_{n}|=k\leqslant\delta m.

Let k⩽δmk\leqslant\delta m and let SS be an arbitrary kk-subset of [n]∖On[n]\setminus O_{n}. Let {Ui}i∈J\{U_{i}\}_{i\in J} be the collection of pairs {x,y}⊂On\{x,y\}\subset O_{n} such that either x+y=zx+y=z or x−y=zx-y=z for some z∈Sz\in S. In order to bound the number of sum-free mm-sets II with I∖On=SI\setminus O_{n}=S, we shall apply the Hypergeometric Janson Inequality to the collection {Ui}i∈J\{U_{i}\}_{i\in J} and the set X=OnX=O_{n}, with RR a uniformly chosen random (m−k)(m-k)-subset of XX. Note that if S∪RS\cup R is sum-free, then Ui⊈RU_{i}\nsubseteq R for all i∈Ji\in J.

Let μ\mu and Δ\Delta be the quantities defined in the statement of Lemma 4.3, and observe that for every even number zz, there are either at least n/10n/10 pairs {x,y}⊂On\{x,y\}\subset O_{n} with x+y=zx+y=z (if z⩾n/2z\geqslant n/2), or at least n/5n/5 such pairs with x−y=zx-y=z (if z⩽n/2z\leqslant n/2). Thus nk/20⩽∣J∣⩽nknk/20\leqslant|J|\leqslant nk, since each pair can be counted at most twice. Observe that each vertex x∈Onx\in O_{n} lies in at most 2k2k of the UiU_{i}. Hence

By the Hypergeometric Janson Inequality, if c=10−4c=10^{-4} then there are at most

sets R⊂OnR\subset O_{n} of size m−km-k such that S∪RS\cup R is sum-free. Summing over choices of SS, we obtain the claimed bound. ∎

Now, by (2) and since m⩽Cnlog⁡n⩽n/6m\leqslant C\sqrt{n\log n}\leqslant n/6, if k⩾n/mk\geqslant n/m then (6) is at most

assuming δ>0\delta>0 is sufficiently small. However, if k⩽n/mk\leqslant n/m then (6) is at most

To see the final inequality, observe that (since xe−x/n⩽nxe^{-x/n}\leqslant n) we have me−cm2/n⩽n/cmme^{-cm^{2}/n}\leqslant n/cm, and use the fact that k↦(a/k)kk\mapsto(a/k)^{k} is maximized when k=a/ek=a/e. This completes the proof of Proposition 4.1.

Partitions and sumsets

In this section we shall prove Theorems 1.3 and 1.4. Recall that

To prove this, observe that there are ∣S∣⋅∣S+S∣|S|\cdot|S+S| pairs (a,b)(a,b) with a∈Sa\in S and b∈S+Sb\in S+S, and that if (8) holds then a+y=ba+y=b for at least (1−δ)∣S∣(1-\delta)|S| pairs (a,b)∈S×(S+S)(a,b)\in S\times(S+S). For each pair (a,b)(a,b) there is at most one such yy, and so there are at most ∣S∣⋅∣S+S∣(1−δ)∣S∣\frac{|S|\cdot|S+S|}{(1-\delta)|S|} elements yy which satisfy (8), as claimed.

and hence span(Bj)≈span(Sj)\textup{span}(B_{j})\approx\textup{span}(S_{j}). This would imply that min⁡(Sj)+Bj\min(S_{j})+B_{j} and max⁡(Sj)+Bj\max(S_{j})+B_{j} are (almost) disjoint, since

But now, if Bj+Sj≈Sj+SjB_{j}+S_{j}\approx S_{j}+S_{j}, then

Let c⩾c0>0c\geqslant c_{0}>0 and δ>0\delta>0, and note that without loss of generality we may assume that δ=δ(c0)\delta=\delta(c_{0}) is sufficiently small. Let C=C(δ,c0)>0C=C(\delta,c_{0})>0 be sufficiently large; with foresight, we remark that C=1/δ13C=1/\delta^{13} will suffice. Note also that if c⩾3e/2c\geqslant 3e/2, then the theorem follows immediately from Lemma 5.1; we shall therefore assume that c<3e/2c<3e/2.

Case 1: max⁡{t∗,t∗}⩾1/δ2\max\big\{t^{*},t_{*}\big\}\geqslant 1/\delta^{2}.

Case 2: max⁡{t∗,t∗}⩽1/δ2\max\big\{t^{*},t_{*}\big\}\leqslant 1/\delta^{2}.

where JJ was defined in (11), and define

But by (13) we have span(J)⩾δ(J∗+J∗)\textup{span}(J)\geqslant\sqrt{\delta}\big(J^{*}+J_{*}\big), so (15) follows.

Now Sj⊂JS_{j}\subset J, and so 2⋅span(J)⩾span(Sj+Sj)2\cdot\textup{span}(J)\geqslant\textup{span}(S_{j}+S_{j}), which, together with (15), implies that

and hence ∣A∣⩾(1−δ5)∣Sj∣|A|\geqslant(1-\delta^{5})|S_{j}|. Let A∗=min⁡AA_{*}=\min A and A∗=max⁡AA^{*}=\max A, and consider the set

where the second inequality follows by (13), and the fact that 2⋅span(Sj)⩾span(J)2\cdot\textup{span}(S_{j})\geqslant\textup{span}(J). Thus, by (16),

and so ∣(A∗+Bj)∩(A∗+Bj)∣⩽∣Bj∣/2\left|\big(A_{*}+B_{j}\big)\cap\big(A^{*}+B_{j}\big)\right|\leqslant|B_{j}|/2, which easily implies the subclaim. ∎

Finally, observe that ∣D∖(Sj+Sj)∣⩽2δ∣Bj∣|D\setminus(S_{j}+S_{j})|\leqslant 2\delta|B_{j}| by the definition of AA. Hence

Thus, by the Claim, and setting q=∣Q∣q=|Q|, the number of choices for SS is at most

Finally, note that the summand in (17) is bounded above by

where γ=γ(δ,c0)→0\gamma=\gamma(\delta,c_{0})\to 0 as δ→0\delta\to 0 for any fixed c0>0c_{0}>0. Since we chose δ=δ(c0)\delta=\delta(c_{0}) to be sufficiently small, the theorem follows. ∎

The proof of Theorem 1.4 is almost identical to the proof of Theorem 1.3 given above; we need only to add the following observations: that Sj⊂BjS_{j}\subset B_{j}, and that aj+1∉Sja_{j+1}\not\in S_{j}.

We are therefore in the setting of Theorem 1.3, and hence we can repeat the proof above up to (17), except replacing δ\delta everywhere by δ3\delta^{3}. Using the observations that Sj⊂BjS_{j}\subset B_{j} and aj+1∉Sja_{j+1}\not\in S_{j}, we deduce that the number of choices for SS is at most

has size roughly 3∣Bj∣/23|B_{j}|/2, and so in this case the subclaim is sharp.

Proof of Theorems 1.1 and 1.2

We are now ready to prove Theorem 1.1, which generalizes the Cameron-Erdős Conjecture to sum-free sets of size mm, and its structural analogue, Theorem 1.2. Both theorems will follow from essentially the same proof; we shall first prove Theorem 1.1, and then point out how the proof can be adapted to deduce Theorem 1.2. As noted earlier, we shall for simplicity assume throughout that nn is even.

The proof is fairly long and technical so, in order to aid the reader, we shall start by giving a brief sketch. The argument is broken into a series of six claims, each relying on the earlier ones; the first five being relatively straightforward, and the last being somewhat more involved.

denote the collection of elements of II which are at most n/2n/2, as in the statement of Theorem 1.2. Moreover, given a set S⊂[n/2]S\subset[n/2], let S′={x∈S:x>n/4}S^{\prime}=\big\{x\in S:x>n/4\big\}.

The following claim follows easily from the Hypergeometric Janson Inequality.

sum-free mm-sets I⊂[n]I\subset[n] such that S(I)=SS(I)=S.

In the calculation below, we shall on several occasions wish to make the assumption that n−2m⩾δnn-2m\geqslant\delta n. The next claim deals with the complementary case.

We shall divide into two cases, depending on the size of S(I)∩[n/4]S(I)\cap[n/4].

where t=n/2−m⩽δnt=n/2-m\leqslant\delta n. By Claim 1, the right-hand side of (21) is an upper bound on the number of sum-free mm-sets I⊂[n]I\subset[n] with S(I)=SS(I)=S.

From now on we shall assume that n−2m⩾2δnn-2m\geqslant 2\delta n. Recall that Claim 1 allows us to count sum-free sets with at most δm\delta m elements less than n/2n/2. We shall use the induction hypothesis to count the sets II that have more than δm\delta m elements in [n/2][n/2].

There are at most δ⋅2Cn/m(n/2m)\delta\cdot 2^{Cn/m}{n/2\choose m} sum-free mm-sets I⊂[n]I\subset[n] with at least δm\delta m elements less than n/2n/2.

Recall that m⩾C1/3nm\geqslant C^{1/3}\sqrt{n} and that C=C(δ)>0C=C(\delta)>0 is sufficiently large. Thus, by Proposition 2.3, there exists ε=ε(δ)>0\varepsilon=\varepsilon(\delta)>0 such that all but 2−εm(n/2m)2^{-\varepsilon m}{n/2\choose m} sum-free mm-sets I⊂[n]I\subset[n] satisfy either ∣I∖On∣⩽δm|I\setminus O_{n}|\leqslant\delta m, or ∣I∖B∣⩽δm|I\setminus B|\leqslant\delta m for some interval BB of length n/2n/2. Moreover, since δ>0\delta>0 is sufficiently small, by Proposition 4.1 there are at most 2Cn/2m(n/2m)2^{Cn/2m}{n/2\choose m} sum-free mm-sets I⊂[n]I\subset[n] with ∣I∖On∣⩽δm|I\setminus O_{n}|\leqslant\delta m. We may therefore restrict our attention to the collection X\mathcal{X} of sum-free mm-sets I⊂[n]I\subset[n] that satisfy ∣I∖B∣⩽δ3m|I\setminus B|\leqslant\delta^{3}m for some interval BB of length n/2n/2.

First, we shall show that there are only few sets in X\mathcal{X} which contain more than δ3m\delta^{3}m elements less than n/2−2δ2nn/2-2\delta^{2}n. Indeed, such a set contains at most δ3m\delta^{3}m elements of the interval {n−2δ2n+1,…,n}\{n-2\delta^{2}n+1,\ldots,n\} and hence, by the induction hypothesis and (3), there are at most

such sets with s⩽δ3ms\leqslant\delta^{3}m elements greater than n−2δ2nn-2\delta^{2}n. Summing over ss, and recalling that n−2m⩾δnn-2m\geqslant\delta n, it follows that there are at most

such sets, which is at most δ2⋅2Cn/m(n/2m)\delta^{2}\cdot 2^{Cn/m}{n/2\choose m}, since δ>0\delta>0 was chosen sufficiently small and m⩾C1/3m\geqslant C^{1/3} is sufficiently large.

It only remains to count the sets in X\mathcal{X} which contain at least δm−δ3m>δm/2\delta m-\delta^{3}m>\delta m/2 elements of the interval {n/2−2δ2n,…,n/2}\{n/2-2\delta^{2}n,\ldots,n/2\}, and at most δ3m\delta^{3}m elements less than n/2−2δ2nn/2-2\delta^{2}n. Note that m⩽5δnm\leqslant 5\delta n (else there are no such sets), and so by (3) we have

such sum-free sets. But by (23) this is at most

so this completes the proof of the claim. ∎

From now on, we may restrict our attention to those sum-free subsets I⊂[n]I\subset[n] for which ∣S(I)∣⩽δ3m|S(I)|\leqslant\delta^{3}m. The remainder of the proof involves some careful counting using Theorems 1.3 and 1.4 and Lemma 5.1. We shall break up the calculation into three claims. In the first two, which are fairly straightforward, we count the sets II for which ∣S(I)∣|S(I)| is small (Claim 4) or ∑a∈S(I)(n/2−a)\sum_{a\in S(I)}(n/2-a) is large (Claim 5). Finally in Claim 6, which is much more delicate, we count the remaining sets.

Now, using (4) to bound the sum over kk, this is at most

The following claim now completes the proof of Theorem 1.1.

To prove (28), we shall partition into two sets by setting

In order to complete the calculation, we break into cases according to the order of magnitude of mm. We begin with the central range.

Case 1: Cnlog⁡n⩽m⩽δnC\sqrt{n\log n}\leqslant m\leqslant\delta n.

Thus, by Theorem 1.3 and (3), it follows that

By the same argument as before, this is at most

Putting together the various cases, we see that (28) is bounded above by

and since 2/3<3/2e2/3<3/2\sqrt{e}, this proves the claim for Cnlog⁡n⩽m⩽δnC\sqrt{n\log n}\leqslant m\leqslant\delta n.

We next observe that the case m⩽Cnlog⁡nm\leqslant C\sqrt{n\log n} can be easily reduced to the case above.

Case 2: C1/3n⩽m⩽Cnlog⁡nC^{1/3}\sqrt{n}\leqslant m\leqslant C\sqrt{n\log n}.

as claimed. This completes the proof of the claim for all C1/3n⩽m⩽δnC^{1/3}\sqrt{n}\leqslant m\leqslant\delta n.

Finally, we turn to the case m=Θ(n)m=\Theta(n). We shall assume first that m⩽n/4m\leqslant n/4, and then (in Case 4) show how the result for m>n/4m>n/4 follows by the same argument.

Case 3: δn⩽m⩽n/4\delta n\leqslant m\leqslant n/4.

The calculation in this case is similar to that in Case 1, except we shall use Theorem 1.4 in place of Theorem 1.3. Indeed, recall that C=C(δ)C=C(\delta) is sufficiently large, and observe that

For those with ∣S′+S′∣⩾∣S′∣/δ3|S^{\prime}+S^{\prime}|\geqslant|S^{\prime}|/\delta^{3}, we apply Lemma 5.1 to obtain, exactly as in (35), a bound of

The final inequality again follows by simple calculus: the left-hand side is bounded from above by its value with λ=3\lambda=3 and m=n/4m=n/4. Since 4/e3/2<3/2e4/e^{3/2}<3/2\sqrt{e}, the claim follows in this case also.

The proof is essentially complete; all that remains is to show that case m⩾n/4m\geqslant n/4 can be deduced easily from the case above.

Case 4: n/4⩽m⩽(1/2−δ)nn/4\leqslant m\leqslant(1/2-\delta)n.

as required. This completes the proof of Claim 6. ∎

We now sketch how the above proof may be adapted in order to prove Theorem 1.2.

Suppose first that m⩾(12−δ)nm\geqslant\big(\frac{1}{2}-\delta\big)n. Then, by the proof of Claim 2, there are o(n/2m)o{n/2\choose m} such sets with a(I)⩾ω=ω(n)a(I)\geqslant\sqrt{\omega}=\sqrt{\omega(n)}, which implies that ∣S(I)∣⩽ω|S(I)|\leqslant\sqrt{\omega} and k(I)⩽ωk(I)\leqslant\omega for almost every sum-free mm-set in [n][n], as required. Hence we may assume that m⩽(12−δ)nm\leqslant\big(\frac{1}{2}-\delta\big)n.

Next, we observe the following strengthening of Claim 3 when m⩾Cnlog⁡nm\geqslant C\sqrt{n\log n}.

If m⩾Cnlog⁡nm\geqslant C\sqrt{n\log n}, then there are o(n/2m)o{n/2\choose m} sum-free subsets I⊂[n]I\subset[n] of size mm with I⊄OnI\not\subset O_{n} and at least δm\delta m elements less than n/2n/2.

The proof is almost identical to that of Claim 3. The only difference is that when we bound the number of sum-free mm-sets II such that 1⩽∣I∖On∣⩽δm1\leqslant|I\setminus O_{n}|\leqslant\delta m, we replace Proposition 4.1 by Proposition 4.2, which holds for m⩾Cnlog⁡nm\geqslant C\sqrt{n\log n}, and implies that there are at most o(n/2m)o{n/2\choose m} such sets. When bounding the size of the collection X\mathcal{X} of sum-free mm-sets I⊂[n]I\subset[n] that satisfy ∣I∖B∣⩽δ3m|I\setminus B|\leqslant\delta^{3}m for some interval BB of length n/2n/2, we use (22) and note that

since δ3m>Cn/m\delta^{3}m>Cn/m for m⩾Cnlog⁡nm\geqslant C\sqrt{n\log n}. The rest of the proof is exactly the same. ∎

such sets. Now, recall that n−2m⩾δmn-2m\geqslant\delta m and note that (41) is decreasing exponentially in kk. Thus if m=o(n)m=o(n), then (41) is at most

and if m=Θ(n)m=\Theta(n) then (41) is at most

such sum-free sets II, as required. This completes the proof of Theorem 1.2. ∎

Acknowledgements

The third and fourth authors would like to thank Simon Griffiths and Gonzalo Fiz Pontiveros for several useful discussions.

References