Propositional Logic Flashcards

1
Q

How to construct truth table?

A
  1. Create table with 2^n rows with n columns
  2. Fill in the first n columns with all the possible combinations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Disjunction?
p ∨ q

A

p ∨ q is True
when
BOTH p AND q are False

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

What is Conjunction?
p ∧ q

A

p ∧ q is True
when
BOTH p AND q are True

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

What is Negation?
¬p

A

¬p is not p

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

p → q

A

If p, then q

E.g.
p (T) , q (T) then p → q (T)
p (T) , q (F) then p → q (F)
p (F) , q (ANY) then p → q (T)

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

What is XOR (Exclusive-OR)
p ⊕ q

A

p ⊕ q is True
when
EITHER p OR q is true

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

p ↔ q

A

p if and only q
p → q AND q → p

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

p ≡ q

A

p and q have same truth value

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

Let p,q be propositions
A be conditional statement,
p → q

What is the converse of A?

A

q → p

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

Let p,q be propositions
A be conditional statement,
p → q

What is the contrapositive of A?

A

¬q → p

Contrapositive:
Negate second, then Negate first
(basically negate both then change position)

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

Let p,q be propositions
A be conditional statement,
p → q

What is the inverse of A?

A

¬p → ¬q

Inverse:
Just negate both. Don’t switch position.

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