CS109A Notes For Lecture 1/12/96 The Essence of Proof: Modus Ponens
CS109A Notes For Lecture 1/12/96 The Essence of Proof: Modus Ponens
Example:
Succinct Notation
replaced by concatenation (no operator,
like multiplication).
OR replaced by +.
NOT replaced by :.
TRUE and FALSE replaced by 0 and 1.
AND
Truth Tables
The truth table for an expression has one row for
each combination of truth-values for its variables,
i.e., 2n rows if there are n variables.
Assignment of TRUE or FALSE to each variable
of the expression is a truth assignment.
The value in each row is the value of the expression
for that truth assignment.
Often, we evaluate an expression \bottomup," with a column for each subexpression.
Apply an operator to two columns by applying the operator row-wise.
p q
0
0
1
1
0
1
0
1
p!q
1
1
0
1
:p :q :
1
1
0
0
1
0
1
0
q ! : p whole
1
1
0
1
1
1
1
1
p: \X is divisible by 4."
q: \X is odd."
r: \X is twice an odd number."
Statement is: :p ! q + r.
Contrapositive: (:q)(:r) ! p.
Argument:
:q says \X is even," i.e., X = 2A for
some A.
:r says X is not twice any odd number.
Since X is twice A, A is not odd. Thus,
A = 2B for some B.
Thus, X = 4B, which is statement p: \X
is divisible by 4."
8. Proof by contradiction : p (:p) ! 0.
3
Substitution Principle
s(X; Y ) + s(Y; X ) +
s(X; Y ) + s(Y; X )
is a tautology.