Documente Academic
Documente Profesional
Documente Cultură
Symbolic logics
NGUYEN CANH Nam1
1 Faculty of Applied Mathematics Department of Applied Mathematics and Informatics Hanoi University of Technologies namnc@mail.hut.edu.vn
HUT - 2010
Mathematics I - Chapter 1
References
1
Nguyen Dinh Tri, Ta Van Dinh, Nguyen Ho Quynh, Toan hoc cap cap - Tap I, Nha xuat ban giao duc. Nguyen Van Nghi, Nguyen Canh Luong, Phuong phap giai bai tap toan cao cap - Tap I, Nha xuat ban khoa hoc va ky thuat. Kenneth H.Rosen, Discrete Mathematics and Its Applications, Mc Graw Hill, International edition 2007. D.A.R. Wallace, Groups, Rings and Fields, Springer 1998. Titu Andreescu and Dorin Andrica, Complex Numbers from A to. . . Z, Birkhuser Boston 2006. P.B.Bhattacharya S.K.Jain and S.R.Nagpaul, Basic Abstract Algebra, Cambridge University Press, Second edition, 1996. www...
NGUYEN CANH Nam Mathematics I - Chapter 1
4 5
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Proposition
Denition A proposition is a statement which is either true or false, although we may not know which, but not both. Propositions are denoted by lower letters as p, q, r The truth or falsity is called truth value of the proposition. The truth value of the proposition p is denoted by V (p). If p is true then V (p) = 1 or T . If p is false then V (p) = 0 or F .
Mathematics I - Chapter 1
Proposition
Examples
Example 1: p = "Hanoi is the capital of Vietnam" then V (p) = 1 q = "The sun rises in the east " then V (q) = 1 r = "1 + 1 = 2" then V (r ) = 1 s = "The sun rises in the west" then V (s) = 0 Example 2: The proposition t = "There exists life outside the earth". Up to now we can not know the truth value of the statement t.
Mathematics I - Chapter 1
Proposition
Example (continue...)
Sentences 1 and 2 are not proposition because they are not declarative sentences.
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Example 1 : Find the negation of the proposition "Today is Monday" The negation is "It is not the case that today is Monday" or simply "Today is not Monday"
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Example 2 : Find the negation of the proposition "At least 100mm of rain fell today in Hanoi" The negation is "It is not the case that at least 100mm of rain fell today in Hanoi" or simply "Less than 100mm of rain fell today in Hanoi"
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Disjunction operator OR ()
Denition
Let p and q be propositions. The disjunction of p and q, denoted by p q, is the proposition "p or q". The truth table of OR operator is as follow p 0 0 1 1 q 0 1 0 1 pq 0 1 1 1
Table: OR truth table Note : The disjunction p q is false when both p and q are false.
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Disjunction operator OR ()
Example
Let p = "Today is Monday" and q = "It is raining today", then p q is interpreted as "Today is Monday or it is raining today". This proposition is true on any day that is either a Monday or a rainy day (including rainy Mondays).
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
De Morgans Law
Theorem (De Morgans Law) For any two propositions p and q we have (i) V (p q) = V (p) V (q) (ii) V (p q) = V (p) V (q) Corollary The disjunction operator OR may be dened by NOT and AND operators: V (p q) = V (p q)
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Distributive Laws
Theorem (Distributive Laws) For any three propositions p, q, r , we have (i) V (p (q r )) = V ((p q) (p r )) (ii) V (p (q r )) = V ((p q) (p r ))
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Theorem (Commutative and associative Laws) For any propositions p, q, r , we have (i) V (p q) = V (q p) (ii) V (p q) = V (q p) (iii) V ((p q) r ) = V (p (q r )) (iv) V ((p q) r ) = V (p (q r ))
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Table: IMP truth table Note : The implication p q is false when p is true and q is false.
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Let p = "Minh learns discrete mathematics" and q = "Minh will nd a good job", then p q
"If Minh learns discrete mathematics, then he will will a good job"
There are many other ways to express this condition statement, for examples
"Minh will nd a good job when he learns discrete mathematics" "For Minh to get a good job, it is sufcient for him to learns discrete mathematics" "Minh will nd a good job unless he does not learn discrete mathematics"
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Assertion If p, q are propositions then we have (i) The proposition p (p q) is true, (ii) The proposition (p q) p is true. Theorem The implication operator IMP may be built from the negation operator NOT and the conjunction operator AND: V (p q) = V (p q)
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Table: IFF truth table Note : The equivalence p q is true when p and q have the same truth value.
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Let p be the statement "You can take the ight" and let q be the statement "You buy a ticket". Then p q " You can take the ight if and only if you buy a ticket"
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Theorem The equivalence operator may be built from the negation operator NOT and the conjunction operator AND: V (p q) = V ((p q) (q p))
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Tautologies
Denition A compound proposition is called a tautology if it is always true regardless truth values of atomic components.
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Tautologies
Examples
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Contradictions
Denition A compound proposition is called a contradiction if its values are always false regardless truth values of atomic components.
Mathematics I - Chapter 1
Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions
Contradictions
Examples
b) The proposition (p q) p is a contradiction because the truth values of this are always false:
p 0 0 1 1 q 0 1 0 1 pq 0 0 0 1 (p q) p 0 0 0 0
Mathematics I - Chapter 1
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Assertion The XOR operator is the negation of the IFF operator: V (pq) = V (p q)
Mathematics I - Chapter 1
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Mathematics I - Chapter 1
Agenda
1 2
Proposition Logical operations Negation operator NOT Conjunction operator AND () Disjunction operator OR () Implication operator IMP () Equivalence operator IFF () Tautologies, contradictions Generation of operators Binary XOR operator Binary operator NOR () Binary Operator NAND ( ) Propositions with quantiers ,
NGUYEN CANH Nam Mathematics I - Chapter 1
Mathematics I - Chapter 1
Mathematics I - Chapter 1
Denition Let p(x) is a statement for x X . The universal quantication of P(x) is the statement "P(x) for all values of x in X The notation x P(x) denotes the universal quantication of P(x). Here is called the universal quantier. We read x P(x) as "for all x P(x)" or "for every x P(x)".
Mathematics I - Chapter 1
Denition Let p(x) is a statement for x X . The existential quantication of P(x) is the proposition "There is an element x in the domain such that P(x)" We use the notation x P(x) for existential quantication of P(x). Here is called existential quantier.
Mathematics I - Chapter 1
Analogously, we have propositions as xy , P(x, y ); xy , P(x, y ) or xy , P(x, y ). In general, we have propositions containing , and a statement P(x1 , ..., xn ).
Mathematics I - Chapter 1
Example 1 : a) The proposition "x IR, x2 + 1 0", is true. b) The proposition "x IR, x2 1 0", is false. c) The proposition "x IR, x2 1 0", is true. d) The proposition "x IR, y IR, x + y 0", is true. e) The proposition "y IR, x IR, x + y 0", is false.
Mathematics I - Chapter 1
Example 2 : The function f (x) is continuous at the point x0 if > 0, > 0, x, (|x x0 | < )(|f(x) f(x0 )| < ).
Mathematics I - Chapter 1
Remark To receive the negation of a proposition containing qualiers , and statement P(x1 , ..., xn ), we change by , change by and change P(x1 , ..., xn ) by P(x1 , ..., xn ). In Example 2, using the above note we have that a function f (x) is not continuous at the point x0 if > 0, > 0, x, (|x x0 | < )(|f(x) f(x0 )| > ).
Mathematics I - Chapter 1
Exercises
Exercise 1: Determine the truth table of the following composite propositions and state whether they are tautologies, contradictions or indeterminates? a) (p q) (p q) b) (p q) (p q)
Mathematics I - Chapter 1
Exercises
Exercise 2: Write a logically equivalent statement using NOT, AND and OR. a) (p q) b) (p q) r
Mathematics I - Chapter 1
Exercises
Exercise 3: To express the following proposition by symbolic logics: For subset A of IR , "m is called inmum of A, denoted by m = inf(A), if for all x in A, we have x isnt smaller as m and for all real number n, if x isnt smaller as n for all x in A then m isnt smaller as n".
Mathematics I - Chapter 1
Exercises
Exercise 4: Determine the truth table of the following composite propositions and state whether they are tautologies, contradictions or indeterminate? a) (p q) p c) (p q) q e) ((p q) (q r ))) (p r ) g) (p q) (p q) b) p (q p) d) (p q) r f) (p q) (pq)
Mathematics I - Chapter 1
Exercises
Mathematics I - Chapter 1
Exercises
Exercise 6: Show that the logical operators NOT and OR are sufcient to generate AND, IFF, IMP, XOR, NOR and NAND.
Mathematics I - Chapter 1