Berkeley CSUA MOTD:Entry 23125
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

2001/11/28-29 [Uncategorized] UID:23125 Activity:nil
11/27   How the heck do you derive the successor function and addition?
        succ n = lambda f.lambda s.f (n f s)
        add n1 n2 = n1 succ n2
        mult n1 n2 = n1 (add n2) 0
        Okay succ is defined as the number of f that will be applied to s,
        so I guess I kind of understand it. But I don't understand add/mult