Name ___________________________________________________
5 pages of handwritten notes allowed. Use extra sheets of paper if needed.
1. Sufficiency of propositional connectives:
1a. Show that the set S = {∨, &, ¬} is sufficient, i.e., that all other propositional connectives can be described in terms of these connectives.
1b. Use the general algorithms for transforming formulas into CNF and DNF to describe negation-of-implication ¬(p → q) in terms of ∨, &, and ¬.
1c. What is the smallest subset S0 of the set S which is sufficient? Prove that your subset S0 is sufficient, and that no proper subset of S0 is sufficient.
2a. by using natural deduction;
2b. by using resolution: and
2c. by using truth tables.
4a. Use a general algorithm to translate the following first order
formula F into a normal form:
∃x P(x) → ∃x
Q(x).
4b. Use natural deduction to prove that the formula F indeed implies its normal form;
4c. Translate the following phrase into first order logic: "A family that prays together stays together". Use the following three basic predicates:
5a. Suppose that we have predicates parent(X, Y), male(X), and female(X). Use Prolog rules to describe cousin(X,Y).
5b. Give an example when the Prolog result differs from formal logic, but the Prolog result is more intuitive than formal logic.
5c. Explain what is meant when people say that Prolog describe a non-monotonic logic. Give an example of the corresponding non-monotonicity.
6a. Come up with simple algorithms for checking the validity of
modal logic formulas [](a = b) and
◊(a = b).
6b. A students knows that he has got between 55 and 60 points so far. In other words, for the number of points a that the student got, we have 55 ≤ a ≤ 60. How many points b the student needs to get on the final exam to get an A for the class, i.e., to have [](90 ≤ a + b ≤ 100).
6c. How many points b does this student need on the final exam to have a chance to get an A, i.e., to have ◊(90 ≤ a + b ≤ 100).
1 2 3 4 5 6 7 8 9 10 s - - X X X - - X X X w X X X X - - - X X X h X - - - - - - - - -
Use the general algorithm to check at which moments of time the above statement is true.
10a. the heap paradox;
10b. the smallest natural number that cannot be described by fewer than twenty words.
11a. Briefly describe your project for this class.
11b. Briefly describe someone else's project for this class.