A Sound Type System for Physical Quantities, Units, and Measurements - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Archive of Formal Proofs Année : 2020

A Sound Type System for Physical Quantities, Units, and Measurements

Résumé

The present Isabelle theory builds a formal model for both the International System of Quantities (ISQ) and the International System of Units (SI), which are both fundamental for physics and engineering. Both the ISQ and the SI are deeply integrated into Isabelle's type system. 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).
Fichier non déposé

Dates et versions

hal-04503812 , version 1 (13-03-2024)

Identifiants

  • HAL Id : hal-04503812 , version 1

Citer

Simon Foster, Burkhart Wolff. A Sound Type System for Physical Quantities, Units, and Measurements. Archive of Formal Proofs, 2020, https://www.isa-afp.org/entries/Physical_Quantities.html#. ⟨hal-04503812⟩
37 Consultations
0 Téléchargements

Partager

Gmail Facebook X LinkedIn More