{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,25]],"date-time":"2026-09-25T09:55:42Z","timestamp":1790330142437,"version":"4.1.0"},"reference-count":34,"publisher":"Association for Computing Machinery (ACM)","issue":"ICFP","license":[{"start":{"date-parts":[[2020,8,2]],"date-time":"2020-08-02T00:00:00Z","timestamp":1596326400000},"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":[[2020,8,2]]},"abstract":"<jats:p>Multicore OCaml extends OCaml with support for shared-memory concurrency. It is equipped with a weak memory model, for which an operational semantics has been published. This begs the question: what reasoning rules can one rely upon while writing or verifying Multicore OCaml code? To answer it, we instantiate Iris, a modern descendant of Concurrent Separation Logic, for Multicore OCaml. This yields a low-level program logic whose reasoning rules expose the details of the memory model. On top of it, we build a higher-level logic, Cosmo, which trades off some expressive power in return for a simple set of reasoning rules that allow accessing nonatomic locations in a data-race-free manner, exploiting the sequentially-consistent behavior of atomic locations, and exploiting the release\/acquire behavior of atomic locations. Cosmo allows both low-level reasoning, where the details of the Multicore OCaml memory model are apparent, and high-level reasoning, which is independent of this memory model. We illustrate this claim via a number of case studies: we verify several implementations of locks with respect to a classic, memory-model-independent specification. Thus, a coarse-grained application that uses locks as the sole means of synchronization can be verified in the Concurrent-Separation-Logic fragment of Cosmo, without any knowledge of the weak memory model.<\/jats:p>","DOI":"10.1145\/3408978","type":"journal-article","created":{"date-parts":[[2020,8,3]],"date-time":"2020-08-03T13:48:02Z","timestamp":1596462482000},"page":"1-29","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":17,"title":["Cosmo: a concurrent separation logic for multicore OCaml"],"prefix":"10.1145","volume":"4","author":[{"given":"Glen","family":"M\u00e9vel","sequence":"first","affiliation":[{"name":"Inria, France \/ University of Paris-Saclay, France \/ CNRS, France \/ LRI, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jacques-Henri","family":"Jourdan","sequence":"additional","affiliation":[{"name":"University of Paris-Saclay, France \/ CNRS, France \/ LRI, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Fran\u00e7ois","family":"Pottier","sequence":"additional","affiliation":[{"name":"Inria, France"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2020,8,3]]},"reference":[{"key":"e_1_2_2_1_1","first-page":"55","article-title":"Mathematizing C+ + concurrency","author":"Batty Mark","year":"2011","unstructured":"Mark Batty , Scott Owens , Susmit Sarkar , Peter Sewell , and Tjark Weber . 2011 . Mathematizing C+ + concurrency . In Principles of Programming Languages (POPL). 55 - 66 . https:\/\/www.cl.cam.ac.uk\/~pes20\/cpp\/popl085ap-sewell.pdf Mark Batty, Scott Owens, Susmit Sarkar, Peter Sewell, and Tjark Weber. 2011. Mathematizing C+ + concurrency. In Principles of Programming Languages (POPL). 55-66. https:\/\/www.cl.cam.ac.uk\/~pes20\/cpp\/popl085ap-sewell.pdf","journal-title":"Principles of Programming Languages (POPL)."},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/3360568"},{"key":"e_1_2_2_3_1","unstructured":"Lars Birkedal and Ale\u0161 Bizjak. 2018. Lecture Notes on Iris: Higher-Order Concurrent Separation Logic. (Dec. 2018 ). https:\/\/iris-project. org\/tutorial-pdfs\/iris-lecture-notes.pdf Lectures notes.  Lars Birkedal and Ale\u0161 Bizjak. 2018. Lecture Notes on Iris: Higher-Order Concurrent Separation Logic. (Dec. 2018 ). https:\/\/iris-project. org\/tutorial-pdfs\/iris-lecture-notes.pdf Lectures notes."},{"key":"e_1_2_2_4_1","first-page":"259","article-title":"Permission accounting in separation logic","author":"Bornat Richard","year":"2005","unstructured":"Richard Bornat , Cristiano Calcagno , Peter O'Hearn , and Matthew Parkinson . 2005 . Permission accounting in separation logic . In Principles of Programming Languages (POPL). 259 - 270 . http:\/\/www.cs.ucl.ac.uk\/staf\/p.ohearn\/papers\/permissions_paper.pdf Richard Bornat, Cristiano Calcagno, Peter O'Hearn, and Matthew Parkinson. 2005. Permission accounting in separation logic. In Principles of Programming Languages (POPL). 259-270. http:\/\/www.cs.ucl.ac.uk\/staf\/p.ohearn\/papers\/permissions_paper.pdf","journal-title":"Principles of Programming Languages (POPL)."},{"key":"e_1_2_2_5_1","first-page":"55","volume-title":"Checking Interference with Fractional Permissions. In Static Analysis Symposium (SAS) (Lecture Notes in Computer Science","volume":"2694","author":"Boyland John","year":"2003","unstructured":"John Boyland . 2003 . Checking Interference with Fractional Permissions. In Static Analysis Symposium (SAS) (Lecture Notes in Computer Science , Vol. 2694 ). Springer , 55 - 72 . http:\/\/www.cs.uwm.edu\/~boyland\/papers\/permissions.pdf John Boyland. 2003. Checking Interference with Fractional Permissions. In Static Analysis Symposium (SAS) (Lecture Notes in Computer Science, Vol. 2694 ). Springer, 55-72. http:\/\/www.cs.uwm.edu\/~boyland\/papers\/permissions.pdf"},{"key":"e_1_2_2_6_1","volume-title":"A Step-Indexed Kripke Model of Separation Logic for Storable Locks. Electronic Notes in Theoretical Computer Science 276 (","author":"Buisse Alexandre","year":"2011","unstructured":"Alexandre Buisse , Lars Birkedal , and Kristian St\u00f8vring . 2011. A Step-Indexed Kripke Model of Separation Logic for Storable Locks. Electronic Notes in Theoretical Computer Science 276 ( Sept. 2011 ), 121-143. https:\/\/cs.au.dk\/~birke\/papers\/locks.pdf Alexandre Buisse, Lars Birkedal, and Kristian St\u00f8vring. 2011. A Step-Indexed Kripke Model of Separation Logic for Storable Locks. Electronic Notes in Theoretical Computer Science 276 ( Sept. 2011 ), 121-143. https:\/\/cs.au.dk\/~birke\/papers\/locks.pdf"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/3371102"},{"key":"e_1_2_2_8_1","volume-title":"Verification, Model Checking and Abstract Interpretation (VMCAI) (Lecture Notes in Computer Science","author":"Doko Marko","unstructured":"Marko Doko and Viktor Vafeiadis . 2016. A Program Logic for C11 Memory Fences . In Verification, Model Checking and Abstract Interpretation (VMCAI) (Lecture Notes in Computer Science , Vol. 9583 ). Springer , 413-430. https:\/\/plv.mpisws.org\/fsl\/base\/paper.pdf Marko Doko and Viktor Vafeiadis. 2016. A Program Logic for C11 Memory Fences. In Verification, Model Checking and Abstract Interpretation (VMCAI) (Lecture Notes in Computer Science, Vol. 9583 ). Springer, 413-430. https:\/\/plv.mpisws.org\/fsl\/base\/paper.pdf"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-54434-1_17"},{"key":"e_1_2_2_10_1","unstructured":"Stephan Dolan Anil Madhavapeddy and KC Sivaramakrishnan. 2018a. The Multicore OCaml development wiki. https: \/\/github.com\/ocaml-multicore\/ocaml-multicore\/wiki  Stephan Dolan Anil Madhavapeddy and KC Sivaramakrishnan. 2018a. The Multicore OCaml development wiki. https: \/\/github.com\/ocaml-multicore\/ocaml-multicore\/wiki"},{"key":"e_1_2_2_11_1","first-page":"242","article-title":"Bounding data races in space and time","author":"Dolan Stephen","year":"2018","unstructured":"Stephen Dolan , K. C. Sivaramakrishnan , and Anil Madhavapeddy . 2018 b. Bounding data races in space and time . In Programming Language Design and Implementation (PLDI). 242 - 255 . http:\/\/kcsrk.info\/papers\/pldi18-memory.pdf Stephen Dolan, K. C. Sivaramakrishnan, and Anil Madhavapeddy. 2018b. Bounding data races in space and time. In Programming Language Design and Implementation (PLDI). 242-255. http:\/\/kcsrk.info\/papers\/pldi18-memory.pdf","journal-title":"Programming Language Design and Implementation (PLDI)."},{"key":"e_1_2_2_12_1"},{"key":"e_1_2_2_13_1","first-page":"353","volume-title":"Oracle Semantics for Concurrent Separation Logic. In European Symposium on Programming (ESOP) (Lecture Notes in Computer Science","volume":"4960","author":"Hobor Aquinas","year":"2008","unstructured":"Aquinas Hobor , Andrew W. Appel , and Francesco Zappa Nardelli . 2008 . Oracle Semantics for Concurrent Separation Logic. In European Symposium on Programming (ESOP) (Lecture Notes in Computer Science , Vol. 4960 ). Springer , 353 - 367 . http:\/\/www.cs.princeton.edu\/~appel\/papers\/concurrent.pdf Aquinas Hobor, Andrew W. Appel, and Francesco Zappa Nardelli. 2008. Oracle Semantics for Concurrent Separation Logic. In European Symposium on Programming (ESOP) (Lecture Notes in Computer Science, Vol. 4960 ). Springer, 353-367. http:\/\/www.cs.princeton.edu\/~appel\/papers\/concurrent.pdf"},{"key":"e_1_2_2_14_1","volume-title":"Iris Workshop. https:\/\/people.mpi-sws.org\/ ~jung\/iris\/logatom-talk-2019","author":"Jung Ralf","year":"2019","unstructured":"Ralf Jung . 2019 . Logical Atomicity in Iris: the Good, the Bad, and the Ugly . Iris Workshop. https:\/\/people.mpi-sws.org\/ ~jung\/iris\/logatom-talk-2019 .pdf Ralf Jung. 2019. Logical Atomicity in Iris: the Good, the Bad, and the Ugly. Iris Workshop. https:\/\/people.mpi-sws.org\/ ~jung\/iris\/logatom-talk-2019.pdf"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3158154"},{"key":"e_1_2_2_16_1","doi-asserted-by":"crossref","unstructured":"Ralf Jung Robbert Krebbers Jacques-Henri Jourdan Ale\u0161 Bizjak Lars Birkedal and Derek Dreyer. 2018b. Iris from the ground up: A modular foundation for higher-order concurrent separation logic. Journal of Functional Programming 28 ( 2018 ) e20. https:\/\/people.mpi-sws.org\/~dreyer\/papers\/iris-ground-up\/paper.pdf  Ralf Jung Robbert Krebbers Jacques-Henri Jourdan Ale\u0161 Bizjak Lars Birkedal and Derek Dreyer. 2018b. Iris from the ground up: A modular foundation for higher-order concurrent separation logic. Journal of Functional Programming 28 ( 2018 ) e20. https:\/\/people.mpi-sws.org\/~dreyer\/papers\/iris-ground-up\/paper.pdf","DOI":"10.1017\/S0956796818000151"},{"key":"e_1_2_2_17_1","first-page":"637","article-title":"Iris: monoids and invariants as an orthogonal basis for concurrent reasoning","author":"Jung Ralf","year":"2015","unstructured":"Ralf Jung , David Swasey , Filip Sieczkowski , Kasper Svendsen , Aaron Turon , Lars Birkedal , and Derek Dreyer . 2015 . Iris: monoids and invariants as an orthogonal basis for concurrent reasoning . In Principles of Programming Languages (POPL). 637 - 650 . http:\/\/plv.mpi-sws.org\/iris\/paper.pdf Ralf Jung, David Swasey, Filip Sieczkowski, Kasper Svendsen, Aaron Turon, Lars Birkedal, and Derek Dreyer. 2015. Iris: monoids and invariants as an orthogonal basis for concurrent reasoning. In Principles of Programming Languages (POPL). 637-650. http:\/\/plv.mpi-sws.org\/iris\/paper.pdf","journal-title":"Principles of Programming Languages (POPL)."},{"key":"e_1_2_2_18_1","volume-title":"Strong Logic for Weak Memory: Reasoning About Release-Acquire Consistency in Iris. In European Conference on Object-Oriented Programming (ECOOP). 17 : 1-17 : 29","author":"Kaiser Jan-Oliver","year":"2017","unstructured":"Jan-Oliver Kaiser , Hoang-Hai Dang , Derek Dreyer , Ori Lahav , and Viktor Vafeiadis . 2017 . Strong Logic for Weak Memory: Reasoning About Release-Acquire Consistency in Iris. In European Conference on Object-Oriented Programming (ECOOP). 17 : 1-17 : 29 . https:\/\/people.mpi-sws.org\/~dreyer\/papers\/iris-weak\/paper.pdf Jan-Oliver Kaiser, Hoang-Hai Dang, Derek Dreyer, Ori Lahav, and Viktor Vafeiadis. 2017. Strong Logic for Weak Memory: Reasoning About Release-Acquire Consistency in Iris. In European Conference on Object-Oriented Programming (ECOOP). 17 : 1-17 : 29. https:\/\/people.mpi-sws.org\/~dreyer\/papers\/iris-weak\/paper.pdf"},{"key":"e_1_2_2_19_1","doi-asserted-by":"crossref","unstructured":"Ori Lahav Viktor Vafeiadis Jeehoon Kang Chung-Kil Hur and Derek Dreyer. 2017. Repairing sequential consistency in C\/C++11. In Programming Language Design and Implementation (PLDI ). 618-632. https:\/\/plv.mpi-sws.org\/scfix\/paper.pdf  Ori Lahav Viktor Vafeiadis Jeehoon Kang Chung-Kil Hur and Derek Dreyer. 2017. Repairing sequential consistency in C\/C++11. In Programming Language Design and Implementation (PLDI ). 618-632. https:\/\/plv.mpi-sws.org\/scfix\/paper.pdf","DOI":"10.1145\/3140587.3062352"},{"key":"e_1_2_2_20_1","article-title":"How to Make a Multiprocessor Computer That Correctly Executes Multiprocess Programs","volume":"28","author":"Lamport Leslie","year":"1979","unstructured":"Leslie Lamport . 1979 . How to Make a Multiprocessor Computer That Correctly Executes Multiprocess Programs . IEEE Trans. Computers 28 , 9 ( 1979 ), 690-691. https:\/\/www.microsoft.com\/en-us\/research\/uploads\/prod\/2016\/12\/How-toMake-a-Multiprocessor-Computer-That-Correctly-Executes-Multiprocess-Programs.pdf Leslie Lamport. 1979. How to Make a Multiprocessor Computer That Correctly Executes Multiprocess Programs. IEEE Trans. Computers 28, 9 ( 1979 ), 690-691. https:\/\/www.microsoft.com\/en-us\/research\/uploads\/prod\/2016\/12\/How-toMake-a-Multiprocessor-Computer-That-Correctly-Executes-Multiprocess-Programs.pdf","journal-title":"IEEE Trans. Computers"},{"key":"e_1_2_2_21_1","unstructured":"Xavier Leroy Damien Doligez Alain Frisch Jacques Garrigue Didier R\u00e9my and J\u00e9r\u00f4me Vouillon. 2019. The OCaml system: documentation and user's manual. http:\/\/caml.inria.fr\/pub\/docs\/manual-ocaml\/  Xavier Leroy Damien Doligez Alain Frisch Jacques Garrigue Didier R\u00e9my and J\u00e9r\u00f4me Vouillon. 2019. The OCaml system: documentation and user's manual. http:\/\/caml.inria.fr\/pub\/docs\/manual-ocaml\/"},{"key":"e_1_2_2_22_1","first-page":"497","volume-title":"Machine-Checked Formalisation. In European Symposium on Programming (ESOP) (Lecture Notes in Computer Science","volume":"7211","author":"Lochbihler Andreas","year":"2012","unstructured":"Andreas Lochbihler . 2012 . Java and the Java Memory Model-A Unified , Machine-Checked Formalisation. In European Symposium on Programming (ESOP) (Lecture Notes in Computer Science , Vol. 7211 ). Springer , 497 - 517 . https:\/\/ethz.ch\/content\/ dam\/ethz\/special-interest\/infk\/inst-infsec\/information-security-group-dam\/people\/andreloc\/lochbihler12esop.pdf Andreas Lochbihler. 2012. Java and the Java Memory Model-A Unified, Machine-Checked Formalisation. In European Symposium on Programming (ESOP) (Lecture Notes in Computer Science, Vol. 7211 ). Springer, 497-517. https:\/\/ethz.ch\/content\/ dam\/ethz\/special-interest\/infk\/inst-infsec\/information-security-group-dam\/people\/andreloc\/lochbihler12esop.pdf"},{"key":"e_1_2_2_23_1","first-page":"378","article-title":"The Java memory model","author":"Manson Jeremy","year":"2005","unstructured":"Jeremy Manson , William Pugh , and Sarita V. Adve . 2005 . The Java memory model . In Principles of Programming Languages (POPL). 378 - 391 . http:\/\/rsim.cs.uiuc.edu\/Pubs\/popl05.pdf Jeremy Manson, William Pugh, and Sarita V. Adve. 2005. The Java memory model. In Principles of Programming Languages (POPL). 378-391. http:\/\/rsim.cs.uiuc.edu\/Pubs\/popl05.pdf","journal-title":"Principles of Programming Languages (POPL)."},{"key":"e_1_2_2_24_1","unstructured":"Glen M\u00e9vel Jacques-Henri Jourdan and Fran\u00e7ois Pottier. 2020. Coq proofs for Cosmo. https:\/\/gitlab.inria.fr\/gmevel\/cosmo.  Glen M\u00e9vel Jacques-Henri Jourdan and Fran\u00e7ois Pottier. 2020. Coq proofs for Cosmo. https:\/\/gitlab.inria.fr\/gmevel\/cosmo."},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2006.12.024"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3211968"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1190216.1190261"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-32027-9"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-46669-8_30"},{"key":"e_1_2_2_30_1","doi-asserted-by":"crossref","first-page":"157","DOI":"10.1145\/2254064.2254084","article-title":"Reagents: expressing and composing fine-grained concurrency","author":"Turon Aaron","year":"2012","unstructured":"Aaron Turon . 2012 . Reagents: expressing and composing fine-grained concurrency . In Programming Language Design and Implementation (PLDI). 157 - 168 . https:\/\/aturon.github.io\/academic\/reagents.pdf Aaron Turon. 2012. Reagents: expressing and composing fine-grained concurrency. In Programming Language Design and Implementation (PLDI). 157-168. https:\/\/aturon.github.io\/academic\/reagents.pdf","journal-title":"Programming Language Design and Implementation (PLDI)."},{"key":"e_1_2_2_31_1","first-page":"691","article-title":"GPS: navigating weak memory with ghosts, protocols, and separation. In Object-Oriented Programming","author":"Turon Aaron","year":"2014","unstructured":"Aaron Turon , Viktor Vafeiadis , and Derek Dreyer . 2014 . GPS: navigating weak memory with ghosts, protocols, and separation. In Object-Oriented Programming , Systems, Languages, and Applications (OOPSLA). 691 - 707 . http:\/\/plv.mpisws.org\/gps\/paper.pdf Aaron Turon, Viktor Vafeiadis, and Derek Dreyer. 2014. GPS: navigating weak memory with ghosts, protocols, and separation. In Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA). 691-707. http:\/\/plv.mpisws.org\/gps\/paper.pdf","journal-title":"Systems, Languages, and Applications (OOPSLA)."},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-63387-9_2"},{"key":"e_1_2_2_33_1","first-page":"867","article-title":"Relaxed separation logic: a program logic for C11 concurrency. In ObjectOriented Programming","author":"Vafeiadis Viktor","year":"2013","unstructured":"Viktor Vafeiadis and Chinmay Narayan . 2013 . Relaxed separation logic: a program logic for C11 concurrency. In ObjectOriented Programming , Systems, Languages, and Applications (OOPSLA). 867 - 884 . https:\/\/people.mpi-sws.org\/~viktor\/ papers\/oopsla2013-rsl.pdf Viktor Vafeiadis and Chinmay Narayan. 2013. Relaxed separation logic: a program logic for C11 concurrency. In ObjectOriented Programming, Systems, Languages, and Applications (OOPSLA). 867-884. https:\/\/people.mpi-sws.org\/~viktor\/ papers\/oopsla2013-rsl.pdf","journal-title":"Systems, Languages, and Applications (OOPSLA)."},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1994.1093"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3408978","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3408978","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T20:47:58Z","timestamp":1750193278000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3408978"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,8,2]]},"references-count":34,"journal-issue":{"issue":"ICFP","published-print":{"date-parts":[[2020,8,2]]}},"alternative-id":["10.1145\/3408978"],"URL":"https:\/\/doi.org\/10.1145\/3408978","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,8,2]]},"assertion":[{"value":"2020-08-03","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}