Chap1 Logics Part I
Chap1 Logics Part I
Chapter 1
The Foundations: Logic and proofs
1
Objectives:
To grasp the concept of propositions.
To determine whether two compound
propositions are logically equivalence
using truth table.
Logic
Logic = the study of correct reasoning
Use of logic
In mathematics:
to prove theorems
In computer science:
Connectives
If p and q are propositions, new compound
propositions can be formed by using
connectives
Most common connectives:
Conjunction AND.
Inclusive disjunction OR
Exclusive disjunction OR
Negation
Implication
Double implication
Symbol ^
Symbol v
Symbol v
Symbol ~
Symbol
Symbol
5
p
T
q
T
p^q
T
T
F
F
F
T
F
F
F
F
Example
Let p = Tigers are wild animals
Let q = Chicago is the capital of Illinois
p ^ q = "Tigers are wild animals and
Chicago is the capital of Illinois"
p ^ q is false. Why?
q
T
pvq
T
T
F
F
F
T
F
T
T
F
Exclusive disjunction
q
T
pvq
F
T
F
F
F
T
F
T
T
F
Negation
Negation of p: in symbols ~p
p
~p
Conditional Statement
q
T
F
T
F
pq
T
F
T
T
pq=?
Bi-Conditional Statement
q
T
F
T
F
q
T
F
F
T
p
q is true when p and q have the same
truth values, and if false otherwise.
q=?
12
Compound Statements
Let p, q, r be simple statements
We can form other compound statements,
such as
(pq)^r
p(q^r)
(~p)(~q)
(pq)^(~r)
and many others
13
(p q) ^ r
F
14
Summary
Propositions
Logically equivalence
Truth table for conjunction/AND,
disjunction/OR, Negation/NOT, and
Exclusive disjunction.
15
Homework
Section 1.1
Pg. 12 Questions 2, 4, 8, 15 and 21(c)
& 21(e).
16