Chap1 - Propositional Logic (HT)
Chap1 - Propositional Logic (HT)
&
APPLICATIONS
1
Chapter 1: Propositional Logic
2
1.1
Propositional Logic
3
DEFINITION
(4)
Convention. If a proposition is true then we say that its truth value is true (denoted by ).
4
COMPOUND PROPOSITIONS
Definition. Let be a proposition.
(1) The negation of
5
COMPOUND PROPOSITIONS
Let and be two propositions.
(2) The conjunction of and :
and proposition that is true when both and are true, and is false otherwise.
Example. Let She is very naughty, She is not obstinate
6
COMPOUND PROPOSITIONS (cont.)
Example. Students who have missed more than 4 slots can not pass this class.
Students who have not taken any progress test can not pass this class.
Students who have not taken any progress or have missed more than 4 slots can not pass this class.
7
COMPOUND PROPOSITIONS (cont.)
Let and be two propositions.
(4) The exclusive or of and :
only or only proposition that is true when exactly one of and is true, and is false otherwise.
Example. You can adopt a cat.
.
You can adopt a cat or a hamster, but not both.
8
COMPOUND PROPOSITIONS (cont.)
Let and be two propositions.
proposition that is false when is true and is false, and is true otherwise.
9
COMPOUND PROPOSITIONS (cont.)
Let and be two propositions.
proposition that is true when and have the same truth value, and is false otherwise.
10
SUMMARY
Remark. A bit is a symbol taking two values, and . A bit can represent the truth value of a
proposition:
and
11
LOGICAL EXPRESSIONS
Example. Translate the following propositions into logical expressions.
(1) When I am over 25, I will marry Leslie.
Put I am over 25 years old,
.
Then logical expression of (1) is .
12
1.2
Propositional Equivalences
13
LOGICAL EQUIVALENCES
Definition. (1) A compound proposition that is always true, no matter what the truth values of
propositions that occur in it, is called a tautology.
(2) A compound proposition that is always false is called a contradiction.
(3) A compound proposition that is neither a tautology nor a contradiction is called a contigency.
14
SOME BASIC LOGICAL EQUIVALENCES
15
LOGICAL EQUIVALENCES - TRUTH TABLE METHOD
16
PRACTICE
Verify the following logical equivalences.
(a) .
(b)
(c) .
(d) .
(e) .
17
1.3
Predicates and Quantifiers
18
PREDICATE
Example. Consider . For specified values of , then it becomes a proposition. For instance, and .
Remark. In , the symbol is called variable and the part is called predicate.
19
QUANTIFIERS:
Let be a propositional function.
Universal quantification:
For all values of , is true.
Existential quantification:
20
LOGICAL EXPRESSIONS WITH QUANTIFIERS
Example. For each of the following statements, find a logical expression using quantifiers and
propositional functions.
(1) Every prime number is not divisible by .
21
(2) Some student in HT’s class has visited Thach That district.
Solution. First, introduce a variable :
There is a student in HT’s class with the property that has visited Thach That district.
Next, put has visited Thach That district.
With the domain students in HT’s class, we find the logical expression
.
(3) Every student of FPT University has visited Thach That and Quoc Oai.
Solution.
22
1.4
Nested Quantifiers
23
NESTED QUANTIFIERS
Exercise. Translate the following statements into English, where the domain of variables is .
a) where .
b) where
c) where
24
LOGICAL EXPRESSIONS WITH NESTED QUANTIFIERS
Examples. For each of the following statements, find a logical expression using quantifiers and
propositional functions.
(1) Some student of FPT University gave flowers to all female students.
25
(2) If a person is female and is a parent, then this person is someone’s mother.
Solution. First, introduce two variables and :
For every person , if is female and is a parent, then there is a person such that is the mother of
.
Next, put is the mother of , is female
and is a parent.
With the domain all people, we find the logical expression
.
26
NEGATING NESTED QUANTIFIERS
(1) . (2) .
(3) . (4) .
(5) . (6) .
27
1.5
Rules of Inference
28
AN EXAMPLE
Example. Suppose we have an argument:
If you have one million dollars, then you can buy a villa.
Put You have one million dollars and You can buy a villa.
How do we deduce that is true provided is true?
Observe that is a tautology.
Now, since both and are true, it implies that must be true also.
29
DEFINITIONS
30
TABLE: RULES OF INFERENCES
31
Example. Show that the following premises
,
,
32
TABLE: RULES OF INFERENCES FOR QUANTIFIED STATEMENTS
33
EXAMPLE
Example. Show that the following premises
,
Solution. .
With domain the logical expression of is .
Put , we have .
The inference is
34
PRACTICE
35
PRACTICE
36
PRACTICE
37
PRACTICE
38
PRACTICE
39
PRACTICE
40
PRACTICE
41
PRACTICE
42
PRACTICE
43
PRACTICE
44
45
46
47
48
49
50
51