Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(i) What is the order of calls to TmApp within evall? (ii) How values are distinguished from non-values? (iii) What is the role of contexts?
(i) What is the order of calls to TmApp within evall? (ii) How values are distinguished from non-values? (iii) What is the role of contexts? let rec eval 1 ctx t = match t with TmApp (fi, TmAbs C,x,t12), v2) when isval ctx v2 - termSubstTop v2 t12 | TmApp (fi,v1,t2) when isval ctx vl let t2' -evall ctx t2 in TmApp (fi, vl, t2') TmApp (fi,t1,t2) - let tl' - eval1 ctx tl in TmApp (fi, tl', t2) raise NoRuleApplies (i) What is the order of calls to TmApp within evall? (ii) How values are distinguished from non-values? (iii) What is the role of contexts? let rec eval 1 ctx t = match t with TmApp (fi, TmAbs C,x,t12), v2) when isval ctx v2 - termSubstTop v2 t12 | TmApp (fi,v1,t2) when isval ctx vl let t2' -evall ctx t2 in TmApp (fi, vl, t2') TmApp (fi,t1,t2) - let tl' - eval1 ctx tl in TmApp (fi, tl', t2) raise NoRuleApplies
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started