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

Authors

  • Conor McBride University of Strathclyde
  • Georgi Nakov University of Strathclyde
  • Fredrik Nordvall Forsberg University of Strathclyde

DOI:

https://doi.org/10.21014/actaimeko.v12i1.1412

Keywords:

type systems, correctness, metrology, programming languages

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.

Downloads

Published

2023-03-22

Issue

Section

Research Papers