Lecture 1

Topics: propositions, basic connectives (NOT, AND, OR, XOR, IMPLIES, IFF), deMorgan's Laws, implication in everyday language, contrapositive, converse, logical equivalence.


In the following questions, assume that \(x\) and \(y\) are fixed integers, and consider the following statement \(S\): \[ (x = 0) \textrm{ IMPLIES } (xy = 0) \]

  1. If we know that \(x=0\), then what do we know about the value of \(xy\)?

    INCORRECT! The hypothesis of \(S\) is true, and the conclusion gives us information about the value of \(xy\).

    CORRECT! We know that the hypothesis \(x=0\) is true, so the conclusion \(xy=0\) must be true.

    INCORRECT! This is equivalent to saying that \(xy\) is non-zero.

    INCORRECT! It's true when \(y=0\), but we don't know if that is the case.

  2. If we know that \(x \neq 0\), then what do we know about the value of \(xy\)?

    CORRECT! The implication only allows us to conclude something when the hypothesis is true, that is, when \(x=0\).

    INCORRECT! It's true when \(y=0\), but we don't know if that is the case.

    INCORRECT! It's true when \(y \neq 0\), but we don't know if that is the case.

    INCORRECT! It's true when \(y=0\) or \(x=1\), but we don't know if either of those are true.

  3. If we know that \(xy = 0\), then what do we know about the value of \(x\)?

    CORRECT! If the conclusion of an implication is true, the hypothesis can be either true or false.

    INCORRECT! It's possible that \(y=0\) and \(x \neq 0\).

    INCORRECT! It's not true when \(y \neq 0\).

    INCORRECT! It's possible that one of \(x\) or \(y\) is non-zero.

  4. If we know that \(xy \neq 0\), then what do we know about the value of \(x\)?

    INCORRECT! The contrapositive of the statement \(S\) gives us information when \(xy \neq 0\).

    INCORRECT! If this was true, then the hypothesis of \(S\) would be correct, so it would follow that \(xy = 0\).

    CORRECT! The contrapositive of the statement \(S\) is \[ (xy \neq 0)\ \textrm{ IMPLIES }\ (x \neq 0) \] and we know that the hypothesis \(xy \neq 0\) is true, so the conclusion \(x \neq 0\) is true. This is equivalent to saying \(|x| > 0\).

    INCORRECT! It's possible that \(x=3\) and \(y=4\).




Suppose that you are taking a class, and that class has a textbook and a final exam. Let the propositional variables \(\) have the following meanings: \[ P = \textrm{You get an A on the final exam} \] \[ Q = \textrm{You do every exercise in the book} \] \[ R = \textrm{You get an A in the class} \] For each of the following 3 propositions, choose the equivalent logical statement.

  1. You get an A in the class, but you do not do every exercise in the book.

    INCORRECT! This would be like saying that the reason why you didn't do every exercise is because you got an A.

    INCORRECT! There is nothing in this proposition about what you get on the final exam.

    CORRECT! Both \(R\) and \textrm{ NOT}\(Q\) happened.

    INCORRECT! This is like saying you got an A because you did all of the exercises in the book.

  2. You get an A on the final, you do every exercise in the book, and you get an A in the class.

    CORRECT! The proposition says that all three of \(P,Q,R\) happen.

    INCORRECT! There is no implication here.

    INCORRECT! This would be like saying that you get an A on the final exam exactly when you do every exercise in the book, and you do every exercise in the book exactly when you get an A in the course.

    INCORRECT! This is saying that you did at least one of \(P,Q,R\).

  3. To get an A in the class, it is necessary for you to get an A on the final exam.

    INCORRECT! This is saying that you get an A in the class and you get an A on the final exam.

    INCORRECT! This is saying that \(P\) is sufficient for \(R\), namely, if you get an A on the final exam, you'll get an A in the course.

    CORRECT! If you get an A in the course, then you know that you got an A on the final exam, that is, getting an A on the final exam was required.

    INCORRECT! This is equivalent to saying that both (b) and (c) were correct answers, but (b) is incorrect.




In the next questions, you will be given some propositions along with a statement in logic that uses the propositions, and you must choose the English sentence(s) that most closely matches.

  1. Define the following propositions:

    \[ P = \textrm{Canada increases border security} \] \[ Q = \textrm{The U.S. increases border security} \]

    Which of the following statements is equivalent to P IMPLIES Q?

    ALMOST! This sentence is equivalent to P IMPLIES Q. However, (b) was also correct.

    ALMOST! This sentence is equivalent to P IMPLIES Q since "only when" immediately precedes the conclusion of an implication. However, (a) was also correct.

    CORRECT! Both (a) and (b) are equivalent to P IMPLIES Q.

    INCORRECT! At least one of (a) or (b) is correct.

  2. Define the following propositions

    \[ P = \textrm{The broadcast is successful} \] \[ Q = \textrm{The network is connected} \]

    Which of the following is equivalent to P IMPLIES Q?

    CORRECT! In other words, for the broadcast to be successful, a connected network is required. This is equivalent to P IMPLIES Q.

    INCORRECT! This is the converse, that is, Q IMPLIES P.

    INCORRECT! At least one of (a) or (b) is incorrect.

    INCORRECT! At least one of (a) or (b) is correct.

  3. Define the following propositions:

    \[ P = \textrm{Visit the doctor} \] \[ Q = \textrm{Get a blood test} \] \[ R = \textrm{I am nervous} \]

    Which of the following is equivalent to (P IMPLIES Q) IMPLIES R?

    INCORRECT! This is equivalent to (Q IMPLIES P) AND (P IMPLIES R).

    CORRECT! "Visiting the doctor requires getting a blood test done" is equivalent to P IMPLIES Q. Whenever P IMPLIES Q, I get nervous, so (P IMPLIES Q) IMPLIES R.

    INCORRECT! One of the above is correct.




In the next question, you will be given a statement in logic, and you must pick which answer is equivalent to it.

  1. NOT((P AND Q) IMPLIES NOT(R)) AND (Q XOR ((NOT(Q)) OR (P AND NOT(P))))

    INCORRECT! They do not evaluate to the same value when P=T, Q=T, R=F.

    INCORRECT! They do not evaluate to the same value when P=T, Q=F, R=T.

    INCORRECT! They do not evaluate to the same value when P=F, Q=T, R=F.

    CORRECT! It can be proven using a truth table, or by simplifying the statement using deMorgan's Laws and some simple logical equivalences.




The next question has no special instructions.

  1. Some people are uncomfortable with the idea that from a false hypothesis you can prove everything, and instead of having P IMPLIES Q be true when P is false, they want P IMPLIES Q to be false when P is false. This would lead to IMPLIES having the same truth table as what propositional connective?

    INCORRECT! In the truth table of XOR, the row corresponding to \(P=Q=T\) has value F.

    INCORRECT! In the truth table of OR, the row corresponding to \(P=F\) and \(Q=T\) has value T.

    INCORRECT! In the truth table of IFF, the row corresponding to \(P=Q=F\) has value T.

    CORRECT! The truth table would have a T in the row corresponding to \(P=Q=T\), and F in all other rows.


Found an error? Send us an email