From: acondolu Date: Tue, 6 Mar 2018 09:19:12 +0000 (+0100) Subject: Remove Marco Polo files X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fnew_algorithm;p=fireball-separation.git Remove Marco Polo files --- diff --git a/marco polo/statement.bib b/marco polo/statement.bib deleted file mode 100644 index fbe6808..0000000 --- a/marco polo/statement.bib +++ /dev/null @@ -1,128 +0,0 @@ -@article{bohm, - author = "Corrado B{\"o}hm", - title = "Alcune propriet{\`a} delle Forme $\beta\eta$-normali nel - $\lambda${K}-calcolo. ({Italian})", - journal = "Pubblicazioni dell'IAC", - volume = "696:119", - year = "1968" -} - -@article{DBLP:journals/tcs/Huet93, - author = {G{\'{e}}rard P. Huet}, - title = {An Analysis of {B}{\"{o}}hm's theorem}, - journal = {Theor. Comput. Sci.}, - volume = {121}, - number = {1{\&}2}, - pages = {145--167}, - year = {1993}, - url = {https://doi.org/10.1016/0304-3975(93)90087-A}, - doi = {10.1016/0304-3975(93)90087-A}, - timestamp = {Sun, 28 May 2017 13:20:07 +0200}, - biburl = {http://dblp.uni-trier.de/rec/bib/journals/tcs/Huet93}, - bibsource = {dblp computer science bibliography, http://dblp.org} -} - -@phdthesis{morris, - author = {J.-H. Morris}, - title = {Lambda-calculus models of programming languages}, - school = {M.I.T.}, - year = 1968, -} - -@inproceedings{DBLP:conf/lics/Saurin05, - author = {Alexis Saurin}, - title = {Separation with Streams in the $\lambda\mu$-calculus}, - booktitle = {20th {IEEE} Symposium on Logic in Computer Science {(LICS} 2005), - 26-29 June 2005, Chicago, IL, USA, Proceedings}, - pages = {356--365}, - year = {2005}, - crossref = {DBLP:conf/lics/2005}, - url = {https://doi.org/10.1109/LICS.2005.48}, - doi = {10.1109/LICS.2005.48}, - timestamp = {Thu, 25 May 2017 00:42:40 +0200}, - biburl = {http://dblp.uni-trier.de/rec/bib/conf/lics/Saurin05}, - bibsource = {dblp computer science bibliography, http://dblp.org} -} -@proceedings{DBLP:conf/lics/2005, - title = {20th {IEEE} Symposium on Logic in Computer Science {(LICS} 2005), - 26-29 June 2005, Chicago, IL, USA, Proceedings}, - publisher = {{IEEE} Computer Society}, - year = {2005}, - url = {http://ieeexplore.ieee.org/xpl/mostRecentIssue.jsp?punumber=10087}, - isbn = {0-7695-2266-1}, - timestamp = {Fri, 21 Nov 2014 14:08:56 +0100}, - biburl = {http://dblp.uni-trier.de/rec/bib/conf/lics/2005}, - bibsource = {dblp computer science bibliography, http://dblp.org} -} - -@inproceedings{DBLP:conf/cade/Gacek08, - author = {Andrew Gacek}, - title = {The Abella Interactive Theorem Prover ({System} Description)}, - booktitle = {Automated Reasoning, 4th International Joint Conference, {IJCAR} 2008, - Sydney, Australia, August 12-15, 2008, Proceedings}, - pages = {154--161}, - year = {2008}, - crossref = {DBLP:conf/cade/2008}, - url = {https://doi.org/10.1007/978-3-540-71070-7_13}, - doi = {10.1007/978-3-540-71070-7_13}, - timestamp = {Tue, 13 Jun 2017 10:37:55 +0200}, - biburl = {http://dblp.uni-trier.de/rec/bib/conf/cade/Gacek08}, - bibsource = {dblp computer science bibliography, http://dblp.org} -} -@proceedings{DBLP:conf/cade/2008, - editor = {Alessandro Armando and - Peter Baumgartner and - Gilles Dowek}, - title = {Automated Reasoning, 4th International Joint Conference, {IJCAR} 2008, - Sydney, Australia, August 12-15, 2008, Proceedings}, - series = {Lecture Notes in Computer Science}, - volume = {5195}, - publisher = {Springer}, - year = {2008}, - url = {https://doi.org/10.1007/978-3-540-71070-7}, - doi = {10.1007/978-3-540-71070-7}, - isbn = {978-3-540-71069-1}, - timestamp = {Tue, 13 Jun 2017 10:37:55 +0200}, - biburl = {http://dblp.uni-trier.de/rec/bib/conf/cade/2008}, - bibsource = {dblp computer science bibliography, http://dblp.org} -} - -@inproceedings{DBLP:conf/lics/AccattoliC15, - author = {Beniamino Accattoli and - Claudio Sacerdoti Coen}, - title = {On the Relative Usefulness of Fireballs}, - booktitle = {30th Annual {ACM/IEEE} Symposium on Logic in Computer Science, {LICS} - 2015, Kyoto, Japan, July 6-10, 2015}, - pages = {141--155}, - year = {2015}, - crossref = {DBLP:conf/lics/2015}, - url = {https://doi.org/10.1109/LICS.2015.23}, - doi = {10.1109/LICS.2015.23}, - timestamp = {Thu, 15 Jun 2017 21:41:13 +0200}, - biburl = {http://dblp.uni-trier.de/rec/bib/conf/lics/AccattoliC15}, - bibsource = {dblp computer science bibliography, http://dblp.org} -} -@proceedings{DBLP:conf/lics/2015, - title = {30th Annual {ACM/IEEE} Symposium on Logic in Computer Science, {LICS} - 2015, Kyoto, Japan, July 6-10, 2015}, - publisher = {{IEEE} Computer Society}, - year = {2015}, - url = {http://ieeexplore.ieee.org/xpl/mostRecentIssue.jsp?punumber=7174833}, - isbn = {978-1-4799-8875-4}, - timestamp = {Wed, 25 May 2016 10:19:57 +0200}, - biburl = {http://dblp.uni-trier.de/rec/bib/conf/lics/2015}, - bibsource = {dblp computer science bibliography, http://dblp.org} -} - -@article{BOHM1979271, -title = "A discrimination algorithm inside $\lambda$-$\beta$-calculus", -journal = "Theoretical Computer Science", -volume = "8", -number = "3", -pages = "271 - 291", -year = "1979", -note = "", -issn = "0304-3975", -doi = "http://dx.doi.org/10.1016/0304-3975(79)90014-8", -author = "C. B{\"o}hm and M. Dezani-Ciancaglini and P. Peretti and S. Ronchi Della Rocca", -} diff --git a/marco polo/statement.tex b/marco polo/statement.tex deleted file mode 100644 index 2672eb8..0000000 --- a/marco polo/statement.tex +++ /dev/null @@ -1,138 +0,0 @@ -\documentclass[10pt]{article} - -\title{B\"ohm's Theorem in Abella} -\author{Andrea Condoluci} -\date{June 30, 2017} - -\newcommand{\lc}[0]{{$\lambda$-calculus}} -\newcommand{\bohm}[0]{{B\"ohm}} -\newcommand{\TODO}[1]{\textcolor{red}{\textbf{TODO} #1}} -\newcommand{\fire}[0]{$\lambda_{\operatorname{fire}}$} - -\newcommand{\conv}[1]{=_{#1}} -\newcommand{\convb}[0]{\conv{\beta}} -\newcommand{\convbe}[0]{\conv{\beta\eta}} - -\usepackage{xcolor} -\usepackage{amsmath, amsthm, amssymb} -\usepackage{verbatim, hyperref} -\usepackage[normalem]{ulem} -\usepackage{cleveref} - -\theoremstyle{definition} -\newtheorem{theorem}{Theorem} -\newtheorem*{theoren}{Theorem} -\newtheorem{lemma}[theorem]{Lemma} -% \newtheorem{corollary}[theorem]{Corollary} -\newtheorem*{corollary}{Corollary} -\newtheorem*{notation}{Notation} -\newtheorem*{definition}{Definition} -\newtheorem{fact}[theorem]{Fact} - - -\begin{document} - -\maketitle - -Segue una presentazione del progetto di ricerca che effettuerei presso il \textit{Laboratoire d'informatique de l'\'Ecole polytechnique} di Parigi nel gruppo di ricerca \textit{Parsifal} (\url{https://team.inria.fr/parsifal/}), con il supporto economico del programma Marco Polo. - -\begin{abstract} - \bohm's theorem is a celebrated theorem in untyped lambda-calculus, and it states that lambda-terms behave differently if they are syntactically different. The proof of this statement is well-known, and consists of a separation algorithm manipulating the syntax of lambda-terms. The proof assistant Abella (co-developed at LIX, Paris) is particularly suited to handle proofs which manipulate lambda-terms. Formalizing \bohm's theorem in Abella would both challenge Abella's underlying logic, and assist us proving correct a much harder separation algorithm for a different calculus that we are studying. -\end{abstract} - -\section*{Background} - -% \subsubsection*{Lambda Calculus} - \textit{Pure lambda calculus} (which we call \lc) was originally conceived by Alonzo Church, being intended as a general theory of functions which could serve as foundation for mathematics. - Its syntax is based on two basic conceptual operations: $\lambda$-abstraction and application. Since \lc{} can represent computable functions, it is considered an idealized functional programming language, where $\beta$-reduction corresponds to a computational step. - - In the following, we say that $M \convb N$ if $M$ and $N$ are $\alpha\beta$-convertible ($\alpha$ being the renaming of bound variables). $\eta$-conversion allows expansion and contraction of the arguments of functions, and corresponds to function extensionality. A term is in \textit{normal form} when no more $\beta$-reductions are viable. - -\subsubsection*{Separation Theorem} - Among the most important results for \lc{} (like fixpoint, Church-Rosser, and normalization theorems) is the \textit{separation theorem} (also known as \bohm's theorem \cite{bohm}). - - Even though this theorem may seem a basically syntactical property, its importance lays on showing that the syntactical constructions and the reduction rules of \lc{} work well together \cite{DBLP:conf/lics/Saurin05}. In particular, two essential consequences are: - - \begin{enumerate} - \item any non-trivial model of the \lc{} cannot identify $\beta\eta$-different normal forms; - \item normal forms can be explored by the only means of computational rules. - \end{enumerate} - - Intuitively, \bohm's theorem states that when two $\lambda$-terms are syntactically different, then one can put them in the context of a bigger $\lambda$ program such that they reduce to two clearly different terms. By \textit{context} (denoted by $E[\,]$) we mean a $\lambda$-term with a hole ($[\,]$ is the hole), such that $E[M]$ is the $\lambda$-term obtained by replacing in $E[\,]$ the hole $[\,]$ with $M$. - -\begin{theoren}[\bohm{} theorem] - Let $M$, $N$ be $\beta\eta$-distinct $\lambda$-terms in normal form; then there exists a context $E[\,]$ such that: - \[\begin{array}{ll} - E[M] & \convb \operatorname{true} \text{, and}\\ - E[N] & \convb \operatorname{false}, \\ - \end{array}\] - where $\operatorname{true}:=\lambda x\,y.\,x$ and $\operatorname{false}:=\lambda x\,y.\,y$. -\end{theoren} -The proof of this theorem is carried out by induction on so-called \textit{\bohm{} trees} (syntax trees computed from the normal forms), and by means of \textit{\bohm{} transformations}. The technique used in the proof is called ``\bohm-out'', and is a powerful tool that was applied to separation problems in other $\lambda$-theories. - -Let us now make some remarks which will be useful in the last section. - -Firstly, note that an easy consequence of the theorem is the following: - -\begin{corollary} - Let $M$, $N$ be $\beta\eta$-distinct $\lambda$-terms in normal form; then there exists a context $E[\,]$ such that $E[M]$ has a normal form, and $E[N]$ has no normal form. -\end{corollary} - -This last formulation of \bohm's theorem is clearly related to the \textit{observational} or \textit{contextual equivalence} \cite{morris}, which was born at the times of the \bohm's theorem. Two terms are said to be \textit{observationally equivalent} if, when put in the same context, either they both converge to a normal form, or they both diverge. Intuitively, terms are observationally equivalent if they behave in the same way, when ``observed'' from the outside. - -It is now clear that \bohm's theorem actually states that, in the case of terms with a normal form, observational equivalence coincides with $\beta\eta$-convertibility. - -Note that the original proof of \bohm's theorem is \textit{constructive}: it consists of an actual algorithm which, given two $\beta\eta$-distinct $\lambda$-terms, constructs a corresponding discriminating context. Such algorithm was implemented in CAML in \cite{DBLP:journals/tcs/Huet93}, but to my knowledge it was never formalized in a \textit{proof assistant}. -A formalization would not only yield a verified implementation of the algorithm (which is actually a well-known result and beyond doubt), but mainly: -\begin{enumerate} - \item probe the proof assistant in which it will be formalized and push it to its limits (see section Outcome); - \item be a starting point to help us prove correct other separation algorithms which we are currently working on (see section Future Work). -\end{enumerate} -% A formalization would yield a verified implementation (proven to be correct, and to comply with its specification) of the algorithm; in addition, it would add up to the pile of formalized mathematical knowledge, allowing other researchers to build on top of it. - -\subsubsection*{Abella} -The plan is to formalize \bohm's theorem in Abella. \textit{Abella} is an interactive theorem prover based on $\lambda$-tree syntax \cite{DBLP:conf/cade/Gacek08}, and it is intended for reasoning about object languages whose syntactic structure is presented through recursive rules. - -The strength of Abella is how it treats \textit{binding} in object languages: in fact, object-level bindings are represented in Abella using \textit{meta-level abstractions}. This makes the encoding of object languages much more straightforward, since usual notions related to binding (such as $\alpha$-equivalence and capture-avoiding substitutions) are already built into the logic and need not be implemented again at the specification level. - -To reason over $\lambda$-tree syntax, Abella uses the $\nabla$ (\textit{nabla}) quantifier, which allows one to move binders from the object-logic to the meta-logic. $\nabla$-bound variables are instantiated with \textit{nominal constants}, and indeed the intuition is that the formula $\nabla x.\,F$ holds iff $F$ holds for whatever $x$, but in a ``generic'' way. - -As a matter of fact, Abella has been used effectively to formalize proofs in which objects with bindings must be manipulated in a fundamental way: for example, some results in \lc{} (subject reduction, uniqueness of typing, normalizability \`a la Tait) and proof theory (cut-admissibility). - -\section*{Outcome} - -As a consequence of Abella's successful handling of binding, and of the syntactic nature of \bohm's theorem, Abella may be particularly well-suited to host its formalization. But this is not completely straightforward: let's see one possible obstacle. One $\nabla$ quantifier handles one binder at the object level, but $\lambda$-terms in strong normal form in \fire{} have the form $\lambda x_1\ldots x_n.\,x_j\,f_1\ldots f_m$ ($f$'s are fireballs), where the normal form begins with $n$ $\lambda$-abstractions. In order to handle iterated binders, it would seem natural for $\nabla$ to quantify over ``vectors'' of variables, but this is not possible at the moment. In the light of this and other technical complications, the formalization of \bohm's theorem won't be trivial, and will hopefully shed some light on possible drawbacks/improvements in Abella's logic; this is also the reason why the hosting research group at LIX, Paris is interested in this project. - -\section*{Future work} - As we noted, the computer formalization of \bohm{}'s theorem would be a convenient result on its own - sake; nevertheless, it poses a solid starting point to provide formal proofs of similar separation results in other $\lambda$-theories and other $\lambda$-calculi. %, for example in extensions of \lc, or according to different evaluation strategies. - - For example, the problem of separating $\lambda$-terms popped up inevitably while working with Claudio Sacerdoti Coen and Beniamino Accattoli on the observational equality of the \textit{fireball calculus} \fire{} \cite{DBLP:conf/lics/AccattoliC15}. Our goal there is to provide a suitable notion of \textit{bisimulation} in order to characterize syntactically the equivalence of programs (i.e. contextual equivalence). - - \subsubsection*{The Fireball Calculus} - - \fire{} is an \textit{open} call-by-value \lc{}. Recall that \textit{call-by-value} is an evaluation strategy for the \lc{} in which - intuitively - functions' arguments are evaluated before the function call. \fire{} is similar to Plotkin's call-by-value \lc{}, which is at the foundation of programming languages (OCaml) and proof assistants (Coq), but \fire{} (as a \textit{weak calculus}, when reductions occur only outside abstractions) is particularly elegant because: - \begin{itemize} - \item it is \textit{strongly confluent}; - \item normal forms have a clean syntactic description as \textit{fireballs}: a fireball is either an abstractions (like values in Plotkin), or a variable possibly applied to other fireballs. - \end{itemize} - - Strong evaluation may be obtained as usual by iterating the weak one under abstractions. But, mainly because fireballs are not closed under substitutions, the strong calculus has some issues: - \begin{itemize} - \item it is \textit{not} confluent; - \item contextual equivalence is not closed under reduction. - % a term and its strong normal form may not be contextual equivalent (in the usual sense). - For example: \[(\lambda y.\,z) \, (x\, x) \to_{\beta} z ,\] but in a context replacing the free variable $x$ with $\lambda x.\, x\, x$, the term on the left diverges, and the one on the right converges. - - \end{itemize} - - Therefore, it is not easy to give a syntactic characterization of contextually equivalent terms. We are working on a separation algorithm which departs non-trivially from \bohm's theorem and other separation algorithms \cite{BOHM1979271}, and it would be the first (working) separation algorithm in call-by-value. After a couple of months of trial and errors, we now understand quite well the problem, and we are done with designing the separation algorithm. It still remains to prove termination, which seems a difficult task. - In fact, while the \bohm-out technique is ``completely described in less than a page of ML code'' \cite{DBLP:journals/tcs/Huet93}, our algorithm (as of now) consists of more than one-thousand lines of OCaml code; additionally, our procedure relies on the careful repetition of basic trasformations in a certain order, that when altered brings easily to looping and non-termination. Proving termination for such a long algorithm \textit{on paper} is a long and error-prone job, which would profit the support of a proof assistant. - - The formalization of \bohm's theorem would hence be the first step in formalizing our own separation algorithm, and facilitate us proving that the algorithm terminates and is indeed correct. - - -\bibliographystyle{plain} -\bibliography{statement} - -\end{document}