Home
Notation
- - Natural numbers (), with zero: ()
- - ints
- - Rational
- - Real
- - for all
- - there exists
Definition
An axiom is a mathematical truth that we accept without without question
Definition
A statement (or proposition) is a sentence that is either true or false (not both)
Definition
Statements that can be symbolised as a single letter are called primitive propositions. A symbol that can be put between two primitive propositions is called a connective. A statement constructed from other statements using connectives is a called a compound statement.
Definition
Let and be primitive propositions. The compound statement is called an implication or an if-then statement.
is "hypothesis" or "sufficient condition"
is "conclusion" or "necessary condition"
The implication is false only when the hypothesis is true and the conclusion is false
Definition
the converse of is
Truth table of
F | F | T | T |
F | T | T | F |
T | F | F | T |
T | T | T | T |
When does an implication and its converse have the same truth value?
When both PPs have the same true value
Definition
let and be PPs. The compound statement ( iff ) and is true exactly when and have the same truth values. This is called a biconditional statement.
Proposition
let and be primitive propositions. Then is true iff the implications and are true.
Sketch of Proof
- Assume is true. Prove and are both true
- Assume both and are true. Prove is true
Proof
Assume is true. Then by definition, and have the same truth values, thus there are two cases:
- Both and are true. Therefore, and are both true by definition.
- Both and are false. Therefore and are both true by definition. Since in all possible cases, both implications are true, we have shown if is true, then and .
Now, assume both and are true. SFAC, and have different truth values. Then, there are two cases.
- If is true and is false, is false. Contradiction.
- If is false and is true, is false. Contradiction. Thus, and have the same truth values, and is true.
Then, we have shown if and are true, then is true.
Therefore, is true iff and are true.
Definition (Conjunction, Disjunction, Negation)
Let and be statements.
- Conjunction: - reads "P AND Q" and is true iff , are true.
- Disjunction: - reads "P OR Q" and is true iff at least one one of , is true.
- Negation: - reads "NOT P" and has the opposite truth value of .
F F F F T F T F T T T F F T F T T T T F
Example
use a T.T. to show
F F T T T T F T T F F F T F F T F F T T T T T T
Switch diagrams:
Theorem (1.20 in text)
let be a connective and , be primitive propositions. Then, can be represented as a disjunction(s) of conjunctions of the statements , , , .
F F T T F F F T F T T F F F T F T F F T F T F F T T F F T F F F
Example
Consider . It's always false.
Example
Consider .
Definition
The exclusive or: is true, iff exactly one of , is true.
F F F F T T T F T T T F Exercise: write as disjunctions of conjunctions and prove it using a T.T.
Theorem
Boolean algebra:
- - Commutativity
- - Commutativity
- - Associativity
- - Associativity
- - Distributivity
- - Distributivity
Proof (for #6)
F F F F F F F F F F T T F F F F F T F T F F F F F T T T F F F F T F F F F F F F T F T T T T T T T T F T T T F T T T T T T T T T
F | T | F | T |
T | F | F | T |
- true
- false
- always true
- always false
thm: (DeMorgan's Laws)
- - DeMorgan's law
- - DeMorgan's law
Proof by truth table is trivial.
Verbal Proof:
Prove both sides are true (or false) in exactly the same cases. (use iff)
Proof
We see is false iff is true. is true iff both , are true. , are true iff , are both false. , are both false iff is false.
Thus, and are false in exactly the same cases and are equivalent.
Definition (Algebraic Proof)
Write one side as a disjunction of conjunctions and simplify to the other side.
Example (Algebraic Proof)
Example
Write as a disjunction of conjunctions and show
Proposition
Definition
let , be primitive statements. The contrapositivie of is
Theorem
Proof
F F T T T T F T T T F T T F F F T F T T T F F T
Example
Write the contrapositive of: "if is even, then is even".
cp: If is odd, then is odd.
Theorem
Proof (verbal)
is true iff is false. is false iff is true AND is false. is true and is false iff both and are true, i.e. iff is true.
Example
Disprove: if is even, then is odd
Consider ( is true)
Then, let odd ( is false)To disprove an implication, all we need is a counterexample.
Definition (Open Sentence)
An open sentence is a sentence that includes variables which becomes a statement once the variables are replaced with objects from a given set.
Definition
let be some open sentence that depends on the variable . Let be a set. Then:
The statement: reads "for all in "
- "Universal statement" and is true iff holds for every elt of
The statement: reads "there exists an in "
- "Existence statement" and is true iff holds for at least one elt of
Example (determine if each is true or false)
- - false, (counterexample)
- - true
- - true, is example
- Every man born in Brazil became the president of Brazil - false
- Every man born on the moon became president of moon - true
Consider if , then
If , the universal is "vacuously true".
Example
Every odd number divisible by 2 is even. - vacuously true
Example
State true/false: true
Theorem
Let be an open sentence that depends on and let be a set.
Example (negate)
- ->
- ->
- ->
Definition (Tautology)
A compound statement is called a tautology iff for all truth values of the primitive statements, the compound statement is true.
Definition (Absurdity)
A compound statement is called an absurdity iff for all truth values of the primitive statements, the compound statement is false.
Example
- : tautology
- : absurdity
Theorem (Rule of Inference)
is a tautology
Proof (by truth table)
F F T F T F T T F T T F F F T T T T T T
Example
Prove that the sum of two odd numbers is even.
Consider two odd numbers, and . Then, which is divisible by and thus even.
Rule of inference: is divisible by , x is divisible by even
Theorem (Proof by Contradiction)
Proof
Recall: =
Example
Prove is irrational
Proof
SFAC that is a rational number. Then , such that, and have no common factors. Then:
is a factor of and since is prime, 2 is a factor of
is a factor of and since is prime, 2 is a factor of
However, we claimed that and have no common factors. Contradiction. Thus, is irrational.
Theorem (Proof by Case Distinction)
The statement:
(Prove with a truth table as an exercise)
Note
To prove a universal statement, choose an arbitrary but fixed element , and show is true.
Example
Prove
Let be arbitrary but fixed. There are two distinct cases, 1: and 2:
Thus,
Thus,
Since the inequality holds in all cases, the statement is proven.
Theorem (Biconditional Law)
Exercise: Prove by truth table
Example
A natural number is even and prime iff
Proof
() Assume is even and prime. Since is the only even prime,
() Assume . Then is divisible by even and is prime.
Thus, the biconditional holds.
Theorem (Proof by Contrapositive)
To show an argument is invalid, we must show that it is possible for all assumptions to be true and for the conclusion to be still be false.
Example
Consider the following argument:
If the floor is dirty, then I must mop. ()
The floor is dirty. ()
I mop. ()( and are the hypothesis, is conclusion)
Is this a valid argument?
F F T F T F T T F T T F F F T T T T T T
Example
Consider the argument
If the (Doctor fights the Daleks)[], (Earth will be safe.)[]
If (he finds Rose)[] and (gets into the TARDIS)[], then he will fight the Daleks.
He found rose. ()
Earth is safe. ()Argument:
R S D E F F F F T F T F T F F F T T F T F T F F T F F F T F T F F T T T F T F T F T F F T F T F T F T F T T F T F T F T T F F F T F T F T T T T F T F T T F F F T F T T F T F F T T F T T T T F T F F F T F T T F T T T T T T T T T F F T T F F T T T F T T T F F T T T T F F T T F T T T T T T T T T T
Consider the following three assumptions:
The Problem
Consider the set whose elements are the sets which do not contain themselves
Is ?
Suppose , then is a set and . Contradiction.
Thus, but then, does not contain itself as an element and .Therefore, Absurdity