Sound and complete bidirectional typechecking for higher-rank polymorphism with existentials and indexed types
dc.contributor.author | Dunfield, Joshua | |
dc.contributor.author | Krishnaswami, Neel | |
dc.date.accessioned | 2019-01-17T12:53:24Z | |
dc.date.available | 2019-01-17T12:53:24Z | |
dc.date.issued | 2019-01-02 | |
dc.identifier.uri | https://www.repository.cam.ac.uk/handle/1810/288130 | |
dc.description.abstract | <jats:p>Bidirectional typechecking, in which terms either synthesize a type or are checked against a known type, has become popular for its applicability to a variety of type systems, its error reporting, and its ease of implementation. Following principles from proof theory, bidirectional typing can be applied to many type constructs. The principles underlying a bidirectional approach to indexed types (generalized algebraic datatypes) are less clear. Building on proof-theoretic treatments of equality, we give a declarative specification of typing based on focalization. This approach permits declarative rules for coverage of pattern matching, as well as support for first-class existential types using a focalized subtyping judgment. We use refinement types to avoid explicitly passing equality proofs in our term syntax, making our calculus similar to languages such as Haskell and OCaml. We also extend the declarative specification with an explicit rules for deducing when a type is principal, permitting us to give a complete declarative specification for a rich type system with significant type inference. We also give a set of algorithmic typing rules, and prove that it is sound and complete with respect to the declarative system. The proof requires a number of technical innovations, including proving soundness and completeness in a mutually recursive fashion.</jats:p> | |
dc.description.sponsorship | EPSRC grant EP/N02706X/2 | |
dc.language | en | |
dc.publisher | Association for Computing Machinery (ACM) | |
dc.rights | Attribution 4.0 International | |
dc.rights.uri | http://creativecommons.org/licenses/by/4.0/ | |
dc.title | Sound and complete bidirectional typechecking for higher-rank polymorphism with existentials and indexed types | |
dc.type | Conference Object | |
prism.endingPage | 28 | |
prism.issueIdentifier | POPL | |
prism.publicationDate | 2019 | |
prism.publicationName | Proceedings of the ACM on Programming Languages | |
prism.startingPage | 1 | |
prism.volume | 3 | |
dc.identifier.doi | 10.17863/CAM.35446 | |
dcterms.dateAccepted | 2018-10-30 | |
rioxxterms.versionofrecord | 10.1145/3290322 | |
rioxxterms.version | VoR | |
rioxxterms.licenseref.uri | http://creativecommons.org/licenses/by/4.0/ | |
rioxxterms.licenseref.startdate | 2019-01-02 | |
dc.contributor.orcid | Krishnaswami, Neel [0000-0003-2838-5865] | |
dc.identifier.eissn | 2475-1421 | |
dc.publisher.url | https://dl.acm.org/citation.cfm?id=3290322 | |
rioxxterms.type | Conference Paper/Proceeding/Abstract | |
pubs.funder-project-id | Engineering and Physical Sciences Research Council (EP/N02706X/2) | |
pubs.conference-name | Principles of Programming Languages (POPL 2019) | |
pubs.conference-start-date | 2019-01-13 | |
cam.orpheus.success | Thu Nov 05 11:53:21 GMT 2020 - The item has an open VoR version. | |
pubs.conference-finish-date | 2019-01-19 | |
rioxxterms.freetoread.startdate | 2100-01-01 |
Files in this item
This item appears in the following Collection(s)
-
Cambridge University Research Outputs
Research outputs of the University of Cambridge