Discrete Mathematics
Discrete Mathematics
Proofs
Normal Forms
Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Summary
Valid Arguments and Rules of Inference
Normal Forms
Disjunctive Normal Form (DNF)
Conjunctive Normal Form (CNF)
Section Summary
Valid Arguments
Inference Rules for Propositional Logic
Using Rules of Inference to Build Arguments
Rules of Inference for Quantified Statements
Building Arguments for Quantified Statements
Revisiting the Socrates Example
We have the two premises:
“All men are mortal.”
“Socrates is a man.”
2. Predicate Logic
Inference rules for propositional logic plus additional
inference rules to handle variables and quantifiers.
Arguments in Propositional Logic
A argument in propositional logic is a sequence of propositions.
All but the final proposition are called premises. The last
statement is the conclusion.
The argument is valid if the truth of all its premises implies that
the conclusion is true.
Inference rules are all simple argument forms that will be used to
construct more complex argument forms.
Rules of Inference for Propositional Logic:
Modus Ponens (law of detachment)
Corresponding Tautology:
(p ∧ (p →q)) → q
Example:
Let p be “It is raining.”
Let q be “I will study discrete math.”
Example:
Let p be “it is raining.”
Let q be “I will study discrete math.”
Example:
Let p be “it rains.”
Let q be “I will study discrete math.”
Let r be “I will get an A.”
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
Example:
Let p be “I will study discrete math.”
Let q be “I will visit Dhanbad.”
Corresponding Tautology:
(p∧q) →p
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
Example:
Let p be “I will study discrete math.”
Let q be “I will study English literature.”
Corresponding Tautology:
((¬p ∨ r ) ∧ (p ∨ q)) →(q ∨ r)
Example:
Let p be “I will study discrete math.”
Let r be “I will study English literature.”
Let q be “I will study databases.”
C
Valid Arguments
Example 1: From the single proposition
Solution:
1. Choose propositional variables:
p : “It is sunny this afternoon.” r : “We will go swimming.”
q : “It is colder than yesterday.” s : “We will go for a trip.”
t : “We will be in hostel by sunset.”
Example:
Our domain consists of all dogs and Fido is a dog.
“All dogs are cuddly.”
Example:
Example:
Solution: Let M(x) denote “x is a man” and L(x) “x has two legs” and let
Ankit be a member of the domain.
Valid Argument:
Using Rules of Inference
Example 2: Use the rules of inference to construct a valid argument showing that the
conclusion
“Someone who passed the first exam has not read the book.”
follows from the premises
“A student in this class has not read the book.”
“Everyone in this class passed the first exam.”
Solution: Let C(x) denote “x is in this class,” B(x) denote “x has read the book,” and P(x)
denote “x passed the first exam.”
Forms of Theorems
Direct Proofs
Indirect Proofs
Proof of the Contrapositive
Proof by Contradiction
Proofs of Mathematical Statements
A proof is a valid argument that establishes the truth of a
statement.
In math, CS, and other disciplines, informal proofs which are
generally shorter, are generally used:
More than one rule of inference are often used in a step.
Steps may be skipped.
The rules of inference used are not explicitly stated.
Easier for to understand and to explain to people.
But it is also easier to introduce errors.
[Even though these examples seem silly, both trivial and vacuous proofs
are often used in mathematical induction. ]
Even and Odd Integers
Definition: 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.
Or a proof by contradiction.
Proof: Use a proof by contraposition. Suppose x and y are not both even.
Then, one or both are odd. Without loss of generality, assume that x is odd.
Then x = 2m + 1 for some integer m.
Case 1: y is even. Then y = 2n for some integer n, so
x + y = (2m + 1) + 2n = 2(m + n) + 1 is odd.
We only cover the case where x is odd because the case where y is odd is
similar. The use phrase without loss of generality (WLOG) indicates this.
Existence Proofs
Proof of theorems of the form .
Constructive existence proof:
Find an explicit value of c, for which P(c) is true.
Then is true by Existential Generalization (EG).
No
Solution: (¬ p∧ ¬ q) ∨ ¬r
Solution:
1. Eliminate implication signs: