Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/268946.268971acmconferencesArticle/Chapter ViewAbstractPublication PagespoplConference Proceedingsconference-collections
Article
Free access

Parallel beta reduction is not elementary recursive

Published: 21 January 1998 Publication History

Abstract

We analyze the inherent complexity of implementing Lévy's notion of optimal evaluation for the &lambda-calculus, where similar redexes are contracted in one step via so-called parallel β-reduction. optimal evaluation was finally realized by Lamping, who introduced a beautiful graph reduction technology for sharing evaluation contexts dual to the sharing of values. His pioneering insights have been modified and improved in subsequent implementations of optimal reduction.We prove that the cost of parallel β-reduction is not bounded by any Kalmár-elementary recursive function. Not merely do we establish that the parallel β-step cannot, be a unit-cost operation, we demonstrate that the time complexity of implementing a sequence of n parallel β-steps is not bounded as O(2n), O(22n), O(222n), or in general, O(Kl(n)) where Kl(n) is a fixed stack of l 2s with an n on top.A key insight, essential to the establishment of this nonelementary lower bound, is that any simply-typed λ-term can be reduced to normal form in a number of parallel β-steps that is only polynomial in the length of the explicitly-typed term. The result follows from Statman's theorem that deciding equivalence of typed λ-terms is not elementary recursive.The main theorem gives a lower bound on the work that must be done by any technology that implements Lévy's notion of optimal reduction. However, in the significant case of Lamping's solution, we make some important remarks addressing how work done by β-reduction is translated into equivalent work carried out by his bookkeeping nodes. In particular, we identify the computational paradigms of superposition of values and of higher-order sharing, appealing to compelling analogies with quantum mechanics and SIMD-parallelism.

References

[1]
Andrea Asperti. On the complexity of Setareduction. 1996 ACM Symposium on Principles of Programming Languages~ pp, 110-118,
[2]
Andrea Asperti and Stefano Guerrini. The Optimal Implementation of Functional Programming Languages. Cambridge Tracts in Theoretical Computer Science, Cambridge University Press, To appear.
[3]
Peter van Erode Boas. Mechine models and sim. ulation. Handbook of Theoretical Computer Science, volume A, pp. 1-66. North Holland, 1990,
[4]
Freeman Dyson. Dlsturblng the Universe, Harper and Row, 1979.
[5]
Gudmund S. Frandsen and Carl Sturtivant. What is an efficient implementation of the a-calculus 1991 A CM Conference on Functional Programming and Computer Architecture (J, Hughes, ed.), LNCS 523, pp. 289-312.
[6]
Robin Gandy. An early proof of normalization by A. M. Turing. To H. B. Curry: Essays in Combinatory Logic, Lambda Calculus and Formalism, (J. P. Seldin and J. R. Hindley, eds.), pp. 453-455. Academic Press, 1980.
[7]
Jean-Yves Girard, Yves Lafont and Paul Taylor, Proofs and Types. Cambridge Tracts in Theoretical Computer Science, Cambridge Unlvers|ty Press, 1989.
[8]
Georges Gonthier, Martin Abadi, and Jean-Jacques Levy. The georaetry of optimal tarnbda reduction. 1992 ACM Symposium on Principles of Programming Languages, pp. 15-26.
[9]
Georges Gonthier, Martin Abadi, and Jean-Jacques Levy. Linear logic without boxes. 1992 IEEE Symposium on Logic in Computer Science, pp. 223-234.
[10]
Stefano Guerrini. Theoretical and practical issues of optimal implementations of functional languages. Ph. D. Thesis, Universita di Pisa, 1996.
[11]
J. Roger Hindley and Jonathan P. Seldin. Introduction to Combinators and Lambda Calculus. Cambridge University Press, 1987,
[12]
Charles Antony Richard Hoare. The Mathematics of Programming. Inaugural Lecture, Oxford University. Clarendon Press, October 1985.
[13]
John E. Hopcroft and Jeffrey D, Ultman, Introduction to Automata Theory, Langunges, and Computation. Addisbn Wesley, 1979,
[14]
Laszlo Kalmar. Egyszeru pelda eldonthetetlen aritmetikai problemara (Ein einfaches Beispiel fur ein unentsheidbares arithmetisches Problem). Mathematikai es fizikai lapok 50, 1943, pp. 1-23, Hungarian with German abstract.
[15]
Vinod Kathail. Optimal interpreters for lambdaealeales based fuaetional languages. Ph.D. Thesis, MIT, May 1990.
[16]
Yves Lafont. From proof nets to interaction nets. Advances in Linear Logic (J.-Y. Girard, Y. Lafont, L. Regnier, eds.), Cambridge University Press, 1995.
[17]
John Lumping. An algorithm for optimal lambda calculus reduction. 1990 ACM Symposium on Principles of Programming Languages, pp. 16-30.
[18]
Julia L. Lawall and Harry G. Mairson. Optimality and inefficiency: what isn't a cost model of the lambda calculus? 1996 ACM International Conference on Functional Programming, pp. 92-101.
[19]
Julia L. Lawall and Harry G. Mairison. On the global dynamics of optimal graph rednctioa. 1997 ACM International Conference on Functional Programming, pp. 188-195.
[20]
Jean-Jacques Levy. Reductions correetes et optimales duns le lambda-calcul. These d'Etat, Universite Paris 7, 1978.
[21]
Jean-Jacques Levy. Optimal reductions in the lambda-calculus. To H. B. Curry: Essays in Combinatory Logic, Lambda Calculus and Formalism, (J. P. Seldin and J. R. Hindley, eds.), pp. 159-191. Academic Press, 1980.
[22]
Harry G. Mairson. A simple proo} of a theorem o/ Statmsn. Theoretical Computer Science 103 (1992), pp. 387-394.
[23]
Albert R. Meyer. The inherent computational eomplezity of theories of ordered sets. Proceedings of the International Congress of Mathematicians, 1974, pp. 477-482.
[24]
Silvan S. Schwebex. QED and the men who made it: Dyson, Feynman, Schwinger, and Tomonaga. Princeton University Press, 1994.
[25]
Richard Statman. The typed A-calculus is not elementary recursive. Theoretical Computer Science 9, 1979, pp. 73-81.
[26]
William W. Tail. Intensional interpretation of functionals of finite type L J. Symbolic Logic 32, pp. 198-212, 1967.
[27]
Myron Tribus. Thirty years of information theory. The Maximum Entropy Formalism (ed. R. D. Levine and M. Tribus), pp. 1-14. M1T Press, 1978.
[28]
Jean Vuillemiu. Correct and optimal implementation of recnrsion in a simple programming language. J. Computer and System Sciences 9:3, pp. 332-354.

Cited By

View all
  • (2016)The Useful MAM, a Reasonable Implementation of the Strong $$\lambda $$-CalculusProceedings of the 23rd International Workshop on Logic, Language, Information, and Computation - Volume 980310.1007/978-3-662-52921-8_1(1-21)Online publication date: 16-Aug-2016
  • (2014)Beta reduction is invariant, indeedProceedings 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)10.1145/2603088.2603105(1-10)Online publication date: 14-Jul-2014
  • (2012)A unified approach to fully lazy sharingProceedings of the 39th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages10.1145/2103656.2103713(469-480)Online publication date: 25-Jan-2012
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
POPL '98: Proceedings of the 25th ACM SIGPLAN-SIGACT symposium on Principles of programming languages
January 1998
403 pages
ISBN:0897919793
DOI:10.1145/268946
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 ACM 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

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 21 January 1998

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Conference

POPL98
POPL98: Symposium on Principles of Programming Languages
January 19 - 21, 1998
California, San Diego, USA

Acceptance Rates

POPL '98 Paper Acceptance Rate 32 of 175 submissions, 18%;
Overall Acceptance Rate 824 of 4,130 submissions, 20%

Upcoming Conference

POPL '25

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)35
  • Downloads (Last 6 weeks)0
Reflects downloads up to 04 Oct 2024

Other Metrics

Citations

Cited By

View all
  • (2016)The Useful MAM, a Reasonable Implementation of the Strong $$\lambda $$-CalculusProceedings of the 23rd International Workshop on Logic, Language, Information, and Computation - Volume 980310.1007/978-3-662-52921-8_1(1-21)Online publication date: 16-Aug-2016
  • (2014)Beta reduction is invariant, indeedProceedings 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)10.1145/2603088.2603105(1-10)Online publication date: 14-Jul-2014
  • (2012)A unified approach to fully lazy sharingProceedings of the 39th annual ACM SIGPLAN-SIGACT symposium on Principles of programming languages10.1145/2103656.2103713(469-480)Online publication date: 25-Jan-2012
  • (2012)A unified approach to fully lazy sharingACM SIGPLAN Notices10.1145/2103621.210371347:1(469-480)Online publication date: 25-Jan-2012
  • (2007)Relating complexity and precision in control flow analysisACM SIGPLAN Notices10.1145/1291220.129116642:9(85-96)Online publication date: 1-Oct-2007
  • (2007)Relating complexity and precision in control flow analysisProceedings of the 12th ACM SIGPLAN international conference on Functional programming10.1145/1291151.1291166(85-96)Online publication date: 3-Oct-2007
  • (2007)PELCRACM Transactions on Computational Logic10.1145/1243996.12439978:3(14-es)Online publication date: 1-Jul-2007
  • (2007)Strongly reducing variants of the Krivine abstract machineHigher-Order and Symbolic Computation10.1007/s10990-007-9015-z20:3(209-230)Online publication date: 1-Sep-2007
  • (2002)Relating conflict-free stable transition and event models via redex familiesTheoretical Computer Science10.1016/S0304-3975(01)00235-3286:1(65-95)Online publication date: 6-Sep-2002
  • (2002)Static Analysis of Modularity of β-Reduction in the Hyperbalanced λ-CalculusRewriting Techniques and Applications10.1007/3-540-45610-4_5(51-65)Online publication date: 9-Jul-2002
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media