Intro Logic
Intro Logic
Weve already seen j used to mean therefore, signifying the conclusion of our argument. It is also customary to express: Propositions with capital letters: P, Q, R, ... Propositional variables with lowercase letters in italics: x, y, z, .... Predicates as functions: P(x), R(y, z), ... Implications with arrows: P Q Disjunctions with this symbol: P Z Q Conjunctions with this symbol: P Y Q Negation with this symbol: P For all with ~ and there exists with }
Copyright 2004 Discrete Teaching by Hochberg and DeBellis Introduction to Logic IN #1
Introduction to Logic IN #2
Introduction to Logic IN #3
Introduction to Logic IN #4
Implications
Given an implication, P Q, we can form three variants: Original Converse Inverse Contrapositive PQ QP P Q Q P
Notice that the inverse and converse are contrapositives of one another
Copyright 2004 Discrete Teaching by Hochberg and DeBellis Introduction to Logic TSP #5
Implication Variations
Find the inverse, converse and contrapositive of each of these implications: If it rains, then I will not go to the beach Converse Inverse Contrapositive I play well if I get enough sleep Inverse Converse Contrapositive
Compound Propositions
A compound proposition is one that is built from simpler propositions using the connectives Y, Z, and . (There are others, but they dont concern us here.) Some sample compound propositions: 1. P Y Q 2. R S 3. (R Y P) Q 4. R (P Z S) 5. P [(Q S) Y (S Q)] Note that the truth value of a compound proposition can be determined from the truth values of its simple components.
Copyright 2004 Discrete Teaching by Hochberg and DeBellis Introduction to Logic TSP #7
Compound Propositions
Suppose I tell you that: P is True, Q is False, R is True, S is False
Truth Tables
We can build a truth table for any comound proposition, no matter how complex, as long as we know how to build the truth tables for the simplest compound propositions: P Z Q, P Y Q, P Q, and P All other compound expressions are just repeated applications of these:
P Q PQ T T T F F T F F T F T T
Your Turn
Construct truth tables for the following compound propositions: Q P
(R Z P) Y (R Z Q)
Logical Equivalence
Two compound propositions are said to be logically equivalent if they have the same truth values regardless of the truth values of the underlying simpler propositions. We use the symbol to denote logical equivalence. Examples: Q P P Q (R Z P) Y (R Z Q) P Z Q (P Y Q) P Z Q (P Z Q) P Y Q (These last two are called DeMorgans rules, and are generally helpful for negating compound propositions.)
Copyright 2004 Discrete Teaching by Hochberg and DeBellis Introduction to Logic TSP #13
Your Turn
Negate each of these compound propositions. Your final answers should have no negations of compound expressions. P (Q Y R)
(P Z Q) (S T)
Negating English
Lets try negating some English expressions. Quadrilateral ABCD is a trapezoid if AB is parallel to CD or BC is parallel to AD. Let us suppose ABCD is not a trapezoid. Then...
Quadrilateral ABCD is a rhombus if its diagonals bisect one another and are perpendicular to one another. Let us suppose that ABCD is not a rhombus. Then...
Rhombus
Notice that OR was the right connective between diagonals not perpendicular to one another and diagonals do not bisect one another.
Please translate each of the following symbolic expressions into English. 1. PYQ
2.
RS
3.
(R Y P) Q
4.
R (P Z S)
5.
P [(Q S) Y (S Q)]
Introduction to Logic HO #1
Please translate each of the following symbolic expressions into English. 1. E(tomatoes) 2. ~x E(x)
4. ~x M(Rachel, x)
5. }h S(h)
6. ~t (S(t) M(Betty, t) )
7. T(a, b) L(a, b)
Introduction to Logic HO #2
(R Z P) Y (R Z Q)
Introduction to Logic HO #3
(P Z Q) (S T)
Introduction to Logic HO #4
Quadrilateral ABCD is a rhombus if its diagonals bisect one another and are perpendicular to one another. Let us suppose that ABCD is not a rhombus. Then...
Suppose A and B are two points in the plane and point C is not on the line m through A and B. Draw a line l through C. Then l is parallel to m if for every point D on l, the area of ABD equals the area of ABC. Suppose l is not parallel to m. Then ...
Introduction to Logic HO #5
2. 3.
What should P and Q be so that If I had a hammer, Id hammer in the morning is of the form P Q? Negate the phrase If I have a hammer, then I hammer in the morning.
Presentation Problems:
4. As we saw in class, if you negate an expression twice, then you end up with the expression with which you started. This sometimes has interesting consequences. For example, negate P Q twice using the rules we saw in class to obtain the disjunctive form of implication. Use truth tables to show that in implication is logically equivalent to its disjunctive form, as obtained in the previous problem. Build a truth table for the expression (P Q) Y (Q P). Yesterday we saw how to use syllogisms to show that some collection of premises implied some conclusion. There is a cheesier, more tedious way, too. In this method you build a truth table which includes columns for all your givens and your conclusion. Then you visually inspect to see if in all those rows in which the givens are all true, the conclusion is also true. If this is the case, then you have a (cheesy) proof of the conclusion. Use this cheesy method to prove that: a. P and (P Q) imply Q. b. (R Z P) and (R Z Q) imply (P Z Q) Why does the expression (P Q) R need parentheses, but the expression P Z Q Z R does not? Does the expression P Y Q Y R need parentheses? How about P Z Q Y R?
5. 6. 7.
8.
Introduction to Logic EX #1
9.
The resolution syllogism states that [(R Z P) Y (R Z Q)] (P Z Q). Negate this expression, and then put into words what a counterexample to the resolution argument might look like.
10. Negate each of the following statements: a. Every good boy does fine b. All quadrilaterals have an interior angle greater than or equal to 90 degrees c. If the four vertices of quadrilateral ABCD lie on a circle, then angles ABC and CDA are supplementary, and angles BCD and DAB are supplementary. (For the record, angles are supplementary if they add to 180 degrees.) d. There is a triangle whose angles have integral degree measure, are in arithmetic progression, and the smallest one is 40 degrees.
Extension Problems:
11. If you havent yet, please do the extension problems from yesterday. 12. Find a logical expression that yields the truth table shown to the right. Note that there is a method for doing problems like these, in which for each true row in the target column, one builds a conjunction that makes only that row true, and then takes the disjunction of these conjunctions. 13. Define P @ Q to mean (P Q) Y (Q P). Does the expression P @ Q @ R need parentheses? P T T T T F F F F Q T T F F T T F F R T F T F T F T F ??? F F T F T T T T
Introduction to Logic EX #2
II.
III. Compound Propositions A. Compound propositions are built by connecting together simple propositions with Y, Z, , and parentheses as needed B. The simple propositions are the compound propositions component propositions C. The truth value of a compound proposition is determined by the truth values of its component propositions D. We can thus build a table showing the truth value of the compound proposition under all assignments of values to its component propositions 1. This table is called the truth table of the compound proposition 2. It has 2k rows, where k is the number of variables present in the compound proposition 3. The truth table will frequently have helper columns which contain partial results in the computation of the truth values