Professional Documents
Culture Documents
Question:
Which statements are True? False? Both?
Neither?
Answers:
True: I have 1 child.
False: I’m 30 years old.
I always tell the truth.
Both: IMPOSSIBLE, by our Axiom.
Neither: I’m lying to you.
Neither: I’m lying to you. (If viewed on its
own)
HUH? Well suppose that
S = “I’m lying to you.”
were true.
In particular, I am actually lying, so S is
false.
So it’s both true and false, impossible by
the Axiom.
Okay, so I guess S must be false.
But then I must not be lying to you.
So the statement is true.
Again it’s both true and false.
In both cases we get the opposite of our
assumption, so S is neither true nor
false.
To avoid painful head-aches, we ban such
silly non-sense and avoid the most general
type of statements limiting ourselves to
statements with valid truth-values instead:
p q ~p q pq
TT TT TT TT
TT FF FF FF
FF TT TT TT
FF FF T
T TT
FF FF TT TT T
T
The contrapositive of a conditional
statement is formed by
negating both the hypothesis and the
conclusion, and then
interchanging the resulting negations.
p q pq ~q ~p
T T T T
T F F F
F T T T
F F T T
The double implication “p if and only if q” is
defined in symbols as p q
p q pq (p q) ^ (q p)
T T T T
T F F F
F T F F
F F T T
p p ^ (~p)
T F
F F
A tautology is a compound proposition that is
always true
A contradiction is a compound proposition
that is always false.
Example:
Two compound propositions, P and Q, are
logically equivalent if P Q is a tautology.
Notation: P Q
De Morgan’s Laws:
p q p q
p q p q
Let’s build a truth table!
List of Logical Equivalences:
Identity Laws
pT p
pF p
Domination Laws
pT T
pF F
Idempotent Laws
pp p
pp p
List of Logical Equivalences:
Double Negation Law
(p) p
Tautology
p p T
Contradiction
p p F
List of Logical Equivalences:
Commutative Laws
pq qp
pq qp
Associative Laws
(pq) r p (qr)
(pq) r p (qr)
Distribution Laws
p(qr) (pq)(pr)
p(qr) (pq)(pr)
List of Logical Equivalences:
De Morgan’s Laws
(pq) (p q)
(pq) (p q)
Implication Equivalence
(pq) (p q)
Biconditional Equivalence
pq (pq) (qp)
Show
Conditionals
p q p q
p q q p
p q p q
Biconditionals
p q p q q p
p q p q
p q p q
Biconditionals
~ is the highest
^
↔ lowest
Example:
The proposition
~p^qr↔qp^r
is equivalent to or is computed according to:
(((~p) ^ q) r) ↔ ( q (p ^ r))
Prove:
(p ⇒ (q ∧ r)) ⇔ (p ⇒ q) ∧ (p ⇒ r)
(p ⇒ (q ⇒ r)) ⇒ ((p ∧ q) ⇒ r)
((¬r ⇒ ¬p ∧ ¬q) ∨ s) ⇔ (p ∨ q ⇒ r ∨ s)
(p ∧ (q ⇒ r)) ⇔ ((¬p ∨ q) ⇒ (p ∧ r))
Lecture 1 64
The Proof Process
Assumptions
-Definitions
-Already-proved
Logical Steps equivalences
-Statements
(e.g., arithmetic
or algebraic)
Conclusion
(That which was to be proved)
Prove: (pq) q pq
(pq) q Left-Hand Statement
q (pq) Commutative
(qp) (q q) Distributive
(qp) T Or Tautology
qp Identity
pq Commutative
Prove: p q q p
pq
p q Implication Equivalence
q p Commutative
(q) p Double Negation
q p Implication Equivalence
Prove : p p q is a tautology
ppq
p (p q) Implication Equivalence
(p p) q Associative
(p p) q Commutative
Tq Or Tautology
qT Commutative
T Domination
This tautology is called the addition rule of inference.
Prove : (pq) p is a tautology
(pq) p
(pq) p Implication Equivalence
(pq) p DeMorgan’s
(qp) p Commutative
q (p p) Associative
q (p p) Commutative
q T Or Tautology
T Domination
Exercise:
1. Prove: (¬p→r) ∧ (¬p→¬r) ≡ p
2. Prove: ¬ (p v (¬p ∧ q)) ≡ ¬p ∧ ¬q
3. ((¬r ⇒ ¬p ∧ ¬q) ∨ s) ⇔ (p ∨ q ⇒ r ∨ s)
Prove or Disprove:
To prove that something is not true it is
enough to provide one counter-example.
(Something that is true must be true in every
case.)
p q p q ???
p q pq pq
---------------------
F T T F
The statements are not logically equivalent
A mathematical system consists of
Undefined terms
Definitions
Axioms
Undefined terms are the basic building
blocks of a mathematical system.
These are words that are accepted as
starting concepts of a mathematical system.
Example:
In Euclidean geometry we have undefined
terms such as
Point
Line
A definition is a proposition constructed from
undefined terms and previously accepted
concepts in order to create a new concept.
Example:
In Euclidean geometry:
Two triangles are congruent if their
vertices can be paired so that the
corresponding sides are equal and so are
the corresponding angles.
An axiom is a proposition accepted as true
without proof within the mathematical
system.
Example: In Euclidean geometry the
following are axioms.
Given two distinct points, there is
exactly one line that contains them.
Given a line and a point not on the line,
there is exactly one line through the
point which is parallel to the line.
A theorem is a proposition of the form
p q
which must be shown to be true by a sequence
of logical steps that assume that p is true,
and use definitions, axioms and previously
proven theorems.
A proof is a logical argument that consists of
a series of steps using propositions in such a
way that the truth of the theorem is
established.
Direct proof: p q
A direct method of attack that assumes
the truth of proposition p, axioms and
proven theorems so that the truth of
proposition q is obtained.
Indirect proofs:
The method of proof by contradiction of a
theorem p q consists of the following
steps:
1. Assume p is true and q is false
2. Show that ~p is also true.
3. Then we have that p ^ (~p) is true.
4. But this is impossible, since the
statement p ^ (~p) is always false. There
is a contradiction!
5. So, q cannot be false and therefore it is
true.
Indirect proofs:
The method of proof by showing that the
Contrapositive (~q) (~p) is true.
Since (~q) (~p) is logically equivalent to
p q,
then the theorem is proved.
Deductive reasoning: the process of
reaching a conclusion q from a sequence of
propositions p1, p2, …, pn.
The propositions p1, p2, …, pn are called
premises or hypothesis.
The proposition q that is logically obtained
through the process is called the conclusion.
The argument is valid provided that if p1,
p2,…pn are all true, then q must be true;
otherwise the argument is invalid ( or a
fallacy)
1. Law of detachment or modus
ponens
p q
p
Therefore, q
2. Modus tollens
p q
~q
Therefore, ~p
Modus Ponens
3. Rule of Addition
p
Therefore, p q
4. Rule of simplification
p ^ q
Therefore, p
5. Rule of conjunction
p
q
Therefore, p ^ q