arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.18792cs.SEcs.SC
收藏

可验证的模型转换:基于截止定理的DSLTrans方法

Tractable Verification of Model Transformations: A Cutoff-Theorem Approach for DSLTrans

Airbus Defense and Space(空客防务与航天)

Levi Lucio

AI总结:

本文提出了一种可验证的DSLTrans转换验证流程,通过截止定理证明了有限模型检查的完备性,并结合优化方法和实现,提高了验证效率和准确性。

摘要:

模型转换是MDE的核心,但正式验证困难,因为主流转换语言是不可判定的。DSLTrans被设计为图灵不完全以提高可验证性,但早期基于路径条件枚举的验证仍存在指数爆炸问题。本文提出了一种可验证的DSLTrans验证流程,并正式化了其完备性条件。方法结合了三个贡献:(i) 截止定理证明了有限模型检查在精确的DSLTrans片段和正的存在/可追溯性属性下的完备性,将无限搜索转化为有限可计算的界限;(ii) 可组合、保持正确性的优化(按类界限、CEGAR基于片段验证和依赖分析)减少了SMT编码大小;(iii) 基于Z3的实现评估了现实中的转换和相关基准。在29个具体转换和899个属性上,552个属性被证明,345个产生具体反例(包括有意的负例和边界情况),只有2个在超时内未决。对于超出可验证预算的属性,我们引入了可验证驱动的细化(前提专门化、后置条件分解和转换仪器化),实现了高达112倍的加速,同时消除了虚假反例。该流程由一个Web IDE和一个具体的执行引擎支持,用于运行时验证。

英文摘要:

Model transformations are central to MDE, but formal verification is difficult because mainstream transformation languages are undecidable. DSLTrans was designed to be Turing-incomplete to improve verifiability, yet earlier verification based on path-condition enumeration still suffered exponential blow-up and did not scale to realistic cases. We present a tractable verification workflow for DSLTrans and formalize when it is complete. The method combines three contributions: (i) a Cutoff Theorem proving that bounded model checking is complete for a precise DSLTrans fragment and positive existence/traceability properties, turning an infinite search into a finite computable bound; (ii) composable, soundness-preserving optimizations (per-class bounds, CEGAR-based fragment verification, and trace-aware dependency analysis) that reduce SMT encoding size; and (iii) a Z3-based implementation evaluated on realistic transformations from the ATL Zoo and related benchmarks. On 29 concrete transformations and 899 properties spanning compiler lowering, schema translation, behavioral modeling, graph mapping, and stress tests, 552 properties are proved, 345 produce concrete counterexamples (including intentional negative and boundary cases), and only 2 remain undecided within timeout. For properties beyond the tractability budget, we introduce tractability-driven refinement (precondition specialization, postcondition decomposition, and transformation instrumentation), achieving up to 112x speedup while eliminating spurious counterexamples. The workflow is supported by a web IDE and a concrete execution engine for runtime validation.

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

↑