Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Function application

From Wikipedia, the free encyclopedia
Concept in mathematics
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.

Representation

[edit]

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.

f(x){\displaystyle f(x)}

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:

fx{\displaystyle f\;x}

The latter notation is especially useful in combination with thecurrying isomorphism. Given a functionf:(X×Y)Z{\displaystyle f:(X\times Y)\to Z}, its application is represented asf(x,y){\displaystyle f(x,y)} by the former notation andf(x,y){\displaystyle f\;(x,y)} (orfx,y{\displaystyle f\;\langle x,y\rangle } with the argumentx,yX×Y{\displaystyle \langle x,y\rangle \in X\times Y} written with the less common angle brackets) by the latter. However, functions in curried formf:X(YZ){\displaystyle f:X\to (Y\to Z)} can be represented by juxtaposing their arguments:fxy{\displaystyle f\;x\;y}, rather thanf(x)(y){\displaystyle f(x)(y)}. 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.

Set theory

[edit]

Inaxiomatic set theory, especiallyZermelo–Fraenkel set theory, a functionf:XY{\displaystyle f:X\mapsto Y} is often defined as arelation (fX×Y{\displaystyle f\subseteq X\times Y}) having the property that, for anyxX{\displaystyle x\in X}there is a uniqueyY{\displaystyle y\in Y} such that(x,y)f{\displaystyle (x,y)\in f}.

One is usually not content to write "(x,y)f{\displaystyle (x,y)\in f}" to specify thaty{\displaystyle y}, and usually wishes for the more common function notation "f(x)=y{\displaystyle f(x)=y}", thus function application, or more specifically, the notation "f(x){\displaystyle f(x)}", is defined by anaxiom schema. Given any functionf{\displaystyle f} with a givendomainX{\displaystyle X} andcodomainY{\displaystyle Y}:[2][3]

xX,yY(f(x)=y{\displaystyle \forall x\in X,\forall y\in Y(f(x)=y\iff }!zY((x,z)f)(x,y)f){\displaystyle \exists !z\in Y((x,z)\in f)\,\land \,(x,y)\in f)}

Stating "For allx{\displaystyle x} inX{\displaystyle X} andy{\displaystyle y} inY{\displaystyle Y},f(x){\displaystyle f(x)} is equal toy{\displaystyle y}if and only if there is a uniquez{\displaystyle z} inY{\displaystyle Y} such that(x,z){\displaystyle (x,z)} is inf{\displaystyle f} and(x,y){\displaystyle (x,y)} is inf{\displaystyle f}". The notationf(x){\displaystyle f(x)} here being defined is a newfunctional predicate from the underlying logic, where each y is aterm in x.[4] Sincef{\displaystyle f}, 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]

As an operator

[edit]
Main article:Apply

Function application can be defined as anoperator, calledapply or${\displaystyle \$}, by the following definition:

f$x=f(x){\displaystyle f\mathop {\,\$\,} x=f(x)}

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;

f(g(h(j(x)))){\displaystyle f(g(h(j(x))))}

can be rewritten as:

f$g$h$j$x{\displaystyle f\mathop {\,\$\,} g\mathop {\,\$\,} h\mathop {\,\$\,} j\mathop {\,\$\,} x}

However, this is perhaps more clearly expressed by usingfunction composition instead:

(fghj)(x){\displaystyle (f\circ g\circ h\circ j)(x)}

or even:

(fghjx)(){\displaystyle (f\circ g\circ h\circ j\circ x)()}

if one considersx{\displaystyle x} to be aconstant function returningx{\displaystyle x}.

Other instances

[edit]

Function application in thelambda calculus is expressed byβ-reduction.

TheCurry–Howard correspondence relates function application to the logical rule ofmodus ponens.

See also

[edit]

References

[edit]
  1. ^Alama, Jesse; Korbmacher, Johannes (2023),"The Lambda Calculus", in Zalta, Edward N.; Nodelman, Uri (eds.),The Stanford Encyclopedia of Philosophy (Winter 2023 ed.), Metaphysics Research Lab, Stanford University, retrieved2024-02-29
  2. ^Suppes, Patrick (1972).Axiomatic set theory. Internet Archive. New York, Dover Publications. p. 87.ISBN 978-0-486-61630-8.
  3. ^Mendelson, Elliott (1964).Introduction to mathematical logic. Internet Archive. Princeton, N.J., Van Nostrand. p. 82.ISBN 978-0-442-05300-0.{{cite book}}:ISBN / Date incompatibility (help)
  4. ^Lévy, Azriel (1979).Basic set theory. Berlin; New York: Springer-Verlag. p. 27.ISBN 978-0-387-08417-6.
  5. ^Lévy, Azriel (1979).Basic set theory. Berlin; New York: Springer-Verlag. p. 15.ISBN 978-0-387-08417-6.


Stub icon

Thismathematical analysis–related article is astub. You can help Wikipedia byexpanding it.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Function_application&oldid=1287720128"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp