Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Boolos et al. Computability and Logic, 5ed, CUP, 2007.pdf
Скачиваний:
593
Добавлен:
10.08.2013
Размер:
2.33 Mб
Скачать

19

Normal Forms

A normal form theorem of the most basic type tells us that for every formula A there is a formula A* of some special syntactic form such that A and A* are logically equivalent. A normal form theorem for satisfiability tells us that for every set of sentences there is a set * of sentences of some special syntactic form such that and * are equivalent for satisfiability, meaning that one will be satisfiable if and only if the other is. In section 19.1 we establish the prenex normal form theorem, according to which every formula is logically equivalent to one with all quantifiers at the beginning, along with some related results. In section 19.2 we establish the Skolem normal form theorem, according to which every set of sentences is equivalent for satisfiability to a set of sentences with all quantifiers at the beginning and all quantifiers universal. We then use this result to give an alternative proof of the Lowenheim¨–Skolem theorem, which we follow with some remarks on implications of the theorem that have sometimes been thought ‘paradoxical’. In the optional section 19.3 we go on to sketch alternative proofs of the compactness and Godel¨ completeness theorems, using the Skolem normal form theorem and an auxiliary result known as Herbrand’s theorem. In section 19.4 we establish that every set of sentences is equivalent for satisfiability to a set of sentences not containing identity, constants, or function symbols. Section 19.1 presupposes only Chapters 9 and 10, while the rest of the chapter presupposes also Chapter 12. Section 19.2 (with its pendant 19.3) on the one hand, and section 19.4 on the other hand, are independent of each other. The results of section 19.4 will be used in the next two chapters.

19.1 Disjunctive and Prenex Normal Forms

This chapter picks up where the problems at the end of Chapter 10 left off. There we asked the reader to show that that every formula is logically equivalent to a formula having no subformulas in which the same variable occurs both free and bound. This result is a simple example of a normal form theorem, a result asserting that every sentence is logically equivalent to one fulfilling some special syntactic requirement. Our first result here is an almost equally simple example. We say a formula is negationnormal if it is built up from atomic and negated atomic formulas using , & , , and

alone, without further use of .

19.1Proposition (Negation-normal form). Every formula is logically equivalent to one that is negation-normal.

243

244

NORMAL FORMS

Proof: The proof is by induction on complexity. The base step is trivial, since an atomic formula is already negation-normal. Most cases of the induction step are trivial as well. For instance, if A and B are equivalent respectively to negation-normal formulas A* and B*, then A & B and A B are equivalent respectively to A* & B* and A* B*, which are also negation-normal. The nontrivial case is to prove that if A is equivalent to the negation-normal A* then A is equivalent to some negation-normal A. This divides into six subcases according to the form of A*. The case where A* is atomic is trivial, since we may simply let Abe A*. In case A* is of form B, so that A* is B, we may let Abe B. In case A* is of form (B C), so that A* is(B C), which is logically equivalent to ( B & C), by the induction hypothesis the simpler formulas B and C are equivalent to formulas Band Cof the required form, so we may let Abe (B& C). The case of conjunction is similar. In case A* is of form x B, so that A* is x B, which is logically equivalent to x B, by the induction hypothesis the simpler formula B is equivalent to a formula Bof the required form, so we may let Abe x B. The case of universal quantification is similar.

In the foregoing proof we have used such equivalences as that of (B C) toB & C, to show ‘from the bottom up’ that there exists a negation-normal equivalent for any formula. What we show at the induction step is that if there exist negation-normal equivalents for the simpler formulas B and C, then there exists a negation-normal equivalent for the more complex formula (B C). If we actually want to find a negation-normal equivalent for a given formula, we use the same equivalences, but work ‘from the top down’. We reduce the problem of finding a negation-normal equivalent for the more complex formula to that of finding such equivalents for simpler formulas. Thus, for instance, if P, Q, and R are atomic, then

(P ( Q & R))

can be successively converted to

P & ( Q & R)

P & ( Q R)

P & (Q R)

the last of which is negation-normal. In this process use such equivalences as that of (B C) to B & C to ‘bring junctions out’ or ‘push negations in’ until we get a formula equivalent to the original in which negation is applies only to atomic subformulas.

The above result on negation-normal form can be elaborated in two different directions. Let A1, A2, . . . , An be any formulas. A formula built up from them using only , , and &, without quantifiers, is said to be a truth-functional compound of the given formulas. A truth-functional compound is said to be in disjunctive normal form if it is a disjunction of conjunctions of formulas from among the Ai and their negations. (A notion of conjunctive normal form can be defined exactly analogously.)

19.2 Proposition (Disjunctive normal form). Every formula is logically equivalent to one that is in disjunctive normal form.

19.1. DISJUNCTIVE AND PRENEX NORMAL FORMS

245

Proof: Given any formula, first replace it by a negation-normal equivalent. Then, using the distributive laws, that is, the equivalence of (B & (C D)) to ((B & C) (B & D)) and of ((B C) & D) to ((B D) & (C D)), ‘push conjunction inside’ and ‘pull disjunction outside’ until a disjunctive normal equivalent is obtained. (It would be a tedious but routine task to rewrite this ‘top down’ description of the process of finding a disjunctive normal equivalent as a ‘bottom up’ proof the existence of such an equivalent.)

If in a formula that is in disjunctive normal form each disjunction contains each Ai exactly once, plain or negated, then the compound is said to be in full disjunctive normal form. (A notion of full conjunctive normal form can be defined exactly analogously.) In connection with such forms it is often useful to introduce, in addition to the two-place connectives and & , and the one-place connective , the zero-place connectives or constant truth and constant falsehood , counting respectively as true in every interpretation and false in every interpretation. The disjunction of zero disjuncts may by convention be understood to be , and the conjunction of zero conjuncts to be (rather as, in mathematics, the sum of zero summands is understood to be 0, and the product of zero factors to be 1).

In seeking a full disjunctive normal equivalent of a given disjunctive normal formula, first note that conjunctions (and analogously, disjunctions) can be reordered and regrouped at will using the commutative and associative laws, that is, the equivalence of (B & C) to (C & B), and of (B & C & D), which officially is supposed to be an abbreviation of (B & (C & D)), with grouping to the right, to ((B & C) & D), with grouping to the left. Thus for instance (P & (Q & P)) is equivalent to (P & (P & Q)) and to ((P & P) & Q). Using the idempotent law, that is, the equivalence of B & B to B, this last is equivalent to P & Q. This illustrates how repetitions of the same Ai (or Ai ) within a conjunction can be eliminated. To eliminate the occurrence of the same Ai twice, once plain and once negated, we can use the equivalence of B & B toand of & C to , and of D to D, so that, for instance, (B & B & C) D is equivalent simply to D: contradictory disjuncts can be dropped. These reductions will convert a given formula to one that, like our earlier example ( P & Q) ( P & R), is a disjunction of conjunctions in which each basic formula occurs at most once, plain or negated, in each conjunct.

To ensure that each occurs at least once in each conjunction, we use the equivalence of B to (B & C) (B & C). Thus our example is equivalent to

( P & Q & R) ( P & Q & R) ( P & R)

and to

( P & Q & R) ( P & Q & R) ( P&Q & R) ( P & Q & R)

and, eliminating repetition, to

( P & Q & R) ( P & Q & R) ( P & Q & R)

which is in full disjunctive normal form. The foregoing informal description can be converted into a formal proof of the following result.

246

NORMAL FORMS

19.3 Theorem (Full disjunctive normal form). Every truth-functional compound of given formulas is logically equivalent to one in full disjunctive normal form.

The theorem on negation-normal forms can be elaborated in another direction. A formula A is said to be in prenex form if it is of the form

Q1 x1Q2 x2 . . . Qn xn B

where each Q is either or , and where B contains no quantifiers. The sequence of quantifiers and variables at the beginning is called the prefix, and the quantifier-free formula that follows the matrix.

19.4 Example (Finding a prenex equivalent for a given formula). Consider ( x Fx Ga), where F and G are one-place predicates. This is officially an abbreviation for

( x F x Ga) & ( Ga x F x).

Let us first put this in negation-normal form

( x F x Ga) & ( Ga x F x).

The problem now is to ‘push junctions in’. This may be done by noting that the displayed negation-normal form is equivalent successively to

x( F x Ga) & ( Ga x F x)

x( F x Ga) & x( Ga F x)

y( F y Ga) & x( Ga F x)

x( y( F y Ga) & ( Ga F x))

x y(( F y Ga) & ( Ga F x)).

If we had ‘pulled quantifiers out’ in a different order, a different prenex equivalent would have been obtained.

19.5 Theorem (Prenex normal form). Every formula is logically equivalent to one in prenex normal form.

Proof: By induction on complexity. Atomic formulas are trivially prenex. The result of applying a quantifier to a prenex formula is prenex (and hence the result of applying a quantifier to a formula equivalent to a prenex formula is equivalent to a prenex formula). The equivalence of the negation of a prenex formula (or a formula equivalent to one) to a prenex formula follows by repeated application of the equivalence of x and x to x and x , respectively. The equivalence of a conjunction (or disjunction) of prenex formulas to a prenex formula follows on first relettering bound variables as in Problem 10.13, so the conjuncts or disjuncts have no variables in common, and then repeatedly applying the equivalence of QxA(x) § B, where x does not occur in B, to Qx(A(x) § B), where Q may be or and § may be & or .

In the remainder of this chapter our concern is less with finding a logical equivalent of a special kind for a given sentence or formula than with finding equivalents for satisfiability of a special kind for a given sentence or set of sentences. Two sets of sentences and * are equivalent for satisfiability if and only if they are either