Slide 48
Slide 48 text
実行例
• テストケース (特に reduction-steps) 参照
• 05-eta-identity-1, 06-eta-identity-2, 08-eta-identity-3
• η 変換
• λx. (λy. (λz. z) y) x や λx y z. x y z 等
• 09-ski-one-plus-two, 10-three-plus-four
• SKI コンビネータと Church 数で 3+4 を計算
• let 式と let* 式の脱糖のテストでもある
• let* S=(λx y z. x z (y z)), K=(λx y.
x), I=(λx. x), B=(S (K S) K), succ=(S
B), add=(S I (K succ)), two=(succ I),
three=(succ two), four=(two two) in add
three four など
42