For a first-order signature with at least one constant symbol, its Herbrand universe is the set of all ground terms built from its constant and function symbols. If necessary add a fresh constant to make this set nonempty. A Herbrand structure has exactly this domain; each constant denotes itself and each function symbol forms the corresponding syntactic first-order term. Its remaining choices are the truth values of the ground predicate atoms. For example, with constant and unary function , the Herbrand universe is .
One useful clausal form of Herbrand's theorem is the following. For a set of universally quantified, equality-free first-order clauses,Ground instances substitute ground terms for all variables. On the right, treat the ground predicate atoms as independent Boolean variables. Equivalently, is satisfiable if and only if it has a Herbrand model. A general first-order sentence can first be put into Skolem normal form and clausal form, with the new symbols included in the Herbrand universe.
An equivalent existential version says that a valid equality-free first-order sentence with quantifier-free formula has finitely many ground tuples such that is propositionally valid, adding a constant if needed. This explains why a finite ground resolution refutation can establish a consequence involving infinitely many possible ground terms.
The equality-free qualification matters. If first-order equality is present, one must handle its axioms and use a term model modulo a suitable congruence, or use the corresponding theorem with equality. Literal syntactic term interpretation alone cannot model a consistent requirement such as for distinct constant symbols.
This is a finite, discrete, partially observable, single-agent, sequential search problem with an unknown initial state. The cave is static while the agent deliberates. Given a complete world and an action, the described physical effects and ideal sensor readings are deterministic; ignorance of the world does not itself supply a probability distribution. The fixed monster and gold are environmental objects, not competing decision makers. A known action/sensor law with unknown object locations is different from having to learn an unknown search transition model.
Use partially observable search over belief states. A complete physical state can be writtenwhere is the agent’s room, the fixed monster room, the pit set, the fixed gold room, records whether the monster lives, whether the arrow remains, whether gold has been collected and whether the agent has exited or failed. The known room dimensions and exit are fixed data. Include death or entrapment as failure states. Movement, shooting toward an adjacent room, collection and departure have their physical meanings. In particular, a shot consumes the arrow, and kills the monster exactly when it targets the live monster’s room.
Let be this physical search transition model. For a surviving agent, an ideal observation is the tuple of three truth valuesrecording sound, breeze and glitter. Here denotes geometric adjacency and an indicator function. Initially contains all worlds compatible with the known facts and any initial observation. After action and observation , update the belief state byKnown success or failure observations are included as needed. No prior probabilities are required. A guaranteed-success goal test accepts only when every has exited carrying gold. A policy must use the same action in all worlds still indistinguishable to the agent.
An AND-OR search has OR choices for the agent’s next action and AND branches for every possible resulting observation with nonempty . Its output is a contingent plan, not merely a route. To demand safe success, reject any action whose possible outcomes include irreversible death or entrapment, and require a successful continuation on every observation branch. In an online execution the agent updates its belief state, follows the observation branch and can plan again. A strong plan need not exist: some admissible worlds have no safe route, and even solvable worlds can be observationally indistinguishable until a dangerous choice. Without an added prior and numerical rewards, expected-risk optimization is not determined by the description.
Past exam of the logic and set theory course of the University of Oxford 2007 A 1 ii Solution 2026-10-31
Two propositional formulas are logically equivalent if every Boolean valuation gives them the same truth value. A disjunctive normal form is a logical disjunction of logical conjunctions of literals, with a literal being a propositional variable or its negation.
Let include all propositional variables appearing in . For each Boolean valuation , putThe minterm is true exactly for Boolean valuations whose restrictions to these propositional variables are . ConsequentlyIndeed, an Boolean valuation making true makes its own minterm true, while a true minterm in the displayed logical disjunction certifies the truth of . There are only finitely many Boolean valuations, so this is a finite disjunctive normal form. If there are no satisfying Boolean valuations, use for any propositional variable ; this is a disjunctive normal form for falsity without needing an empty logical disjunction convention.
Past exam of the logic and set theory course of the University of Oxford 2007 A 1 i Solution 2026-10-31
A Boolean valuation is an arbitrary function assigning one of the two truth values to each propositional variable. It extends uniquely to all propositional formulas by following the construction of the propositional formula:For logical implication, is false exactly when is true and is false; otherwise it is true. Here the operations on the right are Boolean operations on truth values. Structural recursion gives existence, and structural induction gives uniqueness: once the immediate subformulas have their values, the outer connective fixes the resulting value.
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 2008 A 1 e ii Solution 2026-10-31
A useful consequence of the formation rules is that logical formulas form a prefix-free set of strings. To see this, describe a deterministic parser that reads one logical formula from its starting position. On a logical variable it consumes that one symbol. On a negation symbol it recursively reads one following logical formula. On an opening parenthesis it recursively reads a left logical formula, requires a logical implication symbol, recursively reads a right logical formula, and requires the closing parenthesis. Induction on formation proves that, if a valid logical formula begins at the current position, this procedure consumes exactly that logical formula and stops at its end.
Suppose now that both and are logical formulas and . The same parser, started at their common first symbol, must stop both at the end of and at the end of . Its deterministic stopping position cannot differ, so is empty. HenceThis argument applies to symbol strings; it does not use truth values or logical equivalence.
Past exam of the logic and set theory course of the University of Oxford 2008 A 1 g Solution 2026-10-31
Fix any Boolean valuation . Logical equivalence of and means for this Boolean valuation and every other one. Follow the unique path from the replaced node to the root of the formula syntax tree. At a negation node, equal input truth values have equal negations. At a logical implication node, the unaffected child has the same truth value before and after subformula replacement, while the affected child has the same truth value by induction; the resulting logical implications therefore agree as well.
Induction along that finite path yields . Since was arbitrary,This is the replacement theorem for logical equivalence: the semantics of each logical connective depends only on the truth values of its immediate inputs.
Past exam of the logic and set theory course of the University of Oxford 2008 A 2 a Solution 2026-10-31
A collection of logical connectives is functionally complete, or adequate, if every Boolean function of finitely many propositional variables is represented by a logical formula using only those logical connectives. More explicitly, for every and every there is a logical formula whose truth value under each Boolean valuation is . Constant functions with Boolean values may use an otherwise irrelevant logical variable, for example for truth and for falsity.
Past exam of the logic and set theory course of the University of Oxford 2008 A 2 b Solution 2026-10-31
Translate logical formulas recursively, leaving propositional variables unchanged and translating negation by applying negation to the translation. For the other two logical connectives setThe first logical implication is false exactly when both original inputs are false; the second displayed logical formula is true exactly when both inputs are true. Hence each clause preserves truth values. Structural induction gives for every Boolean valuation and every logical formula in the larger language.
By the assumed functional completeness of negation, logical conjunction and logical disjunction, any finite Boolean function has such a logical formula . Its translation uses only negation and logical implication and represents the same function. Thus is adequate.
Past exam of the logic and set theory course of the University of Oxford 2008 A 2 c Solution 2026-10-31
Under any Boolean valuation there are two possibilities. If is false, the outer logical implication is true by vacuous truth. If it is true, then is false, which forces true and false. In that case is true, so the outer logical implication is again true. These possibilities exhaust the truth values of its antecedent; therefore
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 2009 A 2 b Solution 2026-10-31
A first-order structure consists of a nonempty domain , an interpretation of each constant symbol, a total function for each -ary function symbol, and a relation for each -ary predicate symbol. Logical equality is interpreted as actual identity.
An assignment in a first-order structure is a map from the variables into . It extends recursively to terms: , , and . Atomic truth is determined by membership of the resulting tuple in , or equality of the two term values. Negation reverses the truth value, and an implication is false exactly when its antecedent is true and its consequent false.
For a universal quantifier,These clauses define a valuation on every formula by structural recursion. Only free-variable values affect a formula's truth; consequently a sentence has the same truth value under every assignment. This is a semantic assignment of domain elements, not a programming assignment operation.
Past exam of the logic and set theory course of the University of Oxford 2009 A 3 d ii Solution 2026-10-31
Neither constants alone nor functions alone gives the same uniform adequacy on all nonempty carriers. A one-element set has exactly one interpretation of each function symbol of any finite arity and of every constant symbol. In contrast it has two interpretations of a unary predicate: empty or full. Thus a fixed purely functional or constant-only language has only one structure on that singleton, and cannot encode both truth values of by a same-carrier truth-preserving translation with reconstruction. This is the singleton truth-preservation obstruction to expressive completeness, even when logical equality is available.
Constants alone also cannot represent general variable-dependent relations on larger infinite carriers: a fixed formula mentions only finitely many named elements, and its remaining equality tests do not encode an arbitrary binary relation. Functions offer more flexibility. On carriers with at least two elements, predicates can be encoded by characteristic functions taking two distinguished values, and constants can be represented by constant-valued unary functions if explicit constant symbols are forbidden. Such a construction can work after adding axioms for distinct truth markers, but those axioms exclude the singleton case. Enlarging the carrier or adding a Boolean sort is another possible encoding; it changes the same-carrier sense established in the preceding part and must not be silently identified with it.
Past exam of the logic and set theory course of the University of Oxford 2010 A 1 a ii Solution 2026-10-31
The first-order terms are the least collection containing every variable and constant and closed under formation of whenever has arity and the are terms. A closed term has no variables.
The first-order formulas are the least collection containing the atomic formulas and of the appropriate arities, and closed under negation, logical implication, and universal quantification: from formulas one may form , , and , with the chosen fully parenthesized grammar. Only finite expressions obtained by these rules are formulas. No additional strings belong to either collection.
Terms denote elements under an assignment in a first-order structure; formulas receive truth values in a first-order structure. The two syntactic categories have different formation rules even when they use some of the same punctuation.
Past exam of the logic and set theory course of the University of Oxford 2011 A 1 c i Solution 2026-10-31
Logical equivalence means that the two propositional formulas receive the same truth value under every Boolean valuation of the propositional variables. Equivalently, is a tautology:
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 .
A prime model of a complete theory is a first-order model admitting an elementary embedding of first-order structures into every first-order model of . Let be canonical and . For each closed term , defineEvery element of has a name, so this defines the desired map on all of . If two first-order terms agree in , their logical equality first-order sentence holds in one first-order model of the complete theory and therefore in every first-order model of it; they agree in . This proves well-definedness. If they are distinct in , their inequality holds throughout the complete theory as well, proving injectivity.
For every logical formula and named tuple , the substituted first-order sentence has the same truth value in the two first-order models by completeness of . ConsequentlyThus is elementary. Since was arbitrary, every such canonical first-order structure is prime. This formal proof also handles closed-term generation when function symbols are present; under the constant-name convention one simply uses constants as the first-order terms.
If , interpret each new constant in as the same element . Atomic logical formulas and their negations then have exactly their truth values in , so the expansion satisfies the diagram of a structure. If the inclusion is elementary, every logical formula with those named parameters has the same truth value, so the expansion satisfies the elementary diagram.
Conversely, from any expansion satisfying the diagram of a structure defineThe diagram of a structure contains whenever , so is injective. It contains every true function-value equation, so commutes with all operations and constants. Positive and negative relation instances ensure both preservation and reflection of the relations. Thus is an embedding of first-order structures. If the expansion satisfies the elementary diagram, for every logical formula and tuple it also givesso is an elementary embedding of first-order structures.
The precise conclusion for an arbitrary expansion is an embedding of first-order structures, rather than a literal inclusion of the original carriers. The source's inclusion notation is correct when one uses the customary identification of with its embedded copy, or requires the expansion to interpret as the actual element of a carrier already containing . With that naming convention, is the inclusion and the requested two equivalences follow exactly.
Without the convention the literal wording fails, even in the first-order language of logical equality: singleton first-order structures with carriers and have a diagram-satisfying expansion by sending the first first-order structure's named point to , but the first carrier is not a subset of the second. The embedding of first-order structures formulation proved above states the invariant result and makes the intended inclusion formulation precise.
The cardinality of a vector space is central: here “infinite” must continue to refer to the underlying set. Over a countably infinite field, every nonzero finite-dimensional space is already infinite. Thus the model class now consists of all nonzero -vector spaces, not only infinite-dimensional ones.
Since independence of a pair is not definable over an infinite field, for (i), independence of a single vector is still , but independence of tuples of length at least two is not definable by one formula in this one-sorted language. Quantifier elimination follows from the linear-equation argument in the preceding part for all these infinite domains. Any candidate two-variable formula therefore involves only finitely many linear equations. Take an independent pair, and compare it with , where and avoids the finitely many ratios making one of those nontrivial equations vanish. Both pairs satisfy the same listed atomic formulas, contradicting a proposed definition of independence. Longer tuple independence would define pair independence by existentially completing a pair inside an infinite-dimensional model, giving the same obstruction.
For (ii), the vector-space axiom schema together with axiomatizes the infinite underlying spaces. For (iii), there is again no universal axiomatization, because the zero subspace is a substructure.
For finite axiomatizability with infinitely many scalar symbols, in (iv) there is no finite axiomatization in the full language: any finite axiom set mentions only finitely many scalar symbols. In a nonzero vector space alter an unused nonzero to send zero to a nonzero vector, retaining all mentioned interpretations. The finite sentences keep their truth values, but a vector-space axiom is now false. Relative to the already imposed vector-space axioms, the extra condition is finitely axiomatized by the single nonzero-vector sentence. These absolute and relative answers must be distinguished.
For (v), the one-variable algebra still has two atoms and four Elements. In two variables the isolated atoms are and the countably many rank-one directions, represented by and by . There is also a nonisolated complete type of an independent pair. A formula using finitely many linear equations either picks finitely many isolated atoms, or contains that independent type and all but finitely many isolated atoms. Therefore is the finite-cofinite Boolean algebra on a countably infinite set of atoms, with the independent type the extra nonisolated point in its Stone space. In particular this algebra is countably infinite, rather than the full power set of its atoms.
For (vi), dimension can be or while the domain is countable, producing pairwise nonisomorphic countable models. Thus is not countably categorical. For an uncountable , a vector space over this countable field has cardinality exactly when its dimension is , since in general a nonzero space has size when that maximum is infinite. Basis bijections then give categoricity in every uncountable cardinal. Quantifier elimination also shows that these different positive dimensions are elementarily equivalent; independence of an arbitrarily long tuple is not being silently treated as definable over this infinite field.
Use structural induction on the propositional formula. The induction claim is that its truth value under the all-one Boolean valuation is one. A variable has this truth value by definition. For the induction step, suppose the immediate subformulas each have truth value one. ThenThese are all permitted construction cases. Thus every such propositional formula evaluates to one. Equivalently, the three logical connectives define one-preserving Boolean functions, and composition preserves this property. The variable-only base grammar matters: admitting a constant false formula would invalidate the claim.