Question: 4 Sums Task 4 . 1 ( 1 5 points ) . Add sums ( and their intro and elim forms ) to our treatment
Sums
Task points
Add sums and their intro and elim forms to our treatment of evaluation contexts:
Define the additional syntactic forms for evaluation contexts for contexts involving inl, inr and case.
Define the additional rules for the judgment : You should have one new rule for each new evaluation context you defined above.
Prove the additional cases for Lemma from class, for the rules you defined above.
Recall Lemma : If : and : then :
Task points
Add sums and their intro and elim forms to our treatment of control stacks:
Define the additional syntactic forms for stack frames involving inl, inr and case.
Define the additional step rules eg S 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 as well as some that start with states
of the form
Define the additional typing rules eg F for the stack frames you defined in part
Note: no need to prove anything
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
