Aha, I think I may have fixed my reduction problem with https://patpatpat.xyz/da...

@pat@patpatpat.xyz

Aha, I think I may have fixed my reduction problem with https://patpatpat.xyz/data/lambda/

It was getting stuck when attempting to use the Y combinator. In particular, you can derive the R combinator as a fixed-point using Y, which should still satisfy R A B 0 = A and R A B n = B n-1 (R A B n-1)

Before it was recursively reducing every sub-term until each one reached normal form, but now only the top term is reduced until normal form

Not quite sure why this worked (perhaps I was assuming something about how child reductions affect the parent?), but it seems to work with my primitive.lambda file (which implements primitive recursive functions in lambda calculus)