Gen Math Logic
Gen Math Logic
3
• Proposition or statement is a Logical connectives:
declarative sentence that is • and
either true or false but not both
• or
• Propositional variable used to
represent a proposition, p, q, r • if then
• Logical connectives are used to • not
combine simple propositions to • if and only if
form compound propositions • exclusive-or
Propositional Logic:
Propositions and Operators
• What are “Simple Propositions”?
• Statements which cannot be broken down without a loss in meaning.
• E.g. “John and Leah is a couple” cannot be broken down without a change in
meaning of the statement. Note what happens if we break it down to “John is
a couple” and “Leah is a couple”
Propositional Logic
• But “Juanita and Juanito are diligent students” is not a simple sentence
because it can be broken down without a change in meaning. “Juanita is a
diligent student.” “Juanito is a diligent student.”
• This is an example of a “Compound Proposition.”
• How do we represent (simple) propositions in propositional logic?
• Conventionally, capital letters (usually towards the beginning of the alphabet)
may be used as abbreviations for propositions.
The Operators
Connective Symbol Formal Name
Not ~ Negation
And ^ Conjunction
Or v Disjunction
→ Conditional /
If… then…
Implication
… if and
only if… ↔ Biconditional
• Truth Table displays the relationship between all possible truth values
of the component propositions
Truth Table of Conjunction •
Given any two statements, p and q
p q p^q
T T T
T F F
F T F
F F F
p ~p
T F
F T
Disjunction Truth Table
p q pvq
T T T
T F T
F T T
F F F
A (weak) disjunction is false only in the case that both its disjuncts are false
If…then Truth Table
p q pq
T T T
T F F
F T T
F F T
A (weak) disjunction is false only in the case that both its disjuncts are false
If and only if.. Truth Table
p q p q
T T T
T F F
F T F
F F T
A (weak) disjunction is false only in the case that both its disjuncts are false
• A Contradiction is a compound
proposition that is false for all
possible truth values of its • A Tautology is a compound
component propositions proposition that is true for all
possible truth values of its
P ~P p˄ ~ p component propositions.
T F F
F T F
(~P V Q) (P Q)
•p
•p q The two hypotheses p and p q are
•____
• q written in a column, and the conclusion
below a bar, where means “therefore”.
• p1
• p2 The rule states that if p1 and p2 and …
• . and pn are all true, then q is true as well.
• .
• .
• pn These rules of inference can be used in
•____
• q any mathematical argument and do not
require any proof.
Modus
Addition
tollens
Simplification Hypothetical
syllogism
Conjunction Disjunctive
syllogism
Arguments
Modus
ponens
•Another example:
•“If it rains today, then we will not have a barbeque today.
If we do not have a barbeque today, then we will have a
barbeque tomorrow.
Therefore, if it rains today, then we will have a barbeque
tomorrow.”
Hypothetical
syllogism