BARReL:Atelier B 在 Lean 中的现代后端
BARReL: a modern backend for Atelier B in Lean
AI总结:
BARReL 是一个 Lean 4 库,桥接工业 B 方法工具 Atelier B 与 Lean 证明助手,支持在 Lean 中交互式进行 B 开发,通过显式良定义条件编码部分算子,并利用依赖类型保证良定义性,同时提供基本自动化。
摘要:
BARReL 是一个 Lean 4 库,桥接了工业 B 方法工具 Atelier B 与 Lean 证明助手,使用户能够在 Lean 中交互式地进行形式化 B 开发(直至机器精化和实现),同时保留标准 B 语法。B 部分算子通过生成显式的良定义条件进行仔细编码,利用 Lean 的依赖类型从构造上强制实施良定义性纪律。也就是说,证明义务和证明步骤不能静默地依赖于类型错误或定义不当的实例化。BARReL 还具备基本自动化功能,尝试自动处理此类良定义条件。该实现完全使用 Lean 元编程编写,并设计为模块化:扩展支持的 B 片段通常只需添加新的语法和编码子句。我们通过一个小型但具有代表性的案例研究说明了该方法,并论证 BARReL 可以作为迈向基于 Lean 证明助手的高度可靠的 Atelier B 工具链的垫脚石。
英文摘要:
BARReL is a Lean 4 library bridging Atelier B, an industrial tool for the B method, and the Lean proof assistant by enabling users to conduct their formal B developments---up to machine refinement and implementation---interactively inside Lean, while retaining standard B syntax. B partial operators are encoded with explicit well-definedness conditions, using Lean's dependent types to enforce a well-definedness discipline by construction. That is, proof obligations and proof steps cannot silently rely on ill-typed or ill-defined instantiations. BARReL also provides basic automation for discharging these conditions. The implementation is written entirely using Lean metaprogramming and is designed to be modular: extending the supported B fragment typically requires only adding new syntax and encoding clauses. We compare the resulting workflow with Atelier B on a B refinement development and examine the checks required during interactive proof through two examples.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。