1 / 18

Algebra of propositional wffs

Algebra of propositional wffs. Sections 1.2-1.3 13 May. 1. Substitution Rules. Let H be a wff and w be a proposition variable in H . If H is a tautology, then the wff Q obtained from H by replacing every occurrence of w by another proposition r is also a tautology. Example:

argus
Download Presentation

Algebra of propositional wffs

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. Algebra of propositional wffs Sections 1.2-1.3 13 May PROPOSITIONAL LOGIC 1

  2. Substitution Rules LetH be a wff and w be a proposition variable inH. If H is a tautology, then the wff Q obtained from H by replacing every occurrence of w by another proposition r is also a tautology. Example: (p (p q) )  qis a tautology. Replacingp with (q s), gives((q s) ((q s) q)) q This shows that((q s)  ((q s)  q)) q is also a tautology. 2 PROPOSITIONAL LOGIC

  3. Substitution Rules… Let H be a wff; w be a (sub)formula in H; and u be any formula that is equivalent to w. Then the wff Q obtained from H by replacing an occurrence ofw withu is logically equivalent to H. Example: ¬ [(p q) (p r)]  [q (p r)] ≡ ¬ [(¬p q) (p r)]  [q (p r)] Note that for this rule, H does not have to be a tautology. 3 PROPOSITIONAL LOGIC

  4. Duality Law Let H be a wff. The wff Q obtained from H by replacing: each with , each with , eachT with F,and each F with T, is called the dual of H. Example: The dual of (p  q) r is(p  q) r. If H(p1 ,p2 ,…,pn) and Q (p1 ,p2 ,…,pn) are duals, then ¬H(p1 ,p2 ,…,pn)≡Q(¬p1 ,¬p2 ,…,¬pn). Example: ¬((p  q) r ) ≡ (¬p ¬q )¬ r Example:De Morgans Laws ! 4 PROPOSITIONAL LOGIC

  5. From Truth Table to wff Given a Truth Table, how would you find a wff that produces it? 5 PROPOSITIONAL LOGIC

  6. From Truth Table to wff Given a Truth Table, how would you find a wff that produces it? 6 PROPOSITIONAL LOGIC

  7. From Truth Table to wff Given a Truth Table, how would you find a wff that produces it? p  q  r p ¬ q ¬ r ¬ p  q  r ¬ p ¬ q ¬ r 7 PROPOSITIONAL LOGIC

  8. From Truth Table to wff Given a Truth Table, how would you find a wff that produces it? p  q  r  p ¬ q ¬ r  ¬ p  q  r  ¬ p ¬ q ¬ r 8 PROPOSITIONAL LOGIC

  9. Aside: Quantifying a problems’ hardness The Satisfiability problem: Is there a truth assignment that would make an input wff have truth value True? Example: (pq¬ r )  (p¬q¬ s )  (p¬ r¬ s )  (¬p¬q¬ s )  (pq¬ s ) Distinction between: Verifying a solution Finding a solution How can it be done? Verifying a solution – and how much effort? Finding a solution – and how much effort? 9 PROPOSITIONAL LOGIC

  10. Logical Implication (see also Sec 1.5) We say that flogically impliesg, writtenf g, if whenever f is trueg is also true. Note:f g precisely if the propositionf g is a tautology. The left hand side of is called the set of premises and the right hand side is called the conclusion. A proofestablishes a chain of logical implications! PROPOSITIONAL LOGIC

  11. Logical Implications ? #1 #2 11 PROPOSITIONAL LOGIC

  12. Logical Implications ? #1 #2 12 PROPOSITIONAL LOGIC

  13. Does ((p q)  p)q ? PROPOSITIONAL LOGIC

  14. Does ((p q)  p)q ? Yes! PROPOSITIONAL LOGIC

  15. Does ((p q)  q)p ? No! 15 PROPOSITIONAL LOGIC

  16. Example p = “You are born in U.S.” q = “You are a U.S. citizen.” Based on the current laws, clearly p q. Note that, if are not born in the U.S., you may or may not be a U.S. citizen. In general, if p is false, then knowing p q does not let you conclude anything about q. When the premise is false anything can be concluded ! 16 PROPOSITIONAL LOGIC

  17. How are these questions related? Doesplogically implyc? Is the proposition(p c) a tautology? Is the proposition (¬p c) is a tautology? Is the proposition (¬ c ¬p)is a tautology? Is the proposition (p  ¬c) is a contradiction? 17 PROPOSITIONAL LOGIC

  18. Some Big ideas to remember • For propositional logic, there is an algorithm to determine if a wff is a tautology (or contradiction, or contingency): the propositional logic is thus decidable. • The algorithm takes at most 2n effort if there are n propositions in the wff. • Using algebra, we can sometimes decide that a particular wff is a tautology in less than 2n effort. PROPOSITIONAL LOGIC

More Related