SlideShare ist ein Scribd-Unternehmen logo
1 von 8
Downloaden Sie, um offline zu lesen
Inference and Proofs - 05                                                CSC1001 Discrete Mathematics            1

 CHAPTER
                                                 การอน ุมานและการพิสจน์ ู
       5                                           (Inference and Proofs)

  1       Rules of Inference
1. Valid Arguments in Propositional Logic
    Consider the following argument involving propositions (which, by definition, is a sequence of propositions):
“If you have a current password, then you can log onto the network.” “You have a current password.”
Therefore, “You can log onto the network.”
    We would like to determine whether this is a valid argument. That is, we would like to determine whether
the conclusion “You can log onto the network” must be true when the premises “If you have a current
password, then you can log onto the network” and “You have a current password” are both true.
  Definition 1

 An argument in propositional logic is a sequence of propositions. All but not the final propositions in the
 argument are called premises and the final proposition is called the conclusion. An argument is valid if the
 truth of all its premises implies that the conclusion is true.

  Definition 2

 An argument form in propositional logic is a sequence of compound propositions involving propositional
 variables. An argument form is valid no matter which particular propositions are substituted for the
 propositional variables in its premises, the conclusion is true if the premises are all true.

Example 1 (6 points) Can you show the conclusion of the premises, if all of them are true.
1) “If you have access to the network, then you can change your grade.”,
   “You have access to the network.”,
   Therefore,

2) “If there is thunder, then it is raining”,
   “If it is raining, then Thailand football team wins”,
   Therefore,

3) “Paint is gay”,
   “Tong is gay”,
   Therefore,


มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555)                                เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
2       CSC1001 Discrete Mathematics                                                        05 - Inference and Proofs


2. Rules of Inference for Propositional Logic
   We can first establish the validity of some relatively simple argument forms, called rules of inference.
These rules of inference can be used as building blocks to construct more complicated valid argument forms.
We will now introduce the most important rules of inference in propositional logic.
         Rule of Inference                           Tautology                                   Name
    p
    p→q                                 (p ∧ (p → q)) → q                       Modus ponens
    ∴q
    ¬q
    p→q                                 ( ¬ q ∧ (p → q)) →        ¬p            Modus tollens
    ∴¬p
    p→q
    q→r                                 ((p → q) ∧ (q → r)) → (p → r)           Hypothetical syllogism
    ∴p→ r
    p∨ q
    ¬p                                  ((p ∨ q)   ∧ ¬ p) →   q                 Disjunctive syllogism
    ∴q
    P
                                        p → (p ∨ q)                             Addition
    ∴p∨ q
    p∧q
                                        (p ∧ q) → p                             Simplification
    ∴p
    p
    q                                   ((p) ∧ (q)) → (p ∧ q)                   Conjunction
    ∴p ∧ q
    p∨ q
    ¬p ∨ r                              ((p ∨ q) ∧ ( ¬ p ∨ r)) → (q ∨ r) Resolution
    ∴q∨ r

Example 2 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis
(premises) “If it snows today, then we will go skiing” and “It is snowing today” are true.




Example 3 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis
(premises) “If there is thunder, then it is raining” and “If it is raining, then Thailand football team wins” are true.
มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555)                                     เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
Inference and Proofs - 05                                              CSC1001 Discrete Mathematics            3



Example 4 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis
(premises) “Paint is gay” and “Tong is gay” are true.




Example 5 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis
(premises) “Natee is a beautiful boy” is true.




Example 6 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis
(premises) “Tong is not gay” and “If Paint is gay, then Tong is gay” are true.




Example 7 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis
(premises) “Nut get F in discrete mathematics or Nut get A in discrete mathematics” and “Nut does not get F in
discrete mathematics” are true.




Example 8 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis
(premises) “Natee and Frame are a beautiful boy” is true.




Example 9 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis
(premises) “It is raining or it is sunny” and “It is not raining or it is cloudy” are true.




มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555)                              เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
4       CSC1001 Discrete Mathematics                                                    05 - Inference and Proofs


3. Using Rules of Inference to Build Arguments
   When there are many premises or hypothesis, therefore, several rules of inference are often needed to
show that an argument is valid.

Example 10 (10 points) Show that the premises “If students come to class before teacher, then students get A
for this course,” “If students get A for this course, then students graduate in their degree,” and “students do not
graduate in their degree” lead to the conclusion “Students do not come to class before teacher.”




Example 11 (10 points) Show that the premises “Paint is not gay,” “If Paint is not gay, then Tong is not gay,”
and “Tong is gay or Nut is gay” lead to the conclusion “Nut is gay or Natee is super gay.”




Example 12 (10 points) 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.”




มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555)                                  เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
Inference and Proofs - 05                                                  CSC1001 Discrete Mathematics             5
Example 13 (10 points) Show that the premises “x + 2 = 7 and x + 4 = 9,” “If x + 4 = 9, then x * x           ≠   20,”
“If x – 2 = 5, then x * x = 20,” and “x ÷ 2 ≠ 0,” lead to the conclusion “x – 2 ≠ 5 and x ÷ 2 ≠ 0.”




Example 14 (10 points) 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.”




Example 15 (5 points) Show that the premises p ∧ q and q → r imply the conclusion r.




Example 16 (5 points) Show that the premises p → q, q → r and ¬ r imply the conclusion ¬ p.




มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555)                                   เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
6       CSC1001 Discrete Mathematics                                                                       05 - Inference and Proofs


Example 17 (5 points) Show that the premises (p ∧ q) ∨ r and r → s imply the conclusion p ∨ s.




Example 18 (10 points) Show that the premises p            →    q, r     → ¬ q, ¬ r →              s, t    → ¬s    and p imply the
conclusion ¬ t.




Example 19 (10 points) Show that the premises p        ∨   q,   ¬ q,     p   → ¬ r,   s   →    r and       ¬t   imply the conclusion
¬ (s ∨ t).




Example 20 (10 points) Show that the premises (p       ∧   t)   →   (r   ∨   s), q   →    (u   ∧   t), u   →    p, and   ¬s   imply the
conclusion q → r.




มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555)                                                  เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
Inference and Proofs - 05                                                 CSC1001 Discrete Mathematics              7
  2       Introduction to Proofs
1. Direct Proofs
  Definition 1

 The integer n is even if there exists an integer k such that n = 2k, and n is odd if there exists an integer k
 such that n = 2k + 1. (Note that every integer is either even or odd, and no integer is both even and odd.)
 Two integers have the same parity when both are even or both are odd; they have opposite parity when
 one is even and the other is odd.

Example 1 (2 points) Give a direct proof of the theorem “If n is an odd integer, then n2 is odd.”




Example 2 (2 points) Give a direct proof of the theorem “If n is an even integer, then n + n + n is even.”




Example 3 (2 points) Give a direct proof that if m and n are both perfect squares, then nm is also a perfect
square. (An integer a is a perfect square if there is an integer b such that a = b2.)




2. Indirect Proofs (Proof by Contraposition)
  Definition 2
 An extremely useful type of indirect proof is known as proof by contraposition. Proofs by contraposition
 make use of the fact that the conditional statement p → q is equivalent to its contrapositive, ¬ q → ¬ p.
 This means that the conditional statement p → q can be proved by showing that its condition of contra-
 positive, ¬ q → ¬ p, is true.

Example 4 (2 points) Prove that if n is an integer and 3n + 2 is odd, then n is odd.




มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555)                                   เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
8         CSC1001 Discrete Mathematics                                                         05 - Inference and Proofs


Example 5 (2 points) Prove that if n = ab, where a and b are positive integers, then a ≤            n   or b ≤   n.




Example 6 (2 points) Show that the proposition P(0) is true, where P(n) is “If n > 1, then n2 > n” and the
domain consists of all integers.




Example 7 (2 points) Let P(n) be “If a and b are positive integers with a ≥ b, then an ≥ bn,” where the domain
consists of all nonnegative integers. Show that P(0) is true.




3. Proof by Cases
    Definition 3
    This method is based on a rule of inference that we will now introduce. To prove a conditional statement of
    the form (p1 ∨ p2 ∨ … ∨ pn) → q the tautology
            [(p1 ∨ p2 ∨ … ∨ pn) → q] ↔ [(p1 → q) ∧ (p2 → q) ∧ … ∧ (pn → q)]
    can be used as a rule of inference. This shows that the original conditional statement with a hypothesis
    made up of a disjunction of the propositions p1, p2, . . . , pn can be proved by proving each of the n
    conditional statements pi → q, i = 1, 2, . . . , n, individually. Such an argument is called a proof by cases.

Example 8 (2 points) Prove that if n is an integer, then n2     ≥   n.




Example 9 (2 points) Prove that (n + 1)3     ≥   3n if n is a positive integer with n ≤ 4.




มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555)                                         เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี

Weitere ähnliche Inhalte

Was ist angesagt?

Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1taimoor iftikhar
 
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 Strategyallyn joy calcaben
 
Logic and proof
Logic and proofLogic and proof
Logic and proofSuresh Ram
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proofAbdur Rehman
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System - Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System - Michael Soltys
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceasimnawaz54
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statementsguestd166eb5
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceasimnawaz54
 
A Unifying theory for blockchain and AI
A Unifying theory for blockchain and AIA Unifying theory for blockchain and AI
A Unifying theory for blockchain and AILonghow Lam
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notesGIRIM8
 
Realizations, Differential Equations, Canonical Quantum Commutators And Infin...
Realizations, Differential Equations, Canonical Quantum Commutators And Infin...Realizations, Differential Equations, Canonical Quantum Commutators And Infin...
Realizations, Differential Equations, Canonical Quantum Commutators And Infin...vcuesta
 

Was ist angesagt? (19)

Discrete Math Lecture 02: First Order Logic
Discrete Math Lecture 02: First Order LogicDiscrete Math Lecture 02: First Order Logic
Discrete Math Lecture 02: First Order Logic
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
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
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
Propositional Logic and Pridicate logic
Propositional Logic and Pridicate logicPropositional Logic and Pridicate logic
Propositional Logic and Pridicate logic
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
 
Logic
LogicLogic
Logic
 
Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System - Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System -
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inference
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statements
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inference
 
Data structure chapter-1-proofs
Data structure chapter-1-proofsData structure chapter-1-proofs
Data structure chapter-1-proofs
 
A Unifying theory for blockchain and AI
A Unifying theory for blockchain and AIA Unifying theory for blockchain and AI
A Unifying theory for blockchain and AI
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notes
 
Realizations, Differential Equations, Canonical Quantum Commutators And Infin...
Realizations, Differential Equations, Canonical Quantum Commutators And Infin...Realizations, Differential Equations, Canonical Quantum Commutators And Infin...
Realizations, Differential Equations, Canonical Quantum Commutators And Infin...
 
Math
MathMath
Math
 

Andere mochten auch

Tic en el aula 2014
Tic en el aula 2014Tic en el aula 2014
Tic en el aula 2014japecho20
 
Plantilla encamina
Plantilla encaminaPlantilla encamina
Plantilla encaminaAuto Inter
 
Proceeding SLR 2014 (Dr TAM)
Proceeding SLR 2014 (Dr TAM)Proceeding SLR 2014 (Dr TAM)
Proceeding SLR 2014 (Dr TAM)Tin Aung Myint
 
Build a beachhead or perish why everyone apart from your fans is a distraction
Build a beachhead or perish why everyone apart from your fans is a distractionBuild a beachhead or perish why everyone apart from your fans is a distraction
Build a beachhead or perish why everyone apart from your fans is a distractionGraham Brown
 
2016.04 CEP PT EM-DV final
2016.04 CEP PT EM-DV final2016.04 CEP PT EM-DV final
2016.04 CEP PT EM-DV finalNuno CAIADO
 
Minerais - Cristina R
Minerais - Cristina RMinerais - Cristina R
Minerais - Cristina Rnaturaxiz
 
Midiendo el Progreso General de la Seguridad Alimentaria y Nutricional
Midiendo el Progreso General de la Seguridad Alimentaria y NutricionalMidiendo el Progreso General de la Seguridad Alimentaria y Nutricional
Midiendo el Progreso General de la Seguridad Alimentaria y NutricionalDuPont
 
The dab:group @AM:DataConsult Business Assurance Series (English)
The dab:group @AM:DataConsult Business Assurance Series (English)The dab:group @AM:DataConsult Business Assurance Series (English)
The dab:group @AM:DataConsult Business Assurance Series (English)dabGroup
 
Diostebendiga 110715082236-phpapp01
Diostebendiga 110715082236-phpapp01Diostebendiga 110715082236-phpapp01
Diostebendiga 110715082236-phpapp01David Alejandro Melo
 
Rules of inference
Rules of inferenceRules of inference
Rules of inferenceharman kaur
 
Lifewave, Parches de Salud y Bienestar
Lifewave, Parches de Salud y BienestarLifewave, Parches de Salud y Bienestar
Lifewave, Parches de Salud y BienestarJorge Zuleta
 
17 using rules of inference to build arguments
17   using rules of inference to build arguments17   using rules of inference to build arguments
17 using rules of inference to build argumentsAli Saleem
 
Michael Franz Harris - Potential Candidate for Software Solution Sales
Michael Franz Harris - Potential Candidate for Software Solution SalesMichael Franz Harris - Potential Candidate for Software Solution Sales
Michael Franz Harris - Potential Candidate for Software Solution SalesMichael Harris
 

Andere mochten auch (20)

kokoIsc
kokoIsckokoIsc
kokoIsc
 
Tic en el aula 2014
Tic en el aula 2014Tic en el aula 2014
Tic en el aula 2014
 
Plantilla encamina
Plantilla encaminaPlantilla encamina
Plantilla encamina
 
Proceeding SLR 2014 (Dr TAM)
Proceeding SLR 2014 (Dr TAM)Proceeding SLR 2014 (Dr TAM)
Proceeding SLR 2014 (Dr TAM)
 
Fracaso educativo
Fracaso educativoFracaso educativo
Fracaso educativo
 
Build a beachhead or perish why everyone apart from your fans is a distraction
Build a beachhead or perish why everyone apart from your fans is a distractionBuild a beachhead or perish why everyone apart from your fans is a distraction
Build a beachhead or perish why everyone apart from your fans is a distraction
 
B&b trentino
B&b trentinoB&b trentino
B&b trentino
 
2016.04 CEP PT EM-DV final
2016.04 CEP PT EM-DV final2016.04 CEP PT EM-DV final
2016.04 CEP PT EM-DV final
 
Minerais - Cristina R
Minerais - Cristina RMinerais - Cristina R
Minerais - Cristina R
 
Midiendo el Progreso General de la Seguridad Alimentaria y Nutricional
Midiendo el Progreso General de la Seguridad Alimentaria y NutricionalMidiendo el Progreso General de la Seguridad Alimentaria y Nutricional
Midiendo el Progreso General de la Seguridad Alimentaria y Nutricional
 
The dab:group @AM:DataConsult Business Assurance Series (English)
The dab:group @AM:DataConsult Business Assurance Series (English)The dab:group @AM:DataConsult Business Assurance Series (English)
The dab:group @AM:DataConsult Business Assurance Series (English)
 
Diostebendiga 110715082236-phpapp01
Diostebendiga 110715082236-phpapp01Diostebendiga 110715082236-phpapp01
Diostebendiga 110715082236-phpapp01
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 
Higiene industrial
Higiene industrialHigiene industrial
Higiene industrial
 
Lifewave, Parches de Salud y Bienestar
Lifewave, Parches de Salud y BienestarLifewave, Parches de Salud y Bienestar
Lifewave, Parches de Salud y Bienestar
 
Web workers
Web workersWeb workers
Web workers
 
17 using rules of inference to build arguments
17   using rules of inference to build arguments17   using rules of inference to build arguments
17 using rules of inference to build arguments
 
Michael Franz Harris - Potential Candidate for Software Solution Sales
Michael Franz Harris - Potential Candidate for Software Solution SalesMichael Franz Harris - Potential Candidate for Software Solution Sales
Michael Franz Harris - Potential Candidate for Software Solution Sales
 
MI PROFECIÒN EN UN FUTURO
MI PROFECIÒN EN UN FUTURO MI PROFECIÒN EN UN FUTURO
MI PROFECIÒN EN UN FUTURO
 
Diagrama de flujo power point
Diagrama de flujo power pointDiagrama de flujo power point
Diagrama de flujo power point
 

Ähnlich wie Discrete-Chapter 05 Inference and Proofs

Valid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptxValid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptxLuisSalenga1
 
Valid & invalid arguments
Valid & invalid argumentsValid & invalid arguments
Valid & invalid argumentsAbdur Rehman
 
Chapter 01 - p3.pdf
Chapter 01 - p3.pdfChapter 01 - p3.pdf
Chapter 01 - p3.pdfsmarwaneid
 
rules of inference in discrete structures
rules of inference in discrete structuresrules of inference in discrete structures
rules of inference in discrete structuresZenLooper
 
chapter 1 (part 2)
chapter 1 (part 2)chapter 1 (part 2)
chapter 1 (part 2)Raechel Lim
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdfrAjyarAjanItjJa
 
Mcs lecture19.methods ofproof(1)
Mcs lecture19.methods ofproof(1)Mcs lecture19.methods ofproof(1)
Mcs lecture19.methods ofproof(1)kevinwu1994
 
Inference rulesproofmethods
Inference rulesproofmethodsInference rulesproofmethods
Inference rulesproofmethodsRajendran
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptxRavind8
 

Ähnlich wie Discrete-Chapter 05 Inference and Proofs (20)

Valid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptxValid and Invalid Arguments.pptx
Valid and Invalid Arguments.pptx
 
Valid & invalid arguments
Valid & invalid argumentsValid & invalid arguments
Valid & invalid arguments
 
Lecture5
Lecture5Lecture5
Lecture5
 
Chapter 01 - p3.pdf
Chapter 01 - p3.pdfChapter 01 - p3.pdf
Chapter 01 - p3.pdf
 
Chapter1p3.pptx
Chapter1p3.pptxChapter1p3.pptx
Chapter1p3.pptx
 
rules of inference in discrete structures
rules of inference in discrete structuresrules of inference in discrete structures
rules of inference in discrete structures
 
chapter 1 (part 2)
chapter 1 (part 2)chapter 1 (part 2)
chapter 1 (part 2)
 
Truth table
Truth tableTruth table
Truth table
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
 
Course notes1
Course notes1Course notes1
Course notes1
 
Mcs lecture19.methods ofproof(1)
Mcs lecture19.methods ofproof(1)Mcs lecture19.methods ofproof(1)
Mcs lecture19.methods ofproof(1)
 
dma_ppt.pdf
dma_ppt.pdfdma_ppt.pdf
dma_ppt.pdf
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Inference rulesproofmethods
Inference rulesproofmethodsInference rulesproofmethods
Inference rulesproofmethods
 
L2.pdf
L2.pdfL2.pdf
L2.pdf
 
Mathematical Reasoning DM
Mathematical Reasoning DMMathematical Reasoning DM
Mathematical Reasoning DM
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 

Mehr von Wongyos Keardsri

How to Study and Research in Computer-related Master Program
How to Study and Research in Computer-related Master ProgramHow to Study and Research in Computer-related Master Program
How to Study and Research in Computer-related Master ProgramWongyos Keardsri
 
The next generation intelligent transport systems: standards and applications
The next generation intelligent transport systems: standards and applicationsThe next generation intelligent transport systems: standards and applications
The next generation intelligent transport systems: standards and applicationsWongyos Keardsri
 
SysProg-Tutor 03 Unix Shell Script Programming
SysProg-Tutor 03 Unix Shell Script ProgrammingSysProg-Tutor 03 Unix Shell Script Programming
SysProg-Tutor 03 Unix Shell Script ProgrammingWongyos Keardsri
 
SysProg-Tutor 02 Introduction to Unix Operating System
SysProg-Tutor 02 Introduction to Unix Operating SystemSysProg-Tutor 02 Introduction to Unix Operating System
SysProg-Tutor 02 Introduction to Unix Operating SystemWongyos Keardsri
 
SysProg-Tutor 01 Introduction to C Programming Language
SysProg-Tutor 01 Introduction to C Programming LanguageSysProg-Tutor 01 Introduction to C Programming Language
SysProg-Tutor 01 Introduction to C Programming LanguageWongyos Keardsri
 
Discrete-Chapter 11 Graphs Part III
Discrete-Chapter 11 Graphs Part IIIDiscrete-Chapter 11 Graphs Part III
Discrete-Chapter 11 Graphs Part IIIWongyos Keardsri
 
Discrete-Chapter 11 Graphs Part II
Discrete-Chapter 11 Graphs Part IIDiscrete-Chapter 11 Graphs Part II
Discrete-Chapter 11 Graphs Part IIWongyos Keardsri
 
Discrete-Chapter 11 Graphs Part I
Discrete-Chapter 11 Graphs Part IDiscrete-Chapter 11 Graphs Part I
Discrete-Chapter 11 Graphs Part IWongyos Keardsri
 
Discrete-Chapter 09 Algorithms
Discrete-Chapter 09 AlgorithmsDiscrete-Chapter 09 Algorithms
Discrete-Chapter 09 AlgorithmsWongyos Keardsri
 
Discrete-Chapter 08 Relations
Discrete-Chapter 08 RelationsDiscrete-Chapter 08 Relations
Discrete-Chapter 08 RelationsWongyos Keardsri
 
Discrete-Chapter 07 Probability
Discrete-Chapter 07 ProbabilityDiscrete-Chapter 07 Probability
Discrete-Chapter 07 ProbabilityWongyos Keardsri
 
Discrete-Chapter 06 Counting
Discrete-Chapter 06 CountingDiscrete-Chapter 06 Counting
Discrete-Chapter 06 CountingWongyos Keardsri
 
Discrete-Chapter 03 Matrices
Discrete-Chapter 03 MatricesDiscrete-Chapter 03 Matrices
Discrete-Chapter 03 MatricesWongyos Keardsri
 
Discrete-Chapter 02 Functions and Sequences
Discrete-Chapter 02 Functions and SequencesDiscrete-Chapter 02 Functions and Sequences
Discrete-Chapter 02 Functions and SequencesWongyos Keardsri
 
Discrete-Chapter 12 Modeling Computation
Discrete-Chapter 12 Modeling ComputationDiscrete-Chapter 12 Modeling Computation
Discrete-Chapter 12 Modeling ComputationWongyos Keardsri
 
Java-Chapter 14 Creating Graphics with DWindow
Java-Chapter 14 Creating Graphics with DWindowJava-Chapter 14 Creating Graphics with DWindow
Java-Chapter 14 Creating Graphics with DWindowWongyos Keardsri
 
Java-Chapter 13 Advanced Classes and Objects
Java-Chapter 13 Advanced Classes and ObjectsJava-Chapter 13 Advanced Classes and Objects
Java-Chapter 13 Advanced Classes and ObjectsWongyos Keardsri
 

Mehr von Wongyos Keardsri (20)

How to Study and Research in Computer-related Master Program
How to Study and Research in Computer-related Master ProgramHow to Study and Research in Computer-related Master Program
How to Study and Research in Computer-related Master Program
 
The next generation intelligent transport systems: standards and applications
The next generation intelligent transport systems: standards and applicationsThe next generation intelligent transport systems: standards and applications
The next generation intelligent transport systems: standards and applications
 
IP address anonymization
IP address anonymizationIP address anonymization
IP address anonymization
 
SysProg-Tutor 03 Unix Shell Script Programming
SysProg-Tutor 03 Unix Shell Script ProgrammingSysProg-Tutor 03 Unix Shell Script Programming
SysProg-Tutor 03 Unix Shell Script Programming
 
SysProg-Tutor 02 Introduction to Unix Operating System
SysProg-Tutor 02 Introduction to Unix Operating SystemSysProg-Tutor 02 Introduction to Unix Operating System
SysProg-Tutor 02 Introduction to Unix Operating System
 
SysProg-Tutor 01 Introduction to C Programming Language
SysProg-Tutor 01 Introduction to C Programming LanguageSysProg-Tutor 01 Introduction to C Programming Language
SysProg-Tutor 01 Introduction to C Programming Language
 
Discrete-Chapter 11 Graphs Part III
Discrete-Chapter 11 Graphs Part IIIDiscrete-Chapter 11 Graphs Part III
Discrete-Chapter 11 Graphs Part III
 
Discrete-Chapter 11 Graphs Part II
Discrete-Chapter 11 Graphs Part IIDiscrete-Chapter 11 Graphs Part II
Discrete-Chapter 11 Graphs Part II
 
Discrete-Chapter 11 Graphs Part I
Discrete-Chapter 11 Graphs Part IDiscrete-Chapter 11 Graphs Part I
Discrete-Chapter 11 Graphs Part I
 
Discrete-Chapter 10 Trees
Discrete-Chapter 10 TreesDiscrete-Chapter 10 Trees
Discrete-Chapter 10 Trees
 
Discrete-Chapter 09 Algorithms
Discrete-Chapter 09 AlgorithmsDiscrete-Chapter 09 Algorithms
Discrete-Chapter 09 Algorithms
 
Discrete-Chapter 08 Relations
Discrete-Chapter 08 RelationsDiscrete-Chapter 08 Relations
Discrete-Chapter 08 Relations
 
Discrete-Chapter 07 Probability
Discrete-Chapter 07 ProbabilityDiscrete-Chapter 07 Probability
Discrete-Chapter 07 Probability
 
Discrete-Chapter 06 Counting
Discrete-Chapter 06 CountingDiscrete-Chapter 06 Counting
Discrete-Chapter 06 Counting
 
Discrete-Chapter 03 Matrices
Discrete-Chapter 03 MatricesDiscrete-Chapter 03 Matrices
Discrete-Chapter 03 Matrices
 
Discrete-Chapter 02 Functions and Sequences
Discrete-Chapter 02 Functions and SequencesDiscrete-Chapter 02 Functions and Sequences
Discrete-Chapter 02 Functions and Sequences
 
Discrete-Chapter 01 Sets
Discrete-Chapter 01 SetsDiscrete-Chapter 01 Sets
Discrete-Chapter 01 Sets
 
Discrete-Chapter 12 Modeling Computation
Discrete-Chapter 12 Modeling ComputationDiscrete-Chapter 12 Modeling Computation
Discrete-Chapter 12 Modeling Computation
 
Java-Chapter 14 Creating Graphics with DWindow
Java-Chapter 14 Creating Graphics with DWindowJava-Chapter 14 Creating Graphics with DWindow
Java-Chapter 14 Creating Graphics with DWindow
 
Java-Chapter 13 Advanced Classes and Objects
Java-Chapter 13 Advanced Classes and ObjectsJava-Chapter 13 Advanced Classes and Objects
Java-Chapter 13 Advanced Classes and Objects
 

Discrete-Chapter 05 Inference and Proofs

  • 1. Inference and Proofs - 05 CSC1001 Discrete Mathematics 1 CHAPTER การอน ุมานและการพิสจน์ ู 5 (Inference and Proofs) 1 Rules of Inference 1. Valid Arguments in Propositional Logic Consider the following argument involving propositions (which, by definition, is a sequence of propositions): “If you have a current password, then you can log onto the network.” “You have a current password.” Therefore, “You can log onto the network.” We would like to determine whether this is a valid argument. That is, we would like to determine whether the conclusion “You can log onto the network” must be true when the premises “If you have a current password, then you can log onto the network” and “You have a current password” are both true. Definition 1 An argument in propositional logic is a sequence of propositions. All but not the final propositions in the argument are called premises and the final proposition is called the conclusion. An argument is valid if the truth of all its premises implies that the conclusion is true. Definition 2 An argument form in propositional logic is a sequence of compound propositions involving propositional variables. An argument form is valid no matter which particular propositions are substituted for the propositional variables in its premises, the conclusion is true if the premises are all true. Example 1 (6 points) Can you show the conclusion of the premises, if all of them are true. 1) “If you have access to the network, then you can change your grade.”, “You have access to the network.”, Therefore, 2) “If there is thunder, then it is raining”, “If it is raining, then Thailand football team wins”, Therefore, 3) “Paint is gay”, “Tong is gay”, Therefore, มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555) เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
  • 2. 2 CSC1001 Discrete Mathematics 05 - Inference and Proofs 2. Rules of Inference for Propositional Logic We can first establish the validity of some relatively simple argument forms, called rules of inference. These rules of inference can be used as building blocks to construct more complicated valid argument forms. We will now introduce the most important rules of inference in propositional logic. Rule of Inference Tautology Name p p→q (p ∧ (p → q)) → q Modus ponens ∴q ¬q p→q ( ¬ q ∧ (p → q)) → ¬p Modus tollens ∴¬p p→q q→r ((p → q) ∧ (q → r)) → (p → r) Hypothetical syllogism ∴p→ r p∨ q ¬p ((p ∨ q) ∧ ¬ p) → q Disjunctive syllogism ∴q P p → (p ∨ q) Addition ∴p∨ q p∧q (p ∧ q) → p Simplification ∴p p q ((p) ∧ (q)) → (p ∧ q) Conjunction ∴p ∧ q p∨ q ¬p ∨ r ((p ∨ q) ∧ ( ¬ p ∨ r)) → (q ∨ r) Resolution ∴q∨ r Example 2 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis (premises) “If it snows today, then we will go skiing” and “It is snowing today” are true. Example 3 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis (premises) “If there is thunder, then it is raining” and “If it is raining, then Thailand football team wins” are true. มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555) เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
  • 3. Inference and Proofs - 05 CSC1001 Discrete Mathematics 3 Example 4 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis (premises) “Paint is gay” and “Tong is gay” are true. Example 5 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis (premises) “Natee is a beautiful boy” is true. Example 6 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis (premises) “Tong is not gay” and “If Paint is gay, then Tong is gay” are true. Example 7 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis (premises) “Nut get F in discrete mathematics or Nut get A in discrete mathematics” and “Nut does not get F in discrete mathematics” are true. Example 8 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis (premises) “Natee and Frame are a beautiful boy” is true. Example 9 (2 points) What is the conclusion statement by using rules of inference, if given the hypothesis (premises) “It is raining or it is sunny” and “It is not raining or it is cloudy” are true. มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555) เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
  • 4. 4 CSC1001 Discrete Mathematics 05 - Inference and Proofs 3. Using Rules of Inference to Build Arguments When there are many premises or hypothesis, therefore, several rules of inference are often needed to show that an argument is valid. Example 10 (10 points) Show that the premises “If students come to class before teacher, then students get A for this course,” “If students get A for this course, then students graduate in their degree,” and “students do not graduate in their degree” lead to the conclusion “Students do not come to class before teacher.” Example 11 (10 points) Show that the premises “Paint is not gay,” “If Paint is not gay, then Tong is not gay,” and “Tong is gay or Nut is gay” lead to the conclusion “Nut is gay or Natee is super gay.” Example 12 (10 points) 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.” มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555) เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
  • 5. Inference and Proofs - 05 CSC1001 Discrete Mathematics 5 Example 13 (10 points) Show that the premises “x + 2 = 7 and x + 4 = 9,” “If x + 4 = 9, then x * x ≠ 20,” “If x – 2 = 5, then x * x = 20,” and “x ÷ 2 ≠ 0,” lead to the conclusion “x – 2 ≠ 5 and x ÷ 2 ≠ 0.” Example 14 (10 points) 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.” Example 15 (5 points) Show that the premises p ∧ q and q → r imply the conclusion r. Example 16 (5 points) Show that the premises p → q, q → r and ¬ r imply the conclusion ¬ p. มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555) เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
  • 6. 6 CSC1001 Discrete Mathematics 05 - Inference and Proofs Example 17 (5 points) Show that the premises (p ∧ q) ∨ r and r → s imply the conclusion p ∨ s. Example 18 (10 points) Show that the premises p → q, r → ¬ q, ¬ r → s, t → ¬s and p imply the conclusion ¬ t. Example 19 (10 points) Show that the premises p ∨ q, ¬ q, p → ¬ r, s → r and ¬t imply the conclusion ¬ (s ∨ t). Example 20 (10 points) Show that the premises (p ∧ t) → (r ∨ s), q → (u ∧ t), u → p, and ¬s imply the conclusion q → r. มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555) เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
  • 7. Inference and Proofs - 05 CSC1001 Discrete Mathematics 7 2 Introduction to Proofs 1. Direct Proofs Definition 1 The integer n is even if there exists an integer k such that n = 2k, and n is odd if there exists an integer k such that n = 2k + 1. (Note that every integer is either even or odd, and no integer is both even and odd.) Two integers have the same parity when both are even or both are odd; they have opposite parity when one is even and the other is odd. Example 1 (2 points) Give a direct proof of the theorem “If n is an odd integer, then n2 is odd.” Example 2 (2 points) Give a direct proof of the theorem “If n is an even integer, then n + n + n is even.” Example 3 (2 points) Give a direct proof that if m and n are both perfect squares, then nm is also a perfect square. (An integer a is a perfect square if there is an integer b such that a = b2.) 2. Indirect Proofs (Proof by Contraposition) Definition 2 An extremely useful type of indirect proof is known as proof by contraposition. Proofs by contraposition make use of the fact that the conditional statement p → q is equivalent to its contrapositive, ¬ q → ¬ p. This means that the conditional statement p → q can be proved by showing that its condition of contra- positive, ¬ q → ¬ p, is true. Example 4 (2 points) Prove that if n is an integer and 3n + 2 is odd, then n is odd. มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555) เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี
  • 8. 8 CSC1001 Discrete Mathematics 05 - Inference and Proofs Example 5 (2 points) Prove that if n = ab, where a and b are positive integers, then a ≤ n or b ≤ n. Example 6 (2 points) Show that the proposition P(0) is true, where P(n) is “If n > 1, then n2 > n” and the domain consists of all integers. Example 7 (2 points) Let P(n) be “If a and b are positive integers with a ≥ b, then an ≥ bn,” where the domain consists of all nonnegative integers. Show that P(0) is true. 3. Proof by Cases Definition 3 This method is based on a rule of inference that we will now introduce. To prove a conditional statement of the form (p1 ∨ p2 ∨ … ∨ pn) → q the tautology [(p1 ∨ p2 ∨ … ∨ pn) → q] ↔ [(p1 → q) ∧ (p2 → q) ∧ … ∧ (pn → q)] can be used as a rule of inference. This shows that the original conditional statement with a hypothesis made up of a disjunction of the propositions p1, p2, . . . , pn can be proved by proving each of the n conditional statements pi → q, i = 1, 2, . . . , n, individually. Such an argument is called a proof by cases. Example 8 (2 points) Prove that if n is an integer, then n2 ≥ n. Example 9 (2 points) Prove that (n + 1)3 ≥ 3n if n is a positive integer with n ≤ 4. มหาวิทยาลัยราชภัฏสวนส ุนันทา (ภาคการศึกษาที่ 2/2555) เรียบเรียงโดย อ.วงศ์ยศ เกิดศรี