This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Function application" – news ·newspapers ·books ·scholar ·JSTOR(February 2024) (Learn how and when to remove this message) |
Inmathematics,function application is the act of applying afunction to an argument from itsdomain so as to obtain the corresponding value from itsrange.[1] In this sense, function application can be thought of as the opposite of functionabstraction.
Function application is usually depicted by juxtaposing the variable representing the function with its argument encompassed inparentheses. For example, the following expression represents the application of the functionƒ to its argumentx.
In some instances, a different notation is used where the parentheses aren't required, and function application can be expressed just byjuxtaposition. For example, the following expression can be considered the same as the previous one:
The latter notation is especially useful in combination with thecurrying isomorphism. Given a function, its application is represented as by the former notation and (or with the argument written with the less common angle brackets) by the latter. However, functions in curried form can be represented by juxtaposing their arguments:, rather than. This relies on function application beingleft-associative.
U+2061 FUNCTION APPLICATION (⁡, ⁡) — a contiguity operator indicating application of a function; that is an invisible zero width character intended to distinguish concatenation meaning function application from concatenation meaning multiplication.
Inaxiomatic set theory, especiallyZermelo–Fraenkel set theory, a function is often defined as arelation () having the property that, for anythere is a unique such that.
One is usually not content to write "" to specify that, and usually wishes for the more common function notation "", thus function application, or more specifically, the notation "", is defined by anaxiom schema. Given any function with a givendomain andcodomain:[2][3]
Stating "For all in and in, is equal toif and only if there is a unique in such that is in and is in". The notation here being defined is a newfunctional predicate from the underlying logic, where each y is aterm in x.[4] Since, as a functional predicate, must map every object in the language, objects not in the specified domain are chosen to map to an arbitrary object, suct as theempty set.[5]
Function application can be defined as anoperator, calledapply or, by the following definition:
The operator may also be denoted by abacktick (`).
If the operator is understood to be oflow precedence andright-associative, the application operator can be used to cut down on the number of parentheses needed in an expression. For example;
can be rewritten as:
However, this is perhaps more clearly expressed by usingfunction composition instead:
or even:
if one considers to be aconstant function returning.
Function application in thelambda calculus is expressed byβ-reduction.
TheCurry–Howard correspondence relates function application to the logical rule ofmodus ponens.
{{cite book}}
:ISBN / Date incompatibility (help)![]() | Thismathematical analysis–related article is astub. You can help Wikipedia byexpanding it. |