lambda-calculus

Definition

Church Encoding

Church encodings are a way to represent data structures as functions that act on other functions.

Boolean Logic

Note that is the ITE function.

Example

todo

K Combinator

Definition

K Combinator

The K combinator is a combinator used in Church encoding to represent true (boolean value).

Link to original

Numerals

Definition

Church Numeral

Church numerals are a type of Church encoding for natural numbers.

The general form for a Church numeral is:

where is a shorthand for applying repeatedly times.

Link to original

Arithmetic Functions