“I believe there is one true soul mate for every person.”
“He must be very busy.”
—Scott Adams, Dilbert
Once we start talking about proofs in Predicate Logic, we’ll see that
there’s often a close correspondence between the structure of formulas
and the structure of their proofs. It is therefore important to be able
to read an English-language (mathematical) statement and understand what
sort of formula it corresponds to, since that tells us how to approach a
proof of that statement.
Especially when it comes to predicate logic, we can’t always rely on
the sentence to have obvious keywords like “if…then…“. Similarly,
quantifiers are often left implicit.
The following examples show this in action:
Example
-
Definition: S⊆T if every element of S is an element of
T.
Translation:
∀S ∀T (S⊆T⟷∀x(x∈S → x∈T))
-
Definition: Two sets are disjoint if they have no element in
common
Translation:
∀S ∀T (disjoint(S,T)⟷¬∃x(x∈S ∧ x∈T))
or:
⟷∀x(x∈S ∨ x∈T)) where x∈S means ¬(x∈S).
-
The union of two nonempty sets is nonempty.
Translation:
∀S ∀T ((∃x x∈S)∧(∃y y∈S) → (∃z z∈S∪T))
Example
-
Definition: A function f is idempotent if
f(x)=f(f(x)).
Translation:
∀f (idempotent(f)⟷∀x (f(x)=f(f(x))))
-
Definition: y is a fixed point of f if f(y)=y.
Translation:
∀f ∀y (fp(f,y)⟷f(y)=y)
-
(Notation: Rng(f) is the range of f, the set
of possible outputs.)
(Notation:
Fix(f) is the set of fixed points of f.)
Theorem: Every idempotent function has a range equal to its fixed
points.
Translation:
∀f (idempotent(f)→Rng(f)=Fix(f))
Example
-
Set S is empty (contains no elements).
Translation:
¬∃x x∈S
or
∀x x∈S
(where x∈S means ¬(x∈S).)
-
Set S has at least one element.
Translation:
∃x x∈S
i.e., there exists something that is an element in S.
-
Set S has exactly one element.
Translation:
∃x (x∈S∧¬∃y (y∈S∧x=y))
(where x=y means ¬(x=y)), i.e.,
there is one element x in S and no element in S is different from x.
Or,
∃x (x∈S∧∀y (y∈S→y=x))
i.e., there is an element is S such that every element in S is equal to it.
-
Set S has at least two elements.
Translation:
∃x ∃y (x∈S∧y∈S∧x=y)
-
Set S has exactly two elements.
Translation:
∃x ∃y (x∈S∧y∈S∧x=y∧∀z (z∈S→z=x∨z=y))
i.e., there are two elements x and y in S that are different from each other, and every element
in S is either x or y.