Publication View

Church Numerals, Twice! (2007)

Abstract
This pearl explains Church numerals, twice. The first explanation links Church numerals to Peano numerals via the well-known encoding of data types in the polymorphic #-calculus. This view suggests that Church numerals are folds in disguise. The second explanation, which is more elaborate, but also more insightful, derives Church numerals from first principles, that is, from an algebraic specification of addition and multiplication. Additionally, we illustrate the use of the parametricity theorem by proving exponentiation as reverse application correct.

Publication details
Download http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.9.5807
Source http://www.informatik.uni-bonn.de/~ralf/publications/Church.pdf
Contributors CiteSeerX
Repository CiteSeerX - Scientific Literature Digital Library and Search Engine (United States)
Type text
Language English
Relation 10.1.1.41.840, 10.1.1.26.4391, 10.1.1.54.6229, 10.1.1.51.646, 10.1.1.36.4082, 10.1.1.38.8777, 10.1.1.34.1618, 10.1.1.34.4164