combinators-js icon indicating copy to clipboard operation
combinators-js copied to clipboard

S K definition of Y combinator

Open benji6 opened this issue 8 years ago • 4 comments

Y is the only included combinator that isn't defined and tested in terms of S and K. Help wanted!

benji6 avatar Oct 29 '15 16:10 benji6

Presumably the problem here is that the naive approach overflows the stack because of eager evaluation?

Too hard for me I think...

richardTowers avatar Oct 29 '15 21:10 richardTowers

Well the main problem is I cribbed all the S K derivations from http://www.angelfire.com/tx4/cus/combinator/birds.html but the Y definition has 11 left brackets and 10 right brackets and I can't work out what it's supposed to be...

I have quite a few definitions of Y in terms of other combinators including BML, SLL, UU and LO(LO), but my runtime just throws too much recursion errors with these.

So I'm stuck and don't know enough about this stuff!

benji6 avatar Oct 30 '15 00:10 benji6

S(S)(K)(S(K(S(S)((S(S(S)(K))))))(K)) http://tromp.github.io/cl/LC.pdf

benji6 avatar Dec 18 '15 17:12 benji6

richardTowers avatar Dec 18 '15 17:12 richardTowers