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 2011 ia Paper 4 2E Solution Created 2026-09-24 Updated 2026-10-14
An equivalence relation is a binary relation that is simultaneously a reflexive relation, a symmetric relation and a transitive relation: ; implies ; and , imply . The equivalence class of isEach equivalence class is nonempty by reflexivity, and every belongs to , so the classes cover . If , then the symmetric relation and transitive relation properties give . Every therefore satisfies , so ; the reverse inclusion follows similarly. Thus two classes are either identical or disjoint. The distinct equivalence classes consequently form a set partition of .
The divisibility-comparability relation is a reflexive relation and a symmetric relation, but is not an equivalence relation. Indeed, and , whereas neither nor , so transitivity fails.
For the requested four-class construction, partition the positive integers intoDefine exactly when they lie in the same . Equality of the class label is an equivalence relation. Its four classes are the two finite singletons and the two infinite parity classes displayed above.
Past exam of the mathematics course of the University of Cambridge 2012 ia Paper 4 2D Solution 2026-10-07
An equivalence relation on is a reflexive relation (), a symmetric relation (), and a transitive relation (, ). Its equivalence class at is . Because is a reflexive relation, every class is nonempty and every belongs to its own class, so the classes cover . If and share an element , symmetry and transitivity give . For every , transitivity then gives , so ; exchanging gives equality. Thus distinct classes are disjoint. The equivalence classes form a set partition of . On the empty set, the empty family is the corresponding partition.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 24 1 Solution Created 2026-10-03 Updated 2026-10-07
Take and fix a standard effective enumeration of the unary partial computable functions by program texts. WriteThe diagonal halting set is not a computable set: a supposed decision procedure would give a program that halts on input exactly when , contradicting its own index. Each is finite and uniformly decidable by bounded simulation of a computation, and with union .
For , define the computable colouringThis is a two-part decidable set partition on three-element subsets: sort the three inputs and perform the two finite simulations. Here . The halting-stage colouring of triples cannot have an infinite homogeneous set for a colouring of colour . Indeed, fix its least element . The finitely many bits of eventually stabilize. Choose two later elements of the putative homogeneous set for a colouring beyond that stabilization stage; the corresponding triple has colour .
Now suppose is an infinite homogeneous set for a colouring of colour . Its membership oracle computes : to decide whether , search for with , and return whether . For every above , homogeneity gives . Since is unbounded, taking such arbitrarily large proves that this common finite set is . ThusIf were a computable set, the displayed Turing reduction would decide , a contradiction. The displayed decidable two-colouring has no infinite decidable homogeneous set.
For the second construction, let be the finite binary strings, with coordinates starting at , and define the computable binary treeMembership is decided by finitely many tests using bounded simulation of a computation. It is a binary tree of finite strings: if a string satisfies the tests, each prefix satisfies its shorter and fewer tests. The infinite paths through a binary tree are exactlyThis set is nonempty: at a coordinate whose diagonal computation halts with a binary value choose the other value, and choose either bit elsewhere. This is an existence argument, not a proposed computable decision procedure for convergence. No member is a total computable function. If were a total binary-valued function, the condition at would say . Thus each member is a binary diagonally noncomputable function.
Moreover, has no isolated point. There are arbitrarily large indices of programs that never halt: for example, distinct program texts with successively more unused instructions followed by an infinite loop provide infinitely many such indices in the usual syntactic program coding. At every one of these coordinates the bit is unrestricted. Given any and any prefix length , change its bit at one such index and leave all other bits unchanged. The resulting different path still belongs to and has the same length- prefix. Since a path space is closed in Cantor space, is decidable, is nonempty and perfect, and no infinite path is computable.
There is a definition issue with the adjective “perfect”. The preceding conclusion uses perfect path space, allowing finite dead ends in the decidable presentation. If “perfect tree” instead requires every node to have two incompatible extensions in the tree, the requested combination is impossible. Such a nonempty tree has no terminal nodes. Starting at the empty string, test the two immediate successors and choose the first that belongs to the tree; one always exists. This constructs a total computable function whose successive prefixes remain in the tree. Thus computable pruned binary trees have computable paths. Our necessarily has dead ends; its subtree consisting only of prefixes of infinite paths is perfect in the pruned sense but is not decidable. The construction therefore supplies the intended perfect closed path space and also resolves the stronger, inconsistent interpretation.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 9 2 ii Solution Created 2026-10-03 Updated 2026-10-07
If some choice produced a graph with largest component of a graph smaller than , the balanced component cut result with packing parameter one would give an empty graph cut whose sides both have at least vertices. For any fixed such vertex set partition, a uniform edge of the complete graph crosses with probabilityTo avoid crossing in row , at least one of its offered edges must be noncrossing. The row's probability is . The rows consist of independent random variables, so at a union bound over at most vertex set partitions givesFor example, the positive integermakes this bound at most . Therefore every choice has a component of order at least , with probability tending to one. The simultaneous giant for fixed random-edge choice estimate includes choices made after seeing the entire array; it does not assume a particular online selection rule.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 9 5 i Solution Created 2026-10-03 Updated 2026-10-07
Use the standard Achlioptas process with two independent uniform candidate edges per step and a rule choosing one. The component-band vertex count counts vertices, not the number of graph components. Integer time rounding changes the arguments below by steps.
First, at the eventual graph component of order at least is assembled from graph components already present at . Contract those initial graph components. During steps, at most new edges are added, so the eventual connected contracted graph contains at most initial graph components. Initial graph components of order less than can therefore contribute at mostvertices, for sufficiently large and fixed , since . For their contribution is zero. Consequently .
We now use forced merging of large components. If at a time the graph components of order at least contain at least vertices, then after at most steps there is a graph component of order at least , except on an event of probability exponentially small in . One explicit choice is . The proof is a union bound over set partitions of the at most initial large graph components: if all final graph components were small, a balanced component cut would split their initial vertices into sets of size at least , and both candidate edges cross that fixed cut with probability at least in every step. The rule cannot avoid such a forced crossing. The failure bound is , and a union bound makes the estimate simultaneous over all starting times at most , for each fixed .
Past exam of the mathematics course of the University of Cambridge 2015 ia Paper 4 5E i Solution Created 2026-09-24 Updated 2026-10-06
For an equivalence relation on , the equivalence class of is . A set partition is a family of nonempty, pairwise disjoint subsets whose union is .
Reflexivity ensures , so every equivalence class is nonempty and every element belongs to one. If contains , then and ; symmetry and transitivity give . If , transitivity gives , so ; interchanging gives the reverse inclusion. Thus intersecting equivalence classes are equal.
Taking the collection of distinct equivalence classes therefore produces a set partition of . Every element lies in exactly one class. If is empty, the empty family is its set partition.
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 2018 iii Paper 130 2 Solution Created 2026-10-03 Updated 2026-10-05
Rado's criterion. Let be a matrix over the rational numbers, with columns . A partition regular matrix is one for which every finite coloring of the positive integers gives a monochromatic positive vector with ; repeated coordinates are allowed. The columns condition is the existence of an ordered set partition of into nonempty blocks such thatRado's theorem states
Necessity. Clear denominators so the columns are integer vectors. For each pair of disjoint index sets , with , for which is outside the linear span of the -columns, choose an integer linear functional that vanishes on those columns and satisfies . Such a functional exists by extending a basis of the span to one also containing , defining a functional on that basis, and clearing its rational denominators.
There are only finitely many such pairs. Choose a prime number dividing none of these nonzero integer evaluations. If there are no such pairs, any prime will do. Use the last nonzero digit coloring: write , with , and color by . Since is a partition regular matrix, this coloring supplies a monochromatic positive solution, so all its unit parts have a common nonzero residue .
Group the coordinates by increasing P-adic valuation, obtaining blocks with valuations . Suppose for some the sum lay outside the linear span of the earlier columns, with earlier index set . Apply to . Earlier terms vanish exactly. Divide the remaining integer equation by and reduce modulo . Later terms vanish modulo , while the current block givescontrary to the choice of . Thus every block sum lies in the earlier linear span, and for the first block this means it is zero. This proves the columns condition by the finite separating-functional proof of the columns condition.
Sufficiency. Suppose the columns condition holds. For , choose rational coefficients , indexed by earlier columns, such thatTake a positive integer clearing their denominators and bounding all . We use the allowed monochromatic m-p-c set theorem with levels. Its M-p-c set is the full setwhere the generators make every displayed expression positive. Positivity is part of this convention, rather than a rule that discards nonpositive expressions. For , setAll these numbers lie in the monochromatic set . The coefficient of in iswith the first coefficient zero by . Hence . This Rado solution inside an m-p-c set proves sufficiency.
The equality-or-inequality dichotomy. If every finite coloring gives a monochromatic solution with , the first alternative holds. Otherwise fix a finite coloring admitting no such solution. Given any other finite coloring , use the refinement of a finite coloring . Since is a partition regular matrix, it supplies a solution monochromatic for both colorings. Its first two coordinates cannot be equal, by the defining property of , so it is the required unequal solution for . Thus one of the two universal alternatives always holds. This is the partition regularity dichotomy under an extra constraint; the alternatives are not asserted to be mutually exclusive.
Both restrictions can fail. The Schur matrixis a partition regular matrix: blocks and satisfy the columns condition. Color by , using the 2-adic valuation. An equal-coordinate solution would have , and , so its coordinates cannot be monochromatic. This exhibits failure of the equality restriction.
Conversely, satisfies the columns condition in one block. Every solution has , so even the constant one-color finite coloring admits no unequal-coordinate solution. Consequently
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 147 3 i Solution 2026-10-03
For nonempty and , their edge density of a bipartite graph isThe pair is -regular when every and with and satisfyFor set partitions and , the regular pair of bipartite partitions condition is
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 210 4 Solution Created 2026-09-24 Updated 2026-09-25
The pushforward measure of under is , defined for byThe Lebesgue decomposition theorem says that if and are sigma-finite measures on the same measurable space, then uniquely
Let be convex with . If dominates the probability distributions , with densities , their f-divergence isusing the lower-semicontinuous perspective convention where . This definition is independent of the dominating measure.
The data processing inequality for f-divergences statesTo prove it, take and let . If and , then the pullbacks of the densities of and with respect to are respectively and . The perspective of a convex function is jointly convex. Conditional Jensen inequality therefore givesIntegration proves the claim.
The Squared Hellinger distance isIf have densities with respect to a sigma-finite measure , this becomes
Fix any probability distribution and set , , and . Applying the data processing inequality to the indicator function of gives the Bernoulli Hellinger boundThe hinted inequality impliesThe function is concave on . Since the form a set partition, , and Jensen inequality givesTaking the infimum over proves the stated inequality.
Proper edge coloring 2026-10-14
A proper edge colouring gives different labels to any two distinct edges sharing a vertex. We work with finite undirected graphs without self-loops; distinct parallel edges in a multigraph must also have different colours. For a simple graph, whose edges are two-element sets, the condition isEvery colour class is a matching in a graph. Conversely, a set partition of the edges into matchings in a graph supplies a proper edge colouring. Thus minimizing colours means grouping all the edges into as few matchings in a graph as possible.
The line graph makes the relationship with proper vertex colouring explicit: replace each original edge by a vertex, joining two new vertices exactly when their original edges share an endpoint. A proper edge colouring of becomes a proper vertex colouring of its line graph , so . For a multigraph, retain a distinct new vertex for each parallel edge.[ref]
Refinement of a set partition 2026-10-14
A set partition refines if every cell of is contained in a cell of . Thus retains every separation made by and may make additional separations. Refinement of a set partition is reflexive and transitive. If each partition refines the other, their cells coincide, so refinement of a set partition is a partial order on partitions. For finite partitions the nonempty intersections of cells form their common refinement of a set partition. In graph regularity arguments, subdividing cells and treating discarded vertices as singletons preserves refinement of a set partition; merging discarded vertices into one cell need not. The refinement variance identity for regularity energy consequently proves that this singleton treatment cannot decrease the equitable regularity energy.
If a set partition refines a rectangle of a graph into rectangles , write for its edge density of a bipartite graph. The weighted variance identity isIt follows by expanding the square and using . In particular, equitable regularity energy cannot decrease under refinement. If a witness rectangle has relative sizes at least and edge density of a bipartite graph discrepancy greater than , its contribution, after division by the squared total vertex count, exceeds .
Regular pair of bipartite partitions Created 2026-10-03 Updated 2026-10-06
Let and be set partitions of the two parts of a bipartite graph. The pair of partitions is -regular whenThus a uniformly random pair in lies in an irregular cell pair with probability at most .