Introduction To Math Logic
Introduction To Math Logic
Introduction To Math Logic
Logic!
What is it???
Logic
• Crucial for mathematical reasoning
• Logic is a system based on propositions.
• A proposition is a statement that is either true or
false (not both).
• We say that the truth value of a proposition is either
true (T) or false (F).
• “y > 5”
Is this a statement? no
It’s a request.
Is this a proposition? no
P P
true (T) false (F)
false (F) true (T)
Conjunction (AND)
• Binary Operator, Symbol:
P Q PQ
T T T
T F F
F T F
F F F
Disjunction (OR)
• Binary Operator, Symbol:
P Q PQ
T T T
T F T
F T T
F F F
Exclusive Or (XOR)
• Binary Operator, Symbol:
P Q PQ
T T F
T F T
F T T
F F F
Implication (if - then)
• Binary Operator, Symbol:
P Q PQ
T T T
T F F
F T T
F F T
Biconditional (if and only if)
• Binary Operator, Symbol:
P Q PQ
T T T
T F F
F T F
F F T
Statements and Operators
• Statements and operators can be combined in any way
to form new statements.
P Q P Q (P)(Q)
T T F F F
T F F T T
F T T F T
F F T T T
Statements and Operations
• Statements and operators can be combined in any way to
form new statements.
P Q PQ (P)(Q)
(PQ)
T T T F F
T F F T T
F T F T T
F F F T T
Equivalent Statements
P Q (PQ) (P)(Q) (PQ)(P)(Q)
T T F F T
T F T T T
F T T T T
F F T T T
• The statements (PQ) and (P) (Q) are logically equivalent,
since (PQ) (P) (Q) is always true.
If the seed catalog is correct then if seeds are
planted in April then the
flowers bloom in July. The flowers do not
bloom in July. Therefore, if seeds
are planted in April then the seed catalog is
not correct.