The Representational Adequacy of Hybrid
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
A Mechanised Proof of G\" Odel's Incompleteness Theorems Using Nominal Isabelle
A Mechanised Proof of G¨odel’s Incompleteness Theorems using Nominal Isabelle Lawrence C. Paulson Abstract An Isabelle/HOL formalisation of G¨odel’s two incompleteness theorems is presented. The work follows Swierczkowski’s´ detailed proof of the theorems using hereditarily finite (HF) set theory [32]. Avoiding the usual arithmetical encodings of syntax eliminates the necessity to formalise elementary number theory within an embedded logical calculus. The Isabelle formalisation uses two separate treatments of variable binding: the nominal package [34] is shown to scale to a development of this complexity, while de Bruijn indices [3] turn out to be ideal for coding syntax. Critical details of the Isabelle proof are described, in particular gaps and errors found in the literature. 1 Introduction This paper describes mechanised proofs of G¨odel’s incompleteness theorems [8], including the first mechanised proof of the second incompleteness theorem. Very informally, these results can be stated as follows: Theorem 1 (First Incompleteness Theorem) If L is a consistent theory capable of formalising a sufficient amount of elementary mathematics, then there is a sentence δ such that neither δ nor ¬δ is a theorem of L, and moreover, δ is true.1 Theorem 2 (Second Incompleteness Theorem) If L is as above and Con(L) is a sentence stating that L is consistent, then Con(L) is not a theorem of L. Both of these will be presented formally below. Let us start to examine what these theorems actually assert. They concern a consistent formal system, say L, based on first-order logic with some additional axioms: G¨odel chose Peano arith- metic (PA) [7], but hereditarily finite (HF) set theory is an alternative [32], used here. -
Verified Programs with Binders Martin Clochard, Claude Marché, Andrei Paskevich
Verified Programs with Binders Martin Clochard, Claude Marché, Andrei Paskevich To cite this version: Martin Clochard, Claude Marché, Andrei Paskevich. Verified Programs with Binders. Programming Languages meets Program Verification, Jan 2014, San Diego, United States. hal-00913431 HAL Id: hal-00913431 https://hal.inria.fr/hal-00913431 Submitted on 3 Dec 2013 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Verified Programs with Binders ∗ Martin Clochard1,2,3 Claude Marche´2,3 Andrei Paskevich3,2 1ENS Paris, 2Inria Saclay – Ile-de-France,ˆ 3LRI (CNRS & Universite´ Paris-Sud), France Abstract for programming datatypes with binders in a systematic way, so as Programs that treat datatypes with binders, such as theorem provers to avoid classical traps such as variable capture (see [24, 25] for or higher-order compilers, are regularly used for mission-critical an overview). On the other hand, there are also several approaches purposes, and must be both reliable and performant. Formally prov- proposed for reasoning about datatypes with binders (e.g. de Bruijn ing such programs using as much automation as possible is highly indices, locally nameless, nominal or nested representations), typ- desirable. -
Canonical Hybridlf: Extending Hybrid with Dependent Types
LSFA 2015 Canonical HybridLF: Extending Hybrid with Dependent Types Roy L. Crole ([email protected]) & Amy Furniss ([email protected]) Dept of Computer Science, University of Leicester, University Road, Leicester, LE1 7RH, U.K. Abstract We introduce Canonical HybridLF (CHLF), a metalogic for proving properties of deductive systems, im- plemented in Isabelle HOL. CHLF is closely related to two other metalogics. The first is the Edinburgh Logical Framework (LF) by Harper, Honsell and Plotkin. The second is the Hybrid system developed by Ambler, Crole and Momigliano which provides a Higher-Order Abstract Syntax (HOAS) based on un-typed lambda calculus. Historically there are two problems with HOAS: its incompatibility with inductive types and the presence of exotic terms. Hybrid provides a partial solution to these problems whereby HOAS functions that include bound variables in the metalogic are automatically converted to a machine-friendly de Bruijn representation hidden from the user. The key innovation of CHLF is the replacement of the un-typed lambda calculus with a dependently-typed lambda calculus in the style of LF. CHLF allows signatures containing constants representing the judgements and syntax of an object logic, together with proofs of metatheorems about its judgements, to be entered using a HOAS interface. Proofs that metatheorems defined in the signature are valid are created using the M2 metalogic of Schurmann and Pfenning. We make a number of advances over existing versions of Hybrid: we now have the utility of dependent types; the unitary bound variable capability of Hybrid is now potentially finitary; a type system performs the role of Hybrid well-formedness predicates; and the old method of indicating errors using special elements of core datatypes is replaced with a more streamlined one that uses the Isabelle option type. -
Verified Programs with Binders Martin Clochard, Claude Marché, Andrei Paskevich
Verified Programs with Binders Martin Clochard, Claude Marché, Andrei Paskevich To cite this version: Martin Clochard, Claude Marché, Andrei Paskevich. Verified Programs with Binders. Programming Languages meets Program Verification, Jan 2014, San Diego, United States. hal-00913431 HAL Id: hal-00913431 https://hal.inria.fr/hal-00913431 Submitted on 3 Dec 2013 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Verified Programs with Binders ∗ Martin Clochard1,2,3 Claude Marche´2,3 Andrei Paskevich3,2 1ENS Paris, 2Inria Saclay – Ile-de-France,ˆ 3LRI (CNRS & Universite´ Paris-Sud), France Abstract for programming datatypes with binders in a systematic way, so as Programs that treat datatypes with binders, such as theorem provers to avoid classical traps such as variable capture (see [24, 25] for or higher-order compilers, are regularly used for mission-critical an overview). On the other hand, there are also several approaches purposes, and must be both reliable and performant. Formally prov- proposed for reasoning about datatypes with binders (e.g. de Bruijn ing such programs using as much automation as possible is highly indices, locally nameless, nominal or nested representations), typ- desirable.