请输入您要查询的字词:

 

单词 ExplicitFormForCurrying
释义

explicit form for currying


In lambda calculusMathworldPlanetmath, we may express Currying functions and their inversesPlanetmathPlanetmathPlanetmathPlanetmathexplicitly using lambda expressions. Suppose that f is a functionof two arguments. Then, if c2 is the currying function which mapsof two arguments to higher order functions, we have, by definition,

f(x,y)=((c2(f))(x))(y).

We then have

c2(f)=λv(λuf(u,v)),

hence

c2=λw(λv(λuw(u,v))).

Likewise, from the original equation, we see that

c2-1=λw(λab(w(x))(y)).

We can write similar expressions for any number of arguments:

c3=λw(λc(λb(λaw(a,b,c))))
c4=λw(λd(λc(λb(λaw(a,b,c,d)))))
c5=λw(λe(λd(λc(λb(λaw(a,b,c,d)))))),

etc.

Their inverses look as follows:

c3-1=λw(λabc((w(a))(b))(c))
c4-1=λw(λabcd(((w(a))(b))(c))(d))
c4-1=λw(λabcde((((w(a))(b))(c))(d))(e))
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/5 5:58:32