Domain
Let be a function.
Definition. The domain of is the set . We write .
Every element has exactly one value . The function is undefined outside .
Proposition. Two functions with the same domain, codomain, and rule ( for all ) are equal. Two functions with the same rule but different domains are distinct.
Definition. The codomain of is the set . The image (or range) of is .
Proposition. , with equality iff is surjective.
In set theory, a function is a subset satisfying the unique-value condition: for each , there is exactly one with .
In category theory, the domain (also called source) of a morphism is the object .