Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Prove the highlighted If and Only If using structural induction on t THEOREM (SEQUENCING IS A DERIVED FORM): Write A (E for external lan- guage)

image text in transcribed

Prove the highlighted "If and Only If" using structural induction on t

THEOREM (SEQUENCING IS A DERIVED FORM): Write A (E for external lan- guage) for the simply typed lambda-calculus with the Unit type, the se- quencing construct, and the rules E-SEQ, E-SEQNEXT, and T-SEO, and A' ("I" for internal language) for the simply typed lambda-calculus with Unit only. Let e ele - ll be the elaboration function that translates from the ex- ternal to the internal language by replacing every occurrence of t;t2 with (Ax:Unit.tz) t, where x is chosen fresh in each case. Now, for each term t of AF, we have .t-Et' iff e(t) - e(t') .I Et: Tiffre(t): T where the evaluation and typing relations of AF and I are annotated with E and I, respectively, to show which is which. THEOREM (SEQUENCING IS A DERIVED FORM): Write A (E for external lan- guage) for the simply typed lambda-calculus with the Unit type, the se- quencing construct, and the rules E-SEQ, E-SEQNEXT, and T-SEO, and A' ("I" for internal language) for the simply typed lambda-calculus with Unit only. Let e ele - ll be the elaboration function that translates from the ex- ternal to the internal language by replacing every occurrence of t;t2 with (Ax:Unit.tz) t, where x is chosen fresh in each case. Now, for each term t of AF, we have .t-Et' iff e(t) - e(t') .I Et: Tiffre(t): T where the evaluation and typing relations of AF and I are annotated with E and I, respectively, to show which is which

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Financial Accounting

Authors: David Spiceland

6th Edition

9781260786521

Students also viewed these Accounting questions