Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 25 2 ii Solution Created 2026-10-03 Updated 2026-10-06
For finite rooted trees write when there is an injective function of vertices preserving greatest common ancestors, equivalently an infimum-preserving rooted-tree homeomorphic embedding. No linear ordering of siblings is imposed. Kruskal's tree theorem says that every infinite sequence has an earlier tree embedding into a later tree: this embedding relation is a well-quasi-ordering.
The finite form uses a parameter to restrict the growth of the trees. It asserts the existence of a length for whichHere is the number of vertices. The parameter is universally quantified; changing the starting index just shifts the parameter. This is Friedman's finite form of Kruskal's theorem.
Fix and suppose there were arbitrarily long sequences violating the conclusion. Form a tree whose nodes are their finite prefixes, including the empty prefix. Choose one representative of each finite rooted-tree isomorphism type. At position there are only finitely many choices, since the tree has at most vertices. Hence this finite bad-sequence tree is finitely branching. It has nodes at arbitrarily large heights by the supposed failure of the finite form. König infinity lemma supplies an infinite branch. The branch is an infinite sequence satisfying the size bounds and with no pair having , contradicting Kruskal's tree theorem. Therefore the finite length exists for every .
The significance is that this is a true statement about finite objects and natural numbers which is not provable in Peano arithmetic; in fact it is not provable in the stronger arithmetical transfinite recursion theory in second-order arithmetic, . It is a natural combinatorial instance of incompleteness. For fixed , the condition can be checked by finite search over trees and injective vertex maps, so its uniform arithmetic form is with a computable, indeed primitive recursive, predicate . Thus its least sufficient length is a total computable function, but its totality cannot be proved in those theories. Each fixed numerical instance can nevertheless be proved in Peano arithmetic by verifying some particular finite witness. The obstruction concerns the uniform statement for all parameters, rather than the decidability of any one finite search.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 25 2 i Solution Created 2026-10-03 Updated 2026-10-06
An immune set is an infinite set containing no infinite computably enumerable subset. For binary strings, use an effective bijection with natural numbers when discussing enumeration. Fix an optimal description machine and define the plain Kolmogorov complexityAn incompressible string has no description shorter than itself, that is, . The choice of machine is fixed throughout the proof.
Let be the set of incompressible strings. There are strings of length , but only programs of length less than . Each halting program describes at most one string, so at least one string of each length belongs to . Consequently is infinite.
Suppose an infinite computably enumerable set were contained in . Define a total computable function by running an enumeration of until a string of length at least appears, and outputting the first such string. This search always terminates because there are only finitely many binary strings of bounded length. A fixed program can reconstruct from a self-delimiting binary code of . For example, if the binary expansion of has length , encode it using copies of one, a zero separator, and its binary digits. This givesfor a constant depending on the enumeration algorithm and the optimal description machine, not on . For sufficiently large this is less than , contradicting . Thus the set of incompressible strings is an immune set. This proves immunity of incompressible strings. The argument uses the ability to describe a selected long string by the short threshold specifying how it was selected.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 25 3 Solution Created 2026-10-03 Updated 2026-10-06
We prove closure under the defining schemes for primitive recursive functions, keeping all unbounded existential variables outside a bounded arithmetic formula. A bounded quantifier means or , where does not contain . All formulas are interpreted in the standard natural numbers.
First we need a finite sequence code using only the permitted language of ordered rings. Define the bounded arithmetic formulaFor given , it specifies the unique remainder of modulo . In particular the quotient and remainder variables are bounded by arithmetic terms; division is not a new language symbol.
Every finite list can be coded by some pair . Choose larger than every list entry and divisible by every integer from to . The moduli are pairwise coprime. Indeed a prime dividing both cannot divide , but then divides ; since and is divisible by that integer, this is impossible. The Chinese remainder theorem gives with for every . Since , each holds. This is Gödel beta-function sequence coding. The external choice of a divisible proves that codes exist; factorial and exponentiation do not occur in the existential bounded representation of a primitive recursive function.
For the zero function, successor function and projections use , and . These formulas need no auxiliary variables. For function composition in recursion theory, suppose have representations with bounded arithmetic formulas . A bounded arithmetic formula for isTreat every as an auxiliary variable in the outer existential block. The logical conjunction is true for some such variables exactly when is the desired output.
Now supposeBy structural induction for primitive recursive functions, assume and are bounded arithmetic formulas representing . We code the values with . For finite witness array coding, give each component of the step witness another code pair , so that the witness at step is the remainder specified by .
With these code pairs and as free auxiliary variables, take the following bounded arithmetic formula:The displayed line breaks are only for readability: the bounded quantifiers on the last three lines bind the entire bracket. If , their empty block and logical conjunction are omitted. Expanding every occurrence of leaves only bounded quantifiers, logical conjunctions, the bounded arithmetic formulas already obtained, and the symbols .
If , take the actual finite computation values and select witnesses for the finitely many true instances of , together with witnesses for . The Gödel beta-function sequence coding provides and the finitely many . These make true. Conversely, suppose some code pairs and initial witnesses make true. The unique remainders of give values . The initial clause makes . Every step clause makes , since its coded witnesses satisfy the representing matrix for . Induction on gives , and the final remainder clause gives . This argument includes , when the step condition is empty.
Closure under the initial functions of recursion theory, composition and primitive recursion provesCoding the step witnesses is essential: leaving an unrestricted existential witness block inside would not give the required syntactic form.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 25 4 Solution Created 2026-10-03 Updated 2026-10-06
We use untyped lambda calculus and normal-order beta reduction. The Church numeral for is . A lambda term represents a partial function if on numeral inputs it has the correct numeral normal form exactly when the function is defined. We use a lambda simulation of a Turing machine; this also ensures that undefined computations do not accidentally produce an output through an ignored argument.
First all total primitive recursive functions are lambda-definable. The initial functions of recursion theory are represented byComposition is obtained by substitution of representing terms. For primitive recursion use Church pairs:If represent the total functions in and , defineAfter iterations the pair has components . Thus the Church numeral executes exactly the required recursion steps. Since these functions are total on numeral inputs, substitution for composition causes no undefined-argument issue.
Now fix a deterministic Turing machine computing the given partial computable function. Encode a configuration by its finite control state and two natural numbers for the tape portions on the two sides of the head, allowing blank bits beyond the finite nonblank tape. For the two-stack encoding of a Turing tape with a binary alphabet, let have the immediately-left cell as its low bit and have the current cell as its low bit. Reading and removing a bit use remainder and quotient by two. If the machine writes , the updates areThe new state is obtained from a finite transition table. These operations, the initial configuration, the halting test, and output decoding are total primitive recursive functions on configuration codes. For instance parity alternates by primitive recursion, and the quotient by two satisfies , . A fixed finite alphabet can be handled by the same stack construction in a larger base. Choose a standard delimited input and output convention, for example unary words in a finite tape alphabet with a distinct blank symbol. Initialization is primitive recursive. On a halting configuration the output is a finite word; decoding can be implemented by a bounded scan of the encoded tape, with a default output for malformed words. This is total primitive recursive and introduces no additional unbounded search. Use nested Church pairs to carry the three fields, and the preceding primitive recursive representations to obtain lambda terms .
Represent Church Booleans by and . A Church numeral zero test is . Use a numerical test equal to zero on halting configurations and one otherwise; applying this zero test gives the required Boolean halting test. With the fixed-point combinatorputNormal-order reduction evaluates the halting test on the current configuration. If it is true, it selects the output branch without evaluating the recursive branch. Otherwise it advances the configuration and repeats. Induction on the number of machine steps shows that a computation halting with output makes reduce to .
If the machine never halts, the normal-order beta reduction repeatedly takes the recursive branch. Each individual configuration transition and test terminates, but there is always another required transition; hence the reduction never reaches a normal form. The normal-order normalization theorem says that a lambda term with a beta-normal form is normalized by normal-order beta reduction. Therefore in the nonhalting case there is no numeral normal form at all. We have provedConfluence of beta reduction ensures uniqueness of the resulting numeral. This handles genuinely partial computations. Simply composing terms for partial subcomputations would need extra care, because lambda reduction can discard an unevaluated argument.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 25 5 Solution Created 2026-10-03 Updated 2026-10-06
For , write a number in hereditary base : express its base- expansion as , with , and recursively expand every exponent in the same base. Let , for , be the number obtained by replacing every occurrence of the base in this hereditary expression by . Coefficients and the symbols for addition and exponentiation are retained.
For a starting number , define its Goodstein sequence by andThe Goodstein function is the termination-time functionThis choice counts transitions from the initial term; a convention counting the initial term as well shifts the answer by one. For example the sequence starting at is , so . Starting at gives , illustrating why descent of the numerical terms is not the termination argument.
Define the ordinal rank of a Goodstein term by replacing the base in the hereditary expansion by , at every exponent depth. The result is in Cantor normal form and lies below , called epsilon zero, the least nonzero solution of . Finite hereditary expressions have finite nesting depth, so their ranks are bounded by a sufficiently high finite tower of powers of .
For a fixed base, is strictly increasing. To see this, compare two ordinary base- expansions at their largest differing exponent. By induction through the hereditary exponent expressions, their exponents have the same ordering after replacing by ; computable Cantor normal form notation then uses the same first differing exponent or coefficient. AlsoIndeed after the base change all coefficients remain below , the recursively changed exponents remain correctly ordered, and replacing the new base by gives exactly the original ordinal expression. These facts can be proved together by structural induction for primitive recursive functions on the hereditary expression.
Consequently, whenever ,An infinite nonzero Goodstein sequence would give an infinite descending sequence of ordinals below , impossible because ordinals are well-ordered. Thus the Goodstein function is total. Its steps are effective finite operations, so simulating the sequence until zero also proves that it is a total computable function.
The same ordinal notation system gives the requested decidable well-order. Let consist of canonical finite terms for zero and for expressionswhere the exponents are themselves canonical terms. Membership in is decidable by recursively checking the syntax, positive coefficients and decreasing exponents. Comparison is decidable by recursive computable Cantor normal form notation, first of exponents, then coefficients, and then the remaining summands. All recursive calls inspect proper subterms, so the algorithm terminates.
Interpreting these terms as ordinals gives every ordinal below , uniquely. One way to connect this directly to hereditary base representations is to choose, for a given finite ordinal term, a base larger than every coefficient anywhere in that term. Replacing by that base evaluates it to a natural number whose hereditary representation recovers the ordinal term. Thus all bases together supply the complete notation system; a single fixed base is not enough.
Choose an effective injective coding of finite terms by natural numbers, and enumerate the valid codes in increasing numerical order. The resulting bijection is computable: validity is decidable and there are infinitely many finite-ordinal terms. Its inverse is computable by counting valid codes below a given code. DefineThis is a decidable relation on all of . The interpretation into ordinals is an order isomorphism onto , provingDecidability here concerns comparing two notations. Well-foundedness is supplied by their ordinal interpretation, the same mathematical descent principle used to prove Goodstein's theorem.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 25 6 Solution Created 2026-10-03 Updated 2026-10-14
A theory is recursively axiomatizable when it has an effective enumeration of axioms, equivalently when its deductive closure is computably enumerable. If the definition requires a decidable axiom set, the equivalent formulation is obtained by replacing an axiom enumerated at stage by a fixed left-associated logical conjunction of copies of it. To recognize a proposed padded axiom, inspect its finitely many possible decompositions into repeated conjuncts and check the corresponding finite enumeration stages. The padding preserves logical equivalence, so the resulting decidable axiom set generates the same theory. In either convention, enumerate formal proofs using the finite sets of axioms seen so far. This effectively enumerates every theorem.
Let be a sound arithmetic theory of the standard natural numbers, sufficiently strong to encode finite computations, proofs and substitution and to establish the diagonal lemma; an extension of Robinson arithmetic suffices. With a semidecidable axiomatization, the arithmetical provability predicate expresses that a proof of the sentence with code exists. A proof certificate can include enumeration stages for its axioms, so this predicate is arithmetically expressible even when the given axiom set is only computably enumerable.
The diagonal lemma produces a sentence such thatHere is the mechanism, including its effectiveness. For the computable substitution function taking a one-variable formula code to the code of that formula with the numeral substituted, let represent its graph. Given , form and let be the code of . The sentence has code . Numeralwise correctness and uniqueness of the represented substitution computation prove . This constructs a fixed point effectively from the code of . Applying it to gives .
If proved , arithmetic soundness would make true, while the existence of that proof would make true. The displayed equivalence would then make false, a contradiction. Thus does not prove . In the standard natural numbers its arithmetical provability predicate is therefore false at this code, so is true. Arithmetic soundness now rules out a proof of as well. Hence is incomplete: neither nor is a theorem, and is true.
For a fixed effective enumeration of computably enumerable sets, a productive set has a partial computable function such thatThe condition applies to every computably enumerable subset, including finite subsets. No condition is imposed on when the inclusion fails.
Let be the set of codes of true arithmetic sentences; numbers which are not sentence codes are excluded. Uniformly in , there is an arithmetic formula expressing : it says that a finite enumeration computation outputs . Apply the effective diagonal lemma to obtain withThe operation producing this sentence code is total computable. Suppose . If , the subset assumption says that is true, while its fixed-point equivalence says it is false, a contradiction. Thus . The same equivalence now says is true, so . We have provedTherefore arithmetic truth is a productive set. This proves productivity of arithmetic truth. It cannot itself be computably enumerable, since taking would contradict the defining property. Applying the productive procedure to the enumerable theorem set of a sound arithmetic theory also gives a true sentence outside that theory. The productive construction does not require the enumerable subset of truths to be a theory or to be deductively closed.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 4 6D b Solution Created 2026-09-24 Updated 2026-10-05
Use the well-order of the natural numbers to list in increasing order. Define recursivelyThe remaining set is nonempty because is infinite and only a finite set has been removed. Each chosen value is larger than the preceding one, so is an injective function.
To prove it is a surjective function, fix . If were never selected, every selected minimum would be at most . This would put infinitely many distinct values into the finite set , a contradiction. HenceThe increasing enumeration of an infinite subset of natural numbers uses no arbitrary choice: each next element is the uniquely determined minimum.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 4 6D c Solution Created 2026-09-24 Updated 2026-10-05
For each positive integer , the positive elements of form an infinite set, and the preceding increasing enumeration gives a bijection on these positive elements. The positive integers have a unique decomposition with , so these sets are disjoint and exhaust the positive integers.
The printed natural numbers include . The trailing-zero count of the representation of is not needed: shift the positive partition down by one and putUniqueness of the trailing-zero count proves the injective function property, and the decomposition of proves the surjective function property. An explicit decimal trailing-zero pairing function, using the increasing enumeration from the previous part, isIndeed, the bracket enumerates , exactly the positive integers not divisible by . This handles both the positive index and the element without silently changing the PDF's convention.
To enumerate the rational numbers, first enumerate the integers by , , for . The function maps onto , and composing with gives a surjective function from . Choosing the first index representing each rational number gives an injective function . Thus is countably infinite; its infinitude follows because it contains all integers.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 4 15H Solution Created 2026-09-24 Updated 2026-10-05
Use the convention that the transitive closure of is the least transitive set containing as a subset. Define and . For each natural number , a finite sequence of length with these properties exists by induction, and is unique because each next entry is the uniquely determined union of the previous entry. Thus the relation sending to its last entry is a definable function-class, not just a putative recursive specification. The Axiom schema of replacement applied to gives the set of all . The Axiom of union then givesIf and , then , so this set is transitive. It contains , and any transitive set containing contains all by induction; hence it is least. The convention requiring itself as an element instead uses .
The Axiom of foundation says every nonempty set has an element with . Epsilon induction says that for every formula ,To derive induction from Foundation, if fails, form by axiom schema of separation the nonempty set of counterexamples in . A Foundation-minimal counterexample has every member satisfying , by transitivity, contradicting the inductive hypothesis. Conversely, if a nonempty set has no Foundation-minimal member, every has a member in . The formula is then progressive: if all members of are outside , must also be outside . Epsilon induction makes empty, a contradiction. Thus the two principles are equivalent given the other axioms.
The epsilon-recursion theorem states that for a definable class operation assigning a unique set to each set-indexed function, there is a unique definable function-class such that for every set . A version with explicit in the argument is equivalent. Foundation gives well-foundedness and Replacement makes each restriction set-sized. Its ordinal restriction gives transfinite recursion and constructs the printed .
Here “countable” means at most countable, including finite sets and the empty set. By transfinite induction each is transitive, each of its elements is countable, and . At a successor this follows because a member of is a countable subset of ; at a limit use the increasing union. Let be the first uncountable ordinal. Every countable subset of lies in some with , since countably many countable ordinal bounds have a countable supremum. It therefore belongs to . ConsequentlyThere is no earlier stabilization: for every countable ordinal , induction gives , so , while excludes by its rank. Thus is the first such stage. The fixed set is the set of hereditarily countable sets.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 121 3 iv c Solution Created 2026-10-03 Updated 2026-10-05
Assume satisfies the countable chain condition for forcing. We prove cardinal preservation by chain-condition forcing using the possible-values lemma for chain-condition forcing, and give the argument explicitly for ccc.
Let be an uncountable cardinal of . If it ceased to be a cardinal, some ordinal would admit a surjection onto in an extension. By the forcing theorem, there would be a condition and a forcing name such thatInside , for each choose a maximal antichain in a forcing order below deciding the ordinal value of . Conditions deciding that value are dense below . The chain condition makes the chosen antichain countable in , so the corresponding set of possible decided values is countable in .
A generic filter containing meets the downward closure of every such maximal antichain, so its value belongs to . Therefore its whole range lies in the ground-model setThe last inequality is infinite cardinal arithmetic and uses only that is uncountable and ; no regularity of is needed. Some ordinal in exists already in and cannot occur in the range, contradicting the forced surjectivity.
Finite cardinals cannot collapse, and cannot become finite: a finite domain has finite image, and transitive models agree on the natural numbers. Old non-cardinals cannot become cardinals because their old bijections persist. Thus
Past exam of the mathematics course of the University of Cambridge 2019 ia Paper 4 8E a Solution Created 2026-09-24 Updated 2026-09-29
A set is countable if it is finite or admits an injection into the natural numbers; equivalently, its elements can be listed by a finite list or a sequence.
The product of two countable sets is countable: after choosing enumerations, its elements are indexed by pairs , and these pairs can be listed diagonally. Thus an injection followed by an injection proves that is countable.
The integers are listed as , so is countable. Every rational number is represented by a pair , so is countable as the image of a countable set.
Finally, if are countable, choose listings , allowing repetitions for finite sets. The diagonal listing of the pairs lists every , proving that a countable union of countable sets is countable.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 121 1 i a Solution 2026-10-03
U+D. By absoluteness of infinitude between transitive models, two transitive models of ZFC agree on the natural numbers and therefore on whether a shared set is a finite set or an infinite set.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 121 1 i d Solution 2026-10-03
U+D. The natural numbers are absolute between transitive models of ZFC, and the statement is the bounded assertion . Hence the property of being a subset of is absolute.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 1 12F a Solution Created 2026-09-24 Updated 2026-09-29
A register machine has finitely many natural-number registers, a finite set of labelled states, and instructions that increment a register, conditionally decrement and branch according to whether a register is zero, or halt. A program is a finite sequence of such labelled instructions, and a configuration records the current instruction together with every current register value.
Given inputs, place them in designated input registers and initialize the remaining registers to zero. The machine computes a partial computable function when it halts with output in the output register exactly for and runs forever otherwise.
To encode a machine, encode every instruction by a natural number using effective encodings of its opcode, register number, and target labels. Encode the resulting finite sequence by a Gödel numbering, for example through iterated pairing or prime powers. Effective decoding gives an enumeration of machine programs, so the unary function computed by program code may be denoted .
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 16H Solution Created 2026-09-24 Updated 2026-09-29
A class in set theory in the model is a collectiondefined by a first-order formula with parameters . A set-theoretic class function is a definable class relation for which every input in its domain has exactly one output. Informally, the Axiom schema of replacement says that the image of any set under any such function class is again a set.
Define the class function by the natural-number recursion theorem,Then , and Replacement applied to the set givesas a set.
Call a set small when it injects into some . Every natural number is finite, and every member of is finite, so each injects into . Hence . The set itself injects into , and its hereditary members are natural numbers, so .
We next prove by mathematical induction. The case was just proved. If and , then , so inclusion injects into and makes small. Every set below in its transitive closure is already below and is small by the induction hypothesis. The set itself injects into . Thus every member of is small.
By Cantor theorem, , so the are distinct and injects into . Thus is small. Every other member of belongs to for some , and is small by the preceding paragraph. Therefore . This proves the finite-power-set hereditary-small construction.
The structure is not a model of ZF because it fails the Axiom of union. If were small, it would inject into some . But , since , so restriction would injectTogether with the singleton injection , the Cantor-Schröder-Bernstein theorem would produce a bijection, contradicting Cantor theorem. Hence is not small and therefore does not belong to . Since has no union inside the class, the Union axiom fails.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 2H Solution Created 2026-09-24 Updated 2026-09-29
A subset of a metric space is nowhere dense when the interior of its closure is empty. One form of the Baire category theorem says that a nonempty complete metric space cannot be a countable union of nowhere dense closed sets; equivalently, a countable intersection of dense open sets is dense.
Fix and work in the complete interval . For define the closed setThe sets are closed by the continuity of , and the assumed pointwise convergence gives . The Baire category theorem therefore gives an and a nonempty open interval contained in .
The intervals overlap once , which holds for every sufficiently large natural number . Their union consequently contains a half-line. Every sufficiently large can therefore be written as with and , and then . Since was arbitrary, as .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 120 3 a Solution Created 2026-09-28 Updated 2026-10-03
The Church numeral corresponding to the natural number isA function is a lambda-definable function if some closed lambda term satisfiesfor all natural numbers .
DefineThen beta reduction givesTherefore the successor function is lambda-definable; this is the lambda definition of the successor function.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 128 1 c Solution Created 2026-09-24 Updated 2026-09-25
Take . This is a limit ordinal greater than . There is a recursive well-order code for : for example, use a recursive pairing of the natural numbers with and the lexicographic order consisting of successive blocks of order type . Since is definable over , it belongs to and hence to .
The representation of is , butand the ordinals belonging to are exactly those below . Thus while its representation is not in , violating the second requirement for a coding level of the constructible hierarchy.