{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,30]],"date-time":"2026-04-30T10:29:22Z","timestamp":1777544962900,"version":"3.51.4"},"reference-count":41,"publisher":"Association for Computing Machinery (ACM)","issue":"ICFP","license":[{"start":{"date-parts":[[2021,8,19]],"date-time":"2021-08-19T00:00:00Z","timestamp":1629331200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2021,8,22]]},"abstract":"<jats:p>\n            Formal languages are usually defined in terms of set theory. Choosing type theory instead gives us languages as type-level predicates over strings. Applying a language to a string yields a type whose elements are language membership proofs describing\n            <jats:italic>how<\/jats:italic>\n            a string parses in the language. The usual building blocks of languages (including union, concatenation, and Kleene closure) have precise and compelling specifications uncomplicated by operational strategies and are easily generalized to a few general domain-transforming and codomain-transforming operations on predicates.\n          <\/jats:p>\n          <jats:p>A simple characterization of languages (and indeed functions from lists to any type) captures the essential idea behind language \u201cdifferentiation\u201d as used for recognizing languages, leading to a collection of lemmas about type-level predicates. These lemmas are the heart of two dual parsing implementations\u2014using (inductive) regular expressions and (coinductive) tries\u2014each containing the same code but in dual arrangements (with representation and primitive operations trading places). The regular expression version corresponds to symbolic differentiation, while the trie version corresponds to automatic differentiation.<\/jats:p>\n          <jats:p>The relatively easy-to-prove properties of type-level languages transfer almost effortlessly to the decidable implementations. In particular, despite the inductive and coinductive nature of regular expressions and tries respectively, we need neither inductive nor coinductive\/bisimulation arguments to prove algebraic properties.<\/jats:p>","DOI":"10.1145\/3473583","type":"journal-article","created":{"date-parts":[[2021,8,19]],"date-time":"2021-08-19T10:44:29Z","timestamp":1629369869000},"page":"1-18","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":5,"title":["Symbolic and automatic differentiation of languages"],"prefix":"10.1145","volume":"5","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-9480-9518","authenticated-orcid":false,"given":"Conal","family":"Elliott","sequence":"first","affiliation":[{"name":"n.n., n.n."}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2021,8,19]]},"reference":[{"key":"e_1_2_2_1_1","volume-title":"Semi-continuous sized types and termination. Logical Methods in Computer Science, 4, 2","author":"Abel Andreas","year":"2008"},{"key":"e_1_2_2_2_1","unstructured":"Andreas Abel. 2016. Equational reasoning about formal languages in coalgebraic style. http:\/\/www.cse.chalmers.se\/~abela\/jlamp17.pdf draft.  Andreas Abel. 2016. Equational reasoning about formal languages in coalgebraic style. http:\/\/www.cse.chalmers.se\/~abela\/jlamp17.pdf draft."},{"key":"e_1_2_2_3_1","volume-title":"Well-founded recursion with copatterns and sized types. Journal of Functional Programming, 26","author":"Abel Andreas","year":"2016"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2429069.2429075"},{"key":"e_1_2_2_5_1","unstructured":"Agda Team. 2020. The Agda standard library. https:\/\/github.com\/agda\/agda-stdlib  Agda Team. 2020. The Agda standard library. https:\/\/github.com\/agda\/agda-stdlib"},{"key":"e_1_2_2_6_1","volume-title":"Regular expressions in Agda","author":"Agular Alexandre"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(95)00182-4"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.317.3"},{"key":"e_1_2_2_9_1","doi-asserted-by":"crossref","unstructured":"Ana Bove Peter Dybjer and Ulf Norell. 2009. A brief overview of Agda \u2014 A functional language with dependent types. In Theorem Proving in Higher Order Logics. http:\/\/www.cse.chalmers.se\/~ulfn\/papers\/tphols09\/tutorial.pdf  Ana Bove Peter Dybjer and Ulf Norell. 2009. A brief overview of Agda \u2014 A functional language with dependent types. In Theorem Proving in Higher Order Logics. http:\/\/www.cse.chalmers.se\/~ulfn\/papers\/tphols09\/tutorial.pdf","DOI":"10.1007\/978-3-642-03359-9_6"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/321239.321249"},{"key":"e_1_2_2_11_1","volume-title":"Computer Programming and Formal Systems (Studies in Logic and the Foundations of Mathematics","volume":"161","author":"Chomsky N."},{"key":"e_1_2_2_12_1","volume-title":"A generalization of the trie data structure. Mathematical Structures in Computer Science, 5, 3","author":"Connelly Richard H.","year":"1995"},{"key":"e_1_2_2_13_1","volume-title":"Third International Conference (CPP","author":"Doczkal Christian","year":"2013"},{"key":"e_1_2_2_14_1","unstructured":"Brijesh Dongol Ian J. Hayes and Georg Struth. 2016. Convolution as a unifying concept: Applications in separation logic interval calculi and concurrency. ACM Transactions on Computational Logic Feb. 15:1\u201315:25. https:\/\/bura.brunel.ac.uk\/bitstream\/2438\/12133\/1\/Fulltext.pdf  Brijesh Dongol Ian J. Hayes and Georg Struth. 2016. Convolution as a unifying concept: Applications in separation logic interval calculi and concurrency. ACM Transactions on Computational Logic Feb. 15:1\u201315:25. https:\/\/bura.brunel.ac.uk\/bitstream\/2438\/12133\/1\/Fulltext.pdf"},{"key":"e_1_2_2_15_1","unstructured":"Manfred Droste and Dietrich Kuske. 2019. Weighted automata. Jan https:\/\/eiche.theoinf.tu-ilmenau.de\/person\/kuske\/public_html\/weiterleitung.html?Submitted\/weighted.pdf unpublished.  Manfred Droste and Dietrich Kuske. 2019. Weighted automata. Jan https:\/\/eiche.theoinf.tu-ilmenau.de\/person\/kuske\/public_html\/weiterleitung.html?Submitted\/weighted.pdf unpublished."},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/3236765"},{"key":"e_1_2_2_17_1","volume-title":"Generalized convolution and efficient language recognition. CoRR, abs\/1903.10677","author":"Elliott Conal","year":"2019"},{"key":"e_1_2_2_18_1","unstructured":"Conal Elliott. 2021. Source repository for \u201cSymbolic and automatic differentiation of languages\u201d. https:\/\/github.com\/conal\/paper-2021-language-derivatives  Conal Elliott. 2021. Source repository for \u201cSymbolic and automatic differentiation of languages\u201d. https:\/\/github.com\/conal\/paper-2021-language-derivatives"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-03545-1_7"},{"key":"e_1_2_2_20_1","volume-title":"International Conference on Algebra in Memory of Kostia Beidar. http:\/\/citeseerx.ist.psu.edu\/viewdoc\/summary?doi=10","author":"Golan Jonathan S.","year":"2005"},{"key":"e_1_2_2_21_1","unstructured":"Joshua Goodman. 1998. Parsing Inside-Out. Ph.D. Dissertation. Harvard University. arxiv:cmp-lg\/9805007  Joshua Goodman. 1998. Parsing Inside-Out. Ph.D. Dissertation. Harvard University. arxiv:cmp-lg\/9805007"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.5555\/973226.973230"},{"key":"e_1_2_2_23_1","first-page":"78","article-title":"A tutorial on co-induction and functional programming","volume":"1994","author":"Gordon Andrew D.","year":"1995","journal-title":"Functional Programming, Glasgow"},{"key":"e_1_2_2_24_1","unstructured":"Andreas Griewank. 1989. On automatic differentiation. In In Mathematical Programming: Recent Developments and Applications.  Andreas Griewank. 1989. On automatic differentiation. In In Mathematical Programming: Recent Developments and Applications."},{"key":"e_1_2_2_25_1","volume-title":"Principles and Techniques of Algorithmic Differentiation","author":"Griewank Andreas"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796800003713"},{"key":"e_1_2_2_27_1","unstructured":"Graham Hutton and Erik Meijer. 1996. Monadic parser combinators. http:\/\/citeseerx.ist.psu.edu\/viewdoc\/summary?doi=10.1.1.54.1678  Graham Hutton and Erik Meijer. 1996. Monadic parser combinators. http:\/\/citeseerx.ist.psu.edu\/viewdoc\/summary?doi=10.1.1.54.1678"},{"key":"e_1_2_2_28_1","unstructured":"Donald E. Knuth. 1998. The Art of Computer Programming Volume 3: (2nd Ed.) Sorting and Searching. Addison Wesley Longman Publishing Co. Inc..  Donald E. Knuth. 1998. The Art of Computer Programming Volume 3: (2nd Ed.) Sorting and Searching. Addison Wesley Longman Publishing Co. Inc.."},{"key":"e_1_2_2_29_1","volume-title":"Licata","author":"Korkut Joomy","year":"2016"},{"key":"e_1_2_2_30_1","first-page":"1","article-title":"Parsec: A practical parser library","volume":"41","author":"Leijen Daan","year":"2001","journal-title":"Electronic Notes in Theoretical Computer Science"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2004.10.016"},{"key":"e_1_2_2_33_1","unstructured":"Per Martin-L\u00f6f and Giovanni Sambin. 1984. Intuitionistic Type Theory. 9 Bibliopolis Naples.  Per Martin-L\u00f6f and Giovanni Sambin. 1984. Intuitionistic Type Theory. 9 Bibliopolis Naples."},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796807006326"},{"key":"e_1_2_2_35_1","volume-title":"Yacc is dead. CoRR, abs\/1010.5023","author":"Might Matthew","year":"2010"},{"key":"e_1_2_2_36_1","doi-asserted-by":"crossref","unstructured":"Ulf Norell. 2008. Dependently typed programming in Agda. In Revised Lectures of the Sixth International Spring School on Advanced Functional Programming (Lecture Notes in Computer Science). http:\/\/www.cse.chalmers.se\/~ulfn\/papers\/afp08\/tutorial.pdf  Ulf Norell. 2008. Dependently typed programming in Agda. In Revised Lectures of the Sixth International Spring School on Advanced Functional Programming (Lecture Notes in Computer Science). http:\/\/www.cse.chalmers.se\/~ulfn\/papers\/afp08\/tutorial.pdf","DOI":"10.1007\/978-3-642-04652-0_5"},{"key":"e_1_2_2_37_1","volume-title":"ESOP 2018, Proceedings, Amal Ahmed (Ed.). https:\/\/handin-ps.informatik.uni-tuebingen.de\/publications\/ostermann18dualizing.pdf","author":"Ostermann Klaus","year":"2018"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0019-9958(61)80020-X"},{"key":"e_1_2_2_39_1","unstructured":"S Doaitse Swierstra. 2008. Combinator parsing: A short tutorial. In International LerNet ALFA Summer School on Language Engineering and Rigorous Software Development. 252\u2013300. http:\/\/citeseerx.ist.psu.edu\/viewdoc\/summary?doi=10.1.1.184.7953  S Doaitse Swierstra. 2008. Combinator parsing: A short tutorial. In International LerNet ALFA Summer School on Language Engineering and Rigorous Software Development. 252\u2013300. http:\/\/citeseerx.ist.psu.edu\/viewdoc\/summary?doi=10.1.1.184.7953"},{"key":"e_1_2_2_40_1","unstructured":"Axel Thue. 1912. \u00dcber die gegenseitige Lage gleicher Teile gewisser Zeichenreihen. Jacob Dybwad. https:\/\/archive.org\/details\/skrifterutgitavv121chri  Axel Thue. 1912. \u00dcber die gegenseitige Lage gleicher Teile gewisser Zeichenreihen. Jacob Dybwad. https:\/\/archive.org\/details\/skrifterutgitavv121chri"},{"key":"e_1_2_2_41_1","volume-title":"Logical Methods in Computer Science","volume":"13","author":"Traytel Dmitriy","year":"2017"},{"key":"e_1_2_2_42_1","volume-title":"Propositions as types. Commun. ACM, 58, 12","author":"Wadler Philip","year":"2015"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3473583","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3473583","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T21:28:16Z","timestamp":1750195696000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3473583"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,8,19]]},"references-count":41,"journal-issue":{"issue":"ICFP","published-print":{"date-parts":[[2021,8,22]]}},"alternative-id":["10.1145\/3473583"],"URL":"https:\/\/doi.org\/10.1145\/3473583","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,8,19]]},"assertion":[{"value":"2021-08-19","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}