CS 141 Introduction to AI Greenwald
TBA
5:00 PM, Mar 9, 2009
|
Homework 4: Propositional Logic Due: |
By the end of this homework, you will know:
the law of the excluded middle
By the end of this homework, you will be able to:
do proofs by natural deduction
convert sentences of propositional logic to normal form
These practice problems were written by head TA Nick Schaden in 200?.
#1 Consider the following sequence of statements.
IF MICROSOFT’S STOCK PRICE FALLS, THEN STEVE IS HAPPY. IF THE FOOTBALL GAME IS ON, THEN GEORGE WILL CHOKE ON A PRETZEL. MICROSOFT’S STOCK PRICE DROPPED OR THE FOOTBALL GAME IS ON.
(a) Convert the above statements into a knowledge base in propositional logic.
(b) Using the rules of natural deduction and your knowledge base, derive the following theorem: STEVE IS HAPPY OR GEORGE WILL CHOKE ON A PRETZEL.
#2 Consider the following sequence of statements.
IF TODAY IS FRIDAY OR SATURDAY, THEN A BROWN STUDENT WILL STAY OUT LATE. IF A BROWN STUDENT STAYS OUT LATE, THEN S/HE WILL SLEEP IN THE NEXT DAY.
(a) Convert the above statements into a knowledge base in propositional logic.
(b) Using the rules of natural deduction and your knowledge base, derive the following theorem: IF A BROWN STUDENT DOES NOT SLEEP IN, THEN TODAY IS NOT SATURDAY.
#3 Using the rules of natural deduction, and the equivalence
, derive the rule of
contraposition:
![\infer[(\mbox{\em Con})]{B \rightarrow \neg A}{A \rightarrow \neg B}](hw04-Z-G-2.gif)
(b) Consider the following sequence of statements.
If today is Saturday, then Brown will not hold classes.Convert the above statements into a knowledge base in propositional logic.
Brown is holding classes.
(c) Using the rules of natural deduction, the derived rule of contraposition, and your knowledge base, derive the theorem: TODAY IS NOT SATURDAY.
#4 Consider the following sequence of statements, which describe the workings of the security system for the computer science TA annex on the second floor.
IF THE SYSTEM IS ARMED AND MOTION IS DETECTED, THEN THE ALARM WILL SOUND. IF THE ALARM SOUNDS, THEN THE SYSTEM HAS BEEN ARMED OR THERE HAS BEEN A FIRE. REGARDLESS OF WHETHER THE SYSTEM IS ARMED, THE ALARM SHOULD GO OFF WHEN THERE IS A FIRE. MOTION IS CONSTANTLY DETECTED.
(a) Convert the above statements into a knowledge base using the symbols of propositional logic.
(b) Using the rules of natural deduction, the derived rule,
![\infer[(\leftrightarrow I)]{A \leftrightarrow B}{A \rightarrow B & B \rightarrow A}](hw04-Z-G-3.gif)
and your knowledge base, derive the following theorem: THE ALARM WILL SOUND IFF THE SYSTEM IS ARMED OR THERE IS A FIRE.
Task:
T / F 
T / F 
T / F 
T / F 
Task: Convert the following sentences of propositional logic to normal form. Show all work.
A → B
¬ A → B
A → ¬ B
¬ A → ¬ B
Task: Show that it is possible to define the meaning of ∨, →, ←, and ↔ in terms of ¬ and ∧. In other words, show that the subset { ¬, ∧ } suffices to express all the formulas of propositional logic. Are there other subsets of the set of connectives { ¬, ∨, ∧, →, ←, ↔ } that exhibit this property?
(a) Using truth tables, establish the soundness of the following variation of the resolution rule for propositional logic:

(b)
Derive this rule from the inference rules of natural deduction.
You may take as an axiom P ∨ ¬ P, and you may also make use
of the tautology
.
(Hint: First derive unit resolution.)
(c) Is the system of natural deduction refutation-complete for propositional logic? Why or why not?
(d) Can you derive P ∨ ¬ P using only resolution (1R, GR, or IGR)? If so, give a derivation; if not, explain why not. (Hint: Is resolution complete?)