OpenMath Content Dictionary: fns4

Canonical URL:
http://www.openmath.org/cd/fns4.ocd
CD File:
fns4.ocd
CD as XML Encoded OpenMath:
fns4.omcd
Defines:
assign_to, maps_to
Date:
2004-12-20
Version:
2 (Revision 1)
Review Date:
2006-06-01
Status:
experimental

This CD holds further symbols concerning functions. A particularly interesting symbol is

maps_to

which extends the usual lambda binder. Another is

assign_to

which helps to specify (partially) the image of a function on a specific element.


maps_to

Description:

This symbol denotes a binding constructor. The body of the binder should be a list [A1,A2] of length 2. It is used to represent a function assignment A1 -> A2, where the bound variables occur in A1 and possibly in A2. The expressions A1, A2 should represent objects uniquely determined by given values of the bound variables, wihtin the range of definition of the domain.

Example:
The following object defines a function from the unit circle in R^2 assigning the angle the vector from the origin to the point makes with the horizontal axis.
maps_to x , y . ( x 2 - y 2 x 2 + y 2 , 2 x y x 2 + y 2 ) arcsin ( 2 x y x 2 - y 2 )
Signatures:
sts


[Next: assign_to] [Last: assign_to] [Top]

assign_to

Description:

This symbol denotes a function with a even and positive number of arguments. When applied to a_1,b_1,....a_n,b_n, it represents the assignment of b_i to a_i for each index i=1,...,n. It can be used to specify the behaviour of a function f, by giving the images b_i of a_i under f.

Example:
The following object specifies that a permutation on the letters a,...,i is assigned to the permutation (1,2,3).
assign_to ( permutation ( cycle ( 1 , 2 , 3 ) ) , permutation ( cycle ( a , e , b ) , cycle ( c , f , h ) , cycle ( d , g , i ) ) )
Signatures:
sts


[First: maps_to] [Previous: maps_to] [Top]