Chapter 1 Part 2 Propositional Logic
Chapter 1 Part 2 Propositional Logic
Introduction and
Preliminaries
IT 104* [Session 2]
TOPICS
▪ Propositions
▪ Logical Connectives and Truth Tables
▪ Conditional and Biconditional Propositions
▪ Tautologies and Contradictions
▪ Logical Equivalence
▪ Arguments
▪ Applications of Logic in Circuits
2
TOPICS
▪ Propositions
▪ Logical Connectives and Truth Tables
▪ Conditional and Biconditional Propositions
▪ Tautologies and Contradictions
▪ Logical Equivalence
▪ Arguments
▪ Applications of Logic in Circuits
3
BUT WAIT!!!
4
Exercises [Part 1]
▪ Use the symbols ~, ^ and v, and write the following
statements.
▫ both p or q and r
▫ p or both q and r
▫ either p and q or r
▫ p and either q or r
▫ neither p nor q
5
Exercises [Part 2]
Use the symbols ~, ∧ and ∨ to write the following statements.
[Note: Use grouping symbols.]
▫ 𝑝: “-6 is a positive number”
▫ 𝑞: “3 is a positive number”
▫ 𝑟: “ 5 is an irrational number”
7
Negating Conditional and Equivalent
Propositions
▪ The negation of the conditional statement “p → q” is
the conjunction of “p ∧ ~q”.
8
Logical Equivalence: Examples
▪ Show that (p q) is logically equivalent to (p ∧ q) ∨
(~p ∧ ~q).
▪ Prove that the conditional proposition p → s and its
contrapositive ~s → ~p are logically equivalent
▪ Prove or disprove that ~(p → q) is logically
equivalent to p ∧ ~q.
▪ Verify the De Morgan’s law: [~(p v q) ≡ ~p ∧ ~q]
using truth table.
9
Logical Equivalence: Examples
▪ Show that (p q) is logically equivalent to (p ∧ q) ∨
(~p ∧ ~q).
▪ Prove that the conditional proposition p → s and its
contrapositive ~s → ~p are logically equivalent
▪ Prove or disprove that ~(p → q) is logically
equivalent to p ∧ ~q.
▪ Verify the De Morgan’s law: [~(p v q) ≡ ~p ∧ ~q]
using truth table.
10
Logical Equivalence: Examples
▪ Show that (p q) is logically equivalent to (p ∧ q) ∨
(~p ∧ ~q).
11
Logical Equivalence: Examples
▪ Show that (p q) is logically equivalent to (p ∧ q) ∨
(~p ∧ ~q).
▪ Prove that the conditional proposition p → s and its
contrapositive ~s → ~p are logically equivalent
▪ Prove or disprove that ~(p → q) is logically
equivalent to p ∧ ~q.
▪ Verify the De Morgan’s law: [~(p v q) ≡ ~p ∧ ~q]
using truth table.
12
Logical Equivalence: Examples
▪ Prove that the conditional proposition p → s and its
contrapositive ~s → ~p are logically equivalent
13
Logical Equivalence: Examples
▪ Show that (p q) is logically equivalent to (p ∧ q) ∨
(~p ∧ ~q).
▪ Prove that the conditional proposition p → s and its
contrapositive ~s → ~p are logically equivalent
▪ Prove or disprove that ~(p → q) is logically
equivalent to p ∧ ~q.
▪ Verify the De Morgan’s law: [~(p v q) ≡ ~p ∧ ~q]
using truth table.
14
Logical Equivalence: Examples
▪ Prove or disprove that ~(p → q) is logically
equivalent to p ∧ ~q.
15
Logical Equivalence: Examples
▪ Show that (p q) is logically equivalent to (p ∧ q) ∨
(~p ∧ ~q).
▪ Prove that the conditional proposition p → s and its
contrapositive ~s → ~p are logically equivalent
▪ Prove or disprove that ~(p → q) is logically
equivalent to p ∧ ~q.
▪ Verify the De Morgan’s law: [~(p v q) ≡ ~p ∧ ~q]
using truth table.
16
Logical Equivalence: Examples
▪ Verify the De Morgan’s law: [~(p v q) ≡ ~p ∧ ~q]
using truth table.
17
Arguments
▪ Deductive or indirect reasoning is a process of reaching a
conclusion from one or more statements called hypothesis
(or hypotheses).
▪ An argument is a set of statements in which one of the
statements is called the conclusion and the rest comprise the
hypothesis.
▫ The propositions p1, p2…,pn, are called the
hypotheses (or premises) and;
▫ The proposition q is called the conclusion.
18
Arguments
▪ An argument is valid argument if all the premises p1 ^ p2 ^
… ^ p., are all true (1) and truth value of the conclusion q
must also be true (1); otherwise, the argument is invalid (or a
fallacy) if the truth value of all premises is true (1) but the
truth value of the conclusion is false (0). An argument is a
valid tautology.
19
Arguments: Example 1
▪ Consider the given set of premises and conclusions,
P→M
P
∴M
20
Arguments: Example 1 [Solution]
▪ [(P → M) ^ P] → M [∴ This is a VALID argument.]
P M P→M (P → M) ^ P [(P → M) ^ P] → M
1 1 1 1 1
1 0 0 0 1
0 1 1 0 1
0 0 1 0 1
21
Arguments: Example 2
▪ The test validity of the following argument:
▫ If I study, then I will pass the test.
▫ I will pass the test.
▫ Therefore, I study.
22
Arguments: Try example 3
23
Application of Logic to Circuits
Figure shows p and q and p and r are connected to each other in the series.
It is interpreted as p ^ q and p ^ r respectively.
These two conjunctions are connected parallel. Therefore it illustrated is a disjunction of
two conjunctions.
(p ^ q) v (p ^ r)
Figure shows p and q and p and ~q are connected to each other in the series.
It is interpreted as p ^ q and p ^ ~q respectively.
These two conjunctions are connected parallel. Therefore, it illustrated
is a disjunction of two conjunctions.
(p ^ q) v (p ^ ~q)
• q and ~r series connection
• q ^ ~r
• Parallel connection to p
• Therefore, p v (q ^ ~r)
• p v ~p
• p ^ (p v ~p)
• q v [p ^ (p v ~p)]
• rvq
• p ^ (r v q)
Draw circuits representing the following statements.
1. p and (q or not r)
q
p
~r
q ~r
3. (not q and not p) or (not p or r)
~q ~p
~p
35