Question: Due Sunday by 1 1 : 5 9 p . m . Points 5 0 Submitting a text entry box or a file upload File
Due Sunday by : pm Points Submitting a text entry box or a file upload File Types pdf Available Jan at pm Jan at : pm
Lambda Calculus
came as saying
Total: Points. This assignment is worth half the marks that the programming assignment through will be worth.
Problem Points Simply the following lambda expressions, if possible. Always evaluate the "outer" applications first ie use lazy evaluation
a False True True
b y
Problem Points Using the definitions of boolean constants and operators presented in class, show that the following evaluates to true. Show all your steps for a perfect mark. Always evaluate the "outer" applications first ie use lazy evaluation but continue to evaluate further until you obtain true.
and true or false not not true
Problem Points Consider a function ite for if then else which takes three arguments: a boolean, an expression to evaluate if the boolean is true, and a second expression to evaluate if the boolean is false.
a Given the lambda expressions for boolean constants and operators presented in class, write the lambda expression for this ite function.
b Write the lambda expression for a function iteite for if then elseif then else which takes five arguments: a boolean, an expression to evaluate if the boolean is true, another boolean, an expression to evaluate if the second boolean is true, and a third expression to evaluate if both booleans are false. You may assume that a correct implementation of function ite from a is available to you, and use it if you like.
Problem Points Computing the exponent of a number ie can take time if done by
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
