This is one of the subtopics of Introduction to set and logic theory in mathematics

JamalMJ 28 views 27 slides Jun 27, 2024
Slide 1
Slide 1 of 27
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27

About This Presentation

Introduction to set and logic theory


Slide Content

Fall 2002 CMSC 203 - Discrete Structures 1 Let’s get started with... Logic !

Fall 2002 CMSC 203 - Discrete Structures 2 Logic Crucial for mathematical reasoning Used for designing electronic circuitry Logic is a system based on propositions . A proposition is a statement that is either true or false (not both). We say that the truth value of a proposition is either true (T) or false (F). Corresponds to 1 and in digital circuits

Fall 2002 CMSC 203 - Discrete Structures 3 The Statement/Proposition Game “Elephants are bigger than mice.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? true

Fall 2002 CMSC 203 - Discrete Structures 4 The Statement/Proposition Game “520 < 111” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? false

Fall 2002 CMSC 203 - Discrete Structures 5 The Statement/Proposition Game “y > 5” Is this a statement? yes Is this a proposition? no Its truth value depends on the value of y, but this value is not specified. We call this type of statement a propositional function or open sentence .

Fall 2002 CMSC 203 - Discrete Structures 6 The Statement/Proposition Game “Today is January 1 and 99 < 5.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? false

Fall 2002 CMSC 203 - Discrete Structures 7 The Statement/Proposition Game “Please do not fall asleep.” Is this a statement? no Is this a proposition? no Only statements can be propositions. It’s a request.

Fall 2002 CMSC 203 - Discrete Structures 8 The Statement/Proposition Game “If elephants were red, they could hide in cherry trees.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? probably false

Fall 2002 CMSC 203 - Discrete Structures 9 The Statement/Proposition Game “x < y if and only if y > x.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? true … because its truth value does not depend on specific values of x and y.

Fall 2002 CMSC 203 - Discrete Structures 10 Combining Propositions As we have seen in the previous examples, one or more propositions can be combined to form a single compound proposition . We formalize this by denoting propositions with letters such as p, q, r, s, and introducing several logical operators .

Fall 2002 CMSC 203 - Discrete Structures 11 Logical Operators (Connectives) We will examine the following logical operators: Negation (NOT) Conjunction (AND) Disjunction (OR) Exclusive or (XOR) Implication (if – then) Biconditional (if and only if) Truth tables can be used to show how these operators can combine propositions to compound propositions.

Fall 2002 CMSC 203 - Discrete Structures 12 Negation (NOT) Unary Operator, Symbol:  P  P true (T) false (F) false (F) true (T)

Fall 2002 CMSC 203 - Discrete Structures 13 Conjunction (AND) Binary Operator, Symbol:  P Q P Q T T T T F F F T F F F F

Fall 2002 CMSC 203 - Discrete Structures 14 Disjunction (OR) Binary Operator, Symbol:  P Q P  Q T T T T F T F T T F F F

Fall 2002 CMSC 203 - Discrete Structures 15 Exclusive Or (XOR) Binary Operator, Symbol:  P Q P  Q T T F T F T F T T F F F

Fall 2002 CMSC 203 - Discrete Structures 16 Implication (if - then) Binary Operator, Symbol:  P Q P  Q T T T T F F F T T F F T

Fall 2002 CMSC 203 - Discrete Structures 17 Biconditional (if and only if) Binary Operator, Symbol:  P Q P  Q T T T T F F F T F F F T

Fall 2002 CMSC 203 - Discrete Structures 18 Statements and Operators Statements and operators can be combined in any way to form new statements. P Q  P  Q (  P)(  Q) T T F F F T F F T T F T T F T F F T T T

Fall 2002 CMSC 203 - Discrete Structures 19 Statements and Operations Statements and operators can be combined in any way to form new statements. P Q P Q  ( P Q) (  P)(  Q) T T T F F T F F T T F T F T T F F F T T

Fall 2002 CMSC 203 - Discrete Structures 20 Equivalent Statements P Q  ( P Q) (  P)(  Q)  ( P Q)  (  P)(  Q) T T F F T T F T T T F T T T T F F T T T The statements  ( P Q) and (  P)  (  Q) are logically equivalent , since  ( P Q)  (  P)  (  Q) is always true.

Fall 2002 CMSC 203 - Discrete Structures 21 Tautologies and Contradictions A tautology is a statement that is always true. Examples: R(  R)  ( P Q)  (  P)(  Q) If S  T is a tautology, we write ST. If S  T is a tautology, we write ST.

Fall 2002 CMSC 203 - Discrete Structures 22 Tautologies and Contradictions A contradiction is a statement that is always false. Examples: R(  R)  (  ( P Q)  (  P)(  Q)) The negation of any tautology is a contra- diction, and the negation of any contradiction is a tautology.

Fall 2002 CMSC 203 - Discrete Structures 23 Exercises We already know the following tautology:  ( P Q)  (  P)(  Q) Nice home exercise: Show that  ( P Q)  (  P)(  Q). These two tautologies are known as De Morgan’s laws. Table 5 in Section 1.2 shows many useful laws. Exercises 1 and 7 in Section 1.2 may help you get used to propositions and operators.

Fall 2002 CMSC 203 - Discrete Structures 24 Let’s Talk About Logic Logic is a system based on propositions . A proposition is a statement that is either true or false (not both). We say that the truth value of a proposition is either true (T) or false (F). Corresponds to 1 and in digital circuits

Fall 2002 CMSC 203 - Discrete Structures 25 Logical Operators (Connectives) Negation (NOT) Conjunction (AND) Disjunction (OR) Exclusive or (XOR) Implication (if – then) Biconditional (if and only if) Truth tables can be used to show how these operators can combine propositions to compound propositions.

Fall 2002 CMSC 203 - Discrete Structures 26 Tautologies and Contradictions A tautology is a statement that is always true. Examples: R(  R)  ( P Q)  (  P)(  Q) If S  T is a tautology, we write ST. If S  T is a tautology, we write ST.

Fall 2002 CMSC 203 - Discrete Structures 27 Tautologies and Contradictions A contradiction is a statement that is always false. Examples: R(  R)  (  ( P Q)  (  P)(  Q)) The negation of any tautology is a contradiction, and the negation of any contradiction is a tautology.
Tags