Types, equations, dimensions and the Pi theorem
Artikel i vetenskaplig tidskrift, 2026

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 formalize basic notions of dimensional analysis: those of dimension function, physical quantity, homomorphic measurement, the covariance principle and Buckingham's Pi theorem. We hope that the language makes mathematical physics more accessible to computer scientists and functional programming more palatable to modellers and physicists.

Författare

Nicola Botta

Potsdam-Institut für Klimafolgenforschung (PIK)

Chalmers, Data- och informationsteknik, Funktionell programmering

Göteborgs universitet

Patrik Jansson

Göteborgs universitet

Chalmers, Data- och informationsteknik, Funktionell programmering

Journal of Functional Programming

0956-7968 (ISSN) 1469-7653 (eISSN)

Vol. 36 3

Ämneskategorier (SSIF 2025)

Språkbehandling och datorlingvistik

Matematisk analys

DOI

10.46298/jfp.17762

Mer information

Senast uppdaterat

2026-07-23