Full file at

Size: px
Start display at page:

Download "Full file at"

Transcription

1 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Introduction Chapter 1 - Introduction Applications of discrete mathematics: Formal Languages (computer languages) Compiler Design Data Structures Computability Automata Theory Algorithm Design Relational Database Theory Complexity Theory (counting) Example (counting): The Traveling Salesman Problem Important in circuit design many other CS problems Given: n cities c 1, c 2,..., c n distance between city i and j, d ij Find the shortest tour. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

2 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Chapter 1 - Introduction Assume a very fast PC: 1 flop = 1 nanosecond = 10-9 sec. = 1,000,000,000 ops/sec = 1 GHz. A tour requires n-1 additions. How many different tours? etc. Choose the first city n ways, the second city n-1 ways, the third city n-2 ways, # tours = n (n-1) (n-2)....(2) (1) = n! (Combinations) Total number of additions = (n-1) n! (Rule of Product) If n=8, T(n) = 7 8! = 282,240 flops < 1/3 second. HOWEVER If n=50, T(n) = 49 50! = Prepared by: David F. McAllister TP , 2007 McGraw-Hill

3 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications = seconds = minutes = hours = days = weeks = years....a long time. You ll be an old person before it s finished. There are some problems for which we do not know if efficient algorithms exist to solve them! Chapter 1 - Introduction Prepared by: David F. McAllister TP , 2007 McGraw-Hill

4 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 Section 1.1 Propositional Logic proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese go to town! X - imperative What time is it? X - interrogative propositional variables: P, Q, R, S,... New Propositions from old: calculus of propositions - relate new propositions to old using TRUTH TABLES logical operators: unary, binary Unary Negation not Symbol: Prepared by: David F. McAllister TP , 2007 McGraw-Hill

5 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 Example: P: I am going to town P: I am not going to town; It is not the case that I am going to town; I ain t goin. Truth Table: P P F (0) T (1) T (1) F (0) Binary Example: Conjunction and Symbol: P - I am going to town Q - It is going to rain Prepared by: David F. McAllister TP , 2007 McGraw-Hill

6 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 P Q: I am going to town and it is going to rain. Truth Table: P Q P Q Note: Both P and Q must be true!!!!! Example: Disjunction inclusive or Symbol: P - I am going to town Q - It is going to rain P Q: I am going to town or it is going to rain. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

7 Truth Table: Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 P Q P Q Note: Only one of P, Q need be true. Hence, the inclusive nature. Example: Exclusive OR Symbol: P - I am going to town Q - It is going to rain P Q: Either I am going to town or it is going to rain. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

8 Truth Table: Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 P Q P Q Note: Only one of P and Q must be true. Example: Implication If...then... Symbol: P - I am going to town Q - It is going to rain P Q: If I am going to town then it is going to rain. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

9 Truth Table: Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 Equivalent forms: P Q P Q If P, then Q P implies Q If P, Q P only if Q P is a sufficient condition for Q Q if P Q whenever P Q is a necessary condition for P Note: The implication is false only when P is true and Q is false! There is no causality implied here! If the moon is made of green cheese then I have more money than Bill Gates (T) If the moon is made of green cheese then I m on welfare (T) If 1+1=3 then your grandma wears combat boots (T) Prepared by: David F. McAllister TP , 2007 McGraw-Hill

10 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 If I m wealthy then the moon is not made of green cheese. (T) If I m not wealthy then the moon is not made of green cheese. (T) Terminology: P = premise, hypothesis, antecedent Q = conclusion, consequence More terminology: Q P is the CONVERSE of P Q Q P is the CONTRAPOSITIVE of P Q Example: Find the converse and contrapositive of the following statement: R: Raining tomorrow is a sufficient condition for my not going to town. Step 1: Assign propositional variables to component propositions P: It will rain tomorrow Q: I will not go to town Prepared by: David F. McAllister TP , 2007 McGraw-Hill

11 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 Step 2: Symbolize the assertion R: P Q Step 3: Symbolize the converse Q P Step 4: Convert the symbols back into words If I don t go to town then it will rain tomorrow or Raining tomorrow is a necessary condition for my not going to town. or My not going to town is a sufficient condition for it raining tomorrow. Biconditional if and only if, iff Symbol: Example: P - I am going to town, Q - It is going to rain P Q: I am going to town if and only if it is going to rain. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

12 Truth Table: Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 P Q P Q Note: Both P and Q must have the same truth value. Others: NAND ( ) Sheffer Stroke; NOR ( ) Peirce Arrow (see problems) Breaking assertions into component propositions - look for the logical operators! Example: If I go to Harry s or go to the country I will not go shopping. P: I go to Harry s Q: I go to the country R: I will go shopping If...P...or...Q...then...not...R Prepared by: David F. McAllister TP , 2007 McGraw-Hill

13 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 Constructing a truth table: (P Q) R - one column for each propositional variable - one for the compound proposition - count in binary - n propositional variables = 2 n rows You may find it easier to include columns for propositions which themselves are component propositions. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

14 Truth Table: Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.1 P Q R (P Q) R Question: How many different propositions can be constructed from n propositional variables? Prepared by: David F. McAllister TP , 2007 McGraw-Hill

15 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.2 Section 1.2 Propositional Equivalences A tautology is a proposition which is always true. Classic Example: P P A contradiction is a proposition which is always false. Classic Example: P P A contingency is a proposition which neither a tautology nor a contradiction. Example: (P Q) R Two propositions P and Q are logically equivalent if P Q is a tautology. We write P Q Example: (P Q) (Q P) (P Q) Prepared by: David F. McAllister TP , 2007 McGraw-Hill

16 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.2 Proof: The left side and the right side must have the same truth values independent of the truth value of the component propositions. To show a proposition is not a tautology: use an abbreviated truth table - try to find a counter example or to disprove the assertion. - search for a case where the proposition is false Case 1: Try left side false, right side true Left side false: only one of P Q or Q P need be false. 1a. Assume P Q = F. Then P = T, Q = F. But then right side P Q = F. Oops, wrong guess. 1b. Try Q P = F. Then Q = T, P = F. Then P Q = F. Another wrong guess. Case 2. Try left side true, right side false Prepared by: David F. McAllister TP , 2007 McGraw-Hill

17 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.2 If right side is false, P and Q cannot have the same truth value. 2a. Assume P =T, Q = F. Then P Q = F and the conjunction must be false so the left side cannot be true in this case. Another wrong guess. 2b. Assume Q = T, P = F. Again the left side cannot be true. We have exhausted all possibilities and not found a counterexample. The two propositions must be logically equivalent. Note: Because of this equivalence, if and only if or iff is also stated as is a necessary and sufficient condition for. Some famous logical equivalences: Logical Equivalences P T P Identity P F P P T T Domination P F F P P P Idempotency P P P ( P)) P Double negation P Q Q P Commutativity P Q Q P (P Q) R P (Q R) Associativity (P Q) R P (Q R) Prepared by: David F. McAllister TP , 2007 McGraw-Hill

18 P (Q R) Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.2 (P Q) (P R) P (Q R) (P Q) (P R) (P Q) P Q (P Q) P Q P Q P Q P P T P P F P T P Distributivity DeMorgan s laws Implication Tautology Contradiction P F P (P Q) (Q P) Equivalence (P Q) (P Q) (P Q) Absurdity P (P Q) ( Q P) Contrapositive P (P Q) P Absorption P (P Q) P (P Q) R Exportation P (Q R) Note: equivalent expressions can always be substituted for each other in a more complex expression - useful for simplification. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

19 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.2 Normal or Canonical Forms Unique representations of a proposition Examples: Construct a simple proposition of two variables which is true only when P is true and Q is false: P Q P is true and Q is true: P Q P is true and Q is false or P is true and Q is true: (P Q) (P Q) A disjunction of conjunctions where - every variable or its negation is represented once in each conjunction (a minterm) - each minterms appears only once Disjunctive Normal Form (DNF) Important in switching theory, simplification in the design of circuits. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

20 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.2 Method: To find the minterms of the DNF. Use the rows of the truth table where the proposition is 1 or True If a zero appears under a variable, use the negation of the propositional variable in the minterm Example: If a one appears, use the propositional variable. Find the DNF of (P Q) R P Q R (P Q) R There are 5 cases where the proposition is true, hence 5 minterms. Rows 1,2,3, 5 and 7 produce the following disjunction of minterms: Prepared by: David F. McAllister TP , 2007 McGraw-Hill

21 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.2 (P Q) R ( P Q R) ( P Q R) ( P Q R) (P Q R) (P Q R) Note that you get a Conjunctive Normal Form (CNF) if you negate a DNF and use DeMorgan s Laws. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

22 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 Section 1.3 Predicates and Quantifiers A generalization of propositions - propositional functions or predicates.: propositions which contain variables Predicates become propositions once every variable is bound- by U assigning it a value from the Universe of Discourse or quantifying it Examples: Let U = Z, the integers = {... -2, -1, 0, 1, 2, 3,...} P(x): x > 0 is the predicate. It has no truth value until the variable x is bound. Examples of propositions where x is assigned a value: P(-3) is false, P(0) is false, P(3) is true. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

23 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 The collection of integers for which P(x) is true are the positive integers. P(y) P(0) is not a proposition. The variable y has not been bound. However, P(3) P(0) is a proposition which is true. = z Let R be the three-variable predicate R(x, y z): x + y Find the truth value of R(2, -1, 5), R(3, 4, 7), R(x, 3, z) Prepared by: David F. McAllister TP , 2007 McGraw-Hill

24 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 Universal Quantifiers P(x) is true for every x in the universe of discourse. Notation: universal quantifier xp(x) For all x, P(x), For every x, P(x) The variable x is bound by the universal quantifier producing a proposition. Example: U={1,2,3} xp(x) P(1) P(2) P(3) Existential P(x) is true for some x in the universe of discourse. Notation: existential quantifier xp(x) Prepared by: David F. McAllister TP , 2007 McGraw-Hill

25 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 There is an x such that P(x), For some x, P(x), For at least one x, P(x), I can find an x such that P(x). Example: U={1,2,3} xp(x) P(1) P(2) P(3) Unique Existential P(x) is true for one and only one x in the universe of discourse. Notation: unique existential quantifier! xp(x) There is a unique x such that P(x), There is one and only one x such that P(x), One can find only one x such that P(x). Prepared by: David F. McAllister TP , 2007 McGraw-Hill

26 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 Example: U={1,2,3} Truth Table: P(1) P(2) P(3)!xP( x) How many minterms are in the DNF? Note: REMEMBER! A predicate is not a proposition until all variables have been bound either by quantification or assignment of a value! Equivalences involving the negation operator xp(x) x P(x) xp(x) x P(x) Prepared by: David F. McAllister TP , 2007 McGraw-Hill

27 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 Distributing a negation operator across a quantifier changes a universal to an existential and vice versa. Multiple Quantifiers: read left to right... Example: Let U = R, the real numbers, P(x,y): xy= 0 x yp(x, y) x yp(x, y) x yp(x, y) x yp(x, y) The only one that is false is the first one. Suppose P(x,y) is the predicate x/y=1? Example: Let U = {1,2,3}. Find an expression equivalent to x yp(x, y) where the variables are bound by substitution instead: Prepared by: David F. McAllister TP , 2007 McGraw-Hill

28 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 Expand from inside out or outside in. Outside in: (can be very difficult) Examples: yp(1, y) yp(2, y) yp(3, y) [P(1,1) P(1,2) P(1,3)] [P(2,1) P(2,2) P(2,3)] [P(3,1) P(3,2) P(3,3)] Converting from English F(x): x is a fleegle S(x): x is a snurd T(x): x is a thingamabob U={fleegles, snurds, thingamabobs} (Note: the equivalent form using the existential quantifier is also given) Everything is a fleegle xf(x) x F(x) Prepared by: David F. McAllister TP , 2007 McGraw-Hill

29 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 Nothing is a snurd. x S(x) xs( x) All fleegles are snurds. x[f(x) S(x)] x[ F(x) S(x)] x [F(x) S(x)] x[f(x) S(x)] Some fleegles are thingamabobs. x[f(x) T(x)] x[ F(x) T(x)] No snurd is a thingamabob. x[s(x) T(x)] x[s(x) T(x)] If any fleegle is a snurd then it's also a thingamabob x[(f(x) S(x)) T(x)] x[f(x) S(x) T(x)] Prepared by: David F. McAllister TP , 2007 McGraw-Hill

30 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 Extra Definitions: An assertion involving predicates is valid if it is true for every universe of discourse. An assertion involving predicates is satisfiable if there is a universe and an interpretation for which the assertion is true. Else it is unsatisfiable. The scope of a quantifier is the part of an assertion in which variables are bound by the quantifier Examples: Valid: x S(x) xs( x) Not valid but satisfiable: x[f(x) T(x)] Not satisfiable: x[f(x) F(x)] Scope: x[f(x) S(x)] vs. x[f(x)] x[s(x)] Dangerous situations: Commutativity of quantifiers Prepared by: David F. McAllister TP , 2007 McGraw-Hill

31 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3 x yp(x, y) y xp(x, y)? YES! x yp(x, y) y xp(x, y)? NO! DIFFERENT MEANING! Distributivity of quantifiers over operators x[p(x) Q(x)] xp(x) xq(x)? YES! x[p(x) Q(x)] [ xp(x) xq(x)]? NO! Prepared by: David F. McAllister TP , 2007 McGraw-Hill

32 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.5 Section 1.5 Rules of Inference Definition: A theorem is a valid logical assertion which can be proved using other theorems axioms (statements which are given to be true) and rules of inference (logical rules which allow the deduction of conclusions from premises). A lemma (not a lemon ) is a 'pre-theorem' or a result which is needed to prove a theorem. A corollary is a 'post-theorem' or a result which follows directly from a theorem. Rules of Inference Many of the tautologies in Chapter 1 are rules of inference. They have the form where and H 1 H 2... H n C H i are called the hypotheses Prepared by: David F. McAllister TP , 2007 McGraw-Hill

33 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.5 C is the conclusion. As a rule of inference they take the symbolic form: H 1 H 2.. H n C where means 'therefore' or 'it follows that.' Examples: The tautology P (P Q) Q becomes P P Q Q This means that whenever P is true and P Q is true we can conclude logically that Q is true. This rule of inference is the most famous and has the name or modus ponens Prepared by: David F. McAllister TP , 2007 McGraw-Hill

34 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.5 the law of detachment. Other famous rules of inference: P P Q Addition P Q P Simplification Q P Q P Modus Tollens P Q Q R P R Hypothetical syllogism P Q P Q Disjunctive syllogism P Q P Q Conjunction Prepared by: David F. McAllister TP , 2007 McGraw-Hill

35 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.5 (P Q) (R S) P R Q S Constructive dilemma Rules of Inference for Quantifiers xp(x) Universal Instantiation (UI) P(c) P(x) Universal Generalization (UG) xp(x) P(c) Existential Generalization (EG) xp(x) xp( x) Existential Instantiation (EI) P(c) Note: In Universal Generalization, x must be arbitrary. In Universal Instantiation, c need not be arbitrary but often is assumed to be. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

36 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.5 In Existential Instantiation, c must be an element of the universe which makes P(x) true. Example: Every man has two legs. John Smith is a man. Therefore, John Smith has two legs. Define the predicates: The argument becomes The proof is Q. E. D. M(x): x is a man L(x): x has two legs J: John Smith, a member of the universe 1. x[ M(x) L(x)] 2.M(J) L(J) 1. x[ M(x) L(x)] Hypothesis 1 2.M(J) L(J) step 1 and UI 3.M( J ) Hypothesis 2 4. L(J) steps 2 and 3 and modus ponens Note: Using the rules of inference requires lots of practice. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

37 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.5 If the butler did it he has blood on his hands. The butler had blood on his hands. Therefore, the butler did it. This argument has the form Fallacies Fallacies are incorrect inferences. Some common fallacies: The Fallacy of Affirming the Consequent or P Q Q P [(P Q) Q] P which is not a tautology and therefore not a rule of inference! The Fallacy of Denying the Antecedent (or the hypothesis) If the butler is nervous, he did it. The butler is really mellow. Therefore, the butler didn't do it. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

38 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.5 This argument has the form P Q P Q or [(P Q) P] Q which is also not a tautology and hence not a rule of inference. Begging the question or circular reasoning This occurs when we use the truth of statement being proved (or something equivalent) in the proof itself. Example: Conjecture: if x 2 is even then x is even. Proof: If x2 is even then x2 = 2k for some k. Then x = 2l for some l. Hence, x must be even. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

39 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.6 Section 1.6 Introduction to Proofs Formal Proofs To prove an argument is valid or the conclusion follows logically from the hypotheses: Assume the hypotheses are true Use the rules of inference and logical equivalences to determine that the conclusion is true. Example: Consider the following logical argument: If horses fly or cows eat artichokes, then the mosquito is the national bird. If the mosquito is the national bird then peanut butter takes good on hot dogs. But peanut butter tastes terrible on hot dogs. Therefore, cows don't eat artichokes. Assign propositional variables to the component propositions in the argument: F A M P Horses fly Cows eat artichokes The mosquito is the national bird Peanut butter tastes good on hot dogs Prepared by: David F. McAllister TP , 2007 McGraw-Hill

40 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.6 Represent the formal argument using the variables 1.(F A) M 2.M P 3. P A Use the hypotheses 1., 2., and 3. and the above rules of inference and any logical equivalences to construct the proof. Q. E. D. Assertion Reasons 1.(F A) M Hypothesis 1. 2.M P Hypothesis 2. 3.(F A) P` steps 1 and 2 and hypothetical syll. 4. P Hypothesis (F A) steps 3 and 4 and modus tollens 6. F A step 5 and DeMorgan 7. A F step 6 and commutativity of 'and' 8. A step 7 and simplification Methods of Proof We wish to establish the truth of the 'theorem' P Q. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

41 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.6 P may be a conjunction of other hypotheses. P Q is a conjecture until a proof is produced. Example: Trivial proof If we know Q is true then P Q is true. If it's raining today then the void set is a subset of every set. The assertion is trivially true independent of the truth of P. Vacuous proof If we know one of the hypotheses in P is false then P Q is vacuously true. Example: If I am both rich and poor then hurricane Fran was a mild breeze. This is of the form Prepared by: David F. McAllister TP , 2007 McGraw-Hill

42 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.6 (P P) Q and the hypotheses form a contradiction. Hence Q follows from the hypotheses vacuously. Direct proof - assumes the hypotheses are true - uses the rules of inference, axioms and any logical equivalences to establish the truth of the conclusion. Example: the Cows don t eat artichokes proof above Indirect proof A direct proof of the contrapositive: is true) - assumes the conclusion of P Q is false ( Q - uses the rules of inference, axioms and any logical equivalences to establish the premise P is false. Note, in order to show that a conjunction of hypotheses is false is suffices to show just one of the hypotheses is false. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

43 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.6 Example: Theorem: If 6x + 9y = 101, then x or y is not an integer. Proof: (Direct) Assume 6x + 9y = 101 is true. Then from the rules of algebra 3(2x + 3y) = 101. But 101/3 is not an integer so it must be the case that one of 2x or 3y is not an integer (maybe both). Therefore, one of x or y must not be an integer. Q.E.D. Example: A perfect number is one which is the sum of all its divisors except itself. For example, 6 is perfect since = 6. So is 28. Theorem: A perfect number is not a prime. Proof: (Indirect). We assume the number p is a prime and show it is not perfect. But the only divisors of a prime are 1 and itself. Hence the sum of the divisors less than p is 1 which is not equal to p. Hence p cannot be perfect. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

44 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.6 Q. E. D. Proof by contradiction or reductio ad absurdum - assumes the conclusion Q is false - derives a contradiction, usually of the form P P which establishes Q 0. The contrapositive of this assertion is 1 Q from which it follows that Q must be true. Example: Theorem: There is no largest prime number. (Note that there are no formal hypotheses here.) We assume the conclusion 'there is no largest prime number' is false. There is a largest prime number. Call it p. Hence, the set of all primes lie between 1 and p. Form the product of these primes: r = p. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

45 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.6 But r + 1 is a prime larger than p. (Why?). This contradicts the assumption that there is a largest prime. Q.E.D. The formal structure of the above proof is as follows: Let P be the assertion that there is no largest prime. Let Q be the assertion that p is the largest prime. Assume P is true. Then (for some p) Q is true so P Q is true. We then construct a prime greater than p so Q Q. Applying hypothetical syllogism we get P Q. From two applications of modus ponens we conclude that Q is true and Q is true so by conjunction Q Q or a contradiction is true. Hence the assumption must be false and the theorem is true. Proof by Cases Break the premise of P Q into an equivalent disjunction of the form Prepared by: David F. McAllister TP , 2007 McGraw-Hill

46 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.6 Then use the tautology P 1 P 2... P n. [(P 1 Q) (P 2 Q)... (P n Q)] [(P 1 P 2... P n ) Q] Each of the implications P i Q is a case. You must Convince the reader that the cases are inclusive, i.e., they exhaust all possibilities Example: establish all implications Let be the operation 'max' on the set of integers: if a b then a b = max{a, b} = a = b a. Theorem: The operation is associative. For all a, b, c Proof: (a b) c = a (b c). Let a, b, c be arbitrary integers. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

47 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.6 Then one of the following 6 cases must hold (are exhaustive): Hence 1. a b c 2. a c b 3. b a c 4. b c a 5. c a b 6. c b a Case 1: a b = a, a c = a, and b c = b. (a b) c = a = a (b c). Therefore the equality holds for the first case. The proofs of the remaining cases are similar (and are left for the student). Q. E. D. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

48 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.7 Section 1.7 Proof Methods and Strategy Existence Proofs We wish to establish the truth of xp(x). Constructive existence proof: - Establish P(c) is true for some c in the universe. - Then xp(x) is true by Existential Generalization (EG). Example: Theorem: There exists an integer solution to the equation x2 + y2 = z2. Proof: Choose x = 3, y = 4, z = 5. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

49 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.7 Example: Theorem: There exists a bijection from A= [0,1] to B= [0, 2]. Proof: We build two injections and conclude there must be a bijection without ever exhibiting the bijection. Let f be the identity map from A to B. Then f is an injection (and we conclude that A B ). Define the function g from B to A as g(x) = x/4. Then g is an injection. Therefore, B A. We now apply a previous theorem which states that if A B and B A then A = B. Hence, there must be a bijection from A to B. (Note that we could have chosen g(x) = x/2 and obtained a bijection directly). Q. E. D. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

50 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.7 Nonconstructive existence proof. - Assume no c exists which makes P(c) true and derive a contradiction. Example: Theorem: There exists an irrational number. Proof: Assume there doesn t exist an irrational number. Then all numbers must be rational. Then the set of all numbers must be countable. Then the real numbers in the interval [0, 1] is a countable set. But we have already shown this set is not countable. Hence, we have a contradiction (The set [0,1] is countable and not countable). Therefore, there must exist an irrational number. Q. E. D. Note: we have not produced such a number! Prepared by: David F. McAllister TP , 2007 McGraw-Hill

51 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.7 Disproof by Counterexample: Recall that x P(x) xp(x). To establish that xp(x) is true (or xp(x) is false) construct a c such that P(c) is true or P(c) is false. In this case c is called a counterexample to the assertion xp(x) Nonexistence Proofs We wish to establish the truth of xp(x) (which is equivalent to x P(x)). Use a proof by contradiction by assuming there is a c which makes P(c) true. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

52 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.7 Universally Quantified Assertions We wish to establish the truth of xp(x). We assume that x is an arbitrary member of the universe and show P(x) must be true. Using UG it follows that xp(x). Example: Theorem: For the universe of integers, x is even iff x2 is even. Proof: The quantified assertion is We assume x is arbitrary. x[x is even x 2 is even] Recall that P Q is equivalent to (P Q) (Q P). Case 1. We show if x is even then x2 is even using a direct proof (the only if part or necessity). If x is even then x = 2k for some integer k. Hence, x2 = 4k2 = 2(2k2) which is even since it is an integer which is divisible by 2. This completes the proof of case 1. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

53 Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.7 Case 2. We show that if x 2 is even then x must be even (the if part or sufficiency). We use an indirect proof: Assume x is not even and show x2 is not even. If x is not even then it must be odd. So, x = 2k + 1 for some k. Then x2 = (2k + 1)2 = 4k2 + 4k + 1 = 2(2k2 + 2k) + 1 which is odd and hence not even. This completes the proof of the second case. Therefore we have shown x is even iff x2 is even. Since x was arbitrary, the result follows by UG. Q.E.D. Dear students: Learning how to construct proofs is probably one of the most difficult things you will face in life. Few of us are gifted enough to do it with ease. One only learns how to do it by practicing. Prepared by: David F. McAllister TP , 2007 McGraw-Hill

Introduction. Applications of discrete mathematics:

Introduction. Applications of discrete mathematics: Introduction Applications of discrete mathematics: Formal Languages (computer languages) Compiler Design Data Structures Computability Automata Theory Algorithm Design Relational Database Theory Complexity

More information

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese Section 1.1 Propositional Logic proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese go to town! X - imperative What time is it? X - interrogative propositional

More information

Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers

Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers Section 1.3 Predicates and Quantifiers A generalization of propositions - propositional functions or predicates.: propositions which contain variables Predicates become propositions once every variable

More information

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false. Section 1.2 Propositional Equivalences A tautology is a proposition which is always true. Classic Example: P P A contradiction is a proposition which is always false. Classic Example: P P A contingency

More information

Section 1.7 Proof Methods and Strategy. Existence Proofs. xp(x). Constructive existence proof:

Section 1.7 Proof Methods and Strategy. Existence Proofs. xp(x). Constructive existence proof: Section 1.7 Proof Methods and Strategy Existence Proofs We wish to establish the truth of xp(x). Constructive existence proof: - Establish P(c) is true for some c in the universe. - Then xp(x) is true

More information

Mat2345 Week 2. Chap 1.5, 1.6. Fall Mat2345 Week 2. Chap 1.5, 1.6. Week2. Negation. 1.5 Inference. Modus Ponens. Modus Tollens. Rules.

Mat2345 Week 2. Chap 1.5, 1.6. Fall Mat2345 Week 2. Chap 1.5, 1.6. Week2. Negation. 1.5 Inference. Modus Ponens. Modus Tollens. Rules. Fall 2013 Student Responsibilities Reading: Textbook, Sections 1.5 1.6 Assignments: as given in the Homework Assignment list (handout) Secs. 1.5 & 1.6 Attendance: Dryly Encouraged Overview Finish up 1.1

More information

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University COMP 182 Algorithmic Thinking Proofs Luay Nakhleh Computer Science Rice University 1 Reading Material Chapter 1, Section 3, 6, 7, 8 Propositional Equivalences The compound propositions p and q are called

More information

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007 Proofs Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Fall 2007 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 1.5, 1.6, and 1.7 of Rosen cse235@cse.unl.edu

More information

MAT2345 Discrete Math

MAT2345 Discrete Math Fall 2013 General Syllabus Schedule (note exam dates) Homework, Worksheets, Quizzes, and possibly Programs & Reports Academic Integrity Do Your Own Work Course Web Site: www.eiu.edu/~mathcs Course Overview

More information

Logic Overview, I. and T T T T F F F T F F F F

Logic Overview, I. and T T T T F F F T F F F F Logic Overview, I DEFINITIONS A statement (proposition) is a declarative sentence that can be assigned a truth value T or F, but not both. Statements are denoted by letters p, q, r, s,... The 5 basic logical

More information

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction Introduction I Proofs Computer Science & Engineering 235 Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu A proof is a proof. What kind of a proof? It s a proof. A proof is a proof. And when

More information

Chapter 1 Elementary Logic

Chapter 1 Elementary Logic 2017-2018 Chapter 1 Elementary Logic The study of logic is the study of the principles and methods used in distinguishing valid arguments from those that are not valid. The aim of this chapter is to help

More information

Readings: Conjecture. Theorem. Rosen Section 1.5

Readings: Conjecture. Theorem. Rosen Section 1.5 Readings: Conjecture Theorem Lemma Lemma Step 1 Step 2 Step 3 : Step n-1 Step n a rule of inference an axiom a rule of inference Rosen Section 1.5 Provide justification of the steps used to show that a

More information

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions Review Propositions, propositional operators, truth tables Logical Equivalences. Tautologies & contradictions Some common logical equivalences Predicates & quantifiers Some logical equivalences involving

More information

1 The Foundation: Logic and Proofs

1 The Foundation: Logic and Proofs 1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( ) a declarative sentence that is either true or false, but not both nor neither letters denoting propostions p, q, r, s, T: true

More information

1 The Foundation: Logic and Proofs

1 The Foundation: Logic and Proofs 1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( 명제 ) a declarative sentence that is either true or false, but not both nor neither letters denoting propositions p, q, r, s, T:

More information

Outline. Rules of Inferences Discrete Mathematics I MATH/COSC 1056E. Example: Existence of Superman. Outline

Outline. Rules of Inferences Discrete Mathematics I MATH/COSC 1056E. Example: Existence of Superman. Outline Outline s Discrete Mathematics I MATH/COSC 1056E Julien Dompierre Department of Mathematics and Computer Science Laurentian University Sudbury, August 6, 2008 Using to Build Arguments and Quantifiers Outline

More information

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations Logic Propositions and logical operations Main concepts: propositions truth values propositional variables logical operations 1 Propositions and logical operations A proposition is the most basic element

More information

First order Logic ( Predicate Logic) and Methods of Proof

First order Logic ( Predicate Logic) and Methods of Proof First order Logic ( Predicate Logic) and Methods of Proof 1 Outline Introduction Terminology: Propositional functions; arguments; arity; universe of discourse Quantifiers Definition; using, mixing, negating

More information

Logic and Proof. Aiichiro Nakano

Logic and Proof. Aiichiro Nakano Logic and Proof Aiichiro Nakano Collaboratory for Advanced Computing & Simulations Department of Computer Science Department of Physics & Astronomy Department of Chemical Engineering & Materials Science

More information

(Refer Slide Time: 02:20)

(Refer Slide Time: 02:20) Discrete Mathematical Structures Dr. Kamala Krithivasan Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 5 Logical Inference In the last class we saw about

More information

software design & management Gachon University Chulyun Kim

software design & management Gachon University Chulyun Kim Gachon University Chulyun Kim 2 Outline Propositional Logic Propositional Equivalences Predicates and Quantifiers Nested Quantifiers Rules of Inference Introduction to Proofs 3 1.1 Propositional Logic

More information

The Foundations: Logic and Proofs. Chapter 1, Part III: Proofs

The Foundations: Logic and Proofs. Chapter 1, Part III: Proofs The Foundations: Logic and Proofs Chapter 1, Part III: Proofs Summary Valid Arguments and Rules of Inference Proof Methods Proof Strategies Rules of Inference Section 1.6 Section Summary Valid Arguments

More information

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics Unit I LOGIC AND PROOFS B. Thilaka Applied Mathematics UNIT I LOGIC AND PROOFS Propositional Logic Propositional equivalences Predicates and Quantifiers Nested Quantifiers Rules of inference Introduction

More information

Propositional Logic. Spring Propositional Logic Spring / 32

Propositional Logic. Spring Propositional Logic Spring / 32 Propositional Logic Spring 2016 Propositional Logic Spring 2016 1 / 32 Introduction Learning Outcomes for this Presentation Learning Outcomes... At the conclusion of this session, we will Define the elements

More information

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics CSC 224/226 Notes Packet #2: Set Theory & Predicate Calculus Barnes Packet #2: Set Theory & Predicate Calculus Applied Discrete Mathematics Table of Contents Full Adder Information Page 1 Predicate Calculus

More information

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic CHAPER 1 MAHEMAICAL LOGIC 1.1 undamentals of Mathematical Logic Logic is commonly known as the science of reasoning. Some of the reasons to study logic are the following: At the hardware level the design

More information

Boolean Algebra and Proof. Notes. Proving Propositions. Propositional Equivalences. Notes. Notes. Notes. Notes. March 5, 2012

Boolean Algebra and Proof. Notes. Proving Propositions. Propositional Equivalences. Notes. Notes. Notes. Notes. March 5, 2012 March 5, 2012 Webwork Homework. The handout on Logic is Chapter 4 from Mary Attenborough s book Mathematics for Electrical Engineering and Computing. Proving Propositions We combine basic propositions

More information

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic CS 103 Discrete Structures Chapter 1 Propositional Logic Chapter 1.1 Propositional Logic 1 1.1 Propositional Logic Definition: A proposition :is a declarative sentence (that is, a sentence that declares

More information

ECOM Discrete Mathematics

ECOM Discrete Mathematics ECOM 2311- Discrete Mathematics Chapter # 1 : The Foundations: Logic and Proofs Fall, 2013/2014 ECOM 2311- Discrete Mathematics - Ch.1 Dr. Musbah Shaat 1 / 85 Outline 1 Propositional Logic 2 Propositional

More information

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) (2011 Admission Onwards) I Semester Core Course FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK 1) If A and B are two sets

More information

Intro to Logic and Proofs

Intro to Logic and Proofs Intro to Logic and Proofs Propositions A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. Examples: It is raining today. Washington

More information

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another. Math 0413 Appendix A.0 Logic Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another. This type of logic is called propositional.

More information

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures Formal Logic: Quantifiers, Predicates, and Validity CS 130 Discrete Structures Variables and Statements Variables: A variable is a symbol that stands for an individual in a collection or set. For example,

More information

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide Undergraduate Notes in Mathematics Arkansas Tech University Department of Mathematics Introductory Notes in Discrete Mathematics Solution Guide Marcel B. Finan c All Rights Reserved 2015 Edition Contents

More information

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel LECTURE NOTES on DISCRETE MATHEMATICS Eusebius Doedel 1 LOGIC Introduction. First we introduce some basic concepts needed in our discussion of logic. These will be covered in more detail later. A set is

More information

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations Chapter 1, Part I: Propositional Logic With Question/Answer Animations Chapter Summary Propositional Logic The Language of Propositions Applications Logical Equivalences Predicate Logic The Language of

More information

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques Colin Stirling Informatics Some slides based on ones by Myrto Arapinis Colin Stirling (Informatics) Discrete Mathematics

More information

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS 1.1 - Logical Form and Logical Equivalence Definition. A statement or proposition is a sentence that is either true or false, but not both. ex. 1 + 2 = 3 IS a statement

More information

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1. Chapter 1 Chapter Summary Propositional Logic The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.3) Predicate Logic The Language of Quantifiers (1.4) Logical Equivalences (1.4)

More information

At least one of us is a knave. What are A and B?

At least one of us is a knave. What are A and B? 1. This is a puzzle about an island in which everyone is either a knight or a knave. Knights always tell the truth and knaves always lie. This problem is about two people A and B, each of whom is either

More information

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction. Statements Compounds and Truth Tables. Statements, Negations, Compounds, Conjunctions, Disjunctions, Truth Tables, Logical Equivalence, De Morgan s Law, Tautology, Contradictions, Proofs with Logical Equivalent

More information

Predicate Logic. Andreas Klappenecker

Predicate Logic. Andreas Klappenecker Predicate Logic Andreas Klappenecker Predicates A function P from a set D to the set Prop of propositions is called a predicate. The set D is called the domain of P. Example Let D=Z be the set of integers.

More information

1.1 Statements and Compound Statements

1.1 Statements and Compound Statements Chapter 1 Propositional Logic 1.1 Statements and Compound Statements A statement or proposition is an assertion which is either true or false, though you may not know which. That is, a statement is something

More information

Mathacle. PSet ---- Algebra, Logic. Level Number Name: Date: I. BASICS OF PROPOSITIONAL LOGIC

Mathacle. PSet ---- Algebra, Logic. Level Number Name: Date: I. BASICS OF PROPOSITIONAL LOGIC I. BASICS OF PROPOSITIONAL LOGIC George Boole (1815-1864) developed logic as an abstract mathematical system consisting of propositions, operations (conjunction, disjunction, and negation), and rules for

More information

Inference and Proofs (1.6 & 1.7)

Inference and Proofs (1.6 & 1.7) EECS 203 Spring 2016 Lecture 4 Page 1 of 9 Introductory problem: Inference and Proofs (1.6 & 1.7) As is commonly the case in mathematics, it is often best to start with some definitions. An argument for

More information

Predicate Logic & Quantification

Predicate Logic & Quantification Predicate Logic & Quantification Things you should do Homework 1 due today at 3pm Via gradescope. Directions posted on the website. Group homework 1 posted, due Tuesday. Groups of 1-3. We suggest 3. In

More information

Review: Potential stumbling blocks

Review: Potential stumbling blocks Review: Potential stumbling blocks Whether the negation sign is on the inside or the outside of a quantified statement makes a big difference! Example: Let T(x) x is tall. Consider the following: x T(x)

More information

Discrete Mathematics

Discrete Mathematics Discrete Mathematics Chih-Wei Yi Dept. of Computer Science National Chiao Tung University March 9, 2009 Overview of ( 1.5-1.7, ~2 hours) Methods of mathematical argument (i.e., proof methods) can be formalized

More information

Supplementary Logic Notes CSE 321 Winter 2009

Supplementary Logic Notes CSE 321 Winter 2009 1 Propositional Logic Supplementary Logic Notes CSE 321 Winter 2009 1.1 More efficient truth table methods The method of using truth tables to prove facts about propositional formulas can be a very tedious

More information

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference CSI 2350, Discrete Structures Chapter 1, Logic and Proofs (3) Young-Rae Cho Associate Professor Department of Computer Science Baylor University 1.6. Rules of Inference Basic Terminology Axiom: a statement

More information

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Packet #1: Logic & Proofs. Applied Discrete Mathematics Packet #1: Logic & Proofs Applied Discrete Mathematics Table of Contents Course Objectives Page 2 Propositional Calculus Information Pages 3-13 Course Objectives At the conclusion of this course, you should

More information

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Why Learning Logic? Logic. Propositional Logic. Compound Propositions Logic Objectives Propositions and compound propositions Negation, conjunction, disjunction, and exclusive or Implication and biconditional Logic equivalence and satisfiability Application of propositional

More information

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes: Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements. An inference mechanism (a collection of rules) to

More information

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1) CS100: DISCREE SRUCURES Lecture 5: Logic (Ch1) Lecture Overview 2 Statement Logical Connectives Conjunction Disjunction Propositions Conditional Bio-conditional Converse Inverse Contrapositive Laws of

More information

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014 Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014 1. Translate each of the following English sentences into formal statements using the logical operators (,,,,, and ). You may also use mathematical

More information

Sec$on Summary. Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs

Sec$on Summary. Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs Section 1.7 Sec$on Summary Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction 2 Proofs of Mathema$cal Statements

More information

CSE 20 DISCRETE MATH. Winter

CSE 20 DISCRETE MATH. Winter CSE 20 DISCRETE MATH Winter 2017 http://cseweb.ucsd.edu/classes/wi17/cse20-ab/ Today's learning goals Distinguish between a theorem, an axiom, lemma, a corollary, and a conjecture. Recognize direct proofs

More information

Math 3336: Discrete Mathematics Practice Problems for Exam I

Math 3336: Discrete Mathematics Practice Problems for Exam I Math 3336: Discrete Mathematics Practice Problems for Exam I The upcoming exam on Tuesday, February 26, will cover the material in Chapter 1 and Chapter 2*. You will be provided with a sheet containing

More information

Introduction to Sets and Logic (MATH 1190)

Introduction to Sets and Logic (MATH 1190) Introduction to Sets Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics Statistics York University Sept 18, 2014 Outline 1 2 Tautologies Definition A tautology is a compound proposition

More information

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE 1 CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2015 February 5, 2015 2 Announcements Homework 1 is due now. Homework 2 will be posted on the web site today. It is due Thursday, Feb. 12 at 10am in class.

More information

With Question/Answer Animations. Chapter 1, Part III: Proofs

With Question/Answer Animations. Chapter 1, Part III: Proofs With Question/Answer Animations Chapter 1, Part III: Proofs Summary Valid Arguments and Rules of Inference Proof Methods Proof Strategies Section 1.6 Section Summary Valid Arguments Inference Rules for

More information

Logic and Proofs. (A brief summary)

Logic and Proofs. (A brief summary) Logic and Proofs (A brief summary) Why Study Logic: To learn to prove claims/statements rigorously To be able to judge better the soundness and consistency of (others ) arguments To gain the foundations

More information

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel LECTURE NOTES on DISCRETE MATHEMATICS Eusebius Doedel 1 LOGIC Introduction. First we introduce some basic concepts needed in our discussion of logic. These will be covered in more detail later. A set is

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Mat 243 Exam 1 Review

Mat 243 Exam 1 Review OBJECTIVES (Review problems: on next page) 1.1 Distinguish between propositions and non-propositions. Know the truth tables (i.e., the definitions) of the logical operators,,,, and Write truth tables for

More information

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

2. The Logic of Compound Statements Summary. Aaron Tan August 2017 2. The Logic of Compound Statements Summary Aaron Tan 21 25 August 2017 1 2. The Logic of Compound Statements 2.1 Logical Form and Logical Equivalence Statements; Compound Statements; Statement Form (Propositional

More information

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University Discrete Mathematics Logics and Proofs Liangfeng Zhang School of Information Science and Technology ShanghaiTech University Resolution Theorem: p q p r (q r) p q p r q r p q r p q p p r q r T T T T F T

More information

Manual of Logical Style

Manual of Logical Style Manual of Logical Style Dr. Holmes January 9, 2015 Contents 1 Introduction 2 2 Conjunction 3 2.1 Proving a conjunction...................... 3 2.2 Using a conjunction........................ 3 3 Implication

More information

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows. Chapter 1 Logic 1.1 Introduction and Definitions Definitions. A sentence (statement, proposition) is an utterance (that is, a string of characters) which is either true (T) or false (F). A predicate is

More information

Normal Forms Note: all ppts about normal forms are skipped.

Normal Forms Note: all ppts about normal forms are skipped. Normal Forms Note: all ppts about normal forms are skipped. Well formed formula (wff) also called formula, is a string consists of propositional variables, connectives, and parenthesis used in the proper

More information

Logic, Sets, and Proofs

Logic, Sets, and Proofs Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Operators. A logical statement is a mathematical statement that can be assigned a value either true or false.

More information

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP) Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning Terminology, Notations, Definitions, & Principles: Mathematical Proof and Proving (MPP) 1. A statement

More information

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte Handout on Logic, Axiomatic Methods, and Proofs MATH 3181 001 Spring 1999 David C. Royster UNC Charlotte January 18, 1999 Chapter 1 Logic and the Axiomatic Method 1.1 Introduction Mathematicians use a

More information

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013 CMPSCI 250: Introduction to Computation Lecture 11: Proof Techniques David Mix Barrington 5 March 2013 Proof Techniques Review: The General Setting for Proofs Types of Proof: Direct, Contraposition, Contradiction

More information

Section 1.1 Propositions

Section 1.1 Propositions Set Theory & Logic Section 1.1 Propositions Fall, 2009 Section 1.1 Propositions In Chapter 1, our main goals are to prove sentences about numbers, equations or functions and to write the proofs. Definition.

More information

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1 EECS 70 Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1 Getting Started In order to be fluent in mathematical statements, you need to understand the basic framework of the language

More information

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel Lecture Notes on DISCRETE MATHEMATICS Eusebius Doedel c Eusebius J. Doedel, 009 Contents Logic. Introduction............................................................................... Basic logical

More information

CSE 20 DISCRETE MATH. Fall

CSE 20 DISCRETE MATH. Fall CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Distinguish between a theorem, an axiom, lemma, a corollary, and a conjecture. Recognize direct proofs

More information

Tribhuvan University Institute of Science and Technology Micro Syllabus

Tribhuvan University Institute of Science and Technology Micro Syllabus Tribhuvan University Institute of Science and Technology Micro Syllabus Course Title: Discrete Structure Course no: CSC-152 Full Marks: 80+20 Credit hours: 3 Pass Marks: 32+8 Nature of course: Theory (3

More information

ICS141: Discrete Mathematics for Computer Science I

ICS141: Discrete Mathematics for Computer Science I ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Originals slides by Dr. Baek and Dr. Still, adapted by J. Stelovsky Based on slides Dr. M. P. Frank and Dr. J.L. Gross

More information

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional) Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.6) TOPICS Propositional Logic Logical Operators Truth Tables Implication Logical Equivalence Inference Rules What you should know about propositional

More information

PROPOSITIONAL CALCULUS

PROPOSITIONAL CALCULUS PROPOSITIONAL CALCULUS A proposition is a complete declarative sentence that is either TRUE (truth value T or 1) or FALSE (truth value F or 0), but not both. These are not propositions! Connectives and

More information

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them. Proofs A mathematical system consists of axioms, definitions and undefined terms. An axiom is assumed true. Definitions are used to create new concepts in terms of existing ones. Undefined terms are only

More information

Proofs of Mathema-cal Statements. A proof is a valid argument that establishes the truth of a statement.

Proofs of Mathema-cal Statements. A proof is a valid argument that establishes the truth of a statement. Section 1.7 Proofs of Mathema-cal Statements A proof is a valid argument that establishes the truth of a statement. Terminology A theorem is a statement that can be shown to be true using: definitions

More information

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003 MATH 22 Lecture F: 9/18/2003 INFERENCE & QUANTIFICATION Sixty men can do a piece of work sixty times as quickly as one man. One man can dig a post-hole in sixty seconds. Therefore, sixty men can dig a

More information

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017 3. The Logic of Quantified Statements Summary Aaron Tan 28 31 August 2017 1 3. The Logic of Quantified Statements 3.1 Predicates and Quantified Statements I Predicate; domain; truth set Universal quantifier,

More information

Proof strategies, or, a manual of logical style

Proof strategies, or, a manual of logical style Proof strategies, or, a manual of logical style Dr Holmes September 27, 2017 This is yet another version of the manual of logical style I have been working on for many years This semester, instead of posting

More information

Discrete Structures for Computer Science

Discrete Structures for Computer Science Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #4: Predicates and Quantifiers Based on materials developed by Dr. Adam Lee Topics n Predicates n

More information

Why Proofs? Proof Techniques. Theorems. Other True Things. Proper Proof Technique. How To Construct A Proof. By Chuck Cusack

Why Proofs? Proof Techniques. Theorems. Other True Things. Proper Proof Technique. How To Construct A Proof. By Chuck Cusack Proof Techniques By Chuck Cusack Why Proofs? Writing roofs is not most student s favorite activity. To make matters worse, most students do not understand why it is imortant to rove things. Here are just

More information

STRATEGIES OF PROBLEM SOLVING

STRATEGIES OF PROBLEM SOLVING STRATEGIES OF PROBLEM SOLVING Second Edition Maria Nogin Department of Mathematics College of Science and Mathematics California State University, Fresno 2014 2 Chapter 1 Introduction Solving mathematical

More information

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications: Tools for reasoning: Logic Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications: 1 Why study propositional logic? A formal mathematical language for precise

More information

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier Section 1.4 Section Summary Predicate logic Quantifiers Universal Quantifier Existential Quantifier Negating Quantifiers De Morgan s Laws for Quantifiers Translating English to Logic Propositional Logic

More information

Topics in Logic and Proofs

Topics in Logic and Proofs Chapter 2 Topics in Logic and Proofs Some mathematical statements carry a logical value of being true or false, while some do not. For example, the statement 4 + 5 = 9 is true, whereas the statement 2

More information

DISCRETE MATHEMATICS BA202

DISCRETE MATHEMATICS BA202 TOPIC 1 BASIC LOGIC This topic deals with propositional logic, logical connectives and truth tables and validity. Predicate logic, universal and existential quantification are discussed 1.1 PROPOSITION

More information

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

CITS2211 Discrete Structures Proofs

CITS2211 Discrete Structures Proofs CITS2211 Discrete Structures Proofs Unit coordinator: Rachel Cardell-Oliver August 13, 2017 Highlights 1 Arguments vs Proofs. 2 Proof strategies 3 Famous proofs Reading Chapter 1: What is a proof? Mathematics

More information

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box.

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box. Question 1. [10 marks] Part (a) [2 marks] What is the decimal (base 10) representation of the binary number 110101? Show your work and place your final answer in the box. 2 0 + 2 2 + 2 4 + 2 5 = 1 + 4

More information

Section 3.1: Direct Proof and Counterexample 1

Section 3.1: Direct Proof and Counterexample 1 Section 3.1: Direct Proof and Counterexample 1 In this chapter, we introduce the notion of proof in mathematics. A mathematical proof is valid logical argument in mathematics which shows that a given conclusion

More information