Cartesian product

The set of all ordered pairs from two sets.
Cartesian product

A Cartesian product of sets AA and BB is the set

A×B={(a,b):aA and bB}, A\times B=\{(a,b) : a\in A \text{ and } b\in B\},

where (a,b)(a,b) is an .

Cartesian products provide the ambient sets in which live: a relation from AA to BB is a of A×BA\times B.

Examples:

  • If A={0,1}A=\{0,1\} and B={a,b}B=\{a,b\}, then A×B={(0,a),(0,b),(1,a),(1,b)}A\times B=\{(0,a),(0,b),(1,a),(1,b)\}.
  • N×N\mathbb{N}\times\mathbb{N} is the set of all ordered pairs of natural numbers.