Top Banner
September 23 Slides Elizabeth Orrico
26

September 23 Slides

May 04, 2023

Download

Documents

Khang Minh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: September 23 Slides

September 23 SlidesElizabeth Orrico

Page 2: September 23 Slides

AgendaVideos not playing

Predicate video

Predicate examples

Soft Intro to Quantifiers

About Domain…

Page 3: September 23 Slides

Good to have in your back pocket

Page 4: September 23 Slides

Predicates and First-Order Logic

We can only do so much with atomic propositions. To say more interesting things, like:

We need more.

Page 5: September 23 Slides

Predicates and First-Order Logic

We can only do so much with atomic propositions. To say more interesting things, like:

Page 6: September 23 Slides

Predicates

[FOL stands for First Order Logic]

https://youtu.be/hq2VUc7isw8?list=PL_onPhFCkVQjXugm0ak5NYEeFL-OGcYj5&t=4

Page 7: September 23 Slides

Predicates

“A function that evaluates to True or False”

“A proposition missing the noun(s)”

“A proposition template”

Page 8: September 23 Slides

Predicates Example

Determine the predicate and the arguments of the following:

“Sam loves Diane”

Page 9: September 23 Slides

Predicates Example

_______ loves ______ = L(x, y) x y

“Sam loves Diane”Formalizes to

L(Sam, Diane)

Page 10: September 23 Slides

Predicates Example

_______ loves ______ = L(x, y) x y

“Sam loves Diane” = L(Sam, Diane)“Diane doesn’t love Sam” = ????

Page 11: September 23 Slides

Predicates Example

_______ loves ______ = L(x, y) x y

“Sam loves Diane” = L(Sam, Diane)“Diane doesn’t love Sam” = ¬L(Diane, Sam) “I Love Lucy” = ????

Page 12: September 23 Slides

Predicates Example

_______ loves ______ = L(x, y) x y

“Sam loves Diane” = L(Sam, Diane)“Diane doesn’t love Sam” = ¬L(Diane, Sam)“I Love Lucy” = L(me, Lucy)“Everyone Loves Raymond” = ????

Page 13: September 23 Slides

Predicates Example

_______ loves ______ = L(x, y) ∀ = “for all” x yDomain: people

“Sam loves Diane” = L(Sam, Diane)“Diane doesn’t love Sam” = ¬L(Diane, Sam)“I Love Lucy” = L(me, Lucy)“Everybody Loves Raymond” = ∀x L(x, Raymond)

Page 14: September 23 Slides

Universal Quantifier (∀)

∀ = “for all” or “given any”It expresses that a propositional function can be satisfied by every member of the domain

Domain: People L(x, y) = x loves y

∀x L(x, Raymond) means ???

Page 15: September 23 Slides

Universal Quantifier (∀)

∀ = “for all” or “given any”It expresses that a propositional function can be satisfied by every member of the domain.

Domain: People L(x, y) = x loves y

∀x L(x, Raymond) means “For all people x, each one loves Raymond” “Given any person x, that person loves Raymond”

“Every person loves Raymond”

Page 16: September 23 Slides

Predicates Example

_______ loves ______ = L(x, y) ∀ = “for all” x yDomain: people

“Everybody Loves Raymond” = ∀x L(x, Raymond)“Everybody does not love Chris” = ????

Page 17: September 23 Slides

Predicates Example

Domain: People L(x, y) = x loves y“Everybody does not love Chris”

How could I rephrase this?

Page 18: September 23 Slides

Predicates Example

Domain: People L(x, y) = x loves y“Everybody does not love Chris”

How could I rephrase this? “For all people, each one does not love Chris”“There does not exist one person who loves Chris”

Page 19: September 23 Slides

Predicates Example

Domain: People L(x, y) = x loves y“Everybody does not love Chris”How could I formalize this?

“For all people, each one does not love Chris”∀x ¬L(x, Chris)

¬(∀x L(x, Chris)) = ???

Page 20: September 23 Slides

Predicates Example

Domain: People L(x, y) = x loves y“Everybody does not love Chris”

How could I formalize this? “For all people, each one does not love Chris”

∀x ¬L(x, Chris)

Page 21: September 23 Slides

Predicates Example

Domain: People L(x, y) = x loves y ∃ = “there exists”“Everybody does not love Chris”

How could I formalize this? “There does not exist one person who loves Chris”

Page 22: September 23 Slides

Existential Quantifier (∃)

∃ = "there exists", "there is at least one", or "for some"It expresses that a propositional function can be satisfied by at least one member of the domain.

Domain: People L(x, y) = x loves y

¬∃x L(x, Chris) means “There does not exist one person who loves Chris”

Page 23: September 23 Slides

Existential Quantifier (∃)

∃ = "there exists", "there is at least one", or "for some"It expresses that a propositional function can be satisfied by at least one member of the domain.

Domain: People L(x, y) = x loves y

¬∃x L(x, Chris) means “There does not exist one person who loves Chris”

(might also see ∄)

Page 24: September 23 Slides

∃ and ∀

Domain: People L(x, y) = x loves y

¬∃x L(x, Chris) means “There does not exist one person who loves Chris” ∀x ¬L(x, Chris) means “For all people, each one does not love Chris”

¬∃x L(x, Chris) ≡ ∀x ¬L(x, Chris)

Page 25: September 23 Slides

Another Example

Q(x) = (x² ≥ x)

Q(4) = ???

Q(-3) = ???

Page 26: September 23 Slides

Another Example

Q(x) = (x² ≥ x)

Q(4) = ???

Q(-3) = ???

To the whiteboard for why domain matters!