For your convenience, here are again the math concepts and notations from the paper.

Set theory

A set is a collection of distinct objects. For example, a set of people , animals or numbers N={1,5,7,12}. Sets are usually denoted by a capital letter and their elements listed between curly brackets. They can also be visualized as circles.

Basis sets

Sets can contain an infinite number of objects, e.g. all positive odd numbers .

Set membership

When we want to write that an object is (or is not) part of a set , we use set membership notation:

Set membership

Subset and superset

Often, we want to express things like ‘the set of mammals is part of the set of all animals ’. We then use subset notation: or . The latter means that is smaller than .

Subset

Vice versa, we can express that ‘the set of all things on earth contains all animals ’ using superset notation: or . The latter means that is bigger than .

Superset

Intersection, union and difference

Let’s look at what more we can do with two sets. For example, take the set of your friends and my friends.

Set example

Who are our common friends? We use set intersection:

Set intersection

Who do we know together? We use set union:

Set union

Who do I know that you do not know? We use set difference:

Set difference

Set builder

A more advanced way to denote sets, is to define a set using set builder notation. This allows us to define (build) a new set given other set(s). A set builder consists of two parts, a variable and a logical predicate:

Let’s look at an example and build a set of all mammals from $A$. We explain logical predicates below, for now lets use verbal language:

You can read this as ‘ contains all ’s with the property that and is a mammal’.

Set builder

Cardinal product

Set builder notation is useful to filter objects from a single set, but becomes very potent when building from multiple sets. For example:

Cardinal product

Read this as ‘ contains all pairs of and with the property that is a person and is an animal’. Pairs are denoted in brackets. You can think of containing all possible combinations of person-animal pairs. For example, these are all the options you have when trying to guess what the favorite animals are of your friends.

Many other set builders are possible too, but this specific ‘pair builder’ is called the cardinal product of two sets. It is used often enough that it has its own special symbol: .

Special sets

Finally, there are some special sets which we often use that have their own symbols:

Functions

Building on set theory, we can define functions. Functions are relations that map all objects from one set (the domain) to exactly one object from another set (the codomain). We define functions with the following notation, here is the name of the function:

Let’s make this more concrete:

You can read this as ‘ is a function that maps persons to an integer’.

Function

We sometimes omit the exact specification of the function when it is clear what it would be. For example, here it could be a list of numbers representing how much you (dis)like the person, based on your social interactions with that person.

Advanced functions

We can also give functions more complex domains by using set theory. What would a function that captures how much two persons like each other look like?

The cardinal product denotes all pairs of persons and maps pairs to an integer.

Advanced function

Sum and product

We can now define summation and product. These functions iterate over members in a set and return a summary value.

Summation takes all ’s from , applies to each and adds all values:

Product takes $\prod$ all $x$’s from , applies to each and multiplies all values:

Logic

Predicates can be thought of as a special type of function that returns a Boolean value true ( or ) or false ( or ). Predicates can be thought of as asking or claiming whether or not a statement is true or false.

For example, is bigger than ? Is a mammal and small? Is Emily your friend? Or, is bigger than , is a mammal and small, and Emily is my friend.

Let’s introduce some formal notation to express these statements:

Sometimes we want to say something about all objects in a set. We can use quantifier predicates to do this. For example, are all animals in the set mammals? We use the universal quantifier:

You can read this as `does it hold for all objects in that is a mammal?’ We implicitly introduced a function with if is a mammal or otherwise.

Another type of question we can ask is, for example, is there someone I know that I like? We use the existential quantifier:

Which we can read as `does there exist a person in the set of my friends for which I like them ?’