vizlamb icon indicating copy to clipboard operation
vizlamb copied to clipboard

add PRED example

Open brycec opened this issue 8 years ago • 0 comments

add the predecessor function (n-1) as an example.

PRED := λn.λf.λx.n (λg.λh.h (g f)) (λu.x) (λu.u)

de brujin notation: ###(((3 ##(1 (2 4))) #2) #1)

example of (PRED 4): (###(((3 ##(1 (2 4))) #2) #1) ##(2 (2 (2 (2 1)))))

brycec avatar Dec 11 '17 12:12 brycec