Colouring of a set 2026-10-14
A colouring assigns to each member of a set a colour in another set . Its nonempty fibres form a partition of a set. The colour set may be infinite; a finite colouring is the special case with finitely many colours. A homogeneous set for a colouring of finite subsets has all its subsets of the specified size assigned one colour.
Computable colouring 2026-10-07
A colouring is computable when an algorithm sorts the finite input subset, computes its colour and terminates. Its colour classes are uniformly computable sets. The distinction between existence of an infinite homogeneous set for a colouring and effective construction of one is a basic phenomenon in computability theory.
Finite Ramsey theorem Created 2026-09-24 Updated 2026-10-14
Fix positive integers with . There is an integer , depending only on , such that every finite coloringhas a subset of size for which the restriction of a function to is a constant function. Here , and denotes the collection of all -element subsets of , rather than its binomial coefficient cardinality. The notation abbreviates this property. Thus is a homogeneous set for a colouring; when , the monochromatic set consists of its -element subsets, not its individual elements. This is the finite assertion in Ramsey's original Theorem B, p. 267.
For , this is the pigeonhole principle, with sharp threshold . For instance, every red-blue coloring of five objects has three of one color; four objects can split two and two. For , and , the sharp threshold is six, as shown by the Ramsey number for triangles. Coloring pairs makes this a problem about edges of a complete graph. For larger , the analogous viewpoint uses a hypergraph.
The finite Ramsey theorem lets an existence argument discard most of a large finite set while retaining a prescribed amount of uniform structure. Its threshold applies to every coloring; one does not need an assumption that colors were assigned randomly. A diagonal compactness argument deduces finite existence from Ramsey's theorem, but does not by itself identify the smallest threshold. For pairs, a Ramsey number makes that optimization explicit.
Halting-stage colouring of triples Created 2026-10-07 Updated 2026-10-14
Let be an increasing uniformly computable finite approximation to the diagonal halting set. For , colour the triple if , and otherwise. No infinite homogeneous set for a colouring can have colour , since the finitely many bits below its first element eventually stabilize. Every infinite homogeneous set of colour computes the diagonal halting set: choose in and read membership of in . Homogeneity and unboundedness make this answer final. Thus the colouring has no infinite computable homogeneous set.
Monochromatic set Created 2026-09-24 Updated 2026-10-14
A subset is monochromatic for a finite coloring if there is a color such thatEquivalently, the restriction of a function is a constant function, or lies in one colour class . The word describes agreement of colors; it does not require to equal an entire colour class.
For example, color the integers by integer parity, using red for even and blue for odd. The set is monochromatic, whereas is not. If the colored objects are edges, a monochromatic triangle in a graph means that its three edges form a monochromatic set. In a coloring of -element subsets of a set , a homogeneous set for a colouring means that the collection of all -element subsets of is monochromatic. For pairs, this is a complete graph on whose edges all have one color, rather than a coloring of the vertices in .
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 10 4 Solution Created 2026-10-03 Updated 2026-10-14
Identify with the space of infinite subsets of the natural numbers. A family has an infinite homogeneous set for a colouring if some infinite satisfiesThis is the Ramsey family in the homogeneous-cone sense formulation. The relative Ramsey set of infinite subsets formulation asks for such an inside every prescribed infinite ground set. We prove the stronger completely Ramsey assertion, keeping an arbitrary finite stem fixed.
For a finite stem and an infinite tail with (taking ), writeThese neighbourhoods generate the Ellentuck topology, or star topology. A star-Borel set belongs to the sigma-algebra generated by the open sets of this topology. It is completely Ramsey if every has an infinite with or . Taking gives both preceding Ramsey formulations.
We first prove the fusion proof for open Ellentuck sets. Fix a star-open set and a starting neighbourhood . A reservoir above a finite extension accepts when . It rejects when no infinite subreservoir accepts it. Every infinite reservoir has a refinement deciding : if an accepting subreservoir exists choose one, and otherwise the reservoir already rejects. Both acceptance and rejection persist under further infinite thinning. These are acceptance and rejection of finite stems.
First refine to decide the empty extension. Choose from the refined reservoir and thin the remaining tail to decide every subset of . After choosing , thin the unused infinite tail to decide every subset of this finite prefix before choosing . Only finitely many decisions occur at each stage. Let . For each finite , its tail(with ) is contained in the reservoir chosen when the largest point of was selected. Thus decides . This is deciding all finite stems by fusion.
If accepts the empty extension, and we are done. Otherwise it rejects it. Call a finite accepted or rejected according to the decision of . For each rejected , the setis finite. Indeed, if were infinite, every would have a least element with accepted, and its remaining tail lies in . Hence for every such , making an accepting subreservoir for , a contradiction. This proves the finitely many accepting extensions of a rejected stem fact.
Build by choosing each new point outside all the finitely many sets for subsets of the already selected prefix. Begin with the rejected empty extension. Inductively every finite subset of the new prefix is rejected: the old subsets stay rejected, and each new subset is a rejected extended by a point outside , whose decision must therefore be rejection. Consequently every finite is rejected.
If a point belonged to , star-openness would give a basic neighbourhood containing it. Extend along the increasing enumeration of , if necessary, until its stem is for a finite . The infinite tail of above that stem then provides an accepting subreservoir for , contradicting rejection. Therefore . We have proved that every star-open set is completely Ramsey.
A family is completely Ramsey-null when every has a stem-preserving refinement disjoint from . Every star-nowhere dense set has this property. Apply the open-set result to the dense open complement of its star-closure. The disjoint alternative would put an entire basic neighbourhood inside a closure with empty interior, which is impossible. The other alternative gives the required avoidance.
We also need the full Ellentuck meagre-set fusion lemma, not a diagonal argument checking only one prefix. Let be completely Ramsey-null, and start inside . At stage , suppose have been chosen. Refine the remaining infinite tail successively so thatThe null property permits each refinement with its stem unchanged; previous avoidance survives thinning. There are finitely many at this stage. Choose and continue above it. Let .
For any infinite and any fixed , put . Its remaining points form an infinite subset of , so and hence . This works for every , provingThus countable unions of completely Ramsey-null sets are null. Subsets of null sets are null as well. In particular every star-meagre set, being a countable union of star-nowhere-dense sets, is completely Ramsey-null.
Finally let consist of families such that is contained in a star-meagre set for some star-open . This is the Baire property in the Ellentuck topology. We verify that it forms a sigma-algebra. Open sets belong with empty error. For a countable union, use ; its error is contained in the countable union of the meagre errors. For complements, replace by its interior. The discrepancy isa closed nowhere-dense set: every open set meeting also meets , so none can lie wholly in this boundary. Adding it to the original meagre error handles complementation. Consequently every star-Borel set belongs to .
For such an , start with any . First apply null avoidance to its meagre error to find on which agrees with . Then apply open-set homogeneity to refine it to wholly inside or outside , and therefore wholly inside or outside . This is the Baire-property reduction for completely Ramsey families. We concludeAll closures, interiors, openness and meagreness in this argument refer to the star topology; replacing it midway by the ordinary finite-prefix topology would not justify the null-avoidance step.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 19 5 Solution Created 2026-10-03 Updated 2026-10-14
Here a monochromatic set must mean an infinite homogeneous set for a colouring: every singleton is a finite monochromatic set. The requested phenomenon holds for every finite . For it is impossible, since the colour classes of a finite computable colouring are computable and at least one is infinite. We treat this necessary qualification explicitly.
We construct a finite-injury computable colouring of pairs with no infinite computably enumerable homogeneous set, which is stronger than the requested absence of a recursive one. Enumerate the computably enumerable sets as , with computable finite approximations . Requirement seeks distinct markers . At stage , consider indices not currently assigned markers. Choose the least one, if any, for which has two elements outside all markers of higher-priority indices . Assign two such elements as its markers, using a fixed least-element rule, and cancel all markers at lower-priority indices. Do nothing if no such index exists. The active markers are therefore pairwise distinct at every stage.
For , simulate this finite construction through stage and defineIn particular every active first marker has colour zero against larger points. This is a total computable function: no question about eventual enumeration or eventual stabilization is used in computing a given pair.
Induction on proves finite injury. Once the finitely many higher requirements have stabilized, requirement is never cancelled again. If it has markers they stay fixed. If is infinite, it eventually supplies two points outside the finite collection of higher markers, so it becomes eligible and is assigned markers; only finitely many higher indices could delay its assignment. Thus an infinite eventually has permanent distinct markers . Choose beyond both markers and beyond their stabilization stage. ThenSo is not homogeneous. Every infinite recursive set is computably enumerable, proving the desired obstruction. For , colour an increasing -tuple by the pair formed by its first two elements. Every pair from an infinite homogeneous candidate can be completed by larger members of that candidate, so it would give an infinite pair-homogeneous set, already ruled out.
The uncountable positive theorem is the Erdős-Rado theorem for finite arities. For every infinite cardinal and finite , define and . ThenThe partition relation means that every colouring of -element subsets of the left-hand cardinal by at most colours has a homogeneous subset of size . In particular, taking gives an uncountable homogeneous set for every finite arity, once the domain is sufficiently large.
We prove the end-homogeneity lemma needed for induction. Let be infinite, , finite, and with . In a sufficiently large choose an elementary substructure of size containing and all ordinals below , and closed under externally given sequences of length at most . Here consists of sets whose transitive closures have size below .
To justify that closure, begin with a hull containing the indicated parameters and ordinals. At each successor stage add every sequence of length at most from the preceding stage, then take a Skolem hull. There are at most such sequences. Iterate for stages and take elementary unions at limits. The union still has size , and every sequence of at most of its elements is contained in one earlier stage by regularity of , so appears at the next. This proves the claimed closed first-order model rather than assuming its existence.
Let . The inequality uses regularity of and ; has no largest element, since it is closed under successor. Recursively choose increasing for , imposing, for every -tuple of earlier points,At any stage there are at most earlier points and constraints. Each constraint consists of a tuple of elements of and a colour below , also in . The entire constraint code therefore belongs to by closure. The bound above the previous points belongs to as well. Although itself need not belong to , it witnesses in the existence of a point above that bound satisfying the coded constraints. Elementarity supplies such a point inside . This proves the recursion.
On the resulting sequence of length , the colour of an -tuple depends only on its first entries: its last entry has the same colour contribution as . This is the required closed elementary-submodel construction of an end-homogeneous sequence.
Now prove the theorem by induction on . The case is the infinite pigeonhole principle: partitioning into at most classes of size at most cannot cover it. For , set and apply the lemma to the colouring on . Define a colouring of -tuples from its end-homogeneous sequence of length by their colour when completed with . The induction hypothesis supplies a subset of size on which this derived colouring is constant. Every original -tuple from that subset has the derived colour of its first entries, and is therefore monochromatic. This completes the proof.
The unrestricted infinite-exponent situation is very different under AC. On , choose one representative of each equivalence class modulo finite symmetric difference, and colour byIf is infinite and , deleting remains in the same equivalence class and flips the colour. Every infinite candidate homogeneous set contains such an and as subsets, soMore generally the same argument works for subsets of any fixed infinite cardinality: deleting one element preserves that cardinality, so there is no unrestricted analogue with a homogeneous set large enough to contain such subsets. For the order-type- convention, choose in increasing order type and delete its first element; both sets still have that order type. Thus the distinction from the finite-arity theorem is genuine, not merely a notational ambiguity. This argument uses choice of representatives and is not a claim about every definability-restricted infinite-arity colouring.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 14 1 ii Solution Created 2026-10-03 Updated 2026-10-14
For the finite colouring , colour each unordered pair , written with , by . The infinite Ramsey theorem for r-sets again gives an infinite homogeneous set for a colouring. If its increasing enumeration is , thenThe ordering in this pair colouring is essential: it assigns the coefficient to the larger member.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 14 1 i Solution Created 2026-10-03 Updated 2026-10-14
Let be the given finite colouring, with . Give each unordered pair the colour . The infinite Ramsey theorem for r-sets, in its two-element case, gives an infinite homogeneous set for a colouring . Enumerate it as . Every distinct-index sum has the common pair colour, soThis application of the infinite Ramsey theorem for r-sets uses only unordered pairs.
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.
Ramsey theory Created 2026-09-24 Updated 2026-10-13
Ramsey theory studies configurations that every finite coloring of a sufficiently large structure must contain. Its striking message is that some order is unavoidable even when no organized construction was used. A basic example is the Ramsey number for triangles: color every edge of a complete graph on six vertices red or blue, in any way, and some triangle in a graph has all three edges the same color. Five vertices do not suffice.
The objects receiving colors matter. In the Ramsey number for triangles, colors belong to edges, which represent all unordered pairs of distinct vertices; the vertices themselves have no colors. In the finite Ramsey theorem, colors can instead belong to all -element subsets of a finite set. A monochromatic set or homogeneous set for a colouring expresses agreement among the appropriate colored objects.
Why is this useful? Ramsey theory provides existence guarantees in combinatorics that survive every possible assignment of a fixed finite number of colors. The Ramsey theorem turns this into a structural dichotomy: every sufficiently large graph contains a large clique or a large independent set. In arithmetic, the Van der Waerden theorem guarantees monochromatic arithmetic progressions. The beauty is the universal quantifier: an adversary can choose every color and still cannot prevent the promised configuration.
These guarantees concern precisely specified configurations under stated hypotheses. They do not justify selecting arbitrary patterns in empirical data after seeing the data, or attributing statistical significance to a selected pattern. A mathematical guarantee of some monochromatic configuration alone says nothing about the empirical meaning of that configuration.
The subject's name comes from F. P. Ramsey's [ref]. The [ref]
https://www.cs.umd.edu/~gasarch/BLOGPAPERS/ramseyorig.pdf. original paper, pp. 264-268, Theorems A and B
records receipt on 28 November 1928 and presentation on 13 December 1928. Ramsey introduced the Ramsey theorem for r-sets and finite Ramsey theorem as tools for a problem in mathematical logic, while recognizing their independent interest in combinatorics. He also distinguished proving that a finite threshold exists from finding its smallest value, the quantitative question captured by a Ramsey number.