LECTURE 16 Propositional Logic 1
LECTURE 16 Propositional Logic 1
Proposition
Proposition: A Proposition or a statement or logical sentence is a declarative sentence which is either true or
false but not both.
2
Solved Example
3
Compound Statement and Logical
Connectives
• Compound Statements: Statements or propositional
variables can be combined by means of logical
connectives (operators) to form a single statement
called compound statements.
Symbol Connective Name
~ Not
• The five logical connectives Negation
are:
∧ And Conjunction
∨ Or Disjunction
⟶ Implies or if .. then Implication or Conditional
4
Basic Logical Operations
1. Negation: It means the P ~P
opposite of the original T F
statement. If p is a statement,
F T
then the negation of p is denoted
by ~p and read as 'it is not the
case that p.' So, if p is true then
~ p is false and vice versa.
The operator ~ is sometimes
represented by the symbol ¬, a
minus sign (−), ! , or the word
"not."
• Example: If statement p is Paris
is in France, then ~ p is 'Paris is
not in France‘.
5
Basic Logical Operations
2. Conjunction: It means Anding of two
statements. If p, q are two statements,
then "p and q" is a compound statement,
denoted by p ∧ q and referred as the P Q P∧Q
conjunction of p and q. The conjunction T T T
of p and q is true only when both p and q T F F
are true. Otherwise, it is false. F T F
Example: Jill eats pizza and Sam eats F F F
pasta.
6
Basic Logical Operations
3. Disjunction: It means Oring of two
statements. If p, q are two statements,
then "p or q" is a compound statement,
denoted by p ∨ q and referred to as the P Q PVQ
disjunction of p and q. The disjunction of T T T
p and q is true whenever at least one of T F T
the two statements is true, and it is false F T T
only when both p and q are false. F F F
Example: Ann is on the softball team or
Paul is on the football team.
7
Basic Logical Operations
8
Variations in Conditional Statement
9
Solved Example
Show that p →q and its contrapositive ~q→~p are
logically equivalent.
p q ~p ~q p→q ~q→~p
Solution: Construct the truth table for both the
T T F F T T
propositions:
T F F T F F
F T T F T T
F F T T T T
As, the values in both cases are same, hence both propositions are
equivalent.
10
Basic Logical Operations
5. If and Only If (↔): If p and q are two statements then "p if and
only if q" is a compound statement, denoted as p ↔ q and referred as
a bi-conditional statement or an equivalence. The equivalence p ↔ q is
true only when both p and q are true or when both p and q are false.
Example:
(i) Two lines are parallel if and only if they have the same slope.
(ii) You will pass the exam if and only if you will work hard.
P Q P↔ Q
T T T
T F F
F T F
F F T
11
Do It Yourself
• Prove that p ↔ q is equivalent to (p →q) (q→p).
→
12