Elementary Logic: Arniel A. Alderite, MSC Mathematics Department Institute of Computing and Engineering
Elementary Logic: Arniel A. Alderite, MSC Mathematics Department Institute of Computing and Engineering
Example:
“I will attend the meeting or I will go to school.” is a compound statement.
Logic Connectives and Symbols
Let’s try!
Consider the following simple statements.
p: Today is Friday.
q: It is raining.
r: I am going to a movie.
s: I am not going to the basketball game.
Write the following compound statements in symbolic form.
a.
Today is Friday and it is raining.
𝒑 ∧𝒒
𝒒∧𝒓
b. It is not raining and I am going to a movie. 𝒔 ∨𝒓
c. I am going to the basketball game or I am going to a movie. 𝒒 → 𝒔
d. If it is raining, then I am not going to the basketball game.
Let’s try!
•Consider
the following simple statements.
p: The game will be played in Araneta.
q: The game will be shown on ABS.
r: The game will not be shown in GMA.
s: The Raptors are favored to win.
Write the following symbolic statements in words.
a. The game will be shown on ABS and the game will be played in Araneta.
b. The game will be shown on GMA and the Raptors are favored to win.
c. The Raptors are favored to win if and only if the game will not be played in Araneta.
Compound Statements and Grouping
Symbols
If a compound statement is written in symbolic form, then parentheses are used to
indicate which simple statements are grouped together.
Compound Statements and Grouping
Symbols
If a compound statement is written as an English sentence, then a comma is used to indicate
which simple statements are grouped together. Statements on the same side of a comma are
grouped together
Let’s try!
•Let
p, q, and r represent the following.
p: You get a promotion.
q: You complete the training.
r: You will receive a bonus.
a. Write as an English sentence.
If you get a promotion and you complete the training, then you will receive a bonus.
b. Write “If you do not complete the training, then you will not get a promotion
and you will not receive a bonus.” in symbolic form.
QUANTIFIED STATEMENTS
The words "all" "some" and "none" are examples of quantifiers.
A statement containing one or more of these words is a quantified
statement.
Note: the word "some" means "at least one."
Let’s Try
According to your everyday experience, decide whether each statement
is true or false:
1. All dogs are poodles. False
T T F T F T
T F F F T T
F T T T F T
F F T T F F
Truth Value and Truth Tables
•Construct
a truth table for
T T T T F T T
T T F T T T T
T F T F F F F
T F F F T T F
F T T F F T F
F T F F T T F
F F T F F F F
F F F F T T F
Truth Tables (via Order of Precedence)
•Construct
a truth table for
Equivalent Statements
•Two
statements are equivalent if they both have the
same truth value for all possible truth values of their
simple statements. Equivalent statements have identical
truth values in the final columns of their truth tables.
The notation is used to indicate that the statements and
are equivalent.
Equivalent Statements
•Show
that and are equivalent statements.
De Morgan’s Law
For any statements p and q
a. If our school was this nice, I would go there more than once a week.
b. If you don’t stop and look around once in a while, you could miss it.
c. If you strike me down, I shall become more powerful than you can possibly
imagine.
a. Antecedent: our school was this nice
Consequent: I would go there more than once a week
b. Antecedent: you don’t stop and look around once in a while
Consequent: you could miss it
c. Antecedent: you strike me down
Consequent: I shall become more powerful than you can possibly imagine
Truth Value and Truth Table for
•The
conditional is false if p is true and q is false. It is true in all other
cases.
Truth Value and Truth Table for
Determine the truth value of each of the following.
Example:
( 𝑝 →𝑞 ) ≡ 𝑝 ∧ 𝑞
Example:
If they pay me the money, I will sign the contract.
They paid me the money and I did not sign the contract.
The Biconditional
•The
statement is called a biconditional and is denoted by , which is
read as “p if and only if q.”
Truth Value and Truth Table for
•The
biconditional is true only when p and q have the same truth value.
Truth Value and Truth Table for
•State
whether each biconditional is true or false.
a. if and only if .
b. if and only if .
a. Both equations are true when , and both are false when . Both equations have the same truth
value for any value of x, so this is a true statement.
b. If , the first equation is true and the second equation is false. Thus this is a false statement.
Symbolic Arguments
An argument consists of a set of statements called premises
and another statement called the conclusion. An argument is
valid if the conclusion is true whenever all the premises are
assumed to be true. An argument is invalid if it is not a valid
argument.
Symbolic Arguments
•
Example:
If Aristotle was human, then Aristotle was mortal. Aristotle was human.
Therefore, Aristotle was mortal.
Let represent the statement “Aristotle was human” and let represent the statement “Aristotle was mortal” The argument in
symbolic form is,
Let represent the statement “The fish is fresh” and let represent the statement “I will order it” The
argument in symbolic form is,
Arguments and Truth Table
Validity of the Aristotle example
Row 1 is the only row in which all the premises are true, so it is the only row that we examine. Because the
conclusion is true in row 1, the argument is valid.
Arguments and Truth Table
Determine whether the following argument is valid or invalid.
If it rains, then the game will not be played. It is not raining. Therefore,
the game will be played.
Because the conclusion in row 4 is false and the premises are both true, the argument is invalid.
Arguments and Truth Table
Determine whether the following argument is valid or invalid.
Because the conclusion is true in the rows 2, 6, 7 and 8, the argument is valid.
Standard Forms of Valid Arguments
Standard Forms of Invalid Arguments
Validity of argument examples
Use a standard form to determine whether the following argument is
valid or invalid.
This sequence of valid arguments shows that t is a valid conclusion for the original argument.
Validity of argument examples
•Determine
whether the following argument is valid.
If the movie was directed by Steven Spielberg , then I want to see it . The movie’s production costs
must exceed $50 million or I do not want to see it. The movie’s production costs were less than $50
million. Therefore, the movie was not directed by Steven Spielberg.
This sequence of valid arguments shows that t is a valid conclusion for the original argument.