# 反应式综合

反应式综合是一种形式化方法技术，它从时序逻辑规约自动构造出一个系统——例如控制器、电路或换能器——并保证所构造的系统无论其环境如何行为都满足该规约。其输入是一个公式，通常为线性时序逻辑（LTL）公式，被划分为环境输入和系统输出两部分。该技术与验证不同：它不是检查一个给定的系统，而是产生一个构造即正确的系统。

| 关键事实 | 详情 |
|---|---|
| 输出 | 一个有限的可执行策略，通常为 Mealy 机或 AIGER 电路<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.12576)</sup> |
| 核心算法 | 求解系统与环境之间的无限二人零和博弈<sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup> |
| LTL 可实现性复杂度 | 相对于规约规模为 2EXPTIME 完全；与之对应的验证问题属于 PSPACE<sup>[3](https://ar5iv.labs.arxiv.org/html/1803.10104)</sup> |
| GR(1) 复杂度 | 在状态空间上为多项式，根据具体表述约为立方 \( N^{3} \) 或 \( O(m \cdot n \cdot N^{2}) \) 符号步骤<sup>[4](http://www.diag.uniroma1.it/~degiacom/didattica/dottorato-amir-pnueli/Papers/synthesis.pdf)</sup><sup> • </sup><sup>[5](https://www.cse.chalmers.se/~piterman/publications/2012/BJPPS12.pdf)</sup> |
| 标准输入语言 | TLSF，为 SYNTCOMP 竞赛而引入<sup>[6](https://www.ijcai.org/proceedings/2018/0651.pdf)</sup> |
| 主流工具 | Strix、SemML、ltlsynt、BoSy、Slugs<sup>[7](https://strix.model.in.tum.de/)</sup><sup> • </sup><sup>[8](https://doi.org/10.48550/arxiv.2501.17496)</sup> |
| 首届竞赛 | 2014 年 CAV 会议上的 SYNTCOMP，约有 500 个基准问题<sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup> |

## 工作原理

综合被刻画为有限图上两个玩家之间的无限零和博弈：系统每轮设定输出变量，环境设定输入变量。当且仅当规约在所有对局中都被满足时，系统赢得博弈；系统玩家的获胜策略定义了一个保证满足规约的实现。<sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup> 由于环境是对抗性的，正确性在一切可能的输入行为下都成立，而不仅仅是在预期行为下。

所产生的产物是策略 \( \sigma:\Sigma_{\textsf{in}}^{*} \to \Sigma_{\textsf{out}} \) 的有限表示，通常为 [Mealy 机](https://www.edgepedia.org/zh/mealy-machine) \( \mathcal{M}=(S,s_{0},\delta,\gamma) \)，其转移函数为 \( \delta:S\times 2^{I}\rightarrow S \)，输出函数为 \( \gamma:S\times 2^{I}\rightarrow 2^{O} \)。<sup>[1](https://ar5iv.labs.arxiv.org/html/1903.12576)</sup><sup> • </sup><sup>[3](https://ar5iv.labs.arxiv.org/html/1803.10104)</sup> 轮次顺序很重要：如果环境先行、系统在作出响应之前观察到该选择，则语义为 Mealy；如果系统先行，则为 Moore，获胜策略也相应地是 Mealy 机或 Moore 机。<sup>[6](https://www.ijcai.org/proceedings/2018/0651.pdf)</sup><sup> • </sup><sup>[8](https://doi.org/10.48550/arxiv.2501.17496)</sup>

经典的自动机理论路线将 LTL 公式翻译为确定性奇偶自动机，将其与博弈复合，并求解所得的奇偶博弈；获胜策略产生一个实现该公式的 Mealy 机。<sup>[9](https://movep2022.cs.aau.dk/slides/NirPiterman-movep2022.pdf)</sup><sup> • </sup><sup>[3](https://ar5iv.labs.arxiv.org/html/1803.10104)</sup> GR(1) 问题则使用符号博弈图上的不动点计算，用 BDD 求值。<sup>[9](https://movep2022.cs.aau.dk/slides/NirPiterman-movep2022.pdf)</sup><sup> • </sup><sup>[10](https://link.springer.com/chapter/10.1007/978-3-031-57246-3_6)</sup>

## 操作流程

实践者的工作流有四步：写规约、建博弈、解博弈、造系统。<sup>[11](https://www.cs.uoregon.edu/research/summerschool/summer23/_lectures/Program_Synthesis_lecture01.pdf)</sup>

1. **用 LTL 或 GR(1) 编写规约**，将对环境的假设与对系统的保证分开。工具接受 TLSF 格式（由 syfco 转换为 LTL），或接受带有原子命题划分的显式 LTL 公式。<sup>[8](https://doi.org/10.48550/arxiv.2501.17496)</sup><sup> • </sup><sup>[6](https://www.ijcai.org/proceedings/2018/0651.pdf)</sup>
2. **运行综合工具。** 例如，ltlsynt 将规约翻译为确定性奇偶自动机，将其转换为奇偶博弈，其中玩家 0（环境）选择输入、玩家 1（控制器）选择输出，用 Zielonka 算法的一个变体求解该博弈，并检查玩家 1 从初始状态出发是否拥有获胜策略。<sup>[12](https://www.lrde.epita.fr/~adl/dl/adl/renkin.23.fmsd.pdf)</sup>
3. **提取实现**为 Mealy 机，经约简并编码为 AIGER 格式的 AIG 电路，或编码为标准硬件模型检查器可以验证的 SMV 模型。<sup>[12](https://www.lrde.epita.fr/~adl/dl/adl/renkin.23.fmsd.pdf)</sup><sup> • </sup><sup>[13](https://doi.org/10.48550/arxiv.1803.09566)</sup>
4. **解读不可实现性。** 一个公式可以可满足但不可实现：\( \mathbf{G}(\mathit{grant}_1 \leftrightarrow \mathbf{X}\,\mathit{req}_1) \) 是可满足的，但它要求系统预测下一个输入，而任何可实现的换能器都不具备这种预知能力，因为在可实现性中输入是全称量化的。<sup>[11](https://www.cs.uoregon.edu/research/summerschool/summer23/_lectures/Program_Synthesis_lecture01.pdf)</sup>

## 起源

综合问题点燃了关于逻辑与自动机之间联系、有限图上的无限博弈以及无限对象上的自动机的研究。<sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup> 1969 年的两篇论文解决了该问题：J. Richard Büchi（比希）与 Lawrence H. Landweber（兰德韦伯）发表于《美国数学会会刊》的《用有限状态策略求解序列条件》给出了第一个博弈论解法<sup>[14](https://doi.org/10.1090/s0002-9947-1969-0280205-0)</sup><sup> • </sup><sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup>；[Michael O. Rabin](https://www.edgepedia.org/zh/michael-o-rabin)（拉宾）的《二阶理论的可判定性与无限树上的自动机》提供了自动机理论的解法。<sup>[15](https://doi.org/10.1090/s0002-9947-1969-0246760-1)</sup>

现代反应式形式可追溯至 1989 年。Pnueli（普努利）与 Rosner（罗斯纳）的 POPL 1989 论文表明，从 LTL 规约综合反应式模块可归约为分支时序公式的有效性，其算法在规约长度上为双指数<sup>[16](https://dl.acm.org/doi/10.1145/75277.75293)</sup>；他们配套的 ICALP 1989 论文处理异步模块，并指出比希与兰德韦伯的早期算法没有附带复杂度分析。<sup>[17](https://people.irisa.fr/Nicolas.Markey/PDF/Papers/icalp1989-PR.pdf)</sup> Abadi（阿巴迪）、Lamport（兰波特）与 Wolper（沃尔珀）1989 年的论文将普努利与罗斯纳的研究列为关于可实现性最接近的先前工作，并指出 埃默森与克拉克以及曼纳与沃尔珀的早期方法通过只处理封闭系统（其中没有环境）回避了可实现性。<sup>[18](https://orbi.uliege.be/bitstream/2268/175008/1/ALW%2089.pdf)</sup><sup> • </sup><sup>[4](http://www.diag.uniroma1.it/~degiacom/didattica/dottorato-amir-pnueli/Papers/synthesis.pdf)</sup> 当普努利与罗斯纳将问题扩展到分布式系统时，即使对于只有两个独立进程的架构，该问题也变成了不可判定的。<sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup> 该领域的历史常被讲述为三次浪潮：可判定性（1969 年）、LTL 引入之后的时序逻辑综合，以及过去二十年针对 GR(1) 与有界综合等算法的实用化浪潮。<sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup><sup> • </sup><sup>[9](https://movep2022.cs.aau.dk/slides/NirPiterman-movep2022.pdf)</sup>

## 变体

**GR(1)。** GR(1) 规约是环境上的 Büchi 目标之合取（假设）与系统上的 Büchi 目标之合取（保证）之间的蕴含式，形式为 \( (\mathbf{GF}p_1 \land \cdots \land \mathbf{GF}p_m) \rightarrow (\mathbf{GF}q_1 \land \cdots \land \mathbf{GF}q_n) \)，其中每个 \( p_i \) 与 \( q_i \) 都是原子命题的布尔组合。<sup>[5](https://www.cse.chalmers.se/~piterman/publications/2012/BJPPS12.pdf)</sup> 已发表的分析给出的求解代价为 \( N^{3} \)<sup>[4](http://www.diag.uniroma1.it/~degiacom/didattica/dottorato-amir-pnueli/Papers/synthesis.pdf)</sup> 以及 \( O(m \cdot n \cdot N^{2}) \) 符号步骤<sup>[5](https://www.cse.chalmers.se/~piterman/publications/2012/BJPPS12.pdf)</sup>；无论哪种，在状态空间上都是多项式，相较之下 LTL 的双指数上界则不然。将规约约束为 GR(1) 形式，可将复杂度从命题数上的双指数降至单指数，或在命题数固定时为多项式。<sup>[10](https://link.springer.com/chapter/10.1007/978-3-031-57246-3_6)</sup> Slugs 是一个 GR(1) 工具。<sup>[10](https://link.springer.com/chapter/10.1007/978-3-031-57246-3_6)</sup>

**完整 LTL 综合。** Strix 由卢滕贝格尔、迈耶与西克特提出（《Acta Informatica》，2019 年），将无 Safra 的 LTL 到确定性奇偶自动机翻译与多线程显式状态奇偶博弈求解器相结合，按需探索竞技场，因此常常只构造可达状态的一小部分，并且跨多次运行具有增量性。<sup>[19](https://doi.org/10.1007/s00236-019-00349-3)</sup><sup> • </sup><sup>[1](https://ar5iv.labs.arxiv.org/html/1903.12576)</sup><sup> • </sup><sup>[7](https://strix.model.in.tum.de/)</sup> ltlsynt 是 Spot 的一部分，遵循教科书式的流水线，支持多种 LTL 到 DPA 的构造。<sup>[12](https://www.lrde.epita.fr/~adl/dl/adl/renkin.23.fmsd.pdf)</sup> Unbeast、Acacia 与 Acacia+ 是较早的环境先行工具；Lily 是智能体先行。<sup>[6](https://www.ijcai.org/proceedings/2018/0651.pdf)</sup>

**有界综合。** 有界综合由斯文·舍韦与贝恩德·芬克拜纳于 2007 年提出，避免了确定化：将取反后的公式翻译为非确定性（全称 co-Büchi）自动机，这是单指数而非双指数的一步，并通过在 SAT、QBF、DQBF、EPR 或 SMT 中的约束求解来猜测一个有界规模的实现；逐步提高界可得到最小实现。<sup>[20](https://finkbeiner.groups.cispa.de/_assets/paper.CnlBjxNc.pdf)</sup><sup> • </sup><sup>[3](https://ar5iv.labs.arxiv.org/html/1803.10104)</sup><sup> • </sup><sup>[13](https://doi.org/10.48550/arxiv.1803.09566)</sup> 可实现的规约通常只需要很小的界。<sup>[20](https://finkbeiner.groups.cispa.de/_assets/paper.CnlBjxNc.pdf)</sup> BoSy 由法伊蒙维尔、芬克拜纳与滕特鲁普提出（2018 年），是一个有界综合框架，曾在 SYNTCOMP 2016 上赢得 LTL 赛道。<sup>[13](https://doi.org/10.48550/arxiv.1803.09566)</sup>

**近期进展。** SemML 由克雷廷斯基及其同事提出（2025 年），在即时奇偶博弈探索中加入机器学习引导，其基础是近期 LTL 到自动机翻译所产生的语义标注；它在 Strix 多年主导之后赢得了 SYNTCOMP 的 LTL 可实现性赛道。<sup>[8](https://doi.org/10.48550/arxiv.2501.17496)</sup> 2024 年的一种方法通过益于博弈的 co-Büchi 自动机链（COCOA）统一了 GR(1) 与完整 LTL 综合，在保持 GR(1) 效率的同时处理非 GR(1) 部分。<sup>[10](https://link.springer.com/chapter/10.1007/978-3-031-57246-3_6)</sup> 对于无限状态系统，阿佐帕尔迪、迪·斯特凡诺与皮特曼提出的 sweap（2026 年）应用 CEGAR，以 Strix 或 SemML 作为黑盒有限状态引擎<sup>[21](https://doi.org/10.48550/arxiv.2605.11992)</sup>；海姆与迪米特洛娃提出的 Issy（2025 年）则针对无限状态反应式系统的规约与综合。<sup>[22](https://doi.org/10.48550/arxiv.2502.03013)</sup>

## 应用

GR(1) 综合已被应用于机器人学、信息物理系统控制以及芯片组件设计。<sup>[10](https://link.springer.com/chapter/10.1007/978-3-031-57246-3_6)</sup> GR(1) 的期刊工作在一个 IBM 广义缓冲器与 AMBA 总线的仲裁器上演示了该方法，据称这是首次处理现实工业实例。<sup>[5](https://www.cse.chalmers.se/~piterman/publications/2012/BJPPS12.pdf)</sup> 为 AMBA AHB 总线（片上系统设计中片上通信的开放工业标准）综合仲裁器，以及综合 Intel PRO/1000 以太网控制器等设备的驱动程序，被引为现实世界的应用。<sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup><sup> • </sup><sup>[3](https://ar5iv.labs.arxiv.org/html/1803.10104)</sup>

## 局限与替代方案

一般 LTL 规约的可实现性是 2EXPTIME 完全的。<sup>[5](https://www.cse.chalmers.se/~piterman/publications/2012/BJPPS12.pdf)</sup><sup> • </sup><sup>[3](https://ar5iv.labs.arxiv.org/html/1803.10104)</sup> 该复杂度源于一些小的 LTL 公式只能由非常大的实现来实现<sup>[3](https://ar5iv.labs.arxiv.org/html/1803.10104)</sup>，且 LTL 到确定性自动机的翻译是双指数的，而 LTL 模型检查只需 PSPACE。<sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup> 这一差距解释了为何验证比综合早数十年成为工业技术；双指数上界使综合被认定为无可救药地难解，令实践者望而却步。<sup>[5](https://www.cse.chalmers.se/~piterman/publications/2012/BJPPS12.pdf)</sup> 即便在现代构造中，LTL 到奇偶自动机的确定化在最坏情况下仍然是双指数的。<sup>[12](https://www.lrde.epita.fr/~adl/dl/adl/renkin.23.fmsd.pdf)</sup>

采用限制性方法，以表达力换取可处理性：GR(1) 产生多项式时间的博弈<sup>[10](https://link.springer.com/chapter/10.1007/978-3-031-57246-3_6)</sup>；对于有限迹（LTLf）规约，DFA 转换本身在公式规模上最坏为双指数，这促使人们采用非确定性自动机方法。<sup>[23](http://www.diag.uniroma1.it/~kr18actions/papers/ACTIONSKR18_paper_20.pdf)</sup> 分布式架构是更艰难的前沿：即使只有两个独立进程，那里的综合也是不可判定的。<sup>[2](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)</sup>

## References

1. [Practical Synthesis of Reactive Systems from LTL Specifications via Parity Games (Strix)](https://ar5iv.labs.arxiv.org/html/1903.12576)
2. [Synthesis of Reactive Systems (Finkbeiner lecture notes)](https://finkbeiner.groups.cispa.de/_assets/paper.Cmaobvnc.pdf)
3. [Reactive Synthesis: Towards Output-Sensitive Algorithms (Finkbeiner lecture notes)](https://ar5iv.labs.arxiv.org/html/1803.10104)
4. [Synthesis of Reactive(1) Designs (Pnueli, Piterman, Sa'ar, VMCAI version)](http://www.diag.uniroma1.it/~degiacom/didattica/dottorato-amir-pnueli/Papers/synthesis.pdf)
5. [Synthesis of Reactive(1) Designs (Bloem, Jobstmann, Piterman, Pnueli, Sa'ar)](https://www.cse.chalmers.se/~piterman/publications/2012/BJPPS12.pdf)
6. [LTL Realizability via Safety and Reachability Games (IJCAI 2018)](https://www.ijcai.org/proceedings/2018/0651.pdf)
7. [Strix tool website (TUM)](https://strix.model.in.tum.de/)
8. [Kretinsky, Jan and colleagues (2025). SemML: Enhancing Automata-Theoretic LTL Synthesis with Machine Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2501.17496)
9. [Reactive Synthesis (Nir Piterman, MOVEP 2022 lecture slides)](https://movep2022.cs.aau.dk/slides/NirPiterman-movep2022.pdf)
10. [Fully Generalized Reactivity(1) Synthesis (COCOA-based, CAV 2024)](https://link.springer.com/chapter/10.1007/978-3-031-57246-3_6)
11. [Program Synthesis lecture (Ruzica Piskac, OPLSS 2023)](https://www.cs.uoregon.edu/research/summerschool/summer23/_lectures/Program_Synthesis_lecture01.pdf)
12. [ltlsynt: reactive synthesis from LTL specifications (Formal Methods in System Design, 2023)](https://www.lrde.epita.fr/~adl/dl/adl/renkin.23.fmsd.pdf)
13. [Faymonville, Peter, Finkbeiner, Bernd, Tentrup, Leander (2018). BoSy: An Experimentation Framework for Bounded Synthesis. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1803.09566)
14. [J. Richard Büchi, Lawrence H. Landweber (1969). Solving sequential conditions by finite-state strategies. Transactions of the American Mathematical Society.](https://doi.org/10.1090/s0002-9947-1969-0280205-0)
15. [Michael O. Rabin (1969). Decidability of second-order theories and automata on infinite trees.. Transactions of the American Mathematical Society.](https://doi.org/10.1090/s0002-9947-1969-0246760-1)
16. [On the synthesis of a reactive module](https://dl.acm.org/doi/10.1145/75277.75293)
17. [On the Synthesis of an Asynchronous Reactive Module (Pnueli & Rosner, ICALP 1989)](https://people.irisa.fr/Nicolas.Markey/PDF/Papers/icalp1989-PR.pdf)
18. [Realizability and Realizability of finite-state systems (Abadi, Lamport, Wolper, 1989)](https://orbi.uliege.be/bitstream/2268/175008/1/ALW%2089.pdf)
19. [Michael Luttenberger, Philipp J. Meyer, Salomon Sickert (2019). Practical synthesis of reactive systems from LTL specifications via parity games. Acta Informatica.](https://doi.org/10.1007/s00236-019-00349-3)
20. [Symbolic Bounded Synthesis (BDD-based, Finkbeiner group)](https://finkbeiner.groups.cispa.de/_assets/paper.CnlBjxNc.pdf)
21. [Azzopardi, Shaun, Di Stefano, Luca, Piterman, Nir (2026). sweap: Reactive Synthesis for Infinite-State Integer Problems. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2605.11992)
22. [Heim, Philippe, Dimitrova, Rayna (2025). Issy: A Comprehensive Tool for Specification and Synthesis of Infinite-State Reactive Systems. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2502.03013)
23. [Recent Advances in LTL Realizability and Synthesis as Planning (Camacho et al., KR 2018)](http://www.diag.uniroma1.it/~kr18actions/papers/ACTIONSKR18_paper_20.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/reactive-synthesis

English original: https://www.edgepedia.org/reactive-synthesis
