Execution Time of λ-Terms via Denotational Semantics and Intersection Types

نویسندگان

  • DANIEL DE CARVALHO
  • Daniel de Carvalho
چکیده

This paper presents a work whose aim is to obtain information on execution time of λ-terms by semantic means. By execution time, we mean the number of steps in a computational model. As in [Ehrhard and Regnier 2006], the computational model considered in this paper will be Krivine’s machine, a more realistic model than β-reduction. Indeed, Krivine’s machine implements (weak) head linear reduction: in one step, we can do at most one substitution. In this paper, we consider two variants of this machine : the first one (Definition 2.4) computes the head-normal form of any λ-term (if it exists) and the second one (Definition 2.11) computes the normal form of any λ-term (if it exists). The fundamental idea of denotational semantics is that types should be interpreted as the objects of a category C and terms should be interpreted as arrows in C in such a way that if a term t reduces to a term t, then they are interpreted by the same arrow. By the Curry-Howard isomorphism, a simply typed λ-term is a proof in intuitionistic logic and the β-reduction of a λ-term corresponds to the cut-elimination of a proof. Now, the intuitionistic fragment of linear logic [Girard 1987] is a refinement of intuitionistic logic. This means that when we have a categorical structure (C, . . .) for interpreting intuitionistic linear logic, we can derive a category K that is a denotational semantics of intuitionistic logic, and thus a denotational semantics of λ-calculus. Linear logic has various denotational semantics; one of these is the multiset based relational model in the category Rel of sets and relations with the comonad associated to the finite multisets functor (see [Tortora de Falco 2000] for interpretations

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Execution Time of lambda-Terms via Denotational Semantics and Intersection Types

This paper presents a work whose aim is to obtain information on execution time of λ-terms by semantic means. By execution time, we mean the number of steps in a computational model. As in [Ehrhard and Regnier 2006], the computational model considered in this paper will be Krivine’s machine, a more realistic model than β-reduction. Indeed, Krivine’s machine implements (weak) head linear reducti...

متن کامل

Realisability Semantics for Intersection Types and Expansion Variables

Expansion was invented at the end of the 1970s for calculating principal typings for λ-terms in type systems with intersection types. Expansion variables (E-variables) were invented at the end of the 1990s to simplify and help mechanise expansion. Recently, E-variables have been further simplified and generalised to also allow calculating type operators other than just intersection. There has b...

متن کامل

Execution Time of Lambda-Terms via Non Uniform Semantics and Intersection Types

The relational semantics for Linear Logic induces a semantics for the type free Lambda Calculus. This one is built on non-idempotent intersection types. We give a principal typing property for this type system.We then prove that the size of the derivations is closely related to the execution time of lambda-terms in a particular environment machine, Krivine’s machine.

متن کامل

Logical Semantics for Stability

Type assignment systems for λ-calculus based on intersection types are a general framework for building models of λ-calculus (known as filter-models) which are useful tools for reasoning in a finitary way about the denotational intepretation of terms. Indeed the denotation of a term is the set of types derivable for it and a type is a “finite piece” of information on such a denotation. This app...

متن کامل

Intersection Types for Normalization and Verification

One of the basic principles in typed lambda calculi is that typable lambda terms are normalizable. Since the converse direction does not hold for simply typed lambda calculus, people have been studying its extensions. This gave birth to the intersection type systems, that exactly characterize various classes of lambda terms, such as strongly/weakly normalizable terms and solvable ones (see e.g....

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012