Solutions in F#

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Solutions in F#

Post by answerhappygod »

Solutions in F#
Solutions In F 1
Solutions In F 1 (87.85 KiB) Viewed 57 times
Solutions In F 2
Solutions In F 2 (15.37 KiB) Viewed 57 times
1. Normalize the following lambda-calculus terms, giving all of the reduction steps you make. Make sure you avoid variable capture. You may use any evaluation strategy you wish, and you may rename bound variables (but not free variables). (i) (^f. (1x. f(fx))) (\y. y) z (ii) (^g.g 2) (Az.z) z (iii) (Ah.h (Ak.kz)) (Ay. yy) z

(* ANSWER 1 HERE: (i) (\f. (\x. f (f x))) (\y. y) z (ii) (\g. g z) (\z. z) z ( (iii) (\h. h (lk. k z)) (\y. yy) z *)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply