This note collects the definitions and conventions used in Tool 01. It states what the symbols mean; the tool is where you test your understanding of them.
Propositions and connectives
A proposition is a statement that is either true (T) or false (F). Compound propositions are built from simpler ones with connectives, each defined by its truth table:
| p | q | ¬p | p∧q | p∨q | p→q | p↔q |
|---|
| T | T | F | T | T | T | T |
| T | F | F | F | T | F | F |
| F | T | T | F | T | T | F |
| F | F | T | F | F | T | T |
Three points deserve attention.
- Or is inclusive. p∨q is true when both p and q are true.
- An implication fails in exactly one case. In p→q, p is the hypothesis and q the conclusion. The implication is false only when the hypothesis is true and the conclusion is false. In particular, p→q is true whenever p is false; it is then said to be vacuously true.
- The biconditional p↔q is true exactly when p and q have the same truth value.
Reading formulas without brackets. ¬ applies first, then ∧, ∨, → and ↔, in that order. So ¬p∧q means (¬p)∧q, and p∧q→r means (p∧q)→r. Implication groups to the right: p→q→r means p→(q→r). When in doubt, use brackets.
Logical equivalence
Two formulas φ and ψ are logically equivalent, written φ≡ψ, if they have the same truth value under every assignment of truth values to their variables. In other words, they agree on every row of their joint truth table. With n variables there are 2n rows.
To show that two formulas are not equivalent, one row is enough: an assignment on which they differ is a counterexample.
Two equivalences are used constantly:
¬(p∧q)≡¬p∨¬q,¬(p∨q)≡¬p∧¬q(De Morgan’s laws)
p→q≡¬q→¬p(the contrapositive)
The converse of p→q is q→p. It is not equivalent to p→q: the row p=F, q=T separates them.
Any other claimed equivalence can be settled with a truth table. Deriving them is the purpose of the first exercise set in the tool.
Negation normal form. A formula is in negation normal form if every ¬ applies directly to a variable, as in ¬p, never to a compound formula, as in ¬(p∧q). Every formula can be rewritten in this form by pushing each ¬ inwards.
Restricted connectives. Each of the sets {¬,∧}, {¬,∨} and {¬,→} is enough to express every connective in the table above. Finding the expressions is the second exercise set in the tool.
Mathematical English
Mathematical writing uses a small number of fixed phrases, each with a precise meaning.
| Phrase | Symbols |
|---|
| if p, then q; q if p; p implies q | p→q |
| p only if q | p→q |
| p is sufficient for q | p→q |
| p is necessary for q | q→p |
| p if and only if q; p is necessary and sufficient for q | p↔q |
| p unless q | ¬q→p, equivalently p∨q |
| neither p nor q | ¬p∧¬q |
| p but q | p∧q |
Two of these cause most mistakes.
- “p only if q” says that p cannot hold without q. It is p→q, not q→p.
- “p unless q” is read inclusively. It asserts p whenever q fails, and says nothing about what happens when q holds.
Quantifiers
∀xP(x) means that P(x) is true for every x in the domain under discussion. ∃xP(x) means that P(x) is true for at least one x.
Bounded quantifiers restrict the range of the variable:
∀x∈AP(x) means ∀x(x∈A→P(x)),∃x∈AP(x) means ∃x(x∈A∧P(x)).
Expressions such as ∀ε>0 and ∃n≥N are read in the same way.
The order of different quantifiers matters. In ∀x∃yP(x,y), the y may depend on x. In ∃y∀xP(x,y), a single y must work for every x. The second statement implies the first, but not conversely. On R, for example, ∀x∃y(y>x) is true, while ∃y∀x(y>x) is false. Adjacent quantifiers of the same kind can be swapped: ∀x∀y means the same as ∀y∀x, and likewise for ∃.
Truth on a finite set. A universal statement is shown false by a single counterexample, and shown true only by checking every element. An existential statement is shown true by a single witness. A universal implication ∀x(P(x)→Q(x)) is vacuously true when no x satisfies P(x).
Negating quantified statements
The two basic rules are
¬∀xP(x)≡∃x¬P(x),¬∃xP(x)≡∀x¬P(x).
Bounds stay as they are. For example, ¬∀x∈AP(x)≡∃x∈A¬P(x). To see why, unpack the bound and use the rule for negating an implication:
¬(p→q)≡p∧¬q.
So ¬∀x(x∈A→P(x))≡∃x¬(x∈A→P(x))≡∃x(x∈A∧¬P(x)).
Negated relations become their complements. For real numbers,
¬(a<b)≡a≥b,¬(a≤b)≡a>b,¬(a=b)≡a=b.
Note that the complement of a strict inequality includes equality.
Recipe. To negate a statement fully, flip each quantifier (∀↔∃) and keep its bound. Then push ¬ inwards until it reaches the innermost claims, and replace each negated claim by its complement.
Example. The function f is bounded on A:
∃M∀x∈A:∣f(x)∣≤M.
Its negation, “f is unbounded on A”, is
∀M∃x∈A:∣f(x)∣>M.
Whatever bound M is proposed, some x∈A has ∣f(x)∣>M.
Practise these rules in Tool 01. Its last two exercise sets negate the definitions of convergence and continuity, and evaluate quantified statements on a finite relation drawn as a graph.