Computing with Tarski formulas and semi-algebraic sets in a web browser

Zoltán Kovács,Christopher Brown,Tomás Recio,Róbert Vajda
DOI: https://doi.org/10.1016/j.jsc.2023.102235
IF: 0.97
2024-01-01
Journal of Symbolic Computation
Abstract:We report on successfully porting the Tarski system for computing with Tarski formulas (Boolean combinations of polynomial sign conditions over the real numbers) to Javascript, thereby allowing it to run inside a browser. Tarski is an open-source software package, written in C/C++, that provides operations like formula simplification and quantifier elimination for Tarski formulas. Leveraging the Emscripten C++ to JavaScript/WebAssembly compiler tool, we were able to port Tarski to Javascript and offer it as a module (tarskijs) that can be embedded in other web-based projects. We report on two non-trivial examples of projects that do this. The first is a Tarski terminal (WebTarski) embedded in a webpage and running completely in-browser, thereby making Tarski available to almost anyone. The second is an experimental fork of the well-known dynamic geometry software package GeoGebra that uses tarskijs to provide new features that require real quantifier elimination. The module tarskijs is open source and freely available via GitHub.
mathematics, applied,computer science, theory & methods
What problem does this paper attempt to address?