haskell-study-startup icon indicating copy to clipboard operation
haskell-study-startup copied to clipboard

Update lambda-calculus-bonus-exercises-answers.md

Open skilgal opened this issue 6 years ago • 3 comments

Fix the typo on task 4

skilgal avatar Oct 18 '19 12:10 skilgal

There is indeed an error, but not where you've fixed it :) Here's the correct fix:

IMG_0240

k-bx avatar Oct 18 '19 13:10 k-bx

Actually I can't see the difference.

My substitution is [y -> y1] and your's [y -> w] . but the other part looks the same. There is some difference in the braces, but according to the CR..smth that it shouldn't make the difference.

λw1. (λz. (λc. y)z)w <=> λy1. ((λz. (λc. y)z)y1)

for me, it looks like λx. x y <=> λx. (x y)

Correct me if I'm wrong

skilgal avatar Oct 18 '19 20:10 skilgal

Okay, maybe found what you meant. The lambda transformation should be done as first since on my second line we get a collision

skilgal avatar Oct 18 '19 20:10 skilgal