Skip to main contentSkip to search
Episciences
Open Access Journals
Sign in(new window)
Journal of Functional Programming logo
Journal of Functional Programming
Journal of Functional Programming logo
Journal of Functional Programming
Sign in(new window)
Articles & Issues
All articlesAll accepted articlesAll volumesSectionsAuthors
About
The journalIndexingNews
Boards
Publish
For authorsEthical charterFor reviewers
Submit
Journal of Functional Programming logo
Journal's leaflet
|
Contact
|
Credits
eISSN 1469-7653
|
RSS
|
Atom
Episciences
Documentation
|
Acknowledgements
|
Publishing policy
Accessibility: non-compliant
|
Legal mentions
|
Privacy statement
|
Terms of use
  1. Home > Articles & Issues >
  2. Articles >
  3. Types, equations, di ...
Article

Types, equations, dimensions and the Pi theorem

Nicola Botta, Patrik Jansson
Download article
Open on arXiv
Submitted on
August 17, 2023
Accepted on
March 20, 2026
Published on
June 28, 2026
Last modified on
June 28, 2026
Volume 36
Volume 36
DOI
10.46298/jfp.17762
License
Attribution 4.0 International (CC BY 4.0)
Indicators
78
Views
42
Downloads

Types, equations, dimensions and the Pi theorem

Nicola Botta, Patrik Jansson
Abstract
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.
Keywords
  • Programming Languages
  • Logic in Computer Science
Preview
Loading PDF preview...