arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.07629cs.LO
收藏

Isabelle/HOL中物理量、单位和测量的自动推理

Automated Reasoning for Physical Quantities, Units, and Measurements in Isabelle/HOL

Simon Foster, Burkhart Wolff

摘要:

信息物理和机器人系统的形式化验证要求我们能够准确地对现实世界中存在的物理量进行建模。在这些量中使用显式单位可以允许更高程度的严格性,因为我们可以确保计算中量的兼容性。同时,单位的不当使用可能是安全的障碍,因此非常希望在物理计算中进行自动化的健全性检查。在本文中,我们贡献了一个机械化的国际单位制(ISQ)和相关的国际单位制在伊莎贝尔/HOL。我们展示了如何伊莎贝尔可以用来提供一个类型系统的物理量,和自动化的证明支持。向量由对应于基向量的维度类型参数化,因此只有相同维度的量才能相等。由于基本的“量的代数”诱导的数量和SI类型的一致性,具体的战术支持开发,以捕捉这些。我们的建设验证了一个测试集的数量和SI单位之间的已知等价。此外,所提出的理论可以用于SI系统和其他系统(如英国帝国系统(BIS))之间的类型安全转换。

英文摘要:

Formal verification of cyber-physical and robotic systems requires that we can accurately model physical quantities that exist in the real-world. The use of explicit units in such quantities can allow a higher degree of rigour, since we can ensure compatibility of quantities in calculations. At the same time, improper use of units can be a barrier to safety and therefore it is highly desirable to have automated sanity checking in physical calculations. In this paper, we contribute a mechanisation of the International System of Quantities (ISQ) and the associated SI unit system in Isabelle/HOL. We show how Isabelle can be used to provide a type system for physical quantities, and automated proof support. Quantities are parameterised by dimension types, which correspond to base vectors, and thus only quantities of the same dimension can be equated. Since the underlying "algebra of quantities" induces congruences on quantity and SI types, specific tactic support is developed to capture these. Our construction is validated by a test-set of known equivalences between both quantities and SI units. Moreover, the presented theory can be used for type-safe conversions between the SI system and others, like the British Imperial System (BIS).

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

↑