用可视化与大模型让TLA+验证结果更易懂、好修复。
ModelWisdom: An Integrated Toolkit for TLA+ Model Visualization, Digest and Repair
- 通过颜色标记、点击跳转代码,直观定位错误源头。
- 支持图结构折叠与树形组织,轻松处理大规模状态机。
- 结合大模型自动解释错误,适合系统验证初学者与开发者。
TLA+ 模型检查虽能提供强正确性保障,但从业者在理解反例、分析大型状态转移图及修复模型时仍面临挑战,主要源于原始输出可解释性差和手动追踪代价高。尽管 TLA+ Toolbox 提供状态图查看器,但仅支持静态全展开,缺乏折叠、着色或语义解释,难以扩展。我们提出 ModelWisdom,一个集成可视化与大语言模型的交互环境,提升 TLA+ 验证的可解释性与可操作性。其功能包括:(i) 模型可视化,支持错误路径着色、状态到代码的点击跳转,以及违反状态与断言的映射;(ii) 图优化,采用树状结构与节点/边折叠管理复杂模型;(iii) 模型摘要,利用大语言模型对子图进行总结与部分解释;(iv) 模型修复,提取错误信息并支持迭代调试。这些能力将原始验证输出转化为可交互、可解释的工作流,显著提升对非平凡规范的理解效率,降低调试成本。项目主页:https://model-wisdom.pages.dev;演示视频:https://www.youtube.com/watch?v=plyZo30VShA。
原文摘要 · Abstract (English)
Model checking in TLA+ provides strong correctness guarantees, yet practitioners continue to face significant challenges in interpreting counterexamples, understanding large state-transition graphs, and repairing faulty models. These difficulties stem from the limited explainability of raw model-checker output and the substantial manual effort required to trace violations back to source specifications. Although the TLA+ Toolbox includes a state diagram viewer, it offers only a static, fully expanded graph without folding, color highlighting, or semantic explanations, which limits its scalability and interpretability. We present ModelWisdom, an interactive environment that uses visualization and large language models to make TLA+ model checking more interpretable and actionable. ModelWisdom offers: (i) Model Visualization, with colorized violation highlighting, click-through links from transitions to TLA+ code, and mapping between violating states and broken properties; (ii) Graph Optimization, including tree-based structuring and node/edge folding to manage large models; (iii) Model Digest, which summarizes and explains subgraphs via large language models (LLMs) and performs preprocessing and partial explanations; and (iv) Model Repair, which extracts error information and supports iterative debugging. Together, these capabilities turn raw model-checker output into an interactive, explainable workflow, improving understanding and reducing debugging effort for nontrivial TLA+ specifications. The website to ModelWisdom is available: https://model-wisdom.pages.dev. A demonstrative video can be found at https://www.youtube.com/watch?v=plyZo30VShA.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。