Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 13 2 Solution Created 2026-10-03 Updated 2026-10-14
We prove a weighted version of the Szemerédi regularity lemma, which is sufficient for the grid application. For disjoint nonempty vertex sets in a graph, write for their edge density of a bipartite graph. Call the pair -regular if every , with and satisfies .
The weighted Szemerédi regularity lemma states that, for every , there are integers such that every graph on vertices has a set partition into at most nonempty cells , each of size at most , for whichThe sum is ordered. The cells need not have equal sizes; their weights replace the usual unweighted count of bad pairs.
To prove it, start with nearly equal cells, taking . Each has size at most . Define the regularity energyHere even diagonal rectangles use the mean adjacency indicator, counting ordered pairs of vertices. Thus . Under a refinement, the old rectangle density is the weighted mean of the new ones, and the refinement variance identity for regularity energy givesIn particular refinement cannot decrease energy.
If the irregular-pair weight exceeds , choose witness subsets , for every irregular unordered pair, and split each cell simultaneously by all its witnesses. There are at most such subsets in any one cell, so the new number of cells is at most . In an irregular rectangle, its witness has relative area at least and density discrepancy greater than . Since the witness rectangle is now a union of refined rectangles, the Cauchy-Schwarz inequality applied to their weighted density discrepancies bounds the variance contribution from below bySumming over both orientations of all irregular pairs raises by more than . Since , after at most rounds the required weight bound must hold. The finite recurrence , starting at , supplies ; all cells remain small because we only refine. This proves the stated weighted Szemerédi regularity lemma.
We next derive the triangle removal lemma from this version. First, three disjoint classes whose pairs are -regular pairs of density at least have many triangles if and . Fewer than vertices of have fewer than neighbours in : otherwise that set of vertices, paired with all of , would violate regularity. The same holds for . For each of the at least remaining vertices, both neighbour sets have relative size at least . Regularity of then supplies at least times the product of those two neighbour-set sizes edges. Thus the regular triangle counting lemma, also for unequal class sizes, givesFor a desired deletion tolerance , take , , and a weighted regularity partition with at most cells. Put . Delete edges inside cells, between irregular pairs, between regular pairs of density less than , and incident to cells smaller than . The first two deletions each cost at most . The sparse-pair deletion costs at most . For the last deletion, small-cell deletion in weighted regularity removes at most vertices and at most incident edges. The total is bounded byA triangle surviving these deletions would lie in three distinct cells, all of size at least , with all their pairs regular and of density at least . The original graph would then have at least triangles. Therefore, witha graph on sufficiently many vertices with at most triangles can be made triangle-free by deleting fewer than edges. This establishes the triangle removal lemma with every parameter depending only on .
Now apply a tripartite graph encoding of a grid. Take separate vertex classes , , . For each grid point in the given set, put in the three edgeswhere their endpoints belong respectively to , , and . Each point supplies a triangle. These triangles are edge-disjoint triangles, since any one of the three edge types uniquely determines the point that supplied it.
Conversely, any triangle with vertices , , forces the three pointsto belong to . Put . For these form a corner in an integer grid; for they all arise from the same grid point. Thus if there is no corner, the graph has exactly triangles, yet destroying all triangles requires at least edge deletions.
We may suppose , since larger densities make the request vacuous. Use the triangle removal lemma with . Our graph has vertices, so, for sufficiently large , its bound on the number of triangles is at most . The lemma would delete fewer thanedges to destroy all triangles. This contradicts the lower bound from the edge-disjoint family. Hence every sufficiently large positive-density square grid contains a nondegenerate corner, proving the requested corners theorem and in particular the existence of a suitable .
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 88 3 ii Solution Created 2026-10-03 Updated 2026-10-14
First derive the triangle removal lemma from the Szemerédi regularity lemma. Given an allowed deletion fraction , take , , and . Apply part (i), with upper class bound . Delete edges incident with , inside each nonexceptional class, between irregular pairs, and between regular pairs of subset density less than . Their total number is at mostThese four terms are bounded respectively by , , , and .
If a triangle in a graph remains, its three vertices lie in three distinct equal classes, all three regular pairs with subset density at least . The permitted regular triangle counting lemma gives at least triangles in a graph in the original graph, where is the class size. This lower bound can also be checked directly: all but vertices of the first class have at least neighbors in each of the other two. Those neighborhoods are large enough to use the regular pair condition on the remaining pair, giving at least edges between them. Hence the total is at least .
Since , a surviving triangle in a graph forces at least original triangles in a graph. Thus a graph with fewer than triangles in a graph, where , can be made triangle-free by deleting fewer than edges, for all sufficiently large . This proves the removal lemma needed here.
Now use the triangle-removal proof of Roth theorem. Fix a subset density lower bound and suppose , , has no nonconstant three-term arithmetic progression. Set and . Use three disjoint copies of and put edges according toDivision by two is valid because is odd. A triangle in a graph corresponds to , , with and . Since and , this congruence is an integer equality. Progression-freeness therefore forces .
Every triangle in a graph is consequently of the form with , so there are exactly triangles in a graph. These triangles in a graph are edge-disjoint: an edge determines ; a edge determines and then ; and an edge determines and . Eliminating them all requires at least edge deletions.
The graph has vertices but only triangles in a graph. Take . For large enough its triangle in a graph count is below , so removal requires fewer than deletions. Yeta contradiction. Therefore every fixed positive-density subset of a sufficiently long interval contains a nonconstant three-term arithmetic progression.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 12 4 Solution Created 2026-10-03 Updated 2026-10-06
We derive the triangle removal lemma from the permitted Szemerédi regularity lemma, then turn a corner in an integer grid into a triangle in a graph.
The triangle removal lemma says that for every there are and such that a graph on vertices with fewer than triangles in a graph can be made triangle-free by deleting at most edges. Here triangles in a graph are unordered triples of distinct vertices. We prove this consequence with the necessary quantitative dependence.
We may assume . Put , choose an integer , and chooseApply the Szemerédi regularity lemma to obtain an exceptional class of size at most and equal-sized classes of size , where , and at most pairs are not regular pairs of vertex sets. The constant depends only on these chosen parameters. Delete all edges incident with , all edges within a class, all edges between irregular pairs, and all edges between pairs whose edge density of a bipartite graph is less than . The respective costs are at mostTheir sum is at most , hence certainly at most .
If a triangle in a graph survives, it lies in three distinct classes whose three pairs are -regular pairs of vertex sets of edge density of a bipartite graph at least in the original graph. We now check the needed regular triangle counting lemma. In the first class all but at most vertices have at least neighbours in each of the other two classes; otherwise the definition of a regular pair of vertex sets would be violated. For each such vertex , its two neighbour sets each have size at least , so their mutual edge density of a bipartite graph is at least . It follows that the original three classes contain at leasttriangles in a graph. The elementary lower bound holds because and . Also . Thus a surviving triangle in a graph implies at least original triangles in a graph. Set and take large enough for the Szemerédi regularity lemma. Fewer than original triangles in a graph force the cleaned graph to be triangle-free, proving the triangle removal lemma.
Now suppose and . Use the tripartite graph encoding of a grid to construct a tripartite graph with disjoint labelled classesFor each , put in the three edges joining , , and . These yield canonical triangles in a graph. They are pairwise edge-disjoint triangles: an edge determines directly, an edge determines , and a edge determines . Any deletion making the graph triangle-free must therefore remove at least edges.
On the other hand, an arbitrary triangle in a graph with labels gives three points of :Writing , these are . If , they form the required corner in an integer grid. If there is no such corner in an integer grid, every triangle in a graph is canonical, and the total number is precisely .
Apply the triangle removal lemma with . The constructed graph has vertices. For sufficiently large , andIn the absence of a corner in an integer grid, the triangle removal lemma would destroy all triangles in a graph by deleting at mostedges, contradicting the pairwise edge-disjoint triangles. Every sufficiently large grid therefore has the asserted corner in an integer grid in every subset of positive fixed density of a finite subset. For there is no eligible subset, so the assertion is vacuous. This proves the corners theorem, including the stipulated nonzero displacement; no positivity of was required.
Small-cell deletion in weighted regularity 2026-10-14
A partition with at most cells has at most vertices in cells smaller than . Deleting all edges incident to those vertices costs at most edges. Every remaining cell has a fixed positive fraction of all vertices, which permits a regular triangle counting lemma to give a cubic count without requiring equal cell sizes.
Triangle removal lemma 2026-10-06
For every , some and have this property: a graph on vertices with fewer than unordered triangles in a graph can be made triangle-free by deleting at most edges. A Szemerédi regularity lemma partition deletes exceptional, intraclass, irregular and sparse-pair edges cheaply. A surviving triangle in a graph would force a positive cubic count by the regular triangle counting lemma.