Internalising modified realisability in constructive type theory

نویسنده

  • Erik Palmgren
چکیده

A modified realisability interpretation of infinitary logic is formalised and proved sound in constructive type theory (CTT). The logic considered subsumes first order logic. The interpretation makes it possible to extract programs with simplified types and to incorporate and reason about them in CTT. 1 Modified realisability Modified realisability interpretation is a well-known method for giving constructive interpretation of some intuitionistic logical system into a simple type structure (Troelstra 1973). The method is used, for instance, in Minlog and Coq for extracting programs from proofs (cf. Schwichtenberg 2004 and Letouzey 2004). These programs are to a large extent free from the computationally irrelevant parts that might be present in programs arising from direct interpretations into constructive type theory. The realisability interpretation requires a separate proof of correctness, which is usually left unformalised. In this note we present a completely formalised modified realisability interpretation carried out in the proof support system Agda (Coquand 2000). We shall here use what is calledmodified realisability with truthwhich has the property that anything realised is also true in the system (Theorem 1.2). One difference from usual interpretations as in Minlog is that the logic interpreted goes beyond first order logic: it is a (constructively) infinitary logic, which arises naturally from the type-theoretic notion of universe. Our extension to infinitary logic seems to be a novel result. Agda is based on Martin-Löf constructive type theory (1972) with an infinite hierarchy of universes #0 = Set, #1 = Type, #2 = Kind, #3, . . . . Each of these

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

ثبت نام

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

منابع مشابه

Program extraction via typed realisability for induction and coinduction

We study a realisability interpretation for interleaved inductive and coinductive definitions and discuss its application to program extraction in constructive analysis. A speciality of this interpretation is that realisers are given by terms that correspond directly to programs in a lazy functional programming language such as Haskell.

متن کامل

Realisability for Induction and Coinduction with Applications to Constructive Analysis

We prove the correctness of a formalised realisability interpretation of extensions of first-order theories by inductive and coinductive definitions in an untyped λ-calculus with fixed-points. We illustrate the use of this interpretation for program extraction by some simple examples in the area of exact real number computation and hint at further non-trivial applications in computable analysis.

متن کامل

Constructive analysis, types and exact real numbers

In the present paper, we will discuss various aspects of computable/constructive analysis, namely semantics, proofs and computations. We will present some of the problems and solutions of exact real arithmetic varying from concrete implementations, representation and algorithms to various models for real computation. We then put these models in a uniform framework using realisability, opening t...

متن کامل

Aspects of predicative algebraic set theory I: Exact completion

Sheaf theory and realisability have been effective methods for constructing models of various constructive and intuitionistic type theories [22, 29, 15]. In particular, toposes constructed using sheaves or realisability provide models for intuitionistic higher order logic (HAH), and it was shown by Freyd, Fourman, Friedman respectively by McCarthy in the 1980s that from these toposes one can co...

متن کامل

A General Formulation of Simultaneous Inductive-Recursive Definitions in Type Theory

The rst example of a simultaneous inductive-recursive deenition in intuitionistic type theory is Martin-LL of's universe a la Tarski. A set U0 of codes for small sets is generated inductively at the same time as a function T0, which maps a code to the corresponding small set, is deened by recursion on the way the elements of U0 are generated. In this paper we argue that there is an underlying g...

متن کامل

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


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

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

ثبت نام

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

عنوان ژورنال:
  • Logical Methods in Computer Science

دوره 1  شماره 

صفحات  -

تاریخ انتشار 2005