Equivalence-Preserving Compilation

نویسندگان

  • Amal Ahmed
  • Matthias Blume
چکیده

Language-based security relies on the assumption that all potential attacks are bound by the rules of the language in question. When programs are compiled into a different language, this is true only if the translation process preserves observational equivalence. We investigate the problem of fully abstract compilation, i.e., compilation that both preserves and reflects observational equivalence. We give a fully abstract CPS-transformation for the polymorphic λ-calculus with existential and recursive types, and also prove typed closure conversion to be fully abstract. The CPStransformation differs from the standard account in that it does not use a global answer type. Our proofs use operational techniques in the form of a stepindexed logical relation and the construction of certain wrapper terms that “back-translate” from target values to source values. The approach is more general than previous work on fully abstract CPS-conversion since it is not restricted to a simply-typed setting but applies to a language with polymorphic and existential types. Moreover, we rely entirely on parametricity and do not require additional type system features such as linearity to be present in the target language. We are not aware of any previous results on fully abstract closure conversion.

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

ثبت نام

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

منابع مشابه

On Compilation of Higher-Order Concurrent Programs into First Order Programs Preserving Scope Equivalence

This paper discusses the expressive power of a graph rewriting model of concurrent processes with higherorder communication. As we reported before, it is difficult to represent the scopes of names using models based on process algebra. Then we presented a model of concurrent systems based on graph rewriting. The model makes it possible to represent the scopes of names precisely. We defined an e...

متن کامل

A Formal Model of Real-Time Program Compilation

Program compilation can be formally defined as a sequence of equivalence-preserving transformations, or refinements, from highlevel language programs to assembler code. Recent models also incorporate timing properties, but the resulting formalisms are prohibitively complex. Here we take advantage of a new, simple model of real-time refinement to present a straightforward formalism for compilati...

متن کامل

Some Observations on Dirac Measure-Preserving Transformations and their Results

Dirac measure is an important measure in many related branches to mathematics. The current paper characterizes measure-preserving transformations between two Dirac measure spaces or a Dirac measure space and a probability measure space. Also, it studies isomorphic Dirac measure spaces, equivalence Dirac measure algebras, and conjugate of Dirac measure spaces. The equivalence classes of a Dirac ...

متن کامل

Knowledge Compilation Using Theory Prime Implicates

In this paper, we are mainly concerned with logical compilations of propositional knowledge bases. We propose a new approach to equivalence-preserving knowledge compilation based on a generalization of the standard notion of prime implicate, the theory prime implicates. Our approach consists in taking advantage of tractable theories implied by the knowledge base to make local by computing the t...

متن کامل

Compilation of propositional weighted bases

In this paper, we investigate the extent to which knowledge compilation can be used to improve inference from propositional weighted bases. We present a general notion of compilation of a weighted base that is parametrized by any equivalence–preserving compilation function. Both negative and positive results are presented. On the one hand, complexity results are identified, showing that the inf...

متن کامل

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


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

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

دوره   شماره 

صفحات  -

تاریخ انتشار 2007