Kmclib: Automated Inference and Verification of Session Types from OCaml Programs
Kmclib: Automated Inference and Verification of Session Types from OCaml Programs
复制标题
Kmclib:从 OCaml 程序自动推断和验证会话类型
DOI:
10.1007/978-3-030-99524-9_20
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Rumyana Neykova
中科院分区:
文献类型:
--
作者:
Keigo Imai;Julien Lange;Rumyana Neykova
Theories and tools based on multiparty session types offer correctness guarantees for concurrent programs that communicate using message-passing. These guarantees usually come at the cost of an intrinsically top-down approach, which requires the communication behaviour of the entire program to be specified as a global type.This paper introduceskmclib: an OCaml library that supports the development ofcorrectmessage-passing programs without having to write any types. The library utilises the meta-programming facilities of OCaml to automatically infer the session types of concurrent programs and verify their compatibility (k-MC ). Well-typed programs, written withkmclib, do not lead to communication errors and cannot get stuck.