-
Notifications
You must be signed in to change notification settings - Fork 166
Description
The Calcium implementation of QQbar becomes increasingly important for OSCAR. So it needs to be properly documented.
Searching for "QQbar" kind of works but only leads to the Nemo docs.
As I think, QQbar should also be mentioned here.
QQbar is used, e.g., for polyhedral computations in real number fields (with fixed embeddings). This works nicely, but the overall behavior could be surprising for some users. Crucially, QQbar implements a comparison function, which is only defined for real numbers. The implementation is correct as it dies with an error if the user tries to compare complex numbers with nonzero imaginary parts. Yet, this "feature" allows QQbar as a type parameter, e.g., for the Polyhedron class. And this is unexpected, because the algebraic closure of the rationals is not an ordered field.
Again, there is nothing wrong with the implementation. But the docs need to explain this carefully.