cartesian product

Cartesian product

The cartesian product of two sets and , denoted by , is the set of all possible ordered pairss where and :


e.g.: and , then

The cartesian product is not commutative:

Taking the cartesian product of mutiple sets:

The cardinality of the cartesian product is the product of the cardinalities of the individual sets:

So the cartesian product of a set with the empty set is the empty set:

Link to original

Relation

are sets, is a relation between and .
In words: A relation is a subset of all possible ordered pairs of elements from two sets.

Binary relation

binary relation on .
(or ) is a binary relation on (a subset of the cartesian product).
(common notation)

Illustrating relations

EXAMPLE

,

Binary relations can be represented as a graph


Properties of relations

Reflexive

… every element is related to itself … .

Link to original

Symmetric relation

Link to original

Antisymmetric

… if two elements are related both ways, they are the same element.
E.g.: (which is not symmetric, e.g. but not , and different from asymmetric, which is the opposite of symmetric ).

Link to original

Transitive

Link to original

Partial order (Halbordnung)

The relation is a partial order on if it is: reflexive, antisymmetric, transitive.

Link to original

Total/linear order (Totalordnung)

Additional to being a partial order, if a relation is total, i.e. , then any two elements are comparable – the hasse-diagram always looks like a chain).

Link to original

equivalence relation

Equivalence relation

is an equivalence relation on if it is:

  • reflexive, i.e. (every element is related to itself … a = a)
  • symmetric, i.e.
  • transitive, i.e.

The relationship in this example is not an equivalence relation (3 would need a self-loop and 1,3 would need to be connected symmetrically).

Equivalence class

Let be an equivalence relation on . The set

is the equivalence class of , i.e. all elements related to via .

“Die von erzeugte Equivalenzklasse”.

congruence classes are a special case of equivalence classes.

Equivalence Relations ↔ Partitions

Every equivalence relation induces a partition and every partition induces an equivalence relation:

Equivalence Relation → Partition:
Given equivalence relation on , the equivalence classes form a partition. Properties of ensure partition properties: reflexivity means blocks are non-empty (), symmetry and transitivity ensure blocks are disjoint ( or ), and together they guarantee blocks cover ().

Partition → Equivalence Relation:
Given partition of , define . Partition properties ensure equivalence relation properties: non-empty blocks give reflexivity, disjoint blocks give symmetry, and covering gives transitivity.

Like sorting items into boxes: Each item goes in exactly one box (partition), and two items are related if they’re in the same box (equivalence relation).

Link to original

Link to original

Circular transclusion detected: general/partial-order

Circular transclusion detected: general/linear-order

EXAMPLE

Let → total order
Let → partial order (not reflexive: )

Let → partial order (e.g. )

, → partial order, total order if , since the empty set is comparable to the set with one element. But if there are two elements, we can put both into a set with a single element and then the two sets are not comparable.

→ partial order (the set of all relations between two sets is partially ordered by inclusion)
can be written as a pair .

hasse-diagram

Hasse-Diagram

A hasse diagram is like a relation graph for partial orders, so we omit the reflexive edges for simplicty. Every edge signifies a relation.
There is a hierarchy: Lower elements are subsets of the upper ones, so we can omit the arrows.
Every set connected via multiple relations could be made in a single step (transitive), but we also omit those arrows.

… a partial order.

= power set = All possible subsets of

It’s not a total order since for example and are incomparable (neither is a subset of the other).
For , we mirror the diagram along the horizontal axis.

Circular transclusion detected: general/linear-order

Link to original

(Grundmenge , Relation auf der Menge ),

Chain: is a chain if is a linear order.

In words: A chain is a subset with linear order. The superset does not need to be a linear order.

Maximal element: is a maximal element if is not a chain.

In other words: We cannot add any more elements to without breaking the chain property.

is a non-maximal chain.

It is a chain since for every two elements, one is a subset of the other.
It is not maximal since we can add for example to the chain and it would still be a chain.

is a maximal chain.

Any power of two is a multiple of any other multiple of two i.e the divisibility relation is true.
But we cannot add any other natural number, since we would have a prime factor 2.

Minimum: is a minimum of if

We write it as
What the minimum is depends on the relation. For , the minimum is the smallest number, for it is the smallest set, for it is the smallest divisor which divides all elements of … which doesn’t have to exist.

There is no smallest element in the set of integers.

Well-ordered set (for linear orders)

is well-ordered if every non-empty subset has a minimum.

EXAMPLE

→ not well-ordered

→ well-ordered.

Finite total orders are always well-ordered, since every non-empty subset has a minimum.

→ not well-ordered because there is always an even smaller number.

Transclude of transfinite-induction