Skip to main content
QUICK REVIEW

[Paper Review] Comparative Verification of the Digital Library of Mathematical Functions and Computer Algebra Systems

André Greiner-Petter, Howard S. Cohl|arXiv (Cornell University)|Jan 24, 2022
Mathematics, Computing, and Information ProcessingComputer Science40 references7 citations
TL;DR

This paper presents a novel comparative verification framework that cross-validates the NIST Digital Library of Mathematical Functions (DLMF) against two major computer algebra systems (Maple and Mathematica) using a refined translation tool, LaCASt. By converting DLMF's semantic LaTeX expressions into CAS-native syntax, the authors perform symbolic and numeric evaluations to detect discrepancies, uncovering errors in both the DLMF and CAS implementations, while significantly enhancing LaCASt’s coverage and accuracy. The study provides open access to all translations and evaluation results.

ABSTRACT

Digital mathematical libraries assemble the knowledge of years of mathematical research. Numerous disciplines (e.g., physics, engineering, pure and applied mathematics) rely heavily on compendia gathered findings. Likewise, modern research applications rely more and more on computational solutions, which are often calculated and verified by computer algebra systems. Hence, the correctness, accuracy, and reliability of both digital mathematical libraries and computer algebra systems is a crucial attribute for modern research. In this paper, we present a novel approach to verify a digital mathematical library and two computer algebra systems with one another by converting mathematical expressions from one system to the other. We use our previously eveloped conversion tool (referred to as LaCASt) to translate formulae from the NIST Digital Library of Mathematical Functions to the computer algebra systems Maple and Mathematica. The contributions of our presented work are as follows: (1) we present the most comprehensive verification of computer algebra systems and digital mathematical libraries with one another; (2) we significantly enhance the performance of the underlying translator in terms of coverage and accuracy; and (3) we provide open access to translations for Maple and Mathematica of the formulae in the NIST Digital Library of Mathematical Functions.

Motivation & Objective

  • To address the critical need for improved trustworthiness in digital mathematical libraries (DML) and computer algebra systems (CAS), which are foundational to modern scientific research.
  • To investigate whether cross-verification between DML and CAS can detect errors in either system, thereby improving reliability.
  • To enhance the LaCASt translation tool to support broader mathematical operators and improve semantic accuracy for reliable cross-system evaluation.
  • To provide a reproducible, open-access framework for verifying mathematical knowledge across DML and CAS, enabling future validation of other systems.

Proposed method

  • Translating DLMF formulae from semantic LaTeX into native syntax for Maple and Mathematica using the enhanced LaCASt tool.
  • Extending LaCASt to support advanced operators (sum, product, limit, integral) and correctly handle Lagrange prime notation for derivatives.
  • Performing symbolic simplification and numeric evaluation on translated expressions using both CAS to check for consistency with DLMF assertions.
  • Applying numeric evaluation with carefully selected test points to avoid problematic regions like branch cuts, while identifying cases where results diverge.
  • Using discrepancies between DLMF and CAS outputs as indicators of potential errors in translation, DLMF, or CAS implementations.
  • Reporting and validating discovered issues with DLMF editors and CAS vendors, including critical kernel crashes in Mathematica’s Wolfram Engine.

Experimental results

Research questions

  • RQ1Can cross-verification between the DLMF and CAS detect previously unknown errors in either system?
  • RQ2How effective is the LaCASt translation tool in accurately converting semantic LaTeX expressions from DLMF to CAS syntax?
  • RQ3What are the key challenges in ensuring semantic fidelity during translation, particularly regarding constraints, branch cuts, and special function definitions?
  • RQ4To what extent can numeric evaluation with discrete test points reliably detect formulaic inconsistencies across DML and CAS?
  • RQ5Can the comparative evaluation process be generalized to other DML and CAS using alternative translation pipelines (e.g., via MathML or OpenMath)?

Key findings

  • The enhanced LaCASt tool successfully translated twice as many DLMF formulae into CAS syntax compared to its predecessor, significantly improving coverage.
  • The study identified a critical segmentation fault in Mathematica’s Wolfram Engine for certain values of n in formula (18.17.47), which was confirmed by Wolfram Research.
  • Several errors were found in the DLMF, including incorrect semantic markup for Legendre functions in formulae (10.19.10–11), mislabeled definitions, and missing constraints on parameters.
  • Numeric evaluation revealed inconsistencies in CAS behavior, such as Indeterminate results for valid inputs and incorrect conditional outputs in integrals like (10.43.8).
  • The approach uncovered a flaw in LaCASt’s handling of exponential integrals E1(z), Ei(x), and Ein(z), which was subsequently corrected.
  • The authors provided open access to all translations, evaluation results, and the LaCASt source code, enabling reproducibility and future extension of the methodology.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.