Mathematical Logic Definition: Methods of Reasoning, Provides Rules and Techniques To Determine Whether An
Mathematical Logic Definition: Methods of Reasoning, Provides Rules and Techniques To Determine Whether An
A statement, or a proposition, is a declarative sentence that is either true or false, but not both
Uppercase letters denote propositions
Examples:
P: 2 is an even number (true)
Q: 7 is an even number (false)
R: A is a vowel (true)
The following are not propositions:
P: My cat is beautiful
Q: My house is big
Propositions
A statement that has a truth value
Which of the following are propositions?
- The Washington State flag is red
- It snowed in Whistler, BC on January 4, 2008.
- Hillary Clinton won the democratic caucus in Iowa
- Space aliens landed in Roswell, New Mexico
- Ron Paul would be a great president
- Turn your homework in on Wednesday
- Why are we taking this class?
- If n is an integer greater than two, then the equation an + bn = cn has no solutions
in non-zero integers a, b, and c.
- Every even integer greater than two can be written as the sum of two primes
- This statement is false
Propositional variables: p, q, r, s, . . .
Truth values: T for true, F for false
Truth value
One of the values “truth” (T) or “falsity” (F) assigned to a statement
Negation
The negation of P, written , is the statement obtained by negating statement P
Example:
P: A is a consonant
¬P: it is the case that A is not a consonant
Truth Table
Conjunction
Disjunction
Implication
Let P and Q be statements. The statement “if P then Q” is called an implication or
condition.
The implication “if P then Q” is written P → Q
P is called the hypothesis, Q is called the conclusion
Truth Table for Implication:
Biimplication
Let P and Q be statements. The statement “P if and only if Q” is called the biimplication
or biconditional of P and Q
The biconditional “P if and only if Q” is written P ↔ Q
“P if and only if Q”
Truth Table for the Biconditional:
You cannot ride the roller coaster if you are under 4 feet tall unless you are older than 16
years old
o q: you can ride the roller coaster
o r: you are under 4 feet tall
o s: you are older than 16
( r ^ ¬ s) → ¬ q
¬ s → (r → ¬ q)
A compound proposition is a
Logically Implies
Logically Equivalent
Universal Quantifier
o Let P(x) be a predicate and let D be the domain of the discourse. The universal
quantification of P(x) is the statement:
For all x, P(x) or
For every x, P(x)
The symbol ∀ is read as “for all and every”
∀x, P(x) or ∀ x ∈ D,P(x)
Two-place predicate: ∀x, ∀y, P(x, y)
Existential Quantifier
o Let P(x) be a predicate and let D be the universe of discourse. The existential
quantification of P(x) is the statement:
There exists x, P(x)
The symbol ∃ is read as “there exists”
∃x ∈ D,P(x) or ∃x, P(x)
Bound Variable
The variable appearing in: ∀x, P(x) or ∃x, P(x)
STATEMENTS
A statement is a declarative sentence having truth value.
Examples of statements:
Today is Saturday.
Today I have math class.
1+1=2
3<1
What's your sign?
Some cats have fleas.
All lawyers are dishonest.
Today I have math class and today is Saturday.
1 + 1 = 2 or 3 < 1
For each of the sentences listed above (except the one that is stricken out) you should be able to
determine its truth value (that is, you should be able to decide whether the statement is TRUE or
FALSE).
Note: In our discussion of logic, when we encounter a subjective or value-laden term (an
opinion) such as "dishonest," we will assume for the sake of the discussion that that term
has been precisely defined.
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."
EXAMPLE
According to your everyday experience, decide whether each statement is true or false:
1. All dogs are poodles. - False (because we know that there is at least one dog that is not a
poodle).
2. Some books have hard covers. - True (because we know that there is at least one book that
doesn’t have a hard cover).
3. No U.S. presidents were residents of Georgia. - False (because we know that there was at least
one president who was from Georgia).
4. Some cats are mammals. - True (because there is at least one cat that is a mammal; in fact
every cat is a mammal).
5. Some cats aren't mammals. - False (because we know that it is not possible to find at least cat
that isn’t a mammal)
NEGATIONS
If p is a statement, the negation of p is another statement that is exactly the opposite of p.
The negation of a statement p is denoted ~p ("not p").
A statement p and its negation ~p will always have opposite truth values; it is impossible
to conceive of a situation in which a statement and its negation will have the same truth
value.
EXAMPLE
Let p be the statement "Today is Saturday."
Then ~p is the statement "Today is not Saturday."
On any given day, if p is true then ~p will be false; if p is false, then ~p will be true.
It is impossible to conceive of a situation in which p and ~p are simultaneously true.
It is impossible to conceive of a situation in which p and ~p are simultaneously false.
In general:
The negation of "Some A are B" is "No A are (is) B."
(Note: this can also be phrased "All A are the opposite of B," although this construction
sometimes sounds ambiguous.)
EXAMPLE
Write the negation of "Some used cars are reliable."
For example, the negation of "All goats are mammals" is "Some goats aren't mammals."
Notice that "All goats are mammals" is a statement that is true according to our everyday
experience, while "Some goats aren't mammals" is a statement that is false according to our
everyday experience.
In fact, it is logically impossible to imagine a situation in which those two statements have the
same truth value.
LOGICAL CONNECTIVES
The words "and" "or" "but" "if...then" are examples of logical connectives. They are words that
can be used to connect two or more simple statements to form a more complicated compound
statement.
EQUIVALENT STATEMENTS
Any two statements p and q are logically equivalent if they have exactly the same meaning. This
means that p and q will always have the same truth value, in any conceivable situation.
If p and q are equivalent statements, then it is logically impossible to imagine a situation in
which the two statements would have differing truth values.
Examples:
"Today I have math class and today is Saturday" is equivalent to "Today is Saturday and today I
have math class."
This equivalency follows simply from our everyday understanding of the meaning of the word
"and."
Likewise, "I have a dog or I have a cat" is equivalent to "I have a cat or I have a dog"
This equivalency follows simply from our everyday understanding of the meaning of the word
"or."
THE CONJUNCTION
If p, q are statements, their conjunction is the statement "p and q."
It is denoted: p ∧ q
For example, let p be the statement "I have a dime" and let q be the statement "I have a nickel.”
Then p ∧ q is the statement "I have a dime and I have a nickel."
In general, in order for any statement of the form “p ∧ q” to be true, both p and q must be true.
THE DISJUNCTION
If p, q are statements, their disjunction is the statement "p or q."
It is denoted: p ∨ q.
For example, let p be the statement "Today is Tuesday" and let q be the statement "1 + 1 = 2." In
that case, p ∨ q is the statement
"Today is Tuesday or 1 + 1 = 2."
In general, in order for a statement of the form p ∨ q to be true, at least one of its two parts must
be true. The only time a disjunction is false is when both parts (both “components”) are false.
For example, "I have a dime or I have a nickel" equivalent to "I have a nickel or I have a dime."
Likewise, "It is raining and it isn't snowing" is equivalent to "It isn't snowing and it is raining."
TRUTH TABLES
A truth table is a device that allows us to analyze and compare compound logic statements.
Solution to EXAMPLE #1
p q p∧q
T T T
T F F
F T F
F F F
Note that in this truth table there is only one row in which the statement p ∧ q is true. This the
row where p is true and q is true. This conforms to our earlier observation that the only situation
in which is conjunction is true is the case in which both of its component statements are true.
Solution to EXAMPLE #2
p q p∧q
T T T
T F T
F T T
F F F
Note that in this truth table there is only one row in which the statement p ∨ q false. This is the
row where p is false and q is false. This conforms to our earlier observation that the only
situation in which is disjunction is false is the case in which both of its component statements are
false.
2. The number of columns in a truth table depends upon the number of logical connectives in the
statement. The following guidelines are usually reliable.
A. There will be one column for each basic variable; and
B. To determine the number of other columns, count the number of logical connectives in the
statement; do re-count multiple occurrences of the same connective. The “~” symbol counts as a
logical connective.
In addition to the columns for each basic variable, there will usually be one column for each
occurrence of a logical connective.
3. The beginning columns are filled in so as to take into account every possible combination of
the basic variables being true or false. Each row represents one of the possible combinations.
4. In order to fill in any other column in the truth table, you must refer to a previous column or
columns.
TAUTOLOGIES
A tautology is a statement that cannot possibly be false, due to its logical structure (its syntax).