Predicate Logic: Peano Arithmetic
Alice Gao
Lecture 20
CS 245 Logic and Computation Fall 2019 1 / 22
Predicate Logic: Peano Arithmetic Alice Gao Lecture 20 CS 245 - - PowerPoint PPT Presentation
Predicate Logic: Peano Arithmetic Alice Gao Lecture 20 CS 245 Logic and Computation Fall 2019 1 / 22 Outline The Learning Goals Properties of Equality Using Logic to Model Number Theory Revisiting the Learning Goals CS 245 Logic and
CS 245 Logic and Computation Fall 2019 1 / 22
CS 245 Logic and Computation Fall 2019 2 / 22
▶ Write a formal deduction proof using rules for equality. ▶ Write a formal deduction proof for properties of natural
CS 245 Logic and Computation Fall 2019 3 / 22
CS 245 Logic and Computation Fall 2019 4 / 22
CS 245 Logic and Computation Fall 2019 5 / 22
CS 245 Logic and Computation Fall 2019 6 / 22
CS 245 Logic and Computation Fall 2019 7 / 22
CS 245 Logic and Computation Fall 2019 8 / 22
CS 245 Logic and Computation Fall 2019 9 / 22
▶ Number theory, with 0, +, and ⋅ ▶ Set theory, with ∈ and ∅ ▶ Group theory ▶ Graph theory ▶ Geometry
▶ Defjne axioms that describe the functions, predicates/relations
▶ Prove theorems in that domain using predicate logic.
CS 245 Logic and Computation Fall 2019 10 / 22
▶ The domain is the set of natural numbers, 0, 1, 2, 3, … . ▶ Functions: addition + and multiplication ⋅. ▶ Relations: ordering <.
CS 245 Logic and Computation Fall 2019 11 / 22
▶ Individual/constant: 0 ▶ Functions:
CS 245 Logic and Computation Fall 2019 12 / 22
CS 245 Logic and Computation Fall 2019 13 / 22
CS 245 Logic and Computation Fall 2019 14 / 22
▶ (Base Case)
▶ (Inductive Step)
CS 245 Logic and Computation Fall 2019 15 / 22
CS 245 Logic and Computation Fall 2019 16 / 22
▶ Base Case: Prove that ¬(𝑡(0) ≈ 0)
▶ Induction Step:
CS 245 Logic and Computation Fall 2019 17 / 22
CS 245 Logic and Computation Fall 2019 18 / 22
CS 245 Logic and Computation Fall 2019 19 / 22
CS 245 Logic and Computation Fall 2019 20 / 22
CS 245 Logic and Computation Fall 2019 21 / 22
▶ Write a formal deduction proof using rules for equality. ▶ Write a formal deduction proof for properties of natural
CS 245 Logic and Computation Fall 2019 22 / 22