Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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