Mathematical Background (Notation and terms)
Set notation¶
In the following, let and be sets.
is the empty set
means is in ; and means is not in .
is the set of elements in but not in
is the set of elements in and , and is called the intersection of and
is the set of elements in or , and is called the union of and
means is a subset of , i.e. every element of is an element of
means is a superset of , i.e. every element of is an element of
is the set containing every subset of (including and ), and is called the powerset of . Sometimes, it is denoted by .
For example, when is the set , then the elements of are , , and .
means the set of elements in that satisfies the predicate . This is called the set-builder notation.
For example, if is a set of numbers, then is the set of even numbers in .
Sometimes, : is used in place of . For example,
For a more in-depth and beginner-friendly discussion see Guide to Elements and Subsets.
Theorems and Lemmas¶
Usually, a theorem is an important result that we want to show, and a lemma is a smaller result that is not necessarily interesting by itself, but is useful to bigger results. Often, a theorem is proved by proving a sequence of smaller lemmas. In a way, lemmas are similar to the role of subroutines in programming.
See also CS103 Guide to Proofs and Section 1.3.2 of Introduction to Theoretical Computer Science.