Bottom-up beta-reduction: uplinks and lambda-DAGs (journal version). Shivers, O. & Wand, M. Fundamenta Infomaticae, 103(1-4):247-287, July, 2010.
Paper abstract bibtex If we represent a lambda-calculus term as a DAG rather than a tree, we can efficiently represent the sharing that arises from beta-reduction, thus avoiding combinatorial explosion in space. By adding uplinks from a child to its parents, we can efficiently implement beta-reduction in a bottom-up manner, thus avoiding combinatorial explosion in time required to search the term in a top-down fashion. We present an algorithm for performing beta-reduction on lambda terms represented as uplinked DAGs; describe its proof of correctness; discuss its relation to alternate techniques such as Lamping graphs, explicit-substitution calculi and director strings; and present some timings of an implementation. Besides being both fast and parsimonious of space, the algorithm is particularly suited to applications such as compilers, theorem provers, and type-manipulation systems that may need to examine terms inbetween reductions---ie, the ``readback'' problem for our representation is trivial. Like Lamping graphs, and unlike director strings or the suspension lambda-calculus, the algorithm functions by side-effecting the term containing the redex; the representation is not a ``persistent'' one. The algorithm additionally has the charm of being quite simple; a complete implementation of the data structure and algorithm is 180 lines of SML.
@Article{ShiversWand:BUBS-JournalVersion-10,
author = {Olin Shivers and Mitchell Wand},
title = {Bottom-up beta-reduction: uplinks and lambda-DAGs (journal version)},
journal = "Fundamenta Infomaticae",
year = {2010},
month = jul,
volume = "103",
number = "1-4",
pages = "247-287",
URL = wwwdir # {shivers-wand-10.pdf},
source = {~/papers/shivers-bubs-10},
abstract = {If we represent a lambda-calculus term as a DAG
rather than a tree, we can efficiently represent the
sharing that arises from beta-reduction, thus
avoiding combinatorial explosion in space. By
adding uplinks from a child to its parents, we can
efficiently implement beta-reduction in a bottom-up
manner, thus avoiding combinatorial explosion in
time required to search the term in a top-down
fashion. We present an algorithm for performing
beta-reduction on lambda terms represented as
uplinked DAGs; describe its proof of correctness;
discuss its relation to alternate techniques such as
Lamping graphs, explicit-substitution calculi and
director strings; and present some timings of an
implementation. Besides being both fast and
parsimonious of space, the algorithm is particularly
suited to applications such as compilers, theorem
provers, and type-manipulation systems that may need
to examine terms inbetween reductions---ie, the
``readback'' problem for our representation is
trivial. Like Lamping graphs, and unlike director
strings or the suspension lambda-calculus, the
algorithm functions by side-effecting the term
containing the redex; the representation is not a
``persistent'' one. The algorithm additionally has
the charm of being quite simple; a complete
implementation of the data structure and algorithm
is 180 lines of SML.},
OPTannote = {}
}
Downloads: 0
{"_id":"PWCFePDKdYP5DyeTH","bibbaseid":"shivers-wand-bottomupbetareductionuplinksandlambdadagsjournalversion-2010","downloads":0,"creationDate":"2017-04-23T20:31:12.637Z","title":"Bottom-up beta-reduction: uplinks and lambda-DAGs (journal version)","author_short":["Shivers, O.","Wand, M."],"year":2010,"bibtype":"article","biburl":"http://www.ccs.neu.edu/home/wand/Bibliography.bib","bibdata":{"bibtype":"article","type":"article","author":[{"firstnames":["Olin"],"propositions":[],"lastnames":["Shivers"],"suffixes":[]},{"firstnames":["Mitchell"],"propositions":[],"lastnames":["Wand"],"suffixes":[]}],"title":"Bottom-up beta-reduction: uplinks and lambda-DAGs (journal version)","journal":"Fundamenta Infomaticae","year":"2010","month":"July","volume":"103","number":"1-4","pages":"247-287","url":"http://www.ccs.neu.edu/home/wand/papers/shivers-wand-10.pdf","source":"~/papers/shivers-bubs-10","abstract":"If we represent a lambda-calculus term as a DAG rather than a tree, we can efficiently represent the sharing that arises from beta-reduction, thus avoiding combinatorial explosion in space. By adding uplinks from a child to its parents, we can efficiently implement beta-reduction in a bottom-up manner, thus avoiding combinatorial explosion in time required to search the term in a top-down fashion. We present an algorithm for performing beta-reduction on lambda terms represented as uplinked DAGs; describe its proof of correctness; discuss its relation to alternate techniques such as Lamping graphs, explicit-substitution calculi and director strings; and present some timings of an implementation. Besides being both fast and parsimonious of space, the algorithm is particularly suited to applications such as compilers, theorem provers, and type-manipulation systems that may need to examine terms inbetween reductions---ie, the ``readback'' problem for our representation is trivial. Like Lamping graphs, and unlike director strings or the suspension lambda-calculus, the algorithm functions by side-effecting the term containing the redex; the representation is not a ``persistent'' one. The algorithm additionally has the charm of being quite simple; a complete implementation of the data structure and algorithm is 180 lines of SML.","optannote":"","bibtex":"@Article{ShiversWand:BUBS-JournalVersion-10,\n author = \t {Olin Shivers and Mitchell Wand},\n title = \t {Bottom-up beta-reduction: uplinks and lambda-DAGs (journal version)}, \n journal = \t\"Fundamenta Infomaticae\",\n year =\t {2010},\n month =\t jul,\n volume =\t \"103\",\n number =\t \"1-4\",\n pages =\t \"247-287\",\n URL =\t\t wwwdir # {shivers-wand-10.pdf},\n source = {~/papers/shivers-bubs-10},\n abstract =\t {If we represent a lambda-calculus term as a DAG\n rather than a tree, we can efficiently represent the\n sharing that arises from beta-reduction, thus\n avoiding combinatorial explosion in space. By\n adding uplinks from a child to its parents, we can\n efficiently implement beta-reduction in a bottom-up\n manner, thus avoiding combinatorial explosion in\n time required to search the term in a top-down\n fashion. We present an algorithm for performing\n beta-reduction on lambda terms represented as\n uplinked DAGs; describe its proof of correctness;\n discuss its relation to alternate techniques such as\n Lamping graphs, explicit-substitution calculi and\n director strings; and present some timings of an\n implementation. Besides being both fast and\n parsimonious of space, the algorithm is particularly\n suited to applications such as compilers, theorem\n provers, and type-manipulation systems that may need\n to examine terms inbetween reductions---ie, the\n ``readback'' problem for our representation is\n trivial. Like Lamping graphs, and unlike director\n strings or the suspension lambda-calculus, the\n algorithm functions by side-effecting the term\n containing the redex; the representation is not a\n ``persistent'' one. The algorithm additionally has\n the charm of being quite simple; a complete\n implementation of the data structure and algorithm\n is 180 lines of SML.},\n OPTannote = \t {}\n}\n\n","author_short":["Shivers, O.","Wand, M."],"key":"ShiversWand:BUBS-JournalVersion-10","id":"ShiversWand:BUBS-JournalVersion-10","bibbaseid":"shivers-wand-bottomupbetareductionuplinksandlambdadagsjournalversion-2010","role":"author","urls":{"Paper":"http://www.ccs.neu.edu/home/wand/papers/shivers-wand-10.pdf"},"downloads":0,"html":""},"search_terms":["bottom","beta","reduction","uplinks","lambda","dags","journal","version","shivers","wand"],"keywords":[],"authorIDs":[],"dataSources":["zM8mNPR4ZkAHKtvDs"]}