Types, equations, dimensions and the Pi theorem

08/16/2023
by   Nicola Botta, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/04/2018

Program Language Translation Using a Grammar-Driven Tree-to-Tree Model

The task of translating between programming languages differs from the c...
research
05/30/2023

Grammar Prompting for Domain-Specific Language Generation with Large Language Models

Large language models (LLMs) can learn to perform a wide range of natura...
research
11/12/2019

Aplib: Tactical Programming of Intelligent Agents

This paper presents aplib, a Java library for programming intelligent ag...
research
12/25/2018

Fixed Points, Induction, and Coinduction in Order Theory, Set Theory, (PL) Type Theory, Category Theory, and Logic: A Concise Summary

In this note we present the formulation of the induction and coinduction...
research
12/18/2017

Does modelling need a Reformation? Ideas for a new grammar of modelling

The quality of mathematical modelling is looked at from the perspective ...
research
06/10/2022

An Enactivist-Inspired Mathematical Model of Cognition

We formulate five basic tenets of enactivist cognitive science that we h...
research
06/04/2020

The why, how, and when of representations for complex systems

Complex systems thinking is applied to a wide variety of domains, from n...

Please sign up or login with your details

Forgot password? Click here to reset