< Home

1

1.1 Statements

Notation

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)

1.2 Implications

Definition

Statements that can be symbolised as a single letter are called primitive propositions. A symbol \circ 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 pp and qq be primitive propositions. The compound statement p    qp \implies q is called an implication or an if-then statement.

pp is "hypothesis" or "sufficient condition"
qq is "conclusion" or "necessary condition"

The implication is false only when the hypothesis is true and the conclusion is false

Definition

the converse of p    qp \implies q is q    pq \implies p

Truth table of p    qp \implies q

ppqqp    qp \implies qq    pq \implies p
FFTT
FTTF
TFFT
TTTT

When does an implication and its converse have the same truth value?

When both PPs have the same true value

Definition

let pp and qq be PPs. The compound statement p    qp \iff q (pp iff qq) and is true exactly when pp and qq have the same truth values. This is called a biconditional statement.

Proposition

let pp and qq be primitive propositions. Then p    qp \iff q is true iff the implications p    qp \implies q and q    pq \implies p are true.

Sketch of Proof

Proof

Assume p    qp \iff q is true. Then by definition, pp and qq have the same truth values, thus there are two cases:

  1. Both pp and qq are true. Therefore, p    qp \implies q and q    pq \implies p are both true by definition.
  2. Both pp and qq are false. Therefore p    qp \implies q and q    pq \implies p are both true by definition. Since in all possible cases, both implications are true, we have shown if p    qp \iff q is true, then p    qp \implies q and q    pq \implies p.

Now, assume both p    qp \implies q and q    pq \implies p are true. SFAC, pp and qq have different truth values. Then, there are two cases.

  1. If pp is true and qq is false, p    qp \implies q is false. Contradiction.
  2. If pp is false and qq is true, q    pq \implies p is false. Contradiction. Thus, pp and qq have the same truth values, and p    qp \iff q is true.

Then, we have shown if p    qp \implies q and q    pq \implies p are true, then p    qp \iff q is true.

Therefore, p    qp \iff q is true iff p    qp \implies q and q    pq \implies p are true.
\square

1.3 Conjunction, Disjunction, and Negation

Definition (Conjunction, Disjunction, Negation)

Let pp and qq be statements.

  1. Conjunction: pqp \land q - reads "P AND Q" and is true iff pp, qq are true.
  2. Disjunction: pqp \lor q - reads "P OR Q" and is true iff at least one one of pp, qq is true.
  3. Negation: ¬p\neg p - reads "NOT P" and has the opposite truth value of pp.
ppqqpqp \land qpqp \lor q¬p\neg p
FFFFT
FTFTT
TFFTF
TTTTF

Example

use a T.T. to show p    q(p    q)(q    p)p \iff q \equiv (p \implies q) \land (q \implies p)

ppqqp    qp \implies qq    pq \implies p(p    q)(q    p)(p \implies q) \land (q \implies p)q    pq \iff p
FFTTTT
FTTFFF
TFFTFF
TTTTTT

Switch diagrams:

Theorem (1.20 in text)

let \circ be a connective and pp, qq be primitive propositions. Then, pqp \circ q can be represented as a disjunction(s) of conjunctions of the statements pp, qq, ¬p\neg p, ¬q\neg q.

ppqq¬p\neg p¬q\neg qpqp \land qp¬qp \land \neg q¬pq\neg p \land q¬p¬q\neg p \land \neg q
FFTTFFFT
FTTFFFTF
TFFTFTFF
TTFFTFFF

Example

Consider p¬pp \land \neg p. It's always false.

Example

Consider p    qp \implies q.

p    q(¬pq)(¬pq)(pq) p \implies q \equiv (\neg p \land q) \lor (\neg p \land q) \lor (p \land q)

Definition

The exclusive or: pqp \oplus q is true, iff exactly one of pp, qq is true.

ppqqpqp \oplus q
FFF
FTT
TFT
TTF

Exercise: write pqp \oplus q as disjunctions of conjunctions and prove it using a T.T.

Theorem

Boolean algebra:

  1. pqqpp \lor q \equiv q \lor p - Commutativity
  2. pqqpp \land q \equiv q \land p - Commutativity
  3. (pq)rp(qr)(p \lor q) \lor r \equiv p \lor (q \lor r) - Associativity
  4. (pq)rp(qr)(p \land q) \land r \equiv p \land (q \land r) - Associativity
  5. p(qr)(pq)(pr)p \lor (q \land r) \equiv (p \lor q) \land (p \lor r) - Distributivity
  6. p(qr)(pq)(pr)p \land (q \lor r) \equiv (p \land q) \lor (p \land r) - Distributivity

Proof (for #6)

ppqqrrqrq \lor rp(qr)p \land (q \lor r)pqp \land qprp \land r(pq)(pr)(p \land q) \lor (p \land r)
FFFFFFFF
FFTTFFFF
FTFTFFFF
FTTTFFFF
TFFFFFFF
TFTTTTTT
TTFTTTFT
TTTTTTTT

1.4 Negation

pp¬p\neg pp¬pp \land \neg pp¬pp \lor \neg p
FTFT
TFFT

TT - true
FF - false
ATAT - always true
AFAF - always false

pTpp \land T \equiv p
pFpp \lor F \equiv p
pFFp \land F \equiv F
pTTp \lor T \equiv T

thm: (DeMorgan's Laws)

  1. ¬(pq)(¬p)(¬q)\neg(p \land q) \equiv (\neg p) \lor (\neg q) - DeMorgan's law
  2. ¬(pq)(¬p)(¬q)\neg(p \lor q) \equiv (\neg p) \land (\neg q) - 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 ¬(pq)\neg (p \land q) is false iff pqp \land q is true. pqp \land q is true iff both pp, qq are true. pp, qq are true iff ¬p\neg p, ¬q\neg q are both false. ¬p\neg p, ¬q\neg q are both false iff ¬p¬q\neg p \lor \neg q is false.

Thus, ¬(pq)\neg(p \land q) and ¬p¬q\neg p \lor \neg q 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)

¬(pq)(¬p¬q)(¬pq)(p¬q)[(¬p¬q)(¬pq)](p¬q)¬p[¬qq](p¬q)¬p(p¬q)(¬pp)(¬p¬q)¬p¬q \begin{align} \neg (p \land q) &\equiv (\neg p \land \neg q) \lor (\neg p \land q) \lor (p \land \neg q) \\ &\equiv \left[(\neg p \land \neg q) \lor (\neg p \land q)\right] \lor (p \land \neg q) \\ &\equiv \neg p \land \left[\neg q \lor q\right] \lor (p \land \neg q) \\ &\equiv \neg p \lor (p \land \neg q) \\ &\equiv (\neg p \lor p) \land (\neg p \lor \neg q) \\ &\equiv \neg p \lor \neg q \\ \square \end{align}

Example

Write pqp \oplus q as a disjunction of conjunctions and show pq(pq)¬(qp)p \oplus q \equiv (p \lor q) \land \neg (q \land p)

pq(p¬q)(¬pq)[p(¬pq)][¬q(¬pq)][(p¬p)(pq)][(¬q¬p)(¬qq)](pq)(¬q¬p)(pq)¬(qp) \begin{align} p \oplus q &\equiv (p \land \neg q) \lor (\neg p \land q) \\ &\equiv [p \lor (\neg p \land q)] \land [\neg q \lor (\neg p \land q)] \\ &\equiv [(p \lor \neg p) \land (p \lor q)] \land [(\neg q \lor \neg p) \land (\neg q \lor q)] \\ &\equiv (p \lor q) \land (\neg q \lor \neg p) \\ &\equiv (p \lor q) \land \neg (q \land p) \\ \square \end{align}

Proposition

¬(¬p)p\neg(\neg p) \equiv p

Definition

let pp, qq be primitive statements. The contrapositivie of p    qp \implies q is ¬q    ¬p\neg q \implies \neg p

Theorem

p    q¬q    ¬pp \implies q \equiv \neg q \implies \neg p

Proof

ppqqp    qp \implies q¬p\neg p¬q\neg q¬q    ¬p\neg q \implies \neg p
FFTTTT
FTTTFT
TFFFTF
TTTFFT

Example

Write the contrapositive of: "if aa is even, then abab is even".
cp: If abab is odd, then aa is odd.

Theorem

¬(p    q)p¬q\neg (p \implies q) \equiv p \land \neg q

Proof (verbal)

¬(p    q)\neg(p \implies q) is true iff p    qp \implies q is false. p    qp \implies q is false iff pp is true AND qq is false. pp is true and qq is false iff both pp and ¬q\neg q are true, i.e. iff p¬qp \land \neg q is true.
\square

Example

Disprove: if aa is even, then abab is odd

Consider a=2a = 2 (pp is true)
Then, let b=3b = 3 ab=6ab = 6 \neq odd (qq is false)

To disprove an implication, all we need is a counterexample.

1.5 Variables and Quantifiers

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 p(x)p(x) be some open sentence that depends on the variable xx. Let SS be a set. Then:

  1. The statement: xS:p(x)\forall x \in S : p(x) reads "for all xx in ss"

    • "Universal statement" and is true iff p(x)p(x) holds for every elt of SS
  2. The statement: xS:p(x)\exists x \in S : p(x) reads "there exists an xx in SS"

    • "Existence statement" and is true iff p(x)p(x) holds for at least one elt of SS

Example (determine if each is true or false)

  1. xR,x20\forall x \in \R, x^2 \ge 0 - false, x=0x = 0 (counterexample)
  2. xN,x2>0\forall x \in \N, x^2 \gt 0 - true
  3. xC,x2=1\exists x \in \mathbb{C}, x^2 = -1 - true, x=ix = i is example
  4. Every man born in Brazil became the president of Brazil - false
  5. Every man born on the moon became president of moon - true

Consider xS,p(x)\forall x \in S, p(x) \equivif xSx \in S, then p(x)p(x)

If S=S = \emptyset, the universal is "vacuously true".

Example

Every odd number divisible by 2 is even. - vacuously true

Nested Quantifiers

Example

State true/false: x[0,):[r[0,):r2=x] \forall x \in [0, \infty) : \left[\exists r \in [0, \infty) : r^2 = x\right] true

Theorem

Let p(x)p(x) be an open sentence that depends on xx and let SS be a set.

  1. ¬[xS:p(x)]x¬p(x) \neg\left[\forall x \in S : p(x)\right] \equiv \exists x \in \neg p(x)
  2. ¬[xS:p(x)]x¬p(x) \neg\left[\exists x \in S : p(x)\right] \equiv \forall x \in \neg p(x)

Example (negate)

  1. ¬[xC:x2[0,)]\neg \left[ \forall x \in \mathbb{C} : x^2 \in [0, \infty) \right] -> xC:x2∉[0,)\exists x \in \mathbb{C} : x^2 \not \in [0, \infty)
  2. ¬[x,yR+:xy>0)]\neg \left[ \exists x, y \in \R^+: xy \gt 0\infty) \right] -> x,yR+:xy0\forall x,y \in \R^+ : xy \le 0
  3. ¬[xN:[yN:xyN]]\neg \left[ \forall x \in \N: \left[\exists y \in \N : \frac{x}{y} \in \N \right]\right] -> xN:[yN:xy∉N]\exists x \in \N : \left[\forall y \in \N : \frac{x}{y} \not \in \N \right]

1.6 Proofs

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

Three main proof techniques:

  1. Direct Proof: "Modus Ponens"
  2. Proof by Contradiction: "Reductio ad Absurdum"
  3. Case distrinction - Proof by exhaustion

Direct Proof

Theorem (Rule of Inference)

[p(p    q)]    q\left[p \land (p \implies q)\right] \implies q is a tautology

Proof (by truth table)

ppqqp    qp \implies qp(p    q)p \land (p \implies q)[p(p    q)]    q\left[p \land (p \implies q)\right] \implies q
FFTFT
FTTFT
TFFFT
TTTTT

Example

Prove that the sum of two odd numbers is even.

Consider two odd numbers, 2n+12n + 1 and 2m+12m + 1. Then, 2n+1+2m+1=2n+2m+2=2(n+m+1)2n + 1 + 2m + 1 = 2n + 2m + 2 = 2(n + m + 1) which is divisible by 22 and thus even.
\square

Rule of inference: xx is divisible by 22, x is divisible by 2    2 \implieseven

Proof by Contradiction

Theorem (Proof by Contradiction)

[p(p¬q)    F]    q\left[p \land (p \land \neg q) \implies F\right] \implies q

Proof

Recall: p    qp \implies q = ¬(p¬q)¬pq\neg(p \land \neg q) \equiv \neg p \lor q

[p[(p¬q)    F]]    q¬[p[(p¬q)    F]]q[¬p¬[(p¬q)    F]]q[¬p[(p¬q)T]]q[¬p(p¬q)]q[(¬pp)(¬p¬q)]q[¬p¬q]q¬p[¬qq]¬pTT    Tautology \begin{align} &\left[p \land \left[(p \land \neg q) \implies F\right]\right] \implies q \\ &\equiv \neg \left[p \land \left[(p \land \neg q) \implies F\right]\right] \lor q \\ &\equiv \left[\neg p \lor \neg \left[(p \land \neg q) \implies F\right]\right] \lor q \\ &\equiv \left[\neg p \lor \left[(p \land \neg q) \land T\right]\right] \lor q \\ &\equiv \left[\neg p \lor (p \land \neg q)\right] \lor q \\ &\equiv \left[(\neg p \lor p) \land (\neg p \lor \neg q)\right] \lor q \\ &\equiv \left[\neg p \lor \neg q\right] \lor q \\ &\equiv \neg p \lor \left[\neg q \lor q\right] \\ &\equiv \neg p \lor T \\ &\equiv T \implies \text{Tautology} \\ \end{align}

Example

Prove 2\sqrt{2} is irrational

Proof

SFAC that 2\sqrt{2} is a rational number. Then n,dZ:2=nd\exists n, d \in \Z : \sqrt{2} = \frac{n}{d}, such that, nn and dd have no common factors. Then:

2d=n2d2=n2     \begin{align} \sqrt{2}d &= n \\ 2d^2 &= n^2 \implies \end{align}

22 is a factor of n2n^2 and since 22 is prime, 2 is a factor of nn

    kZ:n=2k    n2=(2k)2=4k2    d2=2k2     \begin{align} &\implies \exists k \in \Z : n = 2k \\ &\implies n^2 = (2k)^2 = 4k^2 \\ &\implies d^2 = 2k^2 \implies \end{align}

22 is a factor of d2d^2 and since 22 is prime, 2 is a factor of dd

However, we claimed that nn and dd have no common factors. Contradiction. Thus, 2\sqrt{2} is irrational.
\square

Proof by Case Distinction

Theorem (Proof by Case Distinction)

The statement: [p(AB)[(pA)    q][(pB)    q]]    q\left[p \land (A \lor B) \land \left[(p\land A) \implies q\right] \land \left[(p\land B) \implies q\right]\right] \implies q

(Prove with a truth table as an exercise)

Note

To prove a universal statement, choose an arbitrary but fixed element xSx \in S, and show p(x)p(x) is true.

Example

Prove xR,x+x77\forall x \in \R, x + |x - 7| \ge 7

Let xRx \in \R be arbitrary but fixed. There are two distinct cases, 1: x7x \ge 7 and 2: x<7x \lt 7

x+x7=x+x7=2x72(7)7=7 \begin{align} x + |x - 7| &= x + x - 7 \\ &= 2x - 7 \ge 2(7) - 7 = 7 \end{align}

Thus, x+x7xx + |x - 7| \ge x

x+x7=x(x7)=77 \begin{align} x + |x - 7| &= x - (x - 7) \\ &= 7 \ge 7 \end{align}

Thus, x+x77x + |x - 7| \ge 7

Since the inequality holds in all cases, the statement is proven.
\square

Theorem (Biconditional Law)

p    q(p    q)(q    p)p \iff q \equiv (p \implies q) \land (q \implies p)

Exercise: Prove by truth table

Example

A natural number xx is even and prime iff x=2x = 2

Proof

(    \implies) Assume xNx \in \N is even and prime. Since 22 is the only even prime, x=2x = 2

(    \impliedby) Assume x=2x = 2. Then xx is divisible by 2    2 \implieseven and 22 is prime.

Thus, the biconditional holds.
\square

Proof by Contrapositive

Theorem (Proof by Contrapositive)

p    q¬q    ¬pp \implies q \equiv \neg q \implies \neg p

1.7 Using Tautologies to Analyse Arguments

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. (p    qp \implies q)
The floor is dirty. (pp)
I mop. (qq)

(p    qp \implies q and qq are the hypothesis, qq is conclusion)

Is this a valid argument?

ppqqp    qp \implies qp(p    q)p \land (p \implies q)[p(p    q)]    q[p \land (p \implies q)] \implies q
FFTFT
FTTFT
TFFFT
TTTTT

Example

Consider the argument

If the (Doctor fights the Daleks)[DD], (Earth will be safe.)[EE]
If (he finds Rose)[RR] and (gets into the TARDIS)[SS], then he will fight the Daleks.
He found rose. (RR)
Earth is safe. (EE)

[[D    E][[RS]    D]R]    E[[D \implies E] \land [[R \land S] \implies D] \land R] \implies E

Argument: [R(D    E)([RS]    D)]    E[R \land (D \implies E) \land ([R \land S] \implies D)] \implies E

RSDED    ED \implies ERSR\land S(RS)    D(R\land S)\implies DR(D    E)((RS)    D)R \land (D \implies E) \land ((R\land S) \implies D)H    EH \implies E
FFFFTFTFT
FFFTTFTFT
FFTFFFTFT
FFTTTFTFT
FTFFTFTFT
FTFTTFTFT
FTTFFFTFT
FTTTTFTFT
TFFFTFTTF
TFFTTFTTT
TFTFFFTFT
TFTTTTTTT
TTFFTTFFT
TTFTTTFFT
TTTFFTTFT
TTTTTTTTT

1.8 Russel's Paradox

Consider the following three assumptions:

  1. Sets and objects have been defined and can be identified using their definition
  2. For any object and any set, we can determine if the object is in the set. If an object xx is in a set AA, we write xAx \in A.
  3. Sets AA can be formed by specifying their elements with o[en sentences p(x)p(x) so that xA    p(x)x \in A \iff p(x) we write A={x:p(x)}A = \{x : p(x)\}.

The Problem

Consider the set BB whose elements are the sets which do not contain themselves

B={A:A is a setA∉A} B = \{ A : A \text{ is a set} \land A \not\in A \}

Is BBB \in B?

Suppose BBB \in B, then BB is a set and B∉BB \not\in B. Contradiction.
Thus, B∉BB \not\in B but then, BB does not contain itself as an element and BBB \in B.

Therefore, BBB∉B    B \in B \land B \not\in B \impliesAbsurdity