Login
This is a place holder for potential sponsor logos.
Church integer
A Church integer is a representation of integers as functions, invented by Alonzo Church. An integer $N$ is represented as a higher-order function, which applies a given function to a given expression $N$ times.
For example, in the programming language Haskell, a function that returns a particular Church integer might be
The transformation from a Church integer to an integer might be
unchurch n = n (+1) 0
Thus we can generate the integers-the (+1) function would be applied to an initial value of $0$ $n$ times, yielding the ordinary integer $n$ .
Church integer is owned by Cam McLeman, Logan Hanks.
None.
[ View all 3 ]
