Skip to content

Instantly share code, notes, and snippets.

@myuon
Created August 16, 2012 12:42
Show Gist options
  • Save myuon/3369859 to your computer and use it in GitHub Desktop.
Save myuon/3369859 to your computer and use it in GitHub Desktop.
SKIコンビネータ
inc := \nfx.f(nfx)
inc
= \xyz.y(xyz)
= \xyz.(Ky z)(xy z)
= \xyz.S(Ky)(xy)z
= \xy.S(Ky)(xy)
= \xy.((KSy)(Ky))(xy)
= \xy.(S(KS)Ky)(xy)
= \xy.S(S(KS)K)xy
= S(S(KS)K)
add := \mnfx.mf(nfx)
add
= \xyzw.xz(yzw)
= \xyzw.(K(xz)w)(yzw)
= \xyzw.S(K xz)(yz)w
= \xyz.S(K xz)(yz)
= \xyz.(KSz)(Kx z)(yz)
= \xyz.(S(KS)(Kx)z)(yz)
= \xyz.S(S(KS)(Kx))yz
= \x.S(S(KS)(Kx))
= \x.S((K(S(KS))x)(Kx))
= \x.S(S(K(S(KS)))Kx)
= \x.(KSx)(S(K(S(KS)))Kx)
= \x.S(KS)((S(K(S(KS)))K))x
= S(KS)(S(K(S(KS)))K)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment