1 / 10

Propositional Logic

Propositional Logic. Propositional Logic. A proposition is a statement that is either true or false. We give propositions names such as p , q , and r . E.g. p = “pigs have wings” q = “Obama is U.S. president” In this world anyway, p is false and q is true. Truth Tables. −.

telyn
Download Presentation

Propositional Logic

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. Propositional Logic

  2. Propositional Logic A proposition is a statement that is either true or false. We give propositions names such as p, q, and r. E.g. p = “pigs have wings” q = “Obama is U.S. president” In this world anyway, p is false and q is true.

  3. Truth Tables − • “Not” • ¬p is also written p

  4. Logical Operators/Connectives Building propositions from propositions “And” So “pigs have wings and Obama is US president” …

  5. Logical Operators/Connectives “Or” So “pigs have wings or Obama is US president” … “Or” is ambiguous in English but not in Propositional Logic E.g., “would you like coffee or ice cream?”

  6. Logical Operators/Connectives • “Exclusive or”

  7. Some expressions can be defined in terms of others • p ⊕ q is equivalent to (p∨q) ∧¬(p∧q) • What does this actually mean? • That the truth value of the formula on the left is the same as the truth value of the formula on the right regardless of the truth values of p and q

  8. Propositional Logic

  9. Implies p ⇒q or p→q or p⊃q is equivalent to ¬p∨q So “If pigs have wings then Obama is US president” is true in this world In fact a false proposition implies any proposition

  10. “Iff” or logical equivalence p ⇔ q means that p and q have the same truth value Equivalent to (p ⇒ q) ∧ (q ⇒ p)

More Related