SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Discrete Mathematics
Lecture 08
Rubya Afrin
Lecturer
Northern University of Business and Technology
Mathematical Reasoning
2
Mathematical Reasoning
We need mathematical reasoning to
• determine whether a mathematical argument is
correct or incorrect and
• construct mathematical arguments.
Mathematical reasoning is not only important for
conducting proofs and program verification, but
also for artificial intelligence systems (drawing
inferences).
3
Terminology
An axiom is a basic assumption about
mathematical structured that needs no proof.
We can use a proof to demonstrate that a
particular statement is true. A proof consists of a
sequence of statements that form an argument.
The steps that connect the statements in such a
sequence are the rules of inference.
Cases of incorrect reasoning are called fallacies.
A theorem is a statement that can be shown to be
true.
4
Terminology
A lemma is a simple theorem used as an
intermediate result in the proof of another theorem.
A corollary is a proposition that follows directly
from a theorem that has been proved.
A conjecture is a statement whose truth value is
unknown. Once it is proven, it becomes a theorem.
5
Rules of Inference
Rules of inference provide the justification of the
steps used in a proof.
One important rule is called modus ponens or the
law of detachment. It is based on the tautology
(p(pq))  q. We write it in the following way:
p
p  q
____
 q
6
The two hypotheses p and p  q are
written in a column, and the conclusion
below a bar, where  means “therefore”.
Rules of Inference
The general form of a rule of inference is:
 p1
 p2
 .
 .
 .
 pn
____
 q
7
The rule states that if p1 and p2 and …
and pn are all true, then q is true as well.
These rules of inference can be used in
any mathematical argument and do not
require any proof.
Rules of Inference
 p
_____

pq
8
Addition
pq
_____
 p
Simplification
p
q
_____
 pq
Conjunction
q
pq
_____
 p
Modus
tollens
pq
qr
_____
 pr
Hypothetical
syllogism
pq
p
_____
 q
Disjunctive
syllogism
Arguments
Just like a rule of inference, an argument consists
of one or more hypotheses and a conclusion.
We say that an argument is valid, if whenever all its
hypotheses are true, its conclusion is also true.
However, if any hypothesis is false, even a valid
argument can lead to an incorrect conclusion.
9
Arguments
Example:
“If 101 is divisible by 3, then 1012 is divisible by 9.
101 is divisible by 3. Consequently, 1012 is divisible by
9.”
Although the argument is valid, its conclusion is
incorrect, because one of the hypotheses is false
(“101 is divisible by 3.”).
If in the above argument we replace 101 with 102,
we could correctly conclude that 1022 is divisible by
9.
10
Arguments
Which rule of inference was used in the last
argument?
p: “101 is divisible by 3.”
q: “1012 is divisible by 9.”
11
p
pq
_____
 q
Modus
ponens
Unfortunately, one of the hypotheses (p) is false.
Therefore, the conclusion q is incorrect.
Arguments
Another example:
“If it rains today, then we will not have a barbeque
today. If we do not have a barbeque today, then we
will have a barbeque tomorrow.
Therefore, if it rains today, then we will have a
barbeque tomorrow.”
This is a valid argument: If its hypotheses are true,
then its conclusion is also true.
12
Arguments
Let us formalize the previous argument:
p: “It is raining today.”
q: “We will not have a barbecue today.”
r: “We will have a barbecue tomorrow.”
So the argument is of the following form:
13
pq
qr
_____
 pr
Hypothetical
syllogism
Arguments
Another example:
Gary is either intelligent or a good actor.
If Gary is intelligent, then he can count
from 1 to 10.
Gary can only count from 1 to 2.
Therefore, Gary is a good actor.
i: “Gary is intelligent.”
a: “Gary is a good actor.”
c: “Gary can count from 1 to 10.”
14
Arguments
i: “Gary is intelligent.”
a: “Gary is a good actor.”
c: “Gary can count from 1 to 10.”
Step 1: c Hypothesis
Step 2: i  c Hypothesis
Step 3: i Modus tollens Steps 1 & 2
Step 4: a  i Hypothesis
Step 5: a Disjunctive Syllogism
Steps 3 & 4
Conclusion: a (“Gary is a good actor.”)
15
Arguments
Yet another example:
If you attend class, you will pass CSE 1203.
You passed CSE 1203.
Therefore, you have attended class.
Is this argument valid?
No, it assumes ((pq) q)  p.
This statement is not a tautology. It is false if p is
false and q is true.
16
Rules of Inference for Quantified Statements
 x P(x)__________
 P(c) if
cU
17
Universal
instantiation
P(c) for an arbitrary cU
___________________
 x P(x)
Universal
generalization
x P(x)
______________________
 P(c) for some element cU
Existential
instantiation
P(c) for some element cU
____________________
 x P(x)
Existential
generalization
Rules of Inference for Quantified Statements
Example:
Every NUBTK student is smart.
James is a NUBTK student.
Therefore, James is smart.
N(x): “x is a NUBTK student.”
S(x): “x is a smart.”
18
Rules of Inference for Quantified Statements
The following steps are used in the argument:
Step 1: x (N(x)  S(x)) Hypothesis
Step 2: N(James)  S(James) Univ. instantiation
using Step 1
19
x P(x)
__________
 P(c) if cU
Universal
instantiation
Step 3: N(James) Hypothesis
Step 4: S(James) Modus ponens
using Steps 2 & 3
Proving Theorems
Direct proof:
An implication pq can be proved by showing that
if p is true, then q is also true.
Example: Give a direct proof of the theorem
“If n is odd, then n2 is odd.”
Idea: Assume that the hypothesis of this implication
is true (n is odd). Then use rules of inference and
known theorems to show that q must also be true (n2
is odd).
20
Proving Theorems
n is odd.
Then n = 2k + 1, where k is an integer.
Consequently, n2 = (2k + 1)2.
 = 4k2 + 4k + 1
 = 2(2k2 + 2k) + 1
Since n2 can be written in this form, it is odd.
21
Proving Theorems
Indirect proof:
An implication pq is equivalent to its contra-
positive q  p. Therefore, we can prove pq by
showing that whenever q is false, then p is also false.
Example: Give an indirect proof of the theorem
“If 3n + 2 is odd, then n is odd.”
Idea: Assume that the conclusion of this implication
is false (n is even). Then use rules of inference and
known theorems to show that p must also be false
(3n + 2 is even).
22
Proving Theorems
n is even.
Then n = 2k, where k is an integer.
It follows that 3n + 2 = 3(2k) + 2
 = 6k + 2
 = 2(3k + 1)
Therefore, 3n + 2 is even.
We have shown that the contrapositive of the
implication is true, so the implication itself is also true
(If 2n + 3 is odd, then n is odd).
23
THANK YOU…
24

Weitere ähnliche Inhalte

Was ist angesagt?

Math induction principle (slides)
Math induction principle (slides)Math induction principle (slides)
Math induction principle (slides)
IIUM
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
Mir Majid
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...
Lê Anh Đạt
 

Was ist angesagt? (20)

Math induction principle (slides)
Math induction principle (slides)Math induction principle (slides)
Math induction principle (slides)
 
Principle source of optimazation
Principle source of optimazationPrinciple source of optimazation
Principle source of optimazation
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
 
Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
Compiler Design
Compiler DesignCompiler Design
Compiler Design
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
Approximation Algorithms
Approximation AlgorithmsApproximation Algorithms
Approximation Algorithms
 
AI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issuesAI_ 3 & 4 Knowledge Representation issues
AI_ 3 & 4 Knowledge Representation issues
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
 
Riemannian Geometry in Egison
Riemannian Geometry in EgisonRiemannian Geometry in Egison
Riemannian Geometry in Egison
 
convex hull
convex hullconvex hull
convex hull
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...
 
Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and Lifting
 
Inference in First-Order Logic
Inference in First-Order Logic Inference in First-Order Logic
Inference in First-Order Logic
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
 
Attribute grammer
Attribute grammerAttribute grammer
Attribute grammer
 
Insertion sort bubble sort selection sort
Insertion sort bubble sort  selection sortInsertion sort bubble sort  selection sort
Insertion sort bubble sort selection sort
 

Ähnlich wie Mathematical Reasoning DM

Mathmatical reasoning
Mathmatical reasoningMathmatical reasoning
Mathmatical reasoning
indu psthakur
 
Discrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsDiscrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and Proofs
Wongyos Keardsri
 

Ähnlich wie Mathematical Reasoning DM (20)

Per3 pembuktian
Per3 pembuktianPer3 pembuktian
Per3 pembuktian
 
Mathmatical reasoning
Mathmatical reasoningMathmatical reasoning
Mathmatical reasoning
 
desmath(1).ppt
desmath(1).pptdesmath(1).ppt
desmath(1).ppt
 
Chapter1p3.pptx
Chapter1p3.pptxChapter1p3.pptx
Chapter1p3.pptx
 
Chapter 01 - p3.pdf
Chapter 01 - p3.pdfChapter 01 - p3.pdf
Chapter 01 - p3.pdf
 
4AMT122-PART 1-SLIDES.pptx
4AMT122-PART 1-SLIDES.pptx4AMT122-PART 1-SLIDES.pptx
4AMT122-PART 1-SLIDES.pptx
 
Obj. 9 Inductive Reasoning
Obj. 9 Inductive ReasoningObj. 9 Inductive Reasoning
Obj. 9 Inductive Reasoning
 
Discrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsDiscrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and Proofs
 
Valid & invalid arguments
Valid & invalid argumentsValid & invalid arguments
Valid & invalid arguments
 
Mathematical Logic Part 2
Mathematical Logic Part 2Mathematical Logic Part 2
Mathematical Logic Part 2
 
Valid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptxValid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptx
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
 
chapter 1 (part 2)
chapter 1 (part 2)chapter 1 (part 2)
chapter 1 (part 2)
 
The axiomatic power of Kolmogorov complexity
The axiomatic power of Kolmogorov complexity The axiomatic power of Kolmogorov complexity
The axiomatic power of Kolmogorov complexity
 
If and then statements
If and then statementsIf and then statements
If and then statements
 
AI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdfAI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdf
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.ppt
 
Logic
LogicLogic
Logic
 
1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoning1.3.1 Inductive and Deductive Reasoning
1.3.1 Inductive and Deductive Reasoning
 
1.3.1B Inductive Reasoning
1.3.1B Inductive Reasoning1.3.1B Inductive Reasoning
1.3.1B Inductive Reasoning
 

Mehr von Rokonuzzaman Rony (20)

Course outline for c programming
Course outline for c  programming Course outline for c  programming
Course outline for c programming
 
Pointer
PointerPointer
Pointer
 
Operator Overloading & Type Conversions
Operator Overloading & Type ConversionsOperator Overloading & Type Conversions
Operator Overloading & Type Conversions
 
Constructors & Destructors
Constructors  & DestructorsConstructors  & Destructors
Constructors & Destructors
 
Classes and objects in c++
Classes and objects in c++Classes and objects in c++
Classes and objects in c++
 
Functions in c++
Functions in c++Functions in c++
Functions in c++
 
Object Oriented Programming with C++
Object Oriented Programming with C++Object Oriented Programming with C++
Object Oriented Programming with C++
 
Humanitarian task and its importance
Humanitarian task and its importanceHumanitarian task and its importance
Humanitarian task and its importance
 
Structure
StructureStructure
Structure
 
Pointers
 Pointers Pointers
Pointers
 
Loops
LoopsLoops
Loops
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Array
ArrayArray
Array
 
Constants, Variables, and Data Types
Constants, Variables, and Data TypesConstants, Variables, and Data Types
Constants, Variables, and Data Types
 
C Programming language
C Programming languageC Programming language
C Programming language
 
User defined functions
User defined functionsUser defined functions
User defined functions
 
Numerical Method 2
Numerical Method 2Numerical Method 2
Numerical Method 2
 
Numerical Method
Numerical Method Numerical Method
Numerical Method
 
Data structures
Data structuresData structures
Data structures
 
Data structures
Data structures Data structures
Data structures
 

Kürzlich hochgeladen

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 

Mathematical Reasoning DM

  • 1. Discrete Mathematics Lecture 08 Rubya Afrin Lecturer Northern University of Business and Technology
  • 3. Mathematical Reasoning We need mathematical reasoning to • determine whether a mathematical argument is correct or incorrect and • construct mathematical arguments. Mathematical reasoning is not only important for conducting proofs and program verification, but also for artificial intelligence systems (drawing inferences). 3
  • 4. Terminology An axiom is a basic assumption about mathematical structured that needs no proof. We can use a proof to demonstrate that a particular statement is true. A proof consists of a sequence of statements that form an argument. The steps that connect the statements in such a sequence are the rules of inference. Cases of incorrect reasoning are called fallacies. A theorem is a statement that can be shown to be true. 4
  • 5. Terminology A lemma is a simple theorem used as an intermediate result in the proof of another theorem. A corollary is a proposition that follows directly from a theorem that has been proved. A conjecture is a statement whose truth value is unknown. Once it is proven, it becomes a theorem. 5
  • 6. Rules of Inference Rules of inference provide the justification of the steps used in a proof. One important rule is called modus ponens or the law of detachment. It is based on the tautology (p(pq))  q. We write it in the following way: p p  q ____  q 6 The two hypotheses p and p  q are written in a column, and the conclusion below a bar, where  means “therefore”.
  • 7. Rules of Inference The general form of a rule of inference is:  p1  p2  .  .  .  pn ____  q 7 The rule states that if p1 and p2 and … and pn are all true, then q is true as well. These rules of inference can be used in any mathematical argument and do not require any proof.
  • 8. Rules of Inference  p _____  pq 8 Addition pq _____  p Simplification p q _____  pq Conjunction q pq _____  p Modus tollens pq qr _____  pr Hypothetical syllogism pq p _____  q Disjunctive syllogism
  • 9. Arguments Just like a rule of inference, an argument consists of one or more hypotheses and a conclusion. We say that an argument is valid, if whenever all its hypotheses are true, its conclusion is also true. However, if any hypothesis is false, even a valid argument can lead to an incorrect conclusion. 9
  • 10. Arguments Example: “If 101 is divisible by 3, then 1012 is divisible by 9. 101 is divisible by 3. Consequently, 1012 is divisible by 9.” Although the argument is valid, its conclusion is incorrect, because one of the hypotheses is false (“101 is divisible by 3.”). If in the above argument we replace 101 with 102, we could correctly conclude that 1022 is divisible by 9. 10
  • 11. Arguments Which rule of inference was used in the last argument? p: “101 is divisible by 3.” q: “1012 is divisible by 9.” 11 p pq _____  q Modus ponens Unfortunately, one of the hypotheses (p) is false. Therefore, the conclusion q is incorrect.
  • 12. Arguments Another example: “If it rains today, then we will not have a barbeque today. If we do not have a barbeque today, then we will have a barbeque tomorrow. Therefore, if it rains today, then we will have a barbeque tomorrow.” This is a valid argument: If its hypotheses are true, then its conclusion is also true. 12
  • 13. Arguments Let us formalize the previous argument: p: “It is raining today.” q: “We will not have a barbecue today.” r: “We will have a barbecue tomorrow.” So the argument is of the following form: 13 pq qr _____  pr Hypothetical syllogism
  • 14. Arguments Another example: Gary is either intelligent or a good actor. If Gary is intelligent, then he can count from 1 to 10. Gary can only count from 1 to 2. Therefore, Gary is a good actor. i: “Gary is intelligent.” a: “Gary is a good actor.” c: “Gary can count from 1 to 10.” 14
  • 15. Arguments i: “Gary is intelligent.” a: “Gary is a good actor.” c: “Gary can count from 1 to 10.” Step 1: c Hypothesis Step 2: i  c Hypothesis Step 3: i Modus tollens Steps 1 & 2 Step 4: a  i Hypothesis Step 5: a Disjunctive Syllogism Steps 3 & 4 Conclusion: a (“Gary is a good actor.”) 15
  • 16. Arguments Yet another example: If you attend class, you will pass CSE 1203. You passed CSE 1203. Therefore, you have attended class. Is this argument valid? No, it assumes ((pq) q)  p. This statement is not a tautology. It is false if p is false and q is true. 16
  • 17. Rules of Inference for Quantified Statements  x P(x)__________  P(c) if cU 17 Universal instantiation P(c) for an arbitrary cU ___________________  x P(x) Universal generalization x P(x) ______________________  P(c) for some element cU Existential instantiation P(c) for some element cU ____________________  x P(x) Existential generalization
  • 18. Rules of Inference for Quantified Statements Example: Every NUBTK student is smart. James is a NUBTK student. Therefore, James is smart. N(x): “x is a NUBTK student.” S(x): “x is a smart.” 18
  • 19. Rules of Inference for Quantified Statements The following steps are used in the argument: Step 1: x (N(x)  S(x)) Hypothesis Step 2: N(James)  S(James) Univ. instantiation using Step 1 19 x P(x) __________  P(c) if cU Universal instantiation Step 3: N(James) Hypothesis Step 4: S(James) Modus ponens using Steps 2 & 3
  • 20. Proving Theorems Direct proof: An implication pq can be proved by showing that if p is true, then q is also true. Example: Give a direct proof of the theorem “If n is odd, then n2 is odd.” Idea: Assume that the hypothesis of this implication is true (n is odd). Then use rules of inference and known theorems to show that q must also be true (n2 is odd). 20
  • 21. Proving Theorems n is odd. Then n = 2k + 1, where k is an integer. Consequently, n2 = (2k + 1)2.  = 4k2 + 4k + 1  = 2(2k2 + 2k) + 1 Since n2 can be written in this form, it is odd. 21
  • 22. Proving Theorems Indirect proof: An implication pq is equivalent to its contra- positive q  p. Therefore, we can prove pq by showing that whenever q is false, then p is also false. Example: Give an indirect proof of the theorem “If 3n + 2 is odd, then n is odd.” Idea: Assume that the conclusion of this implication is false (n is even). Then use rules of inference and known theorems to show that p must also be false (3n + 2 is even). 22
  • 23. Proving Theorems n is even. Then n = 2k, where k is an integer. It follows that 3n + 2 = 3(2k) + 2  = 6k + 2  = 2(3k + 1) Therefore, 3n + 2 is even. We have shown that the contrapositive of the implication is true, so the implication itself is also true (If 2n + 3 is odd, then n is odd). 23