Solutions to the three questions of the University of Oxford computer science Finals examination held on 10 June 2015. Question 3(d) has a false assertion as printed; its solution gives a countermodel and explains the additional hypotheses under which the usual least Herbrand model argument works.[ref]
Apply the distributive law of Boolean algebra to the two logical conjunctions. With , , , and , the identity givesThe second step uses complementation and commutativity in Boolean algebra; the last uses the identity law for logical conjunction. The result is in conjunctive normal form: its first Boolean clause requires at least one input to be true, and its second Boolean clause prohibits both inputs being true. Together they express exclusive or.
Replace each implication by a logical disjunction and use the conjunctive normal form for exclusive or from part (a). The resulting Boolean clauses areHere the displayed array is a list of the six Boolean clauses, whose logical conjunction is equivalent to all four constraints.
Use resolution first on , then on , and finally on :Removing the repeated Boolean literal in the final Boolean clause uses idempotence. Neither nor is needed: even the weaker assumptions that the coin has at least one outcome and that at least one person wins already force , once the two implications hold.
Take the single Boolean clauseThis is a 3-CNF formula. Suppose a 2-CNF formula were logically equivalent to . Every Boolean clause of would then be a consequence of .
Consider any nontautological Boolean clause containing at most two Boolean literals. Choose a Boolean valuation falsifying its Boolean literals. At least one of does not occur in ; assign that Boolean variable true. The resulting Boolean valuation satisfies while falsifying . This contradicts . An empty Boolean clause also cannot be a consequence of the satisfiable .
Consequently every Boolean clause of would have to be a tautology. Their logical conjunction would be true under every Boolean valuation, whereas is false when . This proves that no such exists.
The argument even allows additional ordinary Boolean variables in : at most two Boolean literals still leave one of free to be made true. Introducing extra variables together with existential quantification would change the requested notion of logical equivalence, so it is not a way around the argument.
Enumerate the vertices as and introduce a Boolean variable for each ordered pair of vertices. Its intended meaning is that a proposed graph automorphism sends to . Build four groups of Boolean clauses.
First require exactly one image for each vertex:Next require that distinct vertices have distinct images:Together and specify an injective function . Since is finite, this function is a bijection; a separate surjectivity condition is unnecessary.
Write when and otherwise. Prohibit every pair of images that would change adjacency:Checking both possible mismatches preserves both edges and nonedges. Finally require a moved vertex:The desired propositional formula is
If a Boolean valuation satisfies , selects a unique image for every vertex, makes the resulting function a bijection, preserves adjacency in both directions, and makes this graph automorphism different from the identity function. Conversely, given such a graph automorphism , set true exactly when . Each of is then satisfied.
There are Boolean variables, image and injectivity Boolean clauses, and at most adjacency Boolean clauses. With the graph stored by its adjacency matrix, testing a mismatch takes constant time. Thus the construction has polynomial time and output length with binary-indexed variable names. For , interpret the empty logical disjunction as false; for , and conflict. These cases correctly have no nonidentity graph automorphism.
The propositional compactness theorem states that an arbitrary set of propositional formulas is satisfiable if and only if every finite subset of is satisfiable:The satisfying Boolean valuation may depend on on the right; the conclusion on the left provides one Boolean valuation satisfying all of simultaneously.
Let . Every finite subset of is satisfiable: if has the largest index occurring, the successive semantic entailments imply for every earlier index, so any Boolean valuation satisfying satisfies that finite subset. The propositional compactness theorem therefore also shows that itself is satisfiable.
Suppose that had exactly the common models of . Then , and hence is unsatisfiable. By the propositional compactness theorem, finitely many together with are already unsatisfiable. Enlarge the finite list if necessary so it is nonempty, and let be its greatest index. We obtainOn the other hand, the asserted equality of model classes gives . Transitivity of semantic entailment would yieldcontradicting the strictness assumption at index . ThusThe obstruction is the finite character of propositional formulas: a single consequence of an infinite set already follows from finitely many premises, whereas this chain continues to impose strictly stronger requirements forever.
A first-order theory in a fixed first-order signature is a set of first-order sentences. Under the closed-theory convention used in the question, it contains all its semantic entailments: implies . One can equivalently begin with a set of axioms and take its closure under consequence.
A complete theory is a consistent first-order theory that decides every first-order sentence in its first-order signature:Consistency ensures that exactly one of these alternatives holds.
A decidable theory is one for which an algorithm always terminates and determines whether a given first-order sentence is a consequence:If the first-order theory is already closed under consequence, this is its membership problem. It is a condition on the consequences, not merely on whether the chosen set of axioms has a decidable membership test.
A first-order theory admits quantifier elimination when every first-order formula has a quantifier-free formula , in the same first-order signature and with no additional free variables, such thatThus all first-order models of agree that the two first-order formulas define the same tuples. This definition concerns first-order formulas with free variables, as well as first-order sentences; merely deciding closed assertions would be weaker. The existence of an effective procedure is an additional issue, supplied by the explicit construction in part (d).
Use the Rado graph on the natural numbers. Interpret the binary relation byThe relation is symmetric by its definition, and is always false. Thus this first-order structure satisfies and .
To verify an extension axiom, take distinct . Choose a natural number larger than every and putThe powers are distinct, so there are no carries in this binary representation. In particular for every , and the bit in position is one exactly when . Therefore is different from all the given vertices, is adjacent to , and is not adjacent to the others. If the are not distinct, the antecedent of the extension axiom is false, so it places no restriction. The case , if included in the convention for natural numbers, simply asks for a nonempty domain, which this first-order structure has.
For example, prescribing adjacency to and and nonadjacency to permits and , whose binary representation is . This explicitly realizes the required pattern. HenceReordering a tuple makes the extension axioms applicable to any two disjoint finite sets of vertices, with any desired adjacency and nonadjacency pattern. This is the extension property defining the theory of the random graph.
It suffices to eliminate one existential quantifier from a quantifier-free formula . Indeed, logical connectives preserve equivalence, and a universal quantifier can be rewritten using . An induction on the construction of a first-order formula then eliminates all its quantifiers from the inside out.
Convert to disjunctive normal form. Since existential quantification distributes over a finite logical disjunction, consider a single logical conjunction of atomic first-order formulas and their negations. There are no function or constant symbols in this first-order signature, so its atoms are equalities between variables and instances of between variables.
For a tuple , enumerate its possible complete atomic diagrams . Such a quantifier-free formula specifies which variables are equal and, between distinct equality classes, exactly which pairs are adjacent. Keep only the diagrams in which first-order equality is an equivalence relation and is symmetric and irreflexive. There are finitely many diagrams for each , and every tuple in a first-order model of satisfies exactly one of them. Every retained diagram is realizable: insert one vertex for each equality class successively, using the extension axioms to prescribe its adjacency to earlier vertices.
- An existing vertex. If , substitute for in the logical conjunction. The diagram decides the truth value of every resulting atom, and so decides whether this choice works.
- A new vertex. Require for every . Simplify to true and to false. Use symmetry to rewrite every remaining edge requirement involving in the form or . An equality , a positive loop requirement, or opposite edge requirements on the same equality class makes this case impossible. Otherwise the requirements give a consistent adjacency pattern on finitely many distinct vertices. Any equality classes without a specified edge requirement can be assigned either pattern. Reorder representatives with the desired neighbours first; the appropriate extension axiom supplies a fresh vertex with precisely this pattern.
All first-order formulas involving only are already decided by . Therefore, for each diagram, the existence of a suitable has a definite answer, determined by a finite syntactic test. Let be the set of diagrams for which at least one disjunct and at least one of the two witness cases succeeds. ThenThe right side is a quantifier-free formula. An empty logical disjunction means false, and for an empty tuple the empty atomic diagram means true. These logical truth constants also handle closed first-order sentences in this constant-free first-order signature.
For a concrete illustration of the fresh-witness case,If , the edge requirements conflict. Otherwise the extension property supplies a vertex outside the finite set of parameters with the desired pattern; the extra avoidance of causes no obstruction. The general diagram construction handles all such equality coincidences systematically and proves quantifier elimination.
By part (c), has a first-order model, so it is consistent. By part (d), every first-order sentence is equivalent modulo to a quantifier-free sentence. In the first-order signature consisting only of and first-order equality, there are no constant symbols, no ground first-order terms, and no nullary predicates. Thus a closed quantifier-free formula reduces to true or false, using the logical truth constants. All first-order models of therefore agree on every first-order sentence:
The construction in part (d) is effective. Conversion to disjunctive normal form, enumeration of finite equality partitions and adjacency patterns, and testing the finitely many witness cases are all terminating operations. Apply them recursively to a given first-order sentence and evaluate the final truth constant. This decides whether the first-order sentence belongs to , givingNo useful bound on the running time is needed for decidability; the potentially large enumeration still always terminates.
Use the back-and-forth method. Enumerate the two domains without repetitions as and . We construct a sequence of finite maps, each a partial isomorphism of structures,starting with the empty function. Each is a bijection between finite subsets of the domains and preserves both adjacency and nonadjacency on its domain.
At a forth step, choose the first outside the current domain. List the finitely many domain vertices as . In , prescribe that the new image be adjacent to exactly when is adjacent to in . Since the image vertices are distinct, an extension axiom in supplies such a outside the entire current range. Extend by . This preserves injectivity, adjacency and nonadjacency, including the absence of loops.
At a back step, choose the first outside the current range. Apply the same argument to the inverse partial isomorphism of structures in , finding a fresh preimage with the required adjacency pattern to the current domain. Extend by this new pair. Alternate forth and back steps indefinitely.
DefineBecause each finite function extends the preceding one, this is a well-defined injective function. The forth steps eventually include every in its domain, and the back steps eventually include every in its range, so is a bijection. Given any , both lie in the domain of some finite , where the edge equivalence already holds. It therefore also holds for :Thus the two first-order structures are isomorphic. Alternating the steps is essential for surjectivity: repeatedly extending only the domain would merely construct an embedding into .
Use unary predicates and for happiness and merriness, a binary predicate with meaning that loves , and a constant symbol for Lucy. The domain consists of people. The following four first-order sentences use this same first-order signature.
The existential quantifier supplies the person loved, with a choice that may depend on :The outer universal quantifier ranges over everyone. The logical disjunction is inclusive; it permits a person both to be happy and to love somebody.
The property of loving at least one person is the antecedent:An equivalent first-order sentence, useful for Skolemization, is . The person loved in the antecedent need not be Lucy; the conclusion concerns Lucy specifically.
The same person must both love and be loved by :Equivalently, use . There is no restriction that and be distinct; this matters when the later ground resolution proof considers Lucy loving herself.
Lucy's happiness is a single antecedent, while the conclusion applies to everyone:Since does not occur in the antecedent, this is equivalent to . The universal quantifier does not assert that everyone is happy; it is the merriness conclusion that is universal.
First convert the four first-order sentences to clausal form. In the first, pull the existential quantifier across the logical disjunction, then replace its witness by a fresh unary Skolem function . The usual nonempty-domain convention for first-order logic makes this transformation valid even when already holds. The four Skolem normal forms areThe Skolemization of preserves satisfiability in an expanded first-order signature; it does not assert logical equivalence for every arbitrary interpretation of the new Skolem function. The other three first-order sentences only require elimination of implications and movement of universal quantifiers.
For a ground resolution refutation, negate the desired conclusion and introduce a fresh constant for a person who is not merry. This adds the ground clause . Use these ground instances of the four universal first-order sentences:Here comes from with , after removing a duplicate negative literal. All first-order terms in these ground clauses are ground. Resolving givesRepeated positive literals in have again been removed. The empty ground clause proves unsatisfiability of the premises together with the negated conclusion. ThereforeThe key is to apply the first three premises to Lucy herself: either she is already happy, or she loves somebody, hence loves herself, which forces her happiness and activates the final premise.
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.
The assertion is false as printed, even for a satisfiable equality-free Horn clause. The original paper allows an arbitrary quantifier-free formula , so in particular permits negative atoms.[ref]
Logic and Proof examination paper of the University of Oxford (2015). Printed p. 4, Question 3(d), final sentence: the matrix is specified as quantifier-free, without a positivity restriction
Take a first-order signature with a constant and unary predicates , and letThe matrix of is a Horn clause, and the Herbrand universe is the singleton . The possible Herbrand models of assign the values , , or . Neither ground atom is true in every such Herbrand model, so the paper's intersection construction givesConsequently , with witness . However, the one-element first-order structure in which both predicates hold everywhere satisfies and falsifies . HenceThis directly refutes the requested implication; no proof of the stated equivalence is possible. It also isolates the issue: an atom being absent from the intersection means that it is false in some Herbrand model, not that it is false in every first-order model.
The standard correct version assumes that is satisfiable, uses an equality-free first-order signature with a nonempty Herbrand universe, and requires to be a positive quantifier-free formula: one built from atoms and truth constants using only logical conjunction and logical disjunction. Under those assumptions the expected argument is as follows.
First, the intersection of the ground atoms true in all Herbrand models is itself a Herbrand model of . To see this, read each ground Horn clause as , where is an atom or false. If every is true in the intersection, every is true in every Herbrand model. When is an atom, all these Herbrand models must make true, so the intersection does too. When is false, the antecedent cannot hold in any Herbrand model; since there is at least one such model, it cannot hold in the intersection either. Thus the intersection is the least Herbrand model.
Now let for positive . There is a tuple of ground terms with . Expand the positive quantifier-free formula into disjunctive normal form; one of its logical conjunctions of positive atoms is true at . Each of those ground atoms holds in every Herbrand model of . It also follows that : otherwise a first-order model of would, by Herbrand's theorem for universal equality-free first-order clauses, yield a Herbrand model of , a contradiction. Every first-order model of therefore satisfies the same positive logical conjunction at the interpretations of , and hence satisfies .
Conversely, if , the fact that the least Herbrand model is a first-order model of immediately gives . Thus the repaired conclusion isThe satisfiability qualification is separately necessary when general Horn clauses may have no positive conclusion. For instance, is a logical conjunction of Horn clauses with no models. The intersection convention then makes every ground atom true by vacuity, yet entails even , which that Herbrand structure falsifies. The earlier satisfiable example already refutes the printed claim without relying on this further defect.
Use a first-order signature with a constant and unary predicates , and setThe displayed first-order clause has two positive atoms, so it is not a Horn clause. There is a Herbrand model with true and false, and another with the opposite values. Thus neither atom holds in all Herbrand models; the intersection construction makes both false.
Every first-order model of has a nonempty domain, and any element witnesses , so . Nevertheless . ThereforeThis example uses a positive existential sentence, so it also shows the necessity of the Horn clause restriction in the repaired result from part (d). Without that restriction, the intersection of Herbrand models need not itself be a first-order model of : here it fails the very disjunction that all the original Herbrand models satisfy.
Articles by others on the same topic
There are currently no matching articles.