arXiv:2610.36300math.HOOct 2026

Manuscript Offprint

arXiv:2610.36300

Building Mathematical Software -- Lessons from the Development of GAP

Alexander Hulpke

Abstract

Mathematical software has particular needs that are not all covered by the existing literature on software engineering or algorithm design. This paper looks at some of these aspects, in the concrete context of the computer algebra system GAP. It also studies the potential impact AI systems could have on the development process for mathematical software.

This is the submitted version of the paper, whose official accepted version is at https://doi.org/10.1365/s13291-026-00317-0

Building a large software project, in particular one that survives for decades, is not necessarily part of the standard job description, or training, of mathematicians. It raises questions, not all of which are of mathematical nature, or have mathematical answers that are helpful (e.g. on the question of whether one should consider implicit embeddings of domains: Is 2 an element of the field Q[x]/(x2−3)\mathbb{Q}[x]/(x^2 - 3)? Is 1 considered to be equal to the polynomial 1⋅x01 \cdot x^0?).

There are also questions about group collaboration, in particular in the context of free software, or the technicalities of software engineering. These aspects might be unfamiliar to mathematicians, but they are already covered extensively by existing literature in management and computer science [1, 2, 3].

But there are other questions and problems that are connected naturally to the unique aspects of mathematical software. The developers of many systems will have encountered them, but they typically have not been disseminated outside the immediate group of system authors.

The goal of this paper is to make a small step in this direction. It describes some aspects of software development that the developers of GAP encountered over time, and which (at least in my view) are surprising. The solutions and approaches presented here are certainly

*ORCID: 0000-0002-5210-6283 collective efforts, while the way they are presented will have been tinged by the author's personal view (and passing time). Any intellectual credit for them should not accrue to the author of this article, but to the authors of GAP as a group, foremost Martin Schönert, to whom much of the fundamental system design is due.

As Section 8 will show, many of these observations seem to remain relevant even in times of artificial intelligence and coding agents.

This collection of items is, by its very nature, a disparate one. There are mutual connections amongst the topics, but these do not necessarily follow the linear form implicit in an article.

1 Robustness and speed as necessities

Successful academic software will find many users in academia. But there are more. Mathematicians train many more students than there are positions in academic departments. It thus will not come as a surprise that there are people outside academia who have a solid mathematical training and are interested in trying mathematical software that was originally built just for an academic setting. Indeed, this is possible with mathematical software in a way it would not be with, say, a particle accelerator. Mathematical software thus is one of the few ways in which academic mathematics on the research level will interface directly with a broader population and will find users outside the direct academic setting – a situation that I consider very positive.

But such users often have a different computer setup than is typical in an academic setting; furthermore, they will typically not have a system administrator whom they can ask to install the software. But they will use the system in a nontrivial way. Documentation and installation instructions thus need to consider a much broader pool of users than the program authors might have envisioned initially.

Such a broader audience also means that software will encounter inputs that none of its authors had foreseen, and this includes the most basic ones.