Boundary rank obstruction in a half graph 2026-10-05
Partition both sides of a half graph into classes of size at least . A class of size has at most elements with fewer than class elements on one side in the underlying order. If there are and classes, the union of these boundary elements has size at most . Some index is therefore away from both boundaries. The class containing on each side has at least one tenth of its points strictly above and strictly below . Choosing lower points with upper points, or upper points with lower points, yields edge density of a bipartite graph values one and zero. Both cannot be within of the same class-pair edge density of a bipartite graph, so that pair is not a -regular pair of vertex sets.
Half graph Created 2026-10-05 Updated 2026-10-06
A half graph has two vertex classes and , with adjacent to exactly when . Its nested vertex neighbourhoods give a useful obstruction to partitions in which every pair is a regular pair of vertex sets.
Irregular pair of vertex sets 2026-10-14
For disjoint nonempty vertex sets of a graph, an -irregular pair is one that is not an -regular pair of vertex sets. Equivalently there are witnesses , with , and . Splitting both cells by these witnesses increases their contribution to the regularity energy by at least : the witness rectangle has relative weight at least , its mean discrepancy has magnitude greater than , and the Cauchy-Schwarz inequality bounds the weighted sum of squared discrepancies below by the rectangle weight times its squared mean. This is the local increment in the energy-increment proof of Szemerédi regularity.
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 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 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.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 110 3 Solution Created 2026-10-03 Updated 2026-10-05
Statement and definitions. For disjoint nonempty sets of vertices, their edge density of a bipartite graph is . They form a regular pair of vertex sets, or an -uniform pair, ifwhenever , , and .
The Szemerédi regularity lemma states that for every and positive integer , there are integers such that every graph of order has a set partitionwith , , equal nonzero sizes , and at most unordered pairs , , that fail to be -uniform. It is enough to prove this for , since decreasing the parameter strengthens the conclusion.
Energy increment. For the proof, regard each exceptional vertex as a singleton part and use the equitable regularity energyThe sum is over ordered pairs, including diagonal pairs; for those pairs define as the mean adjacency indicator on . Thus . Under a refinement, the subrectangle densities have the original density as their weighted mean. The Cauchy-Schwarz inequality, equivalently the nonnegativity of their weighted variance, gives .
Suppose there are more than irregular pairs, with main cell size . For each such pair choose witnesses , of sizes at least and with . Refine every main cell by all its witness subsets. Each splits into at most atoms, and we may use the larger bound .
For an ordered irregular rectangle, write its refined densities as and relative areas as . The energy gain on that rectangle isThe witness rectangle has relative area at least . Applying the Cauchy-Schwarz inequality to the subrectangles it contains shows that this expression is greater than . There are two orientations of each irregular pair. Since , the total gain is greater than
Restoring equal sizes without losing energy. Put , assuming . Split every refined atom into sets of size , putting its leftover fewer than vertices into the exceptional set as singleton parts. This is a further refinement, so the energy cannot decrease. The number of new exceptional vertices is at mostThe number of new main cells satisfiesFor the first inequality, in each old cell the leftovers have total size less than , so at least one full chunk survives. All previous exceptional singleton parts are kept. Treating leftovers as singleton parts is what makes the energy increment survive equitabilization exactly.
Take and choose so large that . Start with equal main cells, with fewer than exceptional vertices. Define a finite bound by iterating a total of times, starting from . Choose sufficiently large that and whenever .
At each of the first refinements, the exceptional set has size at mostthe cell count is between and , and , so all the chunk sizes above are valid. But unsuccessful refinements would raise by more than , which is impossible. Thus the procedure terminates at a partition satisfying the Szemerédi regularity lemma.
Three linearly large uniform sets. Apply the Szemerédi regularity lemma withFor , delete all edges touching , all internal main-cell edges, all edges of irregular pairs, and all edges of regular pairs whose edge density of a bipartite graph is less than . The respective losses are bounded byThus the total loss is at most , and the remaining graph has at leastedges. Form the reduced graph of a regularity partition , joining two main cells precisely when they are -uniform and have edge density of a bipartite graph at least . If their common size is , the remaining edge count is at most . Since , we obtain . The Mantel theorem gives a triangle in a graph in . Its three cells have the required pairwise density and are -uniform: an -uniform pair is uniform for any larger parameter.
Each selected cell has size . ChooseFor , the Mantel theorem gives a triangle in a graph in the original graph, since its edge count exceeds ; take its three singleton vertices. Their pairs have density one and are uniform for every positive parameter, and . Therefore in all casesThe constant is absolute; the energy proof gives a very large bound for , which does not affect its positivity.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 132 4 a Solution Created 2026-09-24 Updated 2026-09-25
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 122 3 a Solution Created 2026-09-24 Updated 2026-09-25
For disjoint nonempty vertex sets , their edge density of a bipartite graph isThe pair is a -regular pair ifwhenever , , , and . A partition is equitable when ; is its exceptional class.