TY - GEN
T1 - Intersection type matching with subtyping
AU - Düdder, Boris
AU - Martens, Moritz
AU - Rehof, Jakob
PY - 2013/9/27
Y1 - 2013/9/27
N2 - Type matching problems occur in a number of contexts, including library search, component composition, and inhabitation. We consider the intersection type matching problem under the standard notion of subtyping for intersection types: Given intersection types τ and σ, where σ is a constant type, does there exist a type substitution S such that S(τ) is a subtype of σ? We show that the matching problem is NP-complete. NP-hardness holds already for the restriction to atomic substitutions. The main contribution is an NP-algorithm which is engineered for efficiency by minimizing nondeterminism and running in Ptime on deterministic input problems. Our algorithm is based on a nondeterministic polynomial time normalization procedure for subtype constraint systems with intersection types. We have applied intersection type matching in optimizations of an inhabitation algorithm.
AB - Type matching problems occur in a number of contexts, including library search, component composition, and inhabitation. We consider the intersection type matching problem under the standard notion of subtyping for intersection types: Given intersection types τ and σ, where σ is a constant type, does there exist a type substitution S such that S(τ) is a subtype of σ? We show that the matching problem is NP-complete. NP-hardness holds already for the restriction to atomic substitutions. The main contribution is an NP-algorithm which is engineered for efficiency by minimizing nondeterminism and running in Ptime on deterministic input problems. Our algorithm is based on a nondeterministic polynomial time normalization procedure for subtype constraint systems with intersection types. We have applied intersection type matching in optimizations of an inhabitation algorithm.
UR - http://www.scopus.com/inward/record.url?scp=84884509674&partnerID=8YFLogxK
U2 - 10.1007/978-3-642-38946-7_11
DO - 10.1007/978-3-642-38946-7_11
M3 - Article in proceedings
AN - SCOPUS:84884509674
SN - 9783642389450
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 125
EP - 139
BT - Typed Lambda Calculi and Applications - 11th International Conference, TLCA 2013, Proceedings
T2 - 11th International Conference on Typed Lambda Calculi and Applications, TLCA 2013
Y2 - 26 June 2013 through 28 June 2013
ER -