1 / 92

Predicate Logic

Predicate Logic. Goal of Logic.

symona
Download Presentation

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

  2. Goal of Logic The goal of logic is to develop formal tests for validity. This is done by finding deductively valid argument forms. In SL, we have two tests to determine valid argument forms: the truth-table test, and derivations. Any argument that has a form that is valid according to the truth-table test is valid, and any argument that has a form that can be proven is valid.

  3. Example For example, here is a valid logical form: Premise: If P, then Q. Premise: Not-Q. Conclusion: Therefore, not-P.

  4. Example We translate it into SL: Premise: (P → Q) Premise: ~Q Conclusion: ~P

  5. Truth-Table Test

  6. Write Down Premises

  7. Write Down Truth-Table for Premises

  8. Write Down Conclusion

  9. Look at Lines Where ALL Premises are True

  10. Check Whether Conclusion is True

  11. (P → Q), ~Q ├ ~P This is how the truth-table test establishes the validity of the argument.

  12. (P → Q), ~Q ├ ~P We can also use a proof to establish validity.

  13. (P → Q), ~Q ├ ~P 1 1. (P → Q) A First, we write down the premises.

  14. (P → Q), ~Q├ ~P 1 1. (P → Q) A 2 2. ~Q A First, we write down the premises.

  15. (P → Q), ~Q ├ ~P 1 1. (P → Q) A 2 2. ~Q A Then we look at what we want to prove.

  16. ~I To prove a negation, we often have to use the following strategy: • Assume the opposite of what we’re trying to prove. • Derive a contradiction. • Use ~I to get what we want.

  17. (P → Q), ~Q ├ ~P 1 1. (P → Q) A 2 2. ~Q A 3 3. P A Assume the opposite.

  18. (P → Q), ~Q ├ ~P 1 1. (P → Q) A 2 2. ~Q A 3 3. P A 1,3 4. Q 1,3 →E 1,2,3 5. (Q & ~Q) 4,2 &I Derive a contradiction.

  19. (P → Q), ~Q ├ ~P 1 1. (P → Q) A 2 2. ~Q A 3 3. P A 1,3 4. Q 1,3 →E 1,2,3 5. (Q & ~Q) 4,2 &I 1,2 6. ~P 3,5 ~I Use ~I to get the opposite of what you assumed.

  20. Valid Arguments that Don’t Pass But, there are still valid arguments that don’t pass the truth-table test for validity and aren’t provable in SL. (This is why failing the truth-table test does not show that an argument is invalid). For example: Premise: Michael is human. Conclusion: Therefore, someone is human.

  21. Other Examples Premise: Every chicken is a bird. Premise: Every bird is an animal. Conclusion: Every chicken is an animal. Premise: No one comes to class on Saturday. Conclusion: Michael doesn’t come to class on Saturday.

  22. Other Examples Premise: Every chicken is a bird = C Premise: Every bird is an animal = B Conclusion: Every chicken is an animal = A Premise: No one comes to class on Saturday. Conclusion: Michael doesn’t come to class on Saturday.

  23. Other Examples Premise: C Premise: B Conclusion: A Premise: No one comes to class on Saturday. Conclusion: Michael doesn’t come to class on Saturday.

  24. Truth-Table Test

  25. Write Down Premises

  26. Write Down Conclusion

  27. Look at Lines Where ALL Premises are True

  28. Is Conclusion Always True?

  29. No!

  30. SL Not Expressive Enough The problem here is that our logic is not expressive enough. All simple English sentences get translated as sentence letters in SL. Therefore, no argument involving only simple sentences has a valid SL form, even though many such arguments are valid.

  31. PL Therefore, we have a more expressive logic, predicate logic PL, which represents the parts of simple sentences. In PL, a sentence like “Michael is human” will have its parts “Michael” and “is human” translated separately. In particular, PL has a specific grammatical category for singular terms.

  32. Singular Terms A singular term is an expression that names or identifies a particular individual, like a person or a city. English singular terms include:

  33. Singular Terms • Proper names: ‘Michael,’ ‘Jenny,’ ‘Hong Kong,’ etc. • ‘the’ + description: ‘the tallest man in the world,’ ‘the country with the second largest economy,’ ‘the third Wednesday of March,’ etc. • ‘that’ ‘this’ or ‘that’ + description, ‘this’ + description: ‘this pencil,’ ‘that table,’ etc.

  34. NOT Singular Terms • ‘Every happy person’ • ‘No one in Hong Kong’ • ‘A bird with red feathers’ • ‘Beautiful dresses’ None of these expressions name a particular individual or thing.

  35. Translating Singular Terms To translate singular terms into PL, we will use lowercase Roman letters: a, b, c, d, e, f, g, etc. So we might translate “Michael” as “m.” If we’re just doing logic (and not translating) usually we choose a, b, and c to be our singular terms.

  36. Variables In addition, PL contains a special grammatical category called variables. Variables are a lot like singular terms, but they do not name or represent anything in particular. Variables: x, y, z (and if need be w, v, and u) We do not use these letters to translate singular terms!

  37. Variables Replace Singular Terms Consider how variables are used in arithmetic: • 5 + 7 = 12 • 5 + x = 12 • y + x = 12 • y + x = z “5,” “7,” and “12” all name particular numbers. “x,” “y,” and “z” do not. But they go in the same places singular terms go.

  38. Variables Replace Singular Terms In logic, things are very similar, except variables can replace more than just singular terms for numbers: • Michael gave that book to Sam • Michael gave x to Sam • y gave x to Sam • y gave x to z

  39. Open Sentences If you take an English sentence, remove one or more singular terms and replace them with variables, the result is an open sentence. • Michael gave x to Sam • x gave y to z • This past winter, x went home to visit x’s grandmother. • John went to the party but z stayed home.

  40. Predicates Predicate logic also contains expressions that translate predicates. In traditional grammar, a sentence like “Michael is human” has “Michael” as its subject and “is human” as its predicate. In logic, we simply identify predicates as open sentences. So “x is human” is a predicate, but “is human” is not.

  41. Translating Predicates Predicates in PL are translated as capital Roman letters: A, B, C, D, E, F, G, etc. We have a preference for the letters F, G, and H when there is no other reason to choose.

  42. Our Fragment Predicate logic is a lot harder than sentential logic, so to make it easier, the system in the reading (PL) only has “monadic” or “one-place” predicates– predicates containing only one place for a singular term.

  43. Only 1-Place Predicates OK: • x is human • Michael gave z to Sam • y gave that book to Sam • Michael gave that book to y NOT OK: • x gave that book to y • x admires z

  44. Sample Translations

  45. More Complicated WFFs Just as in SL, we can combine PL WFFs with truth-functional connectives: • (Hm & Bc) • ((Rh ↔ Ij) v (Ad → ~Bc))

  46. Quantifiers Some words in English are not appropriately translated as either singular terms or predicates. Consider the sentence: “Something is red.” Here we know that “x is red” translates as “Rx.” How should we represent “something”?

  47. Not a Singular Term It would be a bad idea to translate “something” as a singular term: First, “something” doesn’t identify a particular individual.

  48. Not a Singular Term It would be a bad idea to translate “something” as a singular term: Second, if we translated “Something” as a singular term “s” and “something is red” as “Rs,” then we would have to translate “something is red and something is not red” as “(Rs & ~Rs).”

  49. Not a Contradiction But it’s not a contradiction if something is red and something (else) is not red. This is why singular terms have to identify particular individuals, and why we can’t translate words like “something” as singular terms.

  50. Quantifiers In PL, there is a special symbol that translates “something”: ∃ (called “backwards E” or “the existential quantifier”). In the grammar of PL, to write “something is red” we write ∃ followed by a variable, followed by an open sentence with that variable in it: ∃xRx

More Related