The Gödel second incompleteness theorem says that a consistent, effectively axiomatized first-order theory with enough arithmetic and its standard derivability and diagonalization properties cannot prove its formal consistency statement .
If a consistent proved , it would prove by classical propositional logic. Apply Löb's theorem to . This would give , contradicting consistency. ThereforeFor an inconsistent first-order theory the conclusion need not hold, since it proves every first-order sentence.
Past exam of the logic and set theory course of the University of Oxford 2007 A 3 ii Solution 2026-10-31
For independence, construct four first-order structures, each satisfying exactly the three required remaining axioms and failing the chosen one.
To fail associativity, use the carrier , interpret as , and define the commutative operation by its table:The first row and column give a two-sided identity, and every element is its own inverse because the diagonal entries are . Symmetry gives commutativity. Butso associativity fails.
To fail the identity axiom, take , , and the constant operation . It is associative and commutative, and every element has a two-sided partner producing ; but .
To fail the inverse axiom, use natural numbers under addition with . Addition is associative and commutative and has the required identity, but has no additive inverse in this carrier.
To fail commutativity, use the symmetric group under permutation composition with its identity. Associativity, identity and inverses are group properties, while . Each countermodel witnesses the failure of semantic entailment from the other three to the failed first-order sentence. Hence the four source axioms are independent.
Past exam of the logic and set theory course of the University of Oxford 2007 A 3 i Solution 2026-10-31
The first-order terms are the smallest collection containing every variable and and containing whenever are first-order terms. The atomic formulas are exactly for first-order terms . Logical formulas are then obtained from atomic formulas by the logical connectives and quantifiers: if are logical formulas and a variable, then , , , , and are logical formulas. These closure rules, with no additional strings admitted, define the syntax; a presentation using fewer primitive connectives treats the others as abbreviations.
Semantic entailment is the conditionThe same first-order variable assignment is used for all premises and the conclusion. This matters when free variables occur; for first-order sentences the truth value is independent of the first-order variable assignment.
Past exam of the logic and set theory course of the University of Oxford 2007 A 4 iii Solution 2026-10-31
Take to consist of the three usual first-order sentencesThese assert reflexivity, symmetry and transitivity and therefore define exactly the equivalence relations.
For , adjoin to the single first-order sentenceIts witness gives a second member of each class, while its final universal clause excludes all others. Hence every class has exactly two members, and conversely such a relation satisfies it. This remains a finite set of first-order sentences.
For each positive integer , writeThenEvery class in a first-order model has at least elements for every , so cannot be finite. Conversely every infinite equivalence class supplies each finite collection of distinct witnesses. The displayed infinite scheme therefore has exactly the requested first-order models.
Past exam of the logic and set theory course of the University of Oxford 2007 A 4 ii Solution 2026-10-31
The compactness theorem says that a set of first-order sentences has a first-order model if and only if every finite subset of has a first-order model. One direction follows by using the same first-order model for each subset.
For the nontrivial direction suppose every finite subset has a first-order model, but has none. Semantically , so completeness gives a formal logical derivation . A formal logical derivation is finite and uses only finitely many assumptions, say . Thus . Soundness would make unsatisfiable, contradicting the hypothesis. Here can be any fixed contradictory first-order sentence, such as , if it is not a primitive logical symbol. Therefore finite satisfiability implies satisfiability.
Past exam of the logic and set theory course of the University of Oxford 2007 A 4 i Solution 2026-10-31
Soundness states that formal derivability implies semantic entailment:For first-order sentences this means that every first-order structure satisfying all assumptions also satisfies every first-order sentence formally derived from them. In the logical formula version one uses the usual restrictions on generalization from assumptions with free variables.
Strong completeness states the converse:Equivalently, every syntactically consistent set of first-order sentences has a first-order model. Equality is interpreted as actual identity, and its usual logical axioms and substitution rules are part of the standard calculus. Both assertions hold for arbitrary sets of assumptions, rather than only finite sets.
Past exam of the logic and set theory course of the University of Oxford 2008 A 3 a Solution 2026-10-31
An -structure consists of a nonempty domain , an element for each constant symbol, a function for each -ary function symbol, and a relation for each -ary predicate symbol. When equality is part of the logic it is interpreted as actual identity on .
An assignment in a first-order structure is a function from logical variables to . It induces a term valuation of first-order terms recursively:For an atomic formula, substitute these first-order term values into the interpreted relation, or compare them for equality. Extend satisfaction for a set structure through the truth tables of the logical connectives, and through the quantifier clausesThus the first-order structure and assignment in a first-order structure together determine truth values for all logical formulas. A first-order sentence has no free variables, so its truth does not depend on the assignment in a first-order structure.
Past exam of the logic and set theory course of the University of Oxford 2008 A 3 b Solution 2026-10-31
The assertion that is a first-order model of means that every first-order sentence belonging to is true in the first-order structure:Equivalently each first-order sentence is true under every assignment in a first-order structure, since first-order sentences have no free variables. The first-order sentences must all hold in the same interpretation of the language; one cannot select a different first-order structure for each member of .
Past exam of the logic and set theory course of the University of Oxford 2008 A 3 c Solution 2026-10-31
Use the following group axioms in the given language:Commutativity supplies the other identity and inverse equations. These first-order sentences therefore specify precisely an abelian group with the named identity ; an inverse function symbol is unnecessary because inverses are asserted to exist by a quantified formula.
For each positive integer , let be the first-order term recursively defined by and . Add the torsion-free abelian group axiom schemeEvery first-order model of these first-order sentences is an abelian group with no nonidentity element of finite order. Conversely every torsion-free abelian group satisfies each of the displayed first-order sentences. This is a countably infinite first-order axiomatization of exactly the required class.
Past exam of the logic and set theory course of the University of Oxford 2008 A 3 d Solution 2026-10-31
No finite axiomatization exists. Write for the axioms just constructed and suppose a finite set of first-order sentences had exactly the same first-order models. Its logical conjunction is a single first-order sentence, and . By the compactness theorem there is a finite subset with : otherwise would be finitely satisfiable and hence satisfiable, a contradiction.
Only finitely many of the integers in the torsion-free scheme occur in . Choose a prime number larger than all of them. The cyclic group satisfies all the group axioms and each of these finitely many conditions from the torsion-free abelian group axiom scheme: multiplication by an integer is invertible modulo , so implies . It consequently satisfies , then , and therefore .
But its nonzero elements have finite order , so it is not a torsion-free group, contradicting the assumed description of the first-order models of . This establishes the nonfinite axiomatizability of torsion-free abelian groups, ruling out every finite set of defining first-order sentences, not just finite subsets of the particular scheme in part (c).
Past exam of the logic and set theory course of the University of Oxford 2008 A 4 b Solution 2026-10-31
Gödel's completeness theorem for first-order sentences says that, in a standard sound first-order Hilbert calculus,Equivalently every first-order consistent set of first-order sentences has a first-order model: apply this existence statement to for the consequence formulation.
For the first-order model existence formal proof use a Henkin construction. Enlarge the language by fresh constant symbols and adjoin Henkin witness axiomsFreshness of preserves first-order consistency. In detail, if a contradiction followed after adjoining one witness axiom, the deduction theorem for first-order logic would yield its negation, from which one obtains both and over the old theory. Since the new constant symbol does not occur in that theory or in , replace it by a fresh logical variable and generalize to derive , a contradiction. Finitely many witness additions preserve first-order consistency successively, and unions preserve first-order consistency because formal proofs are finite. Iterate the enlargement so that logical formulas involving newly introduced constant symbols also receive witnesses. Include at least one constant symbol to guarantee closed terms.
Extend the resulting first-order consistent witnessed first-order theory to a maximal consistent set of first-order sentences . In the equality-free case make the domain the set of closed terms. Interpret constant symbols and function symbols by their formal first-order term constructions; interpret an atomic formula byThe truth lemma for a Henkin term model follows by induction on logical formulas with closed terms substituted for their free variables. The logical connective steps use maximal consistency of a first-order theory. In the existential step, membership of supplies a witness constant and hence a first-order term satisfying ; conversely a satisfying closed term gives the existential sentence by an inference of the calculus. The term model consequently satisfies and the original theory. Equality is absent here, so distinct closed terms may remain distinct domain elements without further identifications.
Past exam of the logic and set theory course of the University of Oxford 2008 A 4 c Solution 2026-10-31
In the presence of equality, two syntactically different closed terms can be asserted equal by the Henkin theory, so the raw first-order term domain from part (b) must be replaced by a quotient set. DefineThe equality axioms give reflexivity, symmetry and transitivity, so this is an equivalence relation. Their substitution consequences make it a congruence relation on a first-order structure: replacing an input by an equivalent first-order term preserves equivalence of function values and preserves membership of atomic formulas in .
Take domain . Define a function symbol by , and relations by the same membership test as before using representatives. The congruence relation on a first-order structure makes these definitions independent of representatives. Actual identity of equivalence classes now agrees with the formal equality first-order sentences in :This supplies the equality case of the truth lemma for a Henkin term model; the logical connective and quantifier cases then proceed exactly as in the Henkin construction. Thus the term model built from the quotient set is a genuine first-order model with equality interpreted as identity.
Past exam of the logic and set theory course of the University of Oxford 2008 A 4 e Solution 2026-10-31
Let in the finite language of rings: it is the set of all first-order sentences true in the field of complex numbers. It is satisfiable, with first-order model , so the countable-language Löwenheim-Skolem theorem gives an at most countable first-order model of .
All field axioms belong to , hence is a field. For every positive integer , the first-order sentence saying that there are at least distinct elements is also true in and belongs to . Thus cannot be finite, and is countably infinite.
Finally, for each first-order sentence , either or . Since satisfies all of , it satisfies exactly when does. ThereforeElementary equivalence concerns first-order first-order sentences and does not imply an isomorphism; the two fields have different cardinalities. The stronger downward form may even choose as a countable elementary subfield of .
Past exam of the logic and set theory course of the University of Oxford 2011 A 2 c ii Solution 2026-10-31
Semantic consequence under an assignment means that for every first-order structure with the relevant first-order variable assignment into its domain,More explicitly, in a fixed structure this is the satisfaction implication at ; logical consequence requires that implication in all structures and assignments. An assignment takes values in a particular domain, so a single set map is not silently shared between unrelated domains.
By induction on first-order formulas, their truth values depend only on the values of their free variables. A first-order sentence has none. If all formulas here are sentences, every displayed satisfaction statement, and therefore the consequence condition, is independent of .
Past exam of the logic and set theory course of the University of Oxford 2011 A 2 e Solution 2026-10-31
The compactness theorem states that a set of first-order sentences has a model if every finite subset has a model.
For each , let assert that at least distinct elements exist. Consider . A finite subset requires only some finite lower bound on the size. Choose an odd integer ; the given property of supplies a model of that size, satisfying the finite subset. By the compactness theorem, has a model. Its domain has at least elements for every , so has an infinite model. This argument applies to every sentence with the finite-model-size property in (b), irrespective of its behavior on infinite structures.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 23 1 a Solution Created 2026-10-03 Updated 2026-10-14
The compactness theorem for first-order logic says that a set of first-order sentences has a model if and only if every finite subset of has a model. It applies to arbitrary languages, including expansions by arbitrarily many new constants. Equivalently, if entails a sentence, some finite subset already entails it. We will use both formulations with the diagram of a structure.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 23 6 b Solution 2026-10-14
An exact-count form of the Hanf locality lemma is as follows. For every quantifier rank , put . If finite relational structures admit a bijection such thatthen and agree on every first-order sentence of quantifier rank at most . Equivalently, they have the same number of occurrences of every marked radius- one-point neighbourhood type. The individual local isomorphisms need not be restrictions of .
A bounded-degree threshold version permits the type counts to be different when both exceed a sufficiently large bound depending on the degree bound and . We need only the exact-count form. Its locality content is that sufficiently large matching neighbourhoods and their multiplicities determine all sentences up to the prescribed quantifier rank.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 23 6 c Solution 2026-10-14
Suppose a first-order sentence defined the bipartite graphs, equivalently the 2-colourable graphs. Let be its quantifier rank and . Choose an odd integer , and compareBoth have vertices. Every marked radius- neighbourhood in either graph is a path with vertices and its middle vertex marked: the choice of prevents the ball from wrapping around a cycle. Thus every vertex has exactly the same neighbourhood type in both graphs, and that type occurs times in each. Any bijection of their universes meets the Hanf locality lemma hypothesis.
Therefore and agree on . But is an even cycle and is bipartite, whereas contains odd cycles and is not bipartite. This contradiction provesThe equal total size is useful here: no large-count threshold or comparison of unequal multiplicities is needed.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 23 7 a Solution 2026-10-14
Fagin's theorem states that, for a finite relational signature, an isomorphism-invariant class of finite structures has its standard encoding language in NP if and only if it is definable by an existential second-order logic sentencewhere is first-order and the relation variables have fixed finite arities. The forward implication includes the substantive encoding of a polynomially bounded accepting computation by relations. In the reverse implication the relations are polynomial-length certificates and the fixed first-order sentence can be checked in polynomial time. This is a finite-structure characterization; no order need be named in the input signature.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 23 2 b Solution Created 2026-10-03 Updated 2026-10-06
Let denote the universal consequences of a theory: all universal first-order sentences entailed by . A first-order structure satisfies exactly when it embeds into a model of , by the compactness theorem applied to its diagram of a structure.
The theory has algebraically prime models if, for every , there are and a structure embedding such that every structure embedding , , factors as for some structure embedding . Neither nor is required to be elementary.
For , simple closure means that every existential quantifier-free formula over which has a witness in has one in :Now take two models with common substructure . Since embeds into , it satisfies . Choose its algebraically prime extension , and embed into both and over .
If holds in , the image of in is a model of . The assumed simple closure of this image transfers a witness from into . Its embedding into then transfers the quantifier-free formula and its witness into . Thus the hypothesis of QET1 is satisfied. The second test follows: has quantifier elimination.