natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
A function from a set (the domain) to a set (the codomain) is a prescription which takes any element to a unique element . One also says that:
is the value of the function at ,
is a function of ,
and the process of assigning to is also called function application.
For emphasis one sometimes speaks of total functions to distinguish from partial functions which need not be defined for all elements of their domain set .
Famous and historically important examples of functions map specifically between sets of numbers (such as the trigonometric functions, zeta functions, etc.). This specialization of the term goes so far that the term function theory is generally understood to refer specifically to analysis over the real or complex numbers (cf. complex analysis).
Instead of “functions” one also speaks of maps or mappings, but these terms are often understood to refer to functions which respect extra structure, hence which are homomorphisms (for instance continuous maps are functions that respect topological structure). See also further alternative terminology below.
Hence one may say that functions are homomorphisms of plain sets. Indeed, functions are the morphisms in the category Set whose objects are sets. Conversely this means that every morphism between objects in any category may be thought of as a function in a generalized sense.
This generalized use of the word is wide spread (and justified) in type theory, where for and two types, there is a function type denoted such that the judgement means that is a term of function type, hence is a function.
Back in categorical semantics, the function type becomes the internal hom, which in Set is the function set of all functions with given domain and codomain. From this perspective a function is an element of a function set or generally a generalized element of an internal hom-object (exponential object).
The formal definition of a function depends on the foundations chosen.
In material set theory, a function is often defined to be a set of ordered pairs such that for every , there is at most one such that . The domain of is then the set of all for which there exists some such . This definition is not entirely satisfactory since it does not determine the codomain (since not every element of the codomain may be in the image); thus to be completely precise it is better to define a function to be an ordered triple where is the domain and the codomain.
In structural set theory, the role of functions depends on the particular axiomatization chosen. In ETCS, functions are among the undefined things, whereas in SEAR, functions are defined to be particular relations (which in turn are undefined things).
(functions as trees)
Functions of sets may be identified with rooted trees of height 2 by treating the domain as the vertices of height 2, the codomain as the vertices of height 1, and letting every height 2 vertex have a single edge to (have its parent be) the value it is sent to by the function.
This is a special case of the equivalence between rooted trees and presheaves on (see there).
In dependent type theory, a type is a contractible type if it comes with an element and a family of identities indicating that is a center of contraction. A function between types and could be defined as
The first four definitions are interdefinable with each other in dependent type theories with identity types and dependent sum types:
From every family of elements , one could define a span by defining the type to be a copy of , , the family of elements to be since for all elements , the dependent type is contractible and with center of contraction , and the family of elements to be . For every element , the dependent type is always a contractible type.
From every span for which the dependent type is a contractible type for all , one can define a family of elements as for all centers of contraction .
From every family of elements , one could define a multivalued partial function by defining to be and to be . For every element , the dependent type is always a contractible type.
From every multivalued partial function for which the dependent type is a contractible type for all , one could define a family of elements as for all centers of contraction .
From every family of elements , one could define a correspondence by defining to be . For every element , the dependent type is always a contractible type.
From every correspondence for which the dependent type is a contractible type for all , one could define a family of elements as for all centers of contraction .
The second, third, and fourth definitions of a function are interdefinable via the following relations between spans, multivalued partial functions, and correspondences:
From every span one could get a multivalued partial function by defining the type family as and the family of elements as .
From every multivalued partial function one could get a span by defining the type as and the family of elements as .
From every multivalued partial function one could get a correspondence by defining the type family as .
From every correspondence one could get a multivalued partial function by defining the type family as , and the family of elements as
From every span one could get a correspondence by defining the type family as .
From every correspondence one could get a span by defining the type as , the family of elements as , and the function as
The first and fifth definitions are interdefinable by the following
From every family of elements one could get a family of types by where .
From every family of types one could get a family of elements where .
If the dependent type theory has function types, then
From every element of the function type , one could define a family of elements as , where appears in the elimination rules for function types.
From every family of elements , one could define an element of the function type as , where appears in the introduction rules for function types.
In formal category theory, sets are discrete categories, and a function is a functor between sets. The functoriality structure becomes the property that a function preserves equality:
One can also speak of functions between proper classes, although the precise details may vary depending on the status of classes with respect to the formal theory.
In ZFC for example, proper classes are by design not formal objects in the theory; rather they are proxied by a formula in the language (for instance, the class of all sets is proxied by the formula ; intuitively we may think of as consisting of all satisfying that formula). Then functions between classes are again classes given by suitable formulas; see for example the MathOverflow discussion what-are-maps-between-proper-classes. If (as described above for material set theory) one wants to describe a function as an ordered triple , then this too can be accommodated if one defines ordered triples/pairs of classes appropriately; see here for one possibility. Thus functors between categories whose objects and morphisms form proper classes can similarly be described in the language.
Such technical hacks can be avoided by choosing a different foundations. For example, Mac Lane in his Categories for the Working Mathematician assumes ZFC with a universe in which some sets are considered large, such as the set of small sets, so that a category like (the category of small sets) is again a formal object of the theory.
Useful terms, more or less synonymous with function, are assignment, assignation or more specifically assignation on objects. These do not have standard meanings but are useful to signal to readers that the domain of the ‘function’ under consideration is large, or that one is more interested in functorial extensions of this partial assignation (cf. e.g. Richard Garner, Homomorphisms of higher categories, Adv. Math. 224 (2010) 2269-2311 for many examples). In mathematical writing “assignment” is usually synonymous with function or map or “mapping”. For example one might speak of “assigning to each positive number its square root” to refer to the function .
Authors may resort to verb forms such as “assigns” or “associates” or “sends” in informal writing, perhaps to avoid the bother of specifying an axiomatic framework in which a formal notion like “function” is ensconced. For example, according to Wikipedia, Jacobson defines a functor between categories as a “mapping” that “associates” to each object in an object in , etc. No clarity would be gained by making this any more formal (which as we saw in the case of functions between classes, such as classes of objects of categories, may involve annoyingly technical hacks).
Sometimes the word “assignment” is understood more generally as relation, often when authors define a function to be something that “assigns unique values” (for instance here).
Many functions that carry special names map some ring or field like the real numbers or complex numbers to itself:
…
Special properties these may have:
Last revised on June 23, 2024 at 16:02:16. See the history of this page for a list of all contributions to it.