{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,9]],"date-time":"2026-02-09T14:14:21Z","timestamp":1770646461589,"version":"3.49.0"},"reference-count":47,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2017,12,27]],"date-time":"2017-12-27T00:00:00Z","timestamp":1514332800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["CCF-1422133,CCF-1453796"],"award-info":[{"award-number":["CCF-1422133,CCF-1453796"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2018,1]]},"abstract":"<jats:p>\n            Dependently typed languages such as Coq are used to specify and prove functional correctness of source programs, but what we ultimately need are guarantees about correctness of compiled code. By preserving dependent types through each compiler pass, we could preserve source-level specifications and correctness proofs into the generated target-language programs. Unfortunately, type-preserving compilation of dependent types is hard. In 2002, Barthe and Uustalu showed that type-preserving CPS is\n            <jats:italic>not possible<\/jats:italic>\n            for languages such as Coq. Specifically, they showed that for strong dependent pairs (\u03a3 types), the standard typed call-by-name CPS is\n            <jats:italic>not type preserving<\/jats:italic>\n            . They further proved that for dependent case analysis on sums, a class of typed CPS translations\u2014including the standard translation\u2014is\n            <jats:italic>not possible<\/jats:italic>\n            . In 2016, Morrisett noticed a similar problem with the standard call-by-value CPS translation for dependent functions (\u03a0 types). In essence, the problem is that the standard typed CPS translation by double-negation, in which computations are assigned types of the form (\n            <jats:italic>A<\/jats:italic>\n            \u2192 \u22a5) \u2192 \u22a5, disrupts the term\/type equivalence that is used during type checking in a dependently typed language.\n          <\/jats:p>\n          <jats:p>\n            In this paper, we prove that type-preserving CPS translation for dependently typed languages is\n            <jats:italic>not<\/jats:italic>\n            not possible. We develop both call-by-name and call-by-value CPS translations from the Calculus of Constructions with both \u03a0 and \u03a3 types (CC) to a dependently typed target language, and prove type preservation and compiler correctness of each translation. Our target language is CC extended with an additional equivalence rule and an additional typing rule, which we prove consistent by giving a model in the extensional Calculus of Constructions. Our key observation is that we can use a CPS translation that employs\n            <jats:italic>answer-type polymorphism<\/jats:italic>\n            , where CPS-translated computations have type \u2200 \u03b1. (\n            <jats:italic>A<\/jats:italic>\n            \u2192 \u03b1) \u2192 \u03b1. This type justifies, by a\n            <jats:italic>free theorem<\/jats:italic>\n            , the new equality rule in our target language and allows us to recover the term\/type equivalences that CPS translation disrupts. Finally, we conjecture that our translation extends to dependent case analysis on sums, despite the impossibility result, and provide a proof sketch.\n          <\/jats:p>","DOI":"10.1145\/3158110","type":"journal-article","created":{"date-parts":[[2017,12,29]],"date-time":"2017-12-29T14:21:49Z","timestamp":1514557309000},"page":"1-33","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":14,"title":["Type-preserving CPS translation of \u03a3 and \u03a0 types is not not possible"],"prefix":"10.1145","volume":"2","author":[{"given":"William J.","family":"Bowman","sequence":"first","affiliation":[{"name":"Northeastern University, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Youyou","family":"Cong","sequence":"additional","affiliation":[{"name":"Ochanomizu University, Japan"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Nick","family":"Rioux","sequence":"additional","affiliation":[{"name":"Northeastern University, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Amal","family":"Ahmed","sequence":"additional","affiliation":[{"name":"Northeastern University, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2017,12,27]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1007\/bfb0055109"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.SNAPL.2015.15"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/1411204.1411227"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2034773.2034830"},{"key":"e_1_2_2_5_1","volume-title":"CertiCoq: A Verified Compiler for Coq. In The International Workshop on Coq for Programming Languages (CoqPL). http:\/\/www.cs.princeton.edu\/~appel\/papers\/certicoq- coqpl.pdf","author":"Anand Abhishek","year":"2017"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/2701415"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1594834.1480894"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1016\/s0304-3975(01)00012-3"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1023\/a:1010000206149"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/503032.503043"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796812000056"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3018610.3018620"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/2784731.2784733"},{"key":"e_1_2_2_14_1","volume-title":"Type-Preserving CPS Translation of \u03a3 and \u03a0 Types Is Not Not Possible (Supplementary Materials. (Oct","author":"Bowman William J.","year":"2017"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/1806596.1806643"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2951913.2951917"},{"key":"e_1_2_2_17_1","volume-title":"An Analysis of Girard\u2019s Paradox. In Symposium on Logic in Computer Science (LICS). https: \/\/hal.inria.fr\/inria- 00076023","author":"Coquand Thierry","year":"1986"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/357766.351262"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(91)90036-W"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/155090.155113"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/2429069.2429114"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/2775051.2676975"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/11417170_16"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2012.47"},{"key":"e_1_2_2_27_1","volume-title":"Howe","author":"Hook James G.","year":"1986"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837642"},{"key":"e_1_2_2_29_1","volume-title":"International Workshop on Computer Science Logic (CSL). https:\/\/hal.inria.fr\/hal- 00730913","author":"Keller Chantal","year":"2012"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2006.08.014"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/1291220.1291179"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.CSL.2013.432"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/1111037.1111042"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-009-9155-4"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1190216.1190220"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062380"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/2784731.2784764"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/2951913.2951941"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110276"},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/2699503"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.SNAPL.2017.12"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3062341.3062347"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.1109\/lics.2017.8005113"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-54833-8_8"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/1053468.1053469"},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-08970-6_32"},{"key":"e_1_2_2_47_1","volume-title":"The Coq Proof Assistant Reference Manual. (Oct","author":"Development Team The Coq","year":"2017"},{"key":"e_1_2_2_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/604131.604144"},{"key":"e_1_2_2_49_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24725-8_20"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3158110","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3158110","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3158110","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T02:11:30Z","timestamp":1750212690000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3158110"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2017,12,27]]},"references-count":47,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2018,1]]}},"alternative-id":["10.1145\/3158110"],"URL":"https:\/\/doi.org\/10.1145\/3158110","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2017,12,27]]},"assertion":[{"value":"2017-12-27","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}