Timeout Asynchronous Session Types:面向定时交互的安全异步混合选择
Timeout Asynchronous Session Types: Safe Asynchronous Mixed-Choice For Timed Interactions
AI总结:
本文提出 TOAST,通过时间约束安全支持异步会话类型中的混合选择,并给出具备进程计时器、可建模 receive-after 超时模式的演算及主体归约证明。
摘要:
长期以来,混合选择一直被排除在异步通信模型之外,因为它会损害通信有限状态机关键性质的可判定性。会话类型继承了这一限制,使其无法对超时进行完整建模,而超时正是 Web 和云服务的核心属性。为弥补这一缺陷,我们提出(二元)Timeout Asynchronous Session Types(TOAST),作为(二元)异步定时会话类型的扩展,以允许混合选择。TOAST 利用时间约束来规范混合选择的使用,从而保持通信安全。我们为 TOAST 提供了一种新的行为语义,可在存在混合选择的情况下保证进展性。在 TOAST 基础上,我们给出了一种具有进程计时器的演算,能够使用类似 Erlang 的 receive-after 模式对超时建模,并通过一个类型系统刻画其与 TOAST 规范之间的对应关系,且我们证明了该类型系统的主体归约性质。
英文摘要:
Mixed-choice has long been barred from models of asynchronous communication since it compromises the decidability of key properties of communicating finite-state machines. Session types inherit this restriction, which precludes them from fully modelling timeouts -- a core property of web and cloud services. To address this deficiency, we present (binary) Timeout Asynchronous Session Types (TOAST) as an extension to (binary) asynchronous timed session types, that permits mixed-choice. TOAST deploys timing constraints to regulate the use of mixed-choice so as to preserve communication safety. We provide a new behavioural semantics for TOAST which guarantees progress in the presence of mixed-choice. Building upon TOAST, we provide a calculus featuring process timers which is capable of modelling timeouts using a receive-after pattern, much like Erlang, and capture the correspondence with TOAST specifications via a type system for which we prove subject reduction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。