TransWikia.com

Lambda calculus simplification excercise

Computer Science Asked by user126373 on January 1, 2021

Below is the lambda expression which I am finding difficult to reduce i.e. I am not able to understand how to go about this problem.

(λx.λy.yx)z (λw.w)
I am lost with this.

if anyone could lead me in the right direction that would be much appreciated

One Answer

It is better to remind ourselves the Lambda calculus precedence rules first. See https://stackoverflow.com/q/4794330/9939883 for better details about precedence.

Application has higher precedence than Abstraction. Application is left associateive and Abstraction is right associative.

(λx.λy.y x) z (λw.w)

Since application has higher precedence,

(λx.λy.(y x)) z (λw.w)

Since application is left associative

= ((λx.λy.(y x)) z) (λw.w)

Applying repeated abstractions

= (λy.(y z)) (λw.w) 

= (λw.w) z

= z

Answered by silversilva on January 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP