1 / 9

Exercises for CS3511 Week 31 (first week of practical)

Exercises for CS3511 Week 31 (first week of practical). Propositional Logic. Exercise 1. 1. Express each formula using only (at most) the connectives listed. In each case use a truth table to prove the equivalence. (Note:  is exclusive `or`) Formula: p q. Connectives: {,}.

ciaran-wolf
Download Presentation

Exercises for CS3511 Week 31 (first week of practical)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Exercises for CS3511Week 31 (first week of practical) Propositional Logic

  2. Exercise 1 1. Express each formula using only (at most) the connectives listed. In each case use a truth table to prove the equivalence. (Note:  is exclusive `or`) • Formula: pq. Connectives: {,}. • Formula: pq. Connectives: {,,}. • Formula: pq. Connectives: {, }. • Formula: (pq)  ((p)q). Conn: {,}. • Formula: p. Conn: { | } (the Sheffer stroke).

  3. Answer to Exercise 1. (Other answers possible) a. Formulapq. Connectives: {,}. Answer: pq • Formula: pq. Connectives: {,,}. Answer: (p q)(q  p) c. Formula: pq. Connectives: {, }. Answer: (pq)(q p) d. Formula: (pq)  ((p)q). Conn: {,}. Answer: q (This was a trick question, since you don’t need any connectives.) e. Formula: p. Conn: { | } (the Sheffer stroke). Answer: p|p

  4. Ex. 2. Which of these are tautologies? • p (q  p) • p (p  p) • (q  p)  (p  q) • (q  p)  (p  q) • (p  (q  r))  (q  (p  r)) Please prove your claims, using truth tables. (Hint: Ask what assignment of truth values to p,q, and r would falsify each formula. In this way you can disregard parts of the truth table).

  5. Answer to Ex.2 • p (q  p) Tautologous • p (p  p) Tautologous • (q  p)  (p  q) Contingent • (q  p)  (p  q) Tautologous • (p  (q  r))  (q  (p  r)) Tautologous 1,2,4,5 are known as “ ’paradoxes’ of implication”, because they contrast with implication in ordinary language.

  6. Ex. 3a. Reading formulas off truth tables • Background: In class, a proof was sketched for the claim that every propositional logic formula can be expressed using the connectives {, }. The proof proceeded essentially by “reading off” the correct formula off the truth table of any given formula. • Task: Use this meticulous method to construct a formula equivalent to pq.

  7. Answer to Ex. 3a. Steps: • Construct the truth table of pq. 2. Mark those two rows in the table that make pq TRUE. • Corresponding with these two rows, construct a disjunction of two formulas, one of which is (pq), and the other (qp). • Use the De Morgan Laws to convert this disjunction (pq)(qp) into the quivalent formula ((pq) (qp)) [5. Use truth tables again to check that these two formulas are indeed equivalent.]

  8. Ex. 3b. Reading formulas off truth tables • As Ex. 3, but with a difference: • Task: Use this meticulous method to construct a formula equivalent to p|q. • Question: Does this meticulous method always produce the shortest answer (i.e. the shortest formula that is logically equivalent to the original while still only using negation and conjunction)?

  9. Answer to 3b • For p|q, we start with the disjunction (pq)  (qp)  (pq) After getting rid of the disjunctions, this is much lengthier than the logically equivalent formula (pq). (Lesson: the procedure in the proof does not always get you the shortest answer.)

More Related