Logic Flashcards

1
Q

What is a predicate?

A

A predicate is a sentence that contains finitely many variables and becomes a statement if the variables are each assigned a value.

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

What word defines the list of all possible values that may be assigned to each variable (in a predicate)

A

Domain

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

True or false? The following is a predicate

“Is x and integer”

A

False.

When something is put into x, it will become a question, not a statement

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

What is the meaning of a truth set of a predicate

A

The truth set, P(x), is the set of all values in the domain, that when assigned to x, will make P(x) true.

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

What does ℤ mean?

A

It defines the list of all posible integers

It is a common domain

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

What does ℤ+ mean?

A

It defines the list of all posible positive integers

It is a common domain

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

What does ℤnonneg mean?

A

It defines the list of all posible integers that are not negative including zero

It is a common domain

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

What does ℕ mean?

A

The list of all natural numbers which means numbers that are greater or equal to 1

It is a common domain

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

What does ℚ mean?

A

The list of all rational numbers. Meaning numbers that divide into an integer

It is a common domain

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

What does ℝ mean?

A

The list of all real numbers

It is a common domain

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

True or false?

Predicates can be written as follows: P(x,y) = x is a student at y

A

True

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

What does the symbol ∀ mean and what is it called?

A

The universal quantifier and it means “for all”

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

When is the statement ∀ xD, Q(x) true?

A

If and only if, Q(x) is true for each individual x in D

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

When is the statement ∀ xD, Q(x) false?

A

If and only if, Q(x) is false for at least one x in D

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

Let D = {1, 2, 3, 4, 5}, and consider the statement

x ∈ D, x2x
Write one way to write this sentence in full english

(no symbols)

A

“For every x in the set D, x2 is greater than or equal to x.
This statement is true

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

Consider the statement

x ∈ R, x2 ≥ x
Find a counterexample to show that this statement is false

A

x=1/2

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

What is the method of exhaustion?

A

It is when you try proving the truth of a predicate for each and every individual element of a domain

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

What the does symbol ∃ define and what is it called?

A

It denotes “there exists” and is called the existential quantifier

21
Q

When is the statement ∃ xD, Q(x) true?

A

If and only if, Q(x) is true for at least one x in D

22
Q

Rewrite the following formal statement sin a variety of equivalent but more informal ways.
a. ∀ x ∈ ℝ, x2 ≥ 0
b. ∀ x ∈ ℝ, x2 -1 ≠ 0
c. ∃m ∈ ℤ+ such that x2 = m

(Do note use the the symbol ∃ or ∀)

23
Q

What is meant by a quantifier ‘trailing’ a statement

A

Instead of writing with a quantifer at the start of the sentence (“For any real number x, x2 is nonnegative”), the quanitfer is changed to the end of the sentence (“x2 is nonnegtaive for any real number x)

25
26
27
Rewrite the folowing statement in the form ∀\_\_\_, if \_\_\_ then \_\_\_. "If a real number is an integer, then it is a rational number"
28
Given a statement, "All bytes have eight bits", is it mathmatically correct to translate it to ∀x, if x is a bute, then x has eight bits (emitting the identification of the domain)
Yes this is mathmatically correct
29
# True or false? In a universal condition statement (∀\_\_\_, if p then q.), if you know that the hypothesis (p) is false, you must still interpret it as true
True
30
How would you define a prime number in english?
An integer that is greater than 1 whose only positive integer factors are itself and 1.
31
# True or false? The statement "The number 24 can be written as a sum of two even integers" is a existential quantification
True as it can be expressed formally as "**∃** even integers, m and n, such that 24 = m+n"
32
# What is the negation of the following statement?
Reverse the quantifer and negate Q(x)
33
# What is the negation of the following statement?
Reverse the quantifer and negate Q(x)
34
# Write formal negations for the following statements: a) ∀ primes p, p is odd b) ∃ a triangle T such that the sum of all the angles of T equals 200°
a) ∃ a prime p, such that p is not odd b) ∀ triangles T, the sum of all the angles of T do not equal 200°
35
# Write the negation for the following statement: ∀ people p, if p is blonde then p has blue eyes
∃ a person p, such that p is blonde and p does not have blue eyes
36
# True or false? ∀ is just a generalisation of an 'and' statement
True
37
# True or false? ∃ is just a generalisation of an 'or' statement
True
38
# True or false? Consider the statement: ∀ x in D, if P(x) then Q(x) If P(x) is false for all x in D, then statement is by default, true.
True. This is shown by the nature of if statements (if p is false, the statement will automatically/vacuously true)
39
# True or false? The rules of conditional statements (contrapositive, inverse and converse) also apply to universal conditional statements | (∀ x in C, if p then q)
True
40
# Write the formal contrapositive, converse and inverse of the following: If a real number is greater than 2, then its square is greater than 4.
Original formal: ∀ x ∈ ℝ, if x>2 then x2>4 Contrapositive: ∀ x ∈ ℝ, if x2≤4 then x≤2 Converse: ∀ x ∈ ℝ, if x2>4 then x>2 Inverse: ∀ x ∈ ℝ, if x≤2 then x2≤4
41
42
43
The reciprocal of a real number, a, is a real number, b, such that ab = 1. The following statement is true. Rewrite it formally using quantifiers and variables: "Every nonzero real number has a reciprocal"
∀ nonzero real numbers, u, ∃ a real number v such that uv=1 **or** ∀ u ∈ ℝnonzero, ∃ v ∈ ℝ such that uv=1
44
The reciprocal of a real number, a, is a real number, b, such that ab = 1. The following statement is true. Rewrite it formally using quantifiers and variables: "There is a real number with no reciprocal"
∃ a real number, u, such that ∀ real numbers, v uv=1 **or** ∃ u ∈ ℝ such that ∀ v ∈ ℝ uv=1
45
# Consider the statemnet "There is a smallest positive integer" Write this statement formally using both ∃ and ∀
∀ m ∈ ℤ+, ∃ n ∈ ℤ+ such that n ≤ m ## Footnote Given two integers, n and m. There exists a postive integer (n) that is always less than or equal all the other integers (m)
46
# Consider the statemnet "There is no smallest positive real number" Write this statement formally using both ∃ and ∀
∀ m ∈ ℝ+, ∃ n ∈ ℝ+ such that m > n ## Footnote Given two integers, n and m. There exists a postive integer (n) that is always less than or equal all the other integers (m)
47
# True or false? With negations of statements with more than one qualifier, you can apply the same rules as one qualifier
True
48
# True or false? You can never change the order of quanitifiers
False. It is true that when there are different quanitifers in a statement, changing their order will change the meaning but if there are two of the same quantifiers, chaning the order does not matter.