In mathematics, a cardinal function (or cardinal invariant) is a function that returns cardinal numbers.