Chapter 1 Elementary Logic

Size: px
Start display at page:

Download "Chapter 1 Elementary Logic"

Transcription

1 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 the student to understand the principles and methods used in each step of a proof. The starting point in logic is the term statement (or proposition) which is used in a technical sense. We introduce a minimal amount of mathematical logic which lies behind the concept of proof. In mathematics and computer science, as well as in many places in everyday life, we face the problem of determining whether something is true or not. Often the decision is easy. If we were to say that = 4, most people would immediately say that the statement was false. If we were to say = 4, then undoubtedly the response would be of course or everybody knows that. However, many statements are not so clear. A statement such as the sum of the first n odd integers is equal to n 2 in addition to meeting with a good deal of consternation, might be greeted with a response of Is that really true? or why? This natural response lies behind one of the most important concepts of mathematics, that of proof. 1.1 Statements and their connectives When we prove theorems in mathematics, we are demonstrating the truth of certain statements. We therefore need to start our discussion of logic with a look at statements, and at how we recognize certain statements as true or false. Definition. (Statement) A statement is a declarative sentence that is either true or false. Remark. A statement is also called a proposition. Example 1. The following sentences are statements (a) Gaza is a Palestinian city. (b) 2 1 equals 3. (c) The equation x = 0 has two real solutions. (d) IUG is a Palestinian university. (e) Earth is the closest planet to the sun. Example 2. The following sentences are NOT statements (a) How are you? 1

2 (b) Gaza is a beautiful city. (c) The sky is reach. (d) 4+1. (e) I will come to school next week. (f) Would you visit us tomorrow. (g) He lives in Gaza. (h) x 2 = 9. Remark. Commends, questions, and opinions are not statements. Compound statements The statements in Example 1 are simple statements since they do not include any logical connective. A compound statement is statement that has at least one logical connective. Example 1. The following sentences are compound statements (a) Gaza is a Palestinian city and Palestine is an arabic country. (b) 2 1 equals 3 or 7 is divisible by 2. (c) If 5 is an integer, then 5 is a real number. (d) 2 divides 6 if and only if 2 3 = 6. (e) π is not a rational number. Notation. We will denote simple statements by lowercase letters p, q, r,... and we will denote compound statements by uppercase letters P, Q, R,... Fundamental connectives To form new compound statements out of old ones we use the following five fundamental connectives: 1. not symbolized by. 2. and symbolized by. 3. or symbolized by. 4. If..., then... symbolized by if and only if... symbolized by Page 2 of 39

3 Page 3 of 39 Truth tables ( ) A truth table is a mathematical table used in logic which determines the truth values of a compound statement form for all logical possibilities of its components. A truth table has one column for each component and one final column for the compound statement. Each row of the truth table contains one possible truth value for each component and the result of the logical operation for those values. We will use T for true and F for false. Negation Definition. (Negation) The connective is called the negation and it may be placed before any statement p to form a compound statement p (read: not p or the negation of p). The truth values for p are defined as follows: p T F p F T Example. Write the negation of each of the following: (a) 2 is a rational number. (b) The sine function is continuous at x = 0. (c) 2 divides 6. Conjunction Definition. (Conjunction) The connective is called the conjunction and it may be placed between any two statements p and q to form a compound statement p q (read: p and q or conjunction of p and q). The truth values for p q are defined as follows: p q p q T T T T F F F T F F F F

4 Page 4 of 39 Remarks. (1) The statement p q is true only when both p and q are true. (2) In a compound statement with two components p and q there are 2 2 = 4 possibilities, called the logical possibilities. In general, if a compound statement has n components, then there are 2 n logical possibilities. Example 1. Indicate which of the following statements is T and which is F: (a) = 2 and 3 1 = 2. (b) 5 is an integer and 1 3 = 1. (c) 5 0 = 4 and 5 1 = 4. (d) 5 2 = 5 and 5 3 = 10. Example 2. Construct a truth table for the compound statement p ( q). Remark. The English words but, while, and although are usually translated symbolically with the conjunction connective, because they have the same meaning as and. Example. Translate the following statement into logical form using connectives: 8 is divisible by 2 but it is not divisible by 3. Exercise 1.1 (1-24)

5 Page 5 of Three more connectives In this section we will study the connectives or, If..., then..., and...if and only if.... Disjunction In English language there is an ambiguity involved in the use of or. Inclusive or: The statement I will get a Master degree or a Ph.D indicate that the speaker will get both the Master degree and the Ph. D. Exclusive or: But in the statement I will study mathematics or physics means that only one of the two fields will be chosen. In mathematics and logic we can not allow ambiguity. Hence we must decide on the meaning of the word or. Definition. (Disjunction) The connective is called the disjunction and it may be placed between any two statements p and q to form the compound statement p q (read: p or q or the disjunction of p and q). The truth values for p q are defined as follows: p q p q T T T T F T F T T F F F Remark. The statement p q is true when at least one of p and q is true. Example 1. Indicate which of the following statements is T and which is F: (a) 1 1 = 1 or = 6. (b) 4 = 4 or 4 > 4. (c) 1 = 2 or (2) 2 = 1. (d) 7 is a prime number or 7 is an odd number. Example 2. Construct the truth table for the compound statement [p ( q)].

6 Page 6 of 39 Definition. (Equivalent statements) Two statements P and Q, simple or compound, are said to be ( logically) equivalent if P and Q have the same truth values in each of all the logical possibilities. In such case we write P Q. Example. Show that [p ( q)] p q. Exercise. Show that [p q] ( p) ( q) and [p q] ( p) ( q). Conditional Definition. (Conditional) The connective is called the conditional and it may be placed between any two statements p and q to form the compound statement p q (read: if p then q). The statement p q is defined to be equivalent to the statement [p ( q)]. The truth values of p q The truth values of p q are given by the following table p q p q T T T T F F F T T F F T Remarks. (1) The statement p q is false only when p is true and q is false. (2) In a conditional statement p q, p is called the antecedent or sufficient condition and q is called the consequent or necessary condition. Example 1. Determine whether the following statements are T or F: (a) If 2 4 = 2, then 2 2 = 4.

7 Page 7 of 39 (b) If 7 < 9, then 7 < 8. (c) If 3 > 3, then 4 > 3. (d) If 5 < 6, then 5 is even. Example 2. Construct the truth table for the compound statement (p q) r. Example 3. Write the following conditional statement as a conjunction: If = 5, then 5 2 = 3. Example 4. Is the statement p q equivalent to the statement q p? Explain.

8 Page 8 of 39 Remark. We use p q to translate the following statements: 1. If p, then q. 2. p only if q. 3. q if p. 4. p is sufficient to q. 5. q is necessary for p. 6. q whenever p. Biconditional Definition. (Biconditional) The connective is called the biconditional and it may be placed between any two statements p and q to form the compound statement p q (read: p if and only if q). The statement p q is defined to be equivalent to the statement (p q) (q p). The truth values of p q The truth values of p q are given by the following table p q p q T T T T F F F T F F F T Remark. The statement p q is true when both p and q have the same truth values. Example 1. Determine whether the following statements are T or F: (a) 1 is odd if and only if 3 is even. (b) 5 = 5 if and only if 5 > 0. (c) 4 = 2 if and only if (2) 2 = 4. (d) 5 > 6 if and only if 5 is even.

9 Page 9 of 39 Example 2. Construct the truth table for the compound statement (p q) p. Remark. We use p q to translate the following statements: 1. p if and only if q. 2. p is equivalent to q. 3. p is necessary and sufficient for q. Example 3. Translate the given compound statements into a symbolic form using the suggested symbols. (a) A natural number is even if and only if it is divisible by 2. (E, D) (b) A matrix has an inverse whenever its determinant is not zero. (I, Z) (c) A function is differentiable at a point only if it is continuous at that point. (D, C). Exercise 1.2 (1-21)

10 Page 10 of Tautology, Implication, and Equivalence Tautology ( ) Example. Construct the truth table for p p. Definition. (Tautology) A statement is said to be a tautology if it is true for every assignment of truth values to its components. Example. Show that q [p (p q)] is a tautology. Remark. Tautologies are important both because a statement that has the form of a tautology may be used as a step in a proof, and because tautologies are used to create rules for making deductions in a proof. Implication Definition. (Implication) Let P and Q be two statements, compound or simple. If the conditional statement P Q is a tautology, then it is called an implication and it is denoted by P Q (read: P implies Q). Example 1. Show that p p is an implication.

11 Page 11 of 39 Example 2. Show that (p q) (q p). Exercise: Show that 1. p (p p). 2. (p q) q. Theorem 1.1. Let p and q be any two statements. Then (a) Law of addition: p (p q) (b) Law of simplification: (p q) p (c) Disjunctive syllogism (The way that affirms by denying): [(p q) p] q. ( ) Proof. By truth tables.

12 Page 12 of 39 Equivalence Definition. (Equivalence) Let P and Q be two statements, compound or simple. If the biconditional statement P Q is a tautology, then it is called an equivalence and it is denoted by P Q (read: P is equivalent to Q). Remark. P Q and P Q have the same meaning and we will use the two notations interchangeably. Definition. (Converse and contrapositive of a conditional statement) Let p and q be statements. (1) The converse of p q is q p. (2) The contrapositive of p q is q p. Example. Determine whether p q and its converse are equivalent or not. Theorem 1.2. Let p and q be any two statements. Then (a) Law of double negation: ( p) p (b) Commutative law: (p q) (q p) and (p q) (q p) (c) Laws of idempotency: (p p) p (p p) p. (d) Contrapositive law: (p q) ( q p) Proof. By truth tables.

13 Page 13 of 39 Theorem 1.3. (De Morgan s laws) Let p and q be any two statements. Then (a) (p q) p q (b) (p q) p q Proof. Done Definition. (Denials) A denial of a statement P is any statement equivalent to P. Remark. A statement has only one negation, but always has many denials. Example. Give a useful denial of each statement. (a) 3 3. (b) The function f(x) = sin x is odd and increasing. (c) The function sin x has positive first and second derivatives at x = 0. (d) If the number 5.1 is an integer, then it is positive. Theorem 1.4. Let p, q, and r be any statements. Then (a) Associative laws: (p q) r p (q r) (p q) r p (q r) (b) Distributive laws: p (q r) (p q) (p r) p (q r) (p q) (p r) (c) Transitive law: (p q) (q r) (p r)

14 Page 14 of 39 Proof. By truth tables. Theorem 1.5. Let p, q, r, and s be any statements. Then (a) Constructive dilemmas: [(p q) (r s)] [(p r) (q s)] [(p q) (r s)] [(p r) (q s)] (b) Destructive dilemmas: [(p q) (r s)] [( q s) ( p r)] [(p q) (r s)] [( q s) ( p r)] Proof. By truth tables. Theorem 1.6. Let p and q be any two statements. Then (a) Modus Ponens (The way that affirms by affirming): [(p q) p] q (b) Modus Tollens (The way that denies by denying): [(p q) q] p (c) Reduction ad Absurdum ( Proof. By truth tables. ): (p q) [(p q) (q q)] Example. The following example may help in understanding Modus Ponens and Modus Tollens. Statement p q: If I am in Gaza, then I am in Palestine. Modus Ponens: I am in Gaza. Therefore, I am in Palestine. Modus Tollens: I am not in Palestine. Therefore, I am not in Gaza. Exercise 1.3: (1 20)

15 Page 15 of Contradiction Definition. (Contradiction) A statement whose truth values are all false for every assignment of truth values to its components is called a contradiction. Example. Show that p ( p) is a contradiction. Remark. The negation of a tautology is a contradiction. In other words, if t is a tautology, then t is a contradiction; conversely, if c is a contradiction, then c is a tautology. Theorem 1.7. Let t, c, and p be a tautology, a contradiction, and an arbitrary statement, respectively. Then (a) p t p, p t t, (b) p c p, p c c, (c) c p, and p t. Proof. By truth tables. Exercise 1.4: (1-5) 1.5 Deductive reasoning ( ) Deductive reasoning is one of the two basic forms of valid reasoning. While inductive reasoning argues from the particular to the general, deductive reasoning argues from the general to a specific instance. The basic idea of deductive reasoning is that if something is true for a class of things in general, this truth applies to all legitimate members of that class. The key, then, is to be able to properly identify members of the class. Miscategorizing will result in invalid conclusions. One of the most common and useful forms of deductive reasoning is the syllogism. The syllogism is a specific form of argument that has three easy steps. Every X has the characteristic Y. This thing is X. Therefore, this thing has the characteristic Y.

16 Page 16 of 39 Example. All numbers ending in 0 or 5 are divisible by 5. The number 35 ends with a 5. Therefore, 35 is divisible by 5. Deductive reasoning, also deductive logic or logical deduction or, informally, top-down logic, is the process of reasoning from one or more statements (premises) to reach a logically certain conclusion. Thus; deductive reasoning is a method of verification that use logic to draw conclusions based on statements accepted as true (premises). It links premises with conclusions. If all premises are true, the terms are clear, and the rules of deductive logic are followed, then the conclusion reached is necessarily true. Rules of inference The 16 laws summarized in Theorem 1.1 through 1.6 are very useful tools for justifying logical equivalences and implications. We shall call these 16 laws the rules of inference. It should be noted that these rules are selected just for convenient references and are not intended to be independent of each other. For instance, the Contrapositive Law can be established deductively by using other laws and relevant definitions, as the next example shows. Example 1. Prove the Contrapositive Law, (p q) [( q) ( p)], using relevant definitions and other rules of inference. Example 2. Prove the disjunction syllogism, [(p q) ( p)] q, by deductive reasoning.

17 Page 17 of 39 Example 3. Prove the following Exportation law: [(p q) r] [p (q r)]. Example 4. Use deductive reasoning to prove that [(p r) (q s)] [(p q) (r s)]. Remark. If we use truth table to prove the above statement, we need 2 4 = 16 cases. Example 5. Prove the tautology (p q) [p (p q)] by deductive method.

18 Page 18 of 39 Example 6. (Exam) Prove [(p r) (q r)] [(p q) r] by deductive method. Example 7. Prove [(p q) (p r)] p (q r) by deductive method. Exercise 1.5 (1-20) 1.6 Quantification Rules Some sentences depend on some variables and become statements when the variables are replaced by a certain values. Definition. (Open sentence) A sentence containing one or more variables and which becomes a statement only when the variables are replaced by certain values is called an open sentence (or a propositional predicate). Notation. An open sentence P with variables x 1, x 2,, x n will be denoted by P (x 1, x 2,, x n ). Example 1. P (x) : x + 1 = 0 is an open sentence. P (0) is false but P ( 1) is true. Example 2. P (x, y) : x + y = 1 is an open sentence. P (0, 1) is true but P (1, 1) is false.

19 Page 19 of 39 Definition. (Universe) The set of all objects that can be considered in an open sentence is called the universe or the domain of discourse. Remark. In many cases the universe will be understood from the context. However, there are times when it must be specified explicitly. Definition. (Truth set) The collection of objects from the universe that may be substituted to make an open sentence a true statement is called the truth set of the sentence. Example. Consider the open sentence P (x) : x 2 < 5. The truth set of this sentence depends on the universe we choose. If we choose the universe to be the set of natural numbers N, then the truth set is {1, 2}. If we choose the universe to be the set of real numbers R, then the truth set is the open interval ( 5, 5). Definition. (Equivalent open sentences) With a universe specified, two open sentences P (x) and Q(x) are equivalent if they have the same truth set. Example. Let the universe be the set R. (a) The sentences 4x + 2 = 10 and x = 2 are equivalent open sentences. (b) The sentences x 2 = 4 and x = 2 are not equivalent open sentences. Universal and existence quantifiers Definition. (Universal and existence quantifiers) Let P (x) be an open sentence. (1) is called the universal quantifier and the statement ( x)(p (x)) (read: for all x P (x)) is true when P (x) is true for all x in the universe. (2) is called the existential quantifier and the statement ( x)(p (x)) (read: there exists x such that P (x)) is true when there exists at least one x in the universe such that P (x) is true. Example. Determine whether the following statements are true or false: (a) Let U = {1, 2, 3, 4} be the domain of discourse. ( x)(x + 2 U) ( x)(x + 1 = 4) (b) Let U = R be the universe. ( x)(x 1) ( x)(x 5) ( x)( x 0) ( x)( x < 0) ( x)(x > 0 or x < 0).

20 Page 20 of 39 Remark. In general, a sentence of the form All P (x) are Q(x) should be symbolized ( x)[p (x) Q(x)]. And, in general, a sentence of the form Some P (x) are Q(x) should be symbolized ( x)(p (x) Q(x)). Example. Translate the following statements into logical language using a quantifier and specify the domain of discourse in each case. (a) All mathematics students study Math (b) Some arabs are not moslems. (c) The equation x 2 + x = 5 has a solution. (d) cos 2 x + sin 2 x = 1 (e) All integers are rational numbers. (f) Some rational numbers are integers. Remarks. 1. for every, for each, and for all have the same meaning in mathematics. 2. for some, there is, at least one and there exists have the same meaning in mathematics. 3. In less formal expressions, we often put the quantifier after the sentence. Example. [f(x) = 0 x] [( x)(f(x) = 0)] ( x)(f(x) = 0) [f(x) = 0 for some x]

21 Page 21 of 39 Equivalent quantified sentences Definition. (1) Two quantified sentences are equivalent in a given universe if and only if they have the same truth value in that universe. (2) Two quantified sentences are equivalent if and only if they are equivalent in every universe. Example 1. Let the universe be U = N. Show that ( x)(x > 0) and ( x)(x 1) are equivalent. Example 2. Let the universe be U = Z. Show that ( x)(x 2 = 2) and ( x)(x 2 = 3) are equivalent. Remark. Statements of the form Every element of the set A has the property P and Some element of the set A has property P occur so frequently that abbreviated symbolic forms are desirable. (a) Every element of the set A has the property P could be restated as If x A, then... and symbolized by ( x A)(P (x)). (b) Some element of the set A has property P is abbreviated by ( x A)(P (x)). Example 1. Consider the definition of a rational number The real number x is rational if and only if there are integers p and q, with q 0 such that x = p/q. It may symbolized: x is rational if and only if ( p Z)( q Z)(q 0 x = p q ). Example 2. The statement For every rational number there is a larger integer may be symbolized by ( x)[(x Q) ( z)(z Z z > x)] or ( x Q)( z Z)(z > x).

22 Page 22 of 39 Rule of quantifier negation Remark. Let the domain of discourse be U = {a 1, a 2,, a n }. Then 1. The statement ( x)(p (x)) means P (a 1 ) P (a 2 ) P (a n ). 2. The statement ( x)(p (x)) means P (a 1 ) P (a 2 ) P (a n ). Definition. (Quantifier negation) (1) [( x)(p (x))] ( x)( P (x)) (2) [( x)(p (x))] ( x)( P (x)) Example 1. Which of the following is equivalent to the negation of the statement All functions are continuous (a) All functions are not continuous. (b) Some functions are continuous. (c) Some functions are not continuous. Example 2. Find an equivalent statement to the negation of the statement Some rational numbers are integers by using quantifier negation. Example 3. State in words the negation of the statement For all x Z, if x is divisible by 6, then x is divisible by 3.

23 Page 23 of 39 Statements with more than one quantifier Many statements have more than one quantifier. We must deal with each in succession, starting from the left. Remarks. 1. The statement ( x)( y)(p (x, y)) is true when ( y)(p (x, y)) is true for all x in the domain of discourse. 2. The statement ( x)( y)(p (x, y)) is true when ( y)(p (x, y)) is true for all x in the domain of discourse. 3. The statement ( x)( y)(p (x, y)) is true when ( y)(p (x, y)) is true for at least one x in the domain of discourse. 4. The statement ( x)( y)(p (x, y)) is true when ( y)(p (x, y)) is true for at least one x in the domain of discourse. Example 1. Let U = {1, 2, 3} and let P (x, y) : x + y = 6. Then ( x)( y)(p (x, y)) means ( y)(p (1, y)) and ( y)(p (2, y)) and ( y)(p (3, y)) Example 2. Determine which of the following statements is true and which is false using the universe U = R: (a) ( x)( y)(x + y = 0) (b) ( x)( y)(x + y = 0) (c) ( x)( y)(x 2 + y 2 = 1) (d) ( y)( x)(x y) (e) ( y)( x)(x y) (f) ( x)( y)( z)(xy = xz) Remarks. Great care must be taken in proofs that contain expressions involving more than one quantifier. Here are some manipulations of quantifiers that permit valid deductions. 1. ( x)( y)p (x, y) ( y)( x)p (x, y) 2. ( x)( y)p (x, y) ( y)( x)p (x, y) 3. ( x)( y)p (x, y) ( y)( x)p (x, y) 4. ( x)[p (x) Q(x)] [( x)p (x) ( x)q(x)] 5. ( x)[p (x) Q(x)] [( x)p (x) ( x)q(x)] 6. [( x)p (x) ( x)q(x)] ( x)[p (x) Q(x)] 7. ( x)[p (x) Q(x)] [( x)p (x) ( x)q(x)] 8. ( x)[p (x) Q(x)] [( x)p (x) ( x)q(x)] Example. Determine which of the following statements is true and which is false using the universe U = R:

24 Page 24 of 39 (a) ( x)( x 2 = x ) ( x)(x 2 = x 2 ) (b) ( x)(x 0 x < 0) (c) ( x)(x 0 x has a multiplicative inverse.) (d) ( x)(x 0 x < 0) (e) ( x)(x 0) ( x)(x < 0) Exercise 1.6 (1-5) Additional Exercises 1. Let U = {a, b}. Prove that ( x)( y)p (x, y) ( y)( x)p (x, y). 2. Use quantifiers to translate the following statements into symbolic forms. The universe for each is given in parentheses (a) All functions are continuous. (All functions) (b) Some functions are both continuous and differentiable. (All functions) (c) Every even integer is divisible by 2. (All integers) (d) If x is an even integer, then x + 1 is odd.(all integers) (e) No right triangle is isosceles. (All triangles) (f) Every nonzero real number is positive or negative. (Real numbers) (g) Every integer is greater than 4 or less than 6. (Real numbers) 3. Give an English translation for each statement. The universe is given in parentheses. (a) ( x)(x 1). (U = N) (b) ( x)(x 0 x 0). (U = R) (c) ( x)(x is prime x 2 x is odd). (U = N) (d) ( x)( x < 0). (U = R) 4. Determine whether the following statements are true or false where the universe for each statement is the given set U. (a) ( x)(x = 0); U = R. (b) ( x)( x Z); U = Z. 2 (c) ( x)( y)(x > y x < y); U = R. (d) ( x)( y)(x > y x < y); U = R. (e) ( x)( y)(x + y > 0); U = Z. (f) ( x)(x > 0 x < 0); U = Z. (g) ( x)(x > 0) and ( x)(x < 0); U = Z. (h) ( x)( x 2 < 0); U = R. (i) ( x)( x 2 > 0); U = R.

25 Page 25 of Proof of validity One of the most important task of a logician is the testing of arguments. An argument is the assertion that a statement, called the conclusion, follows from other statements, called the hypotheses or premises. An argument is considered to be valid if the conjunction of the hypotheses implies the conclusion. Example 1. The following is an argument in which the first two statements are hypotheses, and the last statement is the conclusion. All men are tall. Ali is a man. Therefore Ali is tall. The above argument may be symbolized as follows: H1. All men are tall. H2. Ali is a man. C Ali is tall. Example 2. The following is an argument in which the first four statements are hypotheses, and the last statement is the conclusion. If he studies mathematics, then he will earn a good life. If he studies physics, then he will be happy. If he will earn a good life or he will be happy, then his university tuition is not wasted. His university tuition is wasted. Therefore, he studies neither mathematics nor physics. The above argument may be symbolized as follows: H1. M E. H2. P H. H3. (E H) W. H4. W. C M P This argument is valid if the the following is true (M E) (P H) [(E H) W )] W M P To establish the validity of this argument by means of a truth table would require a table with 32 rows. But we can prove that this argument is valid by deducing the conclusion from the hypotheses in a few steps using the rules of inference.

26 Page 26 of 39 Proof.

27 Page 27 of 39 Definition. (Formal proof of validity) A formal proof of validity for a given argument is a sequence of statements each of which is either a hypotheses of the argument or follows from preceding statement by a known valid argument, ending with the conclusion of the argument. Example 1. Construct a formal proof of validity for the following argument W (H L) (W H) D/ W D. Example 2. Construct a formal proof of validity for the following argument L M (M N) (L K) P L/ K Indirect proof There are another method of proof called indirect proof or the proof by reduction ad absurdum. An indirect proof of validity is done by including, as an additional hypotheses, the negation of the conclusion, and then deriving a contradiction. As soon as a contradiction is obtained, the proof is complete.

28 Page 28 of 39 Example 1. Give an indirect proof of validity for the following argument: Proof. (p q) r s (p u) q s/ r Example 2. Give an indirect proof of validity for the following argument: Proof. A B B D/ A D

29 Page 29 of 39 Mathematical Proofs Proofs are essential in mathematical reasoning because they demonstrate that the conclusions are true. Generally speaking, a mathematical explanation for a conclusion has no value if the explanation cannot be backed up by an acceptable proof. A proof is a complete justification of the truth of a statement called a theorem. It generally begins with some hypotheses stated in the theorem and proceeds by correct reasoning to the claimed statement. It is nothing more than an argument that presents a line of reasoning explaining why the statement follows from known facts. Basic Proof Rules The following four rules provide guidance about what statements are allowed in a proof, and when. (1) At any time state an assumption, an axiom, or a previously proved result. (2) The replacement rule: At any time state a statement equivalent to any statement earlier in the proof. (3) The tautology rule: At any time state a statement whose symbolic translation is a tautology. (4) The modus ponens rule: At any time after p and p q appear in a proof, state that q is true. Remark. The modus ponens rule is the most fundamental rule of reasoning. It is based on the tautology [(p q) p] q. Methods of Mathematical Proof There are several methods of proof. Here we introduce the five basic methods of proof. (1) DIRECT PROOF: A direct proof is a logical step-by-step argument from the given conditions to the conclusion. (2) PROOF BY (EXHAUSTION) CASE ANALYSIS: In this method we prove a statement by dividing it into a finite number of cases and proving each one separately. (3) PROOF BY CONTRAPOSITION: A proof by contraposition or contrapositive proof for a conditional statement p q makes use of the tautology (p q) ( q p). It is an indirect proof method in which we first give a direct proof of q p and then conclude by replacement that p q. (4) PROOF BY CONTRADICTION : A proof by contradiction is an indirect proof method. It is based on the tautology p [ p ( q q)]. That is, to prove a statement p is true, we prove that the statement p ( q q) is true for some statement q. The logic behind such a proof is that if a statement cannot be false, then it must be true. Thus, to prove by contradiction that a statement p is true, we temporarily assume that p is false and then see what would happen. If what happens is an impossibility-that is, a contradiction-then we know that p must be true.

30 Page 30 of 39 (5) PROOF BY MATHEMATICAL INDUCTION: Proof by mathematical induction is a very useful method in proving the validity of a mathematical statement ( n)p (n) involving integers n greater than or equal to some initial integer n 0. Advances for writing proofs There is no unified method to write a mathematical proof. However there are certain techniques that are often useful when writing proofs. Here are some advances that may help in writing correct proofs. How to start Begin a proof by rewriting what you are given and what you are asked to prove in a more convenient form. Often this involves converting word to symbols and utilizing the definitions of the terms used in the statements. Justify each step As a general rule, when you write a step in a proof, ask yourself if deducing that step is valid in the sense that it uses one of the four basic proof rules above. If the step follows as a result of the use of a tautology, it is not necessary to cite the tautology in your proof. In fact, with practice you should eventually come to write proofs without purposefully thinking about tautologies. What is necessary is that every step be justifiable. Proving conditional statements p = q (conditional proof) The most famous example is the direct proof of statements of the form p = q which proceeds in a step-by-step fashion from the condition p to the conclusion q. Since p q is false only when p is true and q is false, it suffices to show that this situation cannot happen. The direct way to proceed is to assume that p is true and show (deduce) that q is also true. A direct proof of p = q will have the following form: Direct proof of p = q: Assume p.. Therefore, q. Proving biconditional statements p q Proofs of biconditional statements p q often make use of the tautology (p q) (p q) (q p). Proofs of p q generally have the following two-part form:

31 Page 31 of 39 Two-Part Proof Of p q (i) Show p = q. (ii) Show q = p. Therefore, p q. In some cases it is possible to prove a biconditional statement p q that uses the connective throughout. This amounts to starting with p and then replacing it with a sequence of equivalent statements, the last one being q. With n intermediate statements R 1, R 2,..., R n, a biconditional proof of p q has the form: Biconditional Proof Of p q p R 1 R 2. R n q. When to use proof by contradiction Proof by contradiction is a natural way to proceed when negating the conclusion gives you something concrete to manipulate. A proof by contradiction has the following form: Proof of p by contradiction: Assume p.. Therefore, q.. Therefore, q. Hence, q q a contradiction. Remark. Two aspects about proofs by contradiction are especially noteworthy. First, this method of proof can be applied to any proposition p, whereas direct proofs and proofs by contraposition can be used only for conditional statements. Second, the proposition q does not appear on the left side of the tautology p = (q q). The strategy of proving p by proving p = (q q) then, has an advantage and a disadvantage. We do not know what proposition to use for q, but any proposition that will do the job is a good one. This means a proof by contradiction may require a spark of insight to determine a useful q. Proof By Experiment Although you cannot generally prove statements by experiment, many proofs can be done with the help of experimenting. One typically looks at simple cases to gain insight and this insight results in a proof.

32 Page 32 of 39 Consider the statement Every odd integer is the sum of two consecutive integers. Trying a few small cases we have 3 = 1 + 2, 5 = 2 + 3, 7 = It seems that a general pattern is 2n + 1 = n + (n + 1) and indeed this gives us a proof. Proving Uniqueness To prove an object is unique assume that a and b are two objects with the desired property and use this property together with other known information to show that a = b. Proofs Involving Quantifiers Now we discuss specifically the proof methods for statements with quantifiers. (1) Proving ( x)p (x) To prove a statement of the form ( x)p (x), we must show that P (x) is true for every object x in the universe. A direct proof is begun by letting x represent an arbitrary object in the universe, and then showing that is true for that object. In the proof we may use only properties of x that are shared by every element of the universe. Then, since x is arbitrary, we can conclude that is ( x)p (x) true. Thus a direct proof of ( x)p (x) has the following form: Direct proof of ( x)p (x) Let x be an arbitrary object in the universe. (The universe should be named or its objects should be described.). Hence P (x) is true. Since x is arbitrary, ( x)p (x) is true. (2) Proving ( x)p (x) There are several ways to prove existence theorems-that is, statement of the form ( x)p (x). In a constructive proof we actually name an object a in the universe such that P (a) is true, which directly verifies that the truth set of is nonempty. Some constructive proofs are quite easy to devise. For example, to prove that There is an even prime natural number, we simply observe that 2 is prime and 2 is even. Another strategy to prove ( x)p (x) is to show that there must be some object for which P (x) is true, without ever actually producing a particular object. Both Rolle s Theorem and the Mean Value Theorem from calculus are good examples of this. Existence theorems may also be proved by contradiction. Disproving Disproving a statement is proving that a statement is false.

33 Page 33 of 39 Although proof by example is not legitimate, you can disprove statements by giving a single example called a counterexample. Consider the statement The sum of two irrational numbers is irrational. To disprove this statement we simply observe that 2 and 2 are irrational but 2 + ( 2) = 0 is rational. Exercise 1.7 (1-9) 1.8 Mathematical Induction Proof by mathematical induction is a very useful method in proving the validity of a mathematical statement ( n)p (n) involving integers n greater than or equal to some initial integer n 0. Principle of mathematical induction If P (n) is an open sentence involving the natural number n such that (1) P (1) is true, and (2) P (k) is true P (k + 1) is true for any arbitrary natural number k, then P (n) is true for every natural number n; that is ( n)p (n) is true. In order to apply the principle of mathematical induction to prove a theorem, the theorem must be capable to being broken down into cases, one case for each natural number. Then, we must verify both conditions (1) and (2). The condition (1) is called the base step and its verification, that is usually easy, assure us that the theorem is true for at least the case n = 1. The condition (2) is called the inductive step. To verify this condition, we must prove an auxiliary theorem whose hypotheses is P (k) is true and whose conclusion is P (k + 1) is true. The hypotheses is called the induction hypotheses. Example 1. Use mathematical induction to prove that n N, n (3j 2) = 1 n(3n 1). 2 j=1 Proof.

34 Page 34 of 39 Example 2. Prove that n N, Proof n 5 = 4n 2 n. Example 3. Prove that for all natural numbers n, 3 n 2 n + 1.

35 Page 35 of 39 Remark. Mathematical induction has more general form that can be used to prove the statement ( n)(p (n)) where the universe may be any set of the form {n 0, n 0 + 1, } for some integer n 0. Example 1. Show that n! 2 n, n 4. Example 2. Prove that 4 n 1 is divisible by 3 for n 0.

36 Page 36 of 39 Example 3. (Book) Prove the Generalized De Morgan s Law (p 1 p 2 p n ) p 1 p 2 p n. Definition by induction The idea of mathematical induction may be used in making definitions involving natural numbers. Example. The definition of powers of unknown number x may be defined by: Thus x 2 = xx, x 3 = x 2 x,. x 1 = x, x n+1 = x n x, n N. Definition. (Binomial coefficients) Let n be a natural number and r be an integer. The binomial coefficients C(n, r) are defined by C(0, 0) = 1, C(0, r) = 0 for each r 0 and C(n, r) = C(n 1, r) + C(n 1, r 1). Example 1. Find C(2, 1)

37 Page 37 of 39 Example 2. Prove that if r < 0, then for all n N, C(n, r) = 0. Example 3. Prove that for all n N, if n < r, then C(n, r) = 0. Example 4. Prove that for all n N, C(n, 0) = 1.

38 Page 38 of 39 Theorem 1.8. (The Binomial Theorem) If x and y are two variables and n is a natural number, then Proof. (x + y) n = C(n, 0)x n + C(n, 1)x n 1 y + + C(n, r)x n r y r + + C(n, n)y n. Remark. The method we have used is called the First Principle of Mathematical Induction. There is another form that is called the Second Principle of Mathematical Induction. Second Principle of mathematical induction Let n 0 be any integer. If P (n) is an open sentence involving the integer n such that 1. P (n 0 ) is true, and 2. P (j) is true for j k P (k + 1) is true for any arbitrary natural number k, then P (n) is true for every integer n n 0. Exercise 1.8 (3-13)

39 Page 39 of 39 Additional Exercises Prove the following statements by mathematical induction: 1. n N, n = 2 n n j=1 n j=1 n j=1 j 3 = n2 (n + 1) 2, n (j + 1)(j + 2) = n 2n + 4, n 1. 1 j n, n n > n 3, n (n + 1)! > 2 n+2 for n n! > 3 n for n n 1 is divisible by 4 for n n 3 + 5n + 6 is divisible by 3 for n Bernoulli s identity: For every real number x > 1 and every natural number n, (1 + x) n 1 + nx.

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

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

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

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

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

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

A Guide to Proof-Writing

A Guide to Proof-Writing A Guide to Proof-Writing 437 A Guide to Proof-Writing by Ron Morash, University of Michigan Dearborn Toward the end of Section 1.5, the text states that there is no algorithm for proving theorems.... Such

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

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

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

1.1 Language and Logic

1.1 Language and Logic c Oksana Shatalov, Fall 2017 1 1.1 Language and Logic Mathematical Statements DEFINITION 1. A proposition is any declarative sentence (i.e. it has both a subject and a verb) that is either true or false,

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

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

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

A Little Deductive Logic

A Little Deductive Logic A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that

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

1.1 Language and Logic

1.1 Language and Logic c Oksana Shatalov, Spring 2018 1 1.1 Language and Logic Mathematical Statements DEFINITION 1. A proposition is any declarative sentence (i.e. it has both a subject and a verb) that is either true or false,

More information

CSC Discrete Math I, Spring Propositional Logic

CSC Discrete Math I, Spring Propositional Logic CSC 125 - Discrete Math I, Spring 2017 Propositional Logic Propositions A proposition is a declarative sentence that is either true or false Propositional Variables A propositional variable (p, q, r, s,...)

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

A Little Deductive Logic

A Little Deductive Logic A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that

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

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

Chapter 1: The Logic of Compound Statements. January 7, 2008

Chapter 1: The Logic of Compound Statements. January 7, 2008 Chapter 1: The Logic of Compound Statements January 7, 2008 Outline 1 1.1 Logical Form and Logical Equivalence 2 1.2 Conditional Statements 3 1.3 Valid and Invalid Arguments Central notion of deductive

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

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

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

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

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

Propositional Logic Not Enough

Propositional Logic Not Enough Section 1.4 Propositional Logic Not Enough If we have: All men are mortal. Socrates is a man. Does it follow that Socrates is mortal? Can t be represented in propositional logic. Need a language that talks

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

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

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

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

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

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

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

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

HANDOUT AND SET THEORY. Ariyadi Wijaya

HANDOUT AND SET THEORY. Ariyadi Wijaya HANDOUT LOGIC AND SET THEORY Ariyadi Wijaya Mathematics Education Department Faculty of Mathematics and Natural Science Yogyakarta State University 2009 1 Mathematics Education Department Faculty of Mathematics

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

THE LOGIC OF COMPOUND STATEMENTS

THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS All dogs have four legs. All tables have four legs. Therefore, all dogs are tables LOGIC Logic is a science of the necessary laws of thought, without which no employment

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. Chapter 2 Mathematics and Logic Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. 2.1 A Taste of Number Theory In this section, we will

More information

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang Proposition logic and argument CISC2100, Spring 2017 X.Zhang 1 Where are my glasses? I know the following statements are true. 1. If I was reading the newspaper in the kitchen, then my glasses are on the

More information

Where are my glasses?

Where are my glasses? Proposition logic and argument CISC2100, Spring 2017 X.Zhang 1 Where are my glasses? I know the following statements are true. 1. If I was reading the newspaper in the kitchen, then my glasses are on the

More information

3 The Semantics of the Propositional Calculus

3 The Semantics of the Propositional Calculus 3 The Semantics of the Propositional Calculus 1. Interpretations Formulas of the propositional calculus express statement forms. In chapter two, we gave informal descriptions of the meanings of the logical

More information

The Process of Mathematical Proof

The Process of Mathematical Proof 1 The Process of Mathematical Proof Introduction. Mathematical proofs use the rules of logical deduction that grew out of the work of Aristotle around 350 BC. In previous courses, there was probably an

More information

Propositional Logic: Syntax

Propositional Logic: Syntax Logic 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 programs) epistemic

More information

Section 2.1: Introduction to the Logic of Quantified Statements

Section 2.1: Introduction to the Logic of Quantified Statements Section 2.1: Introduction to the Logic of Quantified Statements In the previous chapter, we studied a branch of logic called propositional logic or propositional calculus. Loosely speaking, propositional

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

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

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

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

Math 10850, fall 2017, University of Notre Dame

Math 10850, fall 2017, University of Notre Dame Math 10850, fall 2017, University of Notre Dame Notes on first exam September 22, 2017 The key facts The first midterm will be on Thursday, September 28, 6.15pm-7.45pm in Hayes-Healy 127. What you need

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

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional Class XI Mathematics Ch. 14 Mathematical Reasoning 1. Statement: A sentence which is either TRUE or FALSE but not both is known as a statement. eg. i) 2 + 2 = 4 ( it is a statement which is true) ii) 2

More information

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014 John Nachbar Washington University December 26, 2014 Logic and Proofs 1 1 Overview. These notes provide an informal introduction to some basic concepts in logic. For a careful exposition, see, for example,

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

A. Propositional Logic

A. Propositional Logic CmSc 175 Discrete Mathematics A. Propositional Logic 1. Statements (Propositions ): Statements are sentences that claim certain things. Can be either true or false, but not both. Propositional logic deals

More information

Section 1.2: Propositional Logic

Section 1.2: Propositional Logic Section 1.2: Propositional Logic January 17, 2017 Abstract Now we re going to use the tools of formal logic to reach logical conclusions ( prove theorems ) based on wffs formed by some given statements.

More information

Mathematical Reasoning (Part I) 1

Mathematical Reasoning (Part I) 1 c Oksana Shatalov, Spring 2017 1 Mathematical Reasoning (art I) 1 Statements DEFINITION 1. A statement is any declarative sentence 2 that is either true or false, but not both. A statement cannot be neither

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

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

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

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

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9 Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9 Typeset September 23, 2005 1 Statements or propositions Defn: A statement is an assertion

More information

Propositional Logic. Fall () Propositional Logic Fall / 30

Propositional Logic. Fall () Propositional Logic Fall / 30 Propositional Logic Fall 2013 () Propositional Logic Fall 2013 1 / 30 1 Introduction Learning Outcomes for this Presentation 2 Definitions Statements Logical connectives Interpretations, contexts,... Logically

More information

The Logic of Compound Statements cont.

The Logic of Compound Statements cont. The Logic of Compound Statements cont. CSE 215, Computer Science 1, Fall 2011 Stony Brook University http://www.cs.stonybrook.edu/~cse215 Refresh from last time: Logical Equivalences Commutativity of :

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

3 The language of proof

3 The language of proof 3 The language of proof After working through this section, you should be able to: (a) understand what is asserted by various types of mathematical statements, in particular implications and equivalences;

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

Manual of Logical Style (fresh version 2018)

Manual of Logical Style (fresh version 2018) Manual of Logical Style (fresh version 2018) Randall Holmes 9/5/2018 1 Introduction This is a fresh version of a document I have been working on with my classes at various levels for years. The idea that

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

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

Section 1.1: Logical Form and Logical Equivalence

Section 1.1: Logical Form and Logical Equivalence Section 1.1: Logical Form and Logical Equivalence An argument is a sequence of statements aimed at demonstrating the truth of an assertion. The assertion at the end of an argument is called the conclusion,

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

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

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013 Propositional Logic Argument Forms Ioan Despi despi@turing.une.edu.au University of New England July 19, 2013 Outline Ioan Despi Discrete Mathematics 2 of 1 Order of Precedence Ioan Despi Discrete Mathematics

More information

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook) Lecture 2 Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits Reading (Epp s textbook) 2.1-2.4 1 Logic Logic is a system based on statements. A statement (or

More information

Introducing Proof 1. hsn.uk.net. Contents

Introducing Proof 1. hsn.uk.net. Contents Contents 1 1 Introduction 1 What is proof? 1 Statements, Definitions and Euler Diagrams 1 Statements 1 Definitions Our first proof Euler diagrams 4 3 Logical Connectives 5 Negation 6 Conjunction 7 Disjunction

More information

Some Review Problems for Exam 1: Solutions

Some Review Problems for Exam 1: Solutions Math 3355 Fall 2018 Some Review Problems for Exam 1: Solutions Here is my quick review of proof techniques. I will focus exclusively on propositions of the form p q, or more properly, x P (x) Q(x) or x

More information

Logic. Propositional Logic: Syntax

Logic. Propositional Logic: Syntax Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

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

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

Full file at

Full file at Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Introduction Chapter 1 - Introduction Applications of discrete mathematics: Formal Languages (computer languages) Compiler Design

More information

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises WUCT11 Discrete Mathematics Logic Tutorial Exercises 1 Logic Predicate Logic 3 Proofs 4 Set Theory 5 Relations and Functions WUCT11 Logic Tutorial Exercises 1 Section 1: Logic Question1 For each of the

More information

Propositional Equivalence

Propositional Equivalence Propositional Equivalence Tautologies and contradictions A compound proposition that is always true, regardless of the truth values of the individual propositions involved, is called a tautology. Example:

More information

Formal Logic. Critical Thinking

Formal Logic. Critical Thinking ormal Logic Critical hinking Recap: ormal Logic If I win the lottery, then I am poor. I win the lottery. Hence, I am poor. his argument has the following abstract structure or form: If P then Q. P. Hence,

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

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

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

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

COMP 2600: Formal Methods for Software Engineeing

COMP 2600: Formal Methods for Software Engineeing COMP 2600: Formal Methods for Software Engineeing Dirk Pattinson Semester 2, 2013 What do we mean by FORMAL? Oxford Dictionary in accordance with convention or etiquette or denoting a style of writing

More information

EECS 1028 M: Discrete Mathematics for Engineers

EECS 1028 M: Discrete Mathematics for Engineers EECS 1028 M: Discrete Mathematics for Engineers Suprakash Datta Office: LAS 3043 Course page: http://www.eecs.yorku.ca/course/1028 Also on Moodle S. Datta (York Univ.) EECS 1028 W 18 1 / 26 Why Study Logic?

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

Proofs. Joe Patten August 10, 2018

Proofs. Joe Patten August 10, 2018 Proofs Joe Patten August 10, 2018 1 Statements and Open Sentences 1.1 Statements A statement is a declarative sentence or assertion that is either true or false. They are often labelled with a capital

More information

DISCRETE MATH: FINAL REVIEW

DISCRETE MATH: FINAL REVIEW DISCRETE MATH: FINAL REVIEW DR. DANIEL FREEMAN 1) a. Does 3 = {3}? b. Is 3 {3}? c. Is 3 {3}? c. Is {3} {3}? c. Is {3} {3}? d. Does {3} = {3, 3, 3, 3}? e. Is {x Z x > 0} {x R x > 0}? 1. Chapter 1 review

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

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

Practice Test III, Math 314, Spring 2016

Practice Test III, Math 314, Spring 2016 Practice Test III, Math 314, Spring 2016 Dr. Holmes April 26, 2016 This is the 2014 test reorganized to be more readable. I like it as a review test. The students who took this test had to do four sections

More information

Announcements CompSci 102 Discrete Math for Computer Science

Announcements CompSci 102 Discrete Math for Computer Science Announcements CompSci 102 Discrete Math for Computer Science Read for next time Chap. 1.4-1.6 Recitation 1 is tomorrow Homework will be posted by Friday January 19, 2012 Today more logic Prof. Rodger Most

More information