{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T13:14:06Z","timestamp":1787318046783,"version":"build-2736575974"},"reference-count":35,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2026,1,8]],"date-time":"2026-01-08T00:00:00Z","timestamp":1767830400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["2313998"],"award-info":[{"award-number":["2313998"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"name":"National Science Foundation","award":["2513872"],"award-info":[{"award-number":["2513872"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,1,8]]},"abstract":"<jats:p>\n                    The Message Passing Interface (MPI) is widely used in parallel, high-performance programming, yet writing bug-free software that uses MPI remains difficult. We introduce DafnyMPI, a novel, scalable approach to formally verifying MPI software. DafnyMPI allows proving deadlock freedom, termination, and functional equivalence with simpler sequential implementations. In contrast to existing specialized frameworks, DafnyMPI avoids custom concurrency logics and instead relies on Dafny, a verification-ready programming language used for sequential programs, extending it with concurrent reasoning abilities. DafnyMPI is implemented as a library that enables safe MPI programming by requiring users to specify the communication topology upfront and to verify that calls to communication primitives such as\n                    <jats:monospace>MPI_ISEND<\/jats:monospace>\n                    and\n                    <jats:monospace>MPI_WAIT<\/jats:monospace>\n                    meet their preconditions. We formalize DafnyMPI using a core calculus and prove that the preconditions suffice to guarantee deadlock freedom. Functional equivalence is proved via rely-guarantee reasoning over message payloads and a system that guarantees safe use of read and write buffers. Termination and the absence of runtime errors are proved using standard Dafny techniques. To further demonstrate the applicability of DafnyMPI, we verify numerical solutions to three canonical partial differential equations. We believe DafnyMPI demonstrates how to make formal verification viable for a broader class of programs and provides proof engineers with additional tools for software verification of parallel and concurrent systems.\n                  <\/jats:p>","DOI":"10.1145\/3776705","type":"journal-article","created":{"date-parts":[[2026,1,8]],"date-time":"2026-01-08T18:59:43Z","timestamp":1767898783000},"page":"1820-1846","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["DafnyMPI: A Dafny Library for Verifying Message-Passing Concurrent Programs"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0810-1941","authenticated-orcid":false,"given":"Aleksandr","family":"Fedchin","sequence":"first","affiliation":[{"name":"Tufts University, Medford, USA"},{"name":"American University of Central Asia, Bishkek, Kirghizstan"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0000-8124-467X","authenticated-orcid":false,"given":"Antero","family":"Mejr","sequence":"additional","affiliation":[{"name":"Tufts University, Medford, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9001-5107","authenticated-orcid":false,"given":"Hari","family":"Sundar","sequence":"additional","affiliation":[{"name":"Tufts University, Medford, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8043-1166","authenticated-orcid":false,"given":"Jeffrey S.","family":"Foster","sequence":"additional","affiliation":[{"name":"Tufts University, Medford, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,1,8]]},"reference":[{"key":"e_1_3_2_2_2","doi-asserted-by":"publisher","unstructured":"Rosa Abbasi Jonas Schiffi Eva Darulova Mattias Ulbrich and Wolfgang Ahrendt. 2021. Deductive Verification of Floating-Point Java Programs in KeY. In International Conference on Tools and Algorithms for the Construction and Analysis of Systems. 242\u2013261. doi:10.1007\/978-3-030-72013-1_13","DOI":"10.1007\/978-3-030-72013-1_13"},{"key":"e_1_3_2_3_2","doi-asserted-by":"publisher","unstructured":"Stefan Blom and Marieke Huisman. 2014. The VerCors Tool for Verification of Concurrent Programs. In International Symposium on Formal Methods. 127\u2013131. doi:10.1007\/978-3-319-06410-9_9","DOI":"10.1007\/978-3-319-06410-9_9"},{"key":"e_1_3_2_4_2","doi-asserted-by":"publisher","unstructured":"Stephen Brookes and Peter W. O\u2019Hearn. 2016. Concurrent Separation Logic. ACM SIGLOG News 3 (2016) 47\u201365. doi:10.1145\/2984450.2984457","DOI":"10.1145\/2984450.2984457"},{"key":"e_1_3_2_5_2","doi-asserted-by":"publisher","unstructured":"Franck Cassez Joanne Fuller Milad K Ghale David J Pearce and Horacio MA Quiles. 2023. Formal and Executable Semantics of the Ethereum Virtual Machine in Dafny. In International Symposium on Formal Methods. 571\u2013583. doi:10.1007\/978-3-031-27481-7_32","DOI":"10.1007\/978-3-031-27481-7_32"},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","unstructured":"Aleks Chakarov Jaco Geldenhuys Matthew Heck Michael Hicks Sam Huang Georges-Axel Jaloyan Anjali Joshi K. Rustan M. Leino Mikael Mayer Sean McLaughlin Akhilesh Mritunjai Clement Pit-Claudel Sorawee Porncharoenwase Florian Rabe Marianna Rapoport Giles Reger Cody Roux Neha Rungta Robin Salkeld Matthias Schlaipfer Daniel Schoepe Johanna Schwartzentruber Serdar Tasiran Aaron Tomb Emina Torlak Jean-Baptiste Tristan Lucas Wagner Michael W. Whalen Remy Willems Tongtong Xiang Tae Joon Byun Joshua Cohen Ruijie Fang Junyoung Jang Jakob Rath Hira Taqdees Syeda Dominik Wagner and Yongwei Yuan. 2025. Formally Verified Cloud-Scale Authorization. In 2025 IEEE\/ACM 47th International Conference on Software Engineering (ICSE). 2508\u20132521. doi:10.1109\/ICSE55347.2025.00166","DOI":"10.1109\/ICSE55347.2025.00166"},{"key":"e_1_3_2_7_2","doi-asserted-by":"publisher","unstructured":"Zhenbang Chen Hengbiao Yu Xianjin Fu and Ji Wang. 2020. MPI-SV: A Symbolic Verifier for MPI Programs. In Proceedings of the ACM\/IEEE 42nd International Conference on Software Engineering: Companion Proceedings (Seoul South Korea). 93\u201396. doi:10.1145\/3377812.3382144","DOI":"10.1145\/3377812.3382144"},{"key":"e_1_3_2_8_2","unstructured":"Joseph W. Cutler Michael Hicks and Emina Torlak. 2024. Improving the Stability of Type Safety Proofs in Dafny. In Dafny 2024 - POPL 2024. https:\/\/popl24.sigplan.org\/details\/dafny-2024-papers\/3\/Improving-the-Stability-of-Type-Safety-Proofs-in-Dafny"},{"key":"e_1_3_2_9_2","doi-asserted-by":"publisher","unstructured":"Markus Dahlweid Michal Moskal Thomas Santen Stephan Tobies and Wolfram Schulte. 2009. VCC: Contract-Based Modular Verification of Concurrent C. In 2009 31st International Conference on Software Engineering-Companion Volume. 429\u2013430. doi:10.1109\/ICSE-COMPANION.2009.5071046","DOI":"10.1109\/ICSE-COMPANION.2009.5071046"},{"key":"e_1_3_2_10_2","doi-asserted-by":"publisher","unstructured":"Aleksandr Fedchin Antero Mejr Hari Sundar and Jeffrey S. Foster. 2025. Artifact for Paper \u201cDafnyMPI: A Dafny Library for Verifying Message-Passing Concurrent Programs\u201d. doi:10.5281\/zenodo.17654850","DOI":"10.5281\/zenodo.17654850"},{"key":"e_1_3_2_11_2","doi-asserted-by":"publisher","unstructured":"Vojtundefinedch Forejt Saurabh Joshi Daniel Kroening Ganesh Narayanaswamy and Subodh Sharma. 2017. Precise Predictive Analysis for Discovering Communication Deadlocks in MPI Programs. ACM Trans. Program. Lang. Syst. 39 (2017). doi:10.1145\/3095075","DOI":"10.1145\/3095075"},{"key":"e_1_3_2_12_2","doi-asserted-by":"publisher","unstructured":"Cl\u00e9ment Fumex Claude March\u00e9 and Yannick Moy. 2017. Automating the Verification of Floating-Point Programs. In Verified Software. Theories Tools and Experiments: 9th International Conference VSTTE 2017 Heidelberg Germany July 22-23 2017 Revised Selected Papers 9. 102\u2013119. doi:10.1007\/978-3-319-72308-2_7","DOI":"10.1007\/978-3-319-72308-2_7"},{"key":"e_1_3_2_13_2","doi-asserted-by":"publisher","unstructured":"Deepak Garg and Frank Pfenning. 2005. Type-Directed Concurrency. In International Conference on Concurrency Theory. 6\u201320. doi:10.1007\/11539452_5","DOI":"10.1007\/11539452_5"},{"key":"e_1_3_2_14_2","doi-asserted-by":"publisher","unstructured":"Jafar Hamin and Bart Jacobs. 2018. Deadlock-free monitors. In European Symposium on Programming. Springer 415\u2013441. doi:10.1007\/978-3-319-89884-1_15","DOI":"10.1007\/978-3-319-89884-1_15"},{"key":"e_1_3_2_15_2","doi-asserted-by":"publisher","unstructured":"Jonas Kastberg Hinrichsen Jesper Bengtson and Robbert Krebbers. 2019. Actris: Session-Type Based Reasoning in Separation Logic. POPL 4 (2019) 1\u201330. doi:10.1145\/3373096","DOI":"10.1145\/3373096"},{"key":"e_1_3_2_16_2","doi-asserted-by":"publisher","unstructured":"Jules Jacobs and Stephanie Balzer. 2023. Higher-order leak and deadlock free locks. Proceedings of the ACM on Programming Languages 7 POPL (2023) 1027\u20131057. doi:10.1145\/3571229","DOI":"10.1145\/3571229"},{"key":"e_1_3_2_17_2","doi-asserted-by":"publisher","unstructured":"Jules Jacobs Jonas Kastberg Hinrichsen and Robbert Krebbers. 2024. Deadlock-Free Separation Logic: Linearity Yields Progress for Dependent Higher-Order Message Passing. POPL 8 (2024). doi:10.1145\/3632889","DOI":"10.1145\/3632889"},{"key":"e_1_3_2_18_2","doi-asserted-by":"publisher","unstructured":"Ralf Jung Robbert Krebbers Jacques-Henri Jourdan Ale\u0161 Bizjak Lars Birkedal and Derek Dreyer. 2018. Iris From the Ground Up: A Modular Foundation for Higher-Order Concurrent Separation Logic. Journal of Functional Programming 28 (2018) 1\u201373. doi:10.1017\/S0956796818000151","DOI":"10.1017\/S0956796818000151"},{"key":"e_1_3_2_19_2","doi-asserted-by":"publisher","unstructured":"Johannes Kloos Rupak Majumdar and Viktor Vafeiadis. 2015. Asynchronous Liquid Separation Types. In 29th European Conference on Object-Oriented Programming (ECOOP 2015). 396\u2013420. doi:10.4230\/LIPIcs.ECOOP.2015.396","DOI":"10.4230\/LIPIcs.ECOOP.2015.396"},{"key":"e_1_3_2_20_2","doi-asserted-by":"publisher","unstructured":"Naoki Kobayashi. 2006. A New Type System for Deadlock-Free Processes. In CONCUR 2006\u2013Concurrency Theory: 17th International Conference CONCUR 2006 Bonn Germany August 27-30 2006. Proceedings 17. 233\u2013247. doi:10.1007\/11817949_16","DOI":"10.1007\/11817949_16"},{"key":"e_1_3_2_21_2","doi-asserted-by":"publisher","unstructured":"K Rustan M Leino. 2010. Dafny: An Automatic Program Verifier for Functional Correctness. In International Conference on Logic for Programming Artificial Intelligence and Reasoning. 348\u2013370. doi:10.1007\/978-3-642-17511-4_20","DOI":"10.1007\/978-3-642-17511-4_20"},{"key":"e_1_3_2_22_2","doi-asserted-by":"publisher","unstructured":"K Rustan M Leino. 2017. Accessible Software Verification With Dafny. IEEE Software 34 (2017) 94\u201397. doi:10.1109\/MS.2017.4121212","DOI":"10.1109\/MS.2017.4121212"},{"key":"e_1_3_2_23_2","doi-asserted-by":"publisher","unstructured":"K Rustan M Leino Peter M\u00fcller and Jan Smans. 2010. Deadlock-free channels and locks. In European Symposium on Programming. Springer 407\u2013426. doi:10.1007\/978-3-642-11957-6_22","DOI":"10.1007\/978-3-642-11957-6_22"},{"key":"e_1_3_2_24_2","doi-asserted-by":"publisher","unstructured":"Jacob R Lorch Yixuan Chen Manos Kapritsos Bryan Parno Shaz Qadeer Upamanyu Sharma James R Wilcox and Xueyuan Zhao. 2020. Armada: Low-Effort Verification of High-Performance Concurrent Programs. In Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation. 197\u2013210. doi:10.1145\/3385412.3385971","DOI":"10.1145\/3385412.3385971"},{"key":"e_1_3_2_25_2","doi-asserted-by":"publisher","unstructured":"Ziqing Luo Manchun Zheng and Stephen F Siegel. 2017. Verification of MPI programs using CIVL. In Proceedings of the 24th European MPI Users\u2019 Group Meeting. 1\u201311. doi:10.1145\/3127024.3127032","DOI":"10.1145\/3127024.3127032"},{"key":"e_1_3_2_26_2","unstructured":"Sean McLaughlin Georges-Axel Jaloyan Tongtong Xiang and Florian Rabe. 2024. Enhancing Proof Stability. In Dafny 2024 - POPL 2024. https:\/\/popl24.sigplan.org\/details\/dafny-2024-papers\/14\/Enhancing-Proof-Stability"},{"key":"e_1_3_2_27_2","unstructured":"Message Passing Interface Forum. 1994. MPI: A Message-Passing Interface Standard Version 1.0. https:\/\/www.mpi-forum.org\/docs\/mpi-1.0\/mpi-10.ps Accessed: 2025-05-04."},{"key":"e_1_3_2_28_2","doi-asserted-by":"publisher","unstructured":"Salman Pervez Ganesh Gopalakrishnan Robert M Kirby Robert Palmer Rajeev Thakur and William Gropp. 2007. Practical Model-Checking Method for Verifying Correctness of MPI Programs. In Recent Advances in Parallel Virtual Machine and Message Passing Interface: 14th European PVM\/MPI User\u2019s Group Meeting. 344\u2013353. doi:10.1007\/978-3-540-75416-9_46","DOI":"10.1007\/978-3-540-75416-9_46"},{"key":"e_1_3_2_29_2","doi-asserted-by":"publisher","unstructured":"Stephen F Siegel and Timothy K Zirkel. 2011. Automatic Formal Verification of MPI-based Parallel Programs. ACM Sigplan Notices 46 (2011) 309\u2013310. doi:10.1145\/1941553.1941603","DOI":"10.1145\/1941553.1941603"},{"key":"e_1_3_2_30_2","doi-asserted-by":"publisher","unstructured":"Graeme Smith. 2023. A Dafny-Based Approach to Thread-Local Information Flow Analysis. In 2023 IEEE\/ACM 11th International Conference on Formal Methods in Software Engineering (FormaliSE). 86\u201396. doi:10.1109\/FormaliSE58978.2023.00017","DOI":"10.1109\/FormaliSE58978.2023.00017"},{"key":"e_1_3_2_31_2","doi-asserted-by":"publisher","unstructured":"Nikhil Swamy Aseem Rastogi Aymeric Fromherz Denis Merigoux Danel Ahman and Guido Mart\u00ednez. 2020. SteelCore: An Extensible Concurrent Separation Logic for Effectful Dependently Typed Programs. POPL 4 (2020). doi:10.1145\/3409003","DOI":"10.1145\/3409003"},{"key":"e_1_3_2_32_2","doi-asserted-by":"publisher","unstructured":"Sarvani Vakkalanka Michael DeLisi Ganesh Gopalakrishnan Robert M Kirby Rajeev Thakur and William Gropp. 2008. Implementing Efficient Dynamic Formal Verification Methods for MPI Programs. In European Parallel Virtual Machine\/Message Passing Interface Users\u2019 Group Meeting. 248\u2013256. doi:10.1007\/978-3-540-87475-1_34","DOI":"10.1007\/978-3-540-87475-1_34"},{"key":"e_1_3_2_33_2","doi-asserted-by":"publisher","unstructured":"Sarvani S. Vakkalanka Subodh Sharma Ganesh Gopalakrishnan and Robert M. Kirby. 2008. ISP: A Tool for Model Checking MPI Programs. In Proceedings of the 13th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming (Salt Lake City UT USA). 285\u2013286. doi:10.1145\/1345206.1345258","DOI":"10.1145\/1345206.1345258"},{"key":"e_1_3_2_34_2","doi-asserted-by":"publisher","unstructured":"Anh Vo Sriram Aananthakrishnan Ganesh Gopalakrishnan Bronis R. de Supinski Martin Schulz and Greg Bronevetsky. 2010. A Scalable and Distributed Dynamic Formal Verifier for MPI Programs. In Proceedings of the 2010 ACM\/IEEE International Conference for High Performance Computing Networking Storage and Analysis. 1\u201310. doi:10.1109\/SC.2010.7","DOI":"10.1109\/SC.2010.7"},{"key":"e_1_3_2_35_2","doi-asserted-by":"publisher","unstructured":"Anh Vo Sarvani Vakkalanka Michael DeLisi Ganesh Gopalakrishnan Robert M Kirby and Rajeev Thakur. 2009. Formal Verification of Practical MPI Programs. ACM Sigplan Notices 44 (2009) 261\u2013270. doi:10.1145\/1594835.1504214","DOI":"10.1145\/1594835.1504214"},{"key":"e_1_3_2_36_2","unstructured":"Large MPI Tags with the Intel MPI Library. 2025. https:\/\/www.intel.com\/content\/www\/us\/en\/developer\/articles\/technical\/large-mpi-tags-with-the-intel-mpi.html Accessed: 2025-04-12."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3776705","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T13:45:00Z","timestamp":1784209500000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3776705"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,1,8]]},"references-count":35,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2026,1,8]]}},"alternative-id":["10.1145\/3776705"],"URL":"https:\/\/doi.org\/10.1145\/3776705","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,1,8]]},"assertion":[{"value":"2025-07-10","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-11-06","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-01-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}