Predicates & Quantifiers
Propositional logic
This forms the basis of simple logical arguments. You may recognise the notation from first year Computation & Logic:
- Negation:
- Conjunction:
- Disjunction:
- Implication:
- Biconditional:
This can often be useful for dealing with a selection of facts and working out their implications. However, these laws do not give us the tautologies that we are looking for in solid mathematical proof.
Predicate logic
This takes propositional logic an important step further by adding:
- Variables:
- Predicates:
- Quantifiers:
Predicates are a generalisation of propositions since they can contain variables which stand for elements from their domain.
A simple example of this in action would be:
is defined by and the domain of is .
In this case, we can see:
- true
- false
Quantifiers
An important part of what makes predicate logic so specific in its arguments is quantifiers. These allow us to specify whether a predicate is true for all , at least one or no in the domain.
The two of these that we use in this course are:
- specifies for all .
- specifies at least one .
Variables that are in the scope of a quantifier are called ‘bound variables’ and those not in the scope are called ‘free variables’.
Rules of inference
Suppose we take an arbitrary proposition ; there are a few truths we can infer from knowing if holds for all, some or none of the domain.
In this case, is an arbitrary element in the domain. If we know holds, we can infer that is true for any value of in the domain.
If we know then that implies , there is a counterexample. Conversely, if we know then that implies .
Suppose we flip this and do not know if holds, that is what we are trying to determine.
In this case, is an arbitery element in the domain. We can infer if we choose a generalised value for , for example to represent odd numbers, and prove .
Proof techniques
All of the above logic can be applied in order to prove mathematical facts from first principles. For example:
(if is odd then is also odd).
This can be shown by framing it as in each of the following ways:
- Direct proof
- Assume is an arbitrary element of the domain
- Assume is true
- Show is true
- Proof by contraposition
- Use equivalence of
- Assume is an arbitrary element of the domain
- Assume is true
- Show is true
- Proof by contradiction
- Assume statement is false
- Show implies both and
- Since is always false this shows must be true
- Proof by cases
- To prove a proposition of the form
- Use the tautology
- If each of these cases are true then the proposition must be true
These kinds of proof questions become much easier if you are familiar with mathematical definitions, such as the definition of an odd number being for some .
Nested quantifiers
There can be multiple quantifiers in a single statement, for example . One quantifier is said to be in the scope of another.
The order they are placed in does have an effect on and can completely change the proposition. Following the example above:
The former statement is saying that for each value of there is a separate value of to match each one, whereas the latter is saying that there is a single value of which remains the same for all values of .