AOS1 Topic 1: Logic and Proof
1. Propositional Logic
Propositional logic deals with statements that can be true or false, using logical operators.
Propositional logic deals with propositions or statements that can be either true or false. These propositions are represented by variables such as \(P\), \(Q\), \(R\), etc., and logical operators are used to combine or manipulate these propositions to form compound statements.
Propositional Logic and Logical Operators
Propositional logic deals with propositions or statements that can be either true or false. Logical operators are used to form compound statements.
Logical Operators:
- AND (\(\land\)): Represents conjunction, where both statements must be true for the compound statement to be true.
- OR (\(\lor\)): Represents disjunction, where at least one of the statements must be true for the compound statement to be true.
- NOT (\(\lnot\)): Represents negation, where the statement is reversed (true becomes false, false becomes true).
- IMPLICATION (\(\rightarrow\)): Represents implication, where \(P \rightarrow Q\) is true unless \(P\) is true and \(Q\) is false.
- BICONDITIONAL (\(\leftrightarrow\)): Represents biconditional or equivalence, where \(P \leftrightarrow Q\) is true if both \(P\) and \(Q\) have the same truth value.
Example: Let \(P\) be "It is raining" and \(Q\) be "I will take an umbrella."
\[ P \land Q \text{ (AND)} \]
\[ P \lor Q \text{ (OR)} \]
\[ \lnot P \text{ (NOT)} \]
\[ P \rightarrow Q \text{ (IMPLICATION)} \]
\[ P \leftrightarrow Q \text{ (BICONDITIONAL)} \]
These logical operators are fundamental in constructing compound statements and analyzing their truth values.
Types of Propositional Logic:
- Conjunction (AND): denoted by \(\land\), represents the conjunction of two propositions where both must be true for the compound statement to be true.
- Disjunction (OR): denoted by \(\lor\), represents the disjunction of two propositions where at least one must be true for the compound statement to be true.
- Negation (NOT): denoted by \(\lnot\), represents the negation or opposite of a proposition.
- Implication (IF-THEN): denoted by \(\rightarrow\), represents the implication where one proposition implies another.
- Biconditional (IF AND ONLY IF): denoted by \(\leftrightarrow\), represents the biconditional or equivalence between two propositions.
These types of propositional logic are fundamental in constructing logical statements and reasoning about their truth values based on the truth values of their components.
2. Predicate Logic
Predicate logic extends propositional logic with variables, predicates, and quantifiers.
Example: For all real numbers \(x\), if \(x\) is positive, then \(x^2\) is positive: \(\forall x \in \mathbb{R}, \, (x > 0 \rightarrow x^2 > 0)\).
3. Inductive Logic
Inductive logic involves reasoning from specific instances to general conclusions, often used in mathematical induction.
Example (Mathematical Induction): Prove that \(\sum_{i=1}^n i = \frac{n(n+1)}{2}\) for all natural numbers \(n\).
4. Deductive Logic
Deductive logic derives conclusions from general principles, commonly used in formal proofs.
What is Proof?
A mathematical proof is an argument that confirms the truth of a mathematical statement. It shows that a list of stated assumptions will guarantee a conclusion.
For example, consider the following simple claim involving even and odd numbers.
Assumption | Conclusion |
---|---|
If m and n are odd integers | then m + n is an even integer |
Proof:
Assume that both \( m \) and \( n \) are odd integers. Then \( m = 2a + 1 \) and \( n = 2b + 1 \), for integers \( a \) and \( b \).
Therefore,
\[ m + n = (2a + 1) + (2b + 1) \] \[ = 2a + 2b + 2 \] \[ = 2(a + b + 1) \] \[ = 2k \]
where \( k = a + b + 1 \) is an integer. Hence \( m + n \) is even.
Proof Techniques
Divisibility
Let \( a \) and \( b \) be integers. Then we say that \( a \) is divisible by \( b \) if there exists an integer \( k \) such that \( a = kb \). In this case, we also say that \( b \) is a divisor of \( a \).
Note: Alternatively, we can say that \( a \) is a multiple of \( b \) and that \( b \) is a factor of \( a \).
For example:
- 12 is divisible by 3, since \( 12 = 4 \times 3 \)
- \(-6\) is divisible by 2, since \( -6 = -3 \times 2 \)
- 0 is divisible by any integer \( n \), since \( 0 = 0 \times n \).
On the other hand, the integer 14 is not divisible by 3. In this case, the best we can write is
14 = 4 × 3 + 2
We say that 14 leaves a remainder of 2 when divided by 3. More generally, we have the following important result.
Euclidean Division
If \( a \) and \( b \) are integers with \( b \neq 0 \), then there are unique integers \( q \) and \( r \) such that
$$ a = qb + r $$
where \( 0 \leq r < |b| \)
Note: Here \( q \) is the quotient and \( r \) is the remainder when \( a \) is divided by \( b \).
Conditional Statements and Direct Proof
The statement proved in Example 1 can be broken down into two parts:
Statement: If \( n \) is an integer then \( n^3 - n \) is divisible by 3.
This is an example of a conditional statement and has the form:
Statement: If \( P \) is true then \( Q \) is true.
This can be abbreviated as \( P \Rightarrow Q \), which is read as ‘\( P \) implies \( Q \)’. We call \( P \) the hypothesis and \( Q \) the conclusion.
To give a direct proof of a conditional statement \( P \Rightarrow Q \), we assume that the hypothesis \( P \) is true, and then show that the conclusion \( Q \) follows.
The negation of a statement
To negate a statement \( P \) we write its very opposite, which we call ‘not \( P \)’. Negation turns a true statement into a false statement, and a false statement into a true statement.
Statement: The sum of any two odd numbers is even. (true)
Negation: There are two odd numbers whose sum is odd. (false)
Negating statements that involve ‘and’ and ‘or’ requires the use of De Morgan’s laws.
De Morgan’s laws
- not (P and Q) is the same as (not P) or (not Q)
- not (P or Q) is the same as (not P) and (not Q)
For example, we can use the second law to negate the following statement about integers \( a \) and \( b \):
Statement: \( a \) is odd or \( b \) is odd
Negation: \( a \) is even and \( b \) is even
Note: When negating a statement involving variables, it helps to know the set that each variable takes its value from. For example, if we know that \( a \) is an integer, then the negation of ‘\( a \) is odd’ is ‘\( a \) is even’.
Proof by Contrapositive:
Consider this statement about an integer \( n \):
Statement: If \( n^2 + 2n \) is odd, then \( n \) is odd.
By switching the hypothesis and the conclusion and negating both, we obtain the contrapositive statement:
Contrapositive: If \( n \) is even, then \( n^2 + 2n \) is even.
Note that a conditional statement and its contrapositive are always logically equivalent:
- If the original statement is true, then the contrapositive is true.
- If the original statement is false, then the contrapositive is false.
This means that to prove a conditional statement, we can instead prove its contrapositive. This is helpful, as it is often easier to prove the contrapositive than the original statement.
- The contrapositive of \( P \Rightarrow Q \) is the statement \( \neg Q \Rightarrow \neg P \).
- To prove \( P \Rightarrow Q \), we can prove the contrapositive instead.
Proof by Contradiction:
The basic outline of a proof by contradiction is:
Proof by Induction:
A proof by induction of \( P(n) \), a mathematical statement involving a value \( n \), involves these main steps:
The combination of these steps shows that \( P(n) \) is true for all values of \( n \).
The converse of a conditional statement:
Consider this statement about integers \( m \) and \( n \):
Statement: If \( m \) and \( n \) are odd then \( m + n \) is even. (true)
By switching the hypothesis and the conclusion, we obtain the converse statement:
Converse: If \( m + n \) is even then \( m \) and \( n \) are odd. (false)
The converse of a true statement may not be true. When we switch the hypothesis and the conclusion of a conditional statement, \( P \Rightarrow Q \), we obtain the converse statement, \( Q \Rightarrow P \).
Equivalent statements:
Now consider the following two statements about a particular triangle:
P: The triangle has three equal sides.
Q: The triangle has three equal angles.
Both \( P \Rightarrow Q \) and its converse \( Q \Rightarrow P \) are true statements. In this case, we say that \( P \) and \( Q \) are equivalent statements. We write \( P \Leftrightarrow Q \).
We can also say that \( P \) is true if and only if \( Q \) is true. So in the above example, we can say that a triangle has three equal sides if and only if it has three equal angles.
To prove that two statements \( P \) and \( Q \) are equivalent, you have to prove two things: \( P \Rightarrow Q \) and \( Q \Rightarrow P \).
Example 1
Example 2
Example 3
Example 4
Example 5
Example 6
a. Let \( n \) be an integer. Statement: If \( n^2 \) is divisible by 2, then \( n \) is divisible by 2.
Write the converse statement and show that it is true.
b. Let \( S \) be a quadrilateral. Statement: If \( S \) is a square, then \( S \) has equal diagonals.
Write the converse statement and show that it is not true.
Example 7
Example 8
Example 9
- Case 1: \( x \geq -3 \). Then \( |x + 3| = x + 3 \), so we have \( |x + 3| - x = x + 3 - x = 3 > 2 \), so the proposition holds.
Example 10
\[ \begin{align*} (k + 1)^3 + 2(k + 1) & = k^3 + 3k^2 + 3k + 1 + 2k + 2 & \text{by expanding the brackets} \\ & = k^3 + 2k + 3(k^2 + k + 1) & \text{by rearranging the formula} \\ & = 3m + 3(k^2 + k + 1) & \text{by the induction hypothesis} \\ & = 3(m + k^2 + k + 1) & \text{since both parts of the formula have a common factor of 3}. \end{align*} \]