{"author_url":"https://blog.hatena.ne.jp/zehnpaard/","author_name":"zehnpaard","blog_url":"https://zehnpaard.hatenablog.com/","provider_url":"https://hatena.blog","version":"1.0","height":"190","blog_title":"Arantium Maestum","width":"100%","published":"2022-10-11 21:09:01","image_url":null,"title":"\u7c21\u5358\u306a\u578b\u30b7\u30b9\u30c6\u30e0\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304f\uff18\u3000STLC+...+Variant+Fix","type":"rich","categories":["OCaml","\u578b\u7406\u8ad6","\u8a00\u8a9e\u51e6\u7406\u7cfb"],"url":"https://zehnpaard.hatenablog.com/entry/2022/10/11/210901","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2022%2F10%2F11%2F210901\" title=\"\u7c21\u5358\u306a\u578b\u30b7\u30b9\u30c6\u30e0\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304f\uff18\u3000STLC+...+Variant+Fix - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u518d\u5e30\u95a2\u6570\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u4e0d\u52d5\u70b9\u30aa\u30da\u30ec\u30fc\u30bfFix\u3092\u8ffd\u52a0\u3059\u308b\u3002\u578b\u306e\u306a\u3044\u30e9\u30e0\u30c0\u8a08\u7b97\u3060\u3068\u666e\u901a\u306e\u30e9\u30e0\u30c0\u62bd\u8c61\u3068\u3057\u3066\u5b9a\u7fa9\u3067\u304d\u308b\u306e\u3060\u304c\u3001STLC\u3067\u306f\u578b\u3092\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u7d44\u307f\u8fbc\u307f\u306e\u30aa\u30da\u30ec\u30fc\u30bf\u3068\u3057\u3066\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002 TaPL\u304b\u3089\u306e\u4f8b\u3092\u53d6\u308b\u3068\uff1a ff = lambda ie : (Nat -> Bool). lambda x : Nat. if iszero x then true else if iszero (pred x) then false else ie (pred (pred x)) is_even = fix ff \u3068\u3044\u3046\u3088\u3046\u306a\u4f7f\u3044\u65b9\u306b\u306a\u308b\u3002ie\u3068\u3044\u3046\u306e\u306fis_even\u306e\u7565\u3067\u2026"}