{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T23:06:04Z","timestamp":1779836764577,"version":"3.53.1"},"reference-count":46,"publisher":"Cambridge University Press (CUP)","license":[{"start":{"date-parts":[[2021,11,2]],"date-time":"2021-11-02T00:00:00Z","timestamp":1635811200000},"content-version":"unspecified","delay-in-days":305,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["cambridge.org"],"crossmark-restriction":true},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2021]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Relational cost analysis aims at formally establishing bounds on the difference in the evaluation costs of two programs. As a particular case, one can also use relational cost analysis to establish bounds on the difference in the evaluation cost of the same program on two different inputs. One way to perform relational cost analysis is to use a relational type-and-effect system that supports reasoning about relations between two executions of two programs. Building on this basic idea, we present a type-and-effect system, called ARel, for reasoning about the relative cost (the difference in the evaluation cost) of array-manipulating, higher order functional-imperative programs. The key ingredient of our approach is a new lightweight type refinement discipline that we use to track relations (differences) between two mutable arrays. This discipline combined with Hoare-style triples built into the types allows us to express and establish precise relative costs of several interesting programs that imperatively update their data. We have implemented ARel using ideas from bidirectional type checking.<\/jats:p>","DOI":"10.1017\/s0956796821000071","type":"journal-article","created":{"date-parts":[[2021,11,2]],"date-time":"2021-11-02T03:41:35Z","timestamp":1635824495000},"update-policy":"https:\/\/doi.org\/10.1017\/policypage","source":"Crossref","is-referenced-by-count":4,"title":["Relational cost analysis in a functional-imperative setting"],"prefix":"10.1017","volume":"31","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-1027-6556","authenticated-orcid":false,"given":"WEIHAO","family":"QU","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"MARCO","family":"GABOARDI","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0888-3093","authenticated-orcid":false,"given":"DEEPAK","family":"GARG","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2021,11,2]]},"reference":[{"key":"S0956796821000071_ref3","volume-title":"Semantics of types for mutable state","author":"Ahmed","year":"2004"},{"key":"S0956796821000071_ref44","doi-asserted-by":"publisher","DOI":"10.1145\/3133903"},{"key":"S0956796821000071_ref8","doi-asserted-by":"publisher","DOI":"10.1145\/2676726.2677000"},{"key":"S0956796821000071_ref38","doi-asserted-by":"publisher","DOI":"10.1145\/345099.345100"},{"key":"S0956796821000071_ref13","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-54862-8_10"},{"key":"S0956796821000071_ref22","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328457"},{"key":"S0956796821000071_ref7","doi-asserted-by":"publisher","DOI":"10.1145\/2535838.2535847"},{"key":"S0956796821000071_ref5","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-11957-6_6"},{"key":"S0956796821000071_ref16","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-22102-1_9"},{"key":"S0956796821000071_ref14","doi-asserted-by":"publisher","DOI":"10.1145\/2737924.2737955"},{"key":"S0956796821000071_ref18","doi-asserted-by":"publisher","DOI":"10.1145\/3314221.3314603"},{"key":"S0956796821000071_ref11","doi-asserted-by":"publisher","DOI":"10.1145\/2967973.2968602"},{"key":"S0956796821000071_ref21","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2011.22"},{"key":"S0956796821000071_ref19","doi-asserted-by":"publisher","DOI":"10.1090\/S0025-5718-1965-0178586-1"},{"key":"S0956796821000071_ref15","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009858"},{"key":"S0956796821000071_ref25","doi-asserted-by":"publisher","DOI":"10.1145\/2429069.2429113"},{"key":"S0956796821000071_ref35","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796811000165"},{"key":"S0956796821000071_ref2","doi-asserted-by":"publisher","DOI":"10.1145\/1480881.1480925"},{"key":"S0956796821000071_ref28","doi-asserted-by":"publisher","DOI":"10.1145\/2362389.2362393"},{"key":"S0956796821000071_ref37","doi-asserted-by":"crossref","unstructured":"Nielson, F. & Nielson, H. (1999) Type and effect systems. In Correct System Design. Lecture Notes in Computer Science, vol. 1710, pp. 114\u2013136.","DOI":"10.1007\/3-540-48092-7_6"},{"key":"S0956796821000071_ref9","doi-asserted-by":"publisher","DOI":"10.1145\/964001.964003"},{"key":"S0956796821000071_ref40","doi-asserted-by":"publisher","DOI":"10.1145\/182409.182439"},{"key":"S0956796821000071_ref27","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2005.02.006"},{"key":"S0956796821000071_ref17","doi-asserted-by":"publisher","DOI":"10.1145\/2951913.2951950"},{"key":"S0956796821000071_ref32","unstructured":"Lichtman, B. & Hoffmann, J. (2017) Arrays and references in resource aware ML. In The 2nd International Conference on Formal Structures for Computation and Deduction, FSCD."},{"key":"S0956796821000071_ref36","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2017.53"},{"key":"S0956796821000071_ref20","doi-asserted-by":"publisher","DOI":"10.1145\/3408979"},{"key":"S0956796821000071_ref41","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-08867-9_50"},{"key":"S0956796821000071_ref1","doi-asserted-by":"publisher","DOI":"10.1007\/11693024_6"},{"key":"S0956796821000071_ref6","doi-asserted-by":"publisher","DOI":"10.1145\/3110287"},{"key":"S0956796821000071_ref24","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-37036-6_8"},{"key":"S0956796821000071_ref46","doi-asserted-by":"publisher","DOI":"10.1145\/2694344.2694372"},{"key":"S0956796821000071_ref33","doi-asserted-by":"publisher","DOI":"10.1145\/2491522.2491523"},{"key":"S0956796821000071_ref29","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31424-7_64"},{"key":"S0956796821000071_ref34","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796808006953"},{"key":"S0956796821000071_ref45","doi-asserted-by":"publisher","DOI":"10.1145\/292540.292560"},{"key":"S0956796821000071_ref31","doi-asserted-by":"publisher","DOI":"10.1145\/1882362.1882405"},{"key":"S0956796821000071_ref26","doi-asserted-by":"publisher","DOI":"10.1145\/507635.507666"},{"key":"S0956796821000071_ref30","doi-asserted-by":"publisher","DOI":"10.1145\/3371083"},{"key":"S0956796821000071_ref23","doi-asserted-by":"publisher","DOI":"10.1145\/2784731.2784749"},{"key":"S0956796821000071_ref43","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-63390-9_30"},{"key":"S0956796821000071_ref4","doi-asserted-by":"publisher","DOI":"10.1145\/504709.504712"},{"key":"S0956796821000071_ref10","doi-asserted-by":"publisher","DOI":"10.1145\/2535838.2535869"},{"key":"S0956796821000071_ref12","unstructured":"Bobot, F. , Conchon, S. , Contejean, E. , Iguernelala, M. , Lescuyer, S. & Mebsout, A. (2013) The alt-ergo automated theorem prover, 2008."},{"key":"S0956796821000071_ref39","first-page":"36","article-title":"Monadic refinements for relational cost analysis","volume":"2","author":"Radicek","year":"2018","journal-title":"PACMPL"},{"key":"S0956796821000071_ref42","doi-asserted-by":"publisher","DOI":"10.1145\/2429069.2429111"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796821000071","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:56Z","timestamp":1779835016000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796821000071\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021]]},"references-count":46,"alternative-id":["S0956796821000071"],"URL":"https:\/\/doi.org\/10.1017\/s0956796821000071","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021]]},"assertion":[{"value":"\u00a9 The Author(s), 2021. Published by Cambridge University Press","name":"copyright","label":"Copyright","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https:\/\/creativecommons.org\/licenses\/by\/4.0\/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.","name":"license","label":"License","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"This content has been made available to all.","name":"free","label":"Free to read"}],"article-number":"e27"}}