[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/2603088.2603105acmconferencesArticle/Chapter ViewAbstractPublication PageslicsConference Proceedingsconference-collections
research-article

Beta reduction is invariant, indeed

Published: 14 July 2014 Publication History

Abstract

Slot and van Emde Boas' weak invariance thesis states that reasonable machines can simulate each other within a polynomially overhead in time. Is λ-calculus a reasonable machine? Is there a way to measure the computational complexity of a λ-term? This paper presents the first complete positive answer to this long-standing problem. Moreover, our answer is completely machine-independent and based over a standard notion in the theory of λ-calculus: the length of a leftmost-outermost derivation to normal form is an invariant cost model. Such a theorem cannot be proved by directly relating λ-calculus with Turing machines or random access machines, because of the size explosion problem: there are terms that in a linear number of steps produce an exponentially long output. The first step towards the solution is to shift to a notion of evaluation for which the length and the size of the output are linearly related. This is done by adopting the linear substitution calculus (LSC), a calculus of explicit substitutions modelled after linear logic proof nets and admitting a decomposition of leftmost-outermost derivations with the desired property. Thus, the LSC is invariant with respect to, say, random access machines. The second step is to show that LSC is invariant with respect to the λ-calculus. The size explosion problem seems to imply that this is not possible: having the same notions of normal form, evaluation in the LSC is exponentially longer than in the λ-calculus. We solve such an impasse by introducing a new form of shared normal form and shared reduction, deemed useful. Useful evaluation avoids those steps that only unshare the output without contributing to β-redexes, i.e. the steps that cause the blow-up in size. The main technical contribution of the paper is indeed the definition of useful reductions and the thorough analysis of their properties.

References

[1]
B. Accattoli. An abstract factorization theorem for explicit substitutions. In RTA, pages 6--21, 2012.
[2]
B. Accattoli and U. Dal Lago. Beta reduction is invariant, indeed (long version). Available at http://eternal.cs.unibo.it/brii.pdf.
[3]
B. Accattoli and U. Dal Lago. On the invariance of the unitary cost model for head reduction. In RTA, pages 22--37, 2012.
[4]
B. Accattoli and C. Sacerdoti Coen. On the Value of Variables. Accepted to WoLLIC 2014, 2014.
[5]
B. Accattoli, P. Barenbaum, and D. Mazza. Distilling Abstract Machines. Accepted to ICFP 2014, 2014.
[6]
B. Accattoli, E. Bonelli, D. Kesner, and C. Lombardi. A Nonstandard Standardization Theorem. In POPL, pages 659--670, 2014.
[7]
A. Asperti and H. G. Mairson. Parallel beta reduction is not elementary recursive. In POPL, pages 303--315, 1998.
[8]
M. Avanzini and G. Moser. Closing the gap between runtime complexity and polytime computability. In RTA, pages 33--48, 2010.
[9]
P. Baillot and K. Terui. Light types for polynomial time computation in lambda calculus. Inf. Comput., 207(1):41--62, 2009.
[10]
H. P. Barendregt. The Lambda Calculus -- Its Syntax and Semantics, volume 103. North-Holland, 1984.
[11]
P. Coppola, U. Dal Lago, and S. Ronchi Della Rocca. Light logics and the call-by-value lambda calculus. Logical Methods in Computer Science, 4(4), 2008.
[12]
H. Curry and R. Feys. Combinatory Logic. Studies in logic and the foundations of mathematics. North-Holland Publishing Company, 1958.
[13]
U. Dal Lago and S. Martini. The weak lambda calculus as a reasonable machine. Theor. Comput. Sci., 398(1-3):32--50, 2008.
[14]
U. Dal Lago and S. Martini. On constructor rewrite systems and the lambda calculus. Logical Methods in Computer Science, 8(3), 2012.
[15]
U. Dal Lago and U. Schöpp. Functional programming in sublinear space. In ESOP, pages 205--225, 2010.
[16]
N. G. de Bruijn. Generalizing Automath by Means of a Lambda-Typed Lambda Calculus. In Mathematical Logic and Theoretical Computer Science, number 106 in Lecture Notes in Pure and Applied Mathematics, pages 71--92. Marcel Dekker, 1987.
[17]
M. Gaboardi and S. Ronchi Della Rocca. A soft type assignment system for λ-calculus. In CSL, pages 253--267, 2007.
[18]
M. Gaboardi, J.-Y. Marion, and S. Ronchi Della Rocca. A logical account of PSPACE. In POPL, pages 121--131, 2008.
[19]
J. L. Lawall and H. G. Mairson. Optimality and inefficiency: What isn't a cost model of the lambda calculus? In ICFP, pages 92--101, 1996.
[20]
J.-J. Lévy. Réductions correctes et optimales dans le lambda-calcul. Thése d'Etat, Univ. Paris VII, France, 1978.
[21]
R. Milner. Local bigraphs and confluence: Two conjectures. Electr. Notes Theor. Comput. Sci., 175(3):65--73, 2007.
[22]
R. P. Nederpelt. The fine-structure of lambda calculus. Technical Report CSN 92/07, Eindhoven Univ. of Technology, 1992.
[23]
S. Peyton Jones. The Implementation of Functional Programming Languages. International Series in Computer Science. Prentice-Hall, 1987.
[24]
U. Schöpp. Stratified Bounded Affine Logic for Logarithmic Space. In LICS, pages 411--420, 2007.
[25]
C. F. Slot and P. van Emde Boas. On tape versus core; an application of space efficient perfect hash functions to the invariance of space. In STOC, pages 391--400, 1984.
[26]
R. Statman. The typed lambda-calculus is not elementary recursive. Theor. Comput. Sci., 9:73--81, 1979.
[27]
C. P. Wadsworth. Semantics and pragmatics of the lambda-calculus. PhD Thesis, Oxford, 1971.

Cited By

View all
  • (2024)Questioning a Dogma of Algorithmic Thinking in Our TimeThe Logic, Philosophy, and History of the Lambda-Calculus10.1007/978-3-031-72851-8_7(119-130)Online publication date: 29-Oct-2024
  • (2024)General Introduction and MotivationThe Logic, Philosophy, and History of the Lambda-Calculus10.1007/978-3-031-72851-8_1(3-23)Online publication date: 29-Oct-2024
  • (2023)Sharing a Perspective on the 𝜆-CalculusProceedings of the 2023 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software10.1145/3622758.3622884(179-190)Online publication date: 18-Oct-2023
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
CSL-LICS '14: Proceedings of the Joint Meeting of the Twenty-Third EACSL Annual Conference on Computer Science Logic (CSL) and the Twenty-Ninth Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)
July 2014
764 pages
ISBN:9781450328869
DOI:10.1145/2603088
  • Program Chairs:
  • Thomas Henzinger,
  • Dale Miller
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Sponsors

In-Cooperation

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 14 July 2014

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. λ-calculus
  2. computational complexity
  3. cost models
  4. explicit substitutions
  5. sharing

Qualifiers

  • Research-article

Conference

CSL-LICS '14
Sponsor:

Acceptance Rates

CSL-LICS '14 Paper Acceptance Rate 74 of 212 submissions, 35%;
Overall Acceptance Rate 215 of 622 submissions, 35%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)15
  • Downloads (Last 6 weeks)1
Reflects downloads up to 02 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Questioning a Dogma of Algorithmic Thinking in Our TimeThe Logic, Philosophy, and History of the Lambda-Calculus10.1007/978-3-031-72851-8_7(119-130)Online publication date: 29-Oct-2024
  • (2024)General Introduction and MotivationThe Logic, Philosophy, and History of the Lambda-Calculus10.1007/978-3-031-72851-8_1(3-23)Online publication date: 29-Oct-2024
  • (2023)Sharing a Perspective on the 𝜆-CalculusProceedings of the 2023 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software10.1145/3622758.3622884(179-190)Online publication date: 18-Oct-2023
  • (2022)Processes Against Tests: On Defining Contextual EquivalencesJournal of Logical and Algebraic Methods in Programming10.1016/j.jlamp.2022.100799(100799)Online publication date: Aug-2022
  • (2021)Processes, Systems & Tests: Defining Contextual EquivalencesElectronic Proceedings in Theoretical Computer Science10.4204/EPTCS.347.1347(1-21)Online publication date: 2-Oct-2021
  • (2021)A compositional cost model for the λ-calculusProceedings of the 36th Annual ACM/IEEE Symposium on Logic in Computer Science10.1109/LICS52264.2021.9470567(1-13)Online publication date: 29-Jun-2021
  • (2020)Polynomial Time over the Reals with ParsimonyFunctional and Logic Programming10.1007/978-3-030-59025-3_4(50-65)Online publication date: 2-Sep-2020
  • (2019)Sharing Equality is LinearProceedings of the 21st International Symposium on Principles and Practice of Declarative Programming10.1145/3354166.3354174(1-14)Online publication date: 7-Oct-2019
  • (2019)Abstract machines for open call-by-valueScience of Computer Programming10.1016/j.scico.2019.03.002Online publication date: Mar-2019
  • (2017)The Complexity of Abstract MachinesElectronic Proceedings in Theoretical Computer Science10.4204/EPTCS.235.1235(1-15)Online publication date: 1-Jan-2017
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media