Types, equations, dimensions and the Pi theorem

The languages of mathematical physics and modelling are endowed with a rich "grammar of dimensions" that common abstractions of programming languages fail to represent. We propose a dependently typed domain-specific language (embedded in Idris) that captures this grammar. We apply it to ex...

Full description

Saved in:
Bibliographic Details
Main Authors Botta, Nicola, Jansson, Patrik, Da Silva, Guilherme Horta Alvares
Format Journal Article
LanguageEnglish
Published 16.08.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The languages of mathematical physics and modelling are endowed with a rich "grammar of dimensions" that common abstractions of programming languages fail to represent. We propose a dependently typed domain-specific language (embedded in Idris) that captures this grammar. We apply it to explain basic notions of dimensional analysis and Buckingham's Pi theorem. We hope that the language makes mathematical physics more accessible to computer scientists and functional programming more palatable to modelers and physicists.
DOI:10.48550/arxiv.2308.09481