SUBSTANCE and STYLE: Domain-Specific Languages for Mathematical Diagrams

October 2017

SUBSTANCE and STYLE: Domain-Specific Languages for Mathematical Diagrams

Authors:

Wode Ni, Katherine Ye, Joshua Sunshine, Jonathan Aldrich, and Keenan Crane

Abstract:

Creating mathematical diagrams is essential for both developing one’s intuition and conveying it to others. However, formalizing diagrams in most general-purpose tools requires painstaking low-level manipulation of shapes and positions. We report on early work on PENROSE, a system we are building to automatically visualize mathematics from notation. PENROSE comprises two languages: Substance, a domain-specific language that mimics the declarativeness of mathematical notation, and Style, a styling language that concisely specifies the visual semantics of the notation. Our system can automatically visualize set theory expressions with user-defined styles, and it can visualize abstract definitions of functions by producing concrete examples. We plan to extend the system to more domains of mathematics.
@workshop{Ni-2017-121370,
author = {Wode Ni And Katherine Ye And Joshua Sunshine And Jonathan Aldrich And Keenan Crane},
title = {SUBSTANCE and STYLE: Domain-Specific Languages for Mathematical Diagrams},
booktitle = {Proceedings of SPLASH '17 Domain-Specific Language Design and Implementation (DSLDI) Workshop},
year = {2017},
month = {October},
}
Copyright notice: This material is presented to ensure timely dissemination of scholarly and technical work. Copyright and all rights therein are retained by authors or by other copyright holders. All persons copying this information are expected to adhere to the terms and constraints invoked by each author's copyright. These works may not be reposted without the explicit permission of the copyright holder.