Recitation R12
- Inference Rules
Spring 2014
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
Create a file called R12.txt and write your solution in it to 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 problem 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.
The TA will check off your answers, also please submit your R12.txt to RamCT to verify your attendance.
© 2014 CS160 Colorado State University. All Rights Reserved.