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

02/15/2023
by   Simon Foster, et al.
0

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).

READ FULL TEXT
research
07/17/2018

Physical-type correctness in scientific Python

The representation of units and dimensions in informatics systems is bar...
research
10/22/2022

A Discipline of Programming with Quantities

In scientific and engineering applications, physical quantities embodied...
research
05/15/2023

CQE: A Comprehensive Quantity Extractor

Quantities are essential in documents to describe factual information. T...
research
03/15/2021

Iterated integrals over letters induced by quadratic forms

An automated treatment of iterated integrals based on letters induced by...
research
08/08/2023

Effective estimates of ergodic quantities illustrated on the Bolyai-Rényi map

We present a practical and effective method for rigorously estimating qu...
research
02/26/2020

Scientific versus statistical modelling: a unifying approach

This paper addresses two fundamental features of quantities modeled and ...
research
12/03/2016

Unit Dependency Graph and its Application to Arithmetic Word Problem Solving

Math word problems provide a natural abstraction to a range of natural l...

Please sign up or login with your details

Forgot password? Click here to reset