{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T12:18:45Z","timestamp":1790079525584,"version":"4.0.1"},"reference-count":54,"publisher":"Association for Computing Machinery (ACM)","issue":"1","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Program. Lang. Syst."],"published-print":{"date-parts":[[2007,1]]},"abstract":"<jats:p>We study HMG(<jats:italic>X<\/jats:italic>), an extension of the constraint-based type system HM(<jats:italic>X<\/jats:italic>) with deep pattern matching, polymorphic recursion, and<jats:italic>guarded algebraic data types<\/jats:italic>. Guarded algebraic data types subsume the concepts known in the literature as<jats:italic>indexed types<\/jats:italic>,<jats:italic>guarded recursive datatype constructors<\/jats:italic>,<jats:italic>(first-class) phantom types<\/jats:italic>, and<jats:italic>equality qualified types<\/jats:italic>, and are closely related to<jats:italic>inductive types<\/jats:italic>. Their characteristic property is to allow every branch of a case construct to be typechecked under different assumptions about the type variables in scope. We prove that HMG(<jats:italic>X<\/jats:italic>) is sound and that, provided recursive definitions carry a type annotation, type inference can be reduced to constraint solving. Constraint solving is decidable, at least for some instances of<jats:italic>X<\/jats:italic>, but prohibitively expensive. Effective type inference for guarded algebraic data types is left as an issue for future research.<\/jats:p>","DOI":"10.1145\/1180475.1180476","type":"journal-article","created":{"date-parts":[[2007,4,5]],"date-time":"2007-04-05T19:20:08Z","timestamp":1175800808000},"page":"1","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":45,"title":["A constraint-based approach to guarded algebraic data types"],"prefix":"10.1145","volume":"29","author":[{"given":"Vincent","family":"Simonet","sequence":"first","affiliation":[{"name":"INRIA, Cedex, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Fran\u00e7ois","family":"Pottier","sequence":"additional","affiliation":[{"name":"INRIA, Cedex, France"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2007,1]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/165180.165188"},{"key":"e_1_2_2_2_1","volume-title":"Proceedings of the International Conference on Mathematics of Program Construction (MPC). Lecture Notes in Computer Science","volume":"1422","author":"Bird R."},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/581690.581698"},{"key":"e_1_2_2_4_1","volume-title":"Tech. Rep. 1901","author":"Cheney J.","year":"2003"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0747-7171(89)80017-3"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796801004282"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/113445.113468"},{"key":"e_1_2_2_10_1","series-title":"Lecture Notes in Computer Science","volume-title":"Proceedings of the International Joint Conference on Theory and Practice of Software Development (TAPSOFT)","author":"Hanus M."},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/169701.169692"},{"key":"e_1_2_2_12_1","first-page":"29","article-title":"The principal type-scheme of an object in combinatory logic","volume":"146","author":"Hindley J. R.","year":"1969","journal-title":"Trans. Am. Math. Soc."},{"key":"e_1_2_2_13_1","volume-title":"The Fun of Programming","author":"Hinze R."},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511663086"},{"key":"e_1_2_2_15_1","volume-title":"From Hindley-Milner types to first-class structures. Res. Rep. YALEU\/DCS\/RR-1075","author":"Jones M. P."},{"key":"e_1_2_2_16_1","unstructured":"Jones S. P. Vytiniotis D. Weirich S. and Washburn G. 2005. Simple unification-based type inference for GADTs. Submitted.]] Jones S. P. Vytiniotis D. Weirich S. and Washburn G. 2005. Simple unification-based type inference for GADTs. Submitted.]]"},{"key":"e_1_2_2_17_1","volume-title":"Proceedings of the IEEE Symposium on Logic in Computer Science (LICS).]]","author":"Kuncak V."},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/186025.186031"},{"key":"e_1_2_2_19_1","unstructured":"Leroy X. Doligez D. Garrigue J. R\u00e9my D. and Vouillon J. 2005. The Objective Caml System.]] Leroy X. Doligez D. Garrigue J. R\u00e9my D. and Vouillon J. 2005. The Objective Caml System.]]"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.1988.5132"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(78)90014-4"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/800017.800529"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/237721.237729"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1002\/(SICI)1096-9942(199901\/03)5:1%3C35::AID-TAPO4%3E3.0.CO;2-4"},{"key":"e_1_2_2_25_1","volume-title":"Res. Rep. RR1992-49","author":"Paulin-Mohring C.","year":"1992"},{"key":"e_1_2_2_26_1","volume-title":"The Implementation of Functional Programming Languages","author":"Peyton Jones S."},{"key":"e_1_2_2_27_1","volume-title":"2003. Haskell 98 Language and Libraries: The Revised Report","author":"Peyton Jones S."},{"key":"e_1_2_2_28_1","unstructured":"Peyton Jones S. and Shields M. 2004. Lexically-Scoped type variables. Manuscript.]] Peyton Jones S. and Shields M. 2004. Lexically-Scoped type variables. Manuscript.]]"},{"key":"e_1_2_2_29_1","volume-title":"Tech. Rep. MS-CIS-05-26","author":"Peyton Jones S.","year":"2004"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/345099.345100"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/964001.964009"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/1111037.1111058"},{"key":"e_1_2_2_33_1","doi-asserted-by":"crossref","unstructured":"Pottier F. and R\u00e9my D. 2005. The essence of ML type inference. In Advanced Topics in Types and Programming Languages B. C. Pierce Ed. MIT Press Cambridge MA. 389--489.]] Pottier F. and R\u00e9my D. 2005. The essence of ML type inference. In Advanced Topics in Types and Programming Languages B. C. Pierce Ed. MIT Press Cambridge MA. 389--489.]]","DOI":"10.7551\/mitpress\/1104.003.0016"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.5555\/645868.668492"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1028664.1028711"},{"key":"e_1_2_2_36_1","unstructured":"Sheard T. 2005. \u03a9mega.]] Sheard T. 2005. \u03a9mega.]]"},{"key":"e_1_2_2_37_1","volume-title":"Proceedings of the Workshop on Logical Frameworks and Meta-Languages (LFM).]]","author":"Sheard T."},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/944705.944710"},{"key":"e_1_2_2_39_1","unstructured":"Simonet V. and Pottier F. 2005. Constraint-Based type inference for guarded algebraic data types. Res. Rep. 5462 INRIA. Jan.]] Simonet V. and Pottier F. 2005. Constraint-Based type inference for guarded algebraic data types. Res. Rep. 5462 INRIA. Jan.]]"},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(94)00020-4"},{"key":"e_1_2_2_41_1","unstructured":"Stuckey P. J. and Sulzmann M. 2005. Type inference for guarded recursive data types. Manuscript.]] Stuckey P. J. and Sulzmann M. 2005. Type inference for guarded recursive data types. Manuscript.]]"},{"key":"e_1_2_2_43_1","unstructured":"Sulzmann M. M\u00fcller M. and Zenger C. 1999. Hindley\/Milner style type systems in constraint form. Res. Rep. ACRC-99-009 University of South Australia School of Computer and Information Science. July.]] Sulzmann M. M\u00fcller M. and Zenger C. 1999. Hindley\/Milner style type systems in constraint form. Res. Rep. ACRC-99-009 University of South Australia School of Computer and Information Science. July.]]"},{"key":"e_1_2_2_44_1","volume-title":"Proceedings of the Static Analysis Symposium (SAS). Lecture Notes in Computer Science","volume":"1145","author":"Trifonov V."},{"key":"e_1_2_2_45_1","volume-title":"Proceedings of the IEEE Symposium on Security and Privacy (S and P).]]","author":"Tse S."},{"key":"e_1_2_2_46_1","series-title":"Lecture Notes in Computer Science","volume-title":"Proceedings of the International Conference on Automated Deduction (CADE)","author":"Vorobyov S. G."},{"key":"e_1_2_2_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/75277.75283"},{"key":"e_1_2_2_48_1","volume-title":"Ellis Horwood","author":"Warren D. H. D."},{"key":"e_1_2_2_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/351240.351246"},{"key":"e_1_2_2_51_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1994.1093"},{"key":"e_1_2_2_53_1","series-title":"Lecture Notes in Computer Science","volume-title":"Proceedings of the International Workshop on Practical Aspects of Declarative Languages (PADL)","author":"Xi H."},{"key":"e_1_2_2_54_1","unstructured":"Xi H. 2001. Dependent ML.]] Xi H. 2001. Dependent ML.]]"},{"key":"e_1_2_2_55_1","first-page":"851","article-title":"Dependently typed pattern matching","volume":"9","author":"Xi H.","year":"2003","journal-title":"J. Universal Comput. Sci."},{"key":"e_1_2_2_56_1","series-title":"Lecture Notes in Computer Science","volume-title":"Proceedings of the TYPES 2003 Conference","author":"Xi H."},{"key":"e_1_2_2_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/604131.604150"},{"key":"e_1_2_2_58_1","doi-asserted-by":"publisher","DOI":"10.1145\/292540.292560"},{"key":"e_1_2_2_59_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(97)00062-5"}],"container-title":["ACM Transactions on Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1180475.1180476","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,1,15]],"date-time":"2025-01-15T16:08:09Z","timestamp":1736957289000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1180475.1180476"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2007,1]]},"references-count":54,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2007,1]]}},"alternative-id":["10.1145\/1180475.1180476"],"URL":"https:\/\/doi.org\/10.1145\/1180475.1180476","relation":{},"ISSN":["0164-0925","1558-4593"],"issn-type":[{"value":"0164-0925","type":"print"},{"value":"1558-4593","type":"electronic"}],"subject":[],"published":{"date-parts":[[2007,1]]},"assertion":[{"value":"2007-01-01","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}