Abstract

Sharing graphs are the structures introduced by Lamping for the implementation of optimal reductions of lambda-calculus. Gonthier's reformulation of Lamping's technique inside Geometry of Interaction and Asperti and Laneve's work on Interaction Systems have shown that sharing graphs implement a wide class of calculi. We give a semantical characterization of sharing graphs independent of the calculus to be implemented. By means of an algebraic interpretation of sharing graphs, we define a subclass of them, the so-called proper sharing graphs, on which the usual notion of graph unfolding gives a lower semi-lattice. The least-shared-instance of a proper sharing graph is its maximal proper unfolding, that is, the unique proper unshared graph that the unfolding partial order associates to it. Exploiting a simulation property between the reductions of a proper sharing graph and the reductions of its least-shared-instance, we prove that the read-back of a proper sharing graph can be computed via an unfolding or read-back reduction. Proper sharing graphs implement in a distributed and local way any graph calculus with a global reduction in the style of the beta-rule of lambda-calculus. In fact, correctness of the sharing implementation requires the so-called box nesting property only, or equivalently, it is proved under the only assumption that two redexes never partially overlap. Thus, sharing graphs constitute an abstract machine, say the sharing graph machine, that seems to be the most natural low-level computational model for functional languages. Moreover, Lévy's optimal reductions correspond to lazy reductions of that sharing machine. We stress on the proof strategy followed in the paper: it rests on an amazing interplay between standard rewriting system properties (strong normalization, confluence, and unique normal form) and algebraic properties definable via the techniques of Geometry of Interaction.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.