paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Fair Operational Semantics

公平操作语义
PLDI 7(PLDI)2023匹配度 2/10 · 该论文属于形式语义与程序验证,研究公平性操作语义及线程局部推理,并未涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析等用户核心方向。虽然形式化验证与用户对PL/形式化方法的兴趣有微弱交集,但缺少与AI或Agentic程序的实质关联,因此匹配度较低。引用 10 inbox
Dongjae Lee, Minki Cho, Jinwoo Kim, Soonwon Moon, Youngju Song, Chung-Kil Hur
crossref: 2026-09-10

AI 速览

一句话:提出 FOS,把任意公平性概念编码为操作语义,并用资源代数实现线程局部公平性推理。

公平性属性断言坏事件不会在好事件发生前无限延续,在程序验证中很关键;但相比安全性属性,通用表达与推理方法仍不足。本文提出 FOS(Fair Operational Semantics),一种可将任意公平性概念表述为操作语义并据此推理的理论。FOS 通过线程局部模拟关系及分离逻辑风格资源代数,支持对公平性的线程局部推理。作者在弱内存并发下验证票据锁实现及其客户端,该案例需同时推理调度器公平性、票据锁公平性和弱内存公平性。FOS 理论及示例均在 Coq 中完整形式化。

问题
公平性属性(如坏事件不会无限延迟好事件)在程序验证中很重要,但现有通用表达与推理方法远不如安全性属性成熟。
方法
论文提出 FOS,将任意公平性概念编码为操作语义,并通过带分离逻辑风格资源代数的线程局部模拟关系支持线程局部公平性推理。
评估
作者在 Coq 中完整形式化 FOS 及示例,并验证弱内存并发下的票据锁及其客户端,需推理调度器、票据锁与弱内存等多种公平性。
原文摘要(Abstract)

Fairness properties, which state that a sequence of bad events cannot happen infinitely before a good event takes place, are often crucial in program verification. However, general methods for expressing and reasoning about various kinds of fairness properties are relatively underdeveloped compared to those for safety properties. This paper proposes FOS (Fair Operational Semantics), a theory capable of expressing arbitrary notions of fairness as an operational semantics and reasoning about these notions of fairness. In addition, FOS enables thread-local reasoning about fairness by providing thread-local simulation relations equipped with separation- logic-style resource algebras. We verify a ticket lock implementation and a client of the ticket lock under weak memory concurrency as an example, which requires reasoning about different notions of fairness including fairness of a scheduler, fairness of the ticket lock implementation, and even fairness of weak memory. The theory of FOS, as well as the examples in the paper, are fully formalized in Coq.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2012,
  title = {Fair Operational Semantics},
  author = {Dongjae Lee and Minki Cho and Jinwoo Kim and Soonwon Moon and Youngju Song and Chung-Kil Hur},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {PLDI},
  year = {2023},
  doi = {10.1145/3591253}
}