Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NOTE3- Problem 2 [12pt] Consider the simply typed -calculus and its typing rules defined in Note 3, Suppose we want to add a new operation

image text in transcribed

NOTE3-

image text in transcribedimage text in transcribedimage text in transcribed

Problem 2 [12pt] Consider the simply typed -calculus and its typing rules defined in Note 3, Suppose we want to add a new operation , which performs the xor" operation on two booleans. We can define the syntax of this new language as follows: terms where the dots represents the terms defined in note 3. The syntax of types remains unchanged a) (4pt) Follow the notations in Note 3, write down a typing rule (call it TXor) for the new term el C2. b) (8pt) What is the type of the terrn ((Az : bool. (z (true Afalse))) true) ? Justify your answer by writing down the proof tree for this term. Problem 2 [12pt] Consider the simply typed -calculus and its typing rules defined in Note 3, Suppose we want to add a new operation , which performs the xor" operation on two booleans. We can define the syntax of this new language as follows: terms where the dots represents the terms defined in note 3. The syntax of types remains unchanged a) (4pt) Follow the notations in Note 3, write down a typing rule (call it TXor) for the new term el C2. b) (8pt) What is the type of the terrn ((Az : bool. (z (true Afalse))) true) ? Justify your answer by writing down the proof tree for this term

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: 3

blur-text-image

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago