Skip to main content
QUICK REVIEW

[Paper Review] Misfortunes of a mathematicians' trio using Computer Algebra Systems: Can we trust?

Antonio J. Durán, Mario Pérez|arXiv (Cornell University)|Dec 11, 2013
Topological and Geometric Data AnalysisComputer Science5 references18 citations
TL;DR

This paper exposes a critical bug in Mathematica versions 8 and 9 that causes incorrect and inconsistent computation of determinants for large integer matrices, undermining trust in computer algebra systems despite symbolic computation with exact integers. The authors demonstrate the error through reproducible test matrices and report it to Wolfram Research, highlighting the risks of relying on proprietary software in mathematical research.

ABSTRACT

Computer algebra systems are a great help for mathematical research but sometimes unexpected errors in the software can also badly affect it. As an example, we show how we have detected an error of Mathematica computing determinants of matrices of integer numbers: not only it computes the determinants wrongly, but also it produces different results if one evaluates the same determinant twice.

Motivation & Objective

  • To investigate and expose a critical software bug in Mathematica's determinant computation for large integer matrices.
  • To demonstrate that Mathematica produces inconsistent and incorrect results even with symbolic, exact integer arithmetic.
  • To challenge the trustworthiness of commercial computer algebra systems in mathematical research due to opaque, unverifiable algorithms.
  • To advocate for greater transparency and availability of known bugs in commercial software, contrasting with open-source practices.
  • To emphasize the need for improved verification and validation of complex mathematical software.

Proposed method

  • Constructing random 14×14 integer matrices with entries between -99 and 99 to generate test cases with large integer determinants.
  • Using Mathematica to compute the determinant of a large integer matrix (bigMatrix) and comparing results with those from Maple and Sage, which produce consistent and correct values.
  • Repeating the same determinant computation multiple times in Mathematica to observe inconsistent outputs for identical inputs.
  • Isolating the error by generating a second matrix (smallMatrix) with known determinant approximated as 1.95×10^9762 via reliable systems like Maple and Sage.
  • Reporting the bug to Wolfram Research with detailed test cases and receiving acknowledgment, though no fix was released in subsequent versions.
  • Using symbolic computation with big integers (up to ~10,000 digits) to rule out floating-point errors and confirm the issue lies in the algorithmic implementation of the determinant function.

Experimental results

Research questions

  • RQ1Can Mathematica correctly and consistently compute determinants of large integer matrices using symbolic computation?
  • RQ2Why does Mathematica produce different determinant values when evaluating the same matrix multiple times?
  • RQ3To what extent can errors in computer algebra systems compromise the validity of mathematical research results?
  • RQ4How do such bugs affect trust in commercial software used for rigorous mathematical work?
  • RQ5What are the implications of opaque, unverifiable algorithms in proprietary computer algebra systems for mathematical research?

Key findings

  • Mathematica versions 8 and 9 return incorrect and inconsistent determinant values for large integer matrices, even when all inputs are exact integers.
  • The same matrix yields different determinant results upon repeated evaluation in Mathematica, indicating a non-deterministic internal computation error.
  • The correct determinant of the test matrix bigMatrix is approximately 1.95124219131987×10^9762, as computed by Maple and Sage, but Mathematica returns values like -3.26×10^9768 and -8.16×10^9768.
  • The bug affects only specific large integer matrices and does not occur consistently, making it difficult to detect and reproduce without systematic testing.
  • The error persists across both Mac and Windows platforms and was reported to Wolfram Research on October 7, 2013, with acknowledgment but no fix in subsequent releases.
  • The issue highlights the risks of relying on black-box computer algebra systems in mathematical research, especially when results are used to disprove or prove conjectures.

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.