1 / 78

Introduction to Symbolic Logic

Introduction to Symbolic Logic. (part 2) San Diego Math Circle David W. Brown. Theorems, Tautologies, Proofs. Oh my!. We’ve just encountered some statements that are, in fact, “theorems” of propositional logic Laws of contraposition ( p → q ) ↔ ( ~q → ~p ) ( q → p ) ↔ ( ~p → ~q )

burke
Télécharger la présentation

Introduction to Symbolic 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. IntroductiontoSymbolic Logic (part 2) San Diego Math Circle David W. Brown

  2. Theorems, Tautologies, Proofs Oh my!

  3. We’ve just encountered some statements that are, in fact, “theorems” of propositional logic Laws of contraposition ( p → q ) ↔ ( ~q → ~p ) ( q → p ) ↔ ( ~p → ~q ) Biconditional introduction/elimination (p → q)  (p ← q) ↔ (p ↔ q) We demonstrated the truth of these equivalences by comparing the truth tables for each side of the equivalence symbol. Since the truth values of each side (either T or F) were the same in every row, we “proved” the equivalence to be true for all possible truth values of propositions p and q.

  4. Tautology, Contradiction, Contingency A tautology is a statement that is true for all possible truth values of its atomic substatements; i.e., is equivalent to the constant-true function T and thus expresses a universal truth. A contradiction is a statement that is false for all possible truth values of its atomic substatements; i.e., is equivalent to the constant-false function F and thus expresses a universal falsehood. A contingency is a statement that is true for some possible truth values of its atomic substatements, and false for others; i.e., is not equivalent to either constant-true function T, nor the constant-false function F. Most propositions are contingencies.

  5. Definitions: b = “The boy did it.” d = “The dog did it.” c = “The cat did it.” Givens: The boy says: (~b  d) The dog says: (~d  c) The cat says: (~c  b) Proof: (~b  d)  (~d  c)  (~c  b) (~b  b)  (~d  d)  (~c  c) F  F  F F Contradiction All givens in a proof are presumed true. Here, this means that the boy, the dog, and the cat are given to be speaking the truth. Conjunction of givens Commutative & associative laws Law of noncontradiction Idempotency → Somebody’s lying. Contradiction Example

  6. Tautology The equivalences we just proved are tautologies: ( p → q ) ↔ ( ~q → ~p ) ( q → p ) ↔ ( ~p → ~q ) (p → q)  (p ← q) ↔ (p ↔ q) Tautologies of equivalence allow us to “substitute” one side of the equivalence for the other in any logical expression. Other tautologies (e.g., of implication) allow us to form inferences. This is essential for developing a “calculus” for proving theorems.

  7. Laws of negation: p  ~p ↔ F p  ~p ↔ T Laws of identity p  T ↔ p p  F ↔ p Laws of domination p  F ↔ F p  T ↔ T Laws of idempotency p  p ↔ p p  p ↔ p Laws of reflexivity p ↔ p p → p Vacuous truth / Double negation F → p ~~p ↔ p “Unary” Tautologies

  8. Spotlight on Laws of negation • p  ~p ↔ F Law of noncontradiction No wff can be both T and F • p  ~p ↔ T Law of the excluded middle Every wff must be T or F – no “maybe”

  9. Some Basic “Binary” Tautologies • Laws of simplification (conjunction elimination) • (p  q ) → p • (p  q ) → q • Laws of addition (disjunction introduction) • p → (p  q) • q → (p  q) • Laws of absorption • p  (p  q) ↔ p • p  (p  q) ↔ p

  10. Algebra-like Tautologies Commutative Laws: “like:” • p  q ↔ q  p“commutative law of x” • p  q ↔ q  p“commutative law of +” Associative Laws: • (p  q)  r ↔ p  (q  r)“associative law of x” • (p  q)  r ↔ p  (q  r)“associative law of +” Distributive Laws: • p  (q  r) ↔ (p  q)  (p  r ) “distributive law of x over +” • p  (q  r) ↔ (p  q)  (p  r )“distributive law of + over x” X Transitive Laws: • (p ↔ q)  (q ↔ r) → (p ↔ r)“transitive property of =” • (p → q)  (q → r) → (p → r)“transitive property of >”

  11. Note: • In ordinary algebra, commutative laws, associative laws, distributive laws, etc. are axioms – primitive statements that stand without proof. • In logic, the similar statements are proven from more primitive truths; this is a reflection of the fact that logic is more fundamental than the higher mathematics built upon it.

  12. De Morgan’s Laws De Morgan’s Laws tell us how to negate conjunctions and disjunctions; something frequently necessary in practice ~(p  q) ↔ ~p  ~q ~(p  q) ↔ ~p  ~q Note that this is quite different from the relation between negation (-) and the binary operations of algebra, (+) and (x).

  13. Truth Tables for De Morgan’s Laws The equivalence of the rightmost columns proves the tautologies

  14. Truth Tables for De Morgan’s Laws Negate p Negate p

  15. Truth Tables for De Morgan’s Laws Negate q Negate q

  16. Truth Tables for De Morgan’s Laws Form disjunction of p and q Form conjunction of p and q

  17. Truth Tables for De Morgan’s Laws Negate disjunction of p and q Negate conjunction of p and q

  18. Truth Tables for De Morgan’s Laws Form conjunction of ~p and ~q Form disjunction of ~p and ~q

  19. Truth Tables for De Morgan’s Laws The equivalence of the rightmost columns proves the tautologies

  20. Rules of Inference “The proof of proof”

  21. Classical vs. Propositional Notations for Inference • Modus Ponens • (p → q )  p → q • Modus Tollens • (p → q )  ~q → ~p

  22. Modus Ponens Modus Tollens Syllogisms: Disjunctive Hypothetical Reductio ad Absurdam Proof by Contradiction Indirect Proof Dilemmas: Constructive Destructive Proof by Cases Some Common Inference rules

  23. Modus Ponens Latin: “modus ponendo ponens” – the mode that affirms by affirming. That is, the consequent is affirmed (proven true) by affirming (asserting the truth of) the antecedant. If p and p → q, then q. -or- (p  (p → q )) → q (truth flows forward)

  24. Truth Table Proof of Modus Ponens

  25. Truth Table Proof of Modus Ponens

  26. Truth Table Proof of Modus Ponens

  27. Truth Table Proof of Modus Ponens

  28. Condensed Truth Table Proof of Modus Ponens

  29. Modus Tollens Latin: “modus tollendo tollens” - mode that denies by denying That is, the antecedant is denied (proven false) by denying (asserting the falseness of) the consequent. If p → q and ~q, then ~p. -or- ((p → q )  ~q) → ~p (falsehood flows backward)

  30. Truth Table Proof of Modus Tollens

  31. Truth Table Proof of Modus Tollens

  32. Truth Table Proof of Modus Tollens

  33. Truth Table Proof of Modus Tollens

  34. Truth Table Proof of Modus Tollens

  35. Truth Table Proof of Modus Tollens

  36. Condensed Truth Table Proof of Modus Tollens

  37. Disjunctive Syllogism The principle of the disjunctive syllogism is that since at least one of the two propositions comprising a true disjunction must be true, if one of them is known to be false, the other can be concluded to be true: If ~p and p  q, then q. -or- (~p  (p  q )) → q

  38. Truth Table Proof ofDisjunctive Syllogism

  39. Truth Table Proof ofDisjunctive Syllogism

  40. Truth Table Proof ofDisjunctive Syllogism

  41. Truth Table Proof ofDisjunctive Syllogism

  42. Truth Table Proof ofDisjunctive Syllogism

  43. Condensed Truth Table Proof ofDisjunctive Syllogism

  44. Hypothetical Syllogism The hypothetical syllogism expresses the transitive property of logical implication: If p → q and q → r, then p → r. -or- ((p → q )  (q → r )) → (p → r ) Note that this relates three propositions, which involves a domain of ordered triples (p,q,r) requiring a truth table of 23 rows.

  45. Truth Table Proof ofHypothetical Syllogism

  46. Truth Table Proof ofHypothetical Syllogism

  47. Truth Table Proof ofHypothetical Syllogism

  48. Truth Table Proof ofHypothetical Syllogism

  49. Truth Table Proof ofHypothetical Syllogism

More Related