Answered step by step
Verified Expert Solution
Link Copied!

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?

image text in transcribed

(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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions