File Download
There are no files associated with this item.
Links for fulltext
(May Require Subscription)
- Publisher Website: 10.1145/3310339
- Scopus: eid_2-s2.0-85075715866
- WOS: WOS:000511839200002
- Find via
Supplementary
- Citations:
- Appears in Collections:
Article: Consistent Subtyping for All
Title | Consistent Subtyping for All |
---|---|
Authors | |
Issue Date | 2020 |
Publisher | Association for Computing Machinery. The Journal's web site is located at https://toplas.acm.org/ |
Citation | ACM Transactions on Programming Languages and Systems, 2020, v. 42 n. 1, p. article no. 2 How to Cite? |
Abstract | Consistent subtyping is employed in some gradual type systems to validate type conversions. The original definition by Siek and Taha serves as a guideline for designing gradual type systems with subtyping. Polymorphic types à la System F also induce a subtyping relation that relates polymorphic types to their instantiations. However, Siek and Taha’s definition is not adequate for polymorphic subtyping. The first goal of this article is to propose a generalization of consistent subtyping that is adequate for polymorphic subtyping and subsumes the original definition by Siek and Taha. The new definition of consistent subtyping provides novel insights with respect to previous polymorphic gradual type systems, which did not employ consistent subtyping. The second goal of this article is to present a gradually typed calculus for implicit (higher-rank) polymorphism that uses our new notion of consistent subtyping. We develop both declarative and (bidirectional) algorithmic versions for the type system. The algorithmic version employs techniques developed by Dunfield and Krishnaswami for higher-rank polymorphism to deal with instantiation. We prove that the new calculus satisfies all static aspects of the refined criteria for gradual typing. We also study an extension of the type system with static and gradual type parameters, in an attempt to support a variant of the dynamic criterion for gradual typing. Assuming a coherence conjecture for the extended calculus, we show that the dynamic gradual guarantee of our source language can be reduced to that of λ B, which, at the time of writing, is still an open question. Most of the metatheory of this article, except some manual proofs for the algorithmic type system and extensions, has been mechanically formalized using the Coq proof assistant. |
Persistent Identifier | http://hdl.handle.net/10722/301341 |
ISSN | 2023 Impact Factor: 1.5 2023 SCImago Journal Rankings: 0.893 |
ISI Accession Number ID |
DC Field | Value | Language |
---|---|---|
dc.contributor.author | XIE, N | - |
dc.contributor.author | BI, X | - |
dc.contributor.author | Dos Santos Oliveira, BCDS | - |
dc.contributor.author | Schrijvers, T | - |
dc.date.accessioned | 2021-07-27T08:09:39Z | - |
dc.date.available | 2021-07-27T08:09:39Z | - |
dc.date.issued | 2020 | - |
dc.identifier.citation | ACM Transactions on Programming Languages and Systems, 2020, v. 42 n. 1, p. article no. 2 | - |
dc.identifier.issn | 0164-0925 | - |
dc.identifier.uri | http://hdl.handle.net/10722/301341 | - |
dc.description.abstract | Consistent subtyping is employed in some gradual type systems to validate type conversions. The original definition by Siek and Taha serves as a guideline for designing gradual type systems with subtyping. Polymorphic types à la System F also induce a subtyping relation that relates polymorphic types to their instantiations. However, Siek and Taha’s definition is not adequate for polymorphic subtyping. The first goal of this article is to propose a generalization of consistent subtyping that is adequate for polymorphic subtyping and subsumes the original definition by Siek and Taha. The new definition of consistent subtyping provides novel insights with respect to previous polymorphic gradual type systems, which did not employ consistent subtyping. The second goal of this article is to present a gradually typed calculus for implicit (higher-rank) polymorphism that uses our new notion of consistent subtyping. We develop both declarative and (bidirectional) algorithmic versions for the type system. The algorithmic version employs techniques developed by Dunfield and Krishnaswami for higher-rank polymorphism to deal with instantiation. We prove that the new calculus satisfies all static aspects of the refined criteria for gradual typing. We also study an extension of the type system with static and gradual type parameters, in an attempt to support a variant of the dynamic criterion for gradual typing. Assuming a coherence conjecture for the extended calculus, we show that the dynamic gradual guarantee of our source language can be reduced to that of λ B, which, at the time of writing, is still an open question. Most of the metatheory of this article, except some manual proofs for the algorithmic type system and extensions, has been mechanically formalized using the Coq proof assistant. | - |
dc.language | eng | - |
dc.publisher | Association for Computing Machinery. The Journal's web site is located at https://toplas.acm.org/ | - |
dc.relation.ispartof | ACM Transactions on Programming Languages and Systems | - |
dc.rights | ACM Transactions on Programming Languages and Systems. Copyright © Association for Computing Machinery. | - |
dc.rights | ©ACM, YYYY. This is the author's version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in PUBLICATION, {VOL#, ISS#, (DATE)} http://doi.acm.org/10.1145/nnnnnn.nnnnnn | - |
dc.title | Consistent Subtyping for All | - |
dc.type | Article | - |
dc.identifier.email | Dos Santos Oliveira, BCDS: bruno@cs.hku.hk | - |
dc.identifier.authority | Dos Santos Oliveira, BCDS=rp01786 | - |
dc.description.nature | link_to_subscribed_fulltext | - |
dc.identifier.doi | 10.1145/3310339 | - |
dc.identifier.scopus | eid_2-s2.0-85075715866 | - |
dc.identifier.hkuros | 323733 | - |
dc.identifier.volume | 42 | - |
dc.identifier.issue | 1 | - |
dc.identifier.spage | article no. 2 | - |
dc.identifier.epage | article no. 2 | - |
dc.identifier.isi | WOS:000511839200002 | - |
dc.publisher.place | United States | - |