Optimality and the Linear Substitution Calculus

We lift the theory of optimal reduction to a decomposition of the lambda calculus known as the Linear Substitution Calculus (LSC). LSC decomposes β-reduction into finer steps that manipulate substitutions in two distinctive ways: it uses context rules that allow substitutions to act “at a distance” and rewrites modulo a set of equations that allow substitutions to “float” in a term. We propose a notion of redex family obtained by adapting Lévy labels to support these two distinctive features. This is followed by a proof of the finite family developments theorem (FFD). We then apply FFD to prove an optimal reduction theorem for LSC. We also apply FFD to deduce additional novel properties of LSC, namely an algorithm for standardisation by selection and normalisation of a linear call-by-need reduction strategy. All results are proved in the axiomatic setting of Glauert and Khashidashvili’s Deterministic Residual Structures. 1998 ACM Subject Classification F.4.1 Mathematical Logic

[1]  John R. W. Glauert,et al.  Relative Normalization in Deterministic Residual Structures , 1996, CAAP.

[2]  Damiano Mazza,et al.  Distilling abstract machines , 2014, ICFP.

[3]  Paul-André Melliès Axiomatic Rewriting Theory VI Residual Theory Revisited , 2002, RTA.

[4]  Robin Milner,et al.  Local Bigraphs and Confluence: Two Conjectures: (Extended Abstract) , 2007, EXPRESS.

[5]  Delia Kesner,et al.  A nonstandard standardization theorem , 2014, POPL.

[6]  Martín Abadi,et al.  The geometry of optimal lambda reduction , 1992, POPL '92.

[7]  Damiano Mazza,et al.  A Strong Distillery , 2015, APLAS.

[8]  Ugo Dal Lago,et al.  (Leftmost-Outermost) Beta Reduction is Invariant, Indeed , 2016, Log. Methods Comput. Sci..

[9]  Martín Abadi,et al.  Explicit substitutions , 1989, POPL '90.

[10]  Luca Paolini,et al.  Call-by-Value Solvability, Revisited , 2012, FLOPS.

[11]  Delia Kesner,et al.  The Structural lambda-Calculus , 2010, CSL.

[12]  Henk Barendregt,et al.  The Lambda Calculus: Its Syntax and Semantics , 1985 .

[13]  Ron Dinishak The optimal implementation of functional programming languages , 2000, SOEN.

[14]  Claudio Sacerdoti Coen,et al.  On the Relative Usefulness of Fireballs , 2015, 2015 30th Annual ACM/IEEE Symposium on Logic in Computer Science.

[15]  Terese Term rewriting systems , 2003, Cambridge tracts in theoretical computer science.

[16]  Luc Maranget,et al.  Optimal derivations in weak lambda-calculi and in orthogonal term rewriting systems , 1991, POPL '91.

[17]  Pierre Lescanne,et al.  Modeling Sharing and Recursion for Weak Reduction Strategies Using Explicit Substitution , 1996, PLILP.

[18]  Vincent van Oostrom Finite Family Developments , 1997, RTA.

[19]  Thibaut Balabonski,et al.  Weak optimality, and the meaning of sharing , 2013, ICFP.

[20]  Delia Kesner,et al.  Reasoning About Call-by-need by Means of Types , 2016, FoSSaCS.

[21]  Claudia Biermann Computing In Systems Described By Equations , 2016 .

[22]  H. J. Sander Bruggink,et al.  A Proof of Finite Family Developments for Higher-Order Rewriting Using a Prefix Property , 2006, RTA.

[23]  G Boudol Computational semantics of term rewriting systems , 1986 .

[24]  Ugo Dal Lago,et al.  (Leftmost-Outermost) Beta Reduction is Invariant, Indeed , 2016, Log. Methods Comput. Sci..

[25]  Paul-André Melliès Axiomatic rewriting theory II: the λσ-calculus enjoys finite normalisation cones , 2000, J. Log. Comput..