Zum Inhalt springen

Relationen: Grundlagen

Geordnete Paare, das kartesische Produkt und was eine Relation ist.

In einem Satz: Eine Relation legt fest, welche Paare von Dingen zusammengehören.

Für A={1,2}A = \{1, 2\} und B={x,y}B = \{x, y\} gilt

A×B={(1,x), (1,y), (2,x), (2,y)}.A \times B = \{(1,x),\ (1,y),\ (2,x),\ (2,y)\} .

Das sind 2⋅2=42 \cdot 2 = 4 Paare. Das Paar (1,x)(1, x) ist etwas anderes als (x,1)(x, 1), das nicht einmal in A×BA \times B liegt.

Auf A={1,2,3}A = \{1, 2, 3\} sei a R ba \,R\, b definiert durch a<ba < b. Dann ist

R={(1,2), (1,3), (2,3)}.R = \{(1,2),\ (1,3),\ (2,3)\} .

Die Relation enthält drei Paare. Man kann sie auch als Tabelle darstellen, in der ein Kreuz bedeutet, dass das Paar in RR liegt:

a\ba \backslash b 1 2 3
1 × ×
2 ×
3

Eine Relation auf AA ist eine Teilmenge von A×AA \times A. Also sind die Relationen auf AA genau die Elemente der Potenzmenge P(A×A)\mathcal{P}(A \times A). Hat AA genau nn Elemente, dann hat A×AA \times A genau n2n^2 Elemente, und es gibt

2 n22^{\,n^2}

verschiedene Relationen auf AA. Für n=2n = 2 sind das 24=162^4 = 16, für n=3n = 3 schon 29=5122^9 = 512. Warum 2k2^k Teilmengen entstehen, steht im Artikel Potenzmengen.