使用ACL2设计高可靠性系统的高效、可验证数据结构
Using ACL2 in the Design of Efficient, Verifiable Data Structures for High-Assurance Systems
摘要:
用于陆地、海洋、空中和太空的现代自主和半自主车辆中的算法和数据结构的验证提出了重大挑战。自治算法,例如,路线规划、模式匹配和推理基于复杂的数据结构,例如有向图和代数数据类型。这些数据结构的证明技术是存在的,但是面向无界的功能实现,其通常在空间或时间上都不是有效的。另一方面,自治系统的设计者通常会限制任何给定函数的空间和时间分配,并要求算法在有限的时间内交付结果,否则就会出现看门狗超时。此外,高可靠性设计规则不赞成动态内存分配,更喜欢基于简单数组的数据结构实现。为了提供高层次的数据结构在自治系统中使用的认证所需的高保证的有效实现,我们已经开发了一种验证编译技术,支持“自然”的功能证明风格,但适用于更有效的数据结构的实现。我们的工具链具有主流程序设计语言的代码生成功能,以及基于GPU和基于硬件的实现。我们的工具链的中间验证语言基于高阶逻辑;然而,我们使用ACL 2来开发高效但可验证的数据结构设计。ACL 2特别适合于这项工作,它的复杂库用于推理任意大小的聚合数据结构,有效执行正式规范,以及它对“单线程对象”的支持-具有命令式“引擎盖下”实现的函数式数据库。在本文中,我们详细介绍了我们的高保证数据结构的设计方法,包括使用这种设计方法实现的常见代数数据类型在ACL 2中的例子,这些数据类型在ACL 2中进行的正确性证明,以及利用这些高效,高保证数据结构的相关算法的示例ACL 2实现。
英文摘要:
Verification of algorithms and data structures utilized in modern autonomous and semi-autonomous vehicles for land, sea, air, and space presents a significant challenge. Autonomy algorithms, e.g., route planning, pattern matching, and inference, are based on complex data structures such as directed graphs and algebraic data types. Proof techniques for these data structures exist, but are oriented to unbounded, functional realizations, which are not typically efficient in either space or time. Autonomous systems designers, on the other hand, generally limit the space and time allocations for any given function, and require that algorithms deliver results within a finite time, or suffer a watchdog timeout. Furthermore, high-assurance design rules frown on dynamic memory allocation, preferring simple array-based data structure implementations. In order to provide efficient implementations of high-level data structures used in autonomous systems with the high assurance needed for accreditation, we have developed a verifying compilation technique that supports the "natural" functional proof style, but yet applies to more efficient data structure implementations. Our toolchain features code generation to mainstream programming languages, as well as GPU-based and hardware-based realizations. We base the Intermediate Verification Language for our toolchain upon higher-order logic; however, we have used ACL2 to develop our efficient yet verifiable data structure design. ACL2 is particularly well-suited for this work, with its sophisticated libraries for reasoning about aggregate data structures of arbitrary size, efficient execution of formal specifications, as well as its support for "single-threaded objects" -- functional datatypes with imperative "under the hood" implementations. In this paper, we detail our high-assurance data structure design approach, including examples in ACL2 of common algebraic data types implemented using this design approach, proofs of correctness for those data types carried out in ACL2, as well as sample ACL2 implementations of relevant algorithms utilizing these efficient, high-assurance data structures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。