On the Complexity of Type Inference with Coercion. Wand, M. & O'Keefe, P. M. In Conf. on Functional Programming Languages and Computer Architecture, 1989. abstract bibtex We consider the following problem: Given a partial order $(C, \le)$ of base types and coercions between them, a set of constants with types generated from $C$, and a term $M$ in the lambda calculus with these constants, does $M$ have a typing with this set of types? This problem abstracts the problem of typability over a fixed set of base types and coercions (\it e.g.\ int $\le$ real, or a fixed set of coercions between opaque data types). We show that in general, the problem of typability of lambda-terms over a given partially-ordered set of base types is NP-complete. However, if the partial order is known to be a tree, then the satisfiability problem is solvable in (low-order) polynomial time. The latter result is of practical importance, as trees correspond to the coercion structure of single-inheritance object systems.
@InProceedings{WandOkeefe89,
author = "Mitchell Wand and Patrick M. O'Keefe",
title = "On the Complexity of Type Inference with Coercion",
booktitle = "Conf. on Functional Programming Languages and
Computer Architecture",
year = "1989",
OPTeditor = "",
OPTpages = "293-298",
OPTorganization = "",
OPTpublisher = "",
OPTaddress = "London",
OPTmonth = sep,
OPTnote = "",
abstract = "We consider the following problem: Given a partial order $(C, \le)$ of base
types and coercions between them, a set of constants with types generated from
$C$, and a term $M$ in the lambda calculus with these constants, does $M$ have
a typing with this set of types? This problem abstracts the problem of
typability over a fixed set of base types and coercions ({\it e.g.}\ int $\le$
real, or a fixed set of coercions between opaque data types). We show that in
general, the problem of typability of lambda-terms over a given
partially-ordered set of base types is NP-complete. However, if the partial
order is known to be a tree, then the satisfiability problem is solvable in
(low-order) polynomial time. The latter result is of practical importance, as
trees correspond to the coercion structure of single-inheritance object
systems."
}
Downloads: 0
{"_id":"DmErEr2guqPRAsnqq","bibbaseid":"wand-okeefe-onthecomplexityoftypeinferencewithcoercion-1989","downloads":0,"creationDate":"2017-04-23T20:31:12.554Z","title":"On the Complexity of Type Inference with Coercion","author_short":["Wand, M.","O'Keefe, P. M."],"year":1989,"bibtype":"inproceedings","biburl":"http://www.ccs.neu.edu/home/wand/Bibliography.bib","bibdata":{"bibtype":"inproceedings","type":"inproceedings","author":[{"firstnames":["Mitchell"],"propositions":[],"lastnames":["Wand"],"suffixes":[]},{"firstnames":["Patrick","M."],"propositions":[],"lastnames":["O'Keefe"],"suffixes":[]}],"title":"On the Complexity of Type Inference with Coercion","booktitle":"Conf. on Functional Programming Languages and Computer Architecture","year":"1989","opteditor":"","optpages":"293-298","optorganization":"","optpublisher":"","optaddress":"London","optmonth":"September","optnote":"","abstract":"We consider the following problem: Given a partial order $(C, \\le)$ of base types and coercions between them, a set of constants with types generated from $C$, and a term $M$ in the lambda calculus with these constants, does $M$ have a typing with this set of types? This problem abstracts the problem of typability over a fixed set of base types and coercions (\\it e.g.\\ int $\\le$ real, or a fixed set of coercions between opaque data types). We show that in general, the problem of typability of lambda-terms over a given partially-ordered set of base types is NP-complete. However, if the partial order is known to be a tree, then the satisfiability problem is solvable in (low-order) polynomial time. The latter result is of practical importance, as trees correspond to the coercion structure of single-inheritance object systems.","bibtex":"@InProceedings{WandOkeefe89,\n author = \t\"Mitchell Wand and Patrick M. O'Keefe\",\n title = \t\"On the Complexity of Type Inference with Coercion\",\n booktitle = \t\"Conf. on Functional Programming Languages and\n Computer Architecture\",\n year = \t\"1989\",\n OPTeditor = \t\"\",\n OPTpages = \t\"293-298\",\n OPTorganization = \t\"\",\n OPTpublisher = \t\"\",\n OPTaddress = \t\"London\",\n OPTmonth = \tsep,\n OPTnote = \t\"\",\n abstract = \"We consider the following problem: Given a partial order $(C, \\le)$ of base\ntypes and coercions between them, a set of constants with types generated from\n$C$, and a term $M$ in the lambda calculus with these constants, does $M$ have\na typing with this set of types? This problem abstracts the problem of\ntypability over a fixed set of base types and coercions ({\\it e.g.}\\ int $\\le$\nreal, or a fixed set of coercions between opaque data types). We show that in\ngeneral, the problem of typability of lambda-terms over a given\npartially-ordered set of base types is NP-complete. However, if the partial\norder is known to be a tree, then the satisfiability problem is solvable in\n(low-order) polynomial time. The latter result is of practical importance, as\ntrees correspond to the coercion structure of single-inheritance object\nsystems.\"\n\n}\n\n","author_short":["Wand, M.","O'Keefe, P. M."],"key":"WandOkeefe89","id":"WandOkeefe89","bibbaseid":"wand-okeefe-onthecomplexityoftypeinferencewithcoercion-1989","role":"author","urls":{},"downloads":0,"html":""},"search_terms":["complexity","type","inference","coercion","wand","o'keefe"],"keywords":[],"authorIDs":[],"dataSources":["zM8mNPR4ZkAHKtvDs"]}