1 - Logic Flashcards

1
Q

What is a proposition? What is NOT a proposition?

A

A statement that is true or false.

Questions and commands (“have a nice day”) are NOT propositions

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

True or False: A proposition’s truth value must be known.

A

False. A proposition is still a proposition regardless of whether the truth value is known to be true, known to be false, unknown, or a matter of opinion.
“Monday will be cloudy” and “the movie was funny” = STILL propositions

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

What is a compound proposition?

A

Individual propositions connected by a logical operation (and, or)

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

What is a conjunction operation? When is it true? What symbol is used?

A

p ∧ q = “p and q” = the conjunction of p and q

p ∧ q is true ONLY when both p and q are true

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

What is a disjunction operation? When is it true? What symbol is used?

A

p ∨ q = “p or q” = disjunction of p and q

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
6
Q

What is this: p ⊕ q? When is it true?

A

Exclusive or - true ONLY when one proposition is true and the other proposition is false

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

What is negation? What is its symbol?

A

negation operation reverses the truth value of the proposition
¬p = “not p”

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

What is the order of operations for compound propositions?

A

Parentheses first, then “NAO” =
Not
And
Or

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

How many rows in a truth table? How do you choose which truth values go where for the initial variables?

A

for n variables, 2 to the n rows. 3 variables = 8 rows.
First column: half T, half F
Second column: 1/4 T, 1/4 F, 1/4 T, 1/4 F
…last column: T F T F T F…

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

What is the rule w/ symbol ∧ ?

A
“∧” = and = ONE F = F
lambda = lANDa
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the rule w/ symbol ∨ ?

A

“∨” = or = ONE T = T

vOR

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

What is the converse of p → q ?

A

q → p

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

What is the inverse of p → q ?

A

¬p → ¬q

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

What is the contrapositive of p → q ?

A

¬q → ¬p

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

When is p → q False?

A

p → q is false ONLY when p=T and q=F
T → F is FALSE
otherwise, TRUE!

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

When is p ↔ q true?

A

When p and q have the same truth value

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

What are some other ways to say “p if and only if q” in English?

A

“p is necessary and sufficient for q”
“if p then q, and conversely”
“p IFF q”

18
Q

What is order of operations with conditional, biconditional and logical operations?

A

NAO, then → or ↔

19
Q

What does ‘p is sufficient for q’ mean?

A

p → q

if p, then q

20
Q

What does ‘mars is necessary for jupiter’ mean?

A

jupiter → mars

if jupiter, then mars

21
Q

“a necessary condition for PURPLE is BLUE” - which way does the implication go?

A

PURPLE → BLUE

22
Q

“RED unless ¬YELLOW” - implication?

A

YELLOW → RED

23
Q

Describe what ‘p only if q’ means.

A

p cannot be true if q is not true
p → q
p implies q, q is necessary for p

24
Q

Tautology

A

A compound proposition that’s ALWAYS TRUE

p ∨ ¬p

25
Contradiction
A compound proposition that’s ALWAYS FALSE | p ∧ ¬p
26
Logical equivalence
They have the SAME truth values – doesn’t matter what individual propositions’ truth values are. p ≡ ¬¬p
27
¬(p ∨ q) ≡ ???
¬p ∧ ¬q
28
¬(p ∧ q) ≡ ???
¬p ∨ ¬q
29
p → q ≡ ???
¬p ∨ q
30
p ∧ ( q ∨ r ) ≡ ???
( p ∧ q ) ∨ ( p ∧ r )
31
p ↔ q ≡
( p → q ) ∧ ( q → p )
32
How do you turn a predicate P(x) into a proposition?
Bind the variable using quantifiers or assign a value to x
33
True or False: If P(x) is true for all values in its domain, it's a proposition?
False. It has a FREE variable.
34
Order of operations, including quantifiers
∀ and ∃ ¬, ∧, ∨ ('NAO') →, ↔
35
¬∀x ∀y P(x, y) ≡ ???
¬∀x ∀y P(x, y) ∃x ¬∀y P(x, y) ∃x ∃y ¬P(x, y)
36
Describe the nested quantifiers as loops: | ∀x∀y P(x, y)
Loop thru EVERY value of x, | then for EACH value of x, loop thru EVERY value of y
37
Describe the nested quantifiers as loops: | ∀x∃y P(x, y)
We loop through EVERY value of x. | For each x, we loop through the values for y until we find a y for which P(x, y) is true.
38
Describe the nested quantifiers as loops: | ∃x∀y P(x, y)
We loop through the values for x until we find an x for which P(x, y) is always true when we loop through all values for y For example, x=3, P(x,y) must be true for y=1, y=2, y=3,... all y! There exists an x for which EVERY last y, makes P(x,y) TRUE. MUST be TRUE for ALL y's and that ONE x.
39
``` If M(x,y) = x sent an email to y How do you write 'every person sent an email to everyone ELSE (not including himself or herself)'? ```
∀x ∀y ( (x ≠ y) → M(x, y))
40
``` If M(x,y) = x sent an email to y How do you write 'every person sent an email to someone else'? ```
∀x ∃y ((x ≠ y) ∧ M(x, y))
41
L(x) = x was late to the meeting | How do you write 'there was ONLY ONE x that was late to the meeting'?
There exists an x that was late to the meeting: ∃x L(x) AND for ALL others, IF they are not x, THEN they were not late: ∃x L(x) ∧ ∀y ( (y ≠ x) → ¬L(y) )