11. First-Order Logic 1 Flashcards

1
Q

What is First-Order Logic (FOL)?

A

A logical system that extends propositional logic by introducing objects, properties, relations, and functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does FOL improve upon propositional logic?

A

It allows the representation of objects, properties, and relationships, making it more expressive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four key components of FOL?

A
  1. Objects (individual entities) 2. Properties (distinguishing characteristics) 3. Relations (connections between objects) 4. Functions (mapping inputs to outputs).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an example of an object in FOL?

A

Human1, RR1 (a robot), Sq11 (a square).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an example of a property in FOL?

A

Red(RR1) (RR1 is red), Robot(RR1) (RR1 is a robot).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an example of a relation in FOL?

A

Same-type(RR1, RB2) (RR1 and RB2 are of the same type).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an example of a function in FOL?

A

Location(RR1, Step0) = Sq11 (At step 0, RR1 is in square 11).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the basic logical connectives in FOL?

A

∧ (AND), ∨ (OR), → (IMPLIES), ¬ (NOT), ⇔ (BICONDITIONAL), = (EQUALITY).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the two types of quantifiers in FOL?

A

Existential quantifier (∃) and Universal quantifier (∀).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the existential quantifier (∃) mean?

A

It states that a property or relation holds for at least one object. Example: ∃x: Square(x) ∧ Unsafe(x) means “There is at least one unsafe square.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the universal quantifier (∀) mean?

A

It states that a property or relation holds for all objects in the domain. Example: ∀x: Robot(x) → HasBattery(x) means “All robots have a battery.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a common mistake when using existential quantifiers?

A

Using implication (→) instead of conjunction (∧). Example: ∃x: Square(x) → Free(x) incorrectly means “There exists an object such that if it is a square, then it is free.” Instead, use ∃x: Square(x) ∧ Free(x).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a common mistake when using universal quantifiers?

A

Using them for absolute statements when context is needed. Example: ∀x: Unsafe(x) incorrectly implies every object in the world is unsafe.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What happens if you switch the order of universal quantifiers?

A

The meaning remains unchanged: ∀x ∀y: P(x, y) ≡ ∀y ∀x: P(x, y).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What happens if you switch the order of existential quantifiers?

A

The meaning remains unchanged: ∃x ∃y: P(x, y) ≡ ∃y ∃x: P(x, y).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What happens if you switch the order of a universal and existential quantifier?

A

It changes the meaning. ∀x ∃y: Loves(x, y) means “Everyone loves someone,” while ∃y ∀x: Loves(x, y) means “There is someone who is loved by everyone.”

17
Q

How does FOL handle equality?

A

FOL allows explicit equality statements such as x = y or x ≠ y to distinguish objects.

18
Q

How can you translate “Every gardener likes the sun” into FOL?

A

∀x: Gardener(x) → Likes(x, Sun).

19
Q

How can you translate “No purple mushroom is poisonous” into FOL?

A

∀x: (Mushroom(x) ∧ Purple(x)) → ¬Poisonous(x) or ¬∃x: (Mushroom(x) ∧ Purple(x) ∧ Poisonous(x)).

20
Q

How can you express “There are exactly two purple mushrooms” in FOL?

A

∃x ∃y: (Mushroom(x) ∧ Purple(x) ∧ Mushroom(y) ∧ Purple(y) ∧ (x ≠ y)) ∧ ∀z: (Mushroom(z) ∧ Purple(z)) → (z = x ∨ z = y).