Predicate Logic: Introduction and Translations
Alice Gao
Lecture 11
CS 245 Logic and Computation Fall 2019 1 / 37
Predicate Logic: Introduction and Translations Alice Gao Lecture - - PowerPoint PPT Presentation
Predicate Logic: Introduction and Translations Alice Gao Lecture 11 CS 245 Logic and Computation Fall 2019 1 / 37 Outline Learning goals Introduction and Motivation Elements of Predicate Logic Translating between English and Predicate
CS 245 Logic and Computation Fall 2019 1 / 37
CS 245 Logic and Computation Fall 2019 2 / 37
▶ Give examples of English sentences that can be modeled using
▶ Translate an English sentence into a predicate formula. ▶ Translate a predicate formula into an English sentence.
CS 245 Logic and Computation Fall 2019 3 / 37
CS 245 Logic and Computation Fall 2019 4 / 37
CS 245 Logic and Computation Fall 2019 5 / 37
▶ Relationships among individuals:
▶ Generalizing patterns:
▶ Infjnite domains:
CS 245 Logic and Computation Fall 2019 6 / 37
CS 245 Logic and Computation Fall 2019 7 / 37
CS 245 Logic and Computation Fall 2019 8 / 37
CS 245 Logic and Computation Fall 2019 9 / 37
▶ Domains ▶ Relations ▶ Quantifjers
CS 245 Logic and Computation Fall 2019 10 / 37
▶ a non-empty set of objects/individuals. ▶ a world that our statement is situated within.
▶ A statement can have difgerent truth values in difgerent
▶ There exists a number whose square is 2.
CS 245 Logic and Computation Fall 2019 11 / 37
▶ Natural numbers: 0, 6, 100, ... ▶ Alice, Bob, Eve, ... ▶ Animals: Winnie the Pooh, Micky Mouse, Simba, ...
▶ e.g. 𝑣, 𝑤, 𝑥, 𝑦, 𝑧, 𝑨. ▶ refers to an object without specifying a particular object.
CS 245 Logic and Computation Fall 2019 12 / 37
▶ a property of an individual, or ▶ a relationship among multiple individuals. ▶ a n-ary function which takes constants and/or variables as
▶ Defjne 𝑇(𝑦) to mean “𝑦 is a student”. (unary predicate)
▶ Bob is a student: 𝑇(𝐶𝑝𝑐) ▶ Micky Mouse is not a student: (¬𝑇(Micky Mouse)) ▶ 𝑣 is a student: 𝑇(𝑣)
▶ Defjne 𝑍 (𝑦, 𝑧) to mean “𝑦 is younger than 𝑧”. (binary
▶ Alex is younger than Sam: 𝑍 (Alex, Sam) ▶ 𝑣 is younger than 𝑤: 𝑍 (𝑣, 𝑤) CS 245 Logic and Computation Fall 2019 13 / 37
▶ The universal quantifjer ∀:
▶ The existential quantifjer ∃:
CS 245 Logic and Computation Fall 2019 14 / 37
CS 245 Logic and Computation Fall 2019 15 / 37
CS 245 Logic and Computation Fall 2019 16 / 37
CS 245 Logic and Computation Fall 2019 17 / 37
CS 245 Logic and Computation Fall 2019 18 / 37
CS 245 Logic and Computation Fall 2019 19 / 37
CS 245 Logic and Computation Fall 2019 20 / 37
CS 245 Logic and Computation Fall 2019 21 / 37
CS 245 Logic and Computation Fall 2019 22 / 37
CS 245 Logic and Computation Fall 2019 23 / 37
CS 245 Logic and Computation Fall 2019 24 / 37
CS 245 Logic and Computation Fall 2019 25 / 37
CS 245 Logic and Computation Fall 2019 26 / 37
CS 245 Logic and Computation Fall 2019 27 / 37
CS 245 Logic and Computation Fall 2019 28 / 37
CS 245 Logic and Computation Fall 2019 29 / 37
▶ ¬(∀𝑦 𝑄(𝑦)) ⊨
▶ ¬(∃𝑦 𝑄(𝑦)) ⊨
CS 245 Logic and Computation Fall 2019 30 / 37
CS 245 Logic and Computation Fall 2019 31 / 37
CS 245 Logic and Computation Fall 2019 32 / 37
CS 245 Logic and Computation Fall 2019 33 / 37
▶ Every/All/Each/Any
▶ Some/At least one/There exists a/There is a
▶ None/No x
▶ Not every/Not all
▶ Every P-ish x has property Q
▶ Some P-ish x has property Q
CS 245 Logic and Computation Fall 2019 34 / 37
CS 245 Logic and Computation Fall 2019 35 / 37
CS 245 Logic and Computation Fall 2019 36 / 37
▶ Give examples of English sentences that can be modeled using
▶ Translate an English sentence into a predicate formula. ▶ Translate a predicate formula into an English sentence.
CS 245 Logic and Computation Fall 2019 37 / 37