While walking through a fictional forest, you encounter three trolls guarding a bridge. Each is either a knight, who always tells the truth, or a knave, who always lies. The trolls will not let you pass until you correctly identify each as either a knight or a knave. Each troll makes a single statement:
Troll 1: If I am a knave, then there are exactly two knights here.
Troll 2: Troll 1 is lying.
Troll 3: Either we are all knaves or at least one of us is a knight.
Which troll is which?
Checkpoint1.1.1.
Spend a few minutes thinking about the Investigate problem above. What could you conclude if you knew Troll 1 really was a knave (i.e., their statement was false)? Share your initial thoughts on this.
In order to do mathematics, we must be able to talk and write about mathematics. Perhaps your experience with mathematics so far has mostly involved finding numerical answers to problems. As we embark towards more advanced and abstract mathematics, writing will play a more prominent role in the mathematical process.
In fact, the primary goal of mathematics, as an academic discipline in its own right, is to establish general mathematical truths. How can we know whether these facts, perhaps called theorems or propositions, are true? We construct valid arguments, called proofs, which establish the truth of the statements. Here, an argument is not the sort of thing you have with your Mom when you disagree about what to have for dinner. Rather, we have a technical definition of the term.
Definition1.1.2.Argument.
An argument is a sequence of statements, the last of which is called the conclusion and the rest of which are called premises.
An argument is said to be valid provided the conclusion must be true whenever the premises are all true. An argument is invalid if it is not valid; that is, it is possible for all the premises to be true and the conclusion to be false.
An argument is sound provided it is valid and all the premises are true. A proof of a statement is a sound argument whose conclusion is the statement.
So to determine whether we have a proof of a statement, we must decide both whether the sequence of premises are each true, and whether the argument is valid: whether the conclusion follows from the premises. How can we do this?
Example1.1.3.
Consider the following two arguments:
If Edith eats her vegetables, then she can have a cookie.
Edith eats her vegetables.
\(\therefore\)
Edith gets a cookie.
Florence must eat her vegetables in order to get a cookie.
Florence eats her vegetables.
\(\therefore\)
Florence gets a cookie.
(The symbol “\(\therefore\)” means “therefore”)
Are these arguments valid?
Solution.
Hopefully you agree that the first argument is valid but the second argument is not. We will develop a better understanding of the logic involved in this analysis, but if your intuition agrees with this assessment, then you are in good shape.
Notice the two arguments look almost identical. Edith and Florence both eat their vegetables. In both cases there is a connection between the eating of vegetables and cookies. But we claim that it is valid to conclude that Edith gets a cookie, but not that Florence does. The difference must be in the connection between eating vegetables and getting cookies. We need to be skilled at reading and comprehending these sentences. Do the two sentences mean the same thing?
Unfortunately, in everyday language we are often sloppy, and you might be tempted to say they are equivalent. But notice that just because Florence must eat her vegetables, we have not said that doing so would be enough (she might also need to clean her room, for example). In everyday (non-mathematical) practice, you might be tempted to say this “other direction” is implied. In mathematics, we never get that luxury.
Remark1.1.4.
The arguments in the example above illustrate another important point: even if you don’t care about the advancement of human knowledge in the field of mathematics, becoming skilled at analyzing arguments is useful. And even if you don’t want to give your grandmother a cookie. If you are using mathematics to solve problems in some other discipline, it is still necessary to demonstrate that your solution is correct. You better have a good argument that it is!
Since arguments are built up of statements, we should try to understand what a statement is.
Definition1.1.5.
A statement is a declarative sentence that is either true or false.
Notice that if the sentences in an argument were not able to be true or false, there would be no way to determine whether the argument was valid, since that describes a relationship between the truth values of the premises and conclusions.
The goal of this section is to explore the different “shapes” a statement can take. We will see that more complicated statements can be built up from simpler ones, entirely in ways that determine their truth value based on the truth values of their parts.
Objectives
After completing this section, you should be able to do the following.
Identify the logical structure of statements to determine their truth value in terms of the truth values of their parts.
Explain the conditions under which an implication is true.
Identify statements as equivalent to a given implication or its converse.
Before reading on to the main content of the section, complete this preview activity to start thinking about the types of questions this section will address.
1.
Which of the following sentences should count as statements? That is, for which of the sentences below, could you potentially claim the sentence was either true or false? Select all that apply.
The sum of the first 100 positive integers.
This is not a statement. It is not even a complete sentence (there is no verb).
What is the sum of the first 100 positive integers?
This is a question. It is not a statement.
The sum of the first 100 positive integers is 5050.
This is a statement. It is either true or false (it happens to be true).
Is the sum of the first 100 positive integers 5050?
This is a question. The answer happens to be “yes”, but that is not the same as saying “true”. Questions are never statements.
The sum of the first 100 positive integers is 17.
This is clearly false. But since it is false, it is a statement!
2.
Consider the statement, “If I see a movie, then I eat popcorn” (which happens to be true). Based solely on your intuition of English, which of the following statements mean the same thing? Select all that apply.
If I eat popcorn, then I see a movie.
This is not equivalent to the original statement. Maybe I also eat popcorn when I watch TV? In that case, the original statement would be true, but this one would be false.
If I don’t eat popcorn, then I don’t see a movie.
Correct.
It is necessary that I eat popcorn when I see a movie.
This is equivalent to the original statement (although here “necessary” is used in a logical sense).
To see a movie, it is sufficient for me to eat popcorn.
Just because I eat popcorn, doesn’t mean I see a movie. I might eat popcorn in other situations. So this is not equivalent to the original statement.
I only watch a movie if I eat popcorn.
Another way of saying this is, “I watch a movie only if I eat popcorn.” This is equivalent to the original statement.
3.
Suppose that your shady uncle offers you the following deal: If you loan him your car, then he will bring you tacos. In which of the following situations would it be fair to say that your uncle is a liar (i.e., that his statement was false)? Select all that apply.
You loan him your car. He brings you tacos.
You loan him your car. He never buys you tacos.
You don’t loan him your car. He still brings you tacos.
Maybe he just really likes giving you tacos. That’s not enough to say he was a liar, is it?
You don’t loan him your car. He never brings you tacos.
SubsectionAtomic and Molecular Statements
A statement is any declarative sentence which is either true or false. A statement is atomic if it cannot be divided into smaller statements, otherwise it is called molecular.
Example1.1.6.
These are statements (in fact, atomic statements):
Telephone numbers in the USA have 10 digits.
The moon is made of cheese.
42 is a perfect square.
Every even number greater than 2 can be expressed as the sum of two primes.
\(\displaystyle 3+7 = 12\)
And these are not statements:
Would you like some cake?
The sum of two squares.
\(1+3+5+7+\cdots+2n+1\text{.}\)
Go to your room!
\(\displaystyle 3+x = 12\)
The reason the sentence “\(3 + x = 12\)” is not a statement is that it contains a variable. Depending on what \(x\) is, the sentence is either true or false, but right now it is neither. One way to make the sentence into a statement is to specify the value of the variable in some way. This could be done by specifying a specific substitution, for example, “\(3+x = 12\) where \(x = 9\text{,}\)” which is a true statement. Or you could capture the free variable by quantifying over it, as in, “for all values of \(x\text{,}\)\(3+x = 12\text{,}\)” which is false. We will discuss quantifiers in more detail in Subsection .
You can build more complicated (molecular) statements out of simpler (atomic or molecular) ones using logical connectives. For example, this is a molecular statement:
Telephone numbers in the USA have 10 digits and 42 is a perfect square.
Note that we can break this down into two smaller statements. The two shorter statements are connected by an “and.” We will consider 5 connectives: “and” (Sam is a man and Chris is a woman), “or” (Sam is a man or Chris is a woman), “if…, then…” (if Sam is a man, then Chris is a woman), “if and only if” (Sam is a man if and only if Chris is a woman), and “not” (Sam is not a man). The first four are called binary connectives (because they connect two statements) while “not” is an example of a unary connective (since it applies to a single statement).
These molecular statements are of course still statements, so they must be either true or false. The absolutely key observation here is that which truth value the molecular statement achieves is completely determined by the type of connective and the truth values of the parts. We do not need to know what the parts actually say, only whether those parts are true or false. So to analyze logical connectives, it is enough to consider propositional variables (sometimes called sentential variables), usually capital letters in the middle of the alphabet: \(P, Q, R, S, \ldots\text{.}\) We think of these as standing in for (usually atomic) statements, but there are only two values the variables can achieve: true or false. 1
In computer programming, we should call such variables Boolean variables.
We also have symbols for the logical connectives: \(\wedge\text{,}\)\(\vee\text{,}\)\(\imp\text{,}\)\(\iff\text{,}\)\(\neg\text{.}\)
Definition1.1.7.Logical Connectives.
We define the following logical connectives.
\(P \wedge Q\) is read “\(P\) and \(Q\text{,}\)” and called a conjunction.
\(P \vee Q\) is read “\(P\) or \(Q\text{,}\)” and called a disjunction.
\(P \imp Q\) is read “if \(P\) then \(Q\text{,}\)” and called an implication or conditional.
\(P \iff Q\) is read “\(P\) if and only if \(Q\text{,}\)” and called a biconditional.
\(\neg P\) is read “not \(P\text{,}\)” and called a negation.
The truth value of a statement is determined by the truth value(s) of its part(s), depending on the connectives:
Definition1.1.8.Truth Conditions for Connectives.
The truth conditions for the logical connectives are defined as follows.
\(P \wedge Q\) is true when both \(P\) and \(Q\) are true.
\(P \vee Q\) is true when \(P\) or \(Q\) or both are true.
\(P \imp Q\) is true when \(P\) is false or \(Q\) is true or both.
\(P \iff Q\) is true when \(P\) and \(Q\) are both true, or both false.
\(\neg P\) is true when \(P\) is false.
Each of the above definitions can be represented in a table, called a truth table. We simply list what the truth value of the statement is for each possible combination of truth values of the parts.
\(P\)
\(Q\)
\(P\wedge Q\)
T
T
T
T
F
F
F
T
F
F
F
F
\(P\)
\(Q\)
\(P\vee Q\)
T
T
T
T
F
T
F
T
T
F
F
F
\(P\)
\(Q\)
\(P\imp Q\)
T
T
T
T
F
F
F
T
T
F
F
T
\(P\)
\(Q\)
\(P\iff Q\)
T
T
T
T
F
F
F
T
F
F
F
T
\(P\)
\(\neg P\)
T
F
F
T
Figure1.1.9.Truth tables for logical connectives
For example, we can use the truth table for \(P \imp Q\) to decide whether the statement, “if 5 is even, then 6 is even,” is true or false. Here \(P\) is the statement “5 is even” and \(Q\) is the statement “6 is even.” Since 5 is not even, the statement \(P\) is false. Since 6 is even, the statement \(Q\) is true. The truth table tells us that the statement \(P \imp Q\) is true when \(P\) is false and \(Q\) is true (the 3rd row). So the statement “if 5 is even, then 6 is even” is true. (If you don’t like that the statement is true, hold on to that thought and we will hopefully resolve it soon.)
Note that for us, or is the inclusive or (and not the sometimes used exclusive or) meaning that \(P \vee Q\) is in fact true when both \(P\) and \(Q\) are true. As for the other connectives, “and” behaves as you would expect, as does negation. The biconditional (if and only if) might seem a little strange, but you should think of this as saying the two parts of the statements are equivalent in that they have the same truth value.
This leaves only the conditional \(P \imp Q\) which has a slightly different meaning in mathematics than it does in ordinary usage. However, implications are so common and useful in mathematics, that we must develop fluency with their use, and as such, they will get a whole section to themselves (Section 1.2).
Example1.1.10.
Using the truth conditions for the logical connectives, determine which of the following statements are true and which are false.
17 is prime and 17 is odd.
17 is prime and 18 is prime.
17 is prime or 18 is prime.
17 is prime or 19 prime.
If 17 is prime, then 19 is prime.
If 18 is prime, then my favorite number is 17.
17 is prime if and only if 19 is prime.
17 is not prime if and only if 19 is not prime.
Solution.
First, let’s agree on some facts: 17 really is prime and odd, 18 is not either, and 19 is prime.
True. Both parts of the and statement are true, so the entire statement is true.
False. The first part is true, but the second part is false, so the entire statement is false.
True. The first part is true, so the entire statement is true. In fact, as soon as we see one true statement in an “or” statement, we can stop checking and declare the entire statement true.
True. Since we use the inclusive or, the statement is true when both parts are true.
True. Don’t be worried that there isn’t a good reason that 17 being prime causes 19 to be prime. That is not what we mean by a conditional statement. Since the “then” part is true, we know that the statement overall is true.
True. The “if” part of the statement is false. That’s all we need. I bet you don’t even know what my favorite number is, and you don’t need to. The statement is true.
True. Do both parts have the same truth value? Yes, since they are both true. So the entire statement is true.
True as well. Now both parts are false (since both are the negation of a true statement), so the entire statement is true.
The way we define logical connectives and their truth value is very precise and technical. Often, language is not. Part of learning how to communicate mathematics is learning the cultural norms of mathematical language and how to translate statements in ordinary language into these technical statements. This will get easier with practice, so make sure you are talking to lots of people about the math you are studying.
Here are a few examples of how ordinary language might be difficult to translate.
Example1.1.11.
Identify the logical structure of each of the following statements.
4 and 5 are both prime.
Only one of 4 or 5 is prime.
You must attend every day and do the homework to pass this class.
Every number is even or odd.
Solution.
Do you agree this is the same statement as “4 is prime and 5 is prime”? Notice that it would not make sense to write this as \(P \wedge Q\) where \(P\) is “4” and \(Q\) is “5 is prime”. But if we let \(P\) be the statement “4 is prime,” then both parts of the conjunction are statements.
Again, we can’t just put what is on one side of the “or” as a statement. But if we let \(P\) be “4 is prime” and \(Q\) be “5 is prime,”, then we can write this as \((P \vee Q) \wedge \neg (P \wedge Q)\text{.}\) That is, either 4 is prime or 5 is prime, and it is not the case that both 4 is prime and 5 is prime.
Here is another way you could phrase the same statement: If you pass the class, then it must be the case that you attended every day and that you did the homework. If we agree that this is just a clearer way to state the original statement, then we could illustrate its structure as \(P \imp (Q \vee R)\text{.}\)
Notice that this is not the same as saying “every number is even or every number is odd.” Of course, saying that, “3 is even or odd” is the same as saying “3 is even or 3 is odd.” Language is confusing!
In fact, we don’t yet have the logical technology to translate this statement as anything more than \(P\text{,}\) where \(P\) is the statement “every number is even or odd.” Luckily, that technology is available, starting... now!
SubsectionQuantifiers and Predicates
Did you know that all mammals have hair? That every integer is even or odd? That some odd numbers are not prime?
Our goal is to explore how to write statements such as these in mathematical notation to highlight the logical structure of the statements.
This will require considering a new sort of basic sentence called a predicate, which is like a statement, but contains a free variable. When you replace that variable with a constant of some sort, then the sentence becomes a statement proper. Think of a predicate as making a claim about the values that are substituted for the “placeholder” variable(s).
A predicate can be made into a true or false statement by evaluating it at some constant(s), or we can make a claim about whether some or all possible constants would make the the resulting statement true or false. This is done using quantifiers, of which we will only consider two.
Definition1.1.12.Quantifiers.
The universal quantifier is written \(\forall\) and is read, “for all.”
The existential quantifier is written \(\exists\) and is read, “there exists” or “for some.”
We usually write predicates similar to how you write a function, although use capital letters. For example, we might use the predicate \(P(x)\) to represent “\(x\) is prime”. We can then say that \(P(7)\) is true (since 7 is prime) and that \(P(8)\) is false. Or using quantifiers, we can (falsely) claim that all numbers are prime by writing \(\forall x P(x)\) or (truthfully) claim that there is at least one prime number, by writing \(\exists x P(x)\text{.}\)
Example1.1.13.
Translate the statement “Every number is even or odd” into symbols.
Solution.
Before we even start using symbols, it is helpful to rephrase this in a way that captures the logical structure of the statement. What is the claim really saying? Given any number, it will either be the case that the number is even, or that the number is odd. In particular, we are not claiming that either all numbers are even or all numbers are odd.
Let’s use \(E(x)\) to say that \(x\) is even, and \(O(x)\) to say that \(x\) is odd. Then we can write,
\begin{equation*}
E(x) \vee O(x)
\end{equation*}
to say that \(x\) is even or \(x\) is odd. Which \(x\) is that true for (according to the claim)? All of them. So we write the statement as,
\begin{equation*}
\forall x (O(x) \vee E(x))\text{.}
\end{equation*}
We added some parentheses to make it very clear that the scope of the universal quantifier includes both predicates.
Note that if we incorrectly interpreted the statement as claiming that either all numbers are even or all numbers are odd, we could write that as \(\forall x O(x) \vee \forall x E(x)\text{.}\) This is not the same!
Just like we did for propositional logic and the logical connectives, we should decide what it means for a quantified predicate statement to be true or false. Basically, we say \(\forall x P(x)\) is true if \(P(a)\) is true no matter what constant \(a\) we substitute for \(x\text{.}\) And similarly, \(\exists x P(x)\) is true if there is at least one value \(a\) for which \(P(a)\) is true.
However, we must be careful here. Consider the statement
\begin{equation*}
\forall x \exists y (y \lt x)\text{.}
\end{equation*}
You would read this, “for every \(x\) there is some \(y\) such that \(y\) is less than \(x\text{.}\)” Note that \(\lt\) is a predicate with two free variables, we have chosen to write it with the symbol between the variables instead of the funky-looking \(L(y,x)\) or \(\lt(y,x)\text{.}\)
Is this statement true? The answer depends on what our domain of discourse is: when we say “for all” \(x\text{,}\) do we mean all positive integers or all real numbers or all elements of some other set? Usually this information is implied by the context of the statement. In discrete mathematics, we almost always quantify over the natural numbers, \(0, 1, 2,\ldots \text{,}\) so let’s take that for our domain of discourse here.
For the statement to be true, we need it to be the case that no matter what natural number we select, there is always some natural number that is strictly smaller. Perhaps we could let \(y\) be \(x-1\text{?}\) But here is the problem: what if \(x = 0\text{?}\) Then \(y = -1\) and that is not a number! (in our domain of discourse). Thus we see that the statement is false because there is a number which is less than or equal to all other numbers. We could say this using symbols as,
\begin{equation*}
\exists x \forall y (y \ge x)\text{.}
\end{equation*}
We will explore some rules for working with quantifiers and other connectives in Section 1.3. For now, we will focus on the task of translating between informal statements in ordinary language and the more precise language of logic. There is no perfect algorithm for doing this translation, but here are a few useful rules of thumb.
Every blank is blank.
Any statement of the form, “every \(P\)-thing is a \(Q\)-thing” can be written as,
Example: all mammals have hair, becomes \(\forall x (M(x) \imp H(x))\text{,}\) where \(M(x)\) means \(x\) is a mammal, and \(H(x)\) means \(x\) has hair.
To make sense of this, think about what we mean by statements like these in terms of sets. We are really claiming that the set of mammals is contained in, or is a subset of, the set of hairy things. What we mean by “\(A\) is a subset of \(B\)” is precisely that every element of \(x\) is an element of \(y\text{.}\) This can also be expressed by saying that if \(x\) is an element of \(A\text{,}\) then \(x\) is also an element of \(B\text{.}\)
Some blanks are blank.
Any statement of the form “Some \(P\)-things are \(Q\)-things” can be written as
\begin{equation*}
\exists x (P(x) \wedge Q(x))\text{.}
\end{equation*}
Example: Some cats can swim, becomes \(\exists x (C(x) \wedge S(x))\text{,}\) where \(C(x)\) means \(x\) is a cat, and \(S(x)\) means \(x\) can swim.
Again, it is helpful to think of how to express such statements in terms of sets. To say that some cats can swim is to say that there are things that belong both to the set of cats and to the set of swimming things. Such animals belong to the intersection of these two sets, which you can describe as belonging to the first set and the second set. Existential statements of this form are really claiming that the intersection of the two sets is not empty.
Implicit Quantifiers.
It is always a good idea to be precise in mathematics. Sometimes though, we can relax a little bit, as long as we all agree on a convention. An example of such a convention is to assume that sentences containing predicates with free variables are intended as statements, where the variables are universally quantified.
For example, do you believe that if a shape is a square, then it is a rectangle? But how can that be true if it is not a statement? To be a little more precise, we have two predicates: \(S(x)\) standing for “\(x\) is a square” and \(R(x)\) standing for “\(x\) is a rectangle”. The sentence we are looking at is,
This is neither true nor false, as it is not a statement. But come on! We all know that we meant to consider the statement,
\begin{equation*}
\forall x (S(x) \imp R(x))\text{,}
\end{equation*}
and this is what our convention tells us to consider. We call the resulting statement the universal generalization of the original sentence.
Definition1.1.14.
Given a sentence with free variables, the universal generalization of that sentence is the statement obtained by adding enough universal quantifiers to the beginning of the sentence so that all free variables become bound.
Similarly, we will often be a bit sloppy about the distinction between a predicate and a statement. For example, we might write, let \(P(n)\) be the statement, “\(n\) is prime,” which is technically incorrect. It is implicit that we mean that we are defining \(P(n)\) to be a predicate, which for each \(n\) becomes the statement, \(n\) is prime.
Reading QuestionsReading Questions
1.
What questions do you have after reading this section? Write at least one question about the content of this section that you are curious about.
ExercisesPractice Problems
1.
For each sentence below, decide whether it is an atomic statement, a molecular statement, or not a statement at all.
Eat your vegetables!
Sally ate her vegetables.
Sally ate her vegetables and got a cookie.
2.
Classify each of the sentences below as an atomic statement, a molecular statement, or not a statement at all. If the statement is molecular, say what kind it is (conjuction, disjunction, conditional, biconditional, negation).
Everybody can be fooled sometimes.
The Broncos will win the Super Bowl or I’ll eat my hat.
If a set contains three elements, then the sum of those elements is at least 6.
Every even number is divisible by 2
Every natural number greater than 1 is either prime or composite.
3.
Determine whether each molecular statement below is true or false, or whether it is impossible to determine. Assume you do not know what my favorite number is (but you do know which numbers are prime).
7 is prime and 16 is not prime
If 7 is not prime, then 7 is my favorite number.
If 16 is my favorite number, then \(16+1\) is my favorite number
16 is prime or 7 is prime
17 is my favorite number and 16 is not prime.
If 16 is not prime, then 16 is my favorite number.
4.
Let \(P(x,y)\) be the predicate, “person \(x\) can be fooled at time \(y\text{.}\)”
Match each statement with it’s representation in symbols.
Some people can be fooled all of the time.
\(\exists x \forall y P(x,y)\)
Everyone can be fooled sometimes.
\(\forall x \exists y P(x,y)\)
It is always true that some people can be fooled.
\(\forall y \exists x P(x,y)\)
Sometimes everyone can be fooled.
\(\exists y \forall x P(x,y)\)
5.
Your friend believes that in fact you cannot fool everyone at the same time. What is another way of saying this, and how would you write that in symbols (using \(P(x,y)\) to say you can fool \(x\) at time \(y\)).
Someone is never fooled. \(\exists x \forall y\neg P(x,y)\)
Everyone is never fooled. \(\forall x \forall y \neg P(x,y)\)
Someone is not fooled sometimes. \(\exists x \exists y \neg P(x,y)\)
Everyone is not fooled sometimes. \(\forall x \exists y \neg P(x,y)\)
6.
Regardless of your beliefs of how many people can be fooled at various times, what could you conclude if we reinterpret \(P(x,y)\) to mean \(x \lt y\) and only quantify over the natural numbers (so \(\forall x\) means “for all natural numbers” and \(\exists x\) means “there exists a natural number”)? Select all of the following that apply.
\(\forall x \exists y P(x,y)\) is true.
\(\exists x \forall y P(x,y)\) is true.
Careful, \(P(x,y)\) means \(x\) is less than \(y\text{,}\) not \(x\) is less than or equal to \(y\text{.}\)
\(\forall y \exists x P(x,y)\) is true.
\(\exists y \forall x P(x,y)\) is true.
No matter what \(P(x,y)\) means, we can conclude that \(\forall x \exists y P(x,y)\) and \(\exists y \forall x\) are NOT logically equivalent
7.
Let \(P(x)\) be the predicate, “\(17x+1\) is even.”
Is \(P(15)\) true or false?
True
False
Neither (not a statement)
What, if anything, can you conclude about \(\exists x P(x)\) from the truth value of \(P(15)\text{?}\)
\(\exists x P(x)\) must be true.
\(\exists x P(x)\) must be false.
\(\exists x P(x)\) could be true or could be false.
What, if anything, can you conclude about \(\forall x P(x)\) from the truth value of \(P(15)\text{?}\)
\(\forall x P(x)\) must be true.
\(\forall x P(x)\) must be false.
\(\forall x P(x)\) could be true or could be false.
Solution.
\(P(15)\) is the statement “\(17\cdot 15 + 1\) is even”, which is true. Thus the statement \(\exists x P(x)\) is true (for example, 15 is such an \(x\)). However, we cannot tell anything about \(\forall x P(x)\) since we do not know the truth value of \(P(x)\) for all elements of the domain of discourse. In this case, \(\forall x P(x)\) happens to be false (since \(P(4)\) is false, for example).
8.
Let \(P(x)\) be the predicate, “\(18x+1\) is even.”
Is \(P(15)\) true or false?
True
False
Neither (not a statement)
What, if anything, can you conclude about \(\exists x P(x)\) from the truth value of \(P(15)\text{?}\)
\(\exists x P(x)\) must be true.
\(\exists x P(x)\) must be false.
\(\exists x P(x)\) could be true or could be false.
What, if anything, can you conclude about \(\forall x P(x)\) from the truth value of \(P(15)\text{?}\)
\(\forall x P(x)\) must be true.
\(\forall x P(x)\) must be false.
\(\forall x P(x)\) could be true or could be false.
Solution.
\(P(15)\) is the statement “\(18\cdot 15 + 1\) is even”, which is false. Thus the statement \(\forall x P(x)\) is false (for example, 15 is a counterexample). However, we cannot tell anything about \(\exists x P(x)\) since we do not know the truth value of \(P(x)\) for other elements of the domain of discourse. In this case, \(\exists x P(x)\) happens to be true (since \(P(1)\) is true, for example).
9.
Consider the sentence, \(\exists x P(x,y) \imp \forall x P(x,y)\text{.}\) What can we say about this sentence? Select all that apply.
The sentence is a statement because it contains quantifiers.
The sentence is not a statement because \(x\) and \(z\) are free variables.
The sentence is not a statement because \(y\) is a free variable.
The universal generalization of the sentence is a statement.
10.
Suppose \(P(x,y)\) is some binary predicate defined on a very small domain of discourse: just the integers 1, 2, 3, and 4. For each of the 16 pairs of these numbers, \(P(x,y)\) is either true or false, according to the following table (\(x\) values are rows, \(y\) values are columns).
1
2
3
4
1
T
F
F
F
2
F
T
T
F
3
T
T
T
T
4
F
F
F
F
For example, \(P(1,3)\) is false, as indicated by the F in the first row, third column.
Use the table to decide whether the following statements are true or false.
\(\displaystyle \exists x \forall y P(x,y)\text{.}\)
\(\displaystyle \exists y \forall x P(x,y)\text{.}\)
\(\displaystyle \forall y \exists x P(x,y)\text{.}\)
\(\displaystyle \forall x \exists y P(x,y)\text{.}\)
ExercisesAdditional Exercises
1.
Suppose \(P\) and \(Q\) are the statements: \(P\text{:}\) Jack passed math. \(Q\text{:}\) Jill passed math.
Translate “Jack and Jill both passed math” into symbols.
Translate “If Jack passed math, then Jill did not” into symbols.
Translate “\(P \vee Q\)” into English.
Translate “\(\neg(P \wedge Q) \imp Q\)” into English.
Suppose you know that if Jack passed math, then so did Jill. What can you conclude if you know that:
Jill passed math?
Jill did not pass math?
Solution.
\(P \wedge Q\text{.}\)
\(P \imp \neg Q\text{.}\)
Jack passed math or Jill passed math (or both).
If Jack and Jill did not both pass math, then Jill did.
Nothing else.
Jack did not pass math either.
2.
Consider the statement “If Oscar eats Chinese food, then he drinks milk.”
Write the converse of the statement.
Write the contrapositive of the statement.
Is it possible for the contrapositive to be false? If it was, what would that tell you?
Suppose the original statement is true, and that Oscar drinks milk. Can you conclude anything (about his eating Chinese food)? Explain.
Suppose the original statement is true, and that Oscar does not drink milk. Can you conclude anything (about his eating Chinese food)? Explain.
3.
Write each of the following statements in the form, “if …, then ….” Careful, some of the statements might be false (which is alright for the purposes of this question).
To lose weight, you must exercise.
To lose weight, all you need to do is exercise.
Every American is patriotic.
You are patriotic only if you are American.
The set of rational numbers is a subset of the real numbers.
A number is prime if it is not even.
Either the Broncos will win the Super Bowl, or they won’t play in the Super Bowl.
Solution.
If you have lost weight, then you exercised.
If you exercise, then you will lose weight.
If you are American, then you are patriotic.
If you are patriotic, then you are American.
If a number is rational, then it is real.
If a number is not even, then it is prime. (Or the contrapositive: if a number is not prime, then it is even.)
If the Broncos don’t win the Super Bowl, then they didn’t play in the Super Bowl. Alternatively, if the Broncos play in the Super Bowl, then they will win the Super Bowl.
4.
Consider the implication, “if you clean your room, then you can watch TV.” Rephrase the implication in as many ways as possible. Then do the same for the converse.
Hint.
Of course there are many answers. It helps to assume that the statement is true and the converse is not true. Think about what that means in the real world and then start saying it in different ways. Some ideas: Use “necessary and sufficient” language, use “only if,” consider negations, use “or else” language.
5.
Translate into symbols. Use \(E(x)\) for “\(x\) is even” and \(O(x)\) for “\(x\) is odd.”
No number is both even and odd.
One more than any even number is an odd number.
There is prime number that is even.
Between any two numbers there is a third number.
There is no number between a number and one more than that number.
Solution.
\(\neg \exists x (E(x) \wedge O(x))\text{.}\)
\(\forall x (E(x) \imp O(x+1))\text{.}\)
\(\exists x(P(x) \wedge E(x))\) (where \(P(x)\) means “\(x\) is prime”).
\(\forall x \forall y \exists z(x \lt z \lt y \vee y \lt z \lt x)\text{.}\)
\(\forall x \neg \exists y (x \lt y \lt x+1)\text{.}\)
6.
Translate into English:
\(\forall x (E(x) \imp E(x +2))\text{.}\)
\(\forall x \exists y (\sin(x) = y)\text{.}\)
\(\forall y \exists x (\sin(x) = y)\text{.}\)
\(\forall x \forall y (x^3 = y^3 \imp x = y)\text{.}\)
Solution.
Any even number plus 2 is an even number.
For any \(x\) there is a \(y\) such that \(\sin(x) = y\text{.}\) In other words, every number \(x\) is in the domain of sine.
For every \(y\) there is an \(x\) such that \(\sin(x) = y\text{.}\) In other words, every number \(y\) is in the range of sine (which is false).
For any numbers, if the cubes of two numbers are equal, then the numbers are equal.
7.
For each of the statements below, give a domain of discourse for which the statement is true, and a domain for which the statement is false.
\(\forall x \exists y (y^2 = x)\text{.}\)
\(\forall x \forall y (x \lt y \imp \exists z (x \lt z \lt y))\text{.}\)
\(\exists x \forall y \forall z (y \lt z \imp y \le x \le z)\text{.}\)
Hint.
First figure out what each statement is saying. For part (c), you don’t need to assume the domain is an infinite set.