{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,3]],"date-time":"2026-10-03T00:39:16Z","timestamp":1790987956583,"version":"4.1.0"},"reference-count":51,"publisher":"Cambridge University Press (CUP)","license":[{"start":{"date-parts":[[2018,3,13]],"date-time":"2018-03-13T00:00:00Z","timestamp":1520899200000},"content-version":"unspecified","delay-in-days":71,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2018]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Full-spectrum dependent types promise to enable the development of correct-by-construction software. However, even certified software needs to interact with simply-typed or untyped programs, be it to perform system calls, or to use legacy libraries. Trading static guarantees for runtime checks, the\n                    <jats:italic>dependent interoperability<\/jats:italic>\n                    framework provides a mechanism by which simply-typed values can safely be coerced to dependent types and, conversely, dependently-typed programs can defensively be exported to a simply-typed application. In this article, we give a semantic account of dependent interoperability. Our presentation relies on and is guided by a pervading notion of type equivalence, whose importance has been emphasized in recent work on homotopy type theory. Specifically, we develop the notions of\n                    <jats:italic>type-theoretic partial Galois connections<\/jats:italic>\n                    as a key foundation for dependent interoperability, which accounts for the partiality of the coercions between types. We explore the applicability of both type-theoretic Galois connections and anticonnections in the setting of dependent interoperability. A partial Galois connection enforces a translation of dependent types to runtime checks that are both sound and complete with respect to the invariants encoded by dependent types. Conversely, picking an anticonnection instead lets us induce weaker, sound conditions that can amount to more efficient runtime checks.\n                  <\/jats:p>\n                  <jats:p>Our framework is developed in Coq; it is thus constructive and verified in the strictest sense of the terms. Using our library, users can specify domain-specific partial connections between data structures. Our library then takes care of the (sometimes, heavy) lifting that leads to interoperable programs. It thus becomes possible, as we shall illustrate, to internalize and hand-tune the extraction of dependently-typed programs to interoperable OCaml programs within Coq itself.<\/jats:p>","DOI":"10.1017\/s0956796818000011","type":"journal-article","created":{"date-parts":[[2018,3,13]],"date-time":"2018-03-13T04:10:40Z","timestamp":1520914240000},"source":"Crossref","is-referenced-by-count":18,"title":["Foundations of dependent interoperability"],"prefix":"10.1017","volume":"28","author":[{"given":"PIERRE-\u00c9VARISTE","family":"DAGAND","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"NICOLAS","family":"TABAREAU","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"\u00c9RIC","family":"TANTER","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2018,3,13]]},"reference":[{"key":"S0956796818000011_ref9","doi-asserted-by":"publisher","DOI":"10.2168\/LMCS-8(3:8)2012"},{"key":"S0956796818000011_ref16","unstructured":"Disney T. & Flanagan C. (2011) Gradual information flow typing. In Proceedings of International Workshop on Scripts to Programs."},{"key":"S0956796818000011_ref39","unstructured":"Siek J. G. , Vitousek M. M. , Cimini M. & Boyland J. T. (2015) Refined criteria for gradual typing. In Proceedings of the 1st Summit on Advances in Programming Languages (SNAPL '15), pp. 274\u2013293."},{"key":"S0956796818000011_ref25","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129505004895"},{"key":"S0956796818000011_ref20","first-page":"95","article-title":"An introduction to small scale reflection in Coq","volume":"3","author":"Gonthier","year":"2010","journal-title":"J. Formalized Reason."},{"key":"S0956796818000011_ref19","doi-asserted-by":"crossref","unstructured":"Garcia R. , Clark A. M. & Tanter \u00c9. (2016) Abstracting gradual typing. In Proceedings of the 43rd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL '16). St Petersburg, FL, USA: ACM, pp. 429\u2013442.","DOI":"10.1145\/2837614.2837670"},{"key":"S0956796818000011_ref49","doi-asserted-by":"crossref","unstructured":"Williams T. , Dagand P.-\u00c9. & R\u00e9my D. (2014) Ornaments in practice. In Proceedings of the 10th ACM SIGPLAN Workshop on Generic Programming (WGP 2014), Magalh\u00e3es J. P. & Rompf T (eds). Gothenburg, Sweden: ACM, pp. 15\u201324.","DOI":"10.1145\/2633628.2633631"},{"key":"S0956796818000011_ref42","doi-asserted-by":"crossref","unstructured":"Swierstra W. & Alpuim J. (2016) From proposition to program \u2013 embedding the refinement calculus in Coq. In Proceedings of the 13th International Symposium on Functional and Logic Programming (FLOPS '16), pp. 29\u201344.","DOI":"10.1007\/978-3-319-29604-3_3"},{"key":"S0956796818000011_ref36","doi-asserted-by":"crossref","unstructured":"Rondon P. M. , Kawaguchi M. & Jhala R. (2008) Liquid types. In Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI 2008), Gupta, Rajiv, & Amarasinghe, Saman P. (eds). ACM, pp. 159\u2013169.","DOI":"10.1145\/1375581.1375602"},{"key":"S0956796818000011_ref8","doi-asserted-by":"crossref","DOI":"10.7551\/mitpress\/9153.001.0001","volume-title":"Certified Programming with Dependent Types","author":"Chlipala","year":"2013"},{"key":"S0956796818000011_ref24","unstructured":"Ko H.-S. , & Gibbons J. (2013) Relational algebraic ornaments. In Proceedings of the ACM SIGPLAN Workshop on Dependently Typed Programming (DTP '13). ACM, pp. 37\u201348."},{"key":"S0956796818000011_ref14","unstructured":"Dagand P.-E. , Tabareau N. , & Tanter \u00c9. (2016) Partial type equivalences for verified dependent interoperability. In Proceedings of the 21st ACM Sigplan Conference on Functional Programming (ICFP '16). Nara, Japan: ACM, pp. 298\u2013310."},{"key":"S0956796818000011_ref26","unstructured":"Lehmann N. & Tanter \u00c9. (2017) Gradual refinement types. In Proceedings of the 44th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL '17). Paris, France: ACM, pp. 775\u2013788."},{"key":"S0956796818000011_ref50","unstructured":"Xi H. & Pfenning F. (1998) Eliminating array bound checking through dependent types. In Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI '98). ACM, pp. 249\u2013257."},{"key":"S0956796818000011_ref6","doi-asserted-by":"publisher","DOI":"10.1145\/3018610.3018620"},{"key":"S0956796818000011_ref44","unstructured":"The Coq Development Team. (2016) The Coq Proof Assistant Reference Manual. Version 8.6."},{"key":"S0956796818000011_ref23","doi-asserted-by":"publisher","DOI":"10.1145\/1667048.1667051"},{"key":"S0956796818000011_ref15","doi-asserted-by":"crossref","unstructured":"Delaware B. , Pit-Claudel C. , Gross J. & Chlipala A. (2015) Fiat: Deductive synthesis of abstract data types in a proof assistant. In Proceedings of the 42nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL '15). Mumbai, India: ACM, pp. 689\u2013700.","DOI":"10.1145\/2676726.2677006"},{"key":"S0956796818000011_ref45","unstructured":"The Univalent Foundations Program. (2013) Homotopy Type Theory: Univalent Foundations of Mathematics. Institute for Advanced Study: http:\/\/homotopytypetheory.org\/book."},{"key":"S0956796818000011_ref38","unstructured":"Siek J. & Taha W. (2006) Gradual typing for functional languages. In Proceedings of the Scheme and Functional Programming Workshop, pp. 81\u201392."},{"key":"S0956796818000011_ref27","unstructured":"Letouzey P. (2004) Programmation fonctionnelle certifi\u00e9e \u2013 l'extraction de programmes dans l'assistant Coq. Ph.D. thesis, Universit\u00e9 Paris-Sud."},{"key":"S0956796818000011_ref11","unstructured":"Cohen C. , D\u00e9n\u00e8s M. & M\u00f6rtberg A. (2013) Refinements for free! In Proceedings of the 3rd International Conference on Certified Programs and Proofs (CPP '13), pp. 147\u2013162."},{"key":"S0956796818000011_ref3","doi-asserted-by":"crossref","unstructured":"Ba\u00f1ados F. , Garcia R. & Tanter \u00c9. (2014) A theory of gradual effect systems. In Proceedings of the 19th ACM Sigplan Conference on Functional Programming (ICFP '14). Gothenburg, Sweden: ACM, pp. 283\u2013295.","DOI":"10.1145\/2628136.2628149"},{"key":"S0956796818000011_ref40","doi-asserted-by":"crossref","unstructured":"Sozeau M. (2010) Equations: A dependent pattern-matching compiler. In Proceedings of the 1st International Conference on Interactive Theorem proving (ITP '10), Kaufmann M. & Paulson L. C. (eds). Lecture Notes in Computer Science, vol. 6172. Springer-Verlag, pp. 419\u2013434.","DOI":"10.1007\/978-3-642-14052-5_29"},{"key":"S0956796818000011_ref22","doi-asserted-by":"crossref","unstructured":"Hyland J. M. E. (1991) First steps in synthetic domain theory. In Proceedings of the International Conference on Category Theory. Como, Italy: Springer-Verlag, pp. 131\u2013156.","DOI":"10.1007\/BFb0084217"},{"key":"S0956796818000011_ref4","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796816000162"},{"key":"S0956796818000011_ref32","doi-asserted-by":"crossref","unstructured":"McKinna J. (2006) Why dependent types matter. In Proceedings of the 33rd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL '06). Charleston, South Carolina, USA: ACM, p. 1.","DOI":"10.1145\/1111037.1111038"},{"key":"S0956796818000011_ref13","doi-asserted-by":"crossref","unstructured":"Dagand P.-\u00c9. & McBride C. (2012) Transporting functions across ornaments. In Proceedings of the 17th ACM Sigplan Conference on Functional Programming (ICFP '12). Copenhagen, Denmark: ACM, pp. 103\u2013114.","DOI":"10.1145\/2364527.2364544"},{"key":"S0956796818000011_ref33","doi-asserted-by":"crossref","unstructured":"Mishra-Linger N. & Sheard T. (2008) Erasure and polymorphism in pure type systems. In Proceedings of the 11th International Conference on Foundations of Software Science and Computational Structures (FOSSACS '08). Lecture Notes in Computer Science, vol. 4962. Springer-Verlag, pp. 350\u2013364.","DOI":"10.1007\/978-3-540-78499-9_25"},{"key":"S0956796818000011_ref34","unstructured":"Osera P.-M. , Sj\u00f6berg V. & Zdancewic S. (2012) Dependent interoperability. In Proceedings of the 6th Workshop on Programming Languages Meets Program Verification (PLPV '12). ACM, pp. 3\u201314."},{"key":"S0956796818000011_ref37","doi-asserted-by":"crossref","unstructured":"Sekiyama T. , Nishida Y. , & Igarashi A. (2015) Manifest contracts for datatypes. In Proceedings of the 42nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL '15). Mumbai, India: ACM, pp. 195\u2013207.","DOI":"10.1145\/2676726.2676996"},{"key":"S0956796818000011_ref35","unstructured":"Ou X. , Tan G. , Mandelbaum Y. & Walker D. (2004) Dynamic typing with dependent types. In Proceedings of the ifip International Conference on Theoretical Computer Science, pp. 437\u2013450."},{"key":"S0956796818000011_ref48","unstructured":"Wadler P. & Blott S. (1989) How to make ad-hoc polymorphism less ad hoc. In Proceedings of the 16th ACM Symposium on Principles of Programming Languages (POPL '89). Austin, TX, USA: ACM, pp. 60\u201376."},{"key":"S0956796818000011_ref41","doi-asserted-by":"crossref","unstructured":"Sozeau M. & Oury N. (2008) First-class type classes. In Proceedings of the 21st International Conference on Theorem Proving in Higher-Order Logics, pp. 278\u2013293.","DOI":"10.1007\/978-3-540-71067-7_23"},{"key":"S0956796818000011_ref5","doi-asserted-by":"publisher","DOI":"10.1145\/3018610.3018615"},{"key":"S0956796818000011_ref21","unstructured":"Hofmann M. & Streicher T. (1994) The groupoid model refutes uniqueness of identity proofs. In Proceedings of the 9th Symposium on Logic In Computer Science (LICS '94). IEEE Computer Society Press, pp. 208\u2013212."},{"key":"S0956796818000011_ref2","doi-asserted-by":"publisher","DOI":"10.1093\/logcom\/14.4.447"},{"key":"S0956796818000011_ref51","unstructured":"Zimmermann T. & Herbelin H. (2015) Automatic and Transparent Transfer of Theorems Along Isomorphisms in the Coq Proof Assistant. arXiv:1505.05028v4."},{"key":"S0956796818000011_ref17","doi-asserted-by":"crossref","unstructured":"Fennell L. , & Thiemann P. (2013) Gradual security typing with references. In Proceedings of the 26th Computer Security Foundations Symposium (CSF), pp. 224\u2013239.","DOI":"10.1109\/CSF.2013.22"},{"key":"S0956796818000011_ref28","doi-asserted-by":"crossref","unstructured":"Levy P. B. (2017) Contextual isomorphisms. In Proceedings of the 44th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL '17). Paris, France: ACM, pp. 400\u2013414.","DOI":"10.1145\/3009837.3009898"},{"key":"S0956796818000011_ref7","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24849-1_8"},{"key":"S0956796818000011_ref47","unstructured":"Toro M. & Tanter \u00c9. (2015) Customizable gradual polymorphic effects for Scala. In Proceedings of the 30th ACM SIGPLAN Conference on Object-Oriented Programming Systems, Languages and Applications (OOPSLA '15). Pittsburgh, PA, USA: ACM, pp. 935\u2013953."},{"key":"S0956796818000011_ref1","unstructured":"Altenkirch T. , McBride, C. & Swierstra W. (2007) Observational equality, now! In Proceedings of the ACM Workshop on Programming Languages Meets Program Verification (PLPV '07), pp. 57\u201368."},{"key":"S0956796818000011_ref29","doi-asserted-by":"crossref","unstructured":"Matthews J. , & Findler R. B. (2007) Operational semantics for multi-language programs. In Proceedings of the 34th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL '07). Nice, France: ACM, pp. 3\u201310.","DOI":"10.1145\/1190216.1190220"},{"key":"S0956796818000011_ref18","doi-asserted-by":"publisher","DOI":"10.1145\/581478.581484"},{"key":"S0956796818000011_ref10","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796816000174"},{"key":"S0956796818000011_ref30","unstructured":"McBride C. (2000) Elimination with a motive. In Proceedings of the International Workshop on Types for Proofs and Programs (types 2000), pp. 197\u2013216."},{"key":"S0956796818000011_ref46","unstructured":"Thiemann P. & Fennell L. (2014) Gradual typing for annotated type systems. In Proceedings of the 23rd European Symposium on Programming Languages and Systems (ESOP '14), Shao Z. (ed). Lecture Notes in Computer Science, vol. 8410. Grenoble, France: Springer-Verlag, pp. 47\u201366."},{"key":"S0956796818000011_ref12","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129505004871"},{"key":"S0956796818000011_ref31","unstructured":"McBride C. (2010) Ornamental Algebras, Algebraic Ornaments. Technical Report, University of Strathclyde."},{"key":"S0956796818000011_ref43","unstructured":"Tanter \u00c9. & Tabareau N. (2015) Gradual certified programming in Coq. In Proceedings of the 11th ACM Dynamic Languages Symposium (DLS '15). Pittsburgh, PA, USA: ACM, pp. 26\u201340."}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796818000011","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:45Z","timestamp":1779835005000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796818000011\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2018]]},"references-count":51,"alternative-id":["S0956796818000011"],"URL":"https:\/\/doi.org\/10.1017\/s0956796818000011","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2018]]},"article-number":"e9"}}