Docsity

Solutions to Logic Programming and Artificial Intelligence Problem Sheet 3, Study notes of Computer Numerical Control

Toggle sidebar
bg1
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
pf2

Partial preview of the text

Download Solutions to Logic Programming and Artificial Intelligence Problem Sheet 3 and more Study notes Computer Numerical Control in PDF only on Docsity!

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 E is reflexive. Suppose sentence α entails sentence β, which, in turn, entails sentence γ. If no model satisfies α, then, by definition, α entails γ. Otherwise, let I be a model that satisfies α. Then, since α entails β, I must also satisfy β and, since β entails γ, I must satisfy γ. Hence, every model that satisfies α also satisfies γ and therefore α entails γ. Consequently, E is transitive.

} unsatisfiable

satisfiable

invalid

valid contingent }

  1. This will be proved by assuming that A doesn’t entail C and showing that B doesn’t entail C. If A doesn’t entail C then there is some model I that satisfies every sentence in A and falsifies C. Since B is a subset of A, I satisfies every sentence of B. Thus B does not entail C (because I is a counter-model).
  2. The resulting language would be ambiguous. As an example, A ∨ B ∧ C would have two expres- sion trees, one in which ∨ is the main connective and one in which ∧ is the main connective.
  3. The argument is invalid; any model that maps p to FALSE , q to TRUE and r to TRUE is a counter-model to the argument.
  4. (This theorem, and its proof, are similar to Theorem 2 from the lecture notes.) Sentence A 1 ∧ A 2 ∧ · · · ∧ An → A is valid iff (by definition of validity) no model falsifies it iff (by truth table for →) no model satisfies A 1 ∧ A 2 ∧ · · · ∧ An and falsifies A iff (by truth table for ∧) no model satisfies every member of {A 1 , A 2 ,... , An} and falsifies A iff (by definition of entailment) {A 1 , A 2 ,... , An} entails A.
  5. George Boole. His unexpected death was the result of lecturing in clothes wet from the rain!
  6. First make a general observation: If S and T are finite sets, then there are |T ||S|^ total functions from S to T. In other words, the cardinality of S −→ T is |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 M to [[α]]M^. There are 2n^ models for n proposition 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.
  7. (a) Neither.

1

(b) Necessarily false since all who tromble trimble. (c) Necessarily false. Its falsity is a consequence of (c) and (d) together. (d) Neither. (e) Necessarily true since all who tremble tromble and all who tromble trimble.