0% found this document useful (0 votes)
8 views16 pages

Lec 5

The document discusses the concepts of logic in proofs, emphasizing the structure of valid arguments, including premises and conclusions, and the use of truth tables to test argument validity. It also outlines basic rules of inference, such as Modus Ponens and Modus Tollens, which are essential for constructing logical arguments. Examples are provided to illustrate how to apply these rules and determine the validity of arguments.

Uploaded by

pochinkisu075
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views16 pages

Lec 5

The document discusses the concepts of logic in proofs, emphasizing the structure of valid arguments, including premises and conclusions, and the use of truth tables to test argument validity. It also outlines basic rules of inference, such as Modus Ponens and Modus Tollens, which are essential for constructing logical arguments. Examples are provided to illustrate how to apply these rules and determine the validity of arguments.

Uploaded by

pochinkisu075
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

DISCRETE STRUCTURES AND THEORY OF LOGIC (BCS 303)

Lecture - 5
Logic in Proof
A theorem is a proposition that can be proved to be true. An argument that
establishes the truth of a theorem is called a proof. There are many different types of
proofs.
Valid Arguments
• An argument is a sequence of statements. All statements except the final one
are called premises (or assumptions or hypotheses).
• The final statement is called the conclusion. The symbol "∴", read as
"therefore", is normally placed just before the conclusion.
• An argument is a process by which a conclusion is drawn from a set of
propositions. The given set of propositions are called premises or hypotheses.
The final proposition derived from the given propositions is called the
conclusion.
Sometimes an argument is written in the following form:

An argument is said to be a logically valid argument if and only if the conjunction


of the premises implies the conclusion. That is, if the premises are all true, the
conclusion must also be true.
The argument which yields a conclusion C from the premises P1, P2, P3….Pn is valid
if and only if:
P1 ∧ P2 ∧ P3 ∧⋯∧ Pn → C is a tautology.
Practically speaking, to test an argument for validity:
1. Identify the premises and the conclusion of the argument.
2. Construct a truth table showing the truth values of all premises and the
conclusion.
3. Find the rows (called critical rows) in which all the premises are true.
4. In each critical row, determine whether the conclusion of the argument is also
true.
✓ (a) If in each critical row the conclusion is also true, then the argument
form is valid.
✓ (b) If there is at least one critical row in which the conclusion is false, the
argument form is invalid.
The method of determining whether the conclusion logically follows from the given
premises by constructing the relevant truth table is called the truth table technique.
Example 1:
Argument:
1. If it rains today, then the ground will be wet. (Premise 1: p→q)
2. It is raining today. (Premise 2: p)
3. Therefore, the ground will be wet. (Conclusion: q)
Truth Table:
p q p→q Conclusion
q
T T T T
T F F F
F T T T
F F T F
Critical Row:
• Row 1 where p = T and p→q = T. Both premises are true here.
In this row (Row 1), the conclusion q is also true. This is the only row where all
premises are true, so the argument is valid.
• In Row 3, p = F and p→q = T, so Premise 1 is true, but Premise 2 is false (p=F).
Thus, this is not a critical row because not all premises are true in this row.
Example 2:
Argument:
1. If it is sunny, then I will go for a walk. (Premise 1: p→q)
2. I am not going for a walk. (Premise 2: ¬q)
3. Therefore, it is not sunny. (Conclusion: ¬p)
Truth Table:
p q p→q ¬q ¬p Conclusion
(¬p)
T T T F F F
T F F T F F
F T T F T T
F F T T T T
Critical Row:
• Row 4 where p→q=T and ¬q=T. Both premises are true here.
In this row (Row 4), the conclusion ¬p is also true. Thus, this argument is valid.
• In Row 3, p = F and ¬q = F. Premise 2 is not true (¬q = F), so it’s not a critical
row for testing validity.

Summary
In both examples:
• Critical Rows are those where all premises are true.
• To determine if an argument is valid, you check whether the conclusion is true
in these critical rows.
• Rows where not all premises are true (like Row 3 in the examples) are not
considered for testing validity.
• Valid Argument: If in every critical row (where all premises are true), the
conclusion is also true, then the argument is valid.
• Invalid Argument: If there is at least one critical row where all premises are
true but the conclusion is false, then the argument is invalid.
Rules of Inference
Rules of inference are basic tools used to draw conclusions from given statements or
premises. They help us make logical arguments, prove ideas, and solve problems in
areas like math, computer science, and philosophy. Knowing these rules is important
because they ensure that our conclusions logically follow from the information we
start with.
Basic Rules of Inference
1. Addition
Rule: If a statement p is true, then p v q (read as "p or q") is also true, regardless of
what q is.
Symbolically:

Example:
• Premise: Ram is not guilty.
• Conclusion: Therefore, Ram is not guilty or Shyam is telling the truth.
Here, regardless of whether Shyam is telling the truth or not, the statement "Ram is
not guilty or Shyam is telling the truth" is true because "Ram is not guilty" is true.

2. Simplification
Rule: If a conjunction p ^ q (read as "p and q") is true, then both p and q are
individually true.
Symbolically:

Example:
• Premise: It is raining, and I have an umbrella.
• Conclusion: Therefore, it is raining (or) I have an umbrella.
If both statements are true together, each statement is also true individually.

3. Conjunction
Rule: If two statements p and q are both true, then their conjunction p ^ q is true.
Symbolically:
Example:
• Premise 1: I study hard.
• Premise 2: I get good grades.
• Conclusion: Therefore, I study hard and I get good grades.
If both individual premises are true, their conjunction is also true.

4. Modus Ponens (Law of Detachment)


Rule: If p → q (read as "if p then q") is true, and p is true, then q must also be true.
Symbolically:

Example:
• Premise 1: If I study hard, I will get A’s.
• Premise 2: I study hard.
• Conclusion: Therefore, I will get A’s.
The truth of the premises leads to the truth of the conclusion through Modus Ponens.

5. Modus Tollens (Law of Contrapositive)


Rule: If p → q is true, and q is false, then p must also be false.
Symbolically:

Example:
• Premise 1: If the number is divisible by 6, it is divisible by 3.
• Premise 2: The number is not divisible by 3.
• Conclusion: Therefore, the number is not divisible by 6.
Here, since the number is not divisible by 3 (the consequent is false), the number
cannot be divisible by 6 (the antecedent).
6. Hypothetical Syllogism
Rule: If p → q and q → r are both true, then p → r is also true.
Symbolically:

Example:
• Premise 1: If it rains, I will stay home.
• Premise 2: If I stay home, I will watch a movie.
• Conclusion: Therefore, if it rains, I will watch a movie.
Since both premises are true, we can conclude that the rain implies watching a movie.

7. Disjunctive Syllogism
Rule: If p v q is true, and ¬q is true, then p must be true.
Symbolically:

Example:
• Premise 1: Either Ram is not guilty, or Shyam is telling the truth.
• Premise 2: Shyam is not telling the truth.
• Conclusion: Therefore, Ram is not guilty.
Since Shyam is not telling the truth, the other alternative in the disjunction (Ram is
not guilty) must be true.
8. Constructive Dilemma
Rule: If p → q and r → s are true, and p v r is true, then q v s must be true.
Symbolically:

Example:
• Premise 1: If I study hard, I will get A’s.
• Premise 2: If I don’t go to the party, I will finish my homework.
• Premise 3: Either I study hard, or I don’t go to the party.
• Conclusion: Therefore, either I will get A’s or I will finish my homework.
By applying the rule of Constructive Dilemma, we conclude that either of the
outcomes will be true.

9. Destructive Dilemma
Rule: If p → q and r → s are true, and ¬q v ¬s is true, then ¬p v ¬r must be true.
Symbolically:

Example:
• Premise 1: If I go to the gym, I will be fit.
• Premise 2: If I eat healthy, I will lose weight.
• Premise 3: Either I am not fit, or I did not lose weight.
• Conclusion: Therefore, either I did not go to the gym, or I did not eat healthy.
Here, since one or both consequences failed, one or both of the causes must also fail.

Table: Rule of Inference


Rule of Inference Tautological Form Rule Name
p → (p∨q) Addition
q → (p∨q)
(p∧q) → p Simplification
(p∧q) → q
(p∧q) → (p∧q) Conjunction

[(p→q) ∧ p] → q Modus Ponens


(Law of Detachment)

[(p→q) ∧ ¬q] → ¬p Modus Tollens


(Law of Contrapositive)

[(p→q) ∧ (q→r)] → (p→r) Hypothetical Syllogism


[(p∨q) ∧ ¬q] → p Disjunctive Syllogism

[(p→q) ∧ (r→s) ∧ (p∨r)] → (q∨s) Constructive Dilemma

[(p→q) ∧ (r→s) ∧ (¬q∨¬s)] → (¬p∨¬r) Destructive Dilemma

Examples:
Problem 1: Represent the argument:
If I study hard, then I get A's.
I study hard.
--------------------------------------------
Therefore, I get A's.
Solution:
Let:
• p: I study hard,
• q: I get A's.
The argument may be written symbolically as:

Hence, by modus ponens, the argument is valid.

Problem 2: Represent the argument:


• If this number is divisible by 6, then it is divisible by 3.
• This number is not divisible by 3.
• Therefore, this number is not divisible by 6.
Symbolically and determine whether the argument is valid.
Solution:
Let:
• p: The number is divisible by 6.
• q: The number is divisible by 3.
The argument may be written symbolically as:
Thus, by Modus Tollens, the argument is valid.

To determine whether the argument is valid, you can use the truth table method.
This will allow you to verify whether the logical argument holds true based on its
premises and conclusion.
• Premise 1: If a number is divisible by 6, then it is divisible by 3. (p→q)
• Premise 2: The number is not divisible by 3. (¬q)
• Conclusion: The number is not divisible by 6. (¬p)
This is an instance of Modus Tollens, which states:

Now, let's check the validity using a truth table.


Step 1: Set up a truth table
We will create a truth table for the propositions p (the number is divisible by 6) and q
(the number is divisible by 3), including p→q, ¬q, ¬p.
p q p→q ¬q ¬p
T T T F F
T F F T F
F T T F T
F F T T T
Step 2: Identify rows where both premises are true
The premises are:
1. p→q (If a number is divisible by 6, then it is divisible by 3)
2. ¬q (The number is not divisible by 3)
Look for rows where both p→q and ¬q are true:
• In Row 4, both p→q and ¬q are true.
Step 3: Check the conclusion
In Row 4, where the premises are both true, check whether the conclusion ¬p is also
true:
• In Row 4, ¬p is indeed true.
Conclusion:
Since in the only row where the premises are true, the conclusion is also true, the
argument is valid according to the truth table.

Problem 3: Represent the argument:


Either Ram is not guilty, or Shyam is telling the truth.
Shyam is not telling the truth.
---------------------------------------------------------------------
Therefore, Ram is not guilty.

Symbolically and determine whether the argument is valid.


Solution:
Let:
• p: Ram is not guilty.
• q: Shyam is telling the truth.
The argument can be written symbolically as:

Thus, by Disjunctive Syllogism, the argument is valid.

Problem 4: State which rule of inference is used in the argument:


If it rains today, then we will not have a barbecue today. If we do not have a
barbecue today, then we will have a barbecue tomorrow. Therefore, if it rains
today, then we will have a barbecue tomorrow.
Solution: In the argument, we have the following structure:
1. p→q (If it rains today, then we will not have a barbecue today.)
2. q→r (If we do not have a barbecue today, then we will have a barbecue
tomorrow.)
3. Therefore, p→r (If it rains today, then we will have a barbecue tomorrow.)
Symbolic representation:

Hence, the rule of inference used in this argument is hypothetical syllogism.


Problem 5: Show that t is a valid conclusion from the premises p→q, q→r, r→s,
¬s, and p∨t.
Solution: The valid argument for deducing t from the given five premises is shown
step by step:
1 p→q Premise 1 (Given)
2 q→r Premise 2 (Given)
3 r→s Premise 3 (Given)
4 p→r Hypothetical Syllogism (using Premises 1 and 2)
5 p→s Hypothetical Syllogism (using Premises 3 and 4)
6 ¬s Premise 4 (Given)
7 ¬p Modus Tollens (using Premises 5 and 6)
8 p∨t Premise 5 (Given)
9 t Disjunctive Syllogism (using Premises 7 and 8)

Thus, we can conclude t from the given premises.

Problem 6: Show that s is a valid conclusion from the premises p→q, p→r, ¬(q∧r),
and s∨p.
Solution: The valid argument for deducing s from the given premises is shown step
by step:
1 p→q Premise 1 (Given)
2 p→r Premise 2 (Given)
3 (p→q) ∧ (p→r) Using Conjunction (from Premises 1 and 2):
4 ¬(q ∧ r) Premise 3 (Given)

5 ¬q ∨ ¬r De Morgan's Law (on Premise 4):


6 ¬p Destructive Dilemma (using Step 3 and Step 5):
7 s ∨p Premise 4 (Given)
8 s Disjunctive Syllogism (using Step 6 and Step 7)

Thus, we can conclude s from the given premises.

Problem 7: Prove the validity of the following argument:


"If I get the job and work hard, then I will get promoted. If I get promoted, then
I will be happy. I will not be happy. Therefore, either I will not get the job or I
will not work hard."
Solution: The prepositions are:
• p: I get the job
• q: I work hard
• r: I get promoted
• s: I will be happy
The argument can be written in symbolic form as:
(p ∧ q) → r
r→s
¬s

1 (p∧q)→r Premise 1: (If I get the job and work hard, I will get promoted)
2 r→s Premise 2: (If I get promoted, I will be happy)
3 (p∧q)→s Hypothetical Syllogism (using Premises 1 and 2)
4 ¬s Premise 3: (I will not be happy)
5 ¬(p∧q) Modus Tollens (using Premises 3 and 4)
6 ¬p∨¬q De Morgan's Law (on Step 5)

Thus, the argument is valid, and we can conclude that either I will not get the job or
I will not work hard.
Problem 8: Show that the premises “It is not sunny this afternoon and it is
colder than yesterday,” “We will go swimming only if it is sunny,” “If we do not
go swimming, then we will take a canoe trip,” and “If we take a canoe trip, then
we will be home by sunset” lead to the conclusion “We will be home by sunset.”
Solution: The propositions are:
• p: "It is sunny this afternoon."
• q: "It is colder than yesterday."
• r: "We will go swimming."
• s: "We will take a canoe trip."
• t: "We will be home by sunset."
The premises are:
1. ¬p ∧ q (It is not sunny this afternoon and it is colder than yesterday.)
2. r→p (If we go swimming, then it is sunny this afternoon.)
3. ¬r→s (If we do not go swimming, then we will take a canoe trip.)
4. s→t (If we take a canoe trip, then we will be home by sunset.)
5. Conclusion: t (We will be home by sunset).
Argument construction:
1. ¬p∧q Premise

2. ¬p Simplification using (1)

3. r→p Premise

4. ¬r Modus tollens using (2) and (3)

5. ¬r→s Premise

6. s Modus ponens using (4) and (5)

7. s→t Premise

8. t Modus ponens using (6) and (7)

Problem 9: Show that the premises “If you send me an e-mail message, then I
will finish writing the program,” “If you do not send me an e-mail message, then
I will go to sleep early,” and “If I go to sleep early, then I will wake up feeling
refreshed” lead to the conclusion “If I do not finish writing the program, then I
will wake up feeling refreshed.”
Solution: The propositions are:
• p: "You send me an e-mail message."
• q: "I will finish writing the program."
• r: "I will go to sleep early."
• s: "I will wake up feeling refreshed."
The premises are:
1. p→q (If you send me an e-mail message, I will finish writing the program.)
2. ¬p→r (If you do not send me an e-mail message, I will go to sleep early.)
3. r→s (If I go to sleep early, I will wake up feeling refreshed.)
4. Conclusion: ¬q→s (If I do not finish writing the program, I will wake up feeling
refreshed).
Argument Construction:
1. p→q Premise
2. ¬q→¬p Contrapositive using (1)
3. ¬p→r Premise
4. ¬q→r Hypothetical syllogism using (2) and (3)
5. r→s Premise
6. ¬q→s Hypothetical syllogism using (4) and (5)

Thus, the premises logically lead to the desired conclusion ¬q→s.

Problem 10: Use rules of inference to show that the hypotheses “Randy works
hard,” “If Randy works hard, then he is a dull boy,” and “If Randy is a dull boy,
then he will not get the job” imply the conclusion “Randy will not get the job.”
Solution: The propositions are:
• p: "Randy works hard."
• q: "Randy is a dull boy."
• r: "Randy will not get the job."
The hypotheses are:
1. p (Randy works hard.)
2. p→q (If Randy works hard, then he is a dull boy.)
3. q→r (If Randy is a dull boy, then he will not get the job.)
4. Conclusion we want to prove is r (Randy will not get the job).
Argument Construction:
1. P Premise
2. p→q Premise
3. q Modus ponens using (1) and (2)
4. q→r Premise
5. r Modus ponens using (3) and (4)

Thus, the hypotheses logically lead to the conclusion that Randy will not get the job.
Practice problems:
1. Show that r ^ (p v q) is a valid conclusion from the premises pvq, q→r,
p→m and ~m.
2. Using the rule of inference, determine whether the following inference
patterns are valid or not.
~t→ ~r
~s
t→w
rvs
∴ w

3. Determine whether the conclusion r is valid in the following premises:


p→(q→r), p^q.
Solution 1:
1 p→m Premise (Given)
2 ~m Premise (Given)
3 ~p Modus Tollens (using 1 and 2)
4 pvq Premise (Given)
5 q Disjunctive syllogism (using 3 and 4)
6 q→r Premise (Given)
7 r Modus Ponens (using 5 and 6)
8 r ^ ( p v q) Conjunction (using 7 and 4)

Solution 2:
1 rvs Premise (Given)
2 svr Commutative law v (using 1)
3 ~s Premise (Given)
4 r Disjunctive syllogism (using 2 and 3)
5 ~t → ~r Premise (Given)
6 ~(~t) Modus Tollens (using 5 and 4)
7 t
8 t→w Premise (Given)
9 w Modus Ponens (using 8 and 7)

Solution 3:
1 p^q Premise (Given)
2 p Simplification (using 1)
3 p →(q→r) Premise (Given)
4 q→r Modus Ponens (using 3 and 2)
5 q^p Commutative law ^ (using 1)
6 q Simplification (using 5)
7 r Modus Ponens (using 4 and 6)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy