Recitation R12
- Inference Rules
Fall 2013
CS160: Foundations in Programming
The purpose of this lab is to:
- Solve some more problems involving propositional logic
- Perform work using the Rules of Inference
- Do a complete propositional logic proof two different ways
Solve each of the following problems, one at a time.
When everyone has had a chance to go through the problems, your TA will show you how to work each correctly.
- Translate the given statement into propositional logic using the propositions provided:
To use the wireless network in the airport you must pay the daily fee
unless you are a subscriber to the service. Express your answer in terms of
w: "You can use the wireless network in the airport," d: "You
pay the daily fee," and s: "You are a subscriber to the service."
- Use truth tables to verify these equivalences.
- p ∧ T is equivalent to p
- p ∨ T is equivalent to T
- p ∧ F is equivalent to F
- p ∨ F is equivalent to p
- p ∧ p is equivalent to p
- p ∨ p is equivalent to p
- Use De Morgan's law to find the negation of each of the
following statements.
- James is young and strong.
- Rita will move to Oregon or Washington.
- Show that each of these conditional statements is a tautology by
using truth tables.
- ¬p → (p → q)
- (p ∧ q) → (p → q)
- Define tautology, contradiction, and contingency.
- Show the converse, contrapositive, and inverse of p → q.
- Prove the following Rules of Inference. Use a truth table for each and show the equivalence.
- Modus Tollens
- Disjunctive Syllogism
- Prove the following using the Rules of Inference. State the specific rule for each step.
- Axiom: p ∨ q
- Axiom: p → r
- Axiom: ¬r
- Prove: q
- Prove the previous problem using a truth table.
Show your work to the TA for grading and to get credit for this lab.
© 2013 CS160 Colorado State University. All Rights Reserved.