Question: 4 Sums Task 4 . 1 ( 1 5 points ) . Add sums ( and their intro and elim forms ) to our treatment

4 Sums
Task 4.1(15 points).
Add sums (and their intro and elim forms) to our treatment of evaluation contexts:
1. Define the additional syntactic forms for evaluation contexts E for contexts involving inl, inr and case.
2. Define the additional rules for the judgment E:'. You should have one new rule for each new evaluation context you defined above.
3. Prove the additional cases for Lemma 1 from class, for the rules you defined above.
Recall Lemma 1: If E:' and *|-e: then *|-E[e]:'.
Task 4.2(15 points).
Add sums (and their intro and elim forms) to our treatment of control stacks:
1. Define the additional syntactic forms for stack frames f involving inl, inr and case.
2. Define the additional step rules (e.g., S-1) for inl, inr and case. Use the rules we defined so far as a guide. You need rules that start with states of the form ke as well as some that start with states
of the form kv.
3. Define the additional typing rules (e.g., F-1) for the stack frames you defined in part 1.
Note: no need to prove anything
4 Sums Task 4 . 1 ( 1 5 points ) . Add sums ( and

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 Accounting Questions!