Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 14 6 Solution Created 2026-10-03 Updated 2026-10-14
We prove both inequalities, including the BK inequality, for the inhomogeneous product measure in the question. Identify a configuration with its set of coordinates equal to one. An up-set is then an increasing event. For an increasing event , a set of open coordinates is a witness if the configuration with precisely open belongs to : upward closure ensures that those coordinates alone force , whatever the remaining coordinates do. The event means that there are disjoint open witnesses for respectively.
First prove the Harris' inequality by induction on the number of coordinates. For the last coordinate, of parameter , write and for the two sections in the remaining coordinates, and put , . Induction applied to each section givesSubtract the product of the marginal probabilities from the right-hand side:The base case of zero coordinates is immediate. Thus
For disjoint occurrence, first assume every coordinate parameter is at most , and again use induction. Put on the remaining coordinates. The zero-section of is exactly . The one-section is exactlyIndeed, the last open coordinate can belong to at most one of two disjoint witnesses. Assigning it to the witness leaves a witness for and a witness for ; assigning it to the witness gives the other event. If neither witness uses it, both descriptions still hold. Conversely, witnesses for either displayed event lift to disjoint witnesses by adding the last coordinate only to the appropriate one.
The intersection of the two displayed events contains , because the sections are increasing. ThereforeThe coefficient is nonnegative. Applying the induction hypothesis to each term givesThe product of the marginal probabilities is exactly this last expression plusThis proves the desired inequality whenever every parameter is at most .
To remove that restriction, suppose first for every coordinate. Replace coordinate by the logical disjunction of independent Bernoulli bits, each with parameterChoose large enough that . Different blocks are independent, and their OR values have exactly the original distribution. Let be the inverse images of under this block-OR map; they are increasing events. If the OR configuration has disjoint witnesses , choose one open bit from each block indexed by or . The bits chosen for force , those for force , and the two bit sets are disjoint. Thus the inverse image of is contained in . The small-parameter result provesParameters equal to one follow by a limit: probabilities of any fixed event on a finite cube are polynomials in the coordinate parameters, hence continuous. Zero parameters already cause no difficulty. We have obtained
For the graph application, take coordinates to be the edges of the complete graph. Let be the increasing event that is connected by a graph path to , and the corresponding event for . Their probabilities are . A simple graph path from to through splits at into two graph paths with disjoint edge sets. Those sets witness and , so this graph path event is contained in . The BK inequality givesOn the other hand, if both and occur, concatenate an -to- graph path and an -to- graph path to obtain a walk from to . Removing loops yields a simple graph path, although it need not pass through . Thus is contained in the unrestricted connection event, and the Harris' inequality givesThe distinction between a simple graph path through and an unrestricted connection is essential: a walk may revisit an edge, so a through- walk would not in general provide disjoint witnesses.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 59 1 b Solution Created 2026-10-03 Updated 2026-10-07
A proposed assignment for 2UN-SAT can be checked in polynomial time, including checking the syntactic restriction, so the language belongs to NP.
For an explicit reduction, parse any Boolean formula into a Boolean circuit over binary AND (logical conjunction), binary OR (logical disjunction) and unary NOT (negation), and apply the gate equivalences in part (a), asserting its output. Every gate clause has at most two positive literals: the AND clauses have respectively one, one and one; the OR clauses have one, one and two; and the NOT clauses have two and zero. The unit output/constant clauses also obey the restriction. Hence the resulting formula is an instance of 2UN-SAT.
The Tseitin transformation is linear in the gate description, and its auxiliary variables enforce the gate values rather than relaxing their relation to the inputs. Therefore the original formula is satisfiable if and only if the transformed restricted formula is satisfiable. This is a polynomial-time many-one reduction from SAT, whose hardness follows from the Cook-Levin theorem. ConsequentlyThe condition limits positive literals, without limiting total clause length.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 59 3 c Solution Created 2026-10-03 Updated 2026-10-07
The AND-NOT circuit value problem belongs to P: validate the Boolean circuit and evaluate its gates in a topological ordering. Evaluation takes polynomial time even if its description is not already in a topological ordering.
For P-completeness we use logspace many-one reductions. Start from the supplied circuit value problem over the usual AND (logical conjunction), OR (logical disjunction) and NOT (negation) basis. Retain AND and NOT gates, and replace every OR gate by the De Morgan's laws gadgetThis adds only a constant number of gates per old gate, preserves its truth value for all inputs and keeps the Boolean circuit acyclic. If the format includes constant source nodes, replace them by additional input nodes assigned fixed bits zero and one; these are inputs, not disallowed gates. Larger fan-in gates can first be replaced by binary trees of their inputs.
To output the new description, keep the old gate index and a constant-size gadget position, rescan old references when necessary, and assign consistent new indices to each gadget's terminal output. These counters and references occupy bits; the input assignment is copied with any constant-source bits appended. Thus the construction is a logspace many-one reduction preserving acceptance. Since Boolean circuit Value is P-complete under such reductions,
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 20 3 Solution Created 2026-10-03 Updated 2026-10-06
A first-order signature specifies sorts, function symbols with specified input and output sorts, and relation symbols with specified input sorts. A coherent formula is built from atomic relations and equalities using , , finite logical conjunctions, finite logical disjunctions, and existential quantification. A coherent theory is a set of sequents between coherent formulas in a common finite context; its axioms are interpreted as universally closed implications. Neither general negation nor universal quantification is allowed inside coherent formulas.
One complete presentation of coherent logic consists of the following axiom and rule schemes, together with the theory's sequents. All displayed formulas have compatible sorts and contexts, and bound variables can be renamed.
Identity and cut give andSubstitution replaces the free variables of any derivable sequent by well-typed terms, avoiding capture. Contexts can be enlarged by unused variables, and permuted or renamed.
The finite-meet rules are , , , andThe finite-join rules are , , , andInclude distributivity .
Existential introduction is . Existential elimination iswhere is absent from . Equivalently, the quantifier is left adjoint to weakening along the context projection. Include the Frobenius rule in coherent logicIt can also be derived from the usual coherent natural-deduction rules.
Equality has and the substitution schemeincluding atomic formulas and terms of the signature. Symmetry, transitivity and congruence for all functions and relations follow. These schemes impose no unintended inhabitedness axiom on a sort.
The coherent syntactic category has objects formulas in context , up to renaming. An arrow from to is an equivalence class, modulo provable equivalence, of formulas satisfyingandThese are provably total functional relations. The identity is the equality graph restricted by . If and are consecutive arrows, their composite is represented by . Equality, cut and existential rules give the category laws.
A coherent category has finite limits, pullback-stable regular-epi/mono image factorizations, and finite unions of subobjects stable under pullback. We verify these structures syntactically. The terminal object is the empty-context truth formula. Products conjoin formulas in disjoint contexts; equalizers add equality of the two output tuples. For a functional relation , its image in the target is represented by . Its factor onto that image is regular epic: two arrows out of the image agreeing on the source agree by existential elimination, and the same argument with the kernel pair gives the coequalizer property. Frobenius makes these image factorizations stable under pullback.
Every subobject of is represented by a formula with . Indeed, take the existential image of a monic functional relation; uniqueness makes its map to that image an isomorphism. Subobject inclusion is exactly provable implication. Finite unions are consequently disjunctions, with bottom as the empty subobject; distributivity and substitution make them pullback-stable. Hence is coherent.
The conservative syntactic model interprets a sort by , a function by its term graph, and a relation by its atomic-formula subobject. Induction on coherent formulas shows that is interpreted by the subobject of its context object. It satisfies every theory axiom by construction. Conversely, a sequent holds in this model exactly when the corresponding subobject inclusion holds, which is exactly derivability in . ThereforeThis is conservativity for coherent sequents, not a claim about non-coherent formulas.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 21 3 Solution Created 2026-10-03 Updated 2026-10-06
Every countable structure in a countable first-order language has a Scott sentence whose countable models are precisely its isomorphic copies. In particular two countable structures with the same countable infinitary logic sentences are isomorphic. Countability of both structures is essential to the back-and-forth conclusion; the sentence need not exclude uncountable models.
Let be a nonempty countable structure in a countable first-order language. The countable infinitary logic permits countable logical conjunctions and logical disjunctions, but only finite strings of quantifiers and finitely many free variables in each formula. We construct a Scott formula for every finite tuple from and every countable ordinal .
At stage zero, let be the conjunction of all atomic formulas true of and the negations of all atomic formulas false of . Include atomic formulas involving arbitrary terms and constants, not just relation symbols applied directly to variables. There are only countably many such formulas. This complete atomic description ensures that matching tuples determine a partial isomorphism of structures.
At successors putAt a nonzero limit ordinal , put . All these are formulas of countable infinitary logic: each indexing set is countable, and the free variables are only the fixed finite tuple. Rename bound variables when necessary. Transfinite induction also shows .
For tuples of the same length within , define by . Induction identifies this with the usual symmetric back-and-forth method equivalence: the tuples have the same atomic description at stage zero, and at a successor every one-element extension on either side has a matching extension at the previous stage. Thus these are decreasing equivalence relations, simultaneously for every finite tuple length.
There are only countably many pairs of finite tuples in . A pair can cease to be equivalent at most once. The supremum of the first separation stages of all pairs that separate below is a countable ordinal. Choose a countable at least that supremum. No pair can first separate at , soThis justifies stabilization without assuming that all tuples stabilize at one predetermined finite stage.
Now form the following Scott sentence, where the case has no displayed variables or quantifiers:It is a sentence of countable infinitary logic, because the family of all finite tuples is countable. The stabilization above and the truth of show .
Suppose a countable structure satisfies . Start with the empty matching tuples, and maintain . The corresponding conjunct of upgrades this to . The existential conjuncts extend the match by any specified element of . The universal-disjunction conjunct extends it by any specified element of . The atomic formula information makes a new element on one side match a new element on the other, and makes repeated elements agree with their earlier matches.
Enumerate both structures and alternate these two extension steps, including the least element not yet covered at each step. The union is a bijection preserving and reflecting every atomic formula, hence an isomorphism; for function symbols, eventually include both a tuple and the value of its function term to see explicitly that the function is preserved. For finite structures the same construction stops when both are covered. Conversely every isomorphic copy of satisfies , since isomorphisms preserve formulas of countable infinitary logic by induction on their construction. ThereforeIf countable have the same sentences, satisfies this Scott sentence of and is isomorphic to . This proves Scott isomorphism theorem.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 23 1 b Solution Created 2026-10-03 Updated 2026-10-06
Take and the proper filter on a set . In the first-order language with unary predicates , let both factors be one-element first-order structures. Set true and false in the first factor, and reverse these truth values in the second.
The reduced product also has one element . Neither nor holds there: their truth sets are and , neither belonging to . ThusLogical disjunction can therefore break the equivalence. A union can belong to a filter on a set without either summand belonging to it; the corresponding union property does hold for an ultrafilter.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 135 5 Solution Created 2026-10-03 Updated 2026-10-05
Use the Gödel-Gentzen negative translation, writing for the translated first-order formula. On atomic formulas , including logical equality, put , and put . Extend recursively byLogical negation abbreviates logical implication to logical falsity, so . The displayed logical disjunction and existential clauses are intuitionistically equivalent to the usual negative clauses and , respectively. Thus these clauses specify the same negative interpretation. Translation commutes with capture-avoiding substitution of terms for free variables.
First prove by structural induction the stability of a formula under double negation:Every double logical negation is stable, since intuitionistic first-order logic proves ; logical falsity is stable as well. Stability passes to logical conjunction by obtaining double logical negation of each component. For a logical implication with stable , assume and . An assumption would give , a contradiction, so and then . For a universal first-order formula, implies for arbitrary fresh ; use stability pointwise and generalize. Logical disjunction and existential translations are already double negations. This proves all cases.
Now regard classical first-order natural deduction as intuitionistic natural deduction plus unrestricted double-negation elimination, and induct on a classical derivation. The rules for logical conjunction, logical implication, universal quantification and logical falsity translate directly. Logical disjunction introduction gives and then its double logical negation. For logical disjunction elimination, the translated premise is and the two translated branches yield the stable conclusion . Assuming makes each branch contradictory, giving and , hence , which contradicts the premise. We have and remove it by stability.
Existential introduction likewise adds a double logical negation to the ordinary witness introduction. In existential elimination, the witness branch has the original fresh-variable condition. Assuming makes that branch give ; generalization gives and therefore , contradicting the translated premise. Again stability supplies . The universal-rule side conditions are preserved because the translation introduces no new free variables.
For logical equality, reflexivity gives and then its double logical negation. For substitution, from and , temporarily assume . An assumption would transport to by intuitionistic logical equality substitution, so it gives a contradiction and hence . The first premise contradicts this. Thus holds and stability gives . Finally a classical double-negation elimination step translates precisely to , already proved. Every rule is therefore covered, giving negative translation of a classical proof:In particular a classical thesis has an intuitionistic, constructive translated proof. If nonlogical assumptions are present, they must be translated too.
In classical logic, double-negation elimination gives on atoms. Structural induction propagates equivalence through logical conjunction, logical implication and both quantifiers, and removes the added double negations on logical disjunction and existence. Therefore
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 120 1 a Solution 2026-09-28
Under the Curry-Howard correspondence, Intuitionistic propositional logic propositions are types and proofs are typed terms. Assumptions correspond to typed variables. The logical implication corresponds to the function type, logical conjunction to the product type, logical disjunction to the sum type, logical truth to the unit type, and logical falsity to the empty type.
The rules of natural deduction become term constructors. Implication introduction sends a derivation of from a variable to the abstraction , while implication elimination becomes application . Pairing and projection implement conjunction, and injections with case analysis implement disjunction. Under this correspondence, normalization of proofs is computation by beta reduction in the simply typed lambda calculus.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 1 ii Solution Created 2026-09-24 Updated 2026-09-25
The problem belongs to NP: an assignment in is a polynomial-length certificate in computational complexity, and substitution verifies every equation in polynomial time.
For NP-hardness, reduce the Circuit satisfiability problem. Introduce one variable in for every wire of a Boolean circuit. A logical negation gate is enforced by , and a logical conjunction gate is enforced by . For a logical disjunction gate use the suggested quadratic equationwhich is equivalent to for bits . Add the linear equation for the designated output wire.
The construction introduces one variable and one equation per wire or gate, so it is a polynomial-time many-one reduction. A satisfying circuit input extends uniquely through its gates to a solution of the equations, and any solution gives a consistent accepting circuit computation. Since circuit satisfiability is NP-complete, quadratic-equation satisfiability over F2 is therefore
A disjunctive normal form, also called a sum of products, is an OR of AND terms, each made from Boolean literals such as or . For example,Here juxtaposition means logical conjunction, means logical disjunction, and a bar means negation. The expression need not be canonical: a term can omit variables, and need not name a single row of the truth table.
Implement each product by an AND gate and combine the products with an OR gate. Supply complemented inputs with NOT gates. ThusThis is the usual two-level combinational logic realization, counting complemented inputs as available. If NOT gates are counted, a complemented input can traverse three gates. The two-level depth statement also assumes sufficiently large gate fan-in: using only two-input logic gates requires trees for long products or sums. Constant, single-product and single-literal Boolean functions may need fewer levels, so the two-level construction is a general bound, not a claim that every expression requires exactly two layers.
The following natural deduction tables record the active assumption lines explicitly. A rule may use an earlier line only while all of that line's assumptions remain available; assumption discharge closes the indicated case or hypothesis. The first proof makes the case split first, constructs the whole required logical conjunction in each case, and then closes the cases.
Table 1.
First proof: one case split constructs both conjuncts
. | Line | Open assumptions | Formula | Justification |
|---|---|---|---|
| 1 | 1 | Premise | |
| 2 | 1, 2 | Temporary assumption | |
| 3 | 1, 2 | disjunction introduction L 2 | |
| 4 | 1, 2 | disjunction introduction L 2 | |
| 5 | 1, 2 | conjunction introduction 3, 4 | |
| 6 | 1, 6 | Temporary assumption | |
| 7 | 1, 6 | conjunction elimination L 6 | |
| 8 | 1, 6 | conjunction elimination R 6 | |
| 9 | 1, 6 | disjunction introduction R 7 | |
| 10 | 1, 6 | disjunction introduction R 8 | |
| 11 | 1, 6 | conjunction introduction 9, 10 | |
| 12 | 1 | disjunction elimination 1, 2, 5, 6, 11 |
The second proof instead splits the goal first. It proves each required logical disjunction by a separate use of disjunction elimination, then applies conjunction introduction at the end.
| Line | Open assumptions | Formula | Justification |
|---|---|---|---|
| 1 | 1 | Premise | |
| 2 | 1, 2 | Temporary assumption | |
| 3 | 1, 2 | disjunction introduction L 2 | |
| 4 | 1, 4 | Temporary assumption | |
| 5 | 1, 4 | conjunction elimination L 4 | |
| 6 | 1, 4 | disjunction introduction R 5 | |
| 7 | 1 | disjunction elimination 1, 2, 3, 4, 6 | |
| 8 | 1, 8 | Temporary assumption | |
| 9 | 1, 8 | disjunction introduction L 8 | |
| 10 | 1, 10 | Temporary assumption | |
| 11 | 1, 10 | conjunction elimination R 10 | |
| 12 | 1, 10 | disjunction introduction R 11 | |
| 13 | 1 | disjunction elimination 1, 8, 9, 10, 12 | |
| 14 | 1 | conjunction introduction 7, 13 |
The essential difference is the order of proof construction: the first shares one case split between both goals, whereas the second duplicates that split and combines the results outside the cases. Both use only the stated natural deduction rules, and both conclude
Temporarily deny the desired logical disjunction. If held, it would introduce that very logical disjunction, producing logical falsity; double-negation elimination therefore gives . The same argument gives , contradicting the premise. The complete natural deduction derivation is:
| Line | Open assumptions | Formula | Justification |
|---|---|---|---|
| 1 | 1 | Premise | |
| 2 | 1, 2 | Temporary assumption | |
| 3 | 1, 2, 3 | Temporary assumption | |
| 4 | 1, 2, 3 | disjunction introduction L 3 | |
| 5 | 1, 2, 3 | negation elimination rule 4, 2 | |
| 6 | 1, 2 | negation introduction 3, 5 | |
| 7 | 1, 2 | double-negation elimination 6 | |
| 8 | 1, 2, 8 | Temporary assumption | |
| 9 | 1, 2, 8 | disjunction introduction R 8 | |
| 10 | 1, 2, 8 | negation elimination rule 9, 2 | |
| 11 | 1, 2 | negation introduction 8, 10 | |
| 12 | 1, 2 | double-negation elimination 11 | |
| 13 | 1, 2 | conjunction introduction 7, 12 | |
| 14 | 1, 2 | negation elimination rule 13, 1 | |
| 15 | 1 | negation introduction 2, 14 | |
| 16 | 1 | double-negation elimination 15 |
ConsequentlyThe uses of double-negation elimination are justified by the supplied rules. This distinguishes the proof from the preceding constructive direction of De Morgan's laws.
Under the premise, assuming either disjunct would introduce the forbidden logical disjunction. Discharging those two assumptions gives the two separate negations, which can then be conjoined.
Table 1.
Derivation of the two negated disjuncts
. | Line | Open assumptions | Formula | Justification |
|---|---|---|---|
| 1 | 1 | Premise | |
| 2 | 1, 2 | Temporary assumption | |
| 3 | 1, 2 | disjunction introduction L 2 | |
| 4 | 1, 2 | negation elimination rule 3, 1 | |
| 5 | 1 | negation introduction 2, 4 | |
| 6 | 1, 6 | Temporary assumption | |
| 7 | 1, 6 | disjunction introduction R 6 | |
| 8 | 1, 6 | negation elimination rule 7, 1 | |
| 9 | 1 | negation introduction 6, 8 | |
| 10 | 1 | conjunction introduction 5, 9 |
ThusThe redundant closing parenthesis printed after the conclusion on p. 8 does not alter the readable propositional formula.[ref]
Assuming lets the disjunction introduction rule produce the logical disjunction excluded by the premise. This gives a contradiction, so conclude by negation introduction and double-negation elimination:
| Line | Context | Formula | Justification |
|---|---|---|---|
| 1 | Premise | ||
| 2 | Temporary assumption | ||
| 3 | disjunction introduction rule on 2 | ||
| 4 | negation elimination rule on 3, 1 | ||
| 5 | negation introduction rule on 4; discharge 2 | ||
| 6 | double-negation elimination on 5 |
By De Morgan's laws, taking a set difference from a union requires exclusion from both sets, while taking a set difference from an intersection requires exclusion from at least one:For example, belongs to the first left-hand side precisely when , and ; these are exactly the membership conditions on the first right-hand side. For the second identity, replace the two exclusions by their logical disjunction.
Use negation introduction separately for each component, introducing the forbidden logical disjunction in each subproof:Both temporary assumptions have been discharged before the final conjunction introduction, so
Extract both negations, assume the logical disjunction, and use disjunction elimination to derive logical falsity in either case:The two case subproofs are siblings, not nested within one another. Therefore
Use proof by contradiction, expanding the final classical step explicitly into negation introduction followed by double-negation elimination. First the assumption forces : otherwise immediately gives the prohibited logical disjunction. It similarly forces . The formal natural deduction derivation isHenceThis direction of De Morgan's laws uses the classical rule supplied on the source rule sheet; it has not been silently treated as an available inference rule.
A more economical static CMOS design follows from factoring the condition for . The output is low exactly when both input pairs disagree:Generate with four CMOS inverters. Write or for an NMOS transistor or PMOS transistor whose gate receives . In the following network expressions, a dash means a series connection and means a parallel connection.
Connect this eight-device pull-down network between and ground:The first parallel module conducts exactly when and the second exactly when . Their series connection therefore conducts precisely when should be zero.
By complementary CMOS network duality, connect this eight-device pull-up network between and :A PMOS transistor conducts when its gate is zero. Consequently the first upper branch conducts when , namely ; the second conducts when . Their parallel connection gives the required logical disjunction. For every stable binary input, exactly one of the pull-up network and pull-down network conducts.
Complementary CMOS networks: eight PMOS transistors above the output and eight NMOS transistors below it
. Details. The figure labels each MOSFET channel by its gate signal; the four input CMOS inverters are additional to the devices drawn.
Expand three cases as two applications of disjunction elimination rule. For the association , the first outer branch assumes and applies the given and subproofs to obtain . The other outer branch is the given subproof. In schematic natural deduction form:
1 (φ ∨ ψ) ∨ ρ given
2 | φ ∨ ψ first outer case
3 | | φ first inner case
4 | | κ given φ-subproof
5 | | ψ second inner case
6 | | κ given ψ-subproof
7 | κ ∨-elim, 2, cases 3–4 and 5–6
8 | ρ second outer case
9 | κ given ρ-subproof
10 κ ∨-elim, 1, cases 2–7 and 8–9All three case assumptions are discharged and common surrounding assumptions remain. If the original three-way logical disjunction is parsed as , use the subproof as the first outer branch and eliminate inside the second. Thus either binary association has the asserted three-case disjunction elimination, without presupposing an unproved associativity.
