{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,30]],"date-time":"2026-08-30T00:07:11Z","timestamp":1788048431385,"version":"build-2784847793"},"reference-count":46,"publisher":"Cambridge University Press (CUP)","issue":"5","license":[{"start":{"date-parts":[[2009,7,23]],"date-time":"2009-07-23T00:00:00Z","timestamp":1248307200000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/www.cambridge.org\/core\/terms"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2009,9]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Relational program derivation is the technique of stepwise refining a relational specification to a program by algebraic rules. The program thus obtained is correct by construction. Meanwhile, dependent type theory is rich enough to express various correctness properties to be verified by the type checker. We have developed a library,\n                    <jats:monospace>AoPA<\/jats:monospace>\n                    (Algebra of Programming in Agda), to encode relational derivations in the dependently typed programming language Agda. A program is coupled with an algebraic derivation whose correctness is guaranteed by the type system. Two non-trivial examples are presented: an optimisation problem and a derivation of quicksort in which well-founded recursion is used to model terminating hylomorphisms in a language with inductive types.\n                  <\/jats:p>","DOI":"10.1017\/s0956796809007345","type":"journal-article","created":{"date-parts":[[2009,7,23]],"date-time":"2009-07-23T09:53:10Z","timestamp":1248342790000},"page":"545-579","source":"Crossref","is-referenced-by-count":27,"title":["Algebra of programming in Agda: Dependent types for relational program derivation"],"prefix":"10.1017","volume":"19","author":[{"given":"SHIN-CHENG","family":"MU","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"HSIANG-SHANG","family":"KO","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"PATRIK","family":"JANSSON","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2009,7,23]]},"reference":[{"key":"S0956796809007345_ref14","volume-title":"First-Class Phantom Types","author":"Cheney","year":"2003"},{"key":"S0956796809007345_ref31","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796803004829"},{"key":"S0956796809007345_ref23","first-page":"129","volume-title":"TLCA'99","author":"Dybjer","year":"1999"},{"key":"S0956796809007345_ref1","unstructured":"Agda Team, The. (2007) The Agda wiki [online]. Available at: http:\/\/wiki.portal.chalmers.se\/agda\/ (Accessed 3 July 2009)."},{"key":"S0956796809007345_ref12","first-page":"115","volume-title":"Types for Proofs and Programs","author":"Brady","year":"2003"},{"key":"S0956796809007345_ref7","doi-asserted-by":"publisher","DOI":"10.1093\/comjnl\/32.2.122"},{"key":"S0956796809007345_ref34","doi-asserted-by":"publisher","DOI":"10.1007\/3540543961_7"},{"key":"S0956796809007345_ref27","first-page":"33","volume-title":"Formal Development Programs and Proofs","author":"Gries","year":"1989"},{"key":"S0956796809007345_ref22","doi-asserted-by":"publisher","DOI":"10.1007\/BF01211308"},{"key":"S0956796809007345_ref33","first-page":"11","volume-title":"Proceedings of the ACM Workshop Programming Languages meets Program Verification","author":"Megacz","year":"2007"},{"key":"S0956796809007345_ref20","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-60117-1_14"},{"key":"S0956796809007345_ref36","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2003.09.003"},{"key":"S0956796809007345_ref13","doi-asserted-by":"publisher","DOI":"10.1093\/comjnl\/12.1.41"},{"key":"S0956796809007345_ref29","first-page":"42","volume-title":"The 33th Symposium on Principles of Programming Languages","author":"Leroy","year":"2006"},{"key":"S0956796809007345_ref19","unstructured":"Doornbos H. (1996) Reductivity Arguments and Program Construction, PhD thesis. Eindhoven University of Technology."},{"key":"S0956796809007345_ref30","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-58085-9_78"},{"key":"S0956796809007345_ref15","volume-title":"The Coq Proof Assistant Reference Manual","year":"2006"},{"key":"S0956796809007345_ref46","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796806006216"},{"key":"S0956796809007345_ref25","doi-asserted-by":"publisher","DOI":"10.1007\/11780274_27"},{"key":"S0956796809007345_ref41","volume-title":"Symposium on Principles of Programming Languages","author":"Paulin-Mohring","year":"1989"},{"key":"S0956796809007345_ref8","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-74884-4_5"},{"key":"S0956796809007345_ref18","unstructured":"Danielsson N. A. , Norell U. , Mu S-C. , Bronson S. , Doel D. , Jansson P. & Chen L-T. (2009) The Agda standard library [online]. Available at: http:\/\/wiki.portal.chalmers.se\/agda\/pmwiki.php?n=Libraries.StandardLibrary (Accessed 3 July 2009)."},{"key":"S0956796809007345_ref32","first-page":"32","volume-title":"International Symposium on Mathematical Foundations of Computer Science","author":"McKinna","year":"1993"},{"key":"S0956796809007345_ref2","first-page":"239","volume-title":"ACM SIGPLAN International Conference on Functional Programming","author":"Augustsson","year":"1998"},{"key":"S0956796809007345_ref5","first-page":"7","volume-title":"Formal Program Development","author":"Backhouse","year":"1992"},{"key":"S0956796809007345_ref42","first-page":"158","volume-title":"Programming in \u03a9mega","author":"Sheard","year":"2008"},{"key":"S0956796809007345_ref6","first-page":"287","volume-title":"IFIP TC2\/WG2.1 Working Conference on Constructing Programs","author":"Backhouse","year":"1991"},{"key":"S0956796809007345_ref38","unstructured":"Mu S-C. , Ko H-S. & Jansson P. (2008b) AoPA: Algebra of programming in Agda [online]. Available at: http:\/\/www.iis.sinica.edu.tw\/~scm\/2008\/aopa\/ (Accessed 3 July 2009)."},{"key":"S0956796809007345_ref17","first-page":"843","volume-title":"Formal Models and Semantics","author":"Cousot","year":"1990"},{"key":"S0956796809007345_ref37","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-70594-9_15"},{"key":"S0956796809007345_ref4","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-47797-7_4"},{"key":"S0956796809007345_ref9","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(95)00033-X"},{"key":"S0956796809007345_ref10","volume-title":"Algebra of Programming","author":"Bird","year":"1997"},{"key":"S0956796809007345_ref40","unstructured":"Norell U. (2007) Towards a Practical Programming Language Based on Dependent Type Theory, PhD thesis. Chalmers University of Technology."},{"key":"S0956796809007345_ref45","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(90)90147-A"},{"key":"S0956796809007345_ref44","doi-asserted-by":"publisher","DOI":"10.2140\/pjm.1955.5.285"},{"key":"S0956796809007345_ref39","doi-asserted-by":"publisher","DOI":"10.1007\/BF01941137"},{"key":"S0956796809007345_ref21","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(95)00027-5"},{"key":"S0956796809007345_ref16","volume-title":"Introduction to Algorithms","author":"Cormen","year":"2001"},{"key":"S0956796809007345_ref26","unstructured":"Gonzal\u00eda C. (2006) Relations in Dependent Type Theory, PhD thesis. Chalmers University of Technology."},{"key":"S0956796809007345_ref35","doi-asserted-by":"publisher","DOI":"10.1145\/1328408.1328414"},{"key":"S0956796809007345_ref11","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129505004822"},{"key":"S0956796809007345_ref28","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(90)90108-T"},{"key":"S0956796809007345_ref3","unstructured":"Augustsson L. (1999) Equality proofs in Cayenne [online]. Available at: http:\/\/www.cs.chalmers.se\/~augustss\/cayenne\/eqproof.ps (Accessed 3 July 2009)."},{"key":"S0956796809007345_ref43","volume-title":"Symposium on Principles of Programming Languages","author":"Sweeney","year":"2006"},{"key":"S0956796809007345_ref24","doi-asserted-by":"publisher","DOI":"10.1090\/psapm\/019\/0235771"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796809007345","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:20Z","timestamp":1779834980000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796809007345\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2009,7,23]]},"references-count":46,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2009,9]]}},"alternative-id":["S0956796809007345"],"URL":"https:\/\/doi.org\/10.1017\/s0956796809007345","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2009,7,23]]}}}