Bounding Skeletons, Locally Scoped Terms and Exact Bounds for Linear Head Reduction

Bounding skeletons were recently introduced as a tool to study the length of interactions in Hyland/Ong game semantics. In this paper, we investigate the precise connection between them and execution of typed λ-terms. Our analysis sheds light on a new condition on λ-terms, called local scope. We show that the reduction of locally scoped terms matches closely that of bounding skeletons. Exploiting this connection, we give upper bound to the length of linear head reduction for simply-typed locally scoped terms. General terms lose this connection to bounding skeletons. To compensate for that, we show that λ-lifting allows us to transform any λ-term into a locally scoped one. We deduce from that an upper bound to the length of linear head reduction for arbitrary simply-typed λ-terms. In both cases, we prove the asymptotical optimality of the upper bounds by providing matching lower bounds.

[1]  C.-H. Luke Ong,et al.  On Full Abstraction for PCF: I, II, and III , 2000, Inf. Comput..

[2]  Alex K. Simpson,et al.  Computational Adequacy in an Elementary Topos , 1998, CSL.

[3]  Vincent Danos,et al.  Game semantics and abstract machines , 1996, Proceedings 11th Annual IEEE Symposium on Logic in Computer Science.

[4]  Michele Pagani,et al.  A semantic measure of the execution time in linear logic , 2011, Theor. Comput. Sci..

[5]  Jean-Yves Girard,et al.  Light Linear Logic , 1998, Inf. Comput..

[6]  Ugo Dal Lago,et al.  Quantitative Game Semantics for Linear Logic , 2008, CSL.

[7]  Stéphane Lengrand,et al.  Complexity of Strongly Normalising λ-Terms via Non-idempotent Intersection Types , 2011, FoSSaCS.

[8]  Helmut Schwichtenberg,et al.  An upper bound for reduction sequences in the typed λ-calculus , 1991, Arch. Math. Log..

[9]  Daniel Leivant,et al.  Logic and Computational Complexity , 1995, Lecture Notes in Computer Science.

[10]  Ugo Dal Lago,et al.  On the Invariance of the Unitary Cost Model for Head Reduction (Long Version) , 2012, RTA.

[11]  Ian Stark,et al.  Free-Algebra Models for the pi-Calculus , 2005, FoSSaCS.

[12]  Arnold Beckmann Exact Bounds for Lengths of Reductions in Typed lambda-Calculus , 2001, J. Symb. Log..

[13]  Vincent Danos,et al.  Linear logic and elementary time , 2003, Inf. Comput..

[14]  Thierry Coquand,et al.  A semantics of evidence for classical arithmetic , 1995, Journal of Symbolic Logic.

[15]  Pierre Clairambault Estimation of the length of interactions in arena game semantics , 2011, FoSSaCS.

[16]  Thomas Johnsson,et al.  Lambda Lifting: Treansforming Programs to Recursive Equations , 1985, FPCA.