Measuring with confidence : leveraging expressive type systems for correct-by-construction software

McBride, Conor and Nakov, Georgi and Nordvall Forsberg, Fredrik (2023) Measuring with confidence : leveraging expressive type systems for correct-by-construction software. Acta IMEKO, 12 (1). 15. ISSN 2221-870X (https://doi.org/10.21014/actaimeko.v12i1.1412)

[thumbnail of McBride-etal-AI-2023-Measuring-with-confidence-leveraging-expressive-type]
Preview
Text. Filename: McBride_etal_AI_2023_Measuring_with_confidence_leveraging_expressive_type.pdf
Final Published Version
License: Creative Commons Attribution 4.0 logo

Download (608kB)| Preview

Abstract

Modern programming language type systems help programmers write correct software, and furthermore helps them write the software they actually intended to write. We show how expressive types can be used to encode dimension and units of measure information, which can be used to avoid dimensional mistakes and guide software construction, and how types can even help to generate code automatically, which eliminates a whole class of bugs.