Container method explained

The method of (hypergraph) containers is a powerful tool that can help characterize the typical structure and/or answer extremal questions about families of discrete objects with a prescribed set of local constraints. Such questions arise naturally in extremal graph theory, additive combinatorics, discrete geometry, coding theory, and Ramsey theory; they include some of the most classical problems in the associated fields.

These problems can be expressed as questions of the following form: given a hypergraph on finite vertex set with edge set (i.e. a collection of subsets of with some size constraints), what can we say about the independent sets of (i.e. those subsets of that contain no element of)? The hypergraph container lemma provides a method for tackling such questions.

History

One of the foundational problems of extremal graph theory, dating to work of Mantel in 1907 and Turán from the 1940s, asks to characterize those graphs that do not contain a copy of some fixed forbidden as a subgraph. In a different domain, one of the motivating questions in additive combinatorics is understanding how large a set of integers can be without containing a -term arithmetic progression, with upper bounds on this size given by Roth (

k=3

) and Szemerédi (general).

The method of containers (in graphs) was initially pioneered by Kleitman and Winston in 1980, who bounded the number of lattices[1] and graphs without 4-cycles.[2] Container-style lemmas were independently developed by multiple mathematicians in different contexts, notably including Sapozhenko, who initially used this approach in 2002-2003 to enumerate independent sets in regular graphs,[3] sum-free sets in abelian groups,[4] and study a variety of other enumeration problems

A generalization of these ideas to a hypergraph container lemma was devised independently by Saxton and Thomason[5] and Balogh, Morris, and Samotij[6] in 2015, inspired by a variety of previous related work.

Main idea and informal statement

Many problems in combinatorics can be recast as questions about independent sets in graphs and hypergraphs. For example, suppose we wish to understand subsets of integers to, which we denote by

[n]

that lack a -term arithmetic progression. These sets are exactly the independent sets in the -uniform hypergraph

H=(\{1,2,\ldots,n\},E)

, where is the collection of all -term arithmetic progressions in

\{1,2,\ldots,n\}

.

In the above (and many other) instances, there are usually two natural classes of problems posed about a hypergraph :

These problems are connected by a simple observation. Let

\alpha(H)

be the size of a largest independent set of and suppose

H

has

i(H)

independent sets. Then,

2\alpha(H)\lei(H)\le

\alpha(H)
\sum
r=0

{|V(H)|\chooser},

where the lower bound follows by taking all subsets of a maximum independent set. These bounds are relatively far away from each other unless

\alpha(H)

is very large, close to the number of vertices of the hypergraph. However, in many hypergraphs that naturally arise in combinatorial problems, we have reason to believe that the lower bound is closer to the true value; thus the primary goal is to improve the upper bounds on .

The hypergraph container lemma provides a powerful approach to understanding the structure and size of the family of independent sets in a hypergraph. At its core, the hypergraph container method enables us to extract from a hypergraph, a collection of containers, subsets of vertices that satisfy the following properties:

The name container alludes to this last condition. Such containers often provide an effective approach to characterizing the family of independent sets (subsets of the containers) and to enumerating the independent sets of a hypergraph (by simply considering all possible subsets of a container).

The hypergraph container lemma achieves the above container decomposition in two pieces. It constructs a deterministic function . Then, it provides an algorithm that extracts from each independent set in hypergraph, a relatively small collection of vertices

S\subsetI

, called a fingerprint, with the property that

S\subsetI\subsetS\cupf(S)

. Then, the containers are the collection of sets

S\cupf(S)

that arise in the above process, and the small size of the fingerprints provides good control on the number of such container sets.

Graph container algorithm

We first describe a method for showing strong upper bounds on the number of independent sets in a graph; this exposition is adapted from a survey of Samotij[7] about the graph container method, originally employed by Kleitman-Winston and Sapozhenko.

Notation

We use the following notation in the below section.

G=(V,E)

is a graph on

|V|=n

vertices, where the vertex set is equipped with (arbitrary) ordering

\{v1,\ldots,vn\}

.

\ell(G)

be the collection of independent sets of with size

i(G):=|\ell(G)|

. Let

i(G,r)

be the number of independent sets of size .

A\subsetV

is the ordering of the vertices in by their degree in the induced subgraph

G[A]

.

Kleitman-Winston algorithm

The following algorithm gives a small "fingerprint" for every independent set in a graph and a deterministic function of the fingerprint to construct a not-too-large subset that contains the entire independent set

Fix graph, independent set

I\in\ell(G)

and positive integer

q\le|I|

.
  1. Initialize: let

A=V(G),S=\emptyset

.
  1. Iterate for

s=1,2,\ldots,q

:
    • Construct the max-degree ordering of

A,(v1,\ldotsv|A|)

    • Find the minimal index

js

such that
v
js

\inI

(i.e. the vertex in of largest degree in induced subgraph)
    • Let

S\leftarrowS\cup

\{v
js

\},A\leftarrowA\backslash(\{v1,\ldots,

v
js

\}\cup

N(v
js

))

, where

N(v)

is the neighborhood of vertex

v

.
  1. Output the vector

(j1,\ldots,jq)

and the vertex set

A\capI

.

Analysis

By construction, the output of the above algorithm has property that

\{v
j1

,\ldots,

v
jq

\}\subsetI\subset

\{v
j1

,\ldots,

v
jq

\}\cup(A\capI)

, noting that

A\capI

is a vertex subset that is completely determined by

\{j1,\ldots,jq\}

and not otherwise a function of

I

. To emphasize this we will write

A=A(j1,\ldots,jq)

. We also observe that we can reconstruct the set

S=

\{v
j1

,\ldots,

v
jq

\}=S(j1,\ldotsjq)

in the above algorithm just from the vector

(j1,\ldots,jq)

.

This suggests that

S

might be a good choice of a fingerprint and

S(j1,\ldotsjq)\cupA(j1,\ldots,jq)

a good choice for a container. More precisely, we can bound the number of independent sets of

G

of some size

r\geq

as a sum over output sequences

(j1,\ldotsjq)

i(G,r)=

\sum
(j
q
s=1
s)

i(G[A(j1,\ldotsjq)],r-q)\le

\sum
(js)

{A(j1,\ldotsjq)\chooser-q}

,where we can sum across

r

to get a bound on the total number of independent sets of the graph:

i(G)=

q-1
\sum
r=0

{n\chooser}+

\sum
(j
q
s=1
s)

i(G[A(j1,\ldotsjq)])\le

q-1
\sum
r=0

{n\chooser}+

\sum
(js)
|A(j1,\ldotsjq)|
2
.

When trying to minimize this upper bound, we want to pick

q

that balances/minimizes these two terms. This result illustrates the value of ordering vertices by maximum degree (to minimize

|A(j1,\ldotsjq)|

).

Lemmas

The above inequalities and observations can be stated in a more general setting, divorced from an explicit sum over vectors

(js)

.

Lemma 1: Given a graph

G

with

n

and assume that integer

q

and real numbers

R,\beta\in[0,1]

satisfy

R\gee-\betan

. Suppose that every induced subgraph on at least

R

vertices has edge density at least

\beta

. Then for every integer

r\geq

,

i(G,r)\le{n\chooseq}{R\chooser-q}.

Lemma 2: Let

G

be a graph on

n

vertices and assume that an integer

q

and reals

R,D

are chosen such that

n\leR+qD

. If all subsets

U

of at least

R

vertices have at least

D|U|/2

edges, then there is a collection

l{F}

of subsets of

q

vertices ("fingerprints") and a deterministic function

f:l{C}l{P}(V(G)

, so that for every independent set

I\subsetV(G)

, there is

S\inl{F}

such that

S\subsetI\subsetf(S)\cupS

.

Hypergraph container lemma

Informally, the hypergraph container lemma tells us that we can assign a small fingerprint

S\subsetI

to each independent set, so that all independent sets with the same fingerprint belong to the same larger set,

C=f(S)

, the associated container, that has size bounded away from the number of vertices of the hypergraph. Further, these fingerprints are small (and thus there are few containers), and we can upper bound their size in an essentially optimal way using some simple properties of the hypergraph.

We recall the following notation associated to

k

uniform hypergraph

l{H}

.

\Deltal(l{H}):=max\{dH(A)\midA\subsetV(l{H}),|A|=l\}

for positive integers

1\lel\lek

, where

dl{H

}(A) = |\|.

l{I}(l{H})

be the collection of independent sets of

l{H}

.

I

will denote some such independent set.

Statement

We state the version of this lemma found in a work of Balogh, Morris, Samotij, and Saxton[8]

Let

l{H}

be a

k

-uniform hypergraph and suppose that for every

l\in\{1,2,\ldots,k\}

and some

b,r\inN

, we have that

\Deltal(H)\le\left(

b
|V(H)|

\right)l-1

|E(H)|
r
. Then, there is a collection

l{C}\subsetl{P}(V(H))

and a function

f:l{P}(V(H))l{C}

such that

I\inl{I}(H)

there exists

S\subsetI

with

|S|\le(k-1)b

and

I\subsetf(S)

.

|C|\le|V(H)|-\deltar

for every

C\inl{C}

and

\delta=2-k(k+1)

.

Example applications

Regular graphs

Upper bound on the number of independent sets

We will show that there is an absolute constant such that every

n

-vertex

d

-regular graph

G

satisfies

i(G)\le

\left(1+C
\sqrt{logd
d
2\right)
n
2
}.

We can bound the number of independent sets of each size

r

by using the trivial bound

i(G,r)\le{n\chooser}\le{n\choosen/10}\le20.48n

for

r\len/10

.For larger

r

, take

\beta>10/n,q=\lfloor1/\beta\rfloor,R=

n
2

+

\betan2
2d

.

With these parameters, -regular graph

G

satisfies the conditions of Lemma 1 and thus,

i(G,r)\le{n\chooseq}{R\chooser-q}\le{n\chooseq}{

n
2

+

\betan2
2d

\chooser-q}\le\left(

en
q

\right)q{

n
2

+

\betan2
2d

\chooser-q}\le(e\betan)\lfloor{

n
2

+

\betan2
2d

\chooser-q}.

Summing over all

0\ler\len

gives

i(G)\le20.49n+

n+
\betan2
2d
+\lfloor1/\beta\rfloorlog2(e\betan)
2
2
,which yields the desired result when we plug in

\beta=\sqrt{dlogd}/n.

Sum-free sets

A set

A

of elements of an abelian group is called sum-free if there are no

x,y,z\inA

satisfying

x+y=z

. We will show that there are at most

2(1/2+o(1))n

sum-free subsets of

[n]:=\{1,2,\ldots,n\}

.

This will follow from our above bounds on the number of independent sets in a regular graph. To see this, we will need to construct an auxiliary graph. We first observe that up to lower order terms, we can restrict our focus to sum-free sets with at least

n2/3

elements smaller than

n/2

(since the number of subsets in the complement of this is at most
n2/3
(n/2)

2n/2

).

Given some subset

S\subset\{1,2,\ldots,\lceiln/2\rceil-1\}

, we define an auxiliary graph

GS

with vertex set

[n]

and edge set

\{\{x,y\}\midx+s\equivy\pmodnforsomes\inS\cup(-S)\}

, and observe that our auxiliary graph is

2|S|

regular since each element of is smaller than

n/2

. Then if

SA

are the smallest

n2/3

elements of subset

A\subset[n]

, the set

A\backslashSA

is an independent set in the graph
G
SA
. Then, by our previous bound, we see that the number of sum-free subsets of

[n]

is at most
n2/3
(n/2)

2n/2++{n/2\choosen2/3

} 2^ \le 2^.

Triangle-free graphs

We give an illustration of using the hypergraph container lemma to answer an enumerative question by giving an asymptotically tight upper bound on the number of triangle-free graphs with

n

vertices.[9]

Informal statement

Since bipartite graphs are triangle-free, the number of triangle free graphs with

n

vertices is at least
\lfloorn2/4\rfloor
2
, obtained by enumerating all possible subgraphs of the balanced complete bipartite graph

K\lfloor

.

We can construct an auxiliary -uniform hypergraph with vertex set

V(H)=E(Kn)

and edge set

E(H)=\{\{e1,e2,e3\}\subsetE(Kn)=V(H)\mide1,e2,e3formatriangle\}

. This hypergraph "encodes" triangles in the sense that the family of triangle-free graphs on

n

vertices is exactly the collection of independent sets of this hypergraph,

l{I}(H)

.

The above hypergraph has a nice degree distribution: each edge of

Kn

, and thus vertex in

V(H)

is contained in exactly

n-2

triangles and each pair of elements in

V(H)

is contained in at most 1 triangle. Therefore, applying the hypergraph container lemma (iteratively), we are able to show that there is a family of
O(n3/2)
n
containers that each contain few triangles that contain every triangle-free graph/independent set of the hypergraph.

Upper bound on the number of triangle-free graphs

We first specialize the generic hypergraph container lemma to 3-uniform hypergraphs as follows:

Lemma: For every

c>0

, there exists

\delta>0

such that the following holds. Let

H

be a 3-uniform hypergraph with average degree

d\ge1/\delta

and suppose that

\Delta1(H)\lecd,\Delta2(H)\lec\sqrt{d}

. Then there exists a collection

l{C}\subsetl{P}(V(H))

of at most

|l{C}|\le{|V(H)|\choose|V(H)|/\sqrt{d}}

containers such that

I\inl{I}(H)

, there exists

I\subsetC\inl{C}

|C|\le(1-\delta)|V(H)|

for all

C\inl{C}

Applying this lemma iteratively will give the following theorem (as proved below):

Theorem: For all

\epsilon>0

, there exists

C>0

such that the following holds. For each positive integer, there exists a collection

l{G}

of graphs on vertices with

|l{G}|\le

Cn3/2
n
such that

G\inl{G}

has fewer than

\epsilonn3

triangles,

n

vertices is contained in some

G\inl{G}

.

Proof: Consider the hypergraph

H

defined above. As observed informally earlier, the hypergraph satisfies

|V(H)|={n\choose2},\Delta2(H)=1,d(v)=n-2

for every

v\inV(H)

. Therefore, we can apply the above Lemma to

H

with

c=1

to find some collection

l{C}

of
O(n3/2)
n
subsets of

E(Kn)

(i.e. graphs on

n

vertices) such that

C\inl{C}

,

C\inl{C}

has at most

(1-\delta){n\choose2}

edges.This is not quite as strong as the result we want to show, so we will iteratively apply the container lemma. Suppose we have some container

C\inl{C}

with at least

\epsilonn3

triangles. We can apply the container lemma to the induced sub-hypergraph

H[C]

. The average degree of

H[C]

is at least

6\epsilonn

, since every triangle in

C

is an edge in

H[C]

, and this induced subgraph has at most

{n\choose2}

vertices. Thus, we can apply Lemma with parameter

c=1/\epsilon

, remove

C

from our set of containers, replacing it by this set of containers, the containers covering

l{I}(H[C])

.

We can keep iterating until we have a final collection of containers

l{C}

that each contain fewer than

\epsilonn3

triangles. We observe that this collection cannot be too big; all of our induced subgraphs have at most

{n\choose2}

vertices and average degree at least

6\epsilonn

, meaning that each iteration results in at most
O(n3/2)
n
new containers. Further, the container size shrinks by a factor of

1-\delta

each time, so after a bounded (depending on

\epsilon

) number of iterations, the iterative process will terminate.

See also

Independent set (graph theory)
Szemerédi's theorem
Szemerédi regularity lemma

Notes and References

  1. Kleitman . Daniel . Winston . Kenneth . The asymptotic number of lattices . Annals of Discrete Mathematics . 1980 . 6 . 243–249. 10.1016/S0167-5060(08)70708-8 . 9780444860484 .
  2. Kleitman . Daniel . Winston . Kenneth . On the number of graphs without 4-cycles . Discrete Mathematics . 1982 . 31 . 2 . 167–172. 10.1016/0012-365X(82)90204-7 . free .
  3. Sapozhenko . Alexander . The Cameron-Erdos conjecture . Doklady Akademii Nauk . 2003 . 393 . 749–752.
  4. Sapozhenko . Alexander . Asymptotics for the number of sum-free sets in Abelian groups . Doklady Akademii Nauk . 2002 . 383 . 454–458.
  5. Saxton . David . Thomason . Andrew . Hypergraph containers . Inventiones Mathematicae . 2015 . 201 . 3 . 925–992. 10.1007/s00222-014-0562-8 . 1204.6595 . 2015InMat.201..925S . 119253715 .
  6. Balogh . József . Morris . Robert. Samotij. Wojciech . Independent sets in hypergraphs . Journal of the American Mathematical Society . 2015 . 28 . 3 . 669–709. 10.1090/S0894-0347-2014-00816-X . 15244650 . free . 1204.6530 .
  7. Samotij . Wojciech . Counting independent sets in graphs . European Journal of Combinatorics . 2015 . 48 . 5–18. 10.1016/j.ejc.2015.02.005 . 15850625 . 1412.0940 .
  8. Balogh . József . Morris . Robert. Samotij. Wojciech . Independent sets in hypergraphs . Journal of the American Mathematical Society . 2015 . 28 . 3 . 669–709. 10.1090/S0894-0347-2014-00816-X . 15244650 . free . 1204.6530 .
  9. Balogh . József . Morris . Robert. Samotij. Wojciech . The method of hypergraph containers . Proceedings of the International Congress of Mathematicians: Rio de Janeiro . 2018. 1801.04584 .