ArticleslgStudy

mathematics

Counting lemma

Counting lemma is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Counting lemma rather than just read about it. In short: The counting lemmas this article discusses are statements in combinatorics and graph theory. The first one extracts information from ϵ-regular pairs of subsets of vertices in a graph G, in order to guarantee patterns in the entire graph; more explicitly, these patterns correspond to the count of copies of a certain graph H in G.

Key takeaways

  • Counting lemma belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Counting lemma to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Counting lemma from memory before moving on to harder problems.

Reference excerpt

The counting lemmas this article discusses are statements in combinatorics and graph theory. The first one extracts information from ϵ-regular pairs of subsets of vertices in a graph G, in order to guarantee patterns in the entire graph; more explicitly, these patterns correspond to the count of copies of a certain graph H in G. The second counting lemma provides a similar yet more general notion on the space of graphons, in which a scalar of the cut distance between two graphs is correlated to the homomorphism density between them and H.

Graph embedding version of counting lemma Whenever we have an ϵ-regular pair of subsets of vertices U,V in a graph G, we can interpret this in the following way: the bipartite graph, (U,V), which has density d(U,V), is close to being a random bipartite graph in which every edge appears with probability d(U,V), with some ϵ error. In a setting where we have several clusters of vertices, some of the pairs between these clusters being γ-regular, we would expect the count of small, or local patterns, to be roughly equal to the count of such patterns in a random graph. These small patterns can be, for instance, the number of graph embeddings of some H in G, or more specifically, the number of copies of H in G formed by taking one vertex in each vertex cluster.

The above intuition works, yet there are several important conditions that must be satisfied in order to have a complete statement of the theorem; for instance, the pairwise densities are at least ε, the cluster sizes are at least γ−1 , and γ≤εh/4h. Being more careful of these details, the statement of the graph counting lemma is as follows:

Statement of the theorem If H is a graph with vertices 1,⋯,h and m edges, and G is a graph with (not necessarily disjoint) vertex subsets W1,⋯,Wh, such that |Wi|≥γ−1 for all i=1,…,h and for every edge (i,j) of H the pair (Wi,Wj) is γ-regular with density d(Wi,Wj)>ε and γ≤εh/4h, then G contains at least 2−hεm|W1|⋅…⋅|Wh| many copies of H with the copy of vertex i in Wi. This theorem is a generalization of the triangle counting lemma, which states the above but with H=K3:

Triangle counting Lemma Let G be a graph on n vertices, and let X,Y,Z be subsets of V(G) which are pairwise ϵ-regular, and suppose the edge densities dXY,dXZ,dYZ are all at least 2ϵ. Then the number of triples (x,y,z)∈X×Y×Z such that x,y,z form a triangle in G is at least(1−2ϵ)(dXY−ϵ)(dXZ−ϵ)(dYZ−ϵ)|X||Y||Z|.

Proof of triangle counting lemma: Since (X,Y) is a regular pair, less than ε|X| of the vertices in X have fewer than (dXY−ε)|Y| neighbors in Y; otherwise, this set of vertices from X along with its neighbors in Y would witness irregularity of (X,Y), a contradiction. Intuitively, we are saying that not too many vertices in X can have a small degree in Y. By an analogous argument in the pair (X,Z), less than ε|X| of the vertices in X have fewer than (dXZ−ε)|Z| neighbors in Z. Combining these two subsets of X and taking their complement, we obtain a subset X′⊆X of size at least (1−2ε)|X| such that every vertex x∈X′ has at least (dXY−ε)|Y| neighbors in Y and at least (dXZ−ε)|Z| neighbors in Z. We also know that dXY,dXZ≥2ε, and that (Y,Z) is an ε-regular pair; therefore, the density between the neighborhood of x in Y and the neighborhood of x in Z is at least (dYZ−ε), because by regularity it is ε-close to the actual density between Y and Z. Summing up, for each of these at least (1−2ε)|X| vertices x∈X′, there are at least (dXY−ϵ)(dXZ−ϵ)(dYZ−ϵ)|Y||Z| choices of edges between the neighborhood of x in Y and the neighborhood of x in Z. From there we can conclude this proof. Idea of proof of graph counting lemma:The general proof of the graph counting lemma extends this argument through a greedy embedding strategy; namely, vertices of H are embedded in the graph one by one, by using the regularity condition so as to be able to keep a sufficiently large set of vertices in which we could embed the next vertex.

Graphon version of counting lemma The space 𝒲~0 of graphons is given the structure of a metric space where the metric is the cut distance δ◻. The following lemma is an important step in order to prove that (𝒲~0,δ◻) is a compact metric space. Intuitively, it says that for a graph F, the homomorphism densities of two graphons with respect to this graph have to be close (this bound depending on the number of edges F) if the graphons are close in terms of cut distance.

Definition (cut norm). The cut norm of W:[0,1]2→ℝ is defined as ‖W‖◻=supS,T⊆[0,1]|∫S×TW|, where S and T are measurable sets.

Definition (cut distance). The cut distance is defined as δ◻(U,W)=infϕ||U−Wϕ||◻, where Wϕ(x,y) represents W(ϕ(x),ϕ(y)) for a measure-preserving bijection ϕ.

Graphon Counting Lemma For graphons W,U and graph F, we have |t(F,W)−t(F,U)|≤|E(F)|δ◻(W,U), where |E(F)| denotes the number of edges of graph F.

Proof of the graphon counting lemma: It suffices to prove |t(F,W)−t(F,U)|≤|E(F)|‖W−U‖◻.Indeed, by considering the above, with the right hand side expression having a factor ‖W−Uϕ‖◻ instead of ‖W−U‖◻, and taking the infimum of the over all measure-preserving bijections ϕ, we obtain the desired result. Step 1: Reformulation. We prove a reformulation of the cut norm, which is by definition the left hand side of the following equality. The supremum in the right hand side is taken among measurable functions u and v:supS,T⊆[0,1]|∫S×TW|=supu,v:[0,1]→[0,1]|∫[0,1]2W(x,y)u(x)v(y)dxdy|. Here's the reason for the above to hold: By taking u=𝟙S and u=𝟙T, we note that the left hand side is less than or equal than the right hand side. The right hand side is less than or equal than the left hand side by bilinearity of the integrand in u,v, and by the fact that the extrema are attained for u,v taking values at 0 or 1. Step 2: Proof for F=K3. In the case that F=K3, we observe that t(K3,W)−t(K3,U)=∫[0,1]3((W(x,y)W(x,z)W(y,z)−U(x,y)U(x,z)U(y,z))dxdydz=∫[0,1]3(W−U)(x,y)W(x,z)W(y,z)dxdydz+∫[0,1]3U(x,y)(W−U)(x,z)W(y,z)dxdydz+∫[0,1]3U(x,y)U(x,z)(W−U)(y,z)dxdydz.

By Step 1, we have that for a fixed z that|∫[0,1]2(W−U)(x,y)W(x,z)W(y,z)dxdy|≤‖W−U‖◻Therefore, when integrating over all z∈[0,1] we get that |∫[0,1]3(W−U)(x,y)W(x,z)W(y,z)dxdydz|≤‖W−U‖◻Using this bound on each of the three summands, we get that the whole sum is bounded by 3‖W−U‖◻. Step 3: General case. For a general graph F, we need the following lemma to make everything more convenient:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Counting lemma

Start with the simplest possible case. Write down what Counting lemma claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Counting lemma before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Counting lemma ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Counting lemma

In research
Counting lemma appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Counting lemma in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Counting lemma is common in secondary-school and first-year university syllabi. It links to neighbouring topics Combinatorics, Lemmas, Theorems in graph theory, so understanding it makes those chapters shorter.
In everyday life
Look for Counting lemma outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Counting lemma” →

How to study Counting lemma in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Counting lemma means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Counting lemma out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Counting lemma in simple terms?

The counting lemmas this article discusses are statements in combinatorics and graph theory. The first one extracts information from ϵ-regular pairs of subsets of vertices in a graph G, in order to guarantee patterns in the entire graph; more explicitly, these patterns correspond to the count of co…

Why does Counting lemma matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Counting lemma?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Counting lemma.

Tags

  • Combinatorics
  • Lemmas
  • Theorems in graph theory

Keep exploring