ECM 1415 Predicate Logic & Rules of Inference Flashcards

1
Q

What is predicate logic?

A

a generalization of propositional logic

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

What is a predicate?

A

a proposition that can store variables in a scope

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

What 3 features does predicate logic include?

A

Predicates
Quantifiers
Variables

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

What does the Universal Quantifier, ∀x, do?

A

asserts P(x) is true for every x in the domain

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

What does the Existential Quantifier, ∃x, do?

A

asserts P(x) is true for some x in the domain

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

The domain is often denoted by U for universe of discourse
Example (Quantifier)
If P(x) denotes “x is even” and the U the integers, then…

A
  • ∀x. P(x) is false
  • ∃x. P(x) is true
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Nested Quantifier example
“Every real number has an inverse” is

A

∀x ∃y. (x + y = 0)

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

Laws for Quantifiers:

A

¬(∀x. P(x)) _= ∃x. ¬P(x)
¬(∃x. P(x)) _= ∀x. ¬P(x)
Example
Not “There is a student in your class who has taken a course in Java” means “Every student in your class has not taken Java”

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

Modus Ponens

A

P -> q
p
———
Therefore q

Corresponding tautology
(p /\ (p -> q)) -> q

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

Modus Tollens

A

P -> q
¬q
———
Therefore ¬p

Corresponding tautology
(¬q /\ (p -> q)) -> ¬p

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

Hypothetical Syllogism

A

P -> q
q -> r
———
Therefore p -> r

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

Disjunctive Syllogism

A

P \/ q
¬p
———
therefore q

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

Addition

A

p
Therefore p \/ q

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

Simplification

A

p /\ q
Therefore p

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

Resolution

A

¬p \/ r
p \/ q
———
Therefore q \/ r

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

Conjunction

A

P
q
———
Therefore p /\ q