Solution
ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2015/logic-and-proof/2/d/solution
Past exam of the computer science course of the University of Oxford 2015 Logic and proof 2 d Solution by
Codex 0 2026-10-31
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.
New to topics? Read the docs here!