Computing Truth Values: Symbolic Logic
Computing Truth Values: Symbolic Logic
Truth Values
SYMBOLIC LOGIC
Definition
SYMBOLIC LOGIC
Examples
SYMBOLIC LOGIC
Non-Examples
SYMBOLIC LOGIC
*Decide whether the following are propositions or
not:
1. 23 = z
2. 10 – 7 = 3
3. 5 < 27
4. All women are mammals.
5. Where do you live?
SYMBOLIC LOGIC
Definition
SYMBOLIC LOGIC
Do Worksheet 1
SYMBOLIC LOGIC
Definition
SYMBOLIC LOGIC
These new proposition are:
Truth Tables
𝑃 𝑄 𝑃𝑄ٿ 𝑃𝑄ڀ
1 1 1 1
𝑃 ¬𝑃
1 0 0 1
1 0 0 1 0 1
0 1 0 0 0 0
SYMBOLIC LOGIC
Inclusive and exclusive disjunction:
Truth Table:
𝑃 𝑄 𝑃 𝑄ڀP⋁Q
1 1 1 0
1 0 1 1
0 1 1 1
0 0 0 0
SYMBOLIC LOGIC
Do Worksheet 2 & 3
SYMBOLIC LOGIC
Definition
SYMBOLIC LOGIC
Definition
0 0 1 0 1 1
0 1 1 0 0 1
1 0 0 1 1 0
1 1 1 0 1 1
SYMBOLIC LOGIC
Definition
𝑃 𝑄 P⟷Q
0 0 1
0 1 0
1 0 0
1 1 1
SYMBOLIC LOGIC
Do Worksheet 4
SYMBOLIC LOGIC
Definition
SYMBOLIC LOGIC
Definition
SYMBOLIC LOGIC
Definition
𝑃 ⟺𝑄
or
𝑃 ≡𝑄
SYMBOLIC LOGIC
Example
𝑃 𝑄 P⟹Q ¬P ¬P ⋁ Q
0 0 1 1 1
0 1 1 1 1
1 0 0 0 0
1 1 1 0 1
SYMBOLIC LOGIC
Example
𝑃 𝑄 ¬P ¬Q Q ⋁ ¬P ¬Q ⟹ ¬P ¬P ⋀ ¬Q,
0 0 1 1 1 1 0
0 1 1 0 1 1 0
1 0 0 1 0 0 0
1 1 0 0 1 1 1
SYMBOLIC LOGIC
The following are logical identities or rules of replacement.
SYMBOLIC LOGIC
SYMBOLIC LOGIC
SYMBOLIC LOGIC
SYMBOLIC LOGIC
Example
Solution
SYMBOLIC LOGIC
Example
Solution
SYMBOLIC LOGIC
Do Worksheet 6
SYMBOLIC LOGIC
Definition
Classification of Arguments:
1. Inductive argument is an argument where it is claimed
that within a certain probability of error, the conclusion
follows from a premise; and
2. Deductive argument is an argument where is it claimed
that the conclusion absolutely follows from the premise.
SYMBOLIC LOGIC
A deductive argument is said to be valid if whenever
the premises are all true, then the conclusion is also
true. In other words if 𝑃1 , 𝑃2 , … 𝑃𝑛 are premises and Q
is the conclusion of the argument
𝑃1 𝑎𝑛𝑑 𝑃2 , 𝑎𝑛𝑑 … 𝑃𝑛 therefore Q is valid if and only if
the corresponding prepositional form
SYMBOLIC LOGIC
To show that an argument is valid, we have to show an
instance where the conclusion is free and the premises
are all true.
SYMBOLIC LOGIC
To show the validity of arguments, we may use
the truth table. However, this method is
impractical specially if the argument contains
several propositional variables. A more
convenient method is by deducing the
conclusion from the premises by a sequence of
shorter, more elementary arguments known to
be valid.
SYMBOLIC LOGIC
Rules of Inference
These are known valid argument forms.
SYMBOLIC LOGIC
SYMBOLIC LOGIC
SYMBOLIC LOGIC
SYMBOLIC LOGIC
Construct a formal proof of the following rules of
inference:
1. Absorption
2. Modus Ponens
3. Modus Tollens
4. Disjunctive Syllogism
5. Constructive Dilemma
1. Absorption
p q
---------------
p (p q)
Proof:
p q Given premise
p q M.I.
1 (p q) Identity
(p p) (p q) Identity
p (p q) Dist.
p (p q) M.I.
2. Modus Ponens
p q
p
---------------
q
Proof:
1. p q Given premise
2. p Given premise
3. p q Addition
4. p q M.I. (1)
5. (p q) (p q) Conjunction (3,4)
6. (q p) (q p) Comm.
7. q (p p) Dist.
8. q 0 Ident.
9. q Ident.
3. Modus Tollens
p q
q
---------------
p
Proof:
1. p q Given premise
2. q Given premise
3. q p Addition
4. p q M.I. (1)
5. p q Comm. (3)
6. ( p q) (p q) Conjunction (4, 5)
7. p (q q) Dist.
8. p 0 Ident.
9. p Ident.
4. Disjunctive Syllogism
p q
p
---------------
q
Proof:
1. p q Given premise
2. p Given premise
3. p q M.I. (1)
4. q M.P. (3, 2)
5. Constructive Dilemma
(p q) (r s)
pr
---------------
qs
Proof:
1. (p q) (r s) Given premise
2. p r Given premise
3. p q Simplification (1)
4. r s Comm. & Simplification (1)
5. p r M.I. (2)
6. q p Contra+ (3)
7. q r H.S. (6, 5)
8. q s H.S. (6, 4)
9. q s M.I.
Construct a formal proof of validity of the following
arguments:
SYMBOLIC LOGIC
Solution for (a):
J: Jack is in Paris.
M: Mary is in New York.
F: Fred Is in Rome.
1. J ⟹ M (premise)
2. J ⋀ F (premise)
3. J (2. Simp)
4. M (1, 3. MP)
SYMBOLIC LOGIC
Solution for (b):
M: Mark is correct.
U: Unemployment will rise.
A: Ann is correct.
H: There will be a hard winter.
1. (M ⟹ U) ⋀ (A ⟹ H) (premise)
2. A (premise)
3. (A ⟹ H) ⋀ (M ⟹ U) (1. Comm)
4. A ⟹ H (3. Simp)
5. H (4, 2. MP)
6. H ⋁ U (5. Add)
7. U ⋁ H (6. Comm)
SYMBOLIC LOGIC
Alternative Solution for (b):
M: Mark is correct.
U: Unemployment will rise.
A: Ann is correct.
H: There will be a hard winter.
1. (M ⟹ U) ⋀ (A ⟹ H) (premise)
2. A (premise)
3. A ⋁ M (2. Add)
4. M ⋁ A (3. Comm)
5. U ⋁ H (1, 4. CD)
SYMBOLIC LOGIC
Do Worksheet 7
SYMBOLIC LOGIC
Definition
SYMBOLIC LOGIC
Example
Solution
SYMBOLIC LOGIC
(Continued)
Proof:
1. P ⟹ (L ⋀ B) (premise)
2. (L ⋁ B) ⟹ J (premise)
3. P (CP)
4. L ⋀ B (1, 3. MP)
5. L (4. Simp)
6. L ⋁ B (5. Add)
7. J (2, 6. MP)
8. P ⟹ J (3 – 7. CP)
SYMBOLIC LOGIC
Example
2. If we invite Lana then Jake will sulk, and if we invite Bob then
Alice will leave. So if we invite Lana and Bob then Jake will sulk
and Alice will leave.
Solution
SYMBOLIC LOGIC
Solution
Proof:
1. (L ⟹ J) ⋀ (B ⟹ A) (premise)
2. L ⋀ B (CP)
3. L ⟹ J (1. Simp)
4. (B ⟹ A) ⋀ (L ⟹ J) (1. Com)
5. B ⟹ A (4. Simp)
6. L (2. Simp)
7. J (3, 6. MP)
8. B ⋀ L (2. Com)
9. B (8. Simp)
10. A (5, 9. MP)
11. J ⋀ A (7, 10. Conj)
12. (L ⋀ B) ⟹ (J ⋀ A) (2 – 11. CP)
SYMBOLIC LOGIC
Do Worksheet 8
SYMBOLIC LOGIC