Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Outline
Quantifiers
Arguments
Method of Proofs.
Quantifiers
Quantifiers
Example
Rewrite the following propositions symbolically:
For all integers x and y , x.y = y .x.
There are integers x and y such that x + y = 5.
Square of any real number is non-negative.
Quantifiers
Quantifiers
Quantifiers
Example
Determine the truth value of each proposition, where
P(x, y ) : y < x 2 , where x and y are real numbers:
1. (∀x)(∀y )P(x, y ) 2. (∀y )(∃x)P(x, y ).
3.(∃x)(∃y )P(x, y ) 4. (∃x)(∀y )P(x, y ).
5.(∀x)(∃y )P(x, y ) 6. (∃y )(∀x)P(x, y ).
De Morgan’s Law
Definition
Another useful quantifier is the uniqueness quantifier and is
denoted by ∃!. The proposition (∃!x)P(x) means that there exists
a unique (meaning exactly one) x such that P(x).
Quantifiers
Example
Negate each quantified proposition:
(1) Every computer is a 16-bit machine.
(2) Some girls are blondes.
(3) All chalkboards are black.
(4) No person has green eyes.
Arguments
Validity of Arguments
Definition
An argument is valid if the conjunction of the hypotheses
H1 , H2 , . . . , Hn logically implies the conclusion C : that is, the
implication H1 ∧ H2 ∧ · · · ∧ Hn → C is a tautology. Otherwise, the
argument is invalid, a fallacy.
Arguments
Example
There are two kinds of inhabitants, knights and knaves, on an
island. Knights always tell the truth, whereas knaves always lie.
Every inhabitant is either a knight or a knave. One day three
inhabitants A, B, and C were standing together in a garden. A
nomad came by and asked A, “Are you a knight or a knave?” Since
A answered rather indistinctly, the stranger could make nothing
out of his reply. So he asked B, “What did A say?” B replied, ”A
said, he is a knave.” At this point C jumped into the conversation
and said, “Don’t believe B; he is lying.” What are B and C?
Solution
Arguments
The symbols and the laws of logic can often be applied to check
the validity of an argument, as the next two examples illustrate.
To this end, follow the steps below:
Rewrite the hypotheses symbolically.
Assume the hypotheses are true.
If the inference rules and/or the laws of logic can be used to
reach the given conclusion, then the given argument is valid;
otherwise, it is invalid; that is, the argument contains a flaw.
Rules of Inference
Conjunction Rule: (p ∧ q) → (p ∧ q)
Simplification Rule: p ∧ q → p, p ∧ q → q
Addition Rule: p → p ∨ q, q → p ∨ q
Law of Detachment: [p ∧ (p → q)] → q (or Modus ponens)
Modus Tollens: [∼ q ∧ (p → q)] →∼ p
Law of Contrapositive: [(p → q) ∧ ∼ q] →∼ p
Disjunctive Syllogism: [(p ∨ q)∧ ∼ p] → q
Hypothetical Syllogism: [(p → q) ∧ (q → r )] → (p → r )
Resolution: [(p ∨ q) ∧ (∼ p ∨ r )] → (q ∨ r )
Dilemma: [(p ∨ q) ∧ (p → r ) ∧ (q → r )] → r .
Illustrations
Example
Check the validity of the following argument: If the computer was
down Saturday afternoon, then Mary went to a matinee. Either
Mary went to a matinee or took a nap Saturday afternoon. Mary
did not take a nap that afternoon. Therefore, The computer was
down Saturday afternoon.
Illustrations
Example
Check the validity of the following argument: Babies are illogical.
Nobody is despised who can manage a crocodile.
Illogical persons are despised.
Therefore, Babies cannot manage crocodiles.
Validity of Argument
Example
One student in this DM class knows JAVA.Everyone who knows
JAVA can get high paying job. Therefore, someone in this class
can get a high paying job.
Proof Methods
Proof Methods
Vacuous Proof
Trivial Proof
Example
If x is a positive real number and n any non negative integer, then
(1 + x)n ≥ 1 + nx.
Direct Proof
Example
Prove directly that the product of any two odd integers is an odd
integer.
Solution
Indirect Proof
∼ (H1 ∧ H2 ∧ · · · ∧ Hn ) ≡∼ H1 ∨ ∼ H2 ∨ · · · ∨ ∼ Hn .
So, ∼ C → (∼ H1 ∨ ∼ H2 ∨ · · · ∨ ∼ Hn ).
In this method, assume the desired conclusion C is false; then
using the laws of logic, establish that some hypothesis Hi is
also false. Once you have done this, the theorem is proved.
Illustration
Example
Prove indirectly: If the square of an integer is odd, then the integer
is odd.
Proof by Contradiction
Example
There is no largest prime number; that is, there are infinitely many
prime numbers.
Solution
Proof by cases
Existence Proof
Constructive Proof
Example
Prove that there is a positive integer that can be expressed in two
different ways as the sum of two cubes.
Non-constructive Proof
A nonconstructive existence proof of the theorem (∃x)P(x) does
not provide us with an element a for which P(a) is true, but rather
establishes its existence by an indirect method, usually
contradiction.
Example
Prove that there is a prime number greater than 3.
Counter Example