Functions
Let and be sets and be a predicate depending on and such that there is exactly one for which is true. A function defined by maps any input to an output
is the domain and is the codomain of the function
If is a function with domain and codomain and the image of under is the subset of elements in that were mapped from
If the inverse image of under is the subset of elements in which map to by
The term range is sometimes used for the codomain but more often means the image
Two functions with the same domain and codomain and are equal if and only if
Let and be two functions such that the codomain of is the same set as the domain of The composition of the two functions and is the function whose output is the output of when its input is the output of given an input
If the codomain of does not match the domain of the composition is undefined.
A function is injective or “one-to-one” if distinct elements of its domain map to distinct elements of its codomain
A function is surjective or “onto” if every element of its codomain is the image of at least one element of its domain
A function is bijective or invertible if it is both injective and surjective.
Two sets and have equal cardinality if and only if there exists a bijection that is, a function pairing every element of with exactly one element of and vice versa.
Let denote the natural numbers. A set has cardinality if and only if it has equal cardinality with has elements if and only if it has cardinality
A set is finite if and only if it has cardinality Otherwise, the set is infinite.
A set is countably infinite if and only if it has equal cardinality with the natural numbers A set is countable if it is finite or countably infinite, and uncountable if it is not countable.