L01 Support
L01 Support
L01 Support
Content
6. Arguments
Pythagorean theorem
b c
a
a b c
2 2 2
Familiar?
Obvious?
Good Proof
b c
b-a
a b-a
We will show that these five pieces can be rearranged into:
b- a
c c
a b
c
Good Proof
b c
b-a
a b-a
Good Proof
a
b b
a b-a a
74 proofs in http://www.cut-the-knot.org/pythagoras/index.shtml
Bad Proof
A similar rearrangement technique shows that 65=64…
1.It is possible to draw a straight line from any point to any other point.
2.It is possible to produce a finite straight line continuously in a straight line.
3.It is possible to describe a circle with any center and any radius.
4.It is true that all right angles are equal to one another.
5.("Parallel postulate") It is true that, if a straight line falling on two straight lines make the interior angles on the same side less than two right angles,
the two straight lines, if produced indefinitely, intersect on that side on which are the angles less than the two right angles.
(Optional) See page 18 of the notes for the ZFC axioms that we now use.
Content
6. Arguments
3x3=8 False
787009911 is a prime
Today is Tuesday.
Non-examples: x+y>0
x2+y2=z2
Logic operators are used to construct new statements from old statements.
P ¬P
T F
F T
Logic Operators
Logic operators are used to construct new statements from old statements.
We can also define logic operators on three or more statements, e.g. OR(P,Q,R)
More Logical Operators
exclusive-or
P Q R M(P,Q,R)
T T T T
p q pq T T F T
T T F T F T T
T F F F
T F T
F T T T
F T T F T F F
F F F F F T F
F F F F
Content
6. Arguments
But we will see how to construct any operator from AND, OR, NOT.
Formula for Exclusive-Or
p q
T T F T F F
T F T T T T
F T T T T T
F F F F T F
As you will see, there are many different ways to write the same logical formula.
One can always use a truth table to check whether two statements are equivalent.
Exclusive-Or
And the formula is true exactly when the input is the second row or the third row.
Exclusive-Or
And the formula is true exactly when the input is not in the 1st row and the 4th row.
Writing Logical Formula for a Truth Table
Digital logic:
Now, suppose we are given only the truth table (i.e. the specification,
e.g. the specification of the majority function), how can we construct a
digital circuit (i.e. formula) using only simple gates (such as AND, OR, NOT)
that has the same function?
Writing Logical Formula for a Truth Table
p q r output
T T T F
T T F T
T F T T
T F F F
F T T T
F T F T
F F T T
F F F F
The formula is true exactly when the input is one of the true rows.
Writing Logical Formula for a Truth Table
p q r output
T T T F
T T F T
T F T T
T F F F
F T T T
F T F T
F F T T
F F F F
The formula is true exactly when the input is not one of the false row.
Content
6. Arguments
There are many different ways to write the same logical formula.
As we have seen, one can always write a formula using only AND, OR, NOT.
DeMorgan’s Laws
Negation: Tom is not in the football team or not in the basketball team.
De Morgan’s Law
Negation: The number 783477841 is not divisible by 7 and not divisible by 11.
De Morgan’s Law
In either case, we “flip” the inside operator from OR to AND or from AND to OR.
DeMorgan’s Laws
De Morgan’s Law
T T F F
T F T T
F T T T
F F T T
De Morgan’s Law
Simplifying Statement
DeMorgan
Distributive law
6. Arguments
Conditional Statement
If p then q p implies q
The department says: “If your GPA is 4.0, then you will have full scholarship.”
• It is false when your GPA is 4.0 but you don’t receive full scholarship.
• But it is not false if your GPA is below 4.0.
:: IMPLIES
P Q P Q
T T T
T F F
F T T
F F T
Convention: if we don’t say anything wrong, then it is not false, and thus true.
T F F
F T T
F F T
•If you don’t give me all your money, then I will kill you.
•Either you give me all your money or I will kill you (or both).
•If you talk to her, then you can never talk to me.
•Either you don’t talk to her or you can never talk to me (or both).
Negation of If-Then
previous slide
DeMorgan
Contrapositive
Statement: If P, then Q
Contrapositive: If Q, then P.
T T T F F T
T F F T F F
F T T F T T
F F T T T T
In words, the only way the above statements are false is when P true and Q false.
Contrapositive
Statement: If P, then Q
Contrapositive: If Q, then P.
:: IFF
P Q P Q
T T T
T F F
F T F
F F T
Note: P Q is equivalent to (P Q) (Q P)
Note: P Q is equivalent to (P Q) ( P Q)
Parent: if you don’t clean your room, then you can’t watch a DVD.
C D
Being an odd number > 2 is a necessary condition for this number to be prime.
Being a prime number > 2 is a sufficient condition for this number to be odd.
Checkpoint
Conditional Statements
• Contrapositive
6. Arguments
Argument
whenever all the assumptions are true, then the conclusion is true.
Today is Wednesday.
Yesterday is Tuesday.
whenever all the assumptions are true, then the conclusion is true.
1.It is possible to draw a straight line from any point to any other point.
2.It is possible to produce a finite straight line continuously in a straight line.
3.It is possible to describe a circle with any center and any radius.
4.It is true that all right angles are equal to one another.
5.("Parallel postulate") It is true that, if a straight line falling on two straight lines make the interior angles on the same side less than two right angles,
the two straight lines, if produced indefinitely, intersect on that side on which are the angles less than the two right angles.
Pythagorean’s theorem
assumptions conclusion
p q p→q p q
T T T T T
T F F T F
F T T F T
F F T F F
assumptions conclusion
p q p→q ~q ~p
T T T F F
T F F T F
F T T F T
F F T T T
( P Q), (Q R ), ( R P ) Is it valid?
PQ R
conclusion
Valid Argument?
( P Q), (Q R ), ( R P ) Is it valid?
PQ R
assumptions conclusion
P Q R OK?
T T T T T T T yes
T T F T F T F yes
T F T F T T F yes
T F F F T T F yes
F T T T T F F yes
F T F T F T F yes
F F T T T F F yes
F F F T T T F no
assumptions conclusion
p q p→q q p
T T T T T
If p then q.
q T F F F T
p
F T T T F
F F T F F
assumptions conclusion
p q p→q ~p ~q
T T T F F
If p then q.
~p T F F F T
~q
F T T T F
F F T T T
A says: B is a truth-teller.
B says: A and I are of opposite type.
Suppose A is a truth-teller.
Then B is a truth-teller (because what A says is true).
Then A is a lier (because what B says is true)
A contradiction.
So A must be a lier.
So B must be a lier (because what A says is false).
No contradiction.
Quick Summary
Arguments
• definition of a valid argument
• method of affirming, denying, contradiction
Key points:
Which is false?