File Download
Links for fulltext
(May Require Subscription)
- Publisher Website: 10.1145/3704869
- Scopus: eid_2-s2.0-85215983538
- Find via

Supplementary
-
Citations:
- Scopus: 0
- Appears in Collections:
Article: QuickSub: Efficient Iso-Recursive Subtyping
| Title | QuickSub: Efficient Iso-Recursive Subtyping |
|---|---|
| Authors | |
| Keywords | Algorithm Recursive types Subtyping |
| Issue Date | 7-Jan-2025 |
| Publisher | Association for Computing Machinery (ACM) |
| Citation | Proceedings of the ACM on Programming Languages, 2025, v. 9 How to Cite? |
| Abstract | Many programming languages need to check whether two recursive types are in a subtyping relation. Traditionally recursive types are modelled in two different ways: equi- or iso- recursive types. While efficient algorithms for subtyping equi-recursive types are well studied for simple type systems, efficient algorithms for iso-recursive subtyping remain understudied. In this paper we present QuickSub: an efficient and simple to implement algorithm for iso-recursive subtyping. QuickSub has the same expressive power as the well-known iso-recursive Amber rules. The worst case complexity of QuickSub is O(nm), where m is the size of the type and n is the number of recursive binders. However, in practice, the algorithm is nearly linear with the worst case being hard to reach. Consequently, in many common cases, QuickSub can be several times faster than alternative algorithms. We validate the efficiency of QuickSub with an empirical evaluation comparing it to existing equi-recursive and iso-recursive subtyping algorithms. We prove the correctness of the algorithm and formalize a simple calculus with recursive subtyping and records. For this calculus we also show how type soundness can be proved using QuickSub. All the results have been formalized and proved in the Coq proof assistant. |
| Persistent Identifier | http://hdl.handle.net/10722/361900 |
| ISSN | 2023 Impact Factor: 2.2 2023 SCImago Journal Rankings: 1.242 |
| DC Field | Value | Language |
|---|---|---|
| dc.contributor.author | Zhou, Litao | - |
| dc.contributor.author | Dos Santos Oliveira, Bruno Cesar | - |
| dc.date.accessioned | 2025-09-17T00:31:48Z | - |
| dc.date.available | 2025-09-17T00:31:48Z | - |
| dc.date.issued | 2025-01-07 | - |
| dc.identifier.citation | Proceedings of the ACM on Programming Languages, 2025, v. 9 | - |
| dc.identifier.issn | 2475-1421 | - |
| dc.identifier.uri | http://hdl.handle.net/10722/361900 | - |
| dc.description.abstract | Many programming languages need to check whether two recursive types are in a subtyping relation. Traditionally recursive types are modelled in two different ways: equi- or iso- recursive types. While efficient algorithms for subtyping equi-recursive types are well studied for simple type systems, efficient algorithms for iso-recursive subtyping remain understudied. In this paper we present QuickSub: an efficient and simple to implement algorithm for iso-recursive subtyping. QuickSub has the same expressive power as the well-known iso-recursive Amber rules. The worst case complexity of QuickSub is O(nm), where m is the size of the type and n is the number of recursive binders. However, in practice, the algorithm is nearly linear with the worst case being hard to reach. Consequently, in many common cases, QuickSub can be several times faster than alternative algorithms. We validate the efficiency of QuickSub with an empirical evaluation comparing it to existing equi-recursive and iso-recursive subtyping algorithms. We prove the correctness of the algorithm and formalize a simple calculus with recursive subtyping and records. For this calculus we also show how type soundness can be proved using QuickSub. All the results have been formalized and proved in the Coq proof assistant. | - |
| dc.language | eng | - |
| dc.publisher | Association for Computing Machinery (ACM) | - |
| dc.relation.ispartof | Proceedings of the ACM on Programming Languages | - |
| dc.rights | This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. | - |
| dc.subject | Algorithm | - |
| dc.subject | Recursive types | - |
| dc.subject | Subtyping | - |
| dc.title | QuickSub: Efficient Iso-Recursive Subtyping | - |
| dc.type | Article | - |
| dc.description.nature | published_or_final_version | - |
| dc.identifier.doi | 10.1145/3704869 | - |
| dc.identifier.scopus | eid_2-s2.0-85215983538 | - |
| dc.identifier.volume | 9 | - |
| dc.identifier.eissn | 2475-1421 | - |
| dc.identifier.issnl | 2475-1421 | - |
