arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.12058cs.SEcs.AIcs.FL
收藏

ModelWisdom: 一个集成工具包用于TLA+模型可视化、摘要与修复

ModelWisdom: An Integrated Toolkit for TLA+ Model Visualization, Digest and Repair

State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing, China(新型软件技术国家重点实验室,南京大学,中国);Department of Computer Science and Engineering, The Hong Kong University of Science and Technology(香港科学与技术大学计算机科学与工程系)

Zhiyong Chen, Jialun Cao, Chang Xu, Shing-Chi Cheung

AI总结:

ModelWisdom通过可视化、图优化、摘要和修复功能,提升TLA+模型检查的可解释性和可操作性。

摘要:

在TLA+中进行模型检查可以提供强的正确性保证,但从业者仍然面临在解释反例、理解大型状态转换图和修复故障模型方面的重大挑战。这些困难源于原始模型检查器输出的解释性有限以及将违规追溯回源规范所需大量手动工作。虽然TLA+工具包包含一个状态图查看器,但它只提供一个静态的、完全展开的图,没有折叠、颜色高亮或语义解释,这限制了其可扩展性和可解释性。我们提出了ModelWisdom,一个交互式环境,利用可视化和大语言模型使TLA+模型检查更加可解释和可操作。ModelWisdom提供:(i) 模型可视化,包括颜色化违规高亮、从转换到TLA+代码的点击链接以及违反状态与断裂属性之间的映射;(ii) 图优化,包括基于树的结构化和节点/边折叠以管理大型模型;(iii) 模型摘要,通过大语言模型(LLMs)总结和解释子图,并执行预处理和部分解释;(iv) 模型修复,提取错误信息并支持迭代调试。这些能力将原始模型检查器输出转化为交互式、可解释的工作流程,提高对非平凡TLA+规范的理解并减少调试工作量。ModelWisdom的网站可用:https://model-wisdom.pages.dev。演示视频可在https://www.youtube.com/watch?v=plyZo30VShA找到。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑