COMP 2711H: Lecture 2

Date: 2024-09-02 17:34:27

Reviewed:

Topic / Chapter: Predicate Logic and Peano's Axioms

summary

❓Questions
  • Does predicate / logic have much thing to do with (3-)SAT?
    • πŸ‘¨β€πŸ« No, that's more of an algorithm...

Notes

Rules of Inference
  • Other unnamed rules

    • proof by contradiction
    • informal "Rule of Equivalence"
    "Trivial" ones
  1. conjunction
  2. disjunctive syllogism
  3. modus tollens application
  4. simplification
  5. addition
  6. syllogism - 2
  7. syllogism of OR
  8. reverse syllogism of OR
  9. reverse syllogism of OR
  • Proof

    • theorem: assuming following conditions
      • wants to prove:
    • process
      1. // premise
      2. // rule of equivalence
      3. // premise
      4. // rule of syllogism 2,3
      5. // premise
      6. // rule of syllogism 4,5
    • above proof: can be checked by machine!
      • if it understands all symbols, etc.
      • πŸ‘¨β€πŸ« above: a "formal, mathematical" proof
    • and, we can now add a new rule
Predicates and Quantifiers
  • Predicates

    • Boolean statement w/ variable
      • : a predicate if it becomes a prop. when is replaced by a value
        • πŸ‘¨β€πŸ«in our UNIVERSE
    • examples
      • // false
      • // true
        • however, if if out "universe" is that of integer
        • no solution for the above exists
    • we can have multiple variables, too
  • Quantifiers

    • universal quantifier
      • "forall (in universe) s.t. "
    • existential quantifier
      • "exists (at least one in the universe...) s.t. "
    • example:
      • if universe is within the : true
      • alternatively:
  • Rules on

    • relation
    • ⭐distributive law
      • πŸ‘¨β€πŸ« but not the following!!
        • there can be a that satisfies "either" one, but not both
        • e.g.
          • one on the left: w/ stricter requirement
      • also: following is wrong, for the same reason
        • there can be a that only satisfies one predicate
        • e.g.
        • one on the left: w/ looser requirement here
Defining Natural Numbers
  • Natural numbers

    • highschool definition:
      • πŸ‘¨β€πŸ« not good! vague, what does the mean?
    • solved by Peano, in 19th century
    • Peano axioms
      1. 0 is a natural number
        • rules below: exists as equality wasn't defined by then...
        1. for every natural number ,
        2. ...
      2. every natural number has a successor
        • i.e. is a one-to-one
      3. if is a set s.t.
        • ⭐then
        • πŸ‘¨β€πŸ« basis of all mathematical induction
    • example: I want to prove
      • let be the set of all natural no. s.t.
      • showing two things are sufficient:
        • holds