
Logic Programming and Artificial Intelligence
10 February 2010
Solutions to LPA Problem Sheet 3
1. Consider a model in which there are two objects, both of which are bar’s. One of the objects,
F raz, is not a f oo and the other object is a f oo. Such an model satisfies each premise but
falsifies the conclusion. Hence the argument is invalid.
2. Since no model can both satisfy and falsify a sentence, every sentence must, by definition, entail
itself. Hence Eis reflexive.
Suppose sentence αentails sentence β, which, in turn, entails sentence γ. If no model satisfies
α, then, by definition, αentails γ. Otherwise, let Ibe a model that satisfies α. Then, since
αentails β,Imust also satisfy βand, since βentails γ,Imust satisfy γ. Hence, every model
that satisfies αalso satisfies γand therefore αentails γ. Consequently, Eis transitive.
3.
unsatisfiable
}
satisfiable
invalid
}
contingentvalid
4. This will be proved by assuming that Adoesn’t entail Cand showing that Bdoesn’t entail C.
If Adoesn’t entail Cthen there is some model Ithat satisfies every sentence in Aand falsifies
C. Since Bis a subset of A,Isatisfies every sentence of B. Thus Bdoes not entail C(because
Iis a counter-model).
5. The resulting language would be ambiguous. As an example, A∨B∧Cwould have two expres-
sion trees, one in which ∨is the main connective and one in which ∧is the main connective.
6. The argument is invalid; any model that maps pto FALSE,qto TRUE and rto TRUE is a
counter-model to the argument.
7. (This theorem, and its proof, are similar to Theorem 2 from the lecture notes.) Sentence
A1∧A2∧ · ·· ∧ An→Ais valid iff (by definition of validity) no model falsifies it iff (by truth
table for →) no model satisfies A1∧A2∧ · · · ∧ Anand falsifies Aiff (by truth table for ∧) no
model satisfies every member of {A1, A2, . . . , An}and falsifies Aiff (by definition of entailment)
{A1, A2, . . . , An}entails A.
8. George Boole. His unexpected death was the result of lecturing in clothes wet from the rain!
9. First make a general observation: If Sand Tare finite sets, then there are |T||S|total functions
from Sto T. In other words, the cardinality of S−→ Tis |T||S|.
A sentence of propositional logic can be thought of as total function that maps every model
to a truth value. More precisely, the sentence αcan be seen as a function that maps a model
Mto [[α]]M. There are 2nmodels for nproposition symbols. So, from the observation above,
there are 2(2n)functions from models to truth values.
Since every such function is generated by at least on sentence (I am not going to prove this),
there are 2(2n)sentences that have distinct meanings.
10. (a) Neither.
1