Clique removal lemma Created 2026-10-06 Updated 2026-10-07
For fixed and every , some has the following property for all sufficiently large : a graph with fewer than copies of can be made -free by deleting at most edges. A Szemerédi regularity lemma partition and the regular clique counting lemma prove this. It converts sparse counts of a forbidden clique into a small edit distance from clique-freeness.
Dense regular pair from edge surplus 2026-10-14
The Szemerédi regularity lemma gives equal cells. If every regular cross-cell pair had density at most , their total edge contribution would be at most . Exceptional vertices, within-cell edges and irregular pairs contribute at most . Choosing and contradicts . The dense pair is -regular since it is already -regular.
In a proof of the Szemerédi regularity lemma, suppose equal classes have size and witness splitting creates at most atoms per class. Divide every atom into blocks of size , putting leftovers into the exceptional set. At most vertices are lost. When , at most blocks remain. For equitable regularity energy defined by omitting exceptional vertices, the loss from discarding a fraction is at most : only ordered pairs incident with discarded vertices are removed, and every squared edge density of a bipartite graph is at most one. This provides a quantitative way to restore equal class sizes after each energy increment.
For any fixed odd length , positive triangle in a graph density forces positive density of -cycles. A Szemerédi regularity lemma partition retains a triangle in a graph of regular dense pairs after the sparse and exceptional pairs are removed. Count embeddings of a proper three-colouring of into those three clusters. The constants depend on and , not on graph order.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 9 4 Solution Created 2026-10-03 Updated 2026-10-14
We use the following precise form of the Szemerédi regularity lemma. For every and positive integer , there are integers such that every graph on vertices has a partitionwith at most irregular unordered pairs among the nonexceptional classes. Here for disjoint nonempty sets, and is an -regular pair ifwhenever , , , .
For the proof, let be the adjacency indicator, including , and define by averaging on even for diagonal cells. The regularity energy of a partition isEvery exceptional vertex is represented by its own singleton cell in this energy. If a rectangle is refined into smaller rectangles with densities and weights , expanding the square gives the refinement variance identity for regularity energyThus refinement never decreases energy.
Suppose an equitable partition with classes of size fails the desired conclusion. For every irregular pair choose witness subsets , , each of size at least , whose density differs from by more than . Split each class by all witness subsets involving it. Each class has at most atoms. On a witness rectangle, the weighted mean of is . The Cauchy-Schwarz inequality therefore bounds the energy increment on this rectangle below byThe different original cell pairs have disjoint rectangles. More than irregular unordered pairs, with both orientations counted in the energy, thus increase it by more than . As long as , this is greater than , and in particular greater than .
Restore equitability by dividing each atom into pieces of common size , moving each leftover vertex into the exceptional set as a singleton energy cell. This remains a refinement, so the energy gain persists. There are at most atoms, so the additional exceptional vertices number at mostIf , then , and the new number of equal cells satisfies . For the lower bound, within each old class the leftover count is at most , so at least one full new cell survives. For the upper bound, , using . This proves equalization with a controlled exceptional set without any energy loss.
Put . Choose with . Start with equal classes and fewer than exceptional vertices. Iterate the bounded recurrence times to obtain a bound . Choose so large that the initial remainder is at most and, for every , . The total exceptional set remains at most , since at most rounds each add at most . Each failing round raises an energy in by more than , so fewer than rounds can fail. This proves the lemma with all constants independent of the input graph.
For the application, write and . We may replace the given tolerance by a smaller one, so assume . Set , take , and chooseApply the lemma and delete all edges incident with , all edges inside a class, all edges across irregular pairs, and all edges across regular pairs of density below . The resulting spanning subgraph loses at mostLet be the reduced graph of a regularity partition, whose edges represent the surviving regular pairs of density at least . We show that a copy of in forces a copy of in .
Choose a proper -coloring of and assign its color classes to the corresponding clusters. Embed its vertices one at a time. For each unembedded vertex maintain the candidate set in its cluster consisting of unused vertices adjacent to all already embedded neighbours. After at most restrictions its size is at least . This last quantity is at least when is large, so every such candidate set is large enough for regularity. In an -regular pair of density , fewer than vertices on one side have fewer than neighbours in any fixed set on the other side of size at least : otherwise these vertices and violate regularity. For the vertex currently being embedded, there are at most relevant future candidate sets. At most vertices are bad for one of them. Its own candidate set has at least vertices, so an unused good vertex can be chosen. All future candidate sets shrink by at most the factor , apart from the removal of a used vertex; the stated size bound follows inductively, since the accumulated removals are at most . This completes the graph embedding lemma for regular pairs in the form needed here.
Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 13 2 Solution Created 2026-10-03 Updated 2026-10-14
For disjoint vertex sets , define their edge density of a bipartite graph by . They form a regular pair with parameter if every with , satisfies .
The Szemerédi regularity lemma says that for every and minimum cell count , some have the following property. Every graph on vertices admitswith , equal-sized , and at most unordered irregular pairs. It is enough to consider .
Prove this using equitable regularity energy. Treat exceptional vertices as singleton cells and setwith ordered pairs and the adjacency indicator also defining diagonal densities. Then . The refinement variance identity for regularity energy proves refinement cannot decrease :An irregular pair supplies witness subsets of relative sizes at least whose density differs by more than . Refining along those witnesses raises by more than per orientation, where is the common cell size. If there are more than irregular pairs, the increase is greater than , provided the exceptional set has size at most .
Refine each cell by all its witness subsets; this produces at most atoms per cell. Restore equal sizes by the equalization with a controlled exceptional set: cut each atom into blocks of size and declare its remainder exceptional, still retaining every such vertex as a singleton in the energy. This is another refinement, so no energy is lost. At most vertices become exceptional, and, when , at most new nonexceptional cells occur.
Put and start with so large that . An initial equitable partition has at most exceptional vertices when is sufficiently large. Subsequent cell counts only increase, so the total added exceptional set has size at most . The recurrence , iterated at most times, supplies a finite bound ; choose large enough that every intermediate meets the size requirement. More than unsuccessful refinements would raise above one. The process must therefore stop with the required regular pairs. This proves the lemma.
Its usefulness comes from replacing an arbitrarily large graph by the bounded reduced graph of a regularity partition. For fixed positive cross-density, the graph embedding lemma for regular pairs lifts fixed configurations from the reduced graph to the original one. In particular, three sufficiently regular positive-density pairs contain many triangles in a graph. Deleting exceptional, intracell, irregular and sparse-pair edges then gives the triangle removal lemma: a graph with sufficiently few triangles can be made triangle-free by deleting edges. A triangle surviving in the reduced graph would force a positive proportion of the original possible triangles, a contradiction. More generally this approach yields the clique removal lemma and the asymptotic Erdős-Stone theorem. Applied to the tripartite graph encoding , triangle removal also gives Roth theorem on three-term arithmetic progressions. The price is that the energy argument gives a very rapidly growing, iterated-exponential bound on ; the lemma is a structural tool, not a promise of small practical constants.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 11 2 Solution Created 2026-10-03 Updated 2026-10-14
Use the equitable form of the Szemerédi regularity lemma. For and a prescribed lower bound , there are such that every sufficiently large graph admits a set partitionwith at most unordered irregular pairs among the nonexceptional cells. A uniform pair here means a regular pair of vertex sets. Larger values of follow from a smaller parameter, so the stated restriction loses nothing.
For the proof, retain the exceptional vertices as singleton cells in an auxiliary set partition . Define its regularity energy by the ordered sumFor diagonal rectangles the adjacency matrix of a graph defines ; diagonal terms are included. Thus . If is split into rectangles of densities and sizes , their weighted mean is . Expanding squares proves the refinement variance identity for regularity energy:Every refinement therefore increases or preserves energy.
Suppose equal cells of size are -irregular. Choose witnesses , of sizes at least , whose density differs from by more than . Refine the cells so that these witnesses are unions of refined atoms. Applying the Cauchy-Schwarz inequality inside gives an increase, for this oriented rectangle, greater thanChoose witnesses simultaneously for every irregular pair. Each original cell is cut by at most witness sets and has at most atoms. If more than unordered pairs are irregular, both orientations contribute, givingas long as the exceptional set has at most vertices.
To restore equal sizes without sacrificing this increase, use equalization with a controlled exceptional set. Cut every witness atom into blocks of size , leaving fewer than unused vertices in each atom. Make each unused vertex a singleton exceptional cell. This is a further refinement, so there is no energy loss. The number newly exceptional is at mostWhen , the new nonexceptional cell count is at most : indeed and . It is at least , since each old cell supplies at least blocks.
Let . Choose the initial count so large that , and begin with equal cells and fewer than leftover vertices. Take large enough that these initial leftovers are at most . Iterate the bound for rounds to obtain a finite number . Increase further to ensure . Then every cell size encountered satisfies , so every equalization is legitimate. The total exception budget is at most , because the initial losses use half the budget and all later losses sum to at most . Energy cannot increase by more than one, so failing rounds are impossible. The process must stop with at most irregular pairs. This proves the Szemerédi regularity lemma, including the bounded cell count, equitability and exceptional-set control.
For the dense-pair application, apply this proof with and . Suppose every -regular pair of nonexceptional cells has density at most . Edges touching number at most . Edges inside nonexceptional cells number at most . The at most irregular cell pairs contribute at most . Finally the regular cross-cell pairs contribute at most . Thereforea contradiction. Some regular pair consequently has density greater than . It is also a -uniform pair, since subsets of relative size at least qualify in the stronger -regularity condition. The common cell size satisfies . Thus the dense regular pair from edge surplus givesThis first proves the assertion for . For the finitely many smaller possible orders, choose the endpoints of any edge as singleton sets: the pair has density one and is regular for every positive parameter. Taking includes these cases as well.
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 2007 iii Paper 88 3 i Solution Created 2026-10-03 Updated 2026-10-14
For disjoint nonempty vertex sets , write . A regular pair of vertex sets is -regular if every with , satisfies .
The Szemerédi regularity lemma states that, for every and integer , there are such that every finite simple graph on vertices has a set partitionwith , , , and at most irregular unordered pairs among the nonexceptional classes. Prove it for ; larger parameters follow by using a smaller one.
For the energy-increment proof of Szemerédi regularity, keep every exceptional vertex as a singleton cell in the set partition used to measure regularity energy. Define the equitable regularity energyThe sum is ordered, and on diagonal cells subset density means the average of the adjacency indicator, with zero on loops. Thus . If are refined into , expanding squares givesThe cross term vanishes because the weighted arithmetic mean of the refined subset densities is the original subset density. Consequently every refinement of a set partition increases or preserves regularity energy.
Suppose the current nonexceptional classes have common size and there are of them. For each irregular pair , choose witnesses of sizes at least and discrepancy greater than . Refine each class by all its incident witness subsets. There are at most cuts in each class and at most resulting atoms. The witness rectangle is a union of refined rectangles. By the Cauchy-Schwarz inequality, its contribution to the variance identity is at leastIndeed, the sum of squared deviations on the witness rectangle is at least its total weight times the square of their weighted arithmetic mean. If more than unordered pairs are irregular, summing even just one orientation of each givesprovided the exceptional set has at most vertices. This is the strictly positive regularity energy increment.
Restore equal class sizes without losing that increment. Divide every witness atom into blocks of size and make every leftover vertex an exceptional singleton. This is a further refinement of a set partition, so it cannot decrease . There are at most atoms, hence fewer than newly exceptional vertices. If , then , so the number of full blocks is at most . Each original class produces at least one full block: its leftovers occupy less than , whereas . Thus the new class count is at least .
Choose , and choose an initial integer large enough that . Initially partition into equal classes and fewer than exceptional vertices. Take large enough that this initial exception is at most . During at most rounds, the additional exception is at most , so it never exceeds .
A bound on class counts is obtained by iterating at most times starting at ; call the resulting bound . Increasing further to satisfy guarantees at every round, so all full-block constructions are valid. If the desired regularity had not been reached after refinements, the regularity energy increments would total more than one, impossible. Therefore the process terminates with the required partition and bounds. The singleton treatment of discarded vertices is what preserves regularity energy monotonicity during equalization.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 11 2 i Solution Created 2026-10-03 Updated 2026-10-14
For disjoint nonempty vertex sets , define their edge density of a bipartite graph by . They form an -regular pair of vertex sets if every , with , satisfies .
The Szemerédi regularity lemma asserts that, given and a positive integer , there are such that every graph on vertices has a set partition withand at most irregular ordered pairs with .
Assume , which suffices since a smaller regularity parameter gives the claim for a larger one. Treat the exceptional vertices as singleton cells in the full partition , and use equitable regularity energyHere the adjacency indicator function defines density even for diagonal cells. Clearly . If refines , weighted averaging of densities gives the refinement variance identity for regularity energyTo verify it, expand each square and use .
For every irregular ordered pair of nonexceptional cells, choose witnesses of relative sizes at least and density discrepancy greater than . Split each along all witnesses involving it; symmetry allows at most one witness for each other cell, hence at most atoms in each . In the witness rectangle, the weighted Cauchy-Schwarz inequality in the variance identity contributes more than .
If more than pairs are irregular and the equal cell size is , the energy increase is greater thanRestore equal cell sizes by cutting each witness atom into pieces of size , with leftover vertices added to as singleton cells. This operation is a further refinement, so the energy does not decrease. There are at most atoms, and fewer than leftover vertices in each, giving at most new exceptional vertices.
Here is a uniform bound ensuring that the iteration is legitimate. Put and chooseStart with equal classes and fewer than exceptional vertices. Taking makes the initial exception at most . At every refinement the number of nonexceptional cells does not decrease: each old cell loses at most vertices and is cut into pieces of size at most . Thus each of the at most rounds adds at most exceptional vertices.
When , the new cell count is at mostusing . Define and , and take . Choosing ensures at every stage. All rounds are therefore defined, with cell count between and and exceptional size at most .
If the lemma still failed after refinements, the energy would have increased by more than , impossible because it lies in . Hence some stage has the required regular pairs. This completes the energy-increment proof of Szemerédi regularity, including the equal-size and exceptional-set conditions.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 12 3 Solution Created 2026-10-03 Updated 2026-10-14
We prove edit-distance stability for clique-free graphs by induction on , using the symmetric difference of edge sets as the distance. For , a -free graph is edgeless, and there is nothing to change. For , choose a vertex of maximum degree , let be its neighbourhood and put . Then is -free. WriteBoth deficits are nonnegative by the Turan theorem. Since every vertex of has degree at most ,The complete -partite graph formed from an -partite Turán graph on and the new class has at most edges. Thus , and direct subtraction givesBy induction, edit into a complete -partite graph using at most changes. Delete the edges inside , and add the missing edges between and . The resulting graph is complete -partite on the same vertex set, andwhere the inequality uses . The required edit distance is at most . Empty partition classes are allowed; a sufficiently dense nondegenerate case has the usual full complement of classes.
For the odd-cycle conclusion, use two standard consequences of the Szemerédi regularity lemma, stated explicitly. The triangle removal lemma says that for every , some ensures that a graph with at most triangles in a graph can be made triangle-free by deleting at most edges, for all sufficiently large . Also, for each fixed odd length and each , there is such that a graph with at least triangles in a graph contains at least copies of .
For clarity, the latter odd-cycle copies from positive triangle density consequence follows by applying regularity with error small relative to , removing exceptional, irregular and very sparse pairs, and retaining a triangle in a graph among the remaining regular dense pairs. The graph embedding lemma for regular pairs counts a positive constant times embeddings of any fixed graph properly three-coloured into those three clusters, including . Dividing by the fixed number of descriptions of a cycle gives the same conclusion for unlabelled copies.
Apply triangle in a graph removal with , and take the resulting . A -free graph cannot have triangles in a graph for large , by the preceding consequence. Delete at most edges to obtain a triangle-free . With ,Apply the proved stability result with . The resulting complete bipartite graph satisfiesChoose also large enough that . Then the distance is at most .
For the unheaded continuation, use the same and its associated , and set . Having at most cycles rules out triangles in a graph just as before. The identical deletion and stability calculation applies. A sufficiently small gives the same bound.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 12 4 Solution Created 2026-10-03 Updated 2026-10-14
In this enumeration problem, monotone means subgraph-closed graph property: both deleting vertices and deleting edges preserve membership. This is a decreasing convention, rather than the increasing-edge convention often used for random-graph thresholds. Assume first that the property is proper and has graphs of arbitrarily large orders. These are the usual nondegenerate hypotheses for the formula.
Put . Every graph of chromatic number at most belongs to . In particular, all subgraphs of a fixed balanced Turán graph belong. Choosing each of its edges independently as present or absent givesFor the upper bound, fix with . Every member of is -free, by closure under subgraphs.
We use the following standard regularity consequences. For every sufficiently small regularity error , large minimum cluster count , and fixed positive density cutoff , the Szemerédi regularity lemma gives an equitable partition into clusters and an exceptional set of at most vertices, with at most irregular pairs. The graph embedding lemma for regular pairs says that a fixed graph with a prescribed proper colouring embeds into the corresponding clusters if all its required cross pairs are regular with density at least , provided is sufficiently small relative to and the graph. Hence the reduced graph of a regularity partition, joining regular pairs of density at least , is -free: such a clique would embed .
By the Turan theorem, this reduced graph has at most edges. On its dense pairs allow arbitrary choices of original edges, giving at most free binary choices. All edges within clusters, touching the exceptional set, or lying in irregular pairs contribute further choices. On each remaining pair there are at most times its number of possible edges. The elementary binary entropy estimatebounds the total sparse-pair contribution by . The partition and pair classifications have at most descriptions, whose logarithm is since is fixed. Choose large, then small, then sufficiently small; their total error can be made arbitrarily small. This provesIt is the enumeration of subgraph-closed graph properties.
For the hereditary extension, a hereditary graph property is closed under induced subgraphs. Define the clique-independent partition class , for , to consist of graphs partitionable into possibly empty classes, exactly designated as cliques and the other designated as independent sets; cross edges are unrestricted. Thus is the total number of classes. The colouring number of a hereditary graph property isUse value zero if this set is empty, and infinity for the class of all graphs.
for . The lower bound follows from the definition. For the upper bound, fix any and a balanced partition of a large -vertex set into classes with clique classes. Independent choices of cross edges give distinct graphs in . On the other hand, all graphs in can be described by at most partitions, each with at most unrestricted cross pairs. The former count is strictly larger for large , so is not contained in for any . A contained class with even more parts would contain one of these -part classes by making unused parts empty, so it is also impossible.
The main changes for the hereditary graph enumeration theorem are as follows. The lower bound now uses a contained class : within-class edges are fixed as complete or empty, and the balanced cross pairs still give free edge choices. For the upper bound, since no is wholly contained in , choose one forbidden induced graph for each .
Use the standard induced regularity template lemma: for a fixed finite forbidden induced family and any error tolerance, a regularity refinement gives bounded-size templates with internal clique/independent types and cross pairs classified as sparse, almost complete, or intermediate. A clique of intermediate pairs on classes realizes every fixed induced pattern consistent with the internal types of those classes. This induced embedding conclusion uses a Ramsey refinement within clusters and regularity for both edges and nonedges; the total exceptional-pair cost can be made arbitrarily small. Applied to the , a clique on intermediate classes would realize the forbidden whose number of clique types is . Thus the graph of intermediate pairs is -free. Only intermediate pairs contribute unrestricted binary choices; sparse pairs and the missing edges in almost-complete pairs each have the same entropy bound as before. The Turan theorem and the earlier counting argument now giveThis formula assumes . For the universal property the count is exactly ; a hereditary property of bounded order has and has no graphs on sufficiently large vertex sets, so the displayed expression with is not applicable.
For a proper subgraph-closed graph property, any contained must have : if , it contains arbitrarily large complete graphs, and closure under subgraphs would force every graph into the property. Consequently its colouring number is exactly one less than the least chromatic number of an excluded graph. The excluded family of an intersection is the union of the two excluded families, whose minimum chromatic number is the smaller of their minima. Therefore for subgraph-closed properties, with the universal case treated by .
For hereditary properties take and , both of colouring number two. A graph in their intersection is both bipartite and a union of two cliques. A clique in a bipartite graph has at most two vertices; hence every such graph has at most four vertices. The intersection contains no complete clique-independent class on arbitrarily large orders, so . This also demonstrates why the bounded-order exception to the enumeration formula is necessary.
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.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 110 2 Solution Created 2026-10-03 Updated 2026-10-06
For disjoint nonempty vertex sets , write . The regular pair of vertex sets is -uniform when every , with and satisfiesThis is also called an -regular pair.
Count transversal cliques by maintaining common neighbourhoods. For there are exactly copies, so the claim is immediate. For the hypotheses are vacuous if ; assume . SetAfter choosing vertices in the first classes, let be their common neighbours in each later class. We maintain . In a regular pair, whenever , fewer than vertices of have fewer than neighbours in : otherwise those bad vertices, together with , contradict regularity. There are at most future classes, so their union excludes at most candidates from . At least choices remain, and each maintains the stated bound for all new common neighbourhoods.
Making these choices through all classes gives at least transversal cliques. Different selections give different vertex sets, since the classes are disjoint. ConsequentlyAll constants depend only on , not on .
The Szemerédi regularity lemma states that for every and integer there exist such that every graph of order has a partition with , , equal-sized nonexceptional classes, and at most irregular unordered pairs of classes.
Apply the partition to prove clique removal. For , choose , , and a regularity parameter small enough for the preceding counting argument at density . The Szemerédi regularity lemma supplies . Delete all edges incident with , inside individual classes, between irregular pairs, and between regular pairs with density below . If the common class size is , the number deleted is at mostA surviving would have its vertices in distinct classes; every pair of these classes is regular and has density at least . The counting result would then give at least copies in the original graph. Since , choose, for example,This would exceed , contradicting the assumed copy count. Thus fewer than cliques can be destroyed by removing at most edges, leaving no . This is the clique removal lemma.
For , take : a graph of order always has copies of , so the hypothesis is impossible. The assertion in that degenerate case is vacuous, rather than an edge-removal procedure capable of deleting vertices.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 129 2 Solution Created 2026-10-03 Updated 2026-10-05
Write for the edge density of a bipartite graph between nonempty disjoint vertex sets. A regular pair of vertex sets is -regular if whenever , , , and .
The Szemerédi regularity lemma says that for every and positive integer there is such that every finite simple graph on vertices has a set partitionwhere have equal positive size and at most unordered pairs , , fail to be regular pairs of vertex sets. The version requiring only sufficiently large is equivalent, since the finitely many smaller admissible sizes can use singleton sets as classes. It suffices to prove this for : reducing a larger parameter to gives stronger conclusions.
Here is a complete energy proof, including restoration of equal class sizes. For a set partition with exceptional set , use the following version of equitable regularity energy, omitting pairs incident with :For , define using the ordered adjacency indicator function, with diagonal entries zero. Thus the same formula works on every rectangle. The refinement variance identity for regularity energy iswhere run over the refined cells. Expanding the square proves the identity because their weighted mean edge density of a bipartite graph is . In particular, refinement never decreases the energy. If a union of refined cells has discrepancy greater than , the Cauchy-Schwarz inequality bounds its contribution below by . For an irregular equal-class pair of size , witnesses have sizes at least , so the increase exceeds in each orientation.
Choose so large that . Initially partition into equal classes and fewer than exceptional vertices. For sufficiently large this exceptional set has size at most . Suppose there are more than irregular unordered pairs at a subsequent step, with equal class size . Choose one witnessing pair of subsets for every such pair. Split each class according to membership in all its witness subsets; each class produces at most atoms. The preceding refinement variance identity for regularity energy shows that the energy increase exceedsas long as the exceptional set has size at most .
Apply equalization with a controlled exceptional set. Set , cut every atom into blocks of size , and send its leftover points to . Provided , the new number of classes satisfiesThe lower bound holds because every old class retains at least one full block: its leftovers total less than . The discarded fraction is at mostCutting blocks is a further refinement before discarding. Discarding changes only ordered pairs with at least one discarded vertex, so it loses at most in the energy. The net increase is therefore at least .
There can be fewer than such strict energy increases, because the energy stays in . Through steps the exceptional fraction is at mostThis also verifies the exceptional-set bound used at every preceding step. Iterating the finite recursion at most times bounds all class counts by some . Choosing sufficiently large in terms of , for instance with and , guarantees throughout. Thus the process terminates with the desired regular pairs of vertex sets. Choose a finite integer threshold for these requirements and set . For , use singleton sets; every pair is regular because its only admissible nonempty subsets are the whole pair. This completes the Szemerédi regularity lemma for all admissible .
For the half graph, a class of size has exactly elements with fewer than predecessors, and the same number with fewer than successors. Thus its boundary contains at most elements. Let be the numbers of classes. The boundary rank obstruction in a half graph gives the union boundbecause . There is therefore an index away from both boundaries. In its classes , all four subsets , , , have at least one tenth of their respective class sizes. These subsets are taken within , which need not be intervals.
In the half graph, and . If were a -regular pair of vertex sets, both values would be within of , implying , a contradiction. At least one class pair is not -regular.