A Complete Finite Axiomatisation of the Equational Theory of Common Meadows

Jan A Bergstra,John V Tucker
2024-05-27
Abstract:We analyse abstract data types that model numerical structures with a concept of error. Specifically, we focus on arithmetic data types that contain an error value $\bot$ whose main purpose is to always return a value for division. To rings and fields, we add a division operator $x/y$ and study a class of algebras called common meadows wherein $x/0 = \bot$. The set of equations true in all common meadows is named the equational theory of common meadows. We give a finite equational axiomatisation of the equational theory of common meadows and prove that it is complete and that the equational theory is decidable.
Logic in Computer Science
What problem does this paper attempt to address?
### What problems does this paper attempt to solve? This paper aims to solve the problems of abstract data types related to the modeling of error values in numerical structures. Specifically, the author focuses on arithmetic data types that contain a special error value \(\bot\), whose main function is to ensure that the division operation always returns a value. By introducing the division operation \(x/y\) in rings and fields and studying an algebraic structure called "common meadows", where \(x/0 = \bot\), the authors define and study the equational theories of these structures. #### Main problems: 1. **Introducing error values**: How to introduce a special error value \(\bot\) in numerical structures to handle undefined operations (such as division by zero), so that all operations are total functions. 2. **Axiomatization of equational theories**: Provide a finite equational axiomatization for the equational theory of common meadows containing error values, and prove its completeness and decidability. #### Specific objectives: - **Define common meadows**: A common meadow is an extended algebraic structure that adds an error value \(\bot\) and a total function division operation \(x/y\) to the original field. - **Construct equational theories**: Give a finite equational axiomatization of the equational theory of common meadows and prove that it is complete. - **Prove decidability**: Prove that the equational theory of common meadows is algorithmically decidable. #### Mathematical formula representation: - Behavior of error values: \[ x + \bot = \bot, \quad x \cdot \bot = \bot, \quad -\bot = \bot \] - Definition of total function division: \[ \frac{x}{y} = \begin{cases} \bot & \text{if } y = 0 \text{ or } y = \bot \text{ or } x = \bot \\ x \cdot y' & \text{otherwise} \end{cases} \] where \(y'\) is the unique element satisfying \(y \cdot y' = 1\). #### Summary: This paper constructs a new class of algebraic structures - common meadows by introducing the error value \(\bot\) and the total function division operation, and axiomatizes and proves the completeness of its equational theory. This not only solves the common division - by - zero problem in computer arithmetic, but also provides a formal mathematical tool to handle errors and exceptions in calculations.