Chapter 1-1
Chapter 1-1
• I am in NOT class
• Cat cannot fly.
• Today is Sunday.
Conjunct
ion
Let p and q be propositions. The conjunction of p
and q, denoted by p Λ q, is the proposition “p and
q”. The conjunction p Λ q is true when both p and q
are true and is false otherwise.
Exclusive or : The disjunction is true only when one of the proposition is true.
“Ice cream or pudding will be served after lunch.”
• If you are not working hard, then you are not a topper. Inverse
• If you are not topper, then you are not working hard.
Contrapositive
Show using a truth table that the conditional is Show using truth tables that neither the
equivalent to the contrapositive. converse nor inverse of an implication are
not equivalent to the implication.
a) You send me an e-mail message only if I will remember to send you the address.
b) To be a citizen of this country, it is sufficient that you were born in the United States.
c) If you keep your textbook, it will be a useful reference in your future courses.
d) The Red Wings will win the Stanley Cup if their goalie plays well.
e) That you get the job implies that you had the best credentials.
h) You will reach the summit unless you begin your climb too late.
a) p→q
b) ¬q ↔ r
c) q →¬r
d) p∨q∨r
e) (p →¬r) ∨ (q →¬r)
f) (p ∧ q) ∨ (¬q ∧ r)
FREE: For Complete Playlist: https://www.youtube.com/c/FahadHussaintutorial/playlists
For Code, Slide and Books: https://fahadhussaincs.blogspot.com/
Practice Time
a) You get an A in this class, but you do not do every exercise in this book.
b) You get an A on the final, you do every exercise in this book, and you get an A in this class.
d) You get an A on the final, but you don’t do every exercise in this book; nevertheless, you get an A in this class.
e) Getting an A on the final and doing every exercise in this book is sufficient for getting an A in this class.
f) You will get an A in this class if and only if you either do every exercise in this book or you get an A on the final.
Example: p ∧¬p
⚫A contradiction is a proposition which is always false.
Contradiction occurs when we get a statement p, such that p is true and its negation ~p is also
true.
x > 10
Predicate Function:
After assigning its become Proposition.
Truth Value:
“Quantifier”
Denote: P(Variable)
m(x): x is a man
c(x, y) : x has the change if previous time is less
than y
q (x) : qualifies for the marathon
c)
d)
c(x) : x taken more than 21 credit hours in a
semester
A(x) : x has received all A
Solution: The negation of ∀x(x2 > x) is the statement ¬∀x(x2 > x), which is equivalent to
∃x¬(x2 > x). This can be rewritten as ∃x(x2 ≤ x).
The negation of ∃x(x2 = 2) is the statement ¬∃x(x2 = 2), which is equivalent to ∀x¬(x2 = 2).
This can be rewritten as ∀x(x2 = 2).
The truth values of these statements depend on the domain.
Show that ¬∀x(P (x) → Q(x)) and ∃x(P (x) ∧ ¬Q(x)) are logically equivalent.
By the fifth logical equivalence, we know that ¬(P (x) → Q(x)) and P (x) ∧ ¬Q(x) are logically
equivalent for every x. Because we can substitute one logically equivalent expression for
another in a logical equivalence, it follows that ¬∀x(P (x) → Q(x)) and ∃x(P (x) ∧ ¬Q(x)) are
logically equivalent.
FREE: For Complete Playlist: https://www.youtube.com/c/FahadHussaintutorial/playlists
For Code, Slide and Books: https://fahadhussaincs.blogspot.com/
Nested Quantifiers
Two quantifiers are nested if one is within the scope of the other.
∀x ∃y(x + y = 0)
∀x ∀y(x + y = y + x)
∀x ∀y ∀z(x + (y + z) = (x + y) + z)
∀x ∀y P(x y)
∀x ∃y P(x y)
∃x ∀y P(x y)
∃x ∃y P(x y)
a) This says that there exists a real number x such that for every real number y, the
product xy equals y. That is, there is a multiplicative identity for the real numbers. This
is a true statement, since x = 1 is the identity.
b) The product of two negative real numbers is always a positive real number.
c) There exist real numbers x and y such that x2 exceeds y but x is less than y. This is true,
since we can take x =2 and y =3, for instance.
d) This says that for every pair of real numbers x and y , there exists a real number z that is
their sum. In other words, the real numbers are closed under the operation of addition,
another true fact. (Some authors would include the uniqueness of z as part of the
meaning of the word closed.)
FREE: For Complete Playlist: https://www.youtube.com/c/FahadHussaintutorial/playlists
For Code, Slide and Books: https://fahadhussaincs.blogspot.com/
Nested Quantifiers, Questions
Negating Nested Quantifiers
Example:
Modus Tollens:
The Modus Tollens rule state that if P→ Q is true and ¬ Q is true, then ¬ P will also true. It can be represented as:
Hypothetical Syllogism:
The Hypothetical Syllogism rule state that if P→R is true whenever P→Q is true, and
Q→R is true. It can be represented as the following notation:
Example:
Statement-1: If you have my home key then you can unlock my home. P→Q
Statement-2: If you can unlock my home then you can take my money. Q→R
Conclusion: If you have my home key then you can take my money. P→R
Addition:
The Addition rule is one the common inference rule, and it states that If P is true, then P ∨Q will be true.
Example:
Resolution:
The Resolution rule state that if P∨Q and ¬ P∧R is true, then Q∨R will also be
true. It can be represented as
Solution: Let p be the proposition “You did every problem in this book.” Let q be the
proposition “You learned discrete mathematics.” Then this argument is of the form: if p →
q and q, then p.
This is an example of an incorrect argument using the fallacy of affirming the conclusion.
Indeed, it is possible for you to learn discrete mathematics in some way other than by
doing every problem in this book. (You may learn discrete mathematics by reading,
listening to lectures, doing some, but not all, the problems in this book, and so on.)
The proposition ((p → q) ∧ ¬p) → ¬q is not a tautology, because it is false when p is false
and q is true. Many incorrect arguments use this incorrectly as a rule of inference.
This type of incorrect reasoning is called the fallacy of denying the hypothesis.
Universal instantiation is the rule of inference used to conclude that P(c) is true,
where c is a particular member of the domain, given the premise ∀xP(x). Universal
instantiation is used when we conclude from the statement “All women are wise”
that “Lisa is wise,” where Lisa is a member of the domain of all women.
Universal generalization is the rule of inference that states that ∀xP(x) is true, given
the premise that P(c) is true for all elements c in the domain. Universal
generalization is used when we show that ∀xP(x) is true by taking an arbitrary
element c from the domain and showing that P(c) is true. The element c that we
select must be an arbitrary, and not a specific, element of the domain. That is, when
we assert from ∀xP(x) the existence of an element c in the domain,