paperbot · PL 论文追踪

全部论文 待读 收藏

P2 A Mechanized Semantics for Dataflow Circuits

数据流电路的机器化语义
OOPSLA 9(OOPSLA1)2025匹配度 2/10 · 论文属于形式语义与Coq定理证明,关注数据流电路/HLS的机器化语义,与用户当前主攻的LLM/Agent静态分析、浮点程序分析、贝叶斯程序分析均无直接交叉;仅在形式化验证的理论基础上有一点间接关联。引用 2 inbox
Tony Law, Delphine Demange, Sandrine Blazy
crossref: 2026-09-10

AI 速览

一句话:提出数据流电路的机器化操作语义,在 Coq 中证明图与项演算等价并给出确定性条件。

本文为数据流电路提出一种机器化形式语义,其执行不受静态调度约束,仅由输入数据可用性驱动。作者将电路组件抽象为计算单元,通过单向无界 FIFO 异步连接,采用操作语义刻画组件触发,并以通道历史记录可观察行为;组件可有状态、无状态且可非确定。论文形式化了保证确定性的充分条件:若满足,则所有可能调度产生唯一可观察行为。文中给出两种等价视角——组件图与结构化项演算,并在 Coq 中证明二者语义等价。最后将框架应用于 Dynamatic 生成的 HLS 数据流电路,实验验证其适用性。

问题
如何为动态调度、由数据可用性驱动的数据流电路建立形式语义,并刻画其确定性与可观察行为?
方法
用 Coq 机器化操作语义,将组件建模为经无界 FIFO 异步连接的抽象计算单元;给出组件图与结构化项演算两种表示,证明二者语义等价,并形式化确定性的充分条件。
评估
在 Coq 中完成形式化与语义等价证明,并将通用语义框架应用于 Dynamatic HLS 工具生成的数据流电路以验证其相关性。
原文摘要(Abstract)

This paper proposes a mechanized formal semantics for dataflow circuits: rather than following a predetermined, static schedule, the execution of the circuit components is constrained solely by the availability of their input data. We model circuit components as abstract computing units, asynchronously connected with each other through unidirectional, unbounded FIFO. In contrast to Kahn’s classic, denotational semantic framework, our semantics is operational. It intends to reflect Dennis’ dataflow paradigm with firing, while still formalizing the observable behaviors of circuits as channels histories. The components we handle are either stateless or stateful, and may be non-deterministic. We formalize sufficient conditions to achieve the determinacy of circuits executions: all possible schedules of such circuits lead to a unique observable behavior. We provide two equivalent views for circuits. The first one is a direct and natural representation as graphs of components. The second is a core, structured term calculus, which enables constructing and reasoning about circuits in a inductive way. We prove that both representations are semantically equivalent. We conduct our formalization within the Coq proof assistant. We experimentally validate its relevance by applying our general semantic framework to dataflow circuits generated with Dynamatic, a recent HLS tool exploiting dataflow circuits to generate dynamically scheduled, elastic circuits.

链接与引用

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

BibTeX
@article{paperbot3206,
  title = {A Mechanized Semantics for Dataflow Circuits},
  author = {Tony Law and Delphine Demange and Sandrine Blazy},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {OOPSLA1},
  year = {2025},
  doi = {10.1145/3720432}
}