Section 0.1 – Compound Statements

definition: A statement or proposition has a truth value.

Examples

If we denote our statement as p.

p = "7 is a prime number"

In this case p = true.

q = "The square root of 2 is an integer"

In this case q = false.

r = "Every positive integer except two is the sum of two primes"

e.g.

6 = 3 + 3
10 = 3 + 7

This statement is unknown and is an outstanding question in mathematics.

Non Examples

"Is 187698736 prime?"

This is a question not a statement.

"If n is even"

This is a condition not a statement.


definition: A compound statement is formed by combining multiple statements.

Conjunction

Let $p$ and $q$ be statements. The conjunction of $p$ and $q$ is written:

Truth Table

$p$ $q$ $ p \wedge q $
True True True
True False False
False True False
False False False

Disjunction

Let $p$ and $q$ be statements. The disjunction[^math-inclusive-or] of $p$ and $q$ is written: [^math-inclusive-or]: In mathematics or is always inclusive.

Truth Table

$p$ $q$ $ p \vee q $
True True True
True False True
False True True
False False False

Implication

Let $p$ and $q$ be statements. The implication of $p$ to $q$ is written:

This implies a if p then q relationship.

Truth Table

$p$ $q$ $ p \rightarrow q $
True True True
True False False
False True True
False False True

Implication

$p$ is the hypothesis, $q$ is the conclusion.

  • $p$ is sufficient for $q$
  • $q$ is necessary for $p$

Examples

(9 is odd) $\to$ (cats have fur)

This is true, because nine is odd.


(Fish live on land) $\to$ (10 is prime)

This is false because fish don't live on land.

Bicondition or Double Implication

  • Means $ p \to q $ and $ q \to p $
  • $p$ and $q$ have the same truth value
$p$ $q$ $ p \leftrightarrow q $
True True True
True False False
False True False
False False True

Said as "$p$ if and only if $q$" or "$p$ iff $q$"

Negation

definition: The negation of a statement $p$, written:

$p$ $\rightharpoondown p $
True False
False True

Notation: $\rightharpoondown$ supersedes any other notation. So:

DeMorgan's Laws

Example

$p =$ "John owns a cat"

$q =$ "John owns a dog"

Find:

Solution

We only need to break on one half to negate it.

So $ \rightharpoondown ( p \wedge q ) =$ "John doesn't own a cat or he does not own a dog"

Contrapositive

definition: The contrapositive of $p \to q$ is written:

Example

The contrapositive of "If it rains in the morning I will bring an umbrella" is "If I did not bring an umbrella than it did not rain this morning".

Converse

definition: The converse[^f1] of $p \to q$ is written:

Example

The converse of "If it rains in the morning I will bring an umbrella" is "If I brought an umbrella it was raining this morning"[^f2].

[^f1]: While the contrapositive is is logically equivalent to the statement the converse is not. [^f2]: this is not logically equivalent.

$p$ $q$ $ p \to q $ $ \rightharpoondown q \to \rightharpoondown p $ $ q \to p $
True True True True True
True False False False True
False True True True False
False False True True True

Quantifiers

Universal Quantifier

"For all integers $n$, $2n$ is even".

For all is the quantifier as it quantifies the amount. In this case it is the universal quantifier equivalent to:

  • For all... (duh)
  • For each...
  • For every...
  • $\forall$

Existential Quantifier

definition: The existential quantifier states that this statement applies for some but not all things. It can be written:

  • For some...
  • There exists a...
  • $\exists$

Example

"Some rectangles are squares" can be written "$\exists$ a rectangle $R$, such that $R$ is square"

Example

Write the following in plain english:

Where the universe of $x$ and $y$ is the integers.

Solution

For all integers $x$ there exists a $y$ such that the sum of $x$ and $y$ is zero.

Example

Write the following in plain english:

Where the universe of $x$ and $y$ is the integers.

Solution

This is not true because there not all $x$'s would make zero for any $y$.

Negation of Quantifiers

Example

Prove,

Solution

This becomes,

Which we can prove by example.

Set Notation

$ \in $ denotes that something belongs to a set.

Example