Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use both normal order reduction and applicative order reduction to reduce the following lambda expressions. Reach a normal form representation if possible. (10 %) a)

Use both normal order reduction and applicative order reduction to reduce the following lambda expressions. Reach a normal form representation if possible. (10 %)


a) (λb . b 8) (λx . (add x 5))


b) (λa . (λb z . z b) a) p (λa . a)


c) (λx . x x x) (λx . x x x)


d) (λx . λy . (add x ((λx . (sub x 4)) y))) 8 9


e) (λc . c (λx . λb . b)) ((λx . λb . λf . f x b) p q)

Step by Step Solution

3.43 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

Normal order reduction a Ab b 8 Ax add x 5 Ab ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Engineering Mathematics

Authors: ERWIN KREYSZIG

9th Edition

0471488852, 978-0471488859

More Books

Students also viewed these Mathematics questions

Question

Would another approach to the decision have worked better?

Answered: 1 week ago