FOL - first order logic

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/57

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

58 Terms

1
New cards

Names

(a-r) 

  • Specific names of people, places, things 

  • Always lowercase letters from a-r 

2
New cards

Names ex:

Ex: 

e- Tweety 

l- Sylvester 

In FOL every name has to pick out a single individual (person, thing, etc) 

  • Can't pick out/represent more than one thing 

3
New cards

Predicates

 (A-Z and s-z)

  • A sentence with one or more blanks that would become a full sentence if those blanks were filled with names.


  • The part of the sentence describing the subject 

Ex: Mr. Morton walked down the street. 

4
New cards

Predicates ex

— is a bird. 

— has feathers.

A cat is chasing -–.


B(x):___x is a bird.

F(x):___x has feathers 

C(x): A cat is chasing_____x

R(x,y)

  • ______x is chasing _____y

  • can use any letter instead of R (A-Z) 

5
New cards

Sentence ex

Name:

m: Mr.Morton 

Predicate: 

W(x): ______x walked down the street

  • Can be A- Z in capital letters

  •  and s-z in lowercase letters- in parentheses

  • Need to know where the different letters/predicates go to- that's what the little x , or s-z is for 

6
New cards

If you have a predicate and name, you should fill it with the name/subject 

  • (a,r) 


r: Rhea

S()- is shopping

S(r) : Rhea is shopping



Otherwise, if it isn't filled in with a name

  • Use s-z

S(z) : _____z is shopping




a-r : names- will always name something

A-Z: predicates

s-z: variables - will never name anything, variable


  • There should either be a name or a variable in a predicate

7
New cards

Full sentences vs not full sentences 

When you have a predicate and a variable- not a full sentence 

Only when you put a name in there it becomes a full sentence 



B(y)

  • Not a sentence 

  • Only has a predicate and a variable 

  • Says  ___y is a bird 



B(l)

- full sentence 

- Has a name and a predicate 

- says Sylvester is a bird 


8
New cards

full sentence vs non full sentence

F(z) - _____x has feathers 

(F)e - Tweety has feathers 

9
New cards

 Sylvester is a bird 

  B(l)

10
New cards

Sylvester and Tweety have feathers

 F(l) ∧ F(e)

11
New cards

If a cat is chasing Tweety, then Sylvester is a bird

- C(e) → B(l) 

- can do brackets on the outside, but they are optional

12
New cards

If Sylvester and Tweety have feathers , then a cat is chasing Tweety. 

- [F(l) ∧ F(e)] → C(e)

13
New cards

If you have a two place predicate, you have to fill it with 2 

  • With a one place predicate put 1 


R(x,y) 

_____x is rubbing _____y

14
New cards


R(x,y) 

_____x is rubbing _____y


R(e,l) 

Tweety is rubbing Sylvester 

15
New cards

R(x,y) 

_____x is rubbing _____y

R(e,e) 

Tweety is rubbing Tweety 

16
New cards

R(x,y) 

_____x is rubbing _____y

F(l) F(e)

  • Not a well formed sentence of FOL 

17
New cards

Universal Quantifier - (∀)

For all ____, ____ is ____ 


  • Represents everything 

18
New cards

∀x B(x) 

Variables (s-z) 


“For all x, x is a bird.” 


  • Says everything is a bird, so if you put anything in x- it will be a bird

  • You can substitute anything for x and that thing will be B- a bird 


19
New cards

∀x ¬B (x) 

“For all x, x is not a bird.”

  • Everything is a not bird 

  • For all x, it's not the case that x is a bird 

20
New cards

“All things have feathers”

∀x F (x) 

∀y F (y) 

Variables (s-z)

  • Anything from s-z

  • Just placeholders that tell you what a thing is quantifying

21
New cards

Existential quantifier (Ǝ) 
Ǝ(x)

-Represents something 

  • at least one thing 

22
New cards

Something has feathers

Ǝx F(x) 


“There is some x such that x has feathers”

23
New cards

F(l) V F(e) 

- also represents that something has feathers

- at least one, tweety or sylvester

- but there will most times be more than 2 things or variables, so the V is not sustainable 

24
New cards

 Ǝx  -F(x)

There is something that does not have feathers 

  • There is some x such that x does not have feathers 


25
New cards

-∀ x F(x)

  • There is something that does not have feathers 

  • It is not the case the for all x, x has feathers 

    • some can have feathers though

26
New cards

Nothing is a bird 

∀x -B(x)

  • All things are not birds 

  • For all X it is not the case that X is a bird

27
New cards

Nothing is a bird 

-Ǝx B(x) 

  • It is not true that at least one thing is a bird 

  • It is not the case that some such x is a bird 

28
New cards

Not everything is a bird 

-∀x B(x) 

- says everything is a bird, then negates it 

- It is not the case that for all x, x is a bird 

- it's not true that everything is a bird

29
New cards

Not everything is a bird 

Ǝx -B(x)

- there is something that is not a bird 

- Some such x is not bird 

- at least one x is not a bird 

30
New cards

Everyone

depends on the domain, relative 


  • Everyone is happy - the students in the room are happy 

  • Only describing the students in the room 

31
New cards

Domain 

  • A domain must have at least one member. Every name must pick out exactly one member of the domain, but a member of the domain may be picked out by one name, many names, or none at all. 

32
New cards

Domain: animals in the pet store 


Ǝx -F(x)

  • There is some x such that x does not have feathers in the pet store 

  • There is at least one animal in the pet store that has no feathers 

  • (there is an animal with no feathers in the pet store) 



  • It used to say that there is something that has feathers, but it changes depending on the domain 


33
New cards

 ∀x -B(x)

For all x in the pet store it is not the case X is a bird/X is not a bird 


All the animals in the pet store are non birds 

  • None of the animals in the pet store are birds 

  • There are no birds in the petstore 

34
New cards

Domain: all animals (or all animals in the pet store) 


P(x): ____x is in the display case 

B(x): ____x is in the back if the store 

D(x): ____x is a dog 

C(x): ____x is a cat 


35
New cards

Domain: all animals (or all animals in the pet store) 


P(x): ____x is in the display case 

B(x): ____x is in the back if the store 

D(x): ____x is a dog 

C(x): ____x is a cat 


36
New cards

Domain: all animals (or all animals in the pet store) 


P(x): ____x is in the display case 

B(x): ____x is in the back if the store 

D(x): ____x is a dog 

C(x): ____x is a cat 


37
New cards

Domain: all animals (or all animals in the pet store) 


P(x): ____x is in the display case 

B(x): ____x is in the back if the store 

D(x): ____x is a dog 

C(x): ____x is a cat 


 All the animals in the display case are dogs 

∀x (P(x) → D(x) )



All animals in the display case are dogs 




  • Forall x if its in a display case, then it's a dog 

  • If it has the property of being a P- in the display case, then it's a dog

38
New cards

A sentence can be symbolized as ∀x (F(x) → G(x) ) it can be paraphrased in English as ‘every F is G’

If you see: Every F is G 

Then symbolize :  ∀x (F(x) → G (x)) 

  • For all F is x then G is x 


39
New cards

In the universal ∀x we will use

conditional most times 

  • Want to say all of these things are also those things 

  • You can also use a conjunction 

40
New cards

Domain: all animals (or all animals in the pet store) 


P(x): ____x is in the display case 

B(x): ____x is in the back if the store 

D(x): ____x is a dog 

C(x): ____x is a cat 

Some animal in the back of the store is a cat 

  • Has 2 properties 

    • Is in the back of the store

    • Is a cat

Ǝx (B(x) ⋀ C(x))

  • Says there is something in the domain that satisfies both sentences B and C  

  • At least one thing x , is in the back of the store and is a cat

41
New cards


A sentence that can be symbolized Ǝx (F(x) ∧ G(x)) can be paraphrased as “some F is G” in English 

  • Some thing is F and G


Do not use  → (conditionals) with Ǝ (existential quantifier) 

-Ǝx (B(x) → C(x))


Not correct

42
New cards

Do not use  → (conditionals) with Ǝ (existential quantifier) 


-Ǝx (B(x) → C(x))


Not correct

  • Says there is not at least one thing in the domain that satisfies the conditional 

  • Made true if there is at least one cat 

  • True if there is a single cat - one cat 

  • Made true by the very existence of a cat 

  • True if there is something that is not in the back of the store, conditional is also true 


True if the antecedent is true and consequent is false- 

43
New cards

You will never use conditionals with Ǝ existentials because it is too easy for the conditional to be true

  • Generally -Ǝ existentials go with conjunctions 

44
New cards

Domain: all animals (or all animals in the pet store) 


P(x): ____x is in the display case 

B(x): ____x is in the back if the store 

D(x): ____x is a dog 

C(x): ____x is a cat 

 None of the animals in the display case are cats.

All things- if they are in the display case, then they are not cats


  • ∀x (P(x) → -C(x) )



There is not one thing that is in the back of the display case, and a cat 

  • -Ǝx (P(x) ⋀ -C(x))


45
New cards

A sentence that can be paraphrased as “no F is G” can be symbolized as Ǝx (F(x) ∧ G(x)) and also ∀x (F(x) → -G(x) )

46
New cards

P(x): ____x is in the display case 

B(x): ____x is in the back if the store 

D(x): ____x is a dog 

C(x): ____x is a cat 

Only cats are in the back of the store

For everything if it's in the back of the store, it is a cat


  • ∀x(B(x)→ C(x))



There is no thing that is in the back of the store its a non cat 

No thing in the back of the store is not a cat 


-Ǝx(B(x) ∧ -C(x))


47
New cards

When Ǝx is negated it means there's NO thing

 Ǝx- at least one thing 

 -Ǝx- no thing 

48
New cards

A sentence that can be paraphrased as “only Fs are Gs” can be symbolized as -Ǝx(G(x) ∧-F(x)) and also as ∀x(G(x)→ F(x))

49
New cards

P(x): ____x is in the display case 

B(x): ____x is in the back if the store 

D(x): ____x is a dog 

C(x): ____x is a cat 

Some animal in the display case is not a dog 

Some animal is in the display case, and is not a dog 


  • Ǝx(P(x) -D(x))



Not every animal, if in the display case is a dog 


  • -∀x(P(x)→ D(x))

50
New cards

A sentence that can be paraphrased as “some Fs are not Gs” can be symbolized as Ǝx (F(x) ∧-G(x)) and also -∀x(F(x)→G(x)).

All Fs are Gs - different than only Fs are Gs

51
New cards

Empty predicate 

A(x):____x is an ape

D(x):---______x will make the dean’s list 

All apes will make the dean’s list 


∀x (A(x)→D(x))

  • For everything x, if it's an ape it makes the dean’s list 



  • It is true because there are no apes, so it is possible that they can make the dean's list 

  • Vacuously true, because one of the premises are not true 

52
New cards

When F is an empty predicate, (doesn’t have a name) any sentence ∀x (F(x)→….) is vacuously true. 

Therefore, ∀x (A(x)→D(x)) does not entail Ǝx (A(x) D(x))


For everything that's an ape, it will make the dean's list, does not entail  at least one thing is an ape and has made the dean's list. 



Counterintuitive to have empty predicates 

53
New cards

A(s)→D(s)

  • Conditional with blank- true for every single x no matter what name you stick in it 

  • If it will always be true 

Conditional/consequent has to be false and antecedent is true 

  • Antecedent  is always false bc its vacuous



54
New cards

Domain: Rutgers students 


A(x):____x is an ape

D(x):---______x will make the dean’s list 




All apes will make the dean’s list


No matter who you put antecedent will always be false- so conditional/overall sentence is true 


If jay is an ape, then jay is on the dean's list 


It is false that jay is an ape, so the conditional is true 


  • The conditional is always true when antecedent is false 





When F is an empty predicate 

Any form where F comes after universal will be vacuously true 

55
New cards

The Scope of Quantifiers 
Domain: all people 

S(x):_____x is suffering 

p: Peter

m: Mary 


∀x S(x) →S(p)

If all people are suffering, then Peter is suffering


Scope is just antecedent 

  • Splits   ∀x S(x) - for all people suffering, and peter suffering 


  • Because he is in the domain

56
New cards

Domain: all people 

S(x):_____x is suffering 

p: Peter

m: Mary 

∀x S(x) →S(p)

If all people are suffering, then Peter is suffering 

If everyone is suffering, Peter is suffering 

  • Scope only connects them, but also splits every person and peter 

57
New cards

Domain: all people 

S(x):_____x is suffering 

p: Peter

m: Mary 

∀x (S(x) →S(p))

Take every single thing in domain- if it is suffering, Peter is suffering 


(If something is suffering, peter is suffering) 


  • If a person is suffering, then peter is suffering (applies to all people/everything in the domain 


Every person such that, If they are suffering Peter is suffering


When you put parentheses around sentence/before quantifier- it's like negation

  • Scope is the entire thing 

58
New cards

When you put parentheses around sentence/before quantifier- it's like negation

  • Scope is the entire thing 

∀x (S(x) →S(p))