vix.ing · top · new · best · stats · spec

A bi-directional extensible interface between Lean and Mathematica

2021/01/17 by Robert Y. Lewis, Lewis, Robert Y., Minchao Wu +1 · 2 citations
Business, Management and Accounting · Computer Science · #Business Process Modeling and Analysis #FOS: Computer and information sciences #Logic in Computer Science (cs.LO) #Logic, programming, and type systems #Mathematical Software (cs.MS) #Model-Driven Software Engineering Techniques

paper · pdf · doi:10.48550/arxiv.2101.07758

openalex publication_date 2021/01/17 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

We implement a user-extensible ad hoc connection between the Lean proof assistant and the computer algebra system Mathematica. By reflecting the syntax of each system in the other and providing a flexible interface for extending translation, our connection allows for the exchange of arbitrary information between the two systems. We show how to make use of the Lean metaprogramming framework to verify certain Mathematica computations, so that the rigor of the proof assistant is not compromised. We also use Mathematica as an untrusted oracle to guide proof search in the proof assistant and interact with a Mathematica notebook from within a Lean session. In the other direction, we import and process Lean declarations from within Mathematica. The proof assistant library serves as a database of mathematical knowledge that the CAS can display and explore.

Cited by

Related