Question: Answer the question below, related to function eval1 What is the order of calls to TmApp within eval1? How values are distinguished from non-values? and

 Answer the question below, related to function eval1 What is the

Answer the question below, related to function eval1 What is the order of calls to TmApp within eval1? How values are distinguished from non-values? and What is the role of contexts? let rec evall ctx t match t with TmApp (fi,TmAbs(-,x, t12),v2) when i sval ctx v2 termSubstTop v2 t12 I TrnApp (fi,v1 ,t2) when i sval ctx v1 let t2' = eva11 ctx t2 in TmApp (fi, vl, t2') TmApp(fi,tl,t2) et t'eval1 ctx tl in TmApp (fi, tl', t2) raise NoRuleApplies Answer the question below, related to function eval1 What is the order of calls to TmApp within eval1? How values are distinguished from non-values? and What is the role of contexts? let rec evall ctx t match t with TmApp (fi,TmAbs(-,x, t12),v2) when i sval ctx v2 termSubstTop v2 t12 I TrnApp (fi,v1 ,t2) when i sval ctx v1 let t2' = eva11 ctx t2 in TmApp (fi, vl, t2') TmApp(fi,tl,t2) et t'eval1 ctx tl in TmApp (fi, tl', t2) raise NoRuleApplies

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!