# 001 - /————————-———-—-——Eﬁ J...

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: /————————-———-—-——Eﬁ / J 1 , Problem 1:- Is there any environment 8 and type T such that S t x x : T? If so, give the 8 and T and show a typing derivation for 8 t x x : T. If not, prove it. Solution:- Here xx is an application. Let x = 7tZ.T, which is of type 291". xx => (MZ:Z).T) (l(Z:z).T) J Here we cannot reduce this application because the argument of type 29T is different from type 2. So, there will not be any environment 8 and type T such that xx is of type T. Problem 2.:- Find an environment 8 under which the term f x y has type Boo]. Can you give a simple description of the set of all such environments? / An environmmt 8 in which x and y is of type B001 and f is a function of type Bool -) B001 9 Bool. Example functions set:- {AND, OR, NOR, NAND, XOR“ 41? SJ mpg-371 m}md€7 . ”2/ ...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern