一种面向消息传递协议的语言无关逻辑关系
A Language-Agnostic Logical Relation for Message-Passing Protocols
AI总结:
针对异构消息传递系统难以验证协议合规性的问题,提出首个语言无关逻辑关系的机械化框架,基于标记迁移语义适配各类实例,并在Coq中验证了两种应用场景。
摘要:
当今计算格局正逐渐转向面向分布式与异构系统的应用,例如云计算和物联网(IoT)应用。这类应用以并发特性为主,采用消息传递机制,并与外部对象交互,这些对象涵盖外部实现的代码到传感器等实际物理设备。验证由此产生的系统是否符合预期的交互协议颇具挑战——通用实现语言的常规假设已不再成立,更不用说类型系统了,这使得所有基于它们的验证方法都不再适用。本文提出了一个用于认证异构消息传递系统协议合规性的框架。其贡献在于首次实现了语言无关逻辑关系的机械化,证明该关系的实例符合指定的协议。该定义完全依赖基于标记迁移的语义,可适配任意实例,无论是否带类型,包括外部对象。作为案例研究,本文考虑了两种场景:(1)特定应用或硬件设备的逐实例验证;(2)给定类型系统下良类型应用的一劳永逸式验证。该逻辑关系及两种场景均在Coq定理证明器中实现了机械化。
英文摘要:
Today's computing landscape has been gradually shifting to applications targeting distributed and *heterogeneous* systems, such as cloud computing and Internet of Things (IoT) applications. These applications are predominantly *concurrent*, employ *message-passing*, and interface with *foreign objects*, ranging from externally implemented code to actual physical devices such as sensors. Verifying that the resulting systems adhere to the intended protocol of interaction is challenging -- the usual assumption of a common implementation language, let alone a type system, no longer applies, ruling out any verification method based on them. This paper develops a framework for certifying *protocol compliance* of heterogeneous message-passing systems. It contributes the first mechanization of a *language-agnostic logical relation*, asserting that its inhabitants comply with the protocol specified. This definition relies entirely on a labelled transition-based semantics, accommodating arbitrary inhabitants, typed and untyped alike, including foreign objects. As a case study, the paper considers two scenarios: (1) *per-instance verification* of a specific application or hardware device, and (2) *once-and-for-all verification* of well-typed applications for a given type system. The logical relation and both scenarios are mechanized in the Coq theorem prover.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。